×

Working of ARP

The majority of computer programmes and applications send and receive messages using logical addresses (IP addresses), but the actual communication takes place over physical addresses (MAC addresses), which is found in layer 2 of the OSI model.

Our objective is to find the destination MAC address so that we can communicate with other devices. Because ARP transforms IP addresses into Mac addresses or physical addresses, which is helpful in this situation.

A new computer that joins a LAN is specified by a special IP address that is used for identification and communication. The ARP program will be asked to locate a MAC address that matches the IP address when a packet is incoming from a host computer on a particular LAN reaches the gateway.

A host first determines whether the IP to Mac address translation is present or not in the ARP cache when it requests a MAC address to send a packet to another host in the LAN. If it exists, a new ARP request is not required and if the translation is not exist a request for network addresses is sent before an ARP operation.

ARP sends a request packet to every device on the LAN if any LAN machine use the particular IP address.

The ARP Request message will be broadcast throughout the local network by the source computer. Every device connected to the LAN network receives the broadcast message.

Instead of being broadcast, the ARP Reply message is unicast. This is so because the device from which the ARP Reply message is being sent is aware of the MAC address of the device from which the message is being received.

The destination's MAC address will be updated by the source in the ARP cache. The sender can now communicate with the receiver directly.

Network devices transfer the packet to the network layer after removing the frame's protocol data unit (PDU) called the data link layer's header (layer 3 of OSI).

If the network IDs of the source and destination IPs match, the destination's MAC address is returned to the source, otherwise, the packet reaches the network gateway, which broadcasts it to the connected devices and verifies their network IDs.

The above-said procedure continues up until the second last network device in the path arrives at the destination, at which point it is validated and ARP replies with the destination MAC address.

The request message or field in ARP contains many important terms like:

1. Hardware Type: It describes the type of hardware that is used to send the ARP message.The most popular kind of hardware is Ethernet.

2. Protocol Type: It describes the protocol type (hex, decimal, etc.) Each protocol is specified as a number. And in this case, the IPv4 protocol is a hex type protocol which is commonly used.

3. Protocol Size: It describes the length or size of the protocol. Here the size of the IPv4 address is 4 bytes.

4. Opcode: It describes the ARP message's code or nature. For Example, 1 represents an ARP request, and 2 represents an ARP response.

5. Source IP Address: It contains source IP address like 10.10.10.2

6. Destination(Target) IP Address: It contains a destination IP address like 10.10.10.1

7. Source MAC Address: It contains Source Mac Address like 00:1a:6b:6c:0c:cc

Advantages Of ARP

  • The main benefit of a proxy ARP is that it can communicate with every machine on the network with the help of one router.
  • If we are aware of the device's IP address, we can quickly determine the MAC address of that device by using ARP.
  • It is not necessary to set the end nodes addresses for the MAC address. If necessary, we can locate it.

Disadvantages of ARP

  • The main drawback is that hosts on a network build up more information in their ARP tables because they believe that all other machines are reachable via an ARP request.
  • It boosts ARP traffic in your segment.
  • Larger ARP tables are required by hosts to manage IP-to-MAC address mappings.
  • Security threats are possible.
  • Networks without ARP-based address resolution are not supported by it.
  • It does not apply to every network topology.

Why is ARP important?

ARP is required because it converts the host software address into a hardware address (MAC address). A host is unable to determine the hardware address of another host without the use of ARP. The local area network (LAN) maintains a table or directory that converts IP addresses to MAC addresses for various devices, including routers and endpoints.

Users or even IT administrators are not responsible for maintaining this table or directory. Instead, the ARP protocol generates entries when required.

ARP Spoofing

ARP spoofing is also known as ARP poison routing and ARP cache poisoning. In this malicious attack, a hacker sends phony ARP messages to a target LAN in an effort to associate their MAC address with the IP address of a reliable server or device on the network.

Data from the victim's computer can be sent through the link to the attacker's machine instead of the original destination. Attacks using ARP spoofing can be risky because sensitive data may be transferred between computers without the victim's knowledge.

