Re: Problem with HTB and ceil

Linux Advanced Routing and Traffic Control

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

 



On Tuesday 19 July 2005 12:54, nik39_nospam@xxxxxxxxxxxxxxxxxxxxxxx wrote:
> /sbin/tc class add dev $EXTIF parent 1:002 classid 1:101 htb rate
> 364kbit ceil 364 prio 1
>
> ## ACK
> /sbin/tc class add dev $EXTIF parent 1:101 classid 1:200 htb rate
> 140kbit ceil 364kbit prio 1
> ## SSH
> /sbin/tc class add dev $EXTIF parent 1:101 classid 1:300 htb rate
> 140kbit ceil 364kbit prio 2
> ## http/https traffic
> /sbin/tc class add dev $EXTIF parent 1:101 classid 1:400 htb rate
> 140kbit ceil 364kbit prio 3
> ## bulk
> /sbin/tc class add dev $EXTIF parent 1:101 classid 1:500 htb rate
> 140kbit ceil 364kbit prio 4

By looking at this script, you have a class 1:101 with 364kbit rate, 364 
ceil (missing unit!), and it's children got (140+140+140+140)kbit = 
560kbit rate.

I haven't followed the prior discussion, so this might be intentional or 
not, but in any case, I don't recommend using HTB that way. It's much 
easier to tell what is happening when you make sure that your rates always 
add up properly. That is, the sum of the child class rates should be the 
same as the parent class rate.

HTH
Andreas
_______________________________________________
LARTC mailing list
LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

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