Skip to main content

2. General Issues

This section covers issues of general relevance to all BOOTP entities (clients, servers, and relay agents).

2.1. General BOOTP Processing​

The following consistency checks SHOULD be performed on BOOTP messages:

  • The IP Total Length and UDP Length must be large enough to contain the minimal BOOTP header of 300 octets (in the UDP data field) specified in [1].

NOTE: Future extensions to the BOOTP protocol may increase the size of BOOTP messages. Therefore, BOOTP messages which, according to the IP Total Length and UDP Length fields, are larger than the minimum size specified by [1] MUST also be accepted.

  • The 'op' (opcode) field of the message must contain either the code for a BOOTREQUEST (1) or the code for a BOOTREPLY (2).

BOOTP messages not meeting these consistency checks MUST be silently discarded.

2.2. Definition of the 'flags' Field​

The standard BOOTP message format defined in [1] includes a two-octet field located between the 'secs' field and the 'ciaddr' field. This field is merely designated as "unused" and its contents left unspecified, although Section 7.1 of [1] does offer the following suggestion:

"Before setting up the packet for the first time, it is a good idea to clear the entire packet buffer to all zeros; this will place all fields in their default state."

This memo hereby designates this two-octet field as the 'flags' field.

This memo hereby defines the most significant bit of the 'flags' field as the BROADCAST (B) flag. The semantics of this flag are discussed in Sections 3.1.1 and 4.1.2 of this memo.

The remaining bits of the 'flags' field are reserved for future use. They MUST be set to zero by clients and ignored by servers and relay agents.

The 'flags' field, then, appears as follows:

                     0                   1
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|B| MBZ |
+-+-----------------------------+

where:

B BROADCAST flag (discussed in Sections 3.1.1 and 4.1.2)

MBZ MUST BE ZERO (reserved for future use)

The format of a BOOTP message is shown below. The numbers in parentheses indicate the size of each field in octets.

   0                   1                   2                   3
   0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |     op (1)    |   htype (1)   |   hlen (1)    |   hops (1)    |
   +---------------+---------------+---------------+---------------+
   |                            xid (4)                            |
   +-------------------------------+-------------------------------+
   |           secs (2)            |           flags (2)           |
   +-------------------------------+-------------------------------+
   |                           ciaddr (4)                          |
   +---------------------------------------------------------------+
   |                           yiaddr (4)                          |
   +---------------------------------------------------------------+
   |                           siaddr (4)                          |
   +---------------------------------------------------------------+
   |                           giaddr (4)                          |
   +---------------------------------------------------------------+
   |                                                               |
   |                           chaddr (16)                         |
   |                                                               |
   |                                                               |
   +---------------------------------------------------------------+
   |                                                               |
   |                           sname  (64)                         |
   +---------------------------------------------------------------+
   |                                                               |
   |                           file   (128)                        |
   +---------------------------------------------------------------+
   |                                                               |
   |                           vend   (64)                         |
   +---------------------------------------------------------------+

2.3. Bit Ordering of Hardware Addresses​

The bit ordering used for link-level hardware addresses in the 'chaddr' field SHOULD be the same as the ordering used for the ARP protocol [4] on the client's link-level network (assuming ARP is defined for that network).

The 'chaddr' field MUST be preserved as it was specified by the BOOTP client. A relay agent MUST NOT reverse the bit ordering of the 'chaddr' field even if it happens to be relaying a BOOTREQUEST between two networks which use different bit orderings.

DISCUSSION:

One of the primary reasons the 'chaddr' field exists is to enable BOOTP servers and relay agents to communicate directly with clients without the use of broadcasts. In practice, the contents of the 'chaddr' field is often used to create an ARP-cache entry in exactly the same way the normal ARP protocol would have. Clearly, interoperability can only be achieved if a consistent interpretation of the 'chaddr' field is used.

As a practical example, this means that the bit ordering used for the 'chaddr' field by a BOOTP client on an IEEE 802.5 Token Ring network is the opposite of the bit ordering used by a BOOTP client on a DIX ethernet network.

2.4. BOOTP Over IEEE 802.5 Token Ring Networks​

Special consideration of the client/server and client/relay agent interactions must be given to IEEE 802.5 networks because of non-transparent bridging.

The client SHOULD send its broadcast BOOTREQUEST with an All Routes Explorer RIF. This will enable servers/relay agents to cache the return route if they choose to do so. For those server/relay agents which cannot cache the return route (because they are stateless, for example), the BOOTREPLY message SHOULD be sent to the client's hardware address, as taken from the BOOTP message, with a Spanning Tree Rooted RIF. The actual bridge route will be recorded by the client and server/relay agent by normal ARP processing code.

DISCUSSION:

In the simplest case, an unbridged, single ring network, the broadcast behavior of the BOOTP protocol is identical to that of Ethernet networks. However, a BOOTP client cannot know, a priori, that an 802.5 network is not bridged. In fact, the likelihood is that the server, or relay agent, will not know either.

Of the four possible scenerios, only two are interesting: where the assumption is that the 802.5 network is not bridged and it is, and the assumption that the network is bridged and it is not. In the former case, the Routing Information Field (RIF) will not be used; therefore, if the server/relay agent are on another segment of the ring, the client cannot reach it. In the latter case, the RIF field will be used, resulting in a few extraneous bytes on the ring. It is obvious that an almost immeasurable inefficiency is to be preferred over a complete failure to communicate. Given that the assumption is that RIF fields will be needed, it is necesary to determine the optimum method for the client to reach the server/relay agent, and the optimum method for the response to be returned.