Skip to main content
CSNetworkingDiagramBeginner

ARP (Address Resolution Protocol)

KO: ARP (주소 결정 프로토콜)·EN: ARP (Address Resolution Protocol)·JA: ARP(アドレス解決プロトコル)·Address Resolution Protocol

A link-layer protocol that broadcasts on a local LAN to discover the hardware MAC address corresponding to a target IPv4 address

Table of Contents

Structure Diagram

ARP IP-to-MAC Local Network Resolution Cycle
ARP1. Check ARP…2. Broadcast…3. Unicast A…4. Cache & S…
2/42. Broadcast Request
"Who has 192.168.0.5?"
Quick Answer

What is ARP (Address Resolution Protocol)?

A link-layer protocol that broadcasts on a local LAN to discover the hardware MAC address corresponding to a target IPv4 address. It is a core concept in Networking within CS.

Core Principles

ARP (Address Resolution Protocol) bridges Layer 3 and Layer 2 by discovering the hardware MAC address owning a given IPv4 address on the local LAN.

  • Broadcast Request, Unicast Reply: The sender broadcasts "Who has IP X?" to FF:FF:FF:FF:FF:FF; the matching host replies directly with its MAC address, which is cached temporarily.
  • Off-Subnet Destinations: For remote IPs, the host ARPs for the default gateway router's MAC instead.
  • IPv6 Replacement: IPv6 replaces ARP with multicast NDP (Neighbor Discovery Protocol).

Practical Takeaways

  • ARP Spoofing risk: Because ARP is unauthenticated, attackers on a LAN can poison ARP tables for MITM attacks—mitigated by switch DAI and end-to-end TLS.
  • Gratuitous ARP (GARP) for HA Failover: Standby servers taking over a floating VIP broadcast GARP packets so switches immediately update their MAC tables (Keepalived, MetalLB).
  • Quick diagnostics: Run ip neigh or arp -a to spot INCOMPLETE or stale neighbor entries.

Notable Examples

  • Keepalived / MetalLB L2 Mode: High-availability VIP failover in bare-metal clusters.
  • Everyday LAN Traffic: Resolving local printers, gateways, and servers on Ethernet/Wi-Fi.