Re: [LARTC] "dynamic rate" in htb classes?

Linux Advanced Routing and Traffic Control

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

 



 > > In other words: Class B's rate should always be x times the _current_ rate
 > > of class A. Ceiling rates should apply nevertheless though.
 > >
 > > e.g.: Class A: rate 500 kbit, ceil 2000 kbit
 > >       Class B: rate 0.25 * (current rate of class A), ceil 1000 kbit
 > You can only do this with external scripting.

There are two possible interpretations for the term "current rate".
If you mean the one declared, then I think Stef is correct.
That is, you can declare class B to have rate 125k which is .25 that
of class A, but if you then change class A to 1000, class B is still 
125, no longer .25 class A.

However, you more likely mean that the bandwidth actually used
for class B at any time should be .25 that of class A.
And this is the default behavior if you just declare the class B rate
to be 125.  That is, excess bandwidth is shared in proportion to the
requested rates.  Just put A and B below a common parent (perhaps with
a ceil of 3000k).


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