Network Layer · Computer Networks

Reverse ARP (RARP)

Watch lectures
SVGVector Architecture Diagram (SVG)
COMPUTER NETWORKS · Module 3★ High PriorityReverse ARP (RARP)IT Sem 6 · Code 100602 · MAC to IP for diskless hostsMNEMONICRARP is ARP reversed: known MAC, find IP. Born for diskless workstations.Obsolete: one server per subnet, only an IP address returned.Core BreakdownMotivationDiskless workstations know their MAC (on the NIC), not their IP.No local disk to read a configuration file from at boot.RequestHost broadcasts an RARP request (EtherType 0x8035) at boot.Its own MAC is in both sender and target hardware fields, IP 0.0.0.0.ReplyA RARP server looks up its static table, for example /etc/ethers.If the MAC is found, it unicasts the assigned IP back to the host.Limit 1Runs on raw Layer 2 frames; routers do not forward broadcasts.So every subnet needed its own dedicated RARP server.Limit 2Returns only the IP: no subnet mask, gateway, DNS or boot file.The host still could not talk beyond its own wire.Limit 3Static mapping only: every MAC registered by hand.No leasing or reclaiming of addresses. Replaced by BOOTP, then DHCP.Diagram: RARP ExchangeDiskless hostknows MAC onlyRARP serverMAC-to-IP table1 RARP REQUEST (broadcast)My MAC is AA:AA.. what is my IP?2 REPLY: your IP is 192.168.1.75Evolution of host configuration:RARPIP onlyBOOTPstatic + UDPDHCPdynamicEtherType 0x8035, raw Ethernet frameOne server per subnet (no routers)No mask, gateway, DNS: obsolete⚠️ Exam Traps & Viva Favorites① Why was RARP made?Diskless machines needed to discover an IP fromtheir hardcoded MAC when they boot, with nodisk to hold configuration.② Why not across routers?RARP sits directly on Ethernet with no IP header.Routers do not forward Layer 2 broadcasts, sorequests never leave the subnet.③ What succeeded RARP?BOOTP: UDP/IP with relay agents, full config.Then DHCP: dynamic leases and completenetwork parameters.Tip: ARP = IP to MAC, RARP = reverseMaster Revision Table(learn it row by row!)ParameterARP (RFC 826)RARP (RFC 903)RemarkKnown inputLayer 3 IP addressLayer 2 MAC addressOpposite goalsWanted outputLayer 2 MAC addressLayer 3 IP addressReversedUse caseNormal delivery on LANDiskless machine bootRARP is legacyRequestBroadcast FF:FF:...Broadcast FF:FF:...Same styleEtherType0x08060x8035Different codeStatus todayActive in IPv4ObsoleteBOOTP, DHCPQUICK FACTSRARP RFC 903 · EtherType 0x8035 · reply is unicast with the host IPNeeds one RARP server per physical subnet (no relay possible)Chain: RARP (IP only) -> BOOTP (static, UDP) -> DHCP (dynamic leases)VERIFIED★ Golden rule: RARP gives only an IPand cannot cross routers.

Reverse Address Resolution Protocol (RARP)


1. Motivation and Purpose of RARP

In the early days of networked computing, many workstations were diskless machines (computers without a local hard drive or permanent storage).

  • When a diskless workstation boots up, its operating system code resides in ROM, and its Physical (MAC) Address is permanently hardcoded on its Network Interface Card (NIC).
  • However, the machine does not know its own Logical (IP) Address because it has no local storage drive to read a configuration file from!
  • The Reverse Address Resolution Protocol (RARP) (RFC 903) was designed to solve this: it allows a host to discover its unknown IP address given its known physical MAC address.
MermaidDiagram
Rendering diagram…

2. The RARP Operation

MermaidDiagram
Rendering diagram…

Operational Steps:

  1. RARP Request:
    • The booting host broadcasts an RARP request frame (EtherType = 0x8035).
    • The frame contains its own physical hardware MAC address in both the Sender Hardware Address and Target Hardware Address fields, with the IP address fields left blank (0.0.0.0).
  2. RARP Reply:
    • One or more dedicated RARP Servers on the local network intercept the broadcast.
    • The server queries its static mapping database (e.g., /etc/ethers).
    • If a matching MAC entry is found, the server replies via unicast with the host's assigned IP address.

3. Critical Limitations of RARP

Why was RARP declared obsolete and replaced?

  1. Data Link Layer Limitation:
    • RARP operates directly on top of the physical/data link layer (using raw Ethernet frames).
    • Because routers do not forward Layer 2 broadcasts, every physical subnet required its own dedicated RARP server! In a large enterprise with 50 subnets, 50 separate RARP servers were required.
  2. Incomplete Configuration:
    • RARP only provided the 32-bit IP address.
    • It did not provide the Subnet Mask, the Default Gateway IP, the DNS Server IP, or the Boot Image File Path. The machine still could not communicate outside its local wire without further complex steps.
  3. Static Mapping Only:
    • Administrators had to manually register every machine's MAC address in server configuration files. It could not dynamically lease or reclaim addresses.

4. Comparison: ARP vs. RARP

Parameter ARP (RFC 826) RARP (RFC 903)
Input (Known) Layer 3 Logical IP Address Layer 2 Physical MAC Address
Output (Desired) Layer 2 Physical MAC Address Layer 3 Logical IP Address
Primary Use Case Standard packet delivery on LAN Diskless machine booting
Request Type Broadcast (FF:FF:FF:FF:FF:FF) Broadcast (FF:FF:FF:FF:FF:FF)
Reply Type Unicast Unicast
EtherType 0x0806 0x8035
Status Today Active (Universal in IPv4) Obsolete (Replaced by BOOTP & DHCP)

Frequently Asked Questions

QWhy was RARP developed?

To enable diskless workstations with no persistent local storage to query an RARP server upon booting and discover their assigned IP address based on their hardcoded MAC address.

QWhy can RARP not operate across routers?

RARP packets are encapsulated directly into Layer 2 Ethernet frames without IP headers. Routers do not forward Layer 2 broadcasts across network boundaries, preventing RARP requests from reaching servers on remote subnets.

QWhat protocols succeeded RARP?

BOOTP (Bootstrap Protocol), which encapsulated requests in UDP/IP datagrams that could cross routers via relay agents, followed by DHCP (Dynamic Host Configuration Protocol), which introduced dynamic leasing and full network configuration parameters.

QWhat information does RARP fail to provide?

RARP returns only the IP address. It does not give the subnet mask, default gateway, DNS server or boot file path, so the host still cannot communicate beyond its local network.

Official AppAndroid App

PYQDeck for Android

Solve BEU previous-year exam papers anywhere, anytime. Fast search, offline paper viewing, and step-by-step solutions designed specifically for your phone.

← All Computer Networks modules