How to simulate latency on Linux

Some people asked me (… well, only one person) how was it possible to add latency between hosts in one of my previous articles about the effects of latency on throughput. When I decided to write the article, my searches led me to tc: Adding Simulated Network Latency To Your Linux Server. Of the different options available, this looked like the best one since there was no need to use a middlebox between the hosts.

How does it work? Continue reading