ARP - CSU359 - Shoolini University

ARP - Address Resolution Protocol

Address Resolution Protocol (ARP)

The Address Resolution Protocol (ARP) is a fundamental protocol in computer networking that maps an IP address (Layer 3) to a physical MAC address (Layer 2) within a local network. It enables devices to communicate effectively over a network by resolving IP addresses to their corresponding hardware addresses.

1. Purpose of ARP

ARP facilitates communication in a local area network (LAN) by translating logical IP addresses to physical MAC addresses, ensuring data packets reach the correct destination. It operates within the Data Link Layer of the OSI model but is closely associated with the Network Layer.

2. How ARP Works

When a device wants to send data to another device in the same LAN, it follows these steps:

3. ARP Packet Structure

An ARP packet consists of the following fields:

4. ARP Types

ARP includes different variants for specific scenarios:

5. ARP Cache

The ARP cache stores recently resolved IP-to-MAC address mappings to reduce network traffic. Entries in the cache have a timeout period, after which they are discarded unless reused.

To view the ARP cache on a system:

# On Windows
arp -a

# On Linux/Unix
ip neigh show

6. ARP Issues

While ARP is crucial for networking, it has some vulnerabilities and challenges:

7. Mitigation of ARP Vulnerabilities

To enhance security and reduce ARP-related issues:

8. Practical Example

Consider Device A (IP: 192.168.1.1, MAC: AA:BB:CC:DD:EE:FF) wants to send data to Device B (IP: 192.168.1.2):