Re: [dhcwg] dhc WG review of draft-ietf-geopriv-lis-discovery-05

Bud Millwood <budm@weird-solutions.com> Wed, 28 January 2009 08:59 UTC

Return-Path: <dhcwg-bounces@ietf.org>
X-Original-To: dhcwg-archive@megatron.ietf.org
Delivered-To: ietfarch-dhcwg-archive@core3.amsl.com
Received: from [127.0.0.1] (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 813EC28C10D; Wed, 28 Jan 2009 00:59:04 -0800 (PST)
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 9757F28C18B for <dhcwg@core3.amsl.com>; Wed, 28 Jan 2009 00:59:02 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level:
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599]
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 8qr14nxznV5G for <dhcwg@core3.amsl.com>; Wed, 28 Jan 2009 00:59:01 -0800 (PST)
Received: from cl40.gs02.gridserver.com (cl40.gs02.gridserver.com [64.13.232.49]) by core3.amsl.com (Postfix) with ESMTP id 87E0728C10D for <dhcwg@ietf.org>; Wed, 28 Jan 2009 00:59:01 -0800 (PST)
Received: from static-213-115-152-226.sme.bredbandsbolaget.se ([213.115.152.226]:37763 helo=offset.weird.se) by cl40.gs02.gridserver.com with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.63) (envelope-from <budm@weird-solutions.com>) id 1LS6Fv-0001wq-Fv for dhcwg@ietf.org; Wed, 28 Jan 2009 00:58:43 -0800
From: Bud Millwood <budm@weird-solutions.com>
Organization: Weird Solutions, Inc.
To: dhcwg@ietf.org
Date: Wed, 28 Jan 2009 09:52:19 +0100
User-Agent: KMail/1.9.9
References: <0B27CAD9-2FEA-4688-B096-8667F35A460B@cisco.com> <20090127193947.GC3215@isc.org> <F5AAF083-12D4-4D87-AE99-99F9393E3B27@cisco.com>
In-Reply-To: <F5AAF083-12D4-4D87-AE99-99F9393E3B27@cisco.com>
MIME-Version: 1.0
Content-Disposition: inline
Message-Id: <200901280952.19470.budm@weird-solutions.com>
X-Authenticated-User: 39280 budm@broadbandprovisioner.com
Subject: Re: [dhcwg] dhc WG review of draft-ietf-geopriv-lis-discovery-05
X-BeenThere: dhcwg@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: Bud Millwood <budm@weird-solutions.com>
List-Id: <dhcwg.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/dhcwg>, <mailto:dhcwg-request@ietf.org?subject=unsubscribe>
List-Archive: <https://www.ietf.org/mailman/private/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>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: dhcwg-bounces@ietf.org
Errors-To: dhcwg-bounces@ietf.org

On Tuesday 27 January 2009, Ralph Droms wrote:
> David - if, indeed, the idea is for one URI, with an optional
> fingerprint, would the following format be sensible and simpler to
> parse?

This option would be much better served as a subencoded option IMO. It's going 
through terrible contortions to encode both fixed-field settings and variable 
length settings.

I think a better approach would be to encode everything as suboptions, and 
then to simply dictate which options should be present under the different 
circumstances.

- Bud

>
>      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
>     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>
>     |    LIS_URI    |    Length     | Hash-Type-Len | Hash-Type   ...
>
>     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>
>     |                           Hash-Type (cont.)                 ...
>
>     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>
>     |  Fprint-Len   |           Fingerprint-Value                 ...
>
>     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>
>     |                           URI                               ...
>
>     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>
>     |                           URI (cont.)                       ...
>
>     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>
> where Hash-Type-Len and Fprint-Len are both either zero (no
> fingerprint) or greater than 0 (fingerprint included).
>
> - Ralph
>
> On Jan 27, 2009, at 2:39 PM 1/27/09, David W. Hankins wrote:
> > On Tue, Jan 27, 2009 at 06:41:06AM -0500, Ralph Droms wrote:
> >> Can there be more than one fingerprint and more than one URI
> >> carried in the
> >> LIS-URI option?  I don't think the draft explicitly restricts the
> >> option.
> >> Because the URI does not include a length field, it would seem to
> >> limit the
> >> option to one URI, and the fingerprint MUST come before the URI.  I
> >> think
> >> the text should be explicit on this point.
> >>
> >> If I understand this restriction correctly, it may be possible to
> >> simplify
> >> the option syntax by assuming the order and number of fields in the
> >> option.
> >> I'll defer to dhc WG members for opinions on whether there might be a
> >> modification to the syntax that would be more in line with existing
> >> options
> >> and implementations.
> >
> > I presumed the intent was to provide only one URI.
> >
> > I think that if you squint and turn your head sideways, the 'f-code,
> > f-length' looks like a suboption (except that the URI's f-code implies
> > no length octet, evidently a format size optimization).
> >
> > I want to ask if the idea is to intentionally make a distinction
> > between 'f-code's and suboptions, such as in order to support multiple
> > instances of one f-code (and not provoke option concatenation as would
> > happen with multiple sub-option codes of the same value).
> >
> > If they can be suboptions, then why not multiple regular options?
> > I think the answer is that the certificate is useless without the URI,
> > and vice versa, so if a DHCP server omitted one due to running out of
> > space it is better to omit both.  Containering them together solves
> > this neatly.
> >
> >> The DHCPv6 option doesn't have the 253 byte length restriction.  It
> >> would
> >> be good to mention that difference between the two option versions.
> >
> > I was curious what you meant (253, not 255?), so went back to re-read
> > the draft.  I don't see the number 253 mentioned, nor 255!
> >
> > It /does/ mention '225'.  This appears to be a typo?
> >
> > My only suggestion for the mention of the option size is to refer
> > specifically to the 'length field value', and not to terms like 'URI
> > length' or 'option length', which can be misinterpreted from different
> > starting positions.
> >
> > Otherwise I like this approach of referring to the extension of option
> > space as a DHCPv4 protocol feature, and not trying to reinvent its
> > specification.
> >
> > --
> > 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://www.ietf.org/mailman/listinfo/dhcwg
>
> _______________________________________________
> dhcwg mailing list
> dhcwg@ietf.org
> https://www.ietf.org/mailman/listinfo/dhcwg



-- 
Bud Millwood
Weird Solutions, Inc.
http://www.weird-solutions.com
tel: +46 8 758 3700
fax: +46 8 758 3687
_______________________________________________
dhcwg mailing list
dhcwg@ietf.org
https://www.ietf.org/mailman/listinfo/dhcwg