linux poison RSS
linux poison Email

Bandwidth Shaping using wondershaper

Traffic shaping on Linux system used to require knowledge of lot of things like iptables, qdiscs & networking protocols. Things have changed and now there are couple of tools which handle all of this complexity without requiring much knowledge. And one of them is wondershaper.

First install wondershper before using any of the command mentioned below also, you need to be root.

1) Use ifconfig to determine which of your networkcards is connected to internet.

# ifconfig

2) Time to shape the bandwidth--

# wondershaper

Where interface name is your network interface name like eth0 or eth1 or wifi0 and down speed , up speed are specified in kilo bits per second.

So sample command will look like

# wondershaper eth0 128 64

3) To disable wondershaper from controlling particular interface use following command.

# wondershaper clear eth0

4) To make these changes permanent add following lines to network file

up /sbin/wondershaper
down /sbin/wondershaper clear


craigarno said...

"there are couple of tools which handle all of this complexity without requiring much knowledge"

Could you provide the names of these tools? The only one I've heard of is Wondershaper.

Wondershaper is missing a few useful features like dynamically adjusting to changing -real- bandwidth (to address large ISP data buffers), breaking up large P2P data packets to reduce jitter and latency for VoIP (Link Fragmentation and Interleaving), and using compressed headers (Realtime Transport Protocol Header Compression) for VoIP protocols to significantly reduce VoIP packet overhead.

Maybe these other tools can address some of these additional issues?

Post a Comment

Related Posts with Thumbnails