Intermediate Topic 27 of 50 Computer Networks
ARP
Protocol mapping IP addresses to MAC addresses.
How it works
The Address Resolution Protocol maps an IPv4 address to a MAC address on a local network. A host that wants to reach an IP on its subnet broadcasts an ARP request asking who has this address, and the owner replies with its MAC address. Results are cached in an ARP table for a short time. Gratuitous ARP announces a change of address or detects duplicates. IPv6 uses Neighbor Discovery instead.
Step-by-step walkthrough
- A wants to send to 192.168.1.9 but needs the MAC.
- It broadcasts who has 192.168.1.9.
- Host B answers with its MAC address.
- A stores the pair in its ARP cache.
- Frames can now be addressed directly to B.
Where it is used
Every Ethernet or Wi-Fi host uses ARP before sending to a local IP or to its default gateway. The arp command shows the table, which helps debug connectivity.
Common pitfall
ARP has no authentication, so attackers can spoof replies and perform man-in-the-middle attacks known as ARP poisoning. Stale entries after hardware changes cause temporary outages. Duplicate IPs create flapping entries. Use dynamic ARP inspection on managed switches and static entries for critical devices.
Where it fits in the course
ARP is topic 27 of 50 in Computer Networks, rated Intermediate. It follows CRC. The next topic is ICMP and Ping.
Practice and explore
- Open the interactive lesson, with a mini quiz.
- Take the Computer Networks quiz.
How to study this topic
- Read the explanation above and restate the definition in your own words.
- Open the interactive lesson and answer its mini quiz.
- Read the common pitfall, then write a short example that avoids it.
- Check your understanding in the Computer Networks quiz, and revisit the topic if you miss a question.
Frequently asked questions
What is ARP?
Where do people use ARP?
What is the most common mistake with ARP?
What should I learn before this topic?
How can I practice it?
Is ARP hard to learn?
How long does it take to learn ARP?
Which topics are related to ARP?
What should I study after ARP?
Related topics
- CRC (Computer Networks)
- ICMP and Ping (Computer Networks)
- Error Detection and Correction (Computer Networks)
- NAT (Computer Networks)