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

Qin Wu <> Fri, 25 June 2021 14:16 UTC

Return-Path: <>
Received: from localhost (localhost []) by (Postfix) with ESMTP id 63F903A19F6; Fri, 25 Jun 2021 07:16:29 -0700 (PDT)
X-Virus-Scanned: amavisd-new at
X-Spam-Flag: NO
X-Spam-Score: -4.2
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 ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id t_OgDO5fwtIc; Fri, 25 Jun 2021 07:16:24 -0700 (PDT)
Received: from ( []) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by (Postfix) with ESMTPS id 57E943A19F7; Fri, 25 Jun 2021 07:16:24 -0700 (PDT)
Received: from (unknown []) by (SkyGuard) with ESMTP id 4GBJc74ktdz6L52F; Fri, 25 Jun 2021 22:02:47 +0800 (CST)
Received: from ( by ( 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 ( by ( 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 ([]) by ([]) with mapi id 15.01.2176.012; Fri, 25 Jun 2021 22:16:18 +0800
From: Qin Wu <>
To: Michael Richardson <>, "" <>
CC: "" <>
Thread-Topic: some comments on netconf-adaptive-subscription
Thread-Index: AddpxCmbKxamTYjtQFuNdpDeReFPpQ==
Date: Fri, 25 Jun 2021 14:16:17 +0000
Message-ID: <>
Accept-Language: zh-CN, en-US
Content-Language: zh-CN
x-originating-ip: []
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-CFilter-Loop: Reflected
Archived-At: <>
Subject: Re: [core] some comments on netconf-adaptive-subscription
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Constrained RESTful Environments \(CoRE\) Working Group list" <>
List-Unsubscribe: <>, <>
List-Archive: <>
List-Post: <>
List-Help: <>
List-Subscribe: <>, <>
X-List-Received-Date: Fri, 25 Jun 2021 14:16:30 -0000

Thanks Michael for valuable comments, see reply inline below.
发件人: Michael Richardson [] 
发送时间: 2021年6月25日 3:15
收件人: Qin Wu <>om>;
主题: 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.,
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   [
]        |   ruby on rails    [

Michael Richardson <>   . o O ( IPv6 IøT consulting )
           Sandelman Software Works Inc, Ottawa and Worldwide