Communication Networks · Visualized

Address Resolution Protocol (ARP)

Addressing & Names

How devices get numbers, find each other on the LAN, and turn human-readable names into addresses.

7 interactive subtopics — each one animated, step-through and explained.

Address Resolution Protocol (ARP)

Addressing & Names

IP addresses route packets between networks, but the final delivery on a local network uses MAC addresses. ARP answers "who has this IP?" by shouting an Ethernet broadcast to everyone on the LAN; the owner of the IP replies unicast with its MAC, and both sides cache the pair so ordinary traffic never needs to ask again.

How Address Resolution Protocol (ARP) Works

  1. A host wants to send to an IP on the same subnet and checks its ARP cache first.
  2. Cache miss → it broadcasts an ARP request to ff:ff:ff:ff:ff:ff: "Who has 192.168.1.7?"
  3. Every LAN host receives it; only the owner of that IP replies unicast with its MAC address.
  4. The requester caches the IP→MAC pair (typically for a few minutes); the responder caches the requester too.
  5. Frames can now be addressed directly; routers act as the gateway for destinations off-subnet.

Address Resolution Protocol (ARP) Worked Example

Try it: Host 192.168.1.5 sends its first packet to 192.168.1.7.

Cache miss → broadcast request floods the switch to all ports. 192.168.1.7 answers "192.168.1.7 is at aa:bb:cc:dd:ee:07" directly to the requester. Both cache the mapping — the next thousand packets flow with zero extra overhead.

LAN via switch192.168.1.5sender192.168.1.6ignores192.168.1.7target!192.168.1.8ignores
broadcast (flooded) unicast reply / cached
Stage 1 / 5
Host .5 wants to send to 192.168.1.7 (same subnet). ARP cache: empty → must ask.

Address Resolution Protocol (ARP): Key Facts to Remember

ScopeARP only resolves addresses on the same subnet — off-subnet traffic goes to the gateway's MAC
SecurityARP has no authentication → ARP spoofing/poisoning enables man-in-the-middle attacks
IPv6 equivalent NDP (Neighbor Discovery Protocol) over ICMPv6

Recommended resourcesAffiliate links · may earn us a commission

Recommended for learners

Cloud hosting for side projectsShip the portfolio project that gets you hired — free credits for new accounts.Claim credits Pro code editor & AI assistantWrite, debug and explain code faster while you practice the patterns here.Try it free Structured coding coursesVideo courses that pair well with visual practice — pick one language and go deep.Browse courses

See how packets really travel

Networks are built on the structures and algorithms you can watch step by step — queues, trees, and routing algorithms.