HTB or HFSC shaping with fiaif
Laurent CARON
email hidden
Tue Jul 24 10:30:26 CEST 2007
Hi,
I'm experiencing a strange behavior on one of my servers.
Although i did set
TC_ENABLE=1
TC_DOWNLINK=10000
TC_UPLINK=10000
in zone.ext
my downloads are capped to about 8 times less
When I disable FIAIF, i can of course download at full wire speed.
The strange part of this problem is that i've got another server with
the same FIAIF setup, and this one is working fine.
Here is the tc setup from /etc/init.d/fiaif test:
tc qdisc add dev eth2 root handle 1: htb default 20
tc class add dev eth2 parent 1: classid 1:1 htb rate 25500kbit burst 20k
tc class add dev eth2 parent 1:1 classid 1:10 htb rate 12750kbit ceil
25500kbit burst 10K prio 1
tc class add dev eth2 parent 1:1 classid 1:20 htb rate 7650kbit ceil
25500kbit burst 3k prio 2
tc class add dev eth2 parent 1:1 classid 1:30 htb rate 5100kbit ceil
25500kbit burst 2k prio 3
tc qdisc add dev eth2 parent 1:10 handle 10: pfifo limit 5
tc qdisc add dev eth2 parent 1:20 handle 20: sfq perturb 10
tc qdisc add dev eth2 parent 1:30 handle 30: sfq perturb 10
tc filter add dev eth2 parent 1: protocol ip prio 10 u32 match ip tos
0x10 0xff flowid 1:10
tc filter add dev eth2 parent 1: protocol ip prio 10 u32 match ip
protocol 1 0xff flowid 1:10
tc filter add dev eth2 parent 1: protocol ip prio 20 u32 match ip
protocol 6 0xff match u8 0x05 0x0f at 0 match u16 0x0000 0xffc0 at 2
match u8 0x10 0xff at 33 flowid 1:10
tc filter add dev eth2 parent 1: protocol ip prio 30 u32 match ip tos
0x08 0xff flowid 1:30
tc filter add dev eth2 parent 1: protocol ip prio 40 u32 match ip dst
0.0.0.0/0 flowid 1:20
tc qdisc add dev eth2 handle ffff: ingress
tc filter add dev eth2 parent ffff: protocol ip prio 50 u32 match ip src
0.0.0.0/0 police rate 27000kbit burst 10k drop flowid :1
Do you guys have any clue about it ?
Thanks
Laurent
More information about the fiaif
mailing list