Unclarified issue
Hi all,
Just finished reading and re-reading the advanced routing how-to. This this is marvelous!!! Thank you all that spent your time and devoted it to such a great paper! However there is something that I am missing from the picture. By default each interface is bundled with the pfifo_fast that prioritizes the packets based on TOS. If for say we do this:
# tc qdisc add dev eth0 root tbf rate 100kbit latency 100ms urst 2048 Do we actually lose the whole point of TOS? Or there is stil an underlying filter somewhere in the kernel that will take care of the TOS scheduling just like pfifo_fast did? Also in the following example: # tc qdisc add dev eth0 root handle 1: prio We automatically create three handles 1:1 1:2 1:3, with the default priomap. However what happens to traffic that goes down 1:1 if there is no qdisc attached to it? Does it get dequeued right off the back or there is again something similar to pfifo_fast waiting for it?
Cheers!
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 9 lines · Peter Rabbitson
Hi all,
Just finished reading and re-reading the advanced routing how-to. This this is marvelous!!! Thank you all that spent your time and devoted it to such a great paper! However there is something that I am missing from the picture. By default each interface is bundled with thepfifo_fastthat prioritizes the packets based on TOS. If for say we do this: # tc qdisc add dev eth0 root tbf rate 100kbit latency 100ms urst 2048 Do we actually lose the whole point of TOS? Or there is stil an underlying filter somewhere in the kernel that will take care of the TOS scheduling just likepfifo_fastdid?
You loose the TOS settings.
Quoted 6 lines
Also in the following example:
# tc qdisc add dev eth0 root handle 1: prio We automatically create three handles 1:1 1:2 1:3, with the default priomap. However what happens to traffic that goes down 1:1 if there is no qdisc attached to it? Does it get dequeued right off the back or there is again something similar to pfifo_fast waiting for it?
There is always a qdisc responsible for sending the packets. If you add a prio qdisc, you also created 3 small fifo qdiscs for each class.
If you want some example shaping scripts (mostly cbq and htb), you can go to docum.org.
Stef
Signature · 9 lines
[email protected] "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.oftc.net _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
So in other words if we define a cbq at 1:0 and then define a class 1:1, and DO NOT attach any qdiscs at parent 1:1, all packets that went to 1:1 will be simply discarded?
P.S. Examples are fine but going down and getting dirty is way more fun :)
Quoted 18 lines · Stef Coene
Quoted 9 lines · Peter Rabbitson
Hi all,
Just finished reading and re-reading the advanced routing how-to. This this is marvelous!!! Thank you all that spent your time and devoted it to such a great paper! However there is something that I am missing from the picture. By default each interface is bundled with thepfifo_fastthat prioritizes the packets based on TOS. If for say we do this: # tc qdisc add dev eth0 root tbf rate 100kbit latency 100ms urst 2048 Do we actually lose the whole point of TOS? Or there is stil an underlying filter somewhere in the kernel that will take care of the TOS scheduling just likepfifo_fastdid?You loose the TOS settings.
Quoted 6 lines
Also in the following example:
# tc qdisc add dev eth0 root handle 1: prio We automatically create three handles 1:1 1:2 1:3, with the default priomap. However what happens to traffic that goes down 1:1 if there is no qdisc attached to it? Does it get dequeued right off the back or there is again something similar to pfifo_fast waiting for it?
Quoted 19 lines
There is always a qdisc responsible for sending the packets. If you add a prio qdisc, you also created 3 small fifo qdiscs for each class.
If you want some example shaping scripts (mostly cbq and htb), you can go to docum.org.
Stef
Signature · 9 lines
[email protected] "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.oftc.net _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 3 lines · Peter Rabbitson
So in other words if we define a cbq at 1:0 and then define a class 1:1, and DO NOT attach any qdiscs at parent 1:1, all packets that went to 1:1 will be simply discarded?
No. By default a fifo qdisc is attached to the class.
Stef
Signature · 8 lines
[email protected] "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.oftc.net _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/