Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The difference between arp and RARP

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

How ARP works

ARP is used to solve the peer IP address when the local IP address and hardware address as well as the peer IP address are known. Its working principle is briefly shown as follows:

What is the hardware address of A that first sends a broadcast message requesting its corresponding destination IP address? At the same time, its own IP address and hardware address are attached to the broadcast message.

After receiving the broadcast packet, B takes out the IP address and hardware address of An and adds them to the address mapping table. At the same time, the unicast response is returned, and the response packet contains the IP address and hardware address of B.

A receives a response, takes out B's IP address and hardware address, and adds them to the address mapping table.

After that, devices An and B can transfer data normally.

How RARP works

RARP is used in situations where the hardware address is known and the IP address is unknown. Its working principle is summarized as follows:

What is the IP address of A that first sends a broadcast message requesting its corresponding destination hardware address? At the same time, its own hardware address is attached to the broadcast message.

When B receives the broadcast packet, it returns a unicast response, which contains B's IP address and hardware address (and often A's IP address, to reduce ARP parsing).

A receives a response, takes out B's IP address and hardware address, and adds them to the address mapping table.

After that, devices An and B can transfer data normally.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report