IPV4数据包

IPV4数据包

IPV4包格式

1
2
3
4
5
6
7
8
9
|以太网头部|IP头部|TCP头部|用户数据|以太网尾部|


| Version | Header Length | Type of Service | Total Length    |
| Identification          | Flags           | Fragment Offset |
| TTL                     | Protocol        | Header Checksum |
| Source IP Address(4byte)                                    |
| Destination IP Address(4byte)                               |
| Options                                   | Padding         |

Version

1
2
v4
v6

Header Length

1
20-60

TTL

  • TTL: Time To Live,生存周期,每经过一个路由器减1
1
0-255

Protocol

1
2
3
1:ICMP
6:TCP(TELNET)
17:UDP