Question: Simple traffic shaping?
Posted by yaarg on Tue 11 Jan 2005 at 12:41
Does anyone out there have a easy to setup traffic shaping mechanism? Specfically I want to keep things like http and ssh useable while maintaining downloads in the background.
I've read the contents of Linux advanced routing and traffic control but I've yet to come up with anything that yields any kind of performance. :-(
Thanks in advance.
[ Send Message | View Steve's Scratchpad | View Weblogs ]
This article discusses using tcng with Debian, and has examples.
I've not used tcng itself, just tc, so I can't say how well that works.
There's another guide which briefly covers the same material and HTBH here.
I hope those are useful - if not I'll dig out the scripts I use with raw tc - mostly based on examples, I find it hard to understand how the queues work and am just happy it works!
Steve
-- Steve.org.uk
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
Just change the marking packet rules of iptable in order to tag what you want :
http://roback.cc/howto/bandwidth.html (english version)
http://sylvestre.ledru.info/howto/bandwidth.php (french version)
[ Parent | Reply to this comment ]
Note that its purpose is to be an entry level shaper, nothing complex.
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
I assume this is from a typical enduser client system? Remember the downloads are mostly "incoming", and you can't readily shape incoming traffic, as you want to shape at the bottleneck (or earlier), in this case probably the ISPs router.
As regards traffic shaping, the LART HOWTO has everything, it is a bit heavy, but it rewards the persistent reader. The only problem is my memory is terrible and I have to reread it every time I revisit traffic shaping.
Some interactive applications set priority bits on packets, if these are set (tcpdump is your friend) the ISP router should chuck download packets out of queue in a perfect world. Might be worth looking, and asking your ISP, if their routers respect these packets.
There are a few ways of slowing downloads, but they aren't elegant, and I've never found the need.
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]