Interview Prep/Networking/Command-Line Tools & Diagnostics

How does traceroute work and how do you read the output?

BeginnerConceptCommand-Line Tools & Diagnostics
Answer

It sends probes with increasing TTL and records the ICMP Time Exceeded replies, listing each hop with three RTTs. Stars (* * *) mean a hop did not reply, often just ICMP rate limiting, not a failure; what matters is whether later hops respond.

traceroute -n 8.8.8.8
traceroute -T -p 443 example.com     # TCP SYN probes, passes more firewalls
All Networking questions Roadmap: Networking for DevOps

More on Command-Line Tools & Diagnostics