You are on page 1of 2

Computer Networks

RARP (Reverse Address Resolution Protocol)


In networking it is necessary for the sender to know the IP address and the Physical address of
the receiver for successful communication. If the lP address of the receiver is unknown to the
sender; it uses RARP protocol to identify the specific IP address of the receiver.

RARP Request

Packet (Network layer):

10.0.0.1 10.255.255.255 I want to know the IP address of that PC who’s


Physical address is :CC:CC:CC:CC:CC:CC

Frame (Data Link layer):

:AA:AA:AA:AA :
:AA CC:CC:CC:CC:CC:
CC

PC – A PC – B PC- C

IP Add. : 10.0.0.1 IP Add. : 10.0.0.3 IP Add. : 10.0.0.5

MAC Add. MAC Add. MAC Add.


:AA:AA:AA:AA:AA :BB:BB:BB:BB:BB:BB :CC:CC:CC:CC:CC:CC

In the above scenario there are three computers in a single network. PC-A wants to
communicate with PC-C. But it only knows the Physical address of PC-C. So, PC-A will

Shahrin Chowdhury

Faculty, CS Department
take the help of RARP to get the IP address of PC-C. After making the RARP request
frame PC-A will broadcast the frame in the network. Assume that PC-B have got the
frame it will read the header of the frame and find out the physical address
(:CC:CC:CC:CC:CC:CC) as destination address. The host will find out the destination MAC
address doesn’t match with its own MAC address. Therefore, PC-B will drop the packet.
On the other hand, when PC-C will get the frame it will read the header of the frame and
find out the physical address ( :CC:CC:CC:CC:CC:CC) as destination address which
matches it with its own MAC address. So, PC-C will transfer it to network layer. In
network layer the host will check the destination IP and finds out that it is a broadcast
address. Therefore, PC-C will start reading the content of the packet. And it will make a
RARP reply frame and send it back to PC- A.

RARP Reply

Packet (Network layer):

10.0.0.5 10.0.0.1 My MAC address is :CC:CC:CC:CC:CC:CC and I hold


the IP address 10.0.0.5

Frame (Data Link layer):

: :AA:AA:AA:AA
CC:CC:CC:CC:CC :AA
:CC

Shahrin Chowdhury

Faculty, CS Department

You might also like