C SC 481.20 Lecture 10: Internet Protocol (IP)
major resource: Computer Networking (4th Edition),
Kurose and Ross, Addison Wesley, 2008
[ previous | schedule | next ]
Field |
Length in Bits |
Description |
Version |
4 |
IP version number (4) |
Header Length |
4 |
length in 32-bit words |
Service Type |
8 |
tell router to optimize delay, throughput, reliability |
Total Length |
16 |
total datagram length (header+data) in bytes |
Identification |
16 |
datagram I.D. (for reassembling fragments) |
unused |
1 |
|
Don't Fragment |
1 |
whether or not datagram can be split up |
More Fragments |
1 |
0 if this is last fragment of datagram, else 1 |
Fragment Offset |
13 |
fragment I.D. within datagram (0-8191) |
Time To Live |
8 |
init to 255, decrement each hop, discard upon 0 |
Protocol |
8 |
transport layer protocol (e.g. TCP, UDP) |
Header Checksum |
16 |
sum 16-bit chunks of header using 1's complement |
Source IP Address |
32 |
|
Destination IP Address |
32 |
|
IP Options (optional) |
0-240 |
specify options for security, routing, timestamp,... |
Padding (optional) |
0-31 |
Enough to bring header length to 32-bit boundary |
Data |
1-64K bytes |
maximum actually is (64K - header length) bytes. |