"TCP/IP Detailed Volume 1: Protocol" chapter 5th RARP: Reverse Address Resolution Protocol---reading notes

Source: Internet
Author: User

"TCP/IP Detailed Volume 1: Protocol" chapter 5th RARP: Reverse Address Resolution Protocol---reading notes

1. Introduction

When a system boots with a local disk, the IP address is typically read from the configuration file on disk. However, diskless machines, such as x terminals or diskless workstations, require additional methods to obtain an IP address.

Each system on the network has a unique hardware address, which is configured by the network interface manufacturer. The RARP implementation of diskless systems is to read a unique hardware address from the interface card and then send a copy of the RARP request (a frame of data that is broadcast on the network), requesting a host to respond to the IP address of the diskless system (in the Rarp answer).

2. Rarp Grouping format

The format of the RARP grouping is basically consistent with the ARP grouping. The main difference between them is that the frame type code for the RARP request or answer is 0x8035, and the operation code for the RARP request is 3, and the answer operation code is 4.

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/8B/9F/wKiom1hSri_iAEH8AACNwM6fHlc771.png "title=" ARP &RARP grouping format. png "alt=" Wkiom1hsri_iaeh8aacnwm6fhlc771.png "/>

Correspondence and ARP,RARP requests are transmitted in a broadcast manner, while RARP responses are generally transmitted by unicast (unicast).

3 RA RP example

4, the design of Rarp server

Although Rarp is conceptually simple, the design of a RARP server is related to the system and is more complex. Instead, providing an ARP server is simple, usually a part of TCP/IP implementation in the kernel. Since the kernel knows the IP address and the hardware address, when it receives an ARP request asking for an IP address, it can simply provide the answer with the corresponding hardware address.

4.1. RARP server as User process

The complexity of the RARP server is:

The server typically provides a mapping of the hardware address to the IP address for multiple hosts (all diskless systems on the network), which is contained in a disk file. Because the kernel does not normally read and parse disk files, the functionality of the RARP server is provided by the user process, not as part of the kernel's TCP/IP implementation.

The RARP request is transmitted as a special type of Ethernet data frame (the Frame Type field value is 0x8035), indicating that the RARP server must be able to send and receive this type of Ethernet data frame.

4.2. There are multiple RARP servers per network

A complication of the RARP server implementation is that RARP requests are broadcast on the hardware layer, which means that they are not forwarded by the router ( because there is no destination IP, so the route cannot be forwarded ). In order for the diskless system to boot in the state of the RARP server shutdown, it is usually possible to provide multiple RARP servers on a single network (such as a cable).

As the number of servers increases (to provide redundant backups), network traffic increases as each server sends a RARP response to each RARP request. Diskless systems that send RARP requests generally take the first received RARP response. (for ARP, only one host sends an ARP reply). Each RARP server responds simultaneously, which increases the probability that the Ethernet will collide.

This article is from the "Do Your best" blog, so be sure to keep this source http://qiaopeng688.blog.51cto.com/3572484/1883188

TCP/IP Detailed Volume 1: protocol 5th RARP: Reverse Address Resolution Protocol---reading notes

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.