RARP: Reverse address Translation protocol. And a protocol that converts physical addresses to IP addresses, working at the network level.
The basic working principle of RARP is as follows:
(1) The sender sends a local RARP broadcast packet, declares its own MAC address in this broadcast packet, and requests any RARP server that receives the request to assign an IP address.
(2) The RARP server on the local network segment receives the request, checks its Rarp list, and finds the IP address of the MAC address. If present, the RARP server sends a response packet to the source host and provides the IP address to the other host for use, and the RARP server does not respond to this if it does not exist.
(3) The source end receives the response information from the RARP server, uses the obtained IP address to communicate; If you have not received the response information from the RARP server, the initialization fails. 、
Usage scenarios:
Allows the physical machine on the local area network to request its IP address from the ARP table or cache on the gateway server. The network administrator creates a table in the LAN gateway router to map the physical address (MAC) and its corresponding IP address. When a new machine is set up, its RARP client program needs to request the appropriate IP address from the RARP server on the router. Assuming that a record has been set in the routing table, the RARP server will return the IP address to the machine and the machine will be stored for later use. RARP can be used for Ethernet, fiber-optic distributed Data interface and Token ring.