PoiNtEr->: Controlling Bandwidth in Linux (ubuntu) using Trickle

                             Difference between a dream and an aim. A dream requires soundless sleep, whereas an aim requires sleepless efforts.

Search This Blog

Monday, December 26, 2011

Controlling Bandwidth in Linux (ubuntu) using Trickle




Trickle is a portable lightweight userspace bandwidth shaper. It can run in collaborative mode (together with trickled) or in stand alone mode.
trickle works by taking advantage of the unix loader preloading. Essentially it provides, to the application, a new version of the functionality that is required to send and receive data through sockets. It then limits traffic based on delaying the sending and receiving of data over a socket. trickle runs entirely in userspace and does not require root privileges.

To install trickle in Ubuntu:


sudo apt-get install trickle


To start Firefox with a limit to the amount of bandwidth it consumes all you have to do is type in the command line.


trickle -d 200 firefox
this would start Firefox with a download limit of 200KB/s.

No comments:

Post a Comment