ARP报文格式

244 阅读1分钟

ARP请求和应答报文格式


主要字段解释如下:

  • Hardware Type:硬件地址的类型。对于以太网,该类型的值为“1”。
  • Protocol Type:映射的协议地址类型。对于IP地址,该值为0x0800。
  • Hardware Length:硬件地址长度。对于ARP请求或应答来说,该值为6。
  • Protocol Length:协议地址长度。对于ARP请求或应答来说,该值为4。
  • OP:操作类型。1表示ARP请求,2表示ARP应答。
  • Ethernet Address of sender:发送方MAC地址。
  • IP Address of sender:发送方IP地址。
  • Ethernet Address of destination:接收方MAC地址。
  • IP Address of destination:接收方IP地址。