On Thursday 29 August 2002 10:53, Ciprian Niculescu wrote:
> hi,
>
> you give to all the clients all the bandwith or limited at 64k, but with
> different priorities.
>
> 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 2
>
> you put the client that you want to have guaranted 64kbps in 1:1, and
> the other two in 1:2.
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 :
class parent 1: classid 1:5 htb rate 128kbit
class parent 1:5 classid 1:1 htb rate 32kbit ceil 128kbit prio 1
class parent 1:5 classid 1:2 htb rate 32kbit ceil 128kbit prio 1
class parent 1:5 classid 1:3 htb rate 64kbit ceil 128kbit prio 2
and class 1:1 uses no bandwidth. Class 1:2 will get 32kbit, class 1:3 64kbit,
so 32 kbit left. Class 1:2 has the lowest prio, so it will get the remaining
32kbit. So each class gets 64 kbit.
The rate for a class is always guaranteed. So you don't need an isolated
option like in cbq.
Stef
--
[EMAIL PROTECTED]
"Using Linux as bandwidth manager"
http://www.docum.org/
#lartc @ irc.oftc.net
_______________________________________________
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/