Rapid-fire: how do you simulate latency and loss on an interface for testing?
IntermediateProductionRapid-Fire Commands
Answer
sudo tc qdisc add dev eth0 root netem delay 80ms 10ms loss 0.5%
sudo tc qdisc del dev eth0 root
Always test in a sandbox; deleting the qdisc restores normal behavior.
More on Rapid-Fire Commands
Rapid-fire: how do you see which process listens on port 443?BeginnerRapid-fire: how do you check DNS resolution against a specific server?BeginnerRapid-fire: how do you measure where time goes in an HTTPS request?BeginnerRapid-fire: how do you find the route and source IP used to reach 10.1.2.3?BeginnerRapid-fire: how do you test TCP reachability without telnet?BeginnerRapid-fire: how do you show the TLS certificate expiry of a live site?Beginner