Skip to contentSkip to conversation

HTB: 3. Sharing hierarchy

LARTC Mike Mestnik 2 participants 4 messages Jun 22, 2004 – Jun 24, 2004

lore
Share & tools
lore
#0 lore raw

On http://luxik.cdi.cz/~devik/qos/htb/manual/userg.htm...
There is a nice explanation on how/why to setup a hierarchy with HTB. Howerver what is missing is how to setup finters for this case?

I had this working when I was using a seperat qdisc for each ?layer?, making each HTB only one level deep. Described in the attached qdisc.sh.GOOD.

Described in the attached qdisc.sh is my current script, is my new config script.

Described in the attached qdisc-undo.sh is the output of my ifup-mkundo.sh script, a reversed(read from the bottom up) list of del cmds for the given up script.

Described in the attached tc-class.out and tc-qdisc.out is the output of these 'popular' tc cmds.

Also attached is my 'popular' ifup-mkundo.sh script, ENJOY.

__________________________________
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
http://promotions.yahoo.com/new_mail

#1 lore raw
Quoted 3 lines · Mike Mestnik

On http://luxik.cdi.cz/~devik/qos/htb/manual/userg.htm...
There is a nice explanation on how/why to setup a hierarchy with HTB. Howerver what is missing is how to setup finters for this case?

For more information and examples: http://docum.org/

Quoted 3 lines

I had this working when I was using a seperat qdisc for each ?layer?, making each HTB only one level deep. Described in the attached qdisc.sh.GOOD.

Not such a good idea.

Quoted 6 lines

Described in the attached qdisc.sh is my current script, is my new config script.

Described in the attached qdisc-undo.sh is the output of my ifup-mkundo.sh script, a reversed(read from the bottom up) list of del cmds for the given up script.

The command
tc qdisc del dev eth1 root
is enough to delete everything.

Stef

Signature · 6 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#2 lore raw
In reply to Mike Mestnik

I finaly found why my filters woulden't work, I was using grouping maches up with quotation(") chars. This caused tc to silently IGNORE thoes matches while letting other non-quotated matches to work normaly, within the same tc cmd.

I reworked my whole script to use 10:0 as the parent for filters, where's b4 I was able to group all the port 8080 stuff into flowid 10:35 and then use that as a parent. I know that the docs say other-wise, but dose any one know if it's safe thing todo?

http://www.technofoundry.com/cheako/
Has my tc modified scripts.

__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#3 lore raw
In reply to Mike Mestnik

I finaly found why my filters woulden't work, I was using grouping maches up with quotation(") chars. This caused tc to silently IGNORE thoes matches while letting other non-quotated matches to work normaly, within the same tc cmd.

I reworked my whole script to use 10:0 as the parent for filters, where's b4 I was able to group all the port 8080 stuff into flowid 10:35 and then use that as a parent. I know that the docs say other-wise, but dose any one know if it's safe thing todo?

http://www.technofoundry.com/cheako/
Has my tc modified scripts.

__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/