Address Resolution Protocol (ARP) is the mechanism that allows networked devices to discover the MAC address associated with a known IP address, enabling communication at the Ethernet layer. Understanding ARP is foundational to how frames are built and delivered across local area networks.
Address Resolution Protocol (ARP)
Houston, we have a problem. If I'm a machine on a network and I'm trying to communicate to another machine on the network, how in the world am I going to know what the MAC address is? I'm going to communicate to its IP address. But since we're on a layer 2 network, an Ethernet network, I need to be able to send it to its MAC address. So how do I figure that out? Well, the answer to that is the address resolution protocol.
As we're beginning to see how this is all coming together, we see that as a frame leaves the NIC card, it is heading from some MAC address — some NIC card with a burned-in MAC address — going to some destination MAC address. And so it's going to travel along this way with a destination MAC address of wherever it's trying to go to, and with a source MAC address of where it's coming from.
Now the thing is, we typically in our communication are not typing a bunch of MAC addresses into the machines to make this happen. In fact, what we're probably doing is, if we're going to a website, we're using some sort of domain name. Well, that doesn't quite directly translate to a MAC address. And so what we have to do is we have to translate that domain name into an IP address, and then from an IP address possibly into a MAC address.
So if we are going to this destination right here, to wherever the server is, we're probably typing in something other than the MAC address. And eventually that's going to come up with: this machine has an IP address that's tied to it, and you're somehow getting that IP address and need to communicate to that IP address.
This machine doesn't know what MAC address is associated with that IP address. It needs to find out that information in order to form the frame. So this machine needs to know the destination MAC address of that IP address. And this is all as if it was communicating on a local area network.
And so what it does is it sends out an ARP request, an address resolution protocol. So it sends a request out onto the line and says, who belongs to this IP address? And this machine hears that. What happens is that that request gets sent out all of the ports.
This machine hears that, says yes, that IP address belongs to me. And so what I'm going to do is I'm going to reply to that, to let this machine know that this is the MAC address it needs to communicate to. And so now this device has the IP address, and it knows what MAC address is associated with it, because it did the ARP request and got a reply back.
And now this machine will form that frame with the destination MAC address and put it out on the line. This switch then will forward it onto this server right here, and then this server will get that information.
Now, since this device right here has a source MAC address that it sends across, this machine knows, hey, I need to send it back. So when it replies, it uses the source address of this and the new destination address.
TechKnowSurge builds IT and cybersecurity professionals through hands-on, concept-first training built around real understanding — not memorization. Free interactive tools, structured programs, and 25+ years of real-world experience, all in one place.
Explore free tools and programs →