Lion Cipher Lab
Troubleshoot network performance with iperf3, mtr and tc netem
- Cyber / Security Engineer
- Intermediate
- ~60 min
- Free · no account required
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
- measuring a baseline with ping, mtr and iperf3 before anything is wrong
- adding delay, loss, jitter and a bandwidth limit on purpose with tc netem
- telling latency, loss, jitter and low bandwidth apart in tool output
- using mtr to say which hop the problem starts at
- explaining why TCP throughput falls when delay or loss rises, and why a UDP test reports loss instead
Steps in this lab
- Four ways a network can be slow
- Build the bench: client, router and server
- Measure a baseline first
- Fault 1: add delay on the router, then locate it with mtr
- Fault 2: add loss, and see TCP and UDP react differently
- Fault 3: add jitter and read the spread
- Fault 4: cap the bandwidth and find the bottleneck
- A method you can reuse, and what a professional does differently
- Clean up
Open the full interactive lab →