RFC 826: ARP: Mapping IPv4 addresses to Ethernet

Summary

In November 1982, David Plummer described the Address Resolution Protocol in RFC 826, which finds the matching 48-bit Ethernet address for a protocol address such as IPv4. A host asks by broadcast within the local segment, the owner of the address replies directly, and both remember the result in a table. The procedure still works almost unchanged in every IPv4 network and still has no authentication.

A question to all, an answer to one

RFC 826 is short and kept general: ARP was meant to work not only for the DoD Internet Protocol but also for Chaosnet or Xerox PUP. The packet therefore contains fields for hardware and protocol type and the lengths of both addresses. A request goes to the segment’s broadcast address, the reply only to the requester.

The order in the algorithm is remarkable: a receiver enters the sender’s data into its table before it even checks whether the packet is a request or a reply. This saves traffic, because the host being asked already knows the requester afterwards. It also means that anyone in the segment can feed other hosts’ tables with arbitrary mappings.

Trust in the local network

ARP spoofing and man-in-the-middle attacks in the LAN rely on exactly this: an attacker claims to own the gateway’s address and routes traffic through itself. RFC 826 comes from a time when the local cable was considered trustworthy. Countermeasures such as Dynamic ARP Inspection on switches or static entries came much later and outside the standard.

Later RFCs supplemented ARP without replacing it: in 2008 RFC 5227 described address conflict detection using ARP probes. IPv6 uses the Neighbor Discovery Protocol over ICMPv6 instead of ARP.

Ideas

  • ARP maps protocol addresses to hardware addresses within the same segment.
  • Requests go by broadcast to everyone, replies only to the requester.
  • Results land in a cache so that not every packet triggers a request.
  • The format is open to any protocol and hardware type.
  • Receivers take over sender data before checking the opcode.
  • ARP has no authenticity check at all.

Insights

  • An optimisation for low traffic became a permanent attack surface, because it assumes trust in all participants.
  • Protocols designed in general terms outlive their original environment: ARP runs on Wi-Fi and virtual switches today, not on 10 Mbit coaxial cable.

Facts

  • RFC 826 appeared in November 1982 and has only ten pages.
  • The opcode distinguishes request (1) and reply (2).
  • RFC 5227 from 2008 adds IPv4 address conflict detection to ARP.
  • IPv6 uses the Neighbor Discovery Protocol instead of ARP.

References

Critique

  • RFC 826 does not mention the lack of authentication as a risk; the assumption of a trustworthy segment remains unspoken.

Remarks

  • Plummer wrote the specification at MIT; among those who took part in the discussion the text names J. Noel Chiappa and Yogen Dalal.

Recommendations

  • Keep broadcast domains small and put guests, IoT and management into separate VLANs.
  • Use Dynamic ARP Inspection together with DHCP snooping on managed switches.
  • Have tools such as arpwatch report unexpected changes of the gateway MAC.

Read the RFC at the RFC Editor

Search the Web Archive

Found a mistake or have something to add? Get in touch.