ARP

What

A way to find out how to reach a device on L2, based on an IPv4 address
E.g. "Who here has 192.168.1.12
Device with said IP will respond, thus allowing the asker to learn the MAC
IPv6 uses NDP instead

Why

We somehow need to convert L3 (IPv4) addresses to L2 (MAC) addresses so we can deliver frames on the local network

Concepts

How

  1. Source checks it's ARP table to see if it already knows where 192.168.1.12 is
    1. If it does, ARP is not needed
  2. If not, broadcast (everyone receives this) an ARP request saying
    "Who has 192.168.1.12? Tell 192.168.1.4 at aa:bb:cc:dd:ee:ff
  3. The device with the IP in question will respond (only to the source device)
  4. Both source and target now add an entry in their ARP table
    1. Saved until old (stale time), but can be marked as persistent