Which part is the delivery label?
02Count header groups and packet bytes, then change a bit inside or outside the error check.
PINGPONG is eight example data bytes. Add an IP header before it: the part routers read to move the packet.
Delivery instructions come before the note
The two regions above are proportional to their byte counts.
What happens if you change this?
Make one change, then watch again. Restart restores the original example.
Check header integrity separately from payload integrity.
Key idea: Header length, whole-packet length and header-only error checking answer three different questions.
Terms
- IPv4
- Internet Protocol version 4: carries individually addressed packets between networks.
- Header
- The information at the start used to handle the carried data.
- Router
- A computer that chooses the next link for packets travelling between networks.
- MTU
- The largest whole IP packet that fits on the link being discussed.
- Fragment
- One smaller piece of a split IP packet, with its own header.
Rules & examples
The IP header check protects the header, not the carried data.
These reference examples may differ from the selected experiment.
- IHL counts 32-bit header words; Total Length includes header and data.
- The header checksum covers the header, not the application payload.
The drawing is a simplified worked example. Follow the linked RFC and its updates for implementation requirements.
RFC 791 §3.1: version 4, IHL in 32-bit words (four bytes), minimum 5; Total Length includes this header plus data. Our headers are 20 or 24 bytes, protocol 253(experimentation), DS byte 0. Four option/padding bytes are NOP,NOP,EOL,zero; this is not a complete option parser. Header checksum is the one’s-complement of the folded 16-bit sum with its field zeroed. Checking the complete received header gives zero after complementing when valid. RFC 2474 replaced the old TOS interpretation; RFC 3168 uses the low two DS-byte bits for ECN. No legacy TOS service promise is taught. Data integrity/security are separate.
Sources
New to this? Start hereA quick picture + helpful background
A message needs an address.
Think of a packet as a small addressed envelope. Devices pass it onward; transport protocols decide what delivery promises an application gets.
Start with this guide; no earlier guide is needed for the overview.
These pictures are analogies to help you learn. The linked RFC explains the actual rules.
Related RFCs and changes
“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.