Interview Prep/Networking/Performance, MTU, Latency & Tools

Latency, bandwidth and throughput: what is the difference and why does it matter?

BeginnerScenarioPerformance, MTU, Latency & Tools
Answer

Situation read → People mix these up and then buy bandwidth to fix a latency problem.

What I'd do →

  1. Latency is the time for a packet to travel (RTT in ms)
  2. Bandwidth is the link capacity (Mbps or Gbps)
  3. Throughput is what you actually achieve, limited by latency, window size, loss and CPU
  4. Measure RTT with ping -c 10 host and throughput with iperf3 -c host
  5. A 1 Gbps link with 200 ms RTT still gives slow single-stream transfers

Why → TCP needs acknowledgements, so high RTT caps throughput regardless of link speed.

Interview tip → Say the formula: throughput is at most window size divided by RTT.

All Networking questions Roadmap: Networking for DevOps

More on Performance, MTU, Latency & Tools