home *** CD-ROM | disk | FTP | other *** search
/ Hackers Toolkit 2.0 / Hackers_Toolkit_v2.0.iso / HTML / archive / Texts / Rfc / RFC1532.TXT < prev    next >
Encoding:
Text File  |  1999-11-04  |  50.3 KB  |  1,252 lines

  1. Network Working Group                                           W. Wimer
  2. Request for Comments: 1532                    Carnegie Mellon University
  3. Updates: 951                                                October 1993
  4. Category: Standards Track
  5.  
  6.  
  7.         Clarifications and Extensions for the Bootstrap Protocol
  8.  
  9. Status of this Memo
  10.  
  11.    This RFC specifies an Internet standards track protocol for the
  12.    Internet community, and requests discussion and suggestions for
  13.    improvements.  Please refer to the current edition of the "Internet
  14.    Official Protocol Standards" for the standardization state and status
  15.    of this protocol.  Distribution of this memo is unlimited.
  16.  
  17. Abstract
  18.  
  19.    Some aspects of the BOOTP protocol were rather loosely defined in its
  20.    original specification.  In particular, only a general description
  21.    was provided for the behavior of "BOOTP relay agents" (originally
  22.    called BOOTP forwarding agents").  The client behavior description
  23.    also suffered in certain ways.  This memo attempts to clarify and
  24.    strengthen the specification in these areas.
  25.  
  26.    In addition, new issues have arisen since the original specification
  27.    was written.  This memo also attempts to address some of these.
  28.  
  29. Table of Contents
  30.  
  31.    1. Introduction.................................................  2
  32.    1.1 Requirements................................................  2
  33.    1.2 Terminology.................................................  3
  34.    1.3 Data Transmission Order.....................................  4
  35.    2. General Issues...............................................  5
  36.    2.1 General BOOTP Processing....................................  5
  37.    2.2 Definition of the 'flags' Field.............................  5
  38.    2.3 Bit Ordering of Hardware Addresses..........................  7
  39.    2.4 BOOTP Over IEEE 802.5 Token Ring Networks...................  8
  40.    3. BOOTP Client Behavior........................................  9
  41.    3.1 Client use of the 'flags' field.............................  9
  42.    3.1.1 The BROADCAST flag........................................  9
  43.    3.1.2 The remainder of the 'flags' field........................  9
  44.    3.2 Definition of the 'secs' field..............................  9
  45.    3.3 Use of the 'ciaddr' and 'yiaddr' fields..................... 10
  46.    3.4 Interpretation of the 'giaddr' field........................ 11
  47.    3.5 Vendor information "magic cookie"........................... 12
  48.    4. BOOTP Relay Agents........................................... 13
  49.  
  50.  
  51.  
  52. Wimer                                                           [Page 1]
  53.  
  54.  
  55. RFC 1532        Clarifications and Extensions for BOOTP     October 1993
  56.  
  57.  
  58.    4.1 General BOOTP Processing for Relay Agents................... 13
  59.    4.1.1 BOOTREQUEST Messages...................................... 14
  60.    4.1.2 BOOTREPLY Messages........................................ 16
  61.    5. BOOTP Server Behavior........................................ 18
  62.    5.1 Reception of BOOTREQUEST Messages........................... 18
  63.    5.2 Use of the 'secs' field..................................... 19
  64.    5.3 Use of the 'ciaddr' field................................... 19
  65.    5.4 Strategy for Delivery of BOOTREPLY Messages................. 19
  66.    Acknowledgements................................................ 21
  67.    References...................................................... 21
  68.    Security Considerations......................................... 22
  69.    Author's Address................................................ 22
  70.  
  71. 1. Introduction
  72.  
  73.    The Bootstrap Protocol (BOOTP) is a UDP/IP-based protocol which
  74.    allows a booting host to configure itself dynamically and without
  75.    user supervision.  BOOTP provides a means to notify a host of its
  76.    assigned IP address, the IP address of a boot server host, and the
  77.    name of a file to be loaded into memory and executed [1].  Other
  78.    configuration information such as the local subnet mask, the local
  79.    time offset, the addresses of default routers, and the addresses of
  80.    various Internet servers can also be communicated to a host using
  81.    BOOTP [2].
  82.  
  83.    Unfortunately, the original BOOTP specification [1] left some issues
  84.    of the protocol open to question.  The exact behavior of BOOTP relay
  85.    agents formerly called "BOOTP forwarding agents") was not clearly
  86.    specified.  Some parts of the overall protocol specification actually
  87.    conflict, while other parts have been subject to misinterpretation,
  88.    indicating that clarification is needed.  This memo addresses these
  89.    problems.
  90.  
  91.    Since the introduction of BOOTP, the IEEE 802.5 Token Ring Network
  92.    has been developed which presents a unique problem for BOOTP's
  93.    particular message-transfer paradigm.  This memo also suggests a
  94.    solution for this problem.
  95.  
  96.    NOTE: Unless otherwise specified in this document or a later
  97.    document, the information and requirements specified througout this
  98.    document also apply to extensions to BOOTP such as the Dynamic Host
  99.    Configuration Protocol (DHCP) [3].
  100.  
  101. 1.1 Requirements
  102.  
  103.    In this memo, the words that are used to define the significance of
  104.    particular requirements are capitalized.  These words are:
  105.  
  106.  
  107.  
  108.  
  109. Wimer                                                           [Page 2]
  110.  
  111.  
  112. RFC 1532        Clarifications and Extensions for BOOTP     October 1993
  113.  
  114.  
  115.       o "MUST"
  116.  
  117.         This word or the adjective "REQUIRED" means that the item
  118.         is an absolute requirement of the specification.
  119.  
  120.       o "MUST NOT"
  121.  
  122.         This phrase means that the item is an absolute prohibition
  123.         of the specification.
  124.  
  125.       o "SHOULD"
  126.  
  127.         This word or the adjective "RECOMMENDED" means that there
  128.         may exist valid reasons in particular circumstances to
  129.         ignore this item, but the full implications should be
  130.         understood and the case carefully weighed before choosing a
  131.         different course.
  132.  
  133.       o "SHOULD NOT"
  134.  
  135.         This phrase means that there may exist valid reasons in
  136.         particular circumstances when the listed behavior is
  137.         acceptable or even useful, but the full implications should
  138.         be understood and the case carefully weighed before
  139.         implementing any behavior described with this label.
  140.  
  141.       o "MAY"
  142.  
  143.         This word or the adjective "OPTIONAL" means that this item
  144.         is truly optional.  One vendor may choose to include the
  145.         item because a particular marketplace requires it or
  146.         because it enhances the product, for example; another
  147.         vendor may omit the same item.
  148.  
  149. 1.2 Terminology
  150.  
  151.    This memo uses the following terms:
  152.  
  153.       BOOTREQUEST
  154.  
  155.          A BOOTREQUEST message is a BOOTP message sent from a BOOTP
  156.          client to a BOOTP server, requesting configuration information.
  157.  
  158.       BOOTREPLY
  159.  
  160.          A BOOTREPLY message is a BOOTP message sent from a BOOTP server
  161.          to a BOOTP client, providing configuration information.
  162.  
  163.  
  164.  
  165.  
  166. Wimer                                                           [Page 3]
  167.  
  168.  
  169. RFC 1532        Clarifications and Extensions for BOOTP     October 1993
  170.  
  171.  
  172.       Silently discard
  173.  
  174.          This memo specifies several cases where a BOOTP entity is to
  175.          "silently discard" a received BOOTP message.  This means that
  176.          the entity is to discard the message without further
  177.          processing, and that the entity will not send any ICMP error
  178.          message as a result.  However, for diagnosis of problems, the
  179.          entity SHOULD provide the capability of logging the error,
  180.          including the contents of the silently-discarded message, and
  181.          SHOULD record the event in a statistics counter.
  182.  
  183. 1.3 Data Transmission Order
  184.  
  185.    The order of transmission of the header and data described in this
  186.    document is resolved to the octet level.  Whenever a diagram shows a
  187.    group of octets, the order of transmission of those octets is the
  188.    normal order in which they are read in English.  For example, in the
  189.    following diagram, the octets are transmitted in the order they are
  190.    numbered.
  191.  
  192.                      0                   1
  193.                      0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
  194.                      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  195.                      |       1       |       2       |
  196.                      +-------------------------------+
  197.                      |       3       |       4       |
  198.                      +-------------------------------+
  199.                      |       5       |       6       |
  200.                      +-------------------------------+
  201.  
  202.    Whenever an octet represents a numeric quantity, the leftmost bit in
  203.    the diagram is the high order or most significant bit.  That is, the
  204.    bit labeled 0 is the most significant bit.  For example, the
  205.    following diagram represents the value 170 (decimal).
  206.  
  207.                                0 1 2 3 4 5 6 7
  208.                               +-+-+-+-+-+-+-+-+
  209.                               |1 0 1 0 1 0 1 0|
  210.                               +---------------+
  211.  
  212.    Similarly, whenever a multi-octet field represents a numeric quantity
  213.    the leftmost bit of the whole field is the most significant bit.
  214.    When a multi-octet quantity is transmitted the most significant octet
  215.    is transmitted first.
  216.  
  217.  
  218.  
  219.  
  220.  
  221.  
  222.  
  223. Wimer                                                           [Page 4]
  224.  
  225.  
  226. RFC 1532        Clarifications and Extensions for BOOTP     October 1993
  227.  
  228.  
  229. 2. General Issues
  230.  
  231.    This section covers issues of general relevance to all BOOTP entities
  232.    (clients, servers, and relay agents).
  233.  
  234. 2.1 General BOOTP Processing
  235.  
  236.    The following consistency checks SHOULD be performed on BOOTP
  237.    messages:
  238.  
  239.       o The IP Total Length and UDP Length must be large enough to
  240.         contain the minimal BOOTP header of 300 octets (in the UDP
  241.         data field) specified in [1].
  242.  
  243.    NOTE: Future extensions to the BOOTP protocol may increase the size
  244.    of BOOTP messages.  Therefore, BOOTP messages which, according to the
  245.    IP Total Length and UDP Length fields, are larger than the minimum
  246.    size specified by [1] MUST also be accepted.
  247.  
  248.       o The 'op' (opcode) field of the message must contain either the
  249.         code for a BOOTREQUEST (1) or the code for a BOOTREPLY (2).
  250.  
  251.    BOOTP messages not meeting these consistency checks MUST be silently
  252.    discarded.
  253.  
  254. 2.2 Definition of the 'flags' Field
  255.  
  256.    The standard BOOTP message format defined in [1] includes a two-octet
  257.    field located between the 'secs' field and the 'ciaddr' field.  This
  258.    field is merely designated as "unused" and its contents left
  259.    unspecified, although Section 7.1 of [1] does offer the following
  260.    suggestion:
  261.  
  262.       "Before setting up the packet for the first time, it is a good
  263.       idea to clear the entire packet buffer to all zeros; this will
  264.       place all fields in their default state."
  265.  
  266.       This memo hereby designates this two-octet field as the 'flags'
  267.       field.
  268.  
  269.       This memo hereby defines the most significant bit of the 'flags'
  270.       field as the BROADCAST (B) flag.  The semantics of this flag are
  271.       discussed in Sections 3.1.1 and 4.1.2 of this memo.
  272.  
  273.       The remaining bits of the 'flags' field are reserved for future
  274.       use.  They MUST be set to zero by clients and ignored by servers
  275.       and relay agents.
  276.  
  277.  
  278.  
  279.  
  280. Wimer                                                           [Page 5]
  281.  
  282.  
  283. RFC 1532        Clarifications and Extensions for BOOTP     October 1993
  284.  
  285.  
  286.       The 'flags' field, then, appears as follows:
  287.  
  288.                      0                   1
  289.                      0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
  290.                      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  291.                      |B|             MBZ             |
  292.                      +-+-----------------------------+
  293.  
  294.    where:
  295.  
  296.       B    BROADCAST flag (discussed in Sections 3.1.1 and 4.1.2)
  297.  
  298.       MBZ  MUST BE ZERO (reserved for future use)
  299.  
  300.    The format of a BOOTP message is shown below.  The numbers in
  301.    parentheses indicate the size of each field in octets.
  302.  
  303.  
  304.  
  305.  
  306.  
  307.  
  308.  
  309.  
  310.  
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.  
  335.  
  336.  
  337. Wimer                                                           [Page 6]
  338.  
  339.  
  340. RFC 1532        Clarifications and Extensions for BOOTP     October 1993
  341.  
  342.  
  343.    0                   1                   2                   3
  344.    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
  345.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  346.    |     op (1)    |   htype (1)   |   hlen (1)    |   hops (1)    |
  347.    +---------------+---------------+---------------+---------------+
  348.    |                            xid (4)                            |
  349.    +-------------------------------+-------------------------------+
  350.    |           secs (2)            |           flags (2)           |
  351.    +-------------------------------+-------------------------------+
  352.    |                           ciaddr (4)                          |
  353.    +---------------------------------------------------------------+
  354.    |                           yiaddr (4)                          |
  355.    +---------------------------------------------------------------+
  356.    |                           siaddr (4)                          |
  357.    +---------------------------------------------------------------+
  358.    |                           giaddr (4)                          |
  359.    +---------------------------------------------------------------+
  360.    |                                                               |
  361.    |                           chaddr (16)                         |
  362.    |                                                               |
  363.    |                                                               |
  364.    +---------------------------------------------------------------+
  365.    |                                                               |
  366.    |                           sname  (64)                         |
  367.    +---------------------------------------------------------------+
  368.    |                                                               |
  369.    |                           file   (128)                        |
  370.    +---------------------------------------------------------------+
  371.    |                                                               |
  372.    |                           vend   (64)                         |
  373.    +---------------------------------------------------------------+
  374.  
  375. 2.3 Bit Ordering of Hardware Addresses
  376.  
  377.    The bit ordering used for link-level hardware addresses in the
  378.    protocol [4] on the client's link-level network (assuming ARP is
  379.    defined for that network).
  380.  
  381.    The 'chaddr' field MUST be preserved as it was specified by the BOOTP
  382.    client.  A relay agent MUST NOT reverse the bit ordering of the two
  383.    networks which use different bit orderings.
  384.  
  385.       DISCUSSION:
  386.  
  387.          One of the primary reasons the 'chaddr' field exists is to
  388.          enable BOOTP servers and relay agents to communicate directly
  389.          with clients without the use of broadcasts.  In practice, the
  390.          contents of the the same way the normal ARP protocol would
  391.  
  392.  
  393.  
  394. Wimer                                                           [Page 7]
  395.  
  396.  
  397. RFC 1532        Clarifications and Extensions for BOOTP     October 1993
  398.  
  399.  
  400.          have.  Clearly, interoperability can only be achieved if a
  401.          consistent interpretation of the 'chaddr' field is used.
  402.  
  403.          As a practical example, this means that the bit ordering used
  404.          for the is the opposite of the bit ordering used by a BOOTP
  405.          client on a DIX ethernet network.
  406.  
  407. 2.4 BOOTP Over IEEE 802.5 Token Ring Networks
  408.  
  409.    Special consideration of the client/server and client/relay agent
  410.    interactions must be given to IEEE 802.5 networks because of non-
  411.    transparent bridging.
  412.  
  413.    The client SHOULD send its broadcast BOOTREQUEST with an All Routes
  414.    Explorer RIF.  This will enable servers/relay agents to cache the
  415.    return route if they choose to do so.  For those server/relay agents
  416.    which cannot cache the return route (because they are stateless, for
  417.    example), the BOOTREPLY message SHOULD be sent to the client's
  418.    hardware address, as taken from the BOOTP message, with a Spanning
  419.    Tree Rooted RIF.  The actual bridge route will be recorded by the
  420.    client and server/relay agent by normal ARP processing code.
  421.  
  422.       DISCUSSION:
  423.  
  424.          In the simplest case, an unbridged, single ring network, the
  425.          broadcast behavior of the BOOTP protocol is identical to that
  426.          of Ethernet networks.  However, a BOOTP client cannot know, a
  427.          priori, that an 802.5 network is not bridged.  In fact, the
  428.          likelihood is that the server, or relay agent, will not know
  429.          either.
  430.  
  431.          Of the four possible scenerios, only two are interesting: where
  432.          the assumption is that the 802.5 network is not bridged and it
  433.          is, and the assumption that the network is bridged and it is
  434.          not.  In the former case, the Routing Information Field (RIF)
  435.          will not be used; therefore, if the server/relay agent are on
  436.          another segment of the ring, the client cannot reach it.  In
  437.          the latter case, the RIF field will be used, resulting in a few
  438.          extraneous bytes on the ring.  It is obvious that an almost
  439.          immeasurable inefficiency is to be preferred over a complete
  440.          failure to communicate.
  441.  
  442.          Given that the assumption is that RIF fields will be needed, it
  443.          is necesary to determine the optimum method for the client to
  444.          reach the server/relay agent, and the optimum method for the
  445.          response to be returned.
  446.  
  447.  
  448.  
  449.  
  450.  
  451. Wimer                                                           [Page 8]
  452.  
  453.  
  454. RFC 1532        Clarifications and Extensions for BOOTP     October 1993
  455.  
  456.  
  457. 3. BOOTP Client Behavior
  458.  
  459.    This section clarifies various issues regarding BOOTP client
  460.    behavior.
  461.  
  462. 3.1 Client use of the 'flags' field
  463.  
  464. 3.1.1 The BROADCAST flag
  465.  
  466.    Normally, BOOTP servers and relay agents attempt to deliver BOOTREPLY
  467.    messages directly to a client using unicast delivery.  The IP
  468.    destination address (in the IP header) is set to the BOOTP 'yiaddr'
  469.    address and the link-layer destination address is set to the BOOTP
  470.    unable to receive such unicast IP datagrams until they know their own
  471.    IP address (thus we have a "chicken and egg" issue).  Often, however,
  472.    they can receive broadcast IP datagrams (those with a valid IP
  473.    broadcast address as the IP destination and the link-layer broadcast
  474.    address as the link-layer destination).
  475.  
  476.    If a client falls into this category, it SHOULD set (to 1) the
  477.    newly-defined BROADCAST flag in the 'flags' field of BOOTREPLY
  478.    messages it generates.  This will provide a hint to BOOTP servers and
  479.    relay agents that they should attempt to broadcast their BOOTREPLY
  480.    messages to the client.
  481.  
  482.    If a client does not have this limitation (i.e., it is perfectly able
  483.    to receive unicast BOOTREPLY messages), it SHOULD NOT set the
  484.    BROADCAST flag (i.e., it SHOULD clear the BROADCAST flag to 0).
  485.  
  486.       DISCUSSION:
  487.  
  488.          This addition to the protocol is a workaround for old host
  489.          implementations.  Such implementations SHOULD be modified so
  490.          that they may receive unicast BOOTREPLY messages, thus making
  491.          use of this workaround unnecessary.  In general, the use of
  492.          this mechanism is discouraged.
  493.  
  494. 3.1.2 The remainder of the 'flags' field
  495.  
  496.    The remaining bits of the 'flags' field are reserved for future use.
  497.    A client MUST set these bits to zero in all BOOTREQUEST messages it
  498.    generates.  A client MUST ignore these bits in all BOOTREPLY messages
  499.    it receives.
  500.  
  501. 3.2 Definition of the 'secs' field
  502.  
  503.    The 'secs' field of a BOOTREQUEST message SHOULD represent the
  504.    elapsed time, in seconds, since the client sent its first BOOTREQUEST
  505.  
  506.  
  507.  
  508. Wimer                                                           [Page 9]
  509.  
  510.  
  511. RFC 1532        Clarifications and Extensions for BOOTP     October 1993
  512.  
  513.  
  514.    message.  Note that this implies that the 'secs' field of the first
  515.    BOOTREQUEST message SHOULD be set to zero.
  516.  
  517.    Clients SHOULD NOT set the 'secs' field to a value which is constant
  518.    for all BOOTREQUEST messages.
  519.  
  520.       DISCUSSION:
  521.  
  522.          The original definition of the 'secs' field was vague.  It was
  523.          not clear whether it represented the time since the first
  524.          BOOTREQUEST message was sent or some other time period such as
  525.          the time since the client machine was powered-up.  This has
  526.          limited its usefulness as a policy control mechanism for BOOTP
  527.          servers and relay agents.  Furthermore, certain client
  528.          implementations have been known to simply set this field to a
  529.          constant value or use incorrect byte-ordering.  Incorrect
  530.          byte-ordering usually makes it appear as if a client has been
  531.          waiting much longer than it really has, so a relay agent will
  532.          relay the BOOTREQUEST sooner than desired (usually
  533.          immediately).  These implementation errors have further
  534.          undermined the usefulness of the 'secs' field.  These incorrect
  535.          implementations SHOULD be corrected.
  536.  
  537. 3.3 Use of the 'ciaddr' and 'yiaddr' fields
  538.  
  539.    If a BOOTP client does not know what IP address it should be using,
  540.    the client SHOULD set the 'ciaddr' field to 0.0.0.0.  If the client
  541.    has the ability to remember the last IP address it was assigned, or
  542.    it has been preconfigured with an IP address via some alternate
  543.    mechanism, the client MAY fill the 'ciaddr' field with that IP
  544.    address.  If the client does place a non-zero IP address in the
  545.    datagrams addressed to that IP address and also answer ARP requests
  546.    for that IP address (if ARP is used on that network).
  547.  
  548.    The BOOTP server is free to assign a different IP address (in the
  549.    SHOULD adopt the IP address specified in 'yiaddr' and begin using it
  550.    as soon as possible.
  551.  
  552.       DISCUSSION:
  553.  
  554.          There are various interpretations about the purpose of the
  555.          'ciaddr' field and, unfortunately, no agreement on a single
  556.          correct interpretation.  One interpretation is that if a client
  557.          is willing to accept whatever IP address the BOOTP server
  558.          assigns to it, the client should always place 0.0.0.0 in the
  559.          'ciaddr' field, regardless of whether it knows its previously-
  560.          assigned address.  Conversely, if the client wishes to assert
  561.          that it must have a particular IP address (e.g., the IP address
  562.  
  563.  
  564.  
  565. Wimer                                                          [Page 10]
  566.  
  567.  
  568. RFC 1532        Clarifications and Extensions for BOOTP     October 1993
  569.  
  570.  
  571.          was hand-configured by the host administrator and BOOTP is only
  572.          being used to obtain a boot file and/or information from the
  573.          'vend' field), the client will then fill the 'ciaddr' field
  574.          with the desired IP address and ignore the IP address assigned
  575.          by the BOOTP server as indicated in the 'yiaddr' field.  An
  576.          alternate interpretation holds that the client always fills the
  577.          'ciaddr' field with its most recently-assigned IP address (if
  578.          known) even if that address may be incorrect.  Such a client
  579.          will still accept and use the address assigned by the BOOTP
  580.          server as indicated in the 'yiaddr' field.  The motivation for
  581.          this interpretation is to aid the server in identifying the
  582.          client and/or in delivering the BOOTREPLY to the client.  Yet a
  583.          third (mis)interpretation allows the client to use client has
  584.          never used that address before or is not currently using that
  585.          address.
  586.  
  587.          The last interpretation is incorrect as it may prevent the
  588.          BOOTREPLY from reaching the client.  The server will usually
  589.          unicast the reply to the address given in 'ciaddr' but the
  590.          client may not be listening on that address yet, or the client
  591.          may be connected to an incorrect subnet such that normal IP
  592.          routing (correctly) routes the reply to a different subnet.
  593.  
  594.          The second interpretation also suffers from the "incorrect
  595.          subnet" problem.
  596.  
  597.          The first interpretation seems to be the safest and most likely
  598.          to promote interoperability.
  599.  
  600. 3.4 Interpretation of the 'giaddr' field
  601.  
  602.    The 'giaddr' field is rather poorly named.  It exists to facilitate
  603.    the transfer of BOOTREQUEST messages from a client, through BOOTP
  604.    relay agents, to servers on different networks than the client.
  605.    Similarly, it facilitates the delivery of BOOTREPLY messages from the
  606.    servers, through BOOTP relay agents, back to the client.  In no case
  607.    does it represent a general IP router to be used by the client.  A
  608.    BOOTP client MUST set the 'giaddr' field to zero (0.0.0.0) in all
  609.    BOOTREQUEST messages it generates.
  610.  
  611.    A BOOTP client MUST NOT interpret the 'giaddr' field of a BOOTREPLY
  612.    message to be the IP address of an IP router.  A BOOTP client SHOULD
  613.    completely ignore the contents of the 'giaddr' field in BOOTREPLY
  614.    messages.
  615.  
  616.  
  617.  
  618.  
  619.  
  620.  
  621.  
  622. Wimer                                                          [Page 11]
  623.  
  624.  
  625. RFC 1532        Clarifications and Extensions for BOOTP     October 1993
  626.  
  627.  
  628.       DISCUSSION:
  629.  
  630.          The semantics of the 'giaddr' field were poorly defined.
  631.          Section 7.5 of [1] states:
  632.  
  633.            "If 'giaddr' (gateway address) is nonzero, then the packets
  634.            should be forwarded there first, in order to get to the
  635.            server."
  636.  
  637.    In that sentence, "get to" refers to communication from the client to
  638.    the server subsequent to the BOOTP exchange, such as a TFTP session.
  639.    Unfortunately, the 'giaddr' field may contain the address of a BOOTP
  640.    relay agent that is not itself an IP router (according to [1],
  641.    Section 8, fifth paragraph), in which case, it will be useless as a
  642.    first-hop for TFTP packets sent to the server (since, by definition,
  643.    non-routers don't forward datagrams at the IP layer).
  644.  
  645.    Although now prohibited by Section 4.1.1 of this memo, the 'giaddr'
  646.    field might contain a broadcast address according to Section 8, sixth
  647.    paragraph of [1].  Not only would such an address be useless as a
  648.    router address, it might also cause the client to ARP for the
  649.    broadcast address (since, if the client didn't receive a subnet mask
  650.    in the BOOTREPLY message, it would be unable to recognize a subnet
  651.    broadcast address).  This is clearly undesirable.
  652.  
  653.    To reach a non-local server, clients can obtain a first-hop router
  654.    address from the "Gateway" subfield of the "Vendor Information
  655.    Extensions" [2] (if present), or via the ICMP router discovery
  656.    protocol [5] or other similar mechanism.
  657.  
  658. 3.5 Vendor information "magic cookie"
  659.  
  660.    It is RECOMMENDED that a BOOTP client always fill the first four
  661.    octets of the 'vend' (vendor information) field of a BOOTREQUEST with
  662.    a four-octet identifier called a "magic cookie."  A BOOTP client
  663.    SHOULD do this even if it has no special information to communicate
  664.    to the BOOTP server using the 'vend' field.  This aids the BOOTP
  665.    server in determining what vendor information format it should use in
  666.    its BOOTREPLY messages.
  667.  
  668.    If a special vendor-specific magic cookie is not being used, a BOOTP
  669.    client SHOULD use the dotted decimal value 99.130.83.99 as specified
  670.    in [2].  In this case, if the client has no information to
  671.    communicate to the server, the octet immediately following the magic
  672.    cookie SHOULD be set to the "End" tag (255) and the remaining octets
  673.    of the 'vend' field SHOULD be set to zero.
  674.  
  675.  
  676.  
  677.  
  678.  
  679. Wimer                                                          [Page 12]
  680.  
  681.  
  682. RFC 1532        Clarifications and Extensions for BOOTP     October 1993
  683.  
  684.  
  685.       DISCUSSION:
  686.  
  687.          Sometimes different operating systems or networking packages
  688.          are run on the same machine at different times (or even at the
  689.          same time!).  Since the hardware address placed in the 'chaddr'
  690.          field will likely be the same, BOOTREQUESTs from completely
  691.          different BOOTP clients on the same machine will likely be
  692.          difficult for a BOOTP server to differentiate.  If the client
  693.          includes a magic cookie in its BOOTREQUESTs, the server will at
  694.          least know what format the client expects and can understand in
  695.          corresponding BOOTREPLY messages.
  696.  
  697. 4. BOOTP Relay Agents
  698.  
  699.          In many cases, BOOTP clients and their associated BOOTP
  700.          server(s) do not reside on the same IP network or subnet.  In
  701.          such cases, some kind of third-party agent is required to
  702.          transfer BOOTP messages between clients and servers.  Such an
  703.          agent was originally referred to as a "BOOTP forwarding agent."
  704.          However, in order to avoid confusion with the IP forwarding
  705.          function of an IP router, the name "BOOTP relay agent" is
  706.          hereby adopted instead.
  707.  
  708.       DISCUSSION:
  709.  
  710.          A BOOTP relay agent performs a task which is distinct from an
  711.          IP router's normal IP forwarding function.  While a router
  712.          normally switches IP datagrams between networks more-or-less
  713.          transparently, a BOOTP relay agent may more properly be thought
  714.          to receive BOOTP messages as a final destination and then
  715.          generate new BOOTP messages as a result.  It is incorrect for a
  716.          relay agent implementation to simply forward a BOOTP message
  717.          "straight through like a regular packet."
  718.  
  719.          This relay-agent functionality is most conveniently located in
  720.          the routers which interconnect the clients and servers, but may
  721.          alternatively be located in a host which is directly connected
  722.          to the client subnet.
  723.  
  724.          Any Internet host or router which provides BOOTP relay-agent
  725.          capability MUST conform to the specifications in this memo.
  726.  
  727. 4.1 General BOOTP Processing for Relay Agents
  728.  
  729.    All locally delivered UDP messages whose UDP destination port number
  730.    is BOOTPS (67) are considered for special processing by the host or
  731.    router's logical BOOTP relay agent.
  732.  
  733.  
  734.  
  735.  
  736. Wimer                                                          [Page 13]
  737.  
  738.  
  739. RFC 1532        Clarifications and Extensions for BOOTP     October 1993
  740.  
  741.  
  742.    In the case of a host, locally delivered datagrams are simply all
  743.    datagrams normally received by that host, i.e., broadcast and
  744.    multicast datagrams as well as unicast datagrams addressed to IP
  745.    addresses of that host.
  746.  
  747.    In the case of a router, locally delivered datagrams are broadcast
  748.    and multicast datagrams as well as unicast datagrams addressed to IP
  749.    addresses of that router.  These are datagrams for which the router
  750.    should be considered an end destination as opposed to an intermediate
  751.    switching node.  Thus a unicast datagram with an IP destination not
  752.    matching any of the router's IP addresses is not considered for
  753.    processing by the router's logical BOOTP relay agent.
  754.  
  755.    Hosts and routers are usually required to silently discard incoming
  756.    datagrams containing illegal IP source addresses.  This is generally
  757.    known as "Martian address filtering."  One of these illegal addresses
  758.    is 0.0.0.0 (or actually anything on network 0).  However, hosts or
  759.    routers which support a BOOTP relay agent MUST accept for local
  760.    delivery to the relay agent BOOTREQUEST messages whose IP source
  761.    address is 0.0.0.0.  BOOTREQUEST messages from legal IP source
  762.    addresses MUST also be accepted.
  763.  
  764.    A relay agent MUST silently discard any received UDP messages whose
  765.    UDP destination port number is BOOTPC (68).
  766.  
  767.       DISCUSSION:
  768.  
  769.          There should be no need for a relay agent to process messages
  770.          addressed to the BOOTPC port.  Careful reading of the original
  771.          BOOTP specification [1] will show this.  Nevertheless, some
  772.          relay agent implementations incorrectly relay such messages.
  773.  
  774.    The consistency checks specified in Section 2.1 SHOULD be performed
  775.    by the relay agent.  BOOTP messages not meeting these consistency
  776.    checks MUST be silently discarded.
  777.  
  778. 4.1.1 BOOTREQUEST Messages
  779.  
  780.    Some configuration mechanism MUST exist to enable or disable the
  781.    relaying of BOOTREQUEST messages.  Relaying MUST be disabled by
  782.    default.
  783.  
  784.    When the BOOTP relay agent receives a BOOTREQUEST message, it MAY use
  785.    the value of the 'secs' (seconds since client began booting) field of
  786.    the request as a factor in deciding whether to relay the request.  If
  787.    such a policy mechanism is implemented, its threshold SHOULD be
  788.    configurable.
  789.  
  790.  
  791.  
  792.  
  793. Wimer                                                          [Page 14]
  794.  
  795.  
  796. RFC 1532        Clarifications and Extensions for BOOTP     October 1993
  797.  
  798.  
  799.       DISCUSSION:
  800.  
  801.          To date, this feature of the BOOTP protocol has not necessarily
  802.          been shown to be useful.  See Section 3.2 for a discussion.
  803.  
  804.    The relay agent MUST silently discard BOOTREQUEST messages whose
  805.    provided to set this threshold to a smaller value if desired by the
  806.    network manager.  The default setting for a configurable threshold
  807.    SHOULD be 4.
  808.  
  809.    If the relay agent does decide to relay the request, it MUST examine
  810.    the 'giaddr' ("gateway" IP address) field.  If this field is zero,
  811.    the relay agent MUST fill this field with the IP address of the
  812.    interface on which the request was received.  If the interface has
  813.    more than one IP address logically associated with it, the relay
  814.    agent SHOULD choose one IP address associated with that interface and
  815.    use it consistently for all BOOTP messages it relays.  If the
  816.    'giaddr' field contains some non-zero value, the 'giaddr' field MUST
  817.    NOT be modified.  The relay agent MUST NOT, under any circumstances,
  818.    fill the 'giaddr' field with a broadcast address as is suggested in
  819.    [1] (Section 8, sixth paragraph).
  820.  
  821.    The value of the 'hops' field MUST be incremented.
  822.  
  823.    All other BOOTP fields MUST be preserved intact.
  824.  
  825.    At this point, the request is relayed to its new destination (or
  826.    destinations).  This destination MUST be configurable.  Further, this
  827.    destination configuration SHOULD be independent of the destination
  828.    configuration for any other so-called "broadcast forwarders" (e.g.,
  829.    for the UDP-based TFTP, DNS, Time, etc.  protocols).
  830.  
  831.       DISCUSSION:
  832.  
  833.          The network manager may wish the relaying destination to be an
  834.          IP unicast, multicast, broadcast, or some combination.  A
  835.          configurable list of destination IP addresses provides good
  836.          flexibility.  More flexible configuration schemes are
  837.          encouraged.  For example, it may be desirable to send to the
  838.          limited broadcast address (255.255.255.255) on specific
  839.          physical interfaces.  However, if the BOOTREQUEST message was
  840.          received as a broadcast, the relay agent MUST NOT rebroadcast
  841.          the BOOTREQUEST on the physical interface from whence it came.
  842.  
  843.          A relay agent MUST use the same destination (or set of
  844.          destinations) for all BOOTREQUEST messages it relays from a
  845.          given client.
  846.  
  847.  
  848.  
  849.  
  850. Wimer                                                          [Page 15]
  851.  
  852.  
  853. RFC 1532        Clarifications and Extensions for BOOTP     October 1993
  854.  
  855.  
  856.       DISCUSSION:
  857.  
  858.          At least one known relay agent implementation uses a round-
  859.          robin scheme to provide load balancing across multiple BOOTP
  860.          servers.  Each time it receives a new BOOTREQUEST message, it
  861.          relays the message to the next BOOTP server in a list of
  862.          servers.  Thus, with this relay agent, multiple consecutive
  863.          BOOTREQUEST messages from a given client will be delivered to
  864.          different servers.
  865.  
  866.          Unfortunately, this well-intentioned scheme reacts badly with
  867.          DHCP [3] and perhaps other variations of the BOOTP protocol
  868.          which depend on multiple exchanges of BOOTREQUEST and BOOTREPLY
  869.          messages between clients and servers.  Therefore, all
  870.          BOOTREQUEST messages from a given client MUST be relayed to the
  871.          same destination (or set of destinations).
  872.  
  873.          One way to meet this requirement while providing some load-
  874.          balancing benefit is to hash the client's link-layer address
  875.          (or some other reliable client-identifying information) and use
  876.          the resulting hash value to select the appropriate relay
  877.          destination (or set of destinations).  The simplest solution,
  878.          of course, is to not use a load-balancing scheme and just relay
  879.          ALL received BOOTREQUEST messages to the same destination (or
  880.          set of destinations).
  881.  
  882.          When transmitting the request to its next destination, the
  883.          relay agent may set the IP Time-To-Live field to either the
  884.          default value for new datagrams originated by the relay agent,
  885.          or to the TTL of the original BOOTREQUEST decremented by (at
  886.          least) one.
  887.  
  888.       DISCUSSION:
  889.  
  890.          As an extra precaution against BOOTREQUEST loops, it is
  891.          preferable to use the decremented TTL from the original
  892.          BOOTREQUEST.  Unfortunately, this may be difficult to do in
  893.          some implementations.
  894.  
  895.          If the BOOTREQUEST has a UDP checksum (i.e., the UDP checksum
  896.          is non-zero), the checksum must be recalculated before
  897.          transmitting the request.
  898.  
  899. 4.1.2 BOOTREPLY Messages
  900.  
  901.    BOOTP relay agents relay BOOTREPLY messages only to BOOTP clients.
  902.    It is the responsibility of BOOTP servers to send BOOTREPLY messages
  903.    directly to the relay agent identified in the BOOTREPLY messages it
  904.  
  905.  
  906.  
  907. Wimer                                                          [Page 16]
  908.  
  909.  
  910. RFC 1532        Clarifications and Extensions for BOOTP     October 1993
  911.  
  912.  
  913.    receives are intended for BOOTP clients on its directly-connected
  914.    networks.
  915.  
  916.    When a relay agent receives a BOOTREPLY message, it should examine
  917.    the BOOTP 'giaddr', 'yiaddr', 'chaddr', 'htype', and for the relay
  918.    agent to deliver the BOOTREPLY message to the client.
  919.  
  920.    The 'giaddr' field can be used to identify the logical interface from
  921.    which the reply must be sent (i.e., the host or router interface
  922.    connected to the same network as the BOOTP client).  If the content
  923.    of the 'giaddr' field does not match one of the relay agent's
  924.    directly-connected logical interfaces, the BOOTREPLY messsage MUST be
  925.    silently discarded.
  926.  
  927.    The 'htype', 'hlen', and 'chaddr' fields supply the link-layer
  928.    hardware type, hardware address length, and hardware address of the
  929.    client as defined in the ARP protocol [4] and the Assigned Numbers
  930.    document [6].  The 'yiaddr' field is the IP address of the client, as
  931.    assigned by the BOOTP server.
  932.  
  933.    The relay agent SHOULD examine the newly-defined BROADCAST flag (see
  934.    Sections 2.2 and 3.1.1 for more information).  If this flag is set to
  935.    1, the reply SHOULD be sent as an IP broadcast using the IP limited
  936.    broadcast address 255.255.255.255 as the IP destination address and
  937.    the link-layer broadcast address as the link-layer destination
  938.    address.  If the BROADCAST flag is cleared (0), the reply SHOULD be
  939.    sent as an IP unicast to the IP address specified by the 'yiaddr'
  940.    field and the link-layer address specified in the 'chaddr' field.  If
  941.    unicasting is not possible, the reply MAY be sent as a broadcast, in
  942.    which case it SHOULD be sent to the link-layer broadcast address
  943.    using the IP limited broadcast address 255.255.255.255 as the IP
  944.    destination address.
  945.  
  946.       DISCUSSION:
  947.  
  948.          The addition of the BROADCAST flag to the protocol is a
  949.          workaround to help promote interoperability with certain client
  950.          implementations.
  951.  
  952.          Note that since the 'flags' field was previously defined in [1]
  953.          simply as an "unused" field, it is possible that old client or
  954.          server implementations may accidentally and unknowingly set the
  955.          new BROADCAST flag.  It is actually expected that such
  956.          implementations will be rare (most implementations seem to
  957.          zero-out this field), but interactions with such
  958.          implementations must nevertheless be considered.  If an old
  959.          client or server does set the BROADCAST flag to 1 incorrectly,
  960.          conforming relay agents will generate broadcast BOOTREPLY
  961.  
  962.  
  963.  
  964. Wimer                                                          [Page 17]
  965.  
  966.  
  967. RFC 1532        Clarifications and Extensions for BOOTP     October 1993
  968.  
  969.  
  970.          messages to the corresponding client.  The BOOTREPLY messages
  971.          should still properly reach the client, at the cost of one
  972.          (otherwise unnecessary) additional broadcast.  This, however,
  973.          is no worse than a server or relay agent which always
  974.          broadcasts its BOOTREPLY messages.
  975.  
  976.          Older client or server implementations which accidentally set
  977.          the BROADCAST flag SHOULD be corrected to properly comply with
  978.          this newer specification.
  979.  
  980.          All BOOTP fields MUST be preserved intact.  The relay agent
  981.          MUST NOT modify any BOOTP field of the BOOTREPLY message when
  982.          relaying it to the client.
  983.  
  984.          The reply MUST have its UDP destination port set to BOOTPC
  985.          (68).
  986.  
  987.          If the BOOTREPLY has a UDP checksum (i.e., the UDP checksum is
  988.          non-zero), the checksum must be recalculated before
  989.          transmitting the reply.
  990.  
  991. 5. BOOTP Server Behavior
  992.  
  993.    This section provides clarifications on the behavior of BOOTP
  994.    servers.
  995.  
  996. 5.1 Reception of BOOTREQUEST Messages
  997.  
  998.    All received UDP messages whose UDP destination port number is BOOTPS
  999.    (67) are considered for processing by the BOOTP server.
  1000.  
  1001.    Hosts and routers are usually required to silently discard incoming
  1002.    datagrams containing illegal IP source addresses.  This is generally
  1003.    known as "Martian address filtering."  One of these illegal addresses
  1004.    is 0.0.0.0 (or actually anything on network 0).  However, hosts or
  1005.    routers which support a BOOTP server MUST accept for local delivery
  1006.    to the server BOOTREQUEST messages whose IP source address is
  1007.    0.0.0.0.  BOOTREQUEST messages from legal IP source addresses MUST
  1008.    also be accepted.
  1009.  
  1010.    A BOOTP server MUST silently discard any received UDP messages whose
  1011.    UDP destination port number is BOOTPC (68).
  1012.  
  1013.       DISCUSSION:
  1014.  
  1015.          There should be no need for a BOOTP server to process messages
  1016.          addressed to the BOOTPC port.  Careful reading of the original
  1017.          BOOTP specification [1] will show this.
  1018.  
  1019.  
  1020.  
  1021. Wimer                                                          [Page 18]
  1022.  
  1023.  
  1024. RFC 1532        Clarifications and Extensions for BOOTP     October 1993
  1025.  
  1026.  
  1027.          The consistency checks specified in Section 2.1 SHOULD be
  1028.          performed by the BOOTP server.  BOOTP messages not meeting
  1029.          these consistency checks MUST be silently discarded.
  1030.  
  1031. 5.2 Use of the 'secs' field
  1032.  
  1033.    When the BOOTP server receives a BOOTREQUEST message, it MAY use the
  1034.    value of the 'secs' (seconds since client began booting) field of the
  1035.    request as a factor in deciding whether and/or how to reply to the
  1036.    request.
  1037.  
  1038.       DISCUSSION:
  1039.  
  1040.          To date, this feature of the BOOTP protocol has not necessarily
  1041.          been shown to be useful.  See Section 3.2 for a discussion.
  1042.  
  1043. 5.3 Use of the 'ciaddr' field
  1044.  
  1045.    There have been various client interpretations of the 'ciaddr' field
  1046.    for which Section 3.3 should be consulted.  A BOOTP server SHOULD be
  1047.    prepared to deal with these varying interpretations.  In general, the
  1048.    client; the contents of the 'ciaddr', 'chaddr', 'htype', and 'hlen'
  1049.    fields, and probably other information (perhaps in the 'file' and
  1050.    respond to a given client.
  1051.  
  1052.    BOOTP servers SHOULD preserve the contents of the 'ciaddr' field in
  1053.    BOOTREPLY messages; the contents of 'ciaddr' in a BOOTREPLY message
  1054.    SHOULD exactly match the contents of 'ciaddr' in the corresponding
  1055.    BOOTREQUEST message.
  1056.  
  1057.       DISCUSSION:
  1058.  
  1059.    It has been suggested that a client may wish to use the contents of
  1060.    indeed intended for it.
  1061.  
  1062. 5.4 Strategy for Delivery of BOOTREPLY Messages
  1063.  
  1064.    Once the BOOTP server has created an appropriate BOOTREPLY message,
  1065.    that BOOTREPLY message must be properly delivered to the client.
  1066.  
  1067.    The server SHOULD first check the 'ciaddr' field.  If the 'ciaddr'
  1068.    field is non-zero, the BOOTREPLY message SHOULD be sent as an IP
  1069.    unicast to the IP address identified in the 'ciaddr' field.  The UDP
  1070.    destination port MUST be set to BOOTPC (68).  However, the server
  1071.    MUST be aware of the problems identified in Section 3.3.  The server
  1072.    MAY choose to ignore the 'ciaddr' field and act as if the 'ciaddr'
  1073.    field contains 0.0.0.0 (and thus continue with the rest of the
  1074.    delivery algorithm below).
  1075.  
  1076.  
  1077.  
  1078. Wimer                                                          [Page 19]
  1079.  
  1080.  
  1081. RFC 1532        Clarifications and Extensions for BOOTP     October 1993
  1082.  
  1083.  
  1084.    The server SHOULD next check the 'giaddr' field.  If this field is
  1085.    non-zero, the server SHOULD send the BOOTREPLY as an IP unicast to
  1086.    the IP address identified in the 'giaddr' field.  The UDP destination
  1087.    port MUST be set to BOOTPS (67).  This action will deliver the
  1088.    BOOTREPLY message directly to the BOOTP relay agent closest to the
  1089.    client; the relay agent will then perform the final delivery to the
  1090.    client.  If the BOOTP server has prior knowledge that a particular
  1091.    client cannot receive unicast BOOTREPLY messages (e.g., the network
  1092.    manager has explicitly configured the server with such knowledge),
  1093.    the server MAY set the newly-defined BROADCAST flag to indicate that
  1094.    relay agents SHOULD broadcast the BOOTREPLY message to the client.
  1095.    Otherwise, the server MUST preserve the state of the BROADCAST flag
  1096.    so that the relay agent can correctly act upon it.
  1097.  
  1098.    If the 'giaddr' field is set to 0.0.0.0, then the client resides on
  1099.    one of the same networks as the BOOTP server.  The server SHOULD
  1100.    examine the newly-defined BROADCAST flag (see Sections 2.2, 3.1.1 and
  1101.    4.1.2 for more information).  If this flag is set to 1 or the server
  1102.    has prior knowledge that the client is unable to receive unicast
  1103.    BOOTREPLY messages, the reply SHOULD be sent as an IP broadcast using
  1104.    the IP limited broadcast address 255.255.255.255 as the IP
  1105.    destination address and the link-layer broadcast address as the
  1106.    link-layer destination address.  If the BROADCAST flag is cleared
  1107.    (0), the reply SHOULD be sent as an IP unicast to the IP address
  1108.    specified by the field.  If unicasting is not possible, the reply MAY
  1109.    be sent as a broadcast in which case it SHOULD be sent to the link-
  1110.    layer broadcast address using the IP limited broadcast address
  1111.    255.255.255.255 as the IP destination address.  In any case, the UDP
  1112.    destination port MUST be set to BOOTPC (68).
  1113.  
  1114.       DISCUSSION:
  1115.  
  1116.          The addition of the BROADCAST flag to the protocol is a
  1117.          workaround to help promote interoperability with certain client
  1118.          implementations.
  1119.  
  1120.          The following table summarizes server delivery decisions for
  1121.          BOOTREPLY messages based upon information in BOOTREQUEST
  1122.          messages:
  1123.  
  1124.  
  1125.  
  1126.  
  1127.  
  1128.  
  1129.  
  1130.  
  1131.  
  1132.  
  1133.  
  1134.  
  1135. Wimer                                                          [Page 20]
  1136.  
  1137.  
  1138. RFC 1532        Clarifications and Extensions for BOOTP     October 1993
  1139.  
  1140.  
  1141.       BOOTREQUEST fields     BOOTREPLY values for UDP, IP, link-layer
  1142.    +-----------------------+-----------------------------------------+
  1143.    | 'ciaddr'  'giaddr'  B | UDP dest     IP destination   link dest |
  1144.    +-----------------------+-----------------------------------------+
  1145.    | non-zero     X      X | BOOTPC (68)  'ciaddr'         normal    |
  1146.    | 0.0.0.0   non-zero  X | BOOTPS (67)  'giaddr'         normal    |
  1147.    | 0.0.0.0   0.0.0.0   0 | BOOTPC (68)  'yiaddr'         'chaddr'  |
  1148.    | 0.0.0.0   0.0.0.0   1 | BOOTPC (68)  255.255.255.255  broadcast |
  1149.    +-----------------------+-----------------------------------------+
  1150.  
  1151.         B = BROADCAST flag
  1152.  
  1153.         X = Don't care
  1154.  
  1155.    normal = determine from the given IP destination using normal
  1156.             IP routing mechanisms and/or ARP as for any other
  1157.             normal datagram
  1158.  
  1159. Acknowledgements
  1160.  
  1161.    The author would like to thank Gary Malkin for his contribution of
  1162.    the "BOOTP over IEEE 802.5 Token Ring Networks" section, and Steve
  1163.    Deering for his observations on the problems associated with the
  1164.    'giaddr' field.
  1165.  
  1166.    Ralph Droms and the many members of the IETF Dynamic Host
  1167.    Configuration and Router Requirements working groups provided ideas
  1168.    for this memo as well as encouragement to write it.
  1169.  
  1170.    Philip Almquist and David Piscitello offered many helpful suggestions
  1171.    for improving the clarity, accuracy, and organization of this memo.
  1172.    These contributions are graciously acknowledged.
  1173.  
  1174. References
  1175.  
  1176.    [1] Croft, B., and J. Gilmore, "Bootstrap Protocol (BOOTP)", RFC 951,
  1177.        Stanford University and Sun Microsystems, September 1985.
  1178.  
  1179.    [2] Reynolds, J., "BOOTP Vendor Information Extensions", RFC 1497,
  1180.        USC/Information Sciences Institute, August 1993.  This RFC is
  1181.        occasionally reissued with a new number.  Please be sure to
  1182.        consult the latest version.
  1183.  
  1184.    [3] Droms, R., "Dynamic Host Configuration Protocol", RFC 1531,
  1185.        Bucknell University, October 1993.
  1186.  
  1187.    [4] Plummer, D., "An Ethernet Address Resolution Protocol", STD 37,
  1188.        RFC 826, MIT, November 1982.
  1189.  
  1190.  
  1191.  
  1192. Wimer                                                          [Page 21]
  1193.  
  1194.  
  1195. RFC 1532        Clarifications and Extensions for BOOTP     October 1993
  1196.  
  1197.  
  1198.    [5] Deering, S., "ICMP Router Discovery Messages", RFC 1256, Xerox
  1199.        PARC, September 1991.
  1200.  
  1201.    [6] Reynolds, J., and J. Postel, "Assigned Numbers", STD 2, RFC 1340,
  1202.        USC/Information Sciences Institute, July, 1992.  This RFC is
  1203.        periodically reissued with a new number.  Please be sure to
  1204.        consult the latest version.
  1205.  
  1206. Security Considerations
  1207.  
  1208.    There are many factors which make BOOTP in its current form quite
  1209.    insecure.  BOOTP is built directly upon UDP and IP which are as yet
  1210.    inherently insecure themselves.  Furthermore, BOOTP is generally
  1211.    intended to make maintenance of remote and/or diskless hosts easier.
  1212.    While perhaps not impossible, configuring such hosts with passwords or
  1213.    keys may be difficult and inconvenient.  This makes it difficult to
  1214.    provide any form of reasonable authentication between servers and
  1215.    clients.
  1216.  
  1217.    Unauthorized BOOTP servers may easily be set up.  Such servers can
  1218.    then send false and potentially disruptive information to clients such
  1219.    as incorrect or duplicate IP addresses, incorrect routing information
  1220.    (including spoof routers, etc.), incorrect domain nameserver addresses
  1221.    (such as spoof nameservers), and so on.  Clearly, once this "seed"
  1222.    mis-information is planted, an attacker can further compromise the
  1223.    affected systems.
  1224.  
  1225.    Unauthorized BOOTP relay agents may present some of the same problems
  1226.    as unauthorized BOOTP servers.
  1227.  
  1228.    Malicious BOOTP clients could masquerade as legitimate clients and
  1229.    retrieve information intended for those legitimate clients.  Where
  1230.    dynamic allocation of resources is used, a malicious client could
  1231.    claim all resources for itself, thereby denying resources to
  1232.    legitimate clients.
  1233.  
  1234. Author's Address
  1235.  
  1236.    Walt Wimer
  1237.    Network Development
  1238.    Carnegie Mellon University
  1239.    5000 Forbes Avenue
  1240.    Pittsburgh, PA  15213-3890
  1241.  
  1242.    Phone: (412) 268-6252
  1243.    EMail:  Walter.Wimer@CMU.EDU
  1244.  
  1245.  
  1246.  
  1247.  
  1248.  
  1249. Wimer                                                          [Page 22]
  1250.  
  1251.  
  1252.