RE: [dhcwg] DHCPv4 - definition of maximum message size.
"Barr Hibbs" <rbhibbs@pacbell.net> Sat, 07 May 2005 16:04 UTC
Received: from localhost.localdomain ([127.0.0.1] helo=megatron.ietf.org) by megatron.ietf.org with esmtp (Exim 4.32) id 1DURn9-0003kp-Jo; Sat, 07 May 2005 12:04:35 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org) by megatron.ietf.org with esmtp (Exim 4.32) id 1DURn8-0003kk-I4 for dhcwg@megatron.ietf.org; Sat, 07 May 2005 12:04:34 -0400
Received: from ietf-mx.ietf.org (ietf-mx.ietf.org [132.151.6.1]) by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA24064 for <dhcwg@ietf.org>; Sat, 7 May 2005 12:04:32 -0400 (EDT)
Received: from smtp814.mail.sc5.yahoo.com ([66.163.170.84]) by ietf-mx.ietf.org with smtp (Exim 4.33) id 1DUS1p-0004uQ-Li for dhcwg@ietf.org; Sat, 07 May 2005 12:19:48 -0400
Received: from unknown (HELO BarrH63p601) (rbhibbs@pacbell.net@64.170.116.226 with login) by smtp814.mail.sc5.yahoo.com with SMTP; 7 May 2005 16:04:27 -0000
From: Barr Hibbs <rbhibbs@pacbell.net>
To: "Bernie Volz (volz)" <volz@cisco.com>, "David W. Hankins" <David_Hankins@isc.org>, Simon Kelley <simon@thekelleys.org.uk>
Subject: RE: [dhcwg] DHCPv4 - definition of maximum message size.
Date: Sat, 07 May 2005 09:04:27 -0700
Message-ID: <EJEFKKCLDBINLKODAFMDEECPFKAA.rbhibbs@pacbell.net>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0)
In-Reply-To: <8E296595B6471A4689555D5D725EBB2122D41B@xmb-rtp-20a.amer.cisco.com>
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1478
Importance: Normal
X-Spam-Score: 0.1 (/)
X-Scan-Signature: e367d58950869b6582535ddf5a673488
Content-Transfer-Encoding: 7bit
Cc: dhcwg@ietf.org
X-BeenThere: dhcwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: rbhibbs@pacbell.net
List-Id: dhcwg.ietf.org
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/dhcwg>, <mailto:dhcwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:dhcwg@ietf.org>
List-Help: <mailto:dhcwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/dhcwg>, <mailto:dhcwg-request@ietf.org?subject=subscribe>
Sender: dhcwg-bounces@ietf.org
Errors-To: dhcwg-bounces@ietf.org
funny you should bring that up, Bernie... I was just thinking the other day that I ought to poll Rob again to see if he's up to the task of finishing the work on this draft, since I believe that it's still needed to complete the standardization process of DHCPv4.... --Barr > -----Original Message----- > From: dhcwg-bounces@ietf.org [mailto:dhcwg-bounces@ietf.org]On Behalf Of > Bernie Volz (volz) > Sent: Friday, May 06, 2005 12:06 > To: David W. Hankins; Simon Kelley > Cc: dhcwg@ietf.org > Subject: RE: [dhcwg] DHCPv4 - definition of maximum message size. > > > It is too bad Barr Hibb's "RFC 2131 Implementation Issues" draft has > expired. See text below. The key part is: > o Clients SHOULD communicate their link-layer frame size to the > > DHCP server via the DHCP MTU option. > > So, this is *LINK-LAYER* frame size. > > I believe this 576 size comes from RFC 791: > > Total Length: 16 bits > > Total Length is the length of the datagram, measured in octets, > including internet header and data. This field allows the length of > a datagram to be up to 65,535 octets. Such long datagrams are > impractical for most hosts and networks. All hosts must be prepared > to accept datagrams of up to 576 octets (whether they arrive whole > or in fragments). It is recommended that hosts only send datagrams > larger than 576 octets if they have assurance that the destination > is prepared to accept the larger datagrams. > > The number 576 is selected to allow a reasonable sized data block to > be transmitted in addition to the required header information. For > example, this size allows a data block of 512 octets plus 64 header > octets to fit in a datagram. The maximal internet header is 60 > octets, and a typical internet header is 20 octets, allowing a > margin for headers of higher level protocols. > > So, it should be treated as the "IP + UDP + DHCP" packet size. > > --- > > 2.19. Size of a BOOTP/DHCP frame > > The description in RFC 2131 relating to the size constraints of > DHCP > packets (Page 10, first paragraph after Table 1, section 2) is > inadequate. > > > 2.19.1. Minimum size. > > RFC 951 states that a minimum BOOTP frame is 300 octets in > length. > Some BOOTP relay agents have been known to drop frames of less > than > 300 octets. RFC 951 is explicit on this point, but RFC 2131 > just > refers to RFC 951. Since DHCP is intended to be backward > compatible > with BOOTP, the protocol should continue to observe this lower > bound. > > RECOMMENDATIONS: > > o Text should be added stating explicitly that the minimum size > > of a DHCP frame is 300 octets. > > > 2.19.2. Maximum Size, MTU, and Message Size option > > It has been thought necessary to avoid fragmentation of the IP > packets in DHCP/BOOTP due to concerns that some clients would be > > unable to reassemble fragments before the IP stack is properly > configured. RFC 951 states "For simplicity it is assumed that > the > BOOTP packet is never fragmented". Regardless of theoretical > limitations in IP stack implementations, it is certain that > there are > several DHCP/BOOTP implementations, at both ends of the > protocol, > which will not reassemble. > > Various comments in the WORKING GROUP imply that fragmentation > could > be avoided were the client consistently to include the MTU of > the > link layer interface. But clients cannot be expected to be > omniscient > about other media over which packets travel en route to servers. > > Servers that must be endowed with this knowledge, which they > MUST use > to avoid packet fragmentation. > > Once the IP stack is configured, and the IP stack is fully > configured, the aforementioned limitation ceases to exist, and > later > stages of the protocol could allow larger packets (up to the UDP > > limit). DHCPINFORMs, especially, could benefit from this > relaxation. > There probably should be explicit text to allow larger packets > (presumably up to the maximum PDU size) for later stages of the > protocol. > > A number of clients send small packets with the assumption that > servers will not return a packet that is any larger than the one > > received from the client. The client MUST NOT make this > assumption. > If the client cannot process a response larger than a certain > size, > the client MUST use the message size option to inform servers of > this > size. Note that this is NOT the same option as the MTU. > > RECOMMENDATIONS: > > o Servers and relay agents MUST ensure that IP datagram > fragmentation does not occur at any stage in the protocol > before the client IP stack is fully configured. > > o Clients SHOULD communicate their link-layer frame size to the > > DHCP server via the DHCP MTU option. > > o Clients MUST NOT assume that servers will return a packet no > larger than the one they send. If the client has a limit on > the > size of the packet that it can process it MUST convey that > limit to the server in the "maximum message size" option (57) > > > o Page 21, second paragraph, section 3.5, the first sentence > SHOULD be changed to "The client SHOULD include the 'maximum > DHCP message size' option to let the server know how large > the > server may make its DHCP messages, and the value of this > option > SHOULD be the MTU of the [client] network interface being > configured." > > o The WORKING GROUP SHOULD consider whether to allow > fragmentation of packets after the client is fully > configured, > and how servers can divine this fact (e.g. a non-zero > "ciaddr"). > > > -----Original Message----- > > From: dhcwg-bounces@ietf.org [mailto:dhcwg-bounces@ietf.org] > > On Behalf Of David W. Hankins > > Sent: Friday, May 06, 2005 2:53 PM > > To: dhcwg@ietf.org > > Subject: Re: [dhcwg] DHCPv4 - definition of maximum message size. > > > > On Fri, May 06, 2005 at 12:09:31PM +0100, Simon Kelley wrote: > > > Does the value in "maximum message size" option (option > > code 56) include > > > the IP and UDP headers? > > > > > > Neither RFC2131 or RFC2132 ever state this explicitly, but they are > > > self-consistent if it's the case. RFC2132 states that the > > minimum legal > > > value is 576 octets, which equals IP header + UDP header + > > fixed DHCP > > > fields + the minimum 312 octet options field specified in RFC2131. > > > > To add to your confusion, ISC DHCP calculates this as: > > > > 'mms' - (ethernet + ip + udp + dhcp header sizes) > > > > Should the 'mms' be less than 576, we use 576. > > > > I suspect our inclusion of the ethernet header size in this > > calculation > > is incorrect, since as you mention it doesn't add up if you > > use a 312 byte > > options field. > > > > > I ask because I've just come across a client which > > advertises a maximum > > > message size of 548. Presumably this is broken, and there's > > a chance > > > that the client is also misinterpreting a "576" maximum > > message size > > > option _from_ a DHCP server and could potentially try and > > use 28 bytes > > > that the server cannot receive. > > > > As I mentioned above, I believe our DHCP server would simply > > not observe > > this mms, and pretend as though it was not supplied. > > > > > If the wise ones here can confirm that this really is an > > RFC violation, > > > I'll submit a bug report to the vendor of the client. > > > > I have no such wisdom. > > > > -- > > David W. Hankins "If you don't do it right the > > first time, > > Software Engineer you'll just have to do > > it again." > > Internet Systems Consortium, Inc. -- Jack T. Hankins > > > > _______________________________________________ > dhcwg mailing list > dhcwg@ietf.org > https://www1.ietf.org/mailman/listinfo/dhcwg _______________________________________________ dhcwg mailing list dhcwg@ietf.org https://www1.ietf.org/mailman/listinfo/dhcwg
- [dhcwg] DHCPv4 - definition of maximum message si… Simon Kelley
- Re: [dhcwg] DHCPv4 - definition of maximum messag… David W. Hankins
- RE: [dhcwg] DHCPv4 - definition of maximum messag… Bernie Volz (volz)
- Re: [dhcwg] DHCPv4 - definition of maximum messag… Bud Millwood
- Re: [dhcwg] DHCPv4 - definition of maximum messag… Simon Kelley
- RE: [dhcwg] DHCPv4 - definition of maximum messag… Barr Hibbs
- RE: [dhcwg] DHCPv4 - definition of maximum messag… Barr Hibbs
- RE: [dhcwg] DHCPv4 - definition of maximum messag… Bernie Volz (volz)
- Re: [dhcwg] DHCPv4 - definition of maximum messag… David W. Hankins