netscrew.dev/playbooks/hops
Networking concepts

Hops and TTL — how many routers away, and what the TTL gives away

Every router a packet crosses decrements its TTL. From the reply's TTL you can count the hops and usually name the remote OS.

Read it offline, in your terminal:n -h hops

How it works. Every packet starts with a *time to live* (TTL) and each router it crosses subtracts one; at zero it's discarded (that's how traceroute works — it sends packets with TTL 1, 2, 3… and listens for the routers that discard them).

Reading a reply's TTL. Operating systems start at fixed values: 64 (Linux, macOS, most network gear's *replies*), 128 (Windows), 255 (Cisco/BSD and some routers). A reply with TTL 128 came from a Windows host with no routers in between; TTL 61 came from a Linux host three routers away. n check and n bench print this inference.

What hops tell you

See the path