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.

Share/Save/Bookmark


Posted by Steve (82.41.xx.xx) on Tue 11 Jan 2005 at 13:27
[ 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 ]

Posted by yaarg (81.178.xx.xx) on Tue 11 Jan 2005 at 17:08
[ Send Message | View Weblogs ]
Thanks for the article on tcng that looks good. I'll try it now and see what happens..

[ Parent | Reply to this comment ]

Posted by Anonymous (194.254.xx.xx) on Tue 11 Jan 2005 at 16:27
Trickle is a voluntary, cooperative bandwidth shaper. it works entirely in userland and is very easy to use. The most simple application is to limit the bandwidth usage of programs. trickle -u 10 -d 20 ncftp -d Limit the download bandwidth consumption to rate KB/s. -u Limit the upload bandwidth consumption to rate KB/s.

[ Parent | Reply to this comment ]

Posted by Anonymous (203.45.xx.xx) on Wed 12 Jan 2005 at 00:44
Quick and easy way :
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 ]

Posted by Anonymous (69.8.xx.xx) on Wed 12 Jan 2005 at 14:23
Which is exactly what the wondershaper was designed to do.
Note that its purpose is to be an entry level shaper, nothing complex.

[ Parent | Reply to this comment ]

Posted by gna (212.40.xx.xx) on Fri 14 Jan 2005 at 12:15
[ Send Message | View Weblogs ]
shaperd package exists in Debian, it uses iptables, and also userland daemon (i think)

[ Parent | Reply to this comment ]

Posted by Anonymous (193.237.xx.xx) on Fri 14 Jan 2005 at 20:48
"Keep ssh and http useable whilst doing downloads...."

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 ]

Posted by Anonymous (67.83.xx.xx) on Sun 20 Apr 2008 at 21:35
You most certainly CAN shape incoming traffic! Especially if it's TCP traffic. This is what TCP congestion control does. Go read up on RED and its ilk. Basically, you start dropping packets with increasing frequency as you exceed the desired throughput limit, where that limit can change depending on higher priority traffic, and TCP congestion avoidance/control multiplicatively reduces the rate of transmission appropriately until you're below the limit again, additively increasing it until it exceeds again. Rinse, repeat. Since the increase is additive and symmetric, you spend half of your time above and half below the desired limit.

[ Parent | Reply to this comment ]

Posted by simms (69.157.xx.xx) on Tue 31 May 2005 at 02:49
[ Send Message ]
i'd have to say wondershaper is the way to go if 'simple' is what you want. it works invariably well.

[ Parent | Reply to this comment ]

Posted by Anonymous (82.208.xx.xx) on Tue 30 Aug 2005 at 10:03
for simple traffic shaping but only for the programs you use on your computer I recomand pyshaper which has also if you want a interface to set it up. The config is easy. It's a shame there is not a similar program to it but for servers. If anyone knows one please tell me

[ Parent | Reply to this comment ]

Posted by Anonymous (198.11.xx.xx) on Fri 9 Feb 2007 at 16:50
It kind of depends on how much you want to spend. There are plenty of products out there, but some can cost a lot. From what I've heard, Netequalizer is pretty effective and also affordable.

[ Parent | Reply to this comment ]

User Login

Username:

Password:

[ Advanced Login ]

Register Account

Quick Site Search