"The netem queue discipline provides Network Emulation functionality for testing protocols by emulating the properties of real-world networks.
The queue discipline provides one or more network impairments to packets such as: delay, loss, duplication, and packet corruption."
[0] https://man7.org/linux/man-pages/man8/tc-netem.8.html
I mean this in the sense that it can’t even emulate a “long cable” properly.
I’ve tried both the Linux and BSD tools mentioned by others here and they’re all very old, weird, and difficult.
"The netem queue discipline provides Network Emulation functionality for testing protocols by emulating the properties of real-world networks.
The queue discipline provides one or more network impairments to packets such as: delay, loss, duplication, and packet corruption."
[0] https://man7.org/linux/man-pages/man8/tc-netem.8.html