Home | Projects | Notes > Computer Networks > Data Link Layer - Address Resolution Protocol (ARP)

Data Link Layer - Address Resolution Protocol (ARP)

 

Introduction to ARP

Two Basic Functions of ARP

 

ip-address-mac-address-mapping

 

 

Address Resolution Process

Let's say Host A wants to communicate with Host B.

  1. Host A looks up its ARP table to find the MAC address of Host B.

  2. If not found, Host A broadcasts an ARP Request with the destination IP address set to Host B's IP, and the destination MAC address set to FF:FF:FF:FF:FF:FF (Ethernet broadcast).

  3. Switch will forward the frame out to all interfaces except the incoming interface. (Flooding)

  4. All hosts on the LAN will receive the broadcast but, only Host B will ARP Reply with its MAC address (Ethernet unicast).

  5. Host A will store the Host B's IP-MAC address pair in its ARP table and communication will take place.

When a device in a LAN boots up the first ARP it sends out will most likely to be to obtain the MAC address of the default gateway. This is because most of the cases the device will try to send out or receive things to or from the Internet.

 

ARP Example

 

arp-example