Re: [yang-doctors] Yangdoctors early review of draft-ietf-dots-telemetry-09
Martin Björklund <mbj+ietf@4668.se> Tue, 30 June 2020 18:18 UTC
Return-Path: <mbj+ietf@4668.se>
X-Original-To: yang-doctors@ietfa.amsl.com
Delivered-To: yang-doctors@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 28BB63A095E; Tue, 30 Jun 2020 11:18:29 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 2.902
X-Spam-Level: **
X-Spam-Status: No, score=2.902 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, GB_SUMOF=5, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, 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=4668.se header.b=RSe2Gzep; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=eS3TvYLH
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 KIvebD8uskCd; Tue, 30 Jun 2020 11:18:27 -0700 (PDT)
Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 85A563A0953; Tue, 30 Jun 2020 11:18:24 -0700 (PDT)
Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.west.internal (Postfix) with ESMTP id C77FA275; Tue, 30 Jun 2020 14:18:22 -0400 (EDT)
Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Tue, 30 Jun 2020 14:18:23 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=4668.se; h=date :message-id:to:cc:subject:from:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=fm2; bh= gtICwSs60P3ZZXDlI8CFhcDStNRVMCce4+HOWWXWbO8=; b=RSe2GzepzCisMZI0 7adSIZkj+AjB1eEot6pkHHrm63m3Cv0QDMEiy+C2Wd8zNPZyycx1H9MF90xLH0Oq pXDqaGB8zW7QPrQ+Pxux/Sq303swS/lVYpddb7JWzmuyojXK2jr+YoqHD3YMt2ti uEjH5NfyTxIR/WCFDv48AgnbrrNHHbfCDATD2eiZCshGOeWMrQl973VbLxZCaiGm Zmy3PtkF3otF6i1Qh9f3qfYR2icA5J1q4Qn7vE2qC/1TsySIo0MGV7yG3vganuL8 v3Bx+DCAPSra9OaoDQ/1yFyiB36YC5UAt/0MyPCv/Hwv9WuckvSrjsT394s7Guw9 90hwOQ==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=gtICwSs60P3ZZXDlI8CFhcDStNRVMCce4+HOWWXWb O8=; b=eS3TvYLHDn0r9FYxDr/CIE/Ee08JhAIuTAa38BoIVnlOCSOe1L/TCyirU PmvUJp5xYumaLizECp6H4exqsvnQ1KSESPxhoPF4crF6LkuZliCXRTaNuxIiXPd5 M1CvtVi2QP3PAmPnCW4M+cThZ2t+VqOTfx9uzsf8wuU7hUK4gfu41Xu0yTOSZoXL soDATFm9F48Obs2y1acwuTncRphDhbP0Fg6ua57ImrdP4h6XSGM/LeFanIYZGVQO kP8bEtV+V2bKNc3HHS/kLbCNrPOGXeOY3/TAROan44fHG3FGMRB63jzxzw4d+EuY 5gdhlH/2m70fWP2hUkq+ATktbKQXA==
X-ME-Sender: <xms:7oH7Xs77mipZkB6yV188Bejl_aOB9o5tbVQhE_gxGsyODbfu8kaa3w>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrtddtgdelfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepfffkvffuhfgjfhfogggtgfesthejre dtredtvdenucfhrhhomhepofgrrhhtihhnuceujhpnrhhklhhunhguuceomhgsjhdoihgv thhfseegieeikedrshgvqeenucggtffrrghtthgvrhhnpeejteegvdeuleefudduueelge efgfevvefgveeujeehhfelgefhleeiheeffffhkeenucffohhmrghinhepihgvthhfrdho rhhgnecukfhppeduheekrddujeegrdegrdeggeenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpehmsghjodhivghtfhesgeeiieekrdhsvg
X-ME-Proxy: <xmx:7oH7Xt5mFnCl3jVmNggqVH8H19XrtBovZLU1K29fwoLF2lp6ZgcGVg> <xmx:7oH7XreY_SkyXjXmEPLT0VVLrtUAKvKJkNdcTFym2HZ2zmQfUKh2Rw> <xmx:7oH7XhLcxXexUClndlTqriIDXXcD1LHmykiynPuexIWMhmVasMFUlg> <xmx:7oH7XqiXIWyag9eJMYtCGKsWr2HtjXM9o0a_4Y8424txxJLf02ApYg>
Received: from localhost (unknown [158.174.4.44]) by mail.messagingengine.com (Postfix) with ESMTPA id 41ABE3280064; Tue, 30 Jun 2020 14:18:21 -0400 (EDT)
Date: Tue, 30 Jun 2020 20:18:18 +0200
Message-Id: <20200630.201818.699105283686964442.id@4668.se>
To: janl@tail-f.com, noreply@ietf.org
Cc: yang-doctors@ietf.org, draft-ietf-dots-telemetry.all@ietf.org, dots@ietf.org
From: Martin Björklund <mbj+ietf@4668.se>
In-Reply-To: <159353177839.29172.8254735147639701580@ietfa.amsl.com>
References: <159353177839.29172.8254735147639701580@ietfa.amsl.com>
X-Mailer: Mew version 6.8 on Emacs 26.3
Mime-Version: 1.0
Content-Type: Text/Plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/yang-doctors/qXTAJzIk0pphSDRRM1ivWgB3ADM>
Subject: Re: [yang-doctors] Yangdoctors early review of draft-ietf-dots-telemetry-09
X-BeenThere: yang-doctors@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Email list of the yang-doctors directorate <yang-doctors.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/yang-doctors>, <mailto:yang-doctors-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/yang-doctors/>
List-Post: <mailto:yang-doctors@ietf.org>
List-Help: <mailto:yang-doctors-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/yang-doctors>, <mailto:yang-doctors-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 30 Jun 2020 18:18:29 -0000
Hi, Jan Lindblad via Datatracker <noreply@ietf.org> wrote: > Reviewer: Jan Lindblad > Review result: Not Ready > > This is the YD early review of draft-ietf-dots-telemetry as requested by the > DOTS WG. > > The ietf-dots-telemetry YANG module is not like other YANG modules. It > specifically states that it does not pertain to NETCONF/RESTCONF management, > but is only meant to be mapped to a specific CoAP based protocol > "dots-signal-channel" created by the DOTS WG. The draft-ietf-dots-telemetry > says in section 4.7: > > The DOTS telemetry module (Section 9.1) is not intended to be used > via NETCONF/RESTCONF for DOTS server management purposes. It serves > only to provide a data model and encoding, but not a management data > model. DOTS servers are allowed to update the non-configurable 'ro' > entities in the responses of DOTS telemetry messages. > > While this approach is highly uncommon, after giving it some thought, I believe > this approach could be useful to client and server implementors. However, I > find two fundamental problems in the particular way this has been done in this > case. I believe the problems are fixable, but may involve updating existing > DOTS RFCs. > > #1) YANG data declarations used as message bodies > > You can define your own message types with whatever content you desire in YANG. > Just use rpc/action and notification statements. You may also want to look at RFC 8791, which defines a new YANG extension statement "sx:structure". This statement can be used to define messages that are not intended to be generic rpcs or notifications. /martin > This draft does not do that, > but instead defines message bodies as if they were top level YANG config > elements. This obviously violates the aras of YANG that speak about data > stores, accessible data trees, and what not. Apart from confusing experienced > YANG users, the meaning of statements like "config false" is suddenly most > unclear when the foundations of YANG are disregarded. > > In my opinion the top level of the module needs to be rewritten to use proper > YANG rpc/action and notification statements. The existing message bodies, and > the way they are augmented, could all work very well. It's just the framework > around them that isn't sound. > > Unfortunately the problematic top level structures of draft-ietf-dots-telemetry > are based on structures imported from ietf-dots-signal-channel.yang, which is > already published in DOTS RFC 8782. I have not been able to find any YD review > of this module, so I would suspect none were ever performed. To make the DOTS > signal-channel framework usable, I would suggest obsoleting RFC8782 and write a > bis with an improved YANG action/notification based foundation. The number of > changed lines in the YANG can probably be kept rather small. > > #2) Missing pieces in YANG to dots-signal-channel protocol mapping > > The draft-ietf-dots-telemetry references CoAP RFC 7959, which defines a number > of basic management operations (GET, PUT, POST, ...), and CBOR RFC 7049 content > encoding, with the draft-ietf-core-yang-cbor-12 addendum for how YANG data is > to be encoded in CBOR. Unfortunately, a protocol specification that consists of > these three references is not quite complete. Since this is an early review, it > may be that the draft authors are already planning to pull the protocol > specification up a notch, or I may have missed some piece(s) of the puzzle. In > any case, a protocol specification on par with what is available for RESTCONF > or NETCONF would be required. > > The dots-signal-channel specification in RFC 8782 makes an Informative > Reference to draft specification for a protocol called CoMI > (draft-ietf-core-comi-09), which attempts to take on the YANG to CoAP mapping. > One way of filling in the blanks for dots-signal-channel might be to leverage > the CoMI work. Fixing #1 would be required to leverage CoMI. > > Currently, dots-signal-channel protocol specification (taken as the sum of > CoAP, CBOR and draft-ietf-core-yang-cbor-12) is missing information about > operation semantics, operation encoding, error handling, for example. RFC 8040 > sections 5, 6, 7 or RFC 6241 sections 4, 7, 8 contain the sort of information > I'm looking for. > > #3) Other than that, probably good > > Other than issues #1 and #2 above, the module seems to be in pretty good shape. > Some content is hard to judge since the intended meaning of config true/false > for example is unclear, so a new review will be required after the fundamentals > have been resolved. The module is both easy to read and conforms with IETF > standards except as noted above, staying on the clean and simple side. > > > > _______________________________________________ > yang-doctors mailing list > yang-doctors@ietf.org > https://www.ietf.org/mailman/listinfo/yang-doctors
- [yang-doctors] Yangdoctors early review of draft-… Jan Lindblad via Datatracker
- Re: [yang-doctors] Yangdoctors early review of dr… Martin Björklund
- Re: [yang-doctors] Yangdoctors early review of dr… mohamed.boucadair
- Re: [yang-doctors] Yangdoctors early review of dr… Martin Björklund
- Re: [yang-doctors] Yangdoctors early review of dr… Jan Lindblad
- Re: [yang-doctors] Yangdoctors early review of dr… mohamed.boucadair
- Re: [yang-doctors] Yangdoctors early review of dr… mohamed.boucadair
- Re: [yang-doctors] Yangdoctors early review of dr… Jan Lindblad
- Re: [yang-doctors] Yangdoctors early review of dr… mohamed.boucadair
- Re: [yang-doctors] Yangdoctors early review of dr… Jan Lindblad
- Re: [yang-doctors] Yangdoctors early review of dr… mohamed.boucadair
- Re: [yang-doctors] Yangdoctors early review of dr… mohamed.boucadair
- Re: [yang-doctors] [Dots] Yangdoctors early revie… supjps-ietf