RARP Protocol
RARP (Reverse Address Resolution Protocol) is a protocol used to resolve data link layer addresses (such as MAC addresses) into network layer addresses (such as IP addresses).
RARP is the reverse operation of ARP (Address Resolution Protocol), mainly used by devices such as diskless workstations to obtain their own IP address at startup.
How RARP Works
The core function of RARP is to resolve MAC addresses into IP addresses through broadcast requests and unicast responses.
1. RARP Request
When a device starts up and does not know its own IP address, it sends a RARP request broadcast packet asking "Who owns this MAC address?".

- The sender broadcasts a RARP request packet asking for the IP address corresponding to its own MAC address.
- All devices on the LAN receive the request.
2. RARP Response
If a device (usually a RARP server) finds in its configuration an IP address mapping for that MAC address, it sends a RARP response packet informing the corresponding IP address.

- The RARP server sends a RARP response packet informing the sender's IP address.
- The RARP response packet is unicast, sent only to the requester.
3. IP Address Configuration
After receiving the RARP response, the sender uses the obtained IP address to configure its own network interface, enabling communication with other devices.

Key Features of RARP
-
MAC Address to IP Address Mapping:
-
Broadcast requests and unicast responses:
-
Use by Diskless Workstations:
-
Used within a LAN:
Applications of RARP
RARP is widely used in the following scenarios:
- Diskless Workstations:
- Network configuration:
Limitations of RARP
RARP has the following limitations:
- Single function:
- Depends on a RARP Server:
- Poor Security:
Alternatives to RARP
Due to the limitations of RARP, it has been replaced by more powerful protocols, mainly including:
- BOOTP(Bootstrap Protocol):
- DHCP(Dynamic Host Configuration Protocol):
In summary, RARP is a protocol used to resolve MAC addresses into IP addresses, achieving address mapping through broadcast requests and unicast responses. It is mainly used by diskless workstations to obtain an IP address at startup, but due to its single function and poor security, it has been replaced by BOOTP and DHCP.