There is an extensive and nicely written HOWTO on this topic but here I'm talking about some really easy to use bandwidth shaping tools -- wondershaper and trickle.
Wondershaper
This is the easiest tool I have found to limit bandwidth of a particular interface. All it takes is,
the {down} and {up} are bandwidth in kilobits. So for example if you want to limit the bandwidth of interface eth1 to 256kbps uplink and 128kbps downlink,
$ sudo wondershaper {interface} {down} {up}
To clear the limit,
$ sudo wondershaper eth1 256 128
Easy, eh?
$ sudo wondershaper clear eth1
Trickle
Unlike wondershaper, which limits the bandwidth to an entire interface, trickle is user-space bandwidth limiting tool. The syntax is,
Both {up} and {down} and bandwidth in KB/s. Now if you invoke it as,
$ trickle -u {up} -d {down} {program}
It will fire up Firefox, limiting the bandwidth to 8KB/s. This is very useful specially if you are a web developer and want to test your application under various bandwidth conditions.
$ trickle -u 8 -d 8 firefox
Furthermore, you can also run trickle as daemon (trickled) which can limit the bandwidth to several programs.
Short Sweet and Daami Article,
ReplyDeleteMalai chahi man paryo.
I would have implemented, but Ghataune po parecha, badhaune bhayeko bhaye ta sure.
i have an issue regarding this..
ReplyDeletewhen i download stuffs from p2p such as transmission bittorent, most of the bandwidht is consumed resulting in slow browsing...is it possible to seperate bandwidth to p2p and browsing, such that i would not experience slow browsing when downloading...or something like that??
you can limit b/w specific to ports using hbq or cbq. see this: http://blog.kovyrin.net/2006/04/06/5min-guide-to-linux-shaping-htb/
ReplyDeletenice stuff yaar ! काम लाग्ने चिज हो यो !
ReplyDeleteyou have a nice site. thanks for sharing this enormous resources. keep it up. anyway, various kinds of ebooks are available here
ReplyDeletehttp://feboook.blogspot.com
Thanks for the info..was a gr8 help
ReplyDeletethanks for sharing this, trickle is better solution on CentOS though :)
ReplyDeleteRegards,
Vidmate App
Interesting reaad
ReplyDelete