Re: [dhcwg] Question about RFC 3396 Encoding Long Options in DHCPv4

Ted Lemon <Ted.Lemon@nominum.com> Tue, 30 November 2010 15:32 UTC

Return-Path: <Ted.Lemon@nominum.com>
X-Original-To: dhcwg@core3.amsl.com
Delivered-To: dhcwg@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 73FBC3A6C17 for <dhcwg@core3.amsl.com>; Tue, 30 Nov 2010 07:32:53 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -106.599
X-Spam-Level:
X-Spam-Status: No, score=-106.599 tagged_above=-999 required=5 tests=[AWL=0.000, BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EUTvxLq7x9vm for <dhcwg@core3.amsl.com>; Tue, 30 Nov 2010 07:32:52 -0800 (PST)
Received: from exprod7og120.obsmtp.com (exprod7og120.obsmtp.com [64.18.2.18]) by core3.amsl.com (Postfix) with ESMTP id D40C93A6C7D for <dhcwg@ietf.org>; Tue, 30 Nov 2010 07:32:51 -0800 (PST)
Received: from source ([64.89.228.229]) (using TLSv1) by exprod7ob120.postini.com ([64.18.6.12]) with SMTP ID DSNKTPUZagY890WLKyHjwwBshslO02HbY0ZX@postini.com; Tue, 30 Nov 2010 07:34:03 PST
Received: from webmail.nominum.com (webmail.nominum.com [64.89.228.50]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (Client CN "webmail.nominum.com", Issuer "Go Daddy Secure Certification Authority" (verified OK)) by shell-too.nominum.com (Postfix) with ESMTP id 1FC711B92DD; Tue, 30 Nov 2010 07:34:02 -0800 (PST)
Received: from vpna-148.vpn.nominum.com (64.89.227.148) by exchange-01.win.nominum.com (64.89.228.50) with Microsoft SMTP Server (TLS) id 8.2.176.0; Tue, 30 Nov 2010 07:34:01 -0800
MIME-Version: 1.0 (Apple Message framework v1082)
Content-Type: text/plain; charset="us-ascii"
From: Ted Lemon <Ted.Lemon@nominum.com>
In-Reply-To: <AANLkTikVS2M=knDfEib4PbCoKCu+E_VBL99jyevkshjR@mail.gmail.com>
Date: Tue, 30 Nov 2010 09:33:33 -0600
Content-Transfer-Encoding: quoted-printable
Message-ID: <0D9EF9B6-02F7-4DCC-8CC5-2C9F0CA0DD96@nominum.com>
References: <AANLkTikVS2M=knDfEib4PbCoKCu+E_VBL99jyevkshjR@mail.gmail.com>
To: VithalPrasad Gaitonde <gvithal@gmail.com>
X-Mailer: Apple Mail (2.1082)
Cc: "dhcwg@ietf.org" <dhcwg@ietf.org>
Subject: Re: [dhcwg] Question about RFC 3396 Encoding Long Options in DHCPv4
X-BeenThere: dhcwg@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: <dhcwg.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/dhcwg>, <mailto:dhcwg-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/dhcwg>
List-Post: <mailto:dhcwg@ietf.org>
List-Help: <mailto:dhcwg-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dhcwg>, <mailto:dhcwg-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 30 Nov 2010 15:32:53 -0000

On Nov 30, 2010, at 12:51 AM, VithalPrasad Gaitonde wrote:
> If yes, for options such as option 119 (Domain Search Option RFC 3397), there would be situations when the option value is longer then 447 octets (255+ 192). Are there any solutuions to these cases - RFC 3396 does not seem to solve this problem completely.

You can encode long options in the DHCP option buffer as well.   So you could for example have two Domain Search List (DSL) option of 255 bytes in the main option field of the DHCP packet, and then an additional DSL option of 126 bytes in the file field, and an additional DSL option of 62 bytes in the sname field.

The receiving agent would concatenate these four DSL options to form a single 698-byte DSL option.   The two options from the options field would come first, then the option from the file field, then the option from the sname field.

I'm sorry the text in section 5 is confusing--it was very difficult to come up with a way of explaining this that didn't involve any diagrams or animation.  :(

BTW, if you are sending DSL options containing more than perhaps 100 bytes of data, you are sending DSL options that are too long.   The DSL option is not intended as a mechanism for communicating policy.  If you use it this way, it may cause problems because you'll run out of space in the DHCP packet for *other* options.