Thursday, November 26, 2015

Simulating Network TCP Delay Using Linux Commands

Keep in mind that this only works for outbound traffic, so choose your network interface accordingly.

To add 100ms to all outbound traffic on etho

sudo tc qdisc add dev eth0 root netem delay 100ms

To check status

sudo tc -s qdisc

To remove the delay from eth0

sudo tc qdisc del dev eth0 root






No comments:

Post a Comment