1.tc方式
* 清除设备策略:tc qdisc del root dev eth2 2>/dev/null
* 设置设备策略:tc qdisc add dev eth0 root netem loss 5%
tc qdisc add dev eth2 root netem loss 5%
tc qdisc add dev eth2 root netem delay 200ms
tc qdisc add dev eth2 root netem delay 200ms loss 5%
tc qdisc add dev eth2 root netem delay 400ms
2.comcast方式
https://github.com/tylertreat/comcast