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

Ted Lemon <mellon@fugue.com> Thu, 14 December 2017 13:49 UTC

Return-Path: <mellon@fugue.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 E98A61292AE for <dhcwg@ietfa.amsl.com>; Thu, 14 Dec 2017 05:49:14 -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=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=fugue-com.20150623.gappssmtp.com
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 DLb13f1T_LJK for <dhcwg@ietfa.amsl.com>; Thu, 14 Dec 2017 05:49:11 -0800 (PST)
Received: from mail-qk0-x229.google.com (mail-qk0-x229.google.com [IPv6:2607:f8b0:400d:c09::229]) (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 15A24128E00 for <dhcwg@ietf.org>; Thu, 14 Dec 2017 05:49:11 -0800 (PST)
Received: by mail-qk0-x229.google.com with SMTP id i130so6257492qke.4 for <dhcwg@ietf.org>; Thu, 14 Dec 2017 05:49:10 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fugue-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=imM2iO4n01HAQ++aCsOUa6XCD4XAwxLHqFuyH3i/v7c=; b=jvJsGi+FsUEfKFsxnaMk7vS4aTPWH1CQTaNRWCgUE4XfD56JCYf0+W5Ld604qzxJPo eqtwfTzRXaSxtcukhmjX/PLiF3+spZmpd7azsUJ2wgqVLcmwC+QRWWfqARs74wSxkBB9 PdbpiMhFoMzaTr5I9fFZP15YXaG4ELi8QMeFVUXzdUFjadVoC+pW7bM1cR0hPBwampWS JQoCtzVsQyW7uv9bNCbbFXTaaYeyIUw9+kgyZyC40Lst+PIRoQ5HSW32N79seh6JEIGa ATfXVLHnvlVbIeagyjNcgnNCz8fD9Eieoxgysfd5PneKGxjUhZ+HPAP05o0u/8iw98/K NIDQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=imM2iO4n01HAQ++aCsOUa6XCD4XAwxLHqFuyH3i/v7c=; b=WBfSlA4qLBDeioROGnp30A6wO2LSNHdev/JbXaMedWUMuqYowCverUyvGmetSW6NnU EkM/OM15Nol5+KfCtzyN9SuOzGmZlsm+0XBohhXJun6E2r/kQFYUj/SlutGvuuNID1BT GyAS3oibLYNkUh2GyRimALbRkw/1vMZqygk23GZx40JnD90YwJIsGndj18/r9cXYLcF5 /o5EBd37bpVaLK1GrDswA/0H7xK4W21l5xLdHyyvzGvZjs03lgDmyDquEXV7jBj57iVj SNGmu/DJ7SVkAU+QPQxwTNXF5me/rvSbUgHCXnfpTWmA80jYgZlCWV4becxuzh0tjrw7 wqTw==
X-Gm-Message-State: AKGB3mJMDn1OXNdwpmXRAaM0UB3vHgWq7c+RclGvJv6pIykqWKDGyw8m e4k6cWjU/P1+8kf/5UcH8KGfsA==
X-Google-Smtp-Source: ACJfBotu+1+kUzkNxLL051bA7i1b/2T7lp6edHenpSA2/1KdNlRrZJe8soMNa1eHTTpR2UxHnXVXVQ==
X-Received: by 10.55.39.210 with SMTP id n201mr15932207qkn.116.1513259350112; Thu, 14 Dec 2017 05:49:10 -0800 (PST)
Received: from [10.0.30.153] (c-24-60-163-103.hsd1.ma.comcast.net. [24.60.163.103]) by smtp.gmail.com with ESMTPSA id x40sm2544177qtb.77.2017.12.14.05.49.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Dec 2017 05:49:09 -0800 (PST)
From: Ted Lemon <mellon@fugue.com>
Message-Id: <9CB5386F-FF7E-4B8B-A9C4-A7234AE4446F@fugue.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_5BA708DB-A60C-453B-97F4-28A4622E8DBA"
Mime-Version: 1.0 (Mac OS X Mail 11.2 \(3445.5.20\))
Date: Thu, 14 Dec 2017 08:49:07 -0500
In-Reply-To: <7E297315-1B5B-437D-A447-221E8DAA5388@gmx.com>
Cc: "Bernie Volz (volz)" <volz@cisco.com>, BOUCADAIR Mohamed IMT/OLN <mohamed.boucadair@orange.com>, "dhcwg@ietf.org" <dhcwg@ietf.org>, "draft-ietf-dhc-dhcpv6-yang@ietf.org" <draft-ietf-dhc-dhcpv6-yang@ietf.org>
To: Ian Farrer <ianfarrer@gmx.com>
References: <0cab196d775e45668ef2fec69f317ce1@XCH-ALN-003.cisco.com> <7E297315-1B5B-437D-A447-221E8DAA5388@gmx.com>
X-Mailer: Apple Mail (2.3445.5.20)
Archived-At: <https://mailarchive.ietf.org/arch/msg/dhcwg/U3zjTCAc776f273Pfau0a0dx9ak>
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 13:49:15 -0000

I think you got duid-ll wrong—you should have deleted the time from the copypasta, but instead you deleted the hardware address. :)

> On Dec 14, 2017, at 5:13 AM, Ian Farrer <ianfarrer@gmx.com> wrote:
> 
> 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 <mailto: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>
> _______________________________________________
> dhcwg mailing list
> dhcwg@ietf.org
> https://www.ietf.org/mailman/listinfo/dhcwg