From mboxrd@z Thu Jan 1 00:00:00 1970 From: don-lartc@isis.cs3-inc.com (Don Cohen) Date: Wed, 16 Apr 2003 17:47:11 +0000 Subject: Re: [LARTC] "dynamic rate" in htb classes? Message-Id: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org > > 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). _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/