[LARTC] traffic shaper with htb and imq ==> bad latency

Linux Advanced Routing and Traffic Control

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

 



Hi!
 
I have configured traffic shaping with htb and imq but when i am downloading the latency for example on the Bnet class is very high .....
example:
 
65 kb/s download
best latency: 56ms
lateny on bnet class while downloading: 400 350 250 350 400 100 300 200 80 200 300 250 .....
To get informations about latency i am marking ping packets with iptables.
 
I want to play during other users downloading and i want to keep my voicechat useable ... i need low latency
 
It would be nice if you could help ...
 
I am happy about every answer :)
 
using: gentoo p200mmx 64mb ram 2.4.20 kernel
 
my script:
 
### Traffic Shaper
 
## down 768kbit
## up   128kbit
 
tc qdisc add dev $EXTIF root handle 1:0 htb default 13
tc class add dev $EXTIF parent 1:0 classid 1:1 htb rate 16kbps ceil 16kbps prio 0
# Gamevoice
tc class add dev $EXTIF parent 1:1 classid 1:11 htb rate 3kbps ceil 14kbps prio 0
# Bnet
tc class add dev $EXTIF parent 1:1 classid 1:12 htb rate 7kbps ceil 14kbps prio 1
# Normal
tc class add dev $EXTIF parent 1:1 classid 1:13 htb rate 3kbps ceil 14kbps prio 6
# Edonkey
tc class add dev $EXTIF parent 1:1 classid 1:14 htb rate 2kbps ceil 5kbps prio 7
 
tc qdisc add dev $IMQIF root handle 1:0 htb default 13
tc class add dev $IMQIF parent 1:0 classid 1:1 htb rate 86kbps ceil 86kbps prio 0
# Gamevoice
tc class add dev $IMQIF parent 1:1 classid 1:11 htb rate 3kbps ceil 84kbps prio 0
# Bnet
tc class add dev $IMQIF parent 1:1 classid 1:12 htb rate 7kbps ceil 84kbps prio 1
# Normal
tc class add dev $IMQIF parent 1:1 classid 1:13 htb rate 45kbps ceil 84kbps prio 6
# Edonkey
tc class add dev $IMQIF parent 1:1 classid 1:14 htb rate 24kbps ceil 50kbps prio 7
 
# Gamevoice
tc filter add dev $EXTIF parent 1: prio 0 protocol ip handle 11 fw flowid 1:11  
# Bnet
tc filter add dev $EXTIF parent 1: prio 0 protocol ip handle 12 fw flowid 1:12  
# Edonkey
tc filter add dev $EXTIF parent 1: prio 0 protocol ip handle 14 fw flowid 1:14
 
# Gamevoice
tc filter add dev $IMQIF parent 1: prio 0 protocol ip handle 21 fw flowid 1:11  
# Bnet
tc filter add dev $IMQIF parent 1: prio 0 protocol ip handle 22 fw flowid 1:12  
# Edonkey
tc filter add dev $IMQIF parent 1: prio 0 protocol ip handle 24 fw flowid 1:14
 
greetz
ExElNeT

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