A topic in the Open Knowledge Graph — a free, open map of 15,495 topics and the order to learn them in.

ARP: Address Resolution Protocol

Graduate Depth 59 in the knowledge graph ☐ I know this ☆ Set as goal
244prerequisites beneath it
See this on the map →
IPv4 Addressing and Address ClassesMAC Addressing and Hardware Identification→
arp protocol address-resolution mac-to-ip

Core Idea

Address Resolution Protocol (ARP) is a Layer 2.5 protocol that maps IPv4 addresses to MAC addresses on a local network segment. When a host needs to send a packet to a destination IP address on the same link, it broadcasts an ARP request; the host with that IP responds with its MAC address, allowing the sender to frame the packet correctly.

Explainer

You already know that IPv4 addresses identify hosts at the network layer and MAC addresses identify network interface cards at the data link layer. These two addressing systems operate independently — an IP address is assigned by network configuration, while a MAC address is burned into the hardware. The fundamental problem ARP solves is bridging this gap: when your computer wants to send a packet to 192.168.1.50 on the local network, it knows the destination IP address but needs the destination MAC address to construct the Ethernet frame. Without the MAC address, the frame cannot be addressed and the switch will not know which port to forward it to.

The ARP process works through a simple broadcast-and-reply mechanism. The sender constructs an ARP request containing its own MAC and IP addresses (so the target knows who is asking) and the target IP address, with the target MAC field set to all zeros. This request is sent as an Ethernet broadcast (destination MAC FF:FF:FF:FF:FF:FF), meaning every device on the local network segment receives it. The device whose IP address matches the request responds with an ARP reply — a unicast frame sent directly back to the requester — containing its MAC address. The sender then caches this IP-to-MAC mapping in its ARP table (also called the ARP cache) so it does not need to broadcast again for subsequent packets to the same destination.

ARP entries have a finite time-to-live (typically 1–20 minutes depending on the operating system), after which they expire and must be refreshed. This ensures that if a device changes its network interface or IP assignment, stale mappings do not persist indefinitely. You can inspect the ARP table on most systems with `arp -a`, and you will see entries for every local host your machine has recently communicated with. When the destination IP address is not on the local network, the sender ARPs for the default gateway's MAC address instead — the router will handle forwarding the packet to the remote network, but it still needs to be reached via a local Ethernet frame.

ARP's simplicity is also its vulnerability. Because any device can send an ARP reply — even unsolicited — an attacker can send forged ARP replies claiming that their MAC address corresponds to the gateway's IP address. This ARP spoofing (or ARP poisoning) attack redirects traffic through the attacker's machine, enabling man-in-the-middle interception. ARP has no authentication mechanism; it trusts every reply it receives. This is why ARP security extensions like Dynamic ARP Inspection (DAI) exist at the switch level, and why IPv6 replaced ARP entirely with the more secure Neighbor Discovery Protocol (NDP).

Practice Questions 5 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → One-to-One Correspondence → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Combining Small Groups Within 5 → Addition Within 10 → Number Bonds to 10 → Tens and Ones Place Value → Reading and Writing Three-Digit Numbers → Comparing Three-Digit Numbers → Comparing and Ordering Three-Digit Quantities → Comparing and Ordering Whole Numbers → Comparing Numbers 1 to 20 → Ordering Numbers to 20 → Number Line 0 to 20 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts Through 10 → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Multiplying Fractions → Ratios → Simple Probability → Multiple Access Protocols: ALOHA, CSMA, and Taking Turns → Ethernet and Frame Structure → MAC Addressing and Hardware Identification → ARP: Address Resolution Protocol

Longest path: 60 steps · 244 total prerequisite topics

Prerequisites (2)

Leads To (0)

No topics depend on this one yet.