I've got a simple setup at home with a linux box (ubuntu gutsy) connected to a router and clients sitting behind it.
Now, I want to make sure that voip, web serfing etc. don't degrade in case something large gets downloaded in the meantime.
Here's the sample setup:
Code:
# master classful queue with 5 bands, by default all the traffic goes to band #5
tc qdisc add dev ppp0 root handle 1: prio bands 5 priomap 4 3 3 3 3 3 3 3 2 2 2 2 2 2 2 1
# handlers
tc qdisc add dev ppp0 parent 1:1 handle 10: sfq
tc qdisc add dev ppp0 parent 1:2 handle 20: sfq
tc qdisc add dev ppp0 parent 1:3 handle 30: sfq
tc qdisc add dev ppp0 parent 1:4 handle 40: sfq
tc qdisc add dev ppp0 parent 1:5 handle 50: sfq
sudo tc filter add dev ppp0 protocol ip parent 1: prio 1 u32 match ip dport 22 0xff flowid 1:1
sudo tc filter add dev ppp0 protocol ip parent 1: prio 1 u32 match ip sport 80 0xff flowid 1:1
As far as I understand, 1:1 (which would be 0 in priomap) should get dequeued first, no matter what happens "above".
Now, though
tc -s qdisc ls dev ppp0 shows that packets go through this queue (and all the other go through 1:5, just as expected), I see no performance/latency improvements at all. How could this be? Feels like I'm getting something terribly wrong.
Any thoughts?
TIA.