3 ms·
It's actually trivial to simulate a high-latency low bandwidth network on Linux with the traffic control subsystem, one need not switch networks at all. tc q
by jakogut 3y ago
It's actually trivial to simulate a high-latency low bandwidth network on Linux with the traffic control subsystem, one need not switch networks at all.
tc qdisc change dev enp1s0 root netem delay 300ms 200ms loss 10% 80%
This command delays all packets in and out of the wired interface enp1s0 300ms, +/- 200ms, with 10-80% packet loss.
- dataflow 3y agoWhere's the low bandwidth portion of the command?
- notTooFarGone 3y agoYou can also limit interfaces with TC to a certain bandwidth. It's super easy!
- throwfaraway398 3y agoall packets in and out Are you sure about that ? According to man tc, it only works on egress.
- jakogut 3y agoNope, I would definitely trust the man page.