tc 可以模拟各种网络异常,例如数据包重放:
tc qdisc replace dev eth0 root netem duplicate 100%
之后 ping 可见 DUP 重复,抓包也一样。
对于流量充足但丢包严重的 VPS ,这种方案效果明显吗?