Address Resolution Protocol (ARP)
To establish data communication over Ethernet, the initiating host broadcasts an ARP request to all nodes connected within the same network segment, embedding the target node's IP address within this request. The node possessing the requested IP address responds directly with an ARP reply containing its own MAC address. Upon receiving this reply, the originator can then encapsulate IP packets into Ethernet frames addressed appropriately at Layer 2.
ARP specifically serves IPv4 networks. In IPv6 networks, a functionally equivalent protocol called Neighbor Discovery Protocol (NDP)—as standardized in RFC 4861—manages IP-to-MAC resolution tasks.
