
tcconfig – A simple tc command wrapper tool.
tcconfig is a A simple tc command wrapper tool. Easy to setup traffic control of network bandwidth/latency/packet-loss/packet-corruption to network interfaces.
Traffic control features
+ Trafic shaping target
Apply traffic shaping rules to specific target:
+-+ Outgoing/Incoming packets
+-+ Certain IP address/network or port
Available parameters
The following parameters can be set to network interfaces.
– Network bandwidth rate [G/M/K bps]
– Network latency [milliseconds]
– Packet loss rate [%]
– Packet corruption rate [%]
Dependencies:
* Linux packages
– iproute/iproute2 (mandatory: required for tc command)
– iptables (optional: required to when you use –iptables option)
* Linux kernel module
– sch_netem
Latest change v0.11.0 6/7/2017:
+ Add –duplicate/–reordering options: #67 (Thanks to @Sir-Nightmare)
+ Make tcset/tcdel commands executable without tc command installed when –tc-command/–tc-script options are used.
Install:
1 2 3 4 5 6 7 8 |
git clone https://github.com/thombashi/tcconfig && cd tcconfig cd requirements pip2 install -r requirements.txt cd .. sudo python2 setup.py install Installing from PyPI sudo pip install tcconfig |
Source: https://github.com/thombashi