QoS Problem kernel 2.4.21 to 2.4.23-pre6
Hi,
I'm using QoS with a wonder shaper style script in order to manage my bandwith.
I modified the initial script for my type of prefered traffic...
When i did it, it was on a 2.4.21 kernel and it worked perfectly !
Recently i upgraded my kernel to 2.4.23-pre6 all works well as before but my optimisation for the gaming traffic (Quake3) doesnt't work now...
I recompiled tcng for my new kernel but it does nothing better. With this optimisation i was able to upload and play with a good ping, even if i just play with no more traffic i had 10ms less than without this optimisation.
I don't understand what is happening...
the version of HTB for kernel 2.4.23-pre6:
HTB init, kernel part version 3.13
On the HTB homepage they give a precompiled binarie of tc with the good htb version 3 code.
I tried it, nothing better...
I have no errors when i'm running my script but the priority for the gaming class don't works at all now.
Does anyone have a suggestion ?
Here is a part of my script (on the 2.4.21 kernel version it worked perfectly):
DOWNLINK=2048
UPLINK=350
DEV=eth0
tc qdisc del dev $DEV root 2> /dev/null > /dev/null
tc qdisc del dev $DEV ingress 2> /dev/null > /dev/null
tc qdisc add dev $DEV root handle 1: htb default 30
tc class add dev $DEV parent 1: classid 1:1 htb rate ${UPLINK}kbit burst 3k
# High priority class 1:10 gaming class and 1:20 other high priority class :
tc class add dev $DEV parent 1:1 classid 1:10 htb rate ${UPLINK}kbit \
burst 16k prio 1
tc class add dev $DEV parent 1:1 classid 1:20 htb rate ${UPLINK}kbit \
burst 6k prio 2
tc class add dev $DEV parent 1:1 classid 1:30 htb rate $[9*$UPLINK/10]kbit \
burst 6k prio 3
tc qdisc add dev $DEV parent 1:10 handle 10: sfq perturb 10
tc qdisc add dev $DEV parent 1:20 handle 20: sfq perturb 10
tc qdisc add dev $DEV parent 1:30 handle 30: sfq perturb 10
# here is the optimisation for Quake3, all UDP traffic on ports 27940 to 27995 is redirected to the 1:10 high priority class
iptables -t mangle -A OUTPUT -o eth0 -p udp --dport 27940:27995 -j MARK --set-mark 1
iptables -t mangle -A INPUT -i eth0 -p udp --sport 27940:27995 -j MARK --set-mark 1
tc filter add dev $DEV parent 1:0 protocol ip prio 1 \
handle 1 fw flowid 1:10
Last edited by Passe; 10-30-2003 at 11:16 PM.
|