Network Layer (3) - IP
|
Layout of an IP Version 4 (IPV4) packet1 |
|||||||
|
0 |
4 |
8 |
12 |
16 |
20 |
24 |
31 |
|
Version |
Header Len |
Diff. Serv |
Total Length incl. Header |
||||
|
Identification |
Flags (3 bits) |
Fragment Offset (13 bits) |
|||||
|
Time to Live |
Protocol |
Header Checksum |
|||||
|
Source IP Address |
|||||||
|
Destination IP Address |
|||||||
|
Options up to 40 bytes max |
Padding |
||||||
|
|
Version is always 4 |
|
|
Header Length * 32 bits, min is 5 (20 bytes) max is 60 |
|
|
Total length max is 65535 octets |
|
|
Protocol is the layer 4 value (e.g., TCP is 6, UDP is 0x11) |
|
|
Checksum is rewritten by every router. See RFC 1071 |
|
|
IPV6 replaces IPV4 specifically with 128 bit addresses |
1Visit http://www.spacerobots.org/dennis/ for a mostly accurate explanation of each field