[netconf] transport and encodings for configured subscriptions
"maqiufang (A)" <maqiufang1@huawei.com> Fri, 09 August 2024 03:00 UTC
Return-Path: <maqiufang1@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 83612C151993 for <netconf@ietfa.amsl.com>; Thu, 8 Aug 2024 20:00:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.903
X-Spam-Level:
X-Spam-Status: No, score=-1.903 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uy9JbVU4mRhR for <netconf@ietfa.amsl.com>; Thu, 8 Aug 2024 20:00:40 -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 718A7C14F61B for <netconf@ietf.org>; Thu, 8 Aug 2024 20:00:40 -0700 (PDT)
Received: from mail.maildlp.com (unknown [172.18.186.231]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4Wg7r25yYvz67V1p for <netconf@ietf.org>; Fri, 9 Aug 2024 10:57:38 +0800 (CST)
Received: from lhrpeml500002.china.huawei.com (unknown [7.191.160.78]) by mail.maildlp.com (Postfix) with ESMTPS id C89801400CB for <netconf@ietf.org>; Fri, 9 Aug 2024 11:00:37 +0800 (CST)
Received: from kwepemm600017.china.huawei.com (7.193.23.234) by lhrpeml500002.china.huawei.com (7.191.160.78) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Fri, 9 Aug 2024 04:00:36 +0100
Received: from kwepemm600017.china.huawei.com (7.193.23.234) by kwepemm600017.china.huawei.com (7.193.23.234) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Fri, 9 Aug 2024 11:00:29 +0800
Received: from kwepemm600017.china.huawei.com ([7.193.23.234]) by kwepemm600017.china.huawei.com ([7.193.23.234]) with mapi id 15.01.2507.039; Fri, 9 Aug 2024 11:00:29 +0800
From: "maqiufang (A)" <maqiufang1@huawei.com>
To: "netconf@ietf.org" <netconf@ietf.org>
Thread-Topic: transport and encodings for configured subscriptions
Thread-Index: AdrqB/HS4Nx5BljqQlm0DyrHFhJa9w==
Date: Fri, 09 Aug 2024 03:00:29 +0000
Message-ID: <1425bd7fc32446ceb22d01e255cc28fb@huawei.com>
Accept-Language: zh-CN, en-US
Content-Language: zh-CN
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [10.136.118.147]
Content-Type: multipart/alternative; boundary="_000_1425bd7fc32446ceb22d01e255cc28fbhuaweicom_"
MIME-Version: 1.0
Message-ID-Hash: 5TB25F7ZXGFJT55LQO4MUJFNJX4RYEG3
X-Message-ID-Hash: 5TB25F7ZXGFJT55LQO4MUJFNJX4RYEG3
X-MailFrom: maqiufang1@huawei.com
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-netconf.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
X-Mailman-Version: 3.3.9rc4
Precedence: list
Subject: [netconf] transport and encodings for configured subscriptions
List-Id: NETCONF WG list <netconf.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/49eYiriNYLsVYXnvX9EeQX442QI>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netconf>
List-Help: <mailto:netconf-request@ietf.org?subject=help>
List-Owner: <mailto:netconf-owner@ietf.org>
List-Post: <mailto:netconf@ietf.org>
List-Subscribe: <mailto:netconf-join@ietf.org>
List-Unsubscribe: <mailto:netconf-leave@ietf.org>
Hi, all, The RFC 8639 defines transport and encoding for the configured subscription as follows: leaf transport { if-feature "configured"; type transport; description "For a configured subscription, this leaf specifies the transport used to deliver messages destined for all receivers of that subscription."; } leaf encoding { when 'not(../transport) or derived-from(../transport, "sn:configurable-encoding")'; type encoding; description "The type of encoding for notification messages. For a dynamic subscription, if not included as part of an 'establish-subscription' RPC, the encoding will be populated with the encoding used by that RPC. For a configured subscription, if not explicitly configured, the encoding will be the default encoding for an underlying transport."; } For a configured subscription, I think the idea behind this "when" statement design inside the encoding leaf is, to have the configurable encoding dependent on the transport, i.e., the encoding node can be configured only when the transport allows configurable encoding. But the description of the configurable-encoding identity confuses me: identity configurable-encoding { description "If a transport identity derives from this identity, it means that it supports configurable encodings. An example of a configurable encoding might be a new identity such as 'encode-cbor'. Such an identity could use 'configurable-encoding' as its base. This would allow a dynamic subscription encoded in JSON (RFC 8259) to request that notification messages be encoded via the Concise Binary Object Representation (CBOR) (RFC 7049). Further details for any specific configurable encoding would be explored in a transport document based on this specification."; reference "RFC 8259: The JavaScript Object Notation (JSON) Data Interchange Format RFC 7049: Concise Binary Object Representation (CBOR)"; } I agree that if the transport identity is derived from this identity, then a configurable encoding could be supported. However, for the new encoding identity (e.g., "encode-cbor"), I don't think it makes sense to use "configurable-encoding" as its base, I think it should use "sn:encoding" as base so that it can be configured as a value for encoding leaf. Looking at the udp-notif and https-notif drafts, both https and udp identities definition don't use "configurable-encoding" as their base, which I think would cause the encoding cannot be configured. identity udp-notif { base sn:transport; description "UDP-Notif is used as transport for notification messages and state change notifications."; } identity https { base sn:transport; description "HTTPS transport for notifications."; } Is this intentional? But the example in appendix A.1 of udp-notif (https://datatracker.ietf.org/doc/html/draft-ietf-netconf-udp-notif-14#appendix-A.1) shows some (IMO invalid) configuration for encoding, which makes me wonder this might be something that is overlooked by folks. Am I missing something? Best Regards, Qiufang
- [netconf] transport and encodings for configured … maqiufang (A)
- [netconf] Re: transport and encodings for configu… Andy Bierman
- [netconf] Re: transport and encodings for configu… Kent Watsen
- [netconf] Re: transport and encodings for configu… Andy Bierman
- [netconf] Re: transport and encodings for configu… maqiufang (A)
- [netconf] Re: transport and encodings for configu… maqiufang (A)
- [netconf] Re: transport and encodings for configu… Andy Bierman
- [netconf] Re: transport and encodings for configu… Kent Watsen
- [netconf] Re: transport and encodings for configu… Andy Bierman
- [netconf] Re: transport and encodings for configu… Kent Watsen
- [netconf] Re: transport and encodings for configu… Andy Bierman
- [netconf] Re: transport and encodings for configu… Andy Bierman
- [netconf] Re: transport and encodings for configu… Alex Huang Feng
- [netconf] Re: transport and encodings for configu… Thomas.Graf