QoS, tc, cbq...

Haden

Senior member
Nov 21, 2001
578
0
0
I've been reading "Advanced Routing for Linux" for several hours now but I still can't do simple priority stuff: just to pump http priority high so browsing is fast while imesh/kazaa is flooding link.
I've learned how to cap bandwidth, limit rate for user/protocol, but I don't get how to alter priority.
Any links (google is useless so far) or even better, example? I've got my hair falling of :)

TIA
 

gaidin123

Senior member
May 5, 2000
962
1
0
Take a look at the cookbook wondershaper examples in the howto at www.lartc.org. Basically you split up your upstream into 2 qdiscs: one gets 90% of your upstream, the other gets 100%. In effect you leave 10% of your upstream for high priority traffic. Then it's simply a matter of prioritizing traffic destined for port 80 into the higher priority queue and your web surfing will get top priority.

If you don't have htb support working in your tc and your kernel then just use the cbq one for you. HTB is a good deal more accurate and simpler to use than CBQ but HTB can be a bit of a pain to get working since you need to patch/reinstall both your kernel and your iproute2 tools.

If you continue to have problems post them here. I know it took me a long time to get the linux traffic shaping stuff working the way I wanted. :)

Good luck,
Gaidin
 

Haden

Senior member
Nov 21, 2001
578
0
0
Thanks!
I think I got it (more or less :) ) finally, wonder script is very good example.