---
description: This tutorial covers address resolution protocol (ARP) basics, how arp works, ARP related important terms, ARP Types, ARP header, advantages, and more
title: "Address Resolution Protocol (ARP): What is the Header?"
image: https://www.guru99.com/images/arp-address-resolution-protocol.png
---

[Skip to content](#main)

**⚡ Smart Summary**

Address Resolution Protocol (ARP) maps a 32-bit IPv4 address to a 48-bit MAC address so devices can communicate on a local network, using broadcast requests, cached replies, and header fields to bridge the network and data link layers.

- 🔗 **Purpose:** ARP converts a known IP address into the MAC address needed to deliver frames on a local network.
- 🗂️ **ARP cache:** Resolved mappings are stored in an ARP cache with a timeout, avoiding repeated broadcasts for known hosts.
- 📡 **Resolution:** A host broadcasts an ARP request, and the device owning that IP returns a reply carrying its MAC address.
- 🧩 **ARP types:** Proxy, Gratuitous, Reverse (RARP), and Inverse (InARP) ARP serve specialized addressing needs.
- 🧾 **Header fields:** The ARP header carries hardware type, protocol type, address lengths, operation code, and sender and target addresses.
- 🛡️ **Security:** ARP has no authentication, making it vulnerable to spoofing, so AI-based monitoring helps detect poisoning.

Read More

![Address Resolution Protocol (ARP) in Networking](https://www.guru99.com/images/arp-address-resolution-protocol.png)

## What is ARP?

Address Resolution Protocol (ARP) is an important protocol of the network layer in the OSI model, which helps find the [MAC (Media Access Control) address](https://www.guru99.com/what-is-mac-address.html) of a device from its [IP address](https://www.guru99.com/types-of-ip-addresses.html). The main task of ARP is to convert a 32-bit IP address (for IPv4) into a 48-bit MAC address.

It is mainly used when one device wants to communicate with another device on a local network. The full form of ARP is Address Resolution Protocol.

## How Address Resolution Protocol (ARP) works?

Every operating system in an IPv4 network maintains an ARP cache. When a host needs to send a packet to another host on the LAN, it first checks its ARP cache to see whether the MAC address translation is already present. If the mapping exists, the host reuses it; if not, the host broadcasts an ARP request to discover the MAC address.

The diagram below shows how a host resolves addresses and forwards a packet through intermediate routers until it reaches the destination:

[![ARP resolving a MAC address and routing a packet from host P through routers T1 and T2 to host U]()](https://www.guru99.com/images/2/110220_1208_AddressReso1.png)

Consider the following example:

- Host P resolves the protocol address for host U when an application on P sends messages to U.
- If P cannot resolve the protocol address for host U directly, it uses the internet layer to deliver the packet to U by routing through T1 and T2.
- Host P resolves the T1 hardware address.
- The network layer on host P passes the packet, which contains the destination protocol address for U, to T1 for delivery.
- T1 delivers the packet to T2, which in turn forwards the packet to host U.

## Important ARP terms

Here are the important terms associated with the Address Resolution Protocol:

- **ARP Cache:** After resolving a MAC address, ARP stores it in a table (the cache) for future reference, so subsequent communications can reuse the MAC address without another broadcast.
- **ARP Cache Timeout:** It is the time for which a resolved MAC address can reside in the ARP cache before it is removed.
- **ARP request:** A packet broadcast over the network to check whether the sender can find the destination MAC address for a given IP address.
- **ARP response/reply:** The MAC address reply that the source receives from the destination, which aids further communication of the data.

## Address Resolution Methods

The association between a protocol address and a hardware address is known as binding. There are three techniques used for this purpose:

- **Table lookup:** Bindings are stored in memory with the protocol address as the key. The data link layer checks the protocol address to find the corresponding hardware address.
- **Dynamic:** This messaging method is used for “just-in-time” resolution. The data link layer sends a request message for a hardware address, and the destination responds.
- **Closed-form computation:** In this method, the protocol address is based on the hardware address, so the data link layer can derive the hardware address directly from the protocol address.

**Don't Miss:**

- [9 Best CCNA Training Courses (2026)](https://www.guru99.com/best-ccna-training-courses.html)
- [What is a MAC Address? Full Form & How to Find It](https://www.guru99.com/what-is-mac-address.html)
- [Top 70 CCNA Interview Questions and Answers (PDF)](https://www.guru99.com/ccna-interview-questions.html)
- [How to Fix HDMI Port Connection (TV, Windows)](https://www.guru99.com/fix-hdmi-connection-windows.html)

## Types of ARP

Here are the four types of Address Resolution Protocol:

- Proxy ARP
- Gratuitous ARP
- Reverse ARP (RARP)
- Inverse ARP (InARP)

The illustration below summarizes the four ARP types before we examine each one in detail:

[![Chart summarizing the four types of ARP: Proxy, Gratuitous, Reverse, and Inverse]()](https://www.guru99.com/images/2/110220_1208_AddressReso2.png)

### Proxy ARP

In the Proxy ARP method, Layer 3 devices can respond to ARP requests on behalf of another host. A configured router responds to the target IP address and maps its own MAC address to that target IP address, so the sender’s traffic reaches the intended destination through the router.

### Gratuitous ARP

Gratuitous ARP is a request that a host sends for its own IP address. It helps the network identify a duplicate IP address. When a router or switch broadcasts a gratuitous ARP for its own IP address and receives no reply, it confirms that no other node is using the IP address allocated to that device.

### Reverse ARP (RARP)

Reverse ARP, also called RARP, is a networking protocol used by a client system in a LAN to request its own IPv4 address from the ARP router table. The network administrator usually creates a table in the gateway router that maps each MAC address to a specific IP address.

### Inverse ARP (InARP)

Inverse ARP, also called InARP, is used to find the IP addresses of nodes from their data link layer addresses. InARP is widely used in ATM networks and Frame Relay, where Layer 2 virtual-circuit addressing is acquired from Layer 2 signaling.

## ARP Header

The ARP header contains the fields that both the request and the reply use to carry addressing information. The figure below shows the structure of the ARP header:

[![ARP header structure showing hardware type, protocol type, address lengths, operation code, and sender and target addresses]()](https://www.guru99.com/images/2/110220_1208_AddressReso3.png)

- **Hardware Type:** It is 1 for Ethernet.
- **Protocol Type:** It is the protocol used in the network layer.
- **Hardware Address Length:** It is the length in bytes, so it would be 6 for Ethernet.
- **Protocol Address Length:** Its value is 4 bytes.
- **Operation Code:** It indicates whether the packet is an ARP request (1) or an ARP response (2).
- **Sender Hardware Address:** It is the hardware address of the source node.
- **Sender Protocol Address:** It is the Layer 3 address of the source node.
- **Target Hardware Address:** It is used in a RARP request; the response then includes both the destination’s hardware and Layer 3 addresses.
- **Target Protocol Address:** It is used in an ARP request; the response carries both the Layer 3 address and the destination’s hardware address.

## Advantages of using ARP

Here are the pros and benefits of using ARP:

- If you know the IP address of a system, its MAC address can easily be discovered using ARP.
- End nodes do not need to be manually configured to “know” MAC addresses; they can be found when needed.
- ARP allows each host on a network to build a mapping between IP addresses and physical (MAC) addresses.
- The set of mappings stored in a host is called the ARP table or ARP cache.

## FAQs

⚡ What happens if an ARP request is made for a non-existing host?

The ARP request is broadcast across the LAN, but no device replies because no host owns that IP address. The sender receives no MAC address, so the packet cannot be delivered and is eventually dropped after a timeout.

🔁 What happens if a host sends an ARP request for its own IP address?

This is called a gratuitous ARP. The host announces its own IP-to-MAC mapping so other devices update their caches. If another machine replies, it signals a duplicate IP address conflict on the network, which an administrator must resolve.

🛡️ What is ARP spoofing, and why is it dangerous?

ARP spoofing, or ARP poisoning, sends forged ARP replies that link an attacker’s MAC address to a legitimate IP address. Because ARP has no authentication, victims send traffic to the attacker, enabling man-in-the-middle interception, session hijacking, or denial of service.

🌐 Does ARP work with IPv6?

No. ARP is specific to IPv4. IPv6 replaces it with the Neighbor Discovery Protocol (NDP), which uses ICMPv6 messages to resolve link-layer addresses and detect duplicate addresses, providing similar mapping plus added features such as router discovery.

🗂️ How can you view the ARP cache on Windows or Linux?

Run arp -a on Windows or Linux to list cached IP-to-MAC mappings. On Linux you can also use ip neigh. To remove a stale entry, use arp -d followed by the IP address, which forces a fresh resolution.

⚙️ What is the difference between a static and a dynamic ARP entry?

A dynamic entry is learned automatically through ARP requests and expires after a timeout. A static entry is configured manually and never ages out. Static entries improve resistance to spoofing but need maintenance whenever hardware or addresses change.

🤖 Can AI help detect ARP spoofing and cache-poisoning attacks?

Yes. Machine-learning models baseline normal IP-to-MAC mappings and traffic patterns, then flag sudden changes, duplicate MAC bindings, or abnormal ARP reply rates that signal poisoning. AI speeds detection, though engineers still confirm alerts before blocking a suspected host.

🛠️ Can GitHub Copilot help write network automation scripts?

[GitHub Copilot](https://github.com/features/copilot) drafts Python or shell scripts for tasks such as parsing ARP tables, pinging hosts, or automating cache checks from a short comment. Review the generated commands carefully before running them against production network devices.

#### Summarize this post with:

ChatGPTPerplexityGrokGoogle AI

**Stay Updated on AI** **Get Weekly AI Skills, Trends, Actionable Advice.**

##### Sign up for the newsletter

Subscribe for Free

You have successfully subscribed.  
Please check your inbox.

![AI-Newsletter]() Chosen by over **350,000+** professionals

[Scroll to top](#wrapper)

×

Search for:

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://www.guru99.com/#organization","name":"Guru99","sameAs":["https://www.facebook.com/Guru99Official","https://twitter.com/guru99com"],"logo":{"@type":"ImageObject","@id":"https://www.guru99.com/#logo","url":"https://www.guru99.com/images/guru99-logo-v1-150x59.png","contentUrl":"https://www.guru99.com/images/guru99-logo-v1-150x59.png","caption":"Guru99","inLanguage":"en-US"}},{"@type":"WebSite","@id":"https://www.guru99.com/#website","url":"https://www.guru99.com","name":"Guru99","publisher":{"@id":"https://www.guru99.com/#organization"},"inLanguage":"en-US"},{"@type":"ImageObject","@id":"https://www.guru99.com/images/arp-address-resolution-protocol.png","url":"https://www.guru99.com/images/arp-address-resolution-protocol.png","width":"700","height":"250","caption":"ARP - Address Resolution Protocol","inLanguage":"en-US"},{"@type":"BreadcrumbList","@id":"https://www.guru99.com/address-resolution-protocol.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":"1","item":{"@id":"https://www.guru99.com","name":"Home"}},{"@type":"ListItem","position":"2","item":{"@id":"https://www.guru99.com/networking","name":"Networking"}},{"@type":"ListItem","position":"3","item":{"@id":"https://www.guru99.com/address-resolution-protocol.html","name":"Address Resolution Protocol (ARP): What is the Header?"}}]},{"@type":"WebPage","@id":"https://www.guru99.com/address-resolution-protocol.html#webpage","url":"https://www.guru99.com/address-resolution-protocol.html","name":"Address Resolution Protocol (ARP): What is the Header?","dateModified":"2026-10-10T10:51:30+05:30","isPartOf":{"@id":"https://www.guru99.com/#website"},"primaryImageOfPage":{"@id":"https://www.guru99.com/images/arp-address-resolution-protocol.png"},"inLanguage":"en-US","breadcrumb":{"@id":"https://www.guru99.com/address-resolution-protocol.html#breadcrumb"}},{"@type":"Person","@id":"https://www.guru99.com/author/editorial","name":"Editorial Team","url":"https://www.guru99.com/author/editorial","image":{"@type":"ImageObject","@id":"https://www.guru99.com/images/favicon-new-logo.png","url":"https://www.guru99.com/images/favicon-new-logo.png","caption":"Editorial Team","inLanguage":"en-US"},"sameAs":["https://www.guru99.com/editorial-team"],"worksFor":{"@id":"https://www.guru99.com/#organization"}},{"articleSection":"Networking","headline":"Address Resolution Protocol (ARP): What is the Header?","description":"This tutorial covers address resolution protocol (ARP) basics, how arp works, ARP related important terms, ARP Types, ARP header, advantages, and more","keywords":"network, hacking","speakable":{"@type":"SpeakableSpecification","cssSelector":[".entry-title",".summary"]},"@type":"Article","author":{"@id":"https://www.guru99.com/author/editorial","name":"Editorial Team"},"dateModified":"2026-10-10T10:51:30+05:30","image":{"@id":"https://www.guru99.com/images/arp-address-resolution-protocol.png"},"copyrightYear":"2026","name":"Address Resolution Protocol (ARP): What is the Header?","subjectOf":[{"@type":"FAQPage","mainEntity":[{"@type":"Question","name":"What happens if an ARP request is made for a non-existing host?","acceptedAnswer":{"@type":"Answer","text":"The ARP request is broadcast across the LAN, but no device replies because no host owns that IP address. The sender receives no MAC address, so the packet cannot be delivered and is eventually dropped after a timeout."}},{"@type":"Question","name":"What happens if a host sends an ARP request for its own IP address?","acceptedAnswer":{"@type":"Answer","text":"This is called a gratuitous ARP. The host announces its own IP-to-MAC mapping so other devices update their caches. If another machine replies, it signals a duplicate IP address conflict on the network, which an administrator must resolve."}},{"@type":"Question","name":"What is ARP spoofing, and why is it dangerous?","acceptedAnswer":{"@type":"Answer","text":"ARP spoofing, or ARP poisoning, sends forged ARP replies that link an attacker's MAC address to a legitimate IP address. Because ARP has no authentication, victims send traffic to the attacker, enabling man-in-the-middle interception, session hijacking, or denial of service."}},{"@type":"Question","name":"Does ARP work with IPv6?","acceptedAnswer":{"@type":"Answer","text":"No. ARP is specific to IPv4. IPv6 replaces it with the Neighbor Discovery Protocol (NDP), which uses ICMPv6 messages to resolve link-layer addresses and detect duplicate addresses, providing similar mapping plus added features such as router discovery."}},{"@type":"Question","name":"How can you view the ARP cache on Windows or Linux?","acceptedAnswer":{"@type":"Answer","text":"Run arp -a on Windows or Linux to list cached IP-to-MAC mappings. On Linux you can also use ip neigh. To remove a stale entry, use arp -d followed by the IP address, which forces a fresh resolution."}},{"@type":"Question","name":"What is the difference between a static and a dynamic ARP entry?","acceptedAnswer":{"@type":"Answer","text":"A dynamic entry is learned automatically through ARP requests and expires after a timeout. A static entry is configured manually and never ages out. Static entries improve resistance to spoofing but need maintenance whenever hardware or addresses change."}},{"@type":"Question","name":"Can AI help detect ARP spoofing and cache-poisoning attacks?","acceptedAnswer":{"@type":"Answer","text":"Yes. Machine-learning models baseline normal IP-to-MAC mappings and traffic patterns, then flag sudden changes, duplicate MAC bindings, or abnormal ARP reply rates that signal poisoning. AI speeds detection, though engineers still confirm alerts before blocking a suspected host."}},{"@type":"Question","name":"Can GitHub Copilot help write network automation scripts?","acceptedAnswer":{"@type":"Answer","text":"GitHub Copilot drafts Python or shell scripts for tasks such as parsing ARP tables, pinging hosts, or automating cache checks from a short comment. Review the generated commands carefully before running them against production network devices."}}]}],"@id":"https://www.guru99.com/address-resolution-protocol.html#schema-23045","isPartOf":{"@id":"https://www.guru99.com/address-resolution-protocol.html#webpage"},"publisher":{"@id":"https://www.guru99.com/#organization"},"inLanguage":"en-US","mainEntityOfPage":{"@id":"https://www.guru99.com/address-resolution-protocol.html#webpage"}}]}
```
