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

Ian Farrer <ianfarrer@gmx.com> Thu, 14 December 2017 10:13 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 6EEEF12773A; Thu, 14 Dec 2017 02:13:18 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.898
X-Spam-Level:
X-Spam-Status: No, score=-4.898 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_H2=-2.8, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, URIBL_BLOCKED=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 l9pO3FK7udUP; Thu, 14 Dec 2017 02:13:12 -0800 (PST)
Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) (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 8083B124BE8; Thu, 14 Dec 2017 02:13:11 -0800 (PST)
Received: from hargashouseofribs.lan ([80.159.240.8]) by mail.gmx.com (mrgmx002 [212.227.17.184]) with ESMTPSA (Nemesis) id 0MaqeA-1eib1f4AgM-00KQpU; Thu, 14 Dec 2017 11:13:06 +0100
From: Ian Farrer <ianfarrer@gmx.com>
Message-Id: <7E297315-1B5B-437D-A447-221E8DAA5388@gmx.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_1B6CD0C3-D74F-45A9-8D9A-436FF46D5D80"
Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\))
Date: Thu, 14 Dec 2017 11:13:05 +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>, BOUCADAIR Mohamed IMT/OLN <mohamed.boucadair@orange.com>
References: <0cab196d775e45668ef2fec69f317ce1@XCH-ALN-003.cisco.com>
X-Mailer: Apple Mail (2.3273)
X-Provags-ID: V03:K0:CIjCIHUaNPk0o50wo9zYG8lMZfaxjpH8cUZYciw86eS2W5q4Vv6 YxzflzgNO1hKZfqexy5ugUmM/JMIJ9YajlOwpUUBOivbmBN24UbUO8Jo0cegI45O7NYaTxY 8xEoqtoQ5fiF1DNjYio+hdfNn4NwjBCcosQUENi0+rlyp2J4zKyf0GcTctjUk7jMTUJsdng udGwa5k+KMyyMede1YPJA==
X-UI-Out-Filterresults: notjunk:1;V01:K0:m3USBdI/OXg=:fCqPjxrdw+sYEJ4m+3tyJl C08r8noJAQjzyk56LUM1WX6phaw3oAnfqVy51bbUZE6KOARYW2hMxLma7SsbfkTh07aROicXF rq+r4eduL9p+czWKzEN6LnjSz78fQrs0PYI8l9WpK1G2qcSP//uf6jbSyBfw8KdbLYgdmY6Js jWW4JmMaOahYDdcdmZJgoY4DVpOIdfjB27mgVO0BhidJN2jK31ILsWfode01LrTeW/hTFZoNO M0/6xiTrzGzwOo2Ou3jHbXV3lavm4CmkwoBc3k9GPt7zAyM8qz8ocTjqVeAowa0GPJWMN514U q6BJ8jdU923jhqFFwCGX5CfHG7GpcGWEhj5ITQi+E8+MNwS4zsGHCu1wn3O1DC8+1rZKHWJn2 CAHZSFDt/p7+qkZJea/u3qBL/+lZxpGcAHLe5AI5aadteXoZpY8D5CGIt4oMxgFIWiGrGzhKe ptFViGuxB8ar3NfvsgCLY8pCFmnDGIhZbBaJM3Cf6/ZbGtZSGO16LCZkNvHlvdEZlFpIrNl40 ZF2hObQicoAKAeydSOptpa0RnvptrmMbOWSL/eH++5DRXxVS8yN6vun7sCUhJdYKF6P583yVa zopjhwBMjOiBE3jqofP9ZeFgJcHXtzY7sFXCKJH5J35vEECbw0E7Lptn64Rq/nKanT9DMoq8a 50G9WoqeJYgtvTK/Amz5AXbv8mg6tlbwizh/MH9slSV0qSmGYzKMmdz36mrpTwcaVRoiNKdtP IrUJorHYTDCq9GK/1KoJlJrekudaZvOH6NitIGp81XFhKDT3o0R6op7PrUmImGEtl4a8evhuc EocaRyDAG8+u3ybUyVc1wcTYWXixU+4tZEDx+hgScn/TcFR/2U=
Archived-At: <https://mailarchive.ietf.org/arch/msg/dhcwg/XIxKohQmN4epn4OXNC2cugi5CGo>
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: Thu, 14 Dec 2017 10:13:18 -0000

Hi Bernie/Med,

Here’s a re-worked DUID section including UUID and a free, string based format that hopefully addresses the comments that have been raised:

+--rw duid
|  |  +--rw (duid-type)?
|  |     +--:(duid-llt)
|  |     |  +--rw duid-llt-hardware-type?      uint16
|  |     |  +--rw duid-llt-time?               yang:timeticks
|  |     |  +--rw duid-llt-link-layer-addr?    yang:mac-address
|  |     +--:(duid-en)
|  |     |  +--rw duid-en-enterprise-number?   uint32
|  |     |  +--rw duid-en-identifier?          string
|  |     +--:(duid-ll)
|  |     |  +--rw duid-ll-hardware-type?       uint16
|  |     |  +--rw duid-ll-time?                yang:timeticks
|  |     +--:(duid-uuid)
|  |     |  +--rw uuid?                        yang:uuid
|  |     +--:(duid-string)
|  |        +--rw string?                      string


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)
> 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.
>  
> - 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>