IP协议

99 阅读1分钟

概述

  • IP Internet Protocol网际协议,工作在网络层,制定了IP数据包的标准。

image.png

数据字段

0100 .... = Version: 4 IP版本 .... 0101 = Header Length: 20 bytes (5) 头部长度 Differentiated Services Field: 0x00 (DSCP: CS0, ECN: Not-ECT) 服务质量,流控 Total Length: 60 总长度 Identification: 0x66ee (26350) 标识,判断分片后的数据是否属于同一组 000. .... = Flags: 0x0 标志,状态 ...0 0000 0000 0000 = Fragment Offset: 0 偏移量 Time to Live: 128 生存时间 Protocol: ICMP (1) 上层协议类型 Header Checksum: 0x5573 [validation disabled] 头部校验和,用于校验头部完整性 Source Address: 192.168.126.134 源IP Destination Address: 192.168.126.136 目标IP

  • TTL(Time to Live):数据包每经过一个路由设备,TTL值会减1,当TTL值为0时,路由器会丢弃该数据包,window系统可以使用netsh interface ip show global查看系统默认TTL值