Lion Cipher Lab

Troubleshoot network performance with iperf3, mtr and tc netem

Why it matters

Users do not say 'we have 2 percent loss on the second hop'. They say 'it is slow'. Turning that into a measurement is the core of network troubleshooting: is it delay, loss, jitter or not enough bandwidth, and where along the path does it start? Each of those faults looks different in a tool, and the only way to learn to tell them apart is to see them when you know the cause. With netem you can cause each one yourself, safely, then read it back with the same tools you would use at work.

What you'll learn

Steps in this lab

  1. Four ways a network can be slow
  2. Build the bench: client, router and server
  3. Measure a baseline first
  4. Fault 1: add delay on the router, then locate it with mtr
  5. Fault 2: add loss, and see TCP and UDP react differently
  6. Fault 3: add jitter and read the spread
  7. Fault 4: cap the bandwidth and find the bottleneck
  8. A method you can reuse, and what a professional does differently
  9. Clean up

Open the full interactive lab →

Keep learning