DevOps in Linux — Traceroute
Traceroute command introduction
What is traceroute
traceroute
is a widely used command-line utility available in almost all operating systems. It shows you the complete route to a destination address. It also shows the time is taken (or delays) between intermediate routers and prints the route that a packet takes to reach the host.
traceroute
is super useful when you want to know about the route and about all the hops that a packet takes. The following diagram is an example of traceroute
execution flow:
How traceroute works
traceroute
uses the TCP/IP suite of protocols, and sends User Datagram Protocol packets. It leverages a field in Internet Protocol (IP) packet headers that was never really intended for path or route tracing. The header contains the Time to Live (TTL) field, which contains an eight-bit integer value.
This is how it works:
- User invokes the…