Re:Speedbump: TCP proxy for simulating variable, yet predict...
by tomohawk on Sunday July 31, 2022 @04:55AM
(#32294305)
How does this compare with the built-in netem in linux?
[ Parent
| on HN ]
Re:Speedbump: TCP proxy for simulating variable, yet predict...
by kffl on Sunday July 31, 2022 @06:53AM
(#32294726)
netmem allows for traffic shaping at the kernel-level, whereas speedbump operates on a TCP connection level.
While netmem can be used for adding a fixed delay to network traffic (or a randomly generated one for each packet following a given distribution), speedbump can be used for introducing latency that changes predictably over time (i.e. forming a sawtooth wave or a sine wave), which was particularly desirable in my use case (testing app instrumentation). On the flip side, netmem can simulate packet loss, which speedbump can't do.