利用tc来做网络延时的模拟

来源:互联网 发布:邮箱客户端 知乎 编辑:程序博客网 时间:2024/05/17 05:11
To add 100ms to all outbound traffic on eth0
tc qdisc add dev eth0 root netem delay 100ms

To check status
tc -s qdisc

To remove the delay from eth0

tc qdisc del dev eth0 root


mark一下,原文地址

http://purefinity.blogspot.com/2009/01/simulating-network-delay-using-linux.html