[LARTC] htb ceiling

Linux Advanced Routing and Traffic Control

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

 



Hello,

I'm using HTB (through htb.init :) and it's nearly perfect, but the CEIL
directive seems to have no effect.

The relevant lines are:

tc qdisc add dev eth1 root handle 1 htb default 10 r2q 100
tc class add dev eth1 parent 1: classid 1:2 htb rate 5Mbit burst 15k
tc class add dev eth1 parent 1:2 classid 1:40 htb rate 256Kbit ceil 512Kbit
burst 15k
tc qdisc add dev eth1 parent 1:40 handle 40 sfq perturb 10
tc filter add dev eth1 parent 1:0 protocol ip prio 100 u32 match ip dst
10.0.0.2 classid 1:40

 - this allows 10.0.0.2 to download at 256Kbit, even when it is the only
machine doing any downloading.  I can affect this speed by changing the
$rate, but changing $ceil has no effect whatsoever.

Platform:
RH7.2, 2.4.9-31 (patched for htb)
tc patched for htb
iproute2-ss001007 (Tried the patch for htb, but compilation failed with
/usr/include/arpa/inet.h:74: warning: data definition has no type or storage
class
/usr/include/arpa/inet.h:78: parse error before `__net'
)

Is there something wrong with the above commands?

Thanks,

Gavin

http://www.raha.com



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