The standard IPv4 header without options is always 20 bytes long. Options, if present, increase this size.
The TTL field limits how many routers (hops) a packet can pass through. Each router decreases TTL by one. When TTL reaches zero, the packet is discarded to avoid infinite loops.
IHL of 5 means header length is 5 × 4 = 20 bytes. Total Length is 60 bytes, so payload = 60 - 20 = 40 bytes.
IPv4 headers can vary in length due to optional fields, starting at 20 bytes minimum. IPv6 headers have a fixed length of 40 bytes, with extension headers handled separately.
Routers verify the header checksum to detect errors. If the checksum is incorrect, the packet is considered corrupted and discarded to prevent forwarding bad data.
