Computer Networks · ARP and RARP
Purpose of Address Resolution Protocol
Overview
ARP (Address Resolution Protocol) resolves a known IP address into the corresponding MAC address of a station. It sits at the network layer alongside IP, and an IP packet passes through ARP on its way down to the data link layer. Its purpose is a frequently tested GATE topic.
Key concepts
- ARP (Address Resolution Protocol): A protocol whose name states its job — it resolves an address. Given an IP address, it converts (resolves) it to the corresponding MAC address.
- Purpose: If the IP address of a station is known but its MAC address is not, ARP is used to obtain the MAC address.
- Position in the network layer stack: The heart of the network layer is IP. ARP and RARP are present at the network layer level, alongside IP. ICMP and IGMP sit above IP.
- Meaning of this arrangement: An IP packet goes to ARP, and from ARP it goes down to the data link layer.
How it works
- ARP takes an IP address as input and produces the MAC address of that station as output.
- Use case: the IP address of a station is known but its MAC address is not → ARP is used to obtain the MAC address.
- Packet flow through the stack: IP → ARP → Data Link Layer.
Formulas
Revision summary
- ARP resolves IP address → MAC address (given IP, find MAC).
- ARP and RARP belong to the network layer, at the same level as IP.
- ICMP and IGMP are above IP.
- Packet flow: IP → ARP → Data Link Layer.
- Exam tip: for GATE, only the purpose of ARP (IP address to MAC address conversion) is required; deep implementation-level detail is not needed.
- ARP is a very popular protocol for GATE — questions have been asked on it many times.
Previous-year exam insights
- ARP request is broadcast (destination MAC FF:FF:FF:FF:FF:FF) to all hosts on the local link; only the host whose IP matches replies, and the reply is unicast back to the requester.
Asked inGATE 2019 - ARP resolves addresses only within the same subnet/LAN; to reach a host outside the subnet, a host ARPs for the MAC address of its default gateway (router), not for the remote host's MAC.
Asked inGATE 2019 - RARP performs the reverse mapping (MAC address to IP address) and is used by a diskless workstation to learn its own IP; BOOTP/DHCP later replaced it.
Asked inGATE 2016ISRO 2009 - Protocols that resolve one form of address to another include DNS (name to IP), ARP (IP to MAC) and RARP (MAC to IP); DHCP is not an address-resolution protocol — it assigns IP configuration (IP, mask, gateway, DNS) to hosts.
Asked inGATE 2016 - ARP results are stored in an ARP cache (with timeouts) so that repeated resolutions are avoided; ARP is a link-layer-adjacent protocol whose messages are carried directly in link-layer frames, not in IP datagrams.
Asked inGATE 2025 - ARP is used only for IPv4; IPv6 uses Neighbor Discovery (NDP) instead of ARP.
ARP in the network layer stack
Drawing the diagram…
Shows IP at the heart of the network layer with ARP and RARP alongside it, ICMP and IGMP above IP, and the packet flow IP to ARP to the data link layer.