Re: [MBONED] Yangdoctors early review of draft-ietf-mboned-dorms-01

"Holland, Jake" <jholland@akamai.com> Sat, 17 April 2021 23:22 UTC

Return-Path: <jholland@akamai.com>
X-Original-To: mboned@ietfa.amsl.com
Delivered-To: mboned@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id DE17C3A374F; Sat, 17 Apr 2021 16:22:42 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.1
X-Spam-Level:
X-Spam-Status: No, score=-2.1 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=akamai.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 u5aF6WyzXQaO; Sat, 17 Apr 2021 16:22:38 -0700 (PDT)
Received: from mx0a-00190b01.pphosted.com (mx0a-00190b01.pphosted.com [IPv6:2620:100:9001:583::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 58BD63A373A; Sat, 17 Apr 2021 16:22:34 -0700 (PDT)
Received: from pps.filterd (m0122332.ppops.net [127.0.0.1]) by mx0a-00190b01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 13HNFWNN005580; Sun, 18 Apr 2021 00:22:32 +0100
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=akamai.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-id : content-transfer-encoding : mime-version; s=jan2016.eng; bh=rfqE18xcq75hY1VbHFVNlfLCSP2VT0TfX3mKNkf+iQ0=; b=KRk564GjHaS11NLXHgLlg8CBr1FajCl3+k8DSL94ZK6DIS1eDRlu7v/rOCW3TJlne2KH PVLPws2Ii1jafKaoNtwQYIDe39oZGF6mddAH10jRxE1DawQncHOktwXKLw7dkvv61yen 9W6uE3j3h1DQYxgCFlmqPIN17nna8ytEeWPRiBjWFYkB2pV7DflJmxkvEFwDeB1YcMyA 6S6vlZKjwEiHFG0pXdgLKtOIVlMXLuT5NhJPhetBAd9D5rIKD58kK2tY7OEGfVVJhjVW I5OnFvVFQn75126OiuDZlboN2BAI2VUtNIMujmX8/RDfF8/z1T4iMd/uAqtWoDsWsrnK gQ==
Received: from prod-mail-ppoint1 (prod-mail-ppoint1.akamai.com [184.51.33.18] (may be forged)) by mx0a-00190b01.pphosted.com with ESMTP id 37yqqn483j-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 18 Apr 2021 00:22:32 +0100
Received: from pps.filterd (prod-mail-ppoint1.akamai.com [127.0.0.1]) by prod-mail-ppoint1.akamai.com (8.16.0.43/8.16.0.43) with SMTP id 13HNJZR2011895; Sat, 17 Apr 2021 19:22:30 -0400
Received: from email.msg.corp.akamai.com ([172.27.123.33]) by prod-mail-ppoint1.akamai.com with ESMTP id 37yu0y9tx2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Sat, 17 Apr 2021 19:22:30 -0400
Received: from USMA1EX-DAG1MB5.msg.corp.akamai.com (172.27.123.105) by usma1ex-dag1mb6.msg.corp.akamai.com (172.27.123.65) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 17 Apr 2021 19:22:30 -0400
Received: from usma1ex-dag1mb6.msg.corp.akamai.com (172.27.123.65) by usma1ex-dag1mb5.msg.corp.akamai.com (172.27.123.105) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 17 Apr 2021 19:22:29 -0400
Received: from usma1ex-dag1mb6.msg.corp.akamai.com ([172.27.123.65]) by usma1ex-dag1mb6.msg.corp.akamai.com ([172.27.123.65]) with mapi id 15.00.1497.012; Sat, 17 Apr 2021 19:22:29 -0400
From: "Holland, Jake" <jholland@akamai.com>
To: Reshad Rahman <reshad@yahoo.com>, "yang-doctors@ietf.org" <yang-doctors@ietf.org>
CC: "mboned@ietf.org" <mboned@ietf.org>, "draft-ietf-mboned-dorms.all@ietf.org" <draft-ietf-mboned-dorms.all@ietf.org>
Thread-Topic: [MBONED] Yangdoctors early review of draft-ietf-mboned-dorms-01
Thread-Index: AQHXLxVfTtANrixjVUKJqiPBtJdhx6q5MJoA
Date: Sat, 17 Apr 2021 23:22:29 +0000
Message-ID: <638228C3-4B8B-463A-8B64-CA9553E6A432@akamai.com>
References: <161817467857.25277.18208608025617706305@ietfa.amsl.com>
In-Reply-To: <161817467857.25277.18208608025617706305@ietfa.amsl.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/16.47.21031401
x-ms-exchange-messagesentrepresentingtype: 1
x-ms-exchange-transport-fromentityheader: Hosted
x-originating-ip: [172.27.118.139]
Content-Type: text/plain; charset="utf-8"
Content-ID: <2E24A79F817D0D43AFBAC1CDC5A36BB0@akamai.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.761 definitions=2021-04-17_16:2021-04-16, 2021-04-17 signatures=0
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=0 adultscore=0 phishscore=0 bulkscore=0 malwarescore=0 mlxlogscore=999 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104060000 definitions=main-2104170165
X-Proofpoint-ORIG-GUID: ZdkDDTZBwHH1RkhVIlLDCpT8S_DqZPlr
X-Proofpoint-GUID: ZdkDDTZBwHH1RkhVIlLDCpT8S_DqZPlr
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.761 definitions=2021-04-17_16:2021-04-16, 2021-04-17 signatures=0
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 priorityscore=1501 impostorscore=0 malwarescore=0 lowpriorityscore=0 mlxscore=0 phishscore=0 adultscore=0 clxscore=1011 suspectscore=0 mlxlogscore=999 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104060000 definitions=main-2104170165
X-Agari-Authentication-Results: mx.akamai.com; spf=${SPFResult} (sender IP is 184.51.33.18) smtp.mailfrom=jholland@akamai.com smtp.helo=prod-mail-ppoint1
Archived-At: <https://mailarchive.ietf.org/arch/msg/mboned/CT68Xw8vK_VksE0iXR357x6Qgps>
Subject: Re: [MBONED] Yangdoctors early review of draft-ietf-mboned-dorms-01
X-BeenThere: mboned@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Mail List for the Mboned Working Group <mboned.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/mboned>, <mailto:mboned-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/mboned/>
List-Post: <mailto:mboned@ietf.org>
List-Help: <mailto:mboned-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/mboned>, <mailto:mboned-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 17 Apr 2021 23:22:50 -0000

Hi Reshad,

Thanks again for your review(s), much appreciated!

On 04-11, 1:58 PM, "Reshad Rahman via Datatracker" <noreply@ietf.org> wrote:
> Caveat: I won't pretend to fully understand the motivation behind DORMS. I've
> reviewed this mostly from a YANG perspective.

Thanks for the note, and I think that was the main intent of the
review request and a very reasonable choice in making your review.
But this makes me want to ask a clarifying question:

Is this more of a "I didn't try to grasp the motivation", or a "I
tried and failed to grasp the motivation"?

I'm trying to understand whether I should read this comment as
evidence of a substantial weakness in section 1.3, or as a note
that you didn't try hard to follow that section and aren't commenting
one way or the other?
https://datatracker.ietf.org/doc/html/draft-ietf-mboned-dorms-01#section-1.3

I'm assuming the latter, but if it's the former I'd be grateful for
elaboration on the trouble you had (perhaps without the YANG doctor
hat on, if that helps any).  So just in case it's the former and
you need a better context before you know how to answer, here's the
link to the presentation ahead of adoption that tried to go over the
purpose:
https://www.youtube.com/watch?v=ttGJyd5is2w&t=3525s
https://datatracker.ietf.org/meeting/106/materials/slides-106-mboned-multicast-to-the-browser

If the motivation was unclear in the doc but clear(er) in the
presentation, I'd be grateful for any explanation of what's missing,
if you saw something you can explain.

> Comments/questions:
> - OOC, why is DORMS limited to RESTCONF? I do understand why RESTCONF is
> appealing, but potential deployments might be using NETCONF, CORECONF or gNMI?

The intent is to provide a sort of minimal protocol suite that
remote clients can rely on being present when they implement
discovery.  However, there's no reason that other protocols
couldn't be used in some deployments, I guess.  I could add a
note to that effect.  Any objections to this text?

  This document does not prohibit the use of the "ietf-dorms"
  model with other protocols such as NETCONF, CORECONF, or gNMI,
  but the semantics of using the model with those protocols is out
  of scope for this document.  This document only defines the
  discovery and use of the "ietf-dorms" YANG model under RESTCONF.

> - The data in ietf-dorms is said to be read-only but doesn't have "config
> false"

I will add a note to experiment with this and see if I run into any
trouble.  It might make good sense to make the whole tree config false.

I was thinking of the intended meaning as "read-only access is provided
to most", rather than "all values are inherently read-only".  However, I
think there's probably no operational difference, so as long as I can
get it working I think I'd be fine moving it all to config false.

> - I'd add a "dorms" container at the top with "metadata" under "dorms".
> If other DORMS data needs to be added in the future, it would get added under
> "dorms". This would minimize top-level nodes as per RFC8407 section 4.10.

This seems reasonable and prudent, thanks.  I'll go ahead and do that.

> - "mandatory" is not needed for list keys, it's actually ignored as mentioned in
> RFC7950 section section 7.8.2

Does this mean I should remove it?  This wasn't in the list of recommended
omitted default values from section 4.4 of RFC 8407, so I wasn't sure.

Even if it wasn't a key (e.g. if the key somehow became a numeric id),
having this value would be mandatory, so I thought it was better to make
it explicit, but I don't have any other objections and will accept your
expert opinion if you confirm that you think it's better off removed.

> - If a group requires a minimum number of udp-stream entries (e.g. 1), add a
> "min-elements" statement under "group". If not, leave as-is.

It doesn't, no.  It's possible in theory to have non-UDP traffic, though
some of the extensions will be specific to UDP traffic.

> - 7.1 Security considerations, looks like the read-only data is not deemed
> sensitive, please add a statement to that effect.

I thought section 7.2 tries to cover this, are you saying 7.1 needs to
address it also?  Or maybe saying that something needs to explicitly
discuss the fields as described by section 3.7 of RFC 8407?

> Regarding NACM, consider a SHOULD instead of MAY?

I don't think a SHOULD is appropriate here for a broadcast use case, so
I don't think this should have a blanket SHOULD (though for other use
cases it might make more sense, which is why I wanted to make sure
clients would understand it's possible, which is why I put in the MAY).

> - Even though the YANG model is not complex, adding an example always helps.

I agree, but I think there's an example in section 2.3.4:
https://datatracker.ietf.org/doc/html/draft-ietf-mboned-dorms-01#section-2.3.4

So I'm not sure I understand what other examples should be added.
Are you saying I should have an example that includes an augmentation?
(And if so, is the link to another spec that does it sufficient, such
as the CBACC reference in section 4?) Or is there another kind of
example that seems to be missing, or that you think would be
especially helpful?

But I'll make a note to look for some places that could use more
examples, thanks for raising the point.


Thanks for another very helpful review!

Best regards,
Jake