lartc.org : Linux Advanced Routing & Traffic Control
(Answer) (Category) lartc.org FAQ : (Category) HTB Shaping rules :
Rate of the parent class
The rate of the parent class is not used to determine how the parent can borrow. Consider this setup :
      1
     / \
   10   20
   /  \
 200   300
Settings :
1 : rate = ceil = 200
10 : rate = 100, ceil = 200
20 : rate = 100, ceil = 200
200 : rate = 100, ceil = 200
300 : rate = 100, ceil = 200

If class 200, 300 and 20 are sending as much as they can, each class will receive 33%. So parent 10 don't get 100 (50%) like you should expect. However consider these settings :

Settings :
1 : rate = ceil = 200
10 : rate = 100, ceil = 200
20 : rate = 100, ceil = 200
200 : rate = 50, ceil = 200
300 : rate = 50, ceil = 200

If class 200, 300 and 20 are sending as much as they can, each class will receive it's rate. So class 20 gets 100 (50)%, class 200 and 300 gets each 50 (25%).
If only class 20 and 200 are sending, they each get 100 (50%).

Rule 3 (bis): sum (rate of childs) = parent rate
stef.coene@docum.org

[Append to This Answer]
Previous: (Answer) Rate of the class
Next: (Answer) Ceil of root class
This document is: http://qos.dyndns.org:3389/cgi-bin/fom?file=14
[Search] [Appearance]
This is a Faq-O-Matic 2.719.