Wondershaper is actually a shell script that usesTcto define traffic-tuning commands and use QoS to handle specific network interfaces. Outbound traffic is designed to limit the rate of outgoing traffic by placing it in a queue of different priorities, and incoming traffic is lost to the rate limit.
In fact, Wondershaper's set goal is not just to increase its bandwidth limit on an interface; when bulk download or upload is in progress, Wondershaper also tries to keep interactive sessions such as SSH low latency. Also, it controls bulk uploads (for example, Dropbox syncing) without "choking" the download and vice versa.
Install Wondershaper in Ubuntu Debian and its derived distributions:
sudo Install Wondershaper
Install Wondershaper in Fdora or Centos/rhel (with EPEL repositories):
sudo Yum Install Wondershaper
The basic use of Wondershaper is as follows:
sudo wondershaper <interface> <download-rate> <upload-rate>
For example, the eth0
maximum download/upload bandwidth is set to 1000KBIT/S and 500kbit/s, respectively:
sudo the
You can also eliminate the rate limit by running the following command:
sudo Clear eth0
If you are interested in the operating principle of wondershaper, you can read its shell script source file (/sbin/wondershaper).
Ps:
Http://www.linuxidc.com/Linux/2015-03/115538.htm
Use Wondershaper to limit network bandwidth usage in Linux