ARP
Address Resolution Protocol is a network protocol.
It is an important part of the network communication used to resolve a network layer (layer 3) IP address to a link layer (layer 2) MAC address. It maps a host's IP address to its corresponding MAC address to facilitate communication between devices on a LAN.
When a device on a LAN wants to communicate with another device, it sends a broadcast message containing the destination IP address and its own MAC address. The device with the matching IP address responds with its own MAC address, and the two devices can then communicate directly using their MAC addresses. This process is known as ARP resolution.
! 400
ARP allows devices to send and receive data using MAC addresses rather than IP addresses
2 type of messages:
- Request: ARP request to resolve the destination device's IP address to its MAC address. The request is broadcast to all devices on the LAN and contains the IP address of the destination device.
- Replay: Device replies and the message contains the IP and MAC addresses of both the requesting and the responding devices.
