[LARTC] htb ceiling

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> > the rate is really measured - it is used as source for DRR weight
> > (here it is used relative to other classes) and to see whether we
> > need to borrow from parent - here absolute value matters.
> > So that the example above should work and give 512k.

> So each class gets it's rate if it can by borrowing from the parent ?
> But what if the parent has more bandwidth then the rate of the classes?  
> Isn't the remaining bandwith given to the classes compared with the rates ?
> 
> What happens of the sum of the rates of the child classes is bigger then the 
> rate of the parent or even the ceil of the parent ?

You can view it as system where all of these hold:

1. each class first uses all of its (absolute) "rate"
2. if there is no such class then each class can use part
   of parents rate if ceil allows for it and
3. the "parts" of the same parent are balanced according
   to relative values of children rates

Now, Gavin's conf:  C1[r,c=2000]-->C2[r=256,c=512] is simple
to explain:
According to rule 1. C2 will always use at least 256k (even
if C1's rate were accidentaly 0). If it already uses 256k
and there is still demand for more then 2. allows you to
use up to 512k. There is no competiting child of C1 so
C2 will get 512k forever. 

Clear ?
devik



[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux