Introduction to ARP and RARP
ARP and RARP both are the Network layer protocol. Whenever a host needs to send an IP datagram to another host, the sender requires both the logical address and physical address of the receiver. The dynamic mapping provides two protocols ARP and RARP.
Definition of ARP
ARP (Address Resolution Protocol) is a network layer protocol. As ARP is a dynamic mapping protocol, each host in the network knows the Logical address of another host. Now, suppose a host needs to send the IP datagram to another host. But, the IP datagram must be encapsulated in a frame so that it can pass through the physical network between sender and receiver.
Here, the sender needs the physical address of the receiver so that it is being identified that to which receiver the packet belong to when the packet travel in the physical network.
For retrieving the physical address of the receiver the sender performs the following action.
1. The sender sends the ARP query packet on the network which is broadcasted to all the other host or router present in the network.
2. The ARP query packet contains the logical and physical address of the sender and the logical address of the receiver.
3. All the host and router receiving the ARP query packet process it but, only the intended receiver identifies its logical address present in the ARP query packet.
4. The receiver then sends ARP response packet which contains the logical (IP) address and physical address of the receiver.
5. The ARP response packet is unicast directly to the sender whose physical address is present in the ARP query packet.
Definition of RARP
RARP (Reverse Address Resolution Protocol) is also a network layer protocol. RARP is a TCP/IP protocol that allows any host to obtain its IP address from the server. RARP is adapted from the ARP protocol and it is just reverse of ARP.
RARP perform following steps to obtain an IP address from the server.
1. The sender broadcast the RARP request to all the other host present in the network.
2. The RARP request packet contains the physical address of the sender.
3. All the host receiving the RARP request packet process it but, the authorized host only which can serve RARP service, responds to the RARP request packet such host are known as RARP Server.
4. The authorized RARP server replies directly to requesting host with the RARP response packet which contains IP address for the sender.
RARP is outdated now because of two reasons. First, the RARP is using the broadcast service of the data-link layer; that means the RARP must be present at each network. Second, RARP only provides IP address but today the computer also need other information.
Key Differences Between ARP and RARP
1. The full form of ARP is Address Resolution Protocol whereas, the full form of RARP is Reverse Address Resolution Protocol.
2. ARP protocol retrieves the physical address of the receiver. On the other hand, the RARP protocol retrieves logical (IP) address of the protocol.
3. ARP maps 32 bit logical (IPv4) address to a 48-bit physical address of the receiver. On the other hand, RARP maps 48-bit physical address to 32-bit logical address of the receiver.
ARP and RARP both are the Network layer protocol. Whenever a host needs to send an IP datagram to another host, the sender requires both the logical address and physical address of the receiver. The dynamic mapping provides two protocols ARP and RARP.
Definition of ARP
ARP (Address Resolution Protocol) is a network layer protocol. As ARP is a dynamic mapping protocol, each host in the network knows the Logical address of another host. Now, suppose a host needs to send the IP datagram to another host. But, the IP datagram must be encapsulated in a frame so that it can pass through the physical network between sender and receiver.
Here, the sender needs the physical address of the receiver so that it is being identified that to which receiver the packet belong to when the packet travel in the physical network.
For retrieving the physical address of the receiver the sender performs the following action.
1. The sender sends the ARP query packet on the network which is broadcasted to all the other host or router present in the network.
2. The ARP query packet contains the logical and physical address of the sender and the logical address of the receiver.
3. All the host and router receiving the ARP query packet process it but, only the intended receiver identifies its logical address present in the ARP query packet.
4. The receiver then sends ARP response packet which contains the logical (IP) address and physical address of the receiver.
5. The ARP response packet is unicast directly to the sender whose physical address is present in the ARP query packet.
Definition of RARP
RARP (Reverse Address Resolution Protocol) is also a network layer protocol. RARP is a TCP/IP protocol that allows any host to obtain its IP address from the server. RARP is adapted from the ARP protocol and it is just reverse of ARP.
RARP perform following steps to obtain an IP address from the server.
1. The sender broadcast the RARP request to all the other host present in the network.
2. The RARP request packet contains the physical address of the sender.
3. All the host receiving the RARP request packet process it but, the authorized host only which can serve RARP service, responds to the RARP request packet such host are known as RARP Server.
4. The authorized RARP server replies directly to requesting host with the RARP response packet which contains IP address for the sender.
RARP is outdated now because of two reasons. First, the RARP is using the broadcast service of the data-link layer; that means the RARP must be present at each network. Second, RARP only provides IP address but today the computer also need other information.
Key Differences Between ARP and RARP
1. The full form of ARP is Address Resolution Protocol whereas, the full form of RARP is Reverse Address Resolution Protocol.
2. ARP protocol retrieves the physical address of the receiver. On the other hand, the RARP protocol retrieves logical (IP) address of the protocol.
3. ARP maps 32 bit logical (IPv4) address to a 48-bit physical address of the receiver. On the other hand, RARP maps 48-bit physical address to 32-bit logical address of the receiver.