什么是地址解析协议?(the address resolution protocol?)

地址解析协议是网络应用程序或设备确定另一设备的以太网地址的一种方法。也称为ARP,它试图将Internet协议(IP)地址与硬件地址匹配。本地网络上的每个设备在第一次与同一网络上的另一个设备通信时使用ARP。...

地址解析协议是网络应用程序或设备确定另一设备的以太网地址的一种方法。也称为ARP,它试图将Internet协议(IP)地址与硬件地址匹配。本地网络上的每个设备在第一次与同一网络上的另一个设备通信时使用ARP。

Address Resolution Protocol tries to match an IP address with a hardware address.

应用程序和网络设备使用协议栈网络层上的数据包进行高层通信。这些数据包被定向到IP地址。当使用数据链路层通过局域网(LAN)发送每个数据包时,还必须知道接收器的以太网地址。IP地址可以动态分配并随时间变化,而以太网地址通常保持不变。应用程序或设备需要一种方法来确定当前与给定IP地址关联的硬件地址。

ARP is used by each device on a local network the first time it communicates with another device on the same network.

地址解析协议定义了发现这些地址的标准方法。ARP由互联网工程任务组(IETF)于1982年记录为征求意见(RFC)826。当系统准备发送IP数据包时,它会查阅最近解析的地址的缓存。如果目标IP地址不在缓存中,它将使用ARP向整个LAN广播消息。此消息请求具有目标IP地址的设备以其以太网硬件地址响应。

该地址解析协议请求包包括请求者的IP和硬件地址,以及所寻求的IP地址。局域网上的每个设备都侦听包含其IP地址的ARP请求包。如果听到一个,匹配设备将组成一个包含其以太网硬件地址的ARP响应包。然后,该响应数据包直接发送给请求者,请求者将地址存储在其ARP缓存中,以供以后重用。响应者还可以将地址存储在其缓存中,因为它可能与请求者进一步通信。

IP版本4(IPv4)和以太网地址是地址解析协议解析的最常见的地址类型。但是,请求数据包通过协议类型和地址长度字段支持其他类型。IP版本6(IPv6)地址通过邻居发现协议(NDP)而不是ARP进行解析。

反向地址解析协议(RARP)为请求者的硬件地址请求一个IP地址。RARP服务器通过分配一个新的IP地址并将其与请求者的硬件地址关联来响应其中一个请求。反向ARP被认为是过时的,其功能包含在动态主机配置协议(DHCP)中。反向地址解析协议请求与给定硬件地址关联的现有IP地址。在这种情况下,硬件地址可以是同一LAN上任何节点的地址。

  • 发表于 2021-12-15 09:22
  • 阅读 ( 154 )
  • 分类:互联网

你可能感兴趣的文章

ip地址(ip)和mac地址(mac address)的区别

...广泛;另一种是在90年代末以128位寻址模式开发的Internet Protocol Version 6(Ipv6)。虽然IP地址是二进制数,通常它以人类可读的格式存储在主机中。因特网分配号码管理机构管理全球IP地址的空间和名称分配。 IP地址有两种类型:...

  • 发布于 2020-11-04 20:17
  • 阅读 ( 345 )

如何在路由器上设置静态ip地址

...e of the things I found among all the settings is a table to set static IP addresses. I’m pretty sure that section is self explanatory in as much as I get that it allows you to give a computer a permanent IP address, but I don’t really understand why? I’ve never used that section before and ev...

  • 发布于 2021-04-07 21:14
  • 阅读 ( 194 )

为什么要将ipv4和ipv6公共地址分配给我的家庭网络?

...r? I ask as I have read about security concerns in relation to certain VPN protocols used in combination with IPv6. 为什么要将IPv4和IPv6公共地址分配给同一个家庭网络? 答案 超级用户贡献者Bob为我们提供了答案: What is the purpose of assigning one of each type t...

  • 发布于 2021-04-09 23:20
  • 阅读 ( 203 )

公共IP是唯一的吗?

...s to be more flexible about the original one-to-one communication Internet protocol paradigm that allows one-to-nearest. These techniques are used when talking about services that need high availability, redundancy, or low latency like DNS or CDN services. Given a certain IP (IPv4 or IPv6), there mi...

  • 发布于 2021-04-10 07:14
  • 阅读 ( 157 )

127.0.0.1和0.0.0.0之间有什么区别?

... IPs. What is the IP Address 127.0.0.1? 127.0.0.1 is the loopback Internet protocol (IP) address also referred to as the localhost. The address is used to establish an IP connection to the same machine or computer being used by the end-user. The same convention is defined for computers that support ...

  • 发布于 2021-04-10 07:44
  • 阅读 ( 313 )

为什么需要以太网/mac地址?

...connected to a broadcast network “data link”, whereas IP is a routable protocol and can target devices on remote networks. The requirements for each of these layers is different. Ethernet specifies a family of technologies that allow packets to be sent and received between network devices, where...

  • 发布于 2021-04-11 04:47
  • 阅读 ( 217 )

mac地址到底是用来做什么的?

... the network. How do IP addresses and MAC addresses work together? IP is a protocol that is used on a layer above ethernet. Another protocol for example would be IPX. When your computer wants to send a packet to some IP address x.x.x.x, then the first check is if the destination address is in the sa...

  • 发布于 2021-04-11 16:47
  • 阅读 ( 310 )

本地ip地址和本地ip地址有什么区别?

...one of the following values in the Value data: field to configure the IPv6 protocol to the desired state, and then click OK: Type 0 to enable all IPv6 components. (Windows default setting) Type 0xffffffff to disable all IPv6 components, except the IPv6 loopback interface. This value also config...

  • 发布于 2021-04-12 00:27
  • 阅读 ( 266 )

极客学校:学习Windows7–ip地址基础

...P地址,通常如下所示: 192.168.0.1 这些地址是IPv4(Internet Protocol Version 4,互联网协议版本4)地址,和现在的大多数东西一样,它们是计算机实际看到的内容的简单抽象。IPv4地址是32位的,这意味着它们包含32个1和0的组合。计算...

  • 发布于 2021-04-12 00:39
  • 阅读 ( 155 )

如何在linux上使用ss命令

...,请键入以下内容: ss Netid State Recv-Q Send-Q Local Address:Port Peer Address:Port Process
 u_str ESTAB 0 0 * 41826 * 41827
 u_str ESTAB 0 0 /run/systemd/journal/stdout 35689 * 35688
 u_str ESTAB 0 0 ...

  • 发布于 2021-04-14 18:48
  • 阅读 ( 163 )