Hi,
I have implemented qos at my gateway, mostly for speeding up dns and [video,voice] chat traffic and to slow down p2p traffic. It seems every thing is working properly, as by browsing speed has been improved. But I want to test it by sending various traffic and to see through which qdisc the traffic flows, so that i can be certain that it is working the way I want it to work.
The rules i am using are at the end of the mail.
I also have a problem with msn chat, as it uses h.323 and i want to prioritize rtp and rtcp traffic. I searched a solution for it a lot but nothing came up. Any way I can mark rtp traffic so that it can be redirected to a qdisc?
thanks and regards,
raj
-- #!/bin/sh # eth0 in, eth1 out TCQDSK_CMD="tc qdisc add dev eth1" TCCLAS_CMD="tc class add dev eth1" IPT_CMD="iptables -t mangle -A POSTROUTING -o eth1"
$TCQDSK_CMD root handle 1: htb default 12 $TCCLAS_CMD parent 1: classid 1:1 htb rate 20mbit ceil 20mbit $TCCLAS_CMD parent 1:1 classid 1:10 htb rate 2mbit ceil 2mbit prio 1 $TCCLAS_CMD parent 1:1 classid 1:11 htb rate 16mbit ceil 20mbit prio 2 $TCCLAS_CMD parent 1:1 classid 1:12 htb rate 2mbit ceil 2mbit prio 3 $TCQDSK_CMD parent 1:10 handle 31: pfifo limit 5 $TCQDSK_CMD parent 1:11 handle 35: pfifo limit 5 $TCQDSK_CMD parent 1:12 handle 39: sfq perturb 10
#Hi prio $IPT_CMD -p tcp --tcp-flags SYN,RST,ACK SYN -j CLASSIFY --set-class 1:10 $IPT_CMD -p udp --dport 53 -j CLASSIFY --set-class 1:10 $IPT_CMD -p tcp --dport 22 -j CLASSIFY --set-class 1:10 #Yahoo $IPT_CMD -p udp --dport 5000 -j CLASSIFY --set-class 1:10 $IPT_CMD -p tcp --dport 5050 -j CLASSIFY --set-class 1:10 $IPT_CMD -p tcp --dport 5100 -j CLASSIFY --set-class 1:10 #Skype $IPT_CMD -p udp --sport 59883 -j CLASSIFY --set-class 1:10
#Mid Prio $IPT_CMD -p tcp --dport 21 -j CLASSIFY --set-class 1:11 $IPT_CMD -p tcp --dport 23 -j CLASSIFY --set-class 1:11 $IPT_CMD -p tcp --dport 25 -j CLASSIFY --set-class 1:11 $IPT_CMD -p tcp --dport 80 -j CLASSIFY --set-class 1:11 $IPT_CMD -p tcp --dport 110 -j CLASSIFY --set-class 1:11 $IPT_CMD -p tcp --dport 143 -j CLASSIFY --set-class 1:11 $IPT_CMD -p tcp --dport 443 -j CLASSIFY --set-class 1:11
# low prio is default _______________________________________________ LARTC mailing list / LARTC@xxxxxxxxxxxxxxx http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/