| 1 | Source port number (UDP service ID for sender of this packet) |
|||||||||||||||
| 2 | Destination port number (UDP service ID for receiver of this packet) |
|||||||||||||||
| 3 | UDP packet length (byte length includes UDP header and data) |
|||||||||||||||
| 4 | UDP checksum (UDP header and data and portions of IP header included) |
|||||||||||||||
| 1 | Source port number (TCP service ID for sender of this packet) |
|||||||||||||||
| 2 | Destination port number (TCP service ID for receiver of this packet) |
|||||||||||||||
| 3 | TCP sequence number | |||||||||||||||
| 4 | (byte count of data sent by source, starting at random value) | |||||||||||||||
| 5 | Acknowledgment number | |||||||||||||||
| 6 | (this is the sequence number of the last data byte received from destination) | |||||||||||||||
| 7 | TCP header length (offset data, in 32-bit words) |
Reserved (6 bits in length) |
TCP option bit flags | |||||||||||||
| 8 | Current TCP window size (amount of data sender is willing to accept in bytes) |
|||||||||||||||
| 9 | Checksum | |||||||||||||||
| 10 | Urgent data pointer (byte offset into data to last urgent data byte) |
|||||||||||||||
| 11 | Options and padding (length varies, to calculate: (TCP header length - 5) * 4 bytes ) |
|||||||||||||||
| URG | ACK | PSH | RST | SYN | FIN |
|
|
| 1 | Type | Code | ||||||||||||||
| 2 | Checksum | |||||||||||||||
| 3 | Pointer | Reserved | ||||||||||||||
| 4 | Reserved | |||||||||||||||
| 5 | Data: Internet header + 64 bits of original datagram header | |||||||||||||||
| ... | (the IP packet that generated this ICMP message) | |||||||||||||||
| Type | Description | Code | Description |
|---|---|---|---|
| 0 | echo reply | 0 | unused; data is returned from echo request |
| 3 | Destination unreachable | 0 | Network unreachable |
| 1 | Host unreachable | ||
| 2 | Protocol unreachable | ||
| 3 | Port unreachable | ||
| 4 | Flag needed but IP df set | ||
| 5 | Source route failed | ||
| 4 | Source quench | 0 | unused |
| 5 | Redirect | 0 | Network redirect |
| 1 | Host redirect | ||
| 2 | Type of service net redirect | ||
| 3 | Type of service host redirect | ||
| 8 | Echo request | 0 | unused |
| 9 | Router solicitation | 0 | unused |
| 10 | Router advertisement | 0 | unused |
| 11 | Time exceeded | 0 | IP time-to-live exceeded |
| 1 | flag reassembly timeout | ||
| 12 | Parameter problem | 0 | Pointer field in ICMP header indicates error |
| 13 | Request time | 0 | unused |
| 14 | Reply time | 0 | unused |
| 15 | Information request | 0 | unused |
| 16 | Information reply | 0 | unused |
| 17 | Address mask request | 0 | unused |
| 18 | Address mask replyt | 0 | unused |
| 1 | IP version (current version:4) |
IP Header length (in 32-bit words) |
Type of service | |||||||||||||||
| 2 | Total packet length (in bytes from the beginning of IP header) |
IP packet ID number (packet serial number) |
||||||||||||||||
| 3 | Fragment bit flags | IP fragment offset (location of this packet fragment in original packet, in 8-byte units) |
||||||||||||||||
| 4 | Time to live (maximum router hops remaining) |
Transport protocol (ICMP:1, IGMP:2, TCP:6, UDP:17) |
||||||||||||||||
| 5 | Header checksum (Note: Only the header is checksummed) |
|||||||||||||||||
| 6 | Source IP address | |||||||||||||||||
| 7 | (4-byte IP address for host from which the packet originated) | |||||||||||||||||
| 8 | Destination IP address | |||||||||||||||||
| 9 | (4-byte IP address of the host where the packet is going) | |||||||||||||||||
| 10 | IP options (Length of this part is usually 0 but may vary) |
|||||||||||||||||
| precedence | delay | through put |
relia bility |
reserved | |||
| 0 | 0 | 0 | |||||
| 0 | IP | # internet protocol, pseudo protocol number |
| 1 | ICMP | # internet control message protocol |
| 2 | IGMP | # internet group management protocol |
| 6 | TCP | # transmission control protocol |
| 17 | UDP | # user datagram protocol |
| value=0: do not copy to fragments | value=1: copy to fragments |
| value=0: control class | value=1: debug and measurement class |
| value=0: end of list | value=1: NOP | |
| value=2: security | value=3: loose resource routing | |
| value=4: internet timestamp | value=7: record route | |
| value=8: stream ID | value=9: strict source routing |