Re: [netconf] some comments on netconf-adaptive-subscription

Qin Wu <bill.wu@huawei.com> Fri, 25 June 2021 14:16 UTC

Return-Path: <bill.wu@huawei.com>
X-Original-To: netconf@ietfa.amsl.com
Delivered-To: netconf@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 63F903A19F6; Fri, 25 Jun 2021 07:16:29 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.2
X-Spam-Level:
X-Spam-Status: No, score=-4.2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, 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 t_OgDO5fwtIc; Fri, 25 Jun 2021 07:16:24 -0700 (PDT)
Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 57E943A19F7; Fri, 25 Jun 2021 07:16:24 -0700 (PDT)
Received: from fraeml743-chm.china.huawei.com (unknown [172.18.147.206]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4GBJc74ktdz6L52F; Fri, 25 Jun 2021 22:02:47 +0800 (CST)
Received: from dggeml752-chm.china.huawei.com (10.1.199.151) by fraeml743-chm.china.huawei.com (10.206.15.224) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.2; Fri, 25 Jun 2021 16:16:20 +0200
Received: from dggeml753-chm.china.huawei.com (10.1.199.152) by dggeml752-chm.china.huawei.com (10.1.199.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Fri, 25 Jun 2021 22:16:18 +0800
Received: from dggeml753-chm.china.huawei.com ([10.1.199.152]) by dggeml753-chm.china.huawei.com ([10.1.199.152]) with mapi id 15.01.2176.012; Fri, 25 Jun 2021 22:16:18 +0800
From: Qin Wu <bill.wu@huawei.com>
To: Michael Richardson <mcr+ietf@sandelman.ca>, "netconf@ietf.org" <netconf@ietf.org>
CC: "core@ietf.org" <core@ietf.org>
Thread-Topic: some comments on netconf-adaptive-subscription
Thread-Index: AddpxCmbKxamTYjtQFuNdpDeReFPpQ==
Date: Fri, 25 Jun 2021 14:16:17 +0000
Message-ID: <0ded93e29090419dabc5551e49dac97d@huawei.com>
Accept-Language: zh-CN, en-US
Content-Language: zh-CN
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [10.52.202.106]
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-CFilter-Loop: Reflected
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/CFdTbU7p8V0-p0uD3z0BRAPvMP4>
Subject: Re: [netconf] some comments on netconf-adaptive-subscription
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: NETCONF WG list <netconf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netconf>, <mailto:netconf-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netconf/>
List-Post: <mailto:netconf@ietf.org>
List-Help: <mailto:netconf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netconf>, <mailto:netconf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 25 Jun 2021 14:16:30 -0000

Thanks Michael for valuable comments, see reply inline below.
-----邮件原件-----
发件人: Michael Richardson [mailto:mcr+ietf@sandelman.ca] 
发送时间: 2021年6月25日 3:15
收件人: Qin Wu <bill.wu@huawei.com>om>; netconf@ietf.org
抄送: core@ietf.org
主题: some comments on netconf-adaptive-subscription


>I read:
>        Title           : Adaptive Subscription to YANG Notification
>	Filename        : draft-wang-netconf-adaptive-subscription-05.txt

>today.  I understand the need for some kind of way to switch between some kind of periodic capture of value vs a edge-triggered/on-change process.

>I'm a bit surprised that the example-wifi-mac module had to be created in the appendix to provide an example.  Surely we should already have likely modules that are really being used and need this 

>kind of thing.
>So one recommendation is that the document focus on already published YANG models that could benefit from this kind of subscription.

[Qin]: That's a good suggestion, WiFi provides a good use case for this adaptive subscription mechanism. we did try some existing published YANG models, but it seems YANG models size is too big.
That's why we create simplified Wifi mac example Module. If you can provide a link to CHIP/MATTER WIFI statistics module, we are happy to quote that existing module.

>(Perhaps the wifi-mac module is something that also needs to exist, and does not.  I will note that CHIP/MATTER has some kind of WIFI statistics module, but it's not presently written up in YANG)

>I had to back to RFC8641, which I don't know well at all, to be sure I understood the xpath criteria.  I guess I don't understand how RFC8641 and this document can be used for non-XML serialized 

>YANG interactions.
[Qin]: RFC8641 is built on top of RFC8639, RFC8639 Subscribe Notification module allow you specify encoding, take RESTCONF as an example, you can specify any encoding you like.

>If bandwidth is at a premium, wouldn't you want to use draft-ietf-core-comi-11 (YANG in CBOR) rather than XML?
[Qin]: The intention is to optimize the existing YANG push mechanism for NETCONF/RESTCONF and other management protocols. And the network device can support multiple capture periodic intervals, the mechanism we introduce is to allow the network device switch to different capture periodic interval automatically without asking the NMS for permission each time. I hope this clarifies.
>At which point, the obvious interaction with RFC7641 would need to be explained?

>It seems that the netconf (RESTCONF) and CORECONF groups should spend some more time together.

[Qin]: I am also hoping RESTCONF and CORECONF can work together, but they seems to look into different use cases (constrained device management vs unconstrained device management) .
I am not sure we should generalized RESTCONF and CORECONF into a single protocol.
My understanding they have a different basis, for CORECONF, the basis is COMI, should it be extended to support pub sub?, there is one relevant draft, i.e.,
Draft-birkholdz-yang-core-telemetry, 
RFC7641 have different basis, which is coap, it seems introduce similar pub sub mechanism, but I confused this work with draft-ietf-core-coap-pubsub. So what about other IoT protocol such as MQTT? It also support pub sub mechanism.
I think we should not mix coap with comi, otherwise, we will see a lot of mess and confusion. Am I right?

--
]               Never tell me the odds!                 | ipv6 mesh networks [
]   Michael Richardson, Sandelman Software Works        |    IoT architect   [
]     mcr@sandelman.ca  http://www.sandelman.ca/        |   ruby on rails    [






--
Michael Richardson <mcr+IETF@sandelman.ca>   . o O ( IPv6 IøT consulting )
           Sandelman Software Works Inc, Ottawa and Worldwide