What is TTL and how do traceroute and loops relate to it?
BeginnerConceptIP Addressing, CIDR, Subnetting & Routing
Answer
Every IP packet has a Time To Live (hop limit in IPv6) decremented by each router; at zero the router discards it and sends ICMP Time Exceeded. This stops routing loops from circulating forever. Traceroute sends probes with TTL 1, 2, 3… and records which router answers each time.
Typical initial TTLs are 64 (Linux), 128 (Windows) and 255 (network gear), which lets you guess the OS or number of hops from a received TTL.
More on IP Addressing, CIDR, Subnetting & Routing
What is an IPv4 address and how is it structured?BeginnerWhat are the private IPv4 ranges (RFC 1918)?BeginnerWhat is CIDR notation?BeginnerHow many usable hosts are in a /24, and why minus two?BeginnerSubnet 10.0.0.0/16 into /24 subnets. How many do you get and what are the first three?IntermediateGiven 172.16.37.200/21, what is the network address, broadcast and range?Intermediate