A tool that sends packets whose TTL (hop limit) starts at 1 and grows. Each router that drops a packet because the TTL reached zero answers with an ICMP message, which reveals that hop. See TTL and ICMP.
traceroute
Lists the routers on the path to a host by sending packets with a growing TTL.