Re: htb guarantee bandwidth

Linux Advanced Routing and Traffic Control

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

 



On Thu, 2002-08-29 at 08:53, Stef Coene wrote:
> The prio is only used to split the traffic that's available after the rates 
> are satisfied.  In this case, the prio will change nothing.  But if you have 
> 3 classes like :

Yes, the prio will change nothing, so it might as well look like this:

  class parent 1: classid 1:5 htb rate 128kbit
  class parent 1:5 classid 1:1 htb rate 64kbit ceil 128kbit prio 1
  class parent 1:5 classid 1:2 htb rate 64kbit ceil 128kbit prio 1

If we put the client with the guaranteed rate (call him A) into 1:1, and
the other two clients (B and C) into 1:2, it should work out the same
way.  If A uses 64kbit, the remaining 64kbit is split between B and C,
and assuming there is a fair qdisc attached to 1:2, they should each get
32kbit.  If B is inactive, both A and C will get 64kbit: their classes'
guaranteed rates.  If A is inactive, 1:2 will hit the ceil and B and C
will share 128kbit, so each gets 64kbit.

Doesn't that work out?  Of course it's entirely academic, since it's not
as if adding one extra rule makes it more complicated or less efficient
in practice.

Jason.

-- 
Academic Computing Support Specialist
Algoma University College
Sault Ste. Marie, Ontario
705-949-2301 x330                                   Personal Home Page
http://www.auc.ca                                     http://sault.org

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

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