Address Resolution Protocol ARP (original) (raw)

Last Updated : 11 Feb, 2026

ARP (Address Resolution Protocol) maps an IPv4 address to the corresponding MAC address on a local network so frames can be delivered to the correct device.

Important ARP Terms

**ARP Cache

**ARP Cache Timeout

**ARP Request

**ARP Reply (ARP Response)

Types of ARP

There are four main types of ARP, each used in different scenarios:

1. Proxy ARP

Proxy ARP allows a networking device, typically a router, to respond to ARP requests on behalf of another host that resides on a different network segment.

2. Gratuitous ARP

Gratuitous ARP is an ARP message sent by a device to announce or verify its own IP-to-MAC address mapping.

3. Reverse ARP (RARP)

Reverse Address Resolution Protocol (RARP) enables a device to obtain its IP address when only its physical MAC address is known.

4. Inverse ARP (InARP)

Inverse Address Resolution Protocol (InARP) is used to determine the IP address of a remote device when its data link–layer address is already known.

How ARP Works

The working of ARP can be explained in the following steps:

system_

ARP Protocol

**ARP Cache Lookup

**ARP Request Broadcast

**Request Processing by Hosts

**ARP Reply Transmission

**ARP Cache Update

ARP Message Format

An ARP message consists of several fields:

hardware_type

Message format of ARP

**Hardware Type (HTYPE) – 2 bytes

**Protocol Type (PTYPE) – 2 bytes

**Hardware Address Length (HLEN) – 1 byte

**Protocol Address Length (PLEN) – 1 byte

**Operation Code (OPER) – 2 bytes

**Sender Hardware Address (SHA)

**Sender Protocol Address (SPA)

**Target Hardware Address (THA)

**Target Protocol Address (TPA)

Advantages