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
2/42. Broadcast Request— "Who has 192.168.0.5?"
"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 neighorarp -ato spotINCOMPLETEor 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.