Address Resolution Protocol (ARP)

Quick definition
Address Resolution Protocol (ARP) maps IP addresses to physical MAC addresses, enabling devices on local networks to identify and communicate with each other at the hardware level.

Address Resolution Protocol (ARP) is a fundamental networking protocol that translates Internet Protocol (IP) addresses into Media Access Control (MAC) addresses. This translation enables devices on the same local network to communicate with each other at the data link layer. Without ARP, network devices would have no way to associate logical IP addresses with the physical hardware addresses required for actual data transmission.

How Address Resolution Protocol (ARP) Works in Network Communication

When a device needs to send data to another device on the same local network, it knows the destination IP address but not the corresponding MAC address. ARP solves this problem through a simple request-and-reply mechanism. The sending device broadcasts an ARP request packet across the network, essentially asking "Who has this IP address?" Every device on the network segment receives this broadcast, but only the device with the matching IP address responds.

The response comes as an ARP reply containing the requested MAC address. Once received, the original sender stores this IP-to-MAC mapping in its ARP cache—a temporary table that speeds up future communications by eliminating repeated lookups. For example, when a laptop connects to a home router, it uses ARP to discover the router's MAC address before any internet traffic can flow. This cache typically expires after a set period, forcing fresh lookups to accommodate network changes like devices being replaced or reconfigured.

Address Resolution Protocol (ARP) Cache and Table Management

The ARP cache serves as a local memory of recently resolved addresses, reducing network overhead significantly. Managing this cache effectively requires understanding its behavior and limitations.

Static vs. Dynamic Entries

  • Dynamic entries are created automatically through ARP requests and expire after a timeout period (often between 15 and 45 minutes depending on the operating system)
  • Static entries are manually configured and persist until removed, useful for critical infrastructure like default gateways

Viewing and Managing the Cache

Network administrators can inspect ARP tables using command-line tools. On Windows systems, the command arp -a displays all cached entries. Linux and macOS offer similar functionality through arp or ip neighbor commands. Regularly reviewing these tables helps identify unauthorized devices or unusual network behavior that might indicate security issues.

Security Vulnerabilities and ARP Spoofing Risks

ARP was designed for trusted network environments and contains no built-in authentication mechanism. This architectural limitation creates opportunities for malicious actors to exploit the protocol through a technique called ARP spoofing (also known as ARP poisoning).

How ARP Spoofing Attacks Work

An attacker sends falsified ARP replies to associate their MAC address with the IP address of a legitimate device—typically the network gateway. Once successful, traffic intended for the gateway flows through the attacker's machine instead. This man-in-the-middle position allows interception, modification, or blocking of network communications. Consider a scenario where an attacker on a corporate network spoofs the gateway address: all outbound traffic from victim machines could be captured before forwarding, exposing sensitive data.

Mitigation Strategies

  • Implement Dynamic ARP Inspection (DAI) on managed switches to validate ARP packets against trusted bindings
  • Use static ARP entries for critical network infrastructure
  • Deploy network monitoring tools to detect unusual ARP activity
  • Segment networks to limit broadcast domains and potential attack surfaces

ARP Variants and Related Protocols

Several protocol variants extend or modify standard ARP functionality for specific use cases.

ProtocolPurposeUse Case
Reverse ARP (RARP)Resolves MAC to IP addressDiskless workstations during boot
Proxy ARPAllows router to answer ARP requests for remote hostsConnecting network segments without reconfiguration
Gratuitous ARPAnnounces IP-MAC binding without requestIP address conflict detection, failover scenarios

It is worth noting that IPv6 networks do not use ARP at all. Instead, they rely on Neighbor Discovery Protocol (NDP), which provides similar functionality with enhanced security features. As networks transition to IPv6, understanding both protocols becomes increasingly important for network professionals.

Frequently Asked Questions About Address Resolution Protocol

Why does ARP only work on local networks?

ARP relies on broadcast packets that routers do not forward between network segments. When communicating with devices on remote networks, the sending device uses ARP to resolve only the next-hop router's MAC address, not the final destination.

What happens when an ARP cache entry expires?

The device must perform a new ARP request the next time it needs to communicate with that IP address. This ensures the cache reflects current network conditions, though it adds a slight delay to the first packet sent after expiration.

Can ARP work across VLANs?

Standard ARP broadcasts are confined to a single VLAN. Communication between VLANs requires a router or layer-3 switch, where separate ARP processes handle each VLAN independently.