What the header tells you
The first 20 bytes form the minimum IPv4 header. Options can extend it, which is why the Internet Header Length field matters when locating the payload.
| Field | Purpose |
|---|---|
| Version | Identifies IPv4 as version 4. |
| Total length | Measures the complete datagram, header and payload. |
| TTL | Limits how long a datagram may be forwarded. |
| Protocol | Identifies the next protocol, such as ICMP or TCP. |
| Source / destination | Provides the endpoint addresses used for delivery and replies. |