Re: [dhcwg] Please review draft-ietf-pcp-dhcp, particularly section 5.

"Bernie Volz (volz)" <volz@cisco.com> Thu, 20 March 2014 13:30 UTC

Return-Path: <volz@cisco.com>
X-Original-To: dhcwg@ietfa.amsl.com
Delivered-To: dhcwg@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3FA2A1A08C6 for <dhcwg@ietfa.amsl.com>; Thu, 20 Mar 2014 06:30:12 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -15.048
X-Spam-Level:
X-Spam-Status: No, score=-15.048 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-0.547, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19pktQ6mREVM for <dhcwg@ietfa.amsl.com>; Thu, 20 Mar 2014 06:30:10 -0700 (PDT)
Received: from rcdn-iport-3.cisco.com (rcdn-iport-3.cisco.com [173.37.86.74]) by ietfa.amsl.com (Postfix) with ESMTP id CCD091A03E9 for <dhcwg@ietf.org>; Thu, 20 Mar 2014 06:30:09 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=5002; q=dns/txt; s=iport; t=1395322201; x=1396531801; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=K8OpmylDkpOsVE8rXtsEqYacO+hH717QYss0zmWdZmQ=; b=dUwD6g2Xz46opwh1ARO9WPu0fjgfliZxH9iKty28yFoYnOjLIovh5b2x 4Gw8Dk+j4NxZO6m6RAgNuhl1IhPdzMbi/mDb9BzeNLuDAvFIVnQQNDZ/C 5wvJ22Bk0pPSFBR0IGEO+eQwZQmJcsusE5F0GS/cxKUrWWg6GyzOK1EXa U=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AgMFABztKlOtJXHA/2dsb2JhbABagwaBEsJPgRcWdIIlAQEBBDo/DAQCAQgOAwQBAQEKFAkHMhQJCAIEAQ0FCIdx0DEXjjQmCwcGgx6BFAEDlFuWHIMtgis
X-IronPort-AV: E=Sophos;i="4.97,694,1389744000"; d="scan'208";a="311686935"
Received: from rcdn-core2-5.cisco.com ([173.37.113.192]) by rcdn-iport-3.cisco.com with ESMTP; 20 Mar 2014 13:29:39 +0000
Received: from xhc-aln-x14.cisco.com (xhc-aln-x14.cisco.com [173.36.12.88]) by rcdn-core2-5.cisco.com (8.14.5/8.14.5) with ESMTP id s2KDTdEw003262 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Thu, 20 Mar 2014 13:29:39 GMT
Received: from xmb-rcd-x04.cisco.com ([169.254.8.92]) by xhc-aln-x14.cisco.com ([173.36.12.88]) with mapi id 14.03.0123.003; Thu, 20 Mar 2014 08:29:39 -0500
From: "Bernie Volz (volz)" <volz@cisco.com>
To: Ted Lemon <mellon@fugue.com>, "mohamed.boucadair@orange.com" <mohamed.boucadair@orange.com>
Thread-Topic: [dhcwg] Please review draft-ietf-pcp-dhcp, particularly section 5.
Thread-Index: AQHPQ3gRGS6zp6HuO0u6GVs38nhhAZrph5CAgABa8DGAAAkBsIAAW/QA//+tTdA=
Date: Thu, 20 Mar 2014 13:29:38 +0000
Message-ID: <489D13FBFA9B3E41812EA89F188F018E1AF1FA89@xmb-rcd-x04.cisco.com>
References: <94C682931C08B048B7A8645303FDC9F36F51A2DB17@PUEXCB1B.nanterre.francetelecom.fr> <C7964664-C302-4ABE-9CAC-1AD5D9048699@cisco.com> <489D13FBFA9B3E41812EA89F188F018E1AF1C1CA@xmb-rcd-x04.cisco.com>, <94C682931C08B048B7A8645303FDC9F36F51A2DD6C@PUEXCB1B.nanterre.francetelecom.fr> <F7685813-1AEF-4C01-9826-342FD85A0A60@cisco.com> <94C682931C08B048B7A8645303FDC9F36F51A2DF0E@PUEXCB1B.nanterre.francetelecom.fr> <351886A2-1D1D-49CF-B893-1D2FB59AECFB@fugue.com>
In-Reply-To: <351886A2-1D1D-49CF-B893-1D2FB59AECFB@fugue.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [10.86.245.8]
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Archived-At: http://mailarchive.ietf.org/arch/msg/dhcwg/jtYg-XGzyf3tBf7bnAxzgEQzZto
Cc: "dhcwg@ietf.org" <dhcwg@ietf.org>
Subject: Re: [dhcwg] Please review draft-ietf-pcp-dhcp, particularly section 5.
X-BeenThere: dhcwg@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <dhcwg.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/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: Thu, 20 Mar 2014 13:30:12 -0000

