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

When do you use ping, traceroute and mtr?

BeginnerScenarioPerformance, MTU, Latency & Tools
Answer

Situation read → Each answers a different question.

What I'd do →

  1. ping tests reachability and RTT to one host
  2. traceroute -n host (or tracepath) shows each hop to find where the path breaks or slows
  3. mtr -rwzc 100 host combines both over time, showing loss and latency per hop
  4. Remember many routers deprioritize ICMP, so loss on a middle hop that doesn't continue to the end is usually noise

Why → Only loss that carries through to the final hop is real loss.

Interview tip → Say you read mtr from the last hop backward.

All Networking questions Roadmap: Networking for DevOps

More on Performance, MTU, Latency & Tools