tcconfig
tcconfig is a simple tc (traffic control) command wrapper.
pip install tcconfig
usage: tcset [-h] [--version] [--time-measure] [--logging] [--stacktrace]
[--debug | --quiet] --device DEVICE [--rate RATE] [--delay DELAY]
[--loss LOSS] [--overwrite]
optional arguments:
-h, --help show this help message and exit
--version show program's version number and exit
--debug for debug print.
--quiet suppress output of execution log message.
Miscellaneous:
--time-measure measuring execution time.
--logging suppress output of execution log files.
--stacktrace display stack trace when an error occurred.
Traffic Control:
--device DEVICE network device name
--rate RATE network bandwidth [K|M|G bps]
--delay DELAY round trip network delay [ms] (default=0)
--loss LOSS round trip packet loss rate [%] (default=0)
--overwrite overwrite existing setting
# tcset --device eth0 --rate 100k
# tcset --device eth0 --delay 100
# tcset --device eth0 --loss 0.1
# tcdel --device eth0