FYI - Adding back dhcwg as I think this is important to keep there.

The only issue with DHCPv6 multiple options is the ordering - if ordering is important, you should not use them. In the PCP case, I don't see that ordering matters as the draft requires using each of them.

DHCPv6 clients and servers already have to deal with multiple instances of the same option so I don't think there are any significant issues here. (Whereas in DHCPv4, that has not been the case to date, so that's why there is more significant concern.)

The guidelines are:

   DHCPv6 does allow for multiple instances of a given option, and they
   are treated as distinct values following the defined format, however
   this feature is generally preferred to be restricted to protocol
   class features (such as the IA_* series of options).  In such cases,
   it is better to define an option as an array if it is possible.  It
   is recommended to clarify (with normative language) whether a given
   DHCPv6 option may appear once or multiple times.  The default
   assumption is only once.

...

16.  Singleton options

   Although [RFC3315] states that each option type MAY appear more than
   once, the original idea was that multiple instances are reserved for
   stateful options, like IA_NA or IA_PD.  For most other options it is
   usually expected that they will appear at most once.  Such options
   are called singleton options.  Sadly, RFCs have often failed to
   clearly specify whether a given option can appear more than once or
   not.

   Documents that define new options SHOULD state whether these options
   are singletons or not.  Unless otherwise specified, newly defined
   options are considered to be singletons.  If multiple instances are
   allowed, the document MUST explain how to use them.  Care should be
   taken to not assume the they will be processed in the order they
   appear in the message.  See Section 17 for more details.

(There's more in section 17.)

I don't really care that much which we go as I think either will require code changes in some (or most) clients and servers (servers may readily support configuring multiple instances of the options and probably don't support the <sub-length><address(es)> encoding either).

Personally, I don't see a problem with multiple instances of the options as that is the way DHCPv6 was designed. Again, the only issue is ordering (since this would require specialized handling on the server configuration to allow you to define the order). For clients, order might also be an issues in how they store the data (i.e., if lists are maintained, is a new instances inserted at start or end of list).

I WOULD like to see multiple instances of options used in the way PCP proposed - i.e., where there really are more than one thing a client needs to do RATHER than alternative values (i.e., list of addresses to contact for an instance). This is in keeping how we currently handle things like the DNS server address list and domain search list.

While we could encode this as proposed for DHCPv4, I also see no need to encode it that way for this particular usage.

I guess we need to get some rough consensus here as to what the DHC WG would prefer as this will set a precedence. So it would be great for others to chime in. (Note that my comments on this entire thread are to be taken as an individual with WG co-chair hat off.)

Again, my feeling is that when order is required or when there are a list of 'equal' values (i.e., try one or more of these addresses to reach a service), we should use a single option. When there are possibly multiple items that ALL must be used (simultaneously and there is no order importance), multiple options would be fine. This is exactly how IA_* and IAADDR/IAPREFIX and the multiple vendor options instances all work.

- Bernie

-----Original Message-----
From: Ted Lemon [mailto:mellon@fugue.com] 
Sent: Thursday, March 20, 2014 9:07 AM
To: mohamed.boucadair@orange.com
Cc: Bernie Volz (volz)
Subject: Re: [dhcwg] Please review draft-ietf-pcp-dhcp, particularly section 5.

On Mar 20, 2014, at 8:49 AM, <mohamed.boucadair@orange.com>; <mohamed.boucadair@orange.com>; wrote:
> Changing the format of the dhcpv4 option to be complaint with 3396 would lead to a dhcpv4 option and a dhcpv6 option that are not similar. Are you fine with that? Should we update only the dhcpv4 part of the document?

FWIW, I don't really see much value in the semantics of multiple options, and would rather see the DHCPv6 and DHCPv4 options done the same way.   It's not something that would stop me approving the document, but we did discuss this when the option guidelines draft was done, and it seemed that there was strong skepticism, which I _think_ was expressed in the draft, about giving semantic meaning to the presence of multiple options.