- DCN Tutorial
- Data Comm & Networks Home
- DCN - Overview
- DCN - Computer Network Types
- DCN - Network LAN Technologies
- DCN - Computer Network Topologies
- DCN - Computer Network Models
- DCN - Computer Network Security
- Physical Layer
- DCN - Physical Layer Introduction
- DCN - Digital Transmission
- DCN - Analog Transmission
- DCN - Transmission media
- DCN - Wireless Transmission
- DCN - Multiplexing
- DCN - Network Switching
- Data Link Layer
- DCN - Data Link Layer Introduction
- DCN - Error detection and Correction
- DCN - Data Link Control & Protocols
- Network Layer
- DCN - Network Layer Introduction
- DCN - Network Addressing
- DCN - Routing
- DCN - Internetworking
- DCN - Network Layer Protocols
- Transport Layer
- DCN - Transport Layer Introduction
- DCN - Transmission Control Protocol
- DCN - User Datagram Protocol
- Application Layer
- DCN - Application Layer Introduction
- DCN - Client-Server Model
- DCN - Application Protocols
- DCN - Network Services
- DCN Useful Resources
- DCN - Quick Guide
- DCN - Useful Resources
What is Address Resolution Protocol (ARP)?
Address Resolution Protocol (ARP) is a network-specific standard protocol. The Address Resolution Protocol is important for changing the higher-level protocol address (IP addresses) to physical network addresses. It is described in RFC 826.
ARP relates an IP address with the physical address. On a typical physical network such as LAN, each device on a link is identified by a physical address, usually printed on the network interface card (NIC). A physical address can be changed easily when NIC on a particular machine fails.
The IP Address cannot be changed. ARP can find the physical address of the node when its internet address is known. ARP provides a dynamic mapping from an IP address to the corresponding hardware address.
When one host wants to communicate with another host on the network, it needs to resolve the IP address of each host to the host's hardware address.
This process is as follows−
- When a host tries to interact with another host, an ARP request is initiated. If the IP address is for the local network, the source host checks its ARP cache to find out the hardware address of the destination computer.
- If the correspondence hardware address is not found, ARP broadcasts the request to all the local hosts.
- All hosts receive the broadcast and check their own IP address. If no match is discovered, the request is ignored.
- The destination host that finds the matching IP address sends an ARP reply to the source host along with its hardware address, thus establishing the communication. The ARP cache is then updated with the hardware address of the destination host.
ARP Packet Generation
If an application needs to send information to a specific IP destination address, the IP routing structure first determines the IP address of the next-hop of the packet (it should be the destination host itself or a router) and the hardware tool on which it should be transmitted.
If it is an IEEE 802.3/4/5 network, the ARP structure should be considered to design the <protocol type target protocol address> to a physical address.
The ARP module attempts to find the address in this ARP cache. If it is to find the connecting pair, it provides the equivalent 48-bit physical location back to the caller (the device driver), which then shares the packet.
If it does not discover the pair in its table, it removes the packet (the assumption is that a higher-level protocol will resend) and creates a network broadcast of an ARP request.
- Hardware address space: It specifies the type of hardware such as Ethernet or Packet Radio net.
- Protocol address space: It specifies the type of protocol, same as the Ether type field in the IEEE 802 header (IP or ARP).
- Hardware Address Length: It determines the length (in bytes) of the hardware addresses in this packet. For IEEE 802.3 and IEEE 802.5, this is 6.
- Protocol Address Length: It specifies the length (in bytes) of the protocol addresses in this packet. For IP, this is 4 byte.
- Operation Code: It specifies whether this is an ARP request (1) or reply (2).
- Source/target hardware address: It contains the physical network hardware addresses. For IEEE 802.3, these are 48-bit addresses.
- For the ARP request packet, the target hardware address is the only undefined field in the packet.
- Related Articles
- What is Reverse Address Resolution Protocol (RARP)?
- Address Resolution in DNS (Domain Name System)
- ARP, Reverse ARP, Inverse ARP, Proxy ARP, and Gratuitous ARP
- What is loopback address?
- What is ICMP Protocol?
- What is Protocol Layering?
- ARP Commands
- ARP Request
- ARP Table
- What is Three Address Code?
- What is protocol graph? Compare the network interface and protocol
- What is the 0x protocol?
- What is the scope resolution operator in C#?
- ARP Packet Format
- What is the MITM (Man in The Middle) Attack using ARP Poisoning?