Complete Study Guide for Computer Networks & Communication Engineering Students
In computer networks, devices are identified at different layers using different addressing schemes:
When a device wants to communicate with another device on the same local network, it knows the destination IP address but needs the destination MAC address to construct the Ethernet frame. This is where ARP becomes essential [^57^].
Static mapping (maintaining a fixed table of IP-to-MAC mappings) has limitations because:
ARP provides dynamic mapping, allowing devices to discover addresses on-demand [^57^].
The ARP resolution process involves four main steps [^56^][^59^]:
ARP packets are encapsulated directly in Ethernet frames (EtherType 0x0806). The packet structure is consistent across different hardware types [^57^]:
+-------------------+-------------------+-------------------+-------------------+ | Destination MAC | Source MAC | EtherType | ARP Packet | | (6 bytes) | (6 bytes) | (0x0806) | (28 bytes) | +-------------------+-------------------+-------------------+-------------------+ For ARP Request: - Destination MAC: FF:FF:FF:FF:FF:FF (Broadcast) - Source MAC: Sender's MAC address For ARP Reply: - Destination MAC: Requester's MAC address (Unicast) - Source MAC: Responder's MAC address
A router enabled with Proxy ARP responds to ARP requests on behalf of hosts on different networks [^54^][^56^].
Operation:
An ARP reply that is broadcast without being triggered by an ARP request [^54^].
Characteristics:
RARP performs the opposite function of ARP: it maps a MAC address to an IP address [^54^].
Operation:
Limitations:
Used in Frame Relay and ATM networks to discover the IP address associated with a known virtual circuit identifier [^54^].
Difference from RARP:
InARP allows Frame Relay stations to discover the protocol addresses of other stations connected to the same network.
| Type | Direction | Trigger | Primary Use |
|---|---|---|---|
| Standard ARP | IP → MAC | Cache miss | Local network communication |
| Proxy ARP | IP → MAC (Router responds) | Cross-network request | Subnet routing transparency |
| Gratuitous ARP | Announcement | Self-triggered | Cache updates, IP conflict detection |
| Reverse ARP | MAC → IP | Boot-up | Diskless workstation configuration |
| Inverse ARP | DLCI → IP | Virtual circuit setup | Frame Relay/ATM address resolution |
The ARP cache (or ARP table) stores recent IP-to-MAC address mappings to reduce network broadcast traffic [^2^][^56^].
| Type | Source | Lifetime | Characteristics |
|---|---|---|---|
| Dynamic | Learned from ARP replies | Typically 2-20 minutes | Aged out automatically; most common |
| Static | Manually configured | Permanent (until reboot) | Security risk if not managed; bypasses ARP |
| Internet Address | Physical Address | Type | Interface | Age (min) |
|---|---|---|---|---|
| 192.168.1.1 | 00:50:56:c0:00:08 | dynamic | eth0 | 4 |
| 192.168.1.5 | 00:0c:29:3e:5a:7b | dynamic | eth0 | 12 |
| 192.168.1.10 | 00:1a:2b:3c:4d:5e | static | eth0 | permanent |
ARP was designed for efficiency, not security. It lacks authentication mechanisms, making it vulnerable to spoofing attacks [^53^][^6^].
Attack Mechanism:
Attack Scenarios [^55^]:
Manually configure critical IP-to-MAC mappings (gateway, servers) to prevent spoofing [^53^]:
arp -s 192.168.1.1 00:11:22:33:44:55
Switch security feature that validates ARP packets [^53^][^58^]:
Builds trusted binding database for DAI validation:
Divide network into smaller VLANs to limit broadcast domain and attack scope [^53^].
Use VPNs and encryption protocols (HTTPS, SSH) to protect data even if ARP is compromised [^53^].
show arp displays all ARP entries including other protocols (AppleTalk, etc.), while show ip arp filters for IP only [^5^].
Q1: At which OSI layer does ARP operate?
Q2: What is the destination MAC address in an ARP Request?
Q3: Which type of ARP is used to detect IP address conflicts?
Q4: What is the primary vulnerability of the ARP protocol?
Q5: Which switch feature validates ARP packets against DHCP bindings?
ARP is a fundamental protocol enabling communication within local area networks by resolving IP addresses to MAC addresses. Key takeaways for communication engineering students: