Re: [dhcwg] draft-ietf-dhc-dhcpv6-yang-04 - DUID representation in the model

Ian Farrer <ianfarrer@gmx.com> Mon, 11 December 2017 15:59 UTC

Return-Path: <ianfarrer@gmx.com>
X-Original-To: dhcwg@ietfa.amsl.com
Delivered-To: dhcwg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 62E3F126DFF; Mon, 11 Dec 2017 07:59:38 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.619
X-Spam-Level:
X-Spam-Status: No, score=-2.619 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 6WU-a9iCJVbl; Mon, 11 Dec 2017 07:59:36 -0800 (PST)
Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A6576126D73; Mon, 11 Dec 2017 07:59:35 -0800 (PST)
Received: from hargashouseofribs.lan ([80.159.240.8]) by mail.gmx.com (mrgmx002 [212.227.17.184]) with ESMTPSA (Nemesis) id 0MOOpx-1eS1OZ02Oz-005pqO; Mon, 11 Dec 2017 16:59:30 +0100
From: Ian Farrer <ianfarrer@gmx.com>
Message-Id: <2477E5AC-BC81-4101-846B-E90FC2BA0AD0@gmx.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_92926998-6C2A-4B3D-9028-D1290D6ADFB4"
Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\))
Date: Mon, 11 Dec 2017 16:59:29 +0100
In-Reply-To: <0cab196d775e45668ef2fec69f317ce1@XCH-ALN-003.cisco.com>
Cc: "dhcwg@ietf.org" <dhcwg@ietf.org>, "draft-ietf-dhc-dhcpv6-yang@ietf.org" <draft-ietf-dhc-dhcpv6-yang@ietf.org>
To: "Bernie Volz (volz)" <volz@cisco.com>
References: <0cab196d775e45668ef2fec69f317ce1@XCH-ALN-003.cisco.com>
X-Mailer: Apple Mail (2.3273)
X-Provags-ID: V03:K0:CupN8ZFLwKu/p9Etm3IHrybmLqTacnbfptH2n9gU7VfC90fnqKd mqCR6698ks0Ro8Ir5sllWBl/MTmY8i3osnlwo/RVobCAlN6P2e6lHXTCwtNr45JY89faGrC oJNtoIs8Y5iYSSGqqE7y6jO7/XrEY0spu3mUVRaprK+wte8zIQ3u7xus80EgJVBrX0L8DF9 uYqYBJ6HnY0aKMgczIZRA==
X-UI-Out-Filterresults: notjunk:1;V01:K0:X7mKclwrsOE=:5+QEJwDbeNDUcA1e1dDyEF 9Y730VKnNMR6yuz785HI4XbotLuNQcYZfgjCEwMC6MQQ57kfN3uSyoU+8fESbCCiGWW1tX1MV JX/wYRz3hyNc+898jnFYMlwhQvT69/PuEVnCFgr9B35NsGhovKR7pLVEsIol974H8o8xZYhDm CGoczndeD4HHyuTs9LvPwZGAmOhaha8+1BtiG3vR918pKWU+tm3ialol1SbNtJomKF47QHgE8 kYbm5mI8665lc7I5sInHWx7MGvUIGLaDDVCm4ZMt5uWkrqESosYOB1CQwNeVaurjI63TuY6OK NAiNKrH3I1VaTj2Yu0JPFUwGiXUePw2QRRFfeleVryEZtXtvoeu8H1Jtgp+OEzJNkekEnnDre R/H2YtWhuv+ugzsPIGsnNAtnCZe0CxdOnlgEzD3E+kVPBuStxrJjTP1ZtCgDqKbcAyiOJuzd7 VvvvlGc4fw+rPz1DXYNMQOQ5W7TnfukwD92XPB8GgvLC2t2/CSbFcEutynJBfcYU8hsNYoftY Gfxl7ZG0cGNzK2UHdXYspos23jiulcYfABkt/f6srbeg36pPBS3Nq0sozrAmUdf2v5SHIIQLE dn/NEK4WPO8hBROJQJgT8UP4/0bM3H8Aj+4b3ruPnBDlEmV68MbbsExRnNfXdRmD9TLDmcUs6 kDW9yMMttznpLJa9XZz6Qde4BgjrO64y0WHiou8iq1xahD3fFLCzSGD1h0myRehvDTp2QGE0A p6lHdf7Aq0Avmfmqtk4J39nxsFkM4iyMaewH4szXL4lQ/54a9G6G5UraHKRU90+oh+d1rVQZK R+cJ0syebXMcBu4x+wEMGdnJ3sKUW96UmAbBzv3GveB8jBRveE=
Archived-At: <https://mailarchive.ietf.org/arch/msg/dhcwg/oEZzuENXoGAig8xk07HGAwXyob0>
Subject: Re: [dhcwg] draft-ietf-dhc-dhcpv6-yang-04 - DUID representation in the model
X-BeenThere: dhcwg@ietf.org
X-Mailman-Version: 2.1.22
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: <https://mailarchive.ietf.org/arch/browse/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: Mon, 11 Dec 2017 15:59:38 -0000

Hi Bernie,

Thanks for the comment. Please see inline.

Cheers,
Ian

> On 11. Dec 2017, at 16:33, Bernie Volz (volz) <volz@cisco.com> wrote:
> 
> Hi:
>  
> One comment regarding the 04 version is that for the DUID, you need to:
> 1.       Include the DUID-UUID (see RFC 6355)

[if - I saw that this had been omitted. There is already a github issue raised to include this.

> 2.       Handle DUIDs that do NOT follow these conventions (I know of at least one model device that does not). So, you need a way to represent that (the vendor sadly has no type even before the text serial number of the device). This would also accommodate new DUID types that are not yet defined for a new model.
>  
> Frankly, I’d prefer that we NOT explode these fields at all and just treat the data as binary data. Exploding out values here just causes issues for the above cases and makes the model harder to implement. If you see https://tools.ietf.org/html/draft-ietf-dhc-rfc3315bis-10#section-11 <https://tools.ietf.org/html/draft-ietf-dhc-rfc3315bis-10#section-11>, you will notice the following text:
>  
>    Clients and servers MUST treat DUIDs as opaque values and MUST only
>    compare DUIDs for equality.  Clients and servers SHOULD NOT in any
>    other way interpret DUIDs.  Clients and servers MUST NOT restrict
>    DUIDs to the types defined in this document, as additional DUID types
>    may be defined in the future.  It should be noted that an attempt to
>    parse a DUID to obtain a client's link-layer address is unreliable as
>    there is no guarantee that the client is still using the same link-
>    layer address as when it generated its DUID.  And, such an attempt
>    will be more and more unreliable as more clients adopt privacy
>    measures, such as those defined in [RFC7844 <https://tools.ietf.org/html/rfc7844>].  It is recommended to
>    rely on the mechanism defined in [RFC6939 <https://tools.ietf.org/html/rfc6939>].
>  
> By exploding out the values you are just encouraging people to violate these MUSTs.

[if - I can see your point here, but from an operator’s side, when configuring the DHCP client, being able to specify a format is useful if I can just tell the client to use e.g. DUID type 1 and have a very high probability of uniqueness then it’s one less client configuration parameter that I need to manage.

However, looking back at the model, this isn’t really what it’s doing at the moment, so it needs some re-work (e.g. the time and link-layer addresses really should be state data as they are taken from the device).

What about adding another option for an arbitrary binary DUID type (in addition to adding DUID-UUID and re-working the existing ones)?


>  
> - Bernie
>  
> _______________________________________________
> dhcwg mailing list
> dhcwg@ietf.org <mailto:dhcwg@ietf.org>
> https://www.ietf.org/mailman/listinfo/dhcwg <https://www.ietf.org/mailman/listinfo/dhcwg>