When do you use ping, traceroute and mtr?
BeginnerScenarioPerformance, MTU, Latency & Tools
Answer
Situation read → Each answers a different question.
What I'd do →
pingtests reachability and RTT to one hosttraceroute -n host(ortracepath) shows each hop to find where the path breaks or slowsmtr -rwzc 100 hostcombines both over time, showing loss and latency per hop- 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.
More on Performance, MTU, Latency & Tools
Latency, bandwidth and throughput: what is the difference and why does it matter?BeginnerWhat is MTU and what is the usual value?BeginnerHow do you check what is listening on a port and who is connected?BeginnerHow do you measure where time goes in a slow HTTP request?BeginnerWhat does tcpdump do and what are the first filters you use?BeginnerTCP or UDP: how do you choose for an application?Beginner