osi

Protocol which allows host to know IP address  for the given MAC address via L2 Broadcast message.
Sends broadcast by using all FFs MAC address, end host received the message and gives answer that it’s that MAC with specified IP.

ARP Request

Target MAC is zeroed since we don’t know it yet
Destination MAC as we know ‘FF’ed


The Payload:

ARP Response

As host2 receives the Frame, it responds to host1.
The response Frame is encapsulated by same logic, but now it includes host2 MAC address
in Sender MAC Address field with corresponding IP Address.


The Payload:

After information is exchanged, ARP table is filled.