版本(Version):4位。IP版本号。
包头长(IHL):4位。以4字节为单位,如0101表示IP包的包头长度20字节。
服务类型(TOS,Type of service):1字节。指示路由器如何处理该数据包。
总长(Total Length):2字节。IP数据包的总长度。
标识(Identification):2字节。系统范围内,每发出一个IP包,其值自动增加1。
分段标志:
1、保留位:1位
2、不分段(DF,Don't Fragment):1位
3、更多段(MF,More Fragments):1位
4、分段偏移:13位。
生命期(TTL,Time to live):1字节。每经过1个路由器,其值自动减1。
负载协议:1字节。IP数据包负载的协议。
头部校验和(Header checksum):2字节。只校验头部校验和,不包括负载。
源地址(Source address):4字节。
目标地址(Destination address):4字节。
选项(Options):长度可变。选项列表www.iana.org/assignments/ip-parameters