Conclusion

Our objective is to find the destination MAC address so that we can communicate with other devices. Because ARP transforms IP addresses into Mac addresses or physical addresses, which is helpful in this situation.


Related Topics

Classes of Routing Protocols

In this tutorial, we will discuss about the classes of the routing protocols. Routing: What is it? Routing in computer networks is a procedure in which the layer 3 or network layer...

7 minutes read.

Error Correction and Error Detection

Error Correction and Error Detection Error correction and error detection techniques are work on the data-link layer. The data link layer ensures the frames are sent from the sender to the...

16 minutes read.

E-mail in Computer Network

E-mail E-mail stands for electronic mail. E-mail is an application layer service in which a user can transfer the messages and information with another user. E-mail is the most popular service...

2 minutes read.

TCP

TCP is a transport layer protocol that helps to establish connections. TCP means Transmission Control Protocol. It guarantees secure data transmission between two network-connected devices. The data can only be...

5 minutes read.

Disadvantages of Computer Network

What is Computer Network? A computer network is a collection of interconnected devices that can communicate and exchange data with each other. Networks allow devices to share resources such as printers...

3 minutes read.

Advantages and Disadvantages of Fibre Optics Cable

What is Fibre Optics Cable? A fibre optics cable is made of plastic or fibre, which is used to transmit the data. In fibre optics cable, the data is sent along...

3 minutes read.

Computer Network Topology: Bus, Star, Ring, Tree and Hybrid

Network Topology: The Computer network topology refers to the layout of connected devices on a network. The network topology is the combination by which computer or network devices interconnected to...

4 minutes read.

Data Link Control

Data Link Control Data-link control is the main function of the data link layer. It deals with the configuration and coordination for connection between two neighboring nodes: node-to-node communication. The task...

10 minutes read.

Aloha

Aloha Norman Abramson and his colleagues were developed aloha at the University of Hawaii in the 1970s. ALOHA is a Multiple Access Protocol which is used for random access in the...

3 minutes read.

What is Framing in a Computer Network?

In the stream of bits, the data is stored by transmitting the bit by the connection of two devices through cable. This type of connection for data transmission is called...

6 minutes read.

Advantages and Disadvantages of WAN

Before we move to advantages and disadvantages of WAN, first we discuss about what is WAN and what are its features. A wide area network is a vast network of information...

4 minutes read.

Analog Transmission

Digital to Analog Transmission The data is sent one device to another via analog carrier, and firstly it is converted into the analog signals. It modifies the analog signals to represent...

3 minutes read.

Difference between Transport and Network Layer

When it comes to the Internet, it is essential to understand the different layers that make up the network. The two most important layers are Transport Layer and Network Layer....

7 minutes read.

Decoding in Communication Process

The use of codes is necessary for all forms of communication. The sender, transmitter, and receiver are the three major components of more conventional communication paradigms. The sender is in...

4 minutes read.

Application Layer in OSI Model

This article will help you in getting a better understanding of the Application layer in the OSI model. It is the uppermost layer in the OSI Model. The application layer establishes...

4 minutes read.

Basic Networking Devices

Introduction Physical components, or network devices, allow hardware on a computer network to link and convey with one another. Network equipment such as switches, routers, gateways, hubs, repeaters, bridges, and routers...

6 minutes read.

What is Computer Network?

 A computer network is a collection of interconnected devices, such as computers, servers, routers, and switches, that are connected together to share resources and exchange data. These devices use a...

6 minutes read.

Two Port Network in Computer Networks

A Two Port Network is a four-terminal electric network or circuit with 2 terminals on both sides, each connecting with more circuits or devices. Two terminals together make a port, one...

5 minutes read.

TCP/IP model in Computer Network

An essential foundation for computer networking is the TCP/IP model. It stands for Transmission Control Protocol and Internet Protocol which are the two major Internet protocols. This model outlines the...

6 minutes read.

Computer Network Switching

Switching Many numbers of connected devices are called the network. Whenever a company has multiple devices, there has a problem of how to connected them to make the one to one...

5 minutes read.