Concepts / Routers and routes

Routers and routes

TTL

Also called time to live, hop limit

A counter in every IP packet, lowered by each router; at zero the packet is dropped.

It stops packets from circling forever in a routing loop. The router that drops a packet sends an ICMP time exceeded back, which is what traceroute relies on. A reply's TTL hints at how many routers it crossed: 64 minus the hops, for Linux senders.

Each probe stops one router further
Each probe stops one router further

Every router takes one off the TTL; the one that takes it to 0 drops the packet and sends back time exceeded. From the Routing tables: how a router picks one line out of many lab.

See it on real machines

Read next

Learn it on real machines.

Every lab is a small network of real Linux machines in your browser. Sign in with Google or email to start.

Start this lab