Andreas Klauer <Andreas.Klauer@xxxxxxxxxxxxxx>: > 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. Just to make sure, when you talk about the sum you are talking about the sum of the minimum bitrates, not the sum of the ceil bitrates, right? > That is, the sum of the child class rates should be the > same as the parent class rate. Ah damned, that was a copy and paste problem, in fact I used the following script with the bitrates which I mentioned in the previous posts in my description. -------- ## Root /sbin/tc qdisc add dev $EXTIF root handle 1:0 htb default 400 /sbin/tc class add dev $EXTIF parent 1:0 classid 1:002 htb rate 380kbit ceil 380kbit ## voip /sbin/tc class add dev $EXTIF parent 1:002 classid 1:100 htb rate 16kbit ceil 96kbit prio 0 ## non voip /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 16kbit ceil 364kbit prio 2 ## http/https traffic /sbin/tc class add dev $EXTIF parent 1:101 classid 1:400 htb rate 16kbit ceil 364kbit prio 3 ## bulk /sbin/tc class add dev $EXTIF parent 1:101 classid 1:500 htb rate 16kbit ceil 364kbit prio 4 -------- Any idea? Did I miss something basic? nik _______________________________________________ LARTC mailing list LARTC@xxxxxxxxxxxxxxx http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc