AfterAcademy Tech
•
07 Feb 2020

Suppose you want to access any website like google.com. The browser behind the scene will use the application layer services such as HTTP for establishing the connection between two systems. Now, the HTTP will get help from the transport layer including TCP (Transmission Control Protocol) and add the information like Port number and the details regarding transport layer protocol. Now, the network layer will add IP information. Network Layer will add the source IP address and the destination IP address. How will the source computer know about the destination IP address? The DNS will resolve the URL or name to the IP address. Now, this data packet is handed down to layer 2 i.e. data link layer. In layer 2, the communication happens mostly over the MAC address or physical address(MAC address is the permanent physical address of the computer). So how in the world would the source computer know the destination IP address or the MAC address associated with it? This is where ARP comes into the picture. ARP helps in knowing the MAC address of the destination given the IP address. So, let's dive deep into ARP and start the blog.
Address Resolution Protocol is one of the most important protocols of the network layer in the OSI model which helps in finding the MAC(Media Access Control) address given the IP address of the system i.e. the main duty of the ARP is to convert the 32-bit IP address(for IPv4) to 48-bit address i.e. the MAC address.

Sender's MAC Address 00-11-0a-78-45-AD
Sender's IP Address 192.16.10.104
Target's MAC Address 00-00-00-00-00-00
Target's IP Address 192.16.20.204
Sender's MAC Address 00-11-0a-78-45-AA
Sender's IP Address 192.16.20.204
Target's MAC Address 00-11-0a-78-45-AD
Target's IP Address 192.16.10.104
The ARP Request and Reply messages can be captured. The sample example below is the example of an ARP Request Message which is captured. You can see that the destination MAC address is blank i.e. 00:00:00:00:00:00.
The request message contains various other fields like

A sample example of ARP Reply message captured. The reply message contains the MAC address which was asked by the source. The MAC address 00:1d:09:f0:92:ab is sent in the ARP Reply message.

This is all about ARP and its working. Hope you learned something new today.
Do share this blog with your friends to spread the knowledge. Visit our YouTube channel for more content. You can read more blogs from here.
Keep Learning 🙂
Team AfterAcademy!!
AfterAcademy Tech
In this blog, we will learn what is an FTP protocol, how does it works, what are various modes in which it works, what are the advantages and disadvantages of using it.

AfterAcademy Tech
In this blog, we will mainly learn about the OSI model and its working in detail. We'll focus on the features and working of each layer of the OSI model.

AfterAcademy Tech
In this blog, we will learn what is DHCP, what are various entities related to DHCP and how does it work. We will also discuss how IP configurations are dynamically done.

AfterAcademy Tech
In this blog, we will mainly learn about the TCP/IP model and its working in detail. We'll focus on the features and working of each layer of the TCP/IP model.
