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

hezihao <hezihao9512@gmail.com> Sat, 16 December 2017 03:41 UTC

Return-Path: <hezihao9512@gmail.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 9D17B12711B; Fri, 15 Dec 2017 19:41:11 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.025
X-Spam-Level:
X-Spam-Status: No, score=-1.025 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, MIME_HTML_ONLY=0.723, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 Q29e9ir_y-Dm; Fri, 15 Dec 2017 19:41:09 -0800 (PST)
Received: from mail-pl0-x22d.google.com (mail-pl0-x22d.google.com [IPv6:2607:f8b0:400e:c01::22d]) (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 B89A4124D85; Fri, 15 Dec 2017 19:41:09 -0800 (PST)
Received: by mail-pl0-x22d.google.com with SMTP id i6so1557374plt.13; Fri, 15 Dec 2017 19:41:09 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:message-id:in-reply-to:references:subject :mime-version:content-transfer-encoding; bh=iCArTSLeHM7o73jE9lb35jiJh6w2evexCU2AUNkMD2o=; b=p4FB+XhF6FfrcWaJCCoZ6MamqUsCV17Pct3px+g8v26Sk5Qddn/UwfzhS166smXt/U 25uptACyYp1cv+IyTuvxcUSPJpj1c2+/rzLXC52DXuH9kfUMG/I8oeyvJg8bS6cy1iqQ jIyhLmaHMkP1Nj5bjPf/eK9iaBJBQ1D4/W8dO+FEWPOh/AGKdXIM6YQf/gu4xbw+w/3w VMIzHHU8RDJRq1SucLtZH2+NIfGfWuM4sdejzaW3r8+vVJyKyGhThYyjm6V9Wpn4cI2R 6l2wW5BA/T+KJfy+OnO/LNfOgoKG+j5vRtMtpKfiGqYH/DcE2Rn0YKvFxKp6NnlNyJNT C+ag==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:message-id:in-reply-to :references:subject:mime-version:content-transfer-encoding; bh=iCArTSLeHM7o73jE9lb35jiJh6w2evexCU2AUNkMD2o=; b=Xz3SU4WgsdXrLZFii3ltftLaDfP1G+k5+8Dngt4eDypwtTMNmx7tzPZopxghv4I5Pq BPnvjU7+T8gcA6S+T7u1mCqBPrghSEyK0vXo7/84Bg8wkw2cb7hbdrczPTzUJJX0pOzB KswG2uYBZRgms+dU1NaXDacNU5IMi5nVDOySBQPjjHkb43/RjrHgeBIjK+sHEk3ZbyNb gvjT7sb8jObV675WtNjKsg8lgYye2x8EYFtCSsne0WwbPEJbD87ulgPgdO3/vARyO7Uf QHzOwnzbZJsfTJaLuYPQOax4epFagTnBlQffxOrCMLfOl/a5m+p15VOHVvNTn5rrT88W lmIQ==
X-Gm-Message-State: AKGB3mIqLJIF5qDgBWtyXXA0H51P55Qaa2n8wFfIa34CIApVCsrtKdpR LYRfR8MYh6f77rDXwAro0WBpaTXS
X-Google-Smtp-Source: ACJfBovvkK6lCYpn7DAxY1jf+zWxuLgaxug2+zVQqsHVrb4BaAp2CGlN7wx2GXV+Z0VpE8Co8vO2ZA==
X-Received: by 10.84.235.139 with SMTP id p11mr15736283plk.391.1513395669285; Fri, 15 Dec 2017 19:41:09 -0800 (PST)
Received: from DESKTOP-7HBCU2Q ([103.211.228.150]) by smtp.gmail.com with ESMTPSA id f4sm12722305pgo.1.2017.12.15.19.41.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Dec 2017 19:41:08 -0800 (PST)
Date: Sat, 16 Dec 2017 11:41:38 +0800
From: hezihao <hezihao9512@gmail.com>
To: Simon Hobson <dhcp1@thehobsons.co.uk>
Cc: "dhcwg@ietf.org" <dhcwg@ietf.org>, "draft-ietf-dhc-dhcpv6-yang@ietf.org" <draft-ietf-dhc-dhcpv6-yang@ietf.org>
Message-ID: <76ABAA0E-31D1-4AEC-B8A9-3E9C1098C279@gmail.com>
In-Reply-To: <B40E98BF-FAAF-4E48-9E10-CA69BD291D04@thehobsons.co.uk>
References: <0cab196d775e45668ef2fec69f317ce1@XCH-ALN-003.cisco.com> <7E297315-1B5B-437D-A447-221E8DAA5388@gmx.com> <A670F3DD-DEBC-40D5-8890-A5D43233362F@cisco.com> <0D8F77A1-3B91-4D6E-A7F2-5720EF0AFA51@gmx.com> <A60591D3-7598-4BFB-9F30-A69257D65E01@thehobsons.co.uk> <D97294FF-5684-43B2-AD85-DB0C47D1A204@cisco.com> <B40E98BF-FAAF-4E48-9E10-CA69BD291D04@thehobsons.co.uk>
X-Mailer: MailMasterPC/4.2.2.1004 (Windows 10 RS3)
X-CUSTOM-MAIL-MASTER-SENT-ID: 619EB341-D47C-41FB-B2DE-2620D90630E6
MIME-Version: 1.0
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: base64
Archived-At: <https://mailarchive.ietf.org/arch/msg/dhcwg/5VDFwRrCLgJIs43U501NVMuch3E>
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: Sat, 16 Dec 2017 03:41:12 -0000



Would it be reasonable if we also add a ‘(pseudo-)type-code’ under DUID-string? This way, the format of DUID-string in the YANG model conforms to that of other four conventional types, which might help a device differentiate among the 5 types of DUID.

Of course, the assumption here is that there are indeed some devices trying to parse a DUID. Were it not true, I’d prefer that we not bother to separate out different types.

On 12/16/2017 03:09Simon Hobson<dhcp1@thehobsons.co.uk> wrote:
Bernie Volz (volz) <volz@cisco.com> wrote:

> This is definitely a mess. But these devices are out there.

I can see both sides, but it does seem like setting the standard to fit what a vendor has done - sending the message that it's OK to ignore standards as the IETF will simply regularise it.

> Obviously there was is no collision today as my understanding is that these are ascii strings and so we have a lot of duid-types to assign before there would be a conflict.

Until someone reads the spec, sees that it's just a blob, and sets a binary string that conflicts.

> I just don’t see why we bother to separate out anything - just treat it as an opaque “blob” of data.


Indeed. It does seem odd to specify ways of generating a DUID, including a type identifier - and then prohibit using that information.


Ted Lemon <mellon@fugue.com> wrote:

> This is a valid point; realistically, when we defined DUID, we defined it as a blob, and then specified ways of doing it, but insisted that from the perspective of being used as an identifier, it was just a blob; the "how to make" part of the spec is to avoid collisions, not to make the information in the DUID available for the server to parse.

> It would be reasonable to say that the yang data model should just present that binary blob to whatever is talking to it, and if that thing wants to have heuristics for picking it apart, that's fine, but the data model doesn't need to do so.

We seem to get mixed messages. On the one hand there's this text that says "do not parse the DUID", yet on this list (IIRC) you've suggested that this was simply "not well worded" and it wasn't intended to prohibit doing that.

_______________________________________________
dhcwg mailing list
dhcwg@ietf.org
https://www.ietf.org/mailman/listinfo/dhcwg