HTB equivalent for 'bounded' and 'isolated' in CBQ
Hi all,
Sally Floyd's Link sharing paper defines the following:
1. Bounded class: class that is not allowed to borrow from ancestor classes, regardless of the limit status of those classes.
2. Isolated class: class that does not allow non-descendant classes to borrow its unused bandwidth and that does not borrow bandwidth from other classes in turn
How does HTB implement a 'bounded class'? I seem to see no constructs to be able to do this.
The 'ceil' parameter allows us to implement a part of the 'isolated' definition above. By setting it equal to 'rate', the class does not borrow bandwidth, but what will stop other classes from borrowing its unused bandwidth?
Regards,
Amit
--
I'm an angel!!! Honest!
The horns are just there to hold the halo up straight. ^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^
Amit Kucheria
EECS Grad. Research Assistant
University of Kansas @ Lawrence
(R): +1-785-830-8521 ||| (C): +1-785-760-2871
____________________________________________________
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 4 lines · Amit Kucheria
Hi all,
Sally Floyd's Link sharing paper defines the following:
Quoted 8 lines
1. Bounded class: class that is not allowed to borrow from ancestor classes, regardless of the limit status of those classes.
2. Isolated class: class that does not allow non-descendant classes to borrow its unused bandwidth and that does not borrow bandwidth from other classes in turn
How does HTB implement a 'bounded class'? I seem to see no constructs to be able to do this.
You can use the ceil parameter to bound a class to a certain rate. With rate
= ceil, you will get the same result as the bounded option in cbq.
Quoted 4 lines
The 'ceil' parameter allows us to implement a part of the 'isolated' definition above. By setting it equal to 'rate', the class does not borrow bandwidth, but what will stop other classes from borrowing its unused bandwidth?
Providing no ceil parameter means rate = ceil. But this can not be used to implement isolated like in cbq. Rate = ceil means the class can not use more bandwidth then it's rate. Isolated in cbq means other classes can not borrow bandwidth from the class and that's not the same. There is no way you can implement isolated with htb.
But with htb you can do something like this :
Total : 100
class1 rate 20 ceil 20 class2 rate 40 ceil 80 class3 rate 40 ceil 80
class 1 is isolated like in cbq. It can not use more then it's rate/ceil and class2 and class3 will never use bandwidth from class1, only from each other.
Just like the definition of isolated :)
Stef
Btw, I never could get isolated working with cbq.
Signature · 7 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/
Quoted 13 lines · Stef Coene
Quoted 4 lines
The 'ceil' parameter allows us to implement a part of the 'isolated' definition above. By setting it equal to 'rate', the class does not borrow bandwidth, but what will stop other classes from borrowing its unused bandwidth?
Providing no ceil parameter means rate = ceil. But this can not be used to implement isolated like in cbq. Rate = ceil means the class can not use more bandwidth then it's rate. Isolated in cbq means other classes can not borrow bandwidth from the class and that's not the same. There is no way you can implement isolated with htb.
But with htb you can do something like this :
Quoted 8 lines
Total : 100
class1 rate 20 ceil 20 class2 rate 40 ceil 80 class3 rate 40 ceil 80class 1 is isolated like in cbq. It can not use more then it's rate/ceil and class2 and class3 will never use bandwidth from class1, only from each other. Just like the definition of isolated :)
What happens when there is no traffic in class 1? Will class 2 and 3 share class 1's bandwidth then?
The reason I am asking these questions is because I am trying to see if HTB can be used in place of CBQ in Diffserv. Has anybody tried something like this?
Regards,
Amit
Signature · 12 lines
I'm an angel!!! Honest!
The horns are just there to hold the halo up straight.
^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^
Amit Kucheria
EECS Grad. Research Assistant
University of Kansas @ Lawrence
(R): +1-785-830-8521 ||| (C): +1-785-760-2871
____________________________________________________
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/Quoted 11 lines
Quoted 8 lines
Total : 100
class1 rate 20 ceil 20 class2 rate 40 ceil 80 class3 rate 40 ceil 80class 1 is isolated like in cbq. It can not use more then it's rate/ceil and class2 and class3 will never use bandwidth from class1, only from each other. Just like the definition of isolated :)
What happens when there is no traffic in class 1? Will class 2 and 3 share class 1's bandwidth then?
No traffic in class 1 means that class2 and class3 will share the same bandwidth, but only 80 as maximum. So the bandwidth of class1 (20) is isolated like you can set with cbq.
Htb is straight forward. Each class will get's his rate as a minimum. The remaining bandwidth is devided according to the rate (and lowest priority gets first choice) and this with a maximum of the ceil.
Quoted 3 lines
The reason I am asking these questions is because I am trying to see if HTB can be used in place of CBQ in Diffserv. Has anybody tried something like this?
I didn't tried, but I think htb will do fine (or even better).
Stef
Signature · 7 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/
Quoted 24 lines · Amit Kucheria
Quoted 13 lines · Stef Coene
Quoted 4 lines
The 'ceil' parameter allows us to implement a part of the 'isolated' definition above. By setting it equal to 'rate', the class does not borrow bandwidth, but what will stop other classes from borrowing its unused bandwidth?
Providing no ceil parameter means rate = ceil. But this can not be used to implement isolated like in cbq. Rate = ceil means the class can not use more bandwidth then it's rate. Isolated in cbq means other classes can not borrow bandwidth from the class and that's not the same. There is no way you can implement isolated with htb.
But with htb you can do something like this :
Quoted 8 lines
Total : 100
class1 rate 20 ceil 20 class2 rate 40 ceil 80 class3 rate 40 ceil 80class 1 is isolated like in cbq. It can not use more then it's rate/ceil and class2 and class3 will never use bandwidth from class1, only from each other. Just like the definition of isolated :)
Quoted 6 lines
What happens when there is no traffic in class 1? Will class 2 and 3 share class 1's bandwidth then?
The reason I am asking these questions is because I am trying to see if HTB can be used in place of CBQ in Diffserv. Has anybody tried something like this?
It works fine for me, although I haven't used CBQ previously so I can't comapre them. It just works for me, except the delays in interactive class are too long, even when the prio is 0 (highest) and the rate and ceil are maximum. Maybe CBQ is better in reducing the delays... Anybody solved this problem?
Signature · 13 lines
########################################## # | p0wer | # # __ | GG#1877248 | # # (oo) | [email protected] | # # / \/ \ Go away or I will replace you # # `V__V' with a very small shell script. # ########################################## _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 5 lines
It works fine for me, although I haven't used CBQ previously so I can't comapre them. It just works for me, except the delays in interactive class are too long, even when the prio is 0 (highest) and the rate and ceil are maximum. Maybe CBQ is better in reducing the delays... Anybody solved this problem?
There is a way with htb to get really low delays. It can be found on the htb homepage (http://luxik.cdi.cz/~devik/qos/htb/manual/userg.htm#prio, last paragraph).
Basically, you have 2 classes : on rated to xx% of the link and an other rated to 100-X%. If you make sure you NEVER send more data to the 100-xx% class so it never has to ask for more bandwidth, it will have very low delays. If you send more data, the situation is reversed and that class will get very high delays. I still have to test it, but you can use the policer in the filters to make sure you never send more data then the rate of 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/