tcctl
A webui for tc netem
Last updated on
Install & Run
The following operations should be taken as root user.
- Download release zip on OpenWrt and decompress it to /root/tcctl
- Install tc, for example, on OpenWrt using opkg:
opkg update && opkg install tc-full
- Reboot
cd /root/tcctl && chmod +x ./install.sh && ./install.sh
- Done! Go to
http://<host_name>:8080
Usage
- Starts automatically in background when system boots.
- Monitor network traffic by interface.
- Apply limitations on delay, corrupt, duplicate, reorder, packet loss, and data rate via netem.
- Upload trace file and apply limitations according to the trace.
- Switching between manual mode and trace file mode will reset all shaping rules.
- It is recommended to connect to tcctl from a port that’s not been controlled by itself.
Manual Mode
Set network shaping parameters by integer. Click “Submit” to apply the values, if submit multiple times, subsequent submissions will override previous ones. Click “Reset” button to clear all shaping rules to network interface.
Trace File Mode
Set delay(ms), loss(%), rate(Mbps) by floating point number. Select a NIC before upload trace file, click “Start” button to start playback the network trace.
For example
10 1 20
10 1 20
10 1 20
10 1 20
describes a trace that have 10 ms delay, 1% packet loss, and 20 Mbps data rate for 4 seconds (each line represents 1 second). There shouldn’t be blank line in trace file.