ARP Protocol - GeeksforGeeks
ARP Protocol - GeeksforGeeks
ARP Protocol - GeeksforGeeks
Courses TutorialsJobsPracticeContests
ARP Protocol
Last Updated : 24 May, 2024
ARP (Address Resolution Protocol) is an important protocol that plays an
important role in the networking world. When working with your network
systems, this protocol helps to identify specified network devices and find
their addresses. Its main purpose is to duly transport data packets over the
network, allowing them to move between devices connected to your
heritage network.
In this article, we will give you with information about the introductory
principles of ARP protocol, how it works, and its significance. We’ll also tell
you why ARP is important and how it can be used in your networking
systems. Through this article, you’ll gain deep knowledge of ARP protocol
and make your place in the world of networking.
In other words, ARP is used to mapping the IP Address into MAC Address.
When one device wants to communicate with another device in a LAN (local
area network) network, the ARP protocol is used.
ARP protocol finds the MAC address based on IP address. IP address is used
to communicate with any device at the application layer. But to communicate
with a device at the data link layer or to send data to it, a MAC address is
required.
When data is sent to a local host, the data travels between networks via IP
address. But to reach that host in LAN, it needs the MAC address of that
host. In this situation the address resolution protocol plays an important
role.
Types of ARP
There are four types of ARP protocol they are as follows:-
1. Proxy ARP
2. Gratuitous ARP
3. Reverse ARP
4. Inverse ARP
1. Proxy ARP
This is a technique through which proxy ARP in a network can answer ARP
queries of IP addresses that are not in that network. That is, if we
understand it in simple language, the Proxy server can also respond to
queries of IP-address of other networks.
Through this we can fool the other person because instead of the MAC
address of the destination device, the MAC address of the proxy server is
used and the other person does not even know.
2. Gratuitous ARP
3. Reverse ARP
That is, to know the IP address of our computer server, we use Reverse ARP,
which works under a networking protocol.
Inverse ARP, it is the opposite of ARP, that is, we use it to know the IP
address of our device through MAC Address, that is, it is such a networking
technology, through this we convert MAC Address into IP address. Can
translate. It is mainly used in ATM machines.
Hardware Type: The size of this field is 2 bytes. This field defines what
type of Hardware is used to transmit the message. The most common
Hardware type is Ethernet. The value of Ethernet is 1.
Protocol Type: This field tells which protocol has been used to transmit
the message. substantially the value of this field is 2048 which indicates
IPv4.
Hardware Address Length: It shows the length of the tackle address in
bytes. The size of Ethernet MAC address is 6 bytes.
Protocol Address Length: It shows the size of the IP address in bytes.
The size of IP address is 4 bytes.
OP law: This field tells the type of message. If the value of this field is 1
also it’s a request message and if the value of this field is 2 also it’s a
reply message.
Sender Hardware Address: This field contains the MAC address of the
device transferring the message.
Sender Protocol Address: This field contains the IP address of the device
transferring the message.
Target Hardware Address: This field is empty in the request message.
This field contains the MAC address of the entering device.
Target Protocol Address: This field contains the IP address of the
entering device.
By using this protocol we can easily find out the MAC Address of the
device.
There is no need to configure the end nodes at all to extract the MAC
address through this protocol.
Through this protocol we can easily translate IP address into MAC
Address.
There are four main types of this protocol. Which we can use in different
ways, and they prove to be very helpful.