[netconf] Re: transport and encodings for configured subscriptions

Andy Bierman <andy@yumaworks.com> Fri, 09 August 2024 16:06 UTC

Return-Path: <andy@yumaworks.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 CDD9AC14F6A9 for <netconf@ietfa.amsl.com>; Fri, 9 Aug 2024 09:06:58 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.106
X-Spam-Level:
X-Spam-Status: No, score=-2.106 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=yumaworks.com
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 6ugvr_-9ahkT for <netconf@ietfa.amsl.com>; Fri, 9 Aug 2024 09:06:54 -0700 (PDT)
Received: from mail-pg1-x531.google.com (mail-pg1-x531.google.com [IPv6:2607:f8b0:4864:20::531]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 79813C14F6A5 for <netconf@ietf.org>; Fri, 9 Aug 2024 09:06:54 -0700 (PDT)
Received: by mail-pg1-x531.google.com with SMTP id 41be03b00d2f7-7a130ae7126so1577307a12.0 for <netconf@ietf.org>; Fri, 09 Aug 2024 09:06:54 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks.com; s=google; t=1723219614; x=1723824414; darn=ietf.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=p6a2CuUdH5jJc2wn/KrVyyrirsPLu178Yg/9kSPrCdw=; b=u0pPf8G4A+7bzdX1TAQHpmB0fnbSJGLOUVUdBiaPHyAiWToV92lcFIXYxSn1MNeWea QqoUC5bGnsGSxatsRDI5xq9R8//Af2tZZBFl9S5AurxFyG5/1dSJ6T+KXf9DBgmaS898 7B06Xf5gjfazAhD/T+bYHB7RGORbrVSBm1Sqn3S+QTbRjNXhiAXzKT7xolLZB8ur2qJe JjuoMRmdgaZb0R4lYYz34GtawY0Pd1p14KG72+aW7Y4pD7wgznU/4bDIb5MmQ0O63iGh 4bT/PWm01yuewviIysMGwCTKxw8KezWPVAHnd1lLfF/y454lURQ292DMZUQfp6LEJIJL phbw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723219614; x=1723824414; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=p6a2CuUdH5jJc2wn/KrVyyrirsPLu178Yg/9kSPrCdw=; b=I1SK/Z2QlIe9nkg0XcOdnPdgkKal1iw4yK9dZnQmYu0DDBCfcdrF49hk6Z6IlPnvrT FFbuHhxlepzSw5Ni44NaUV+1KSVXxopgt7oIoC1hLnds29T9fL7MFQwiFZS1gEL5pznl Zhr+ovEgH74f8xbSYuJ6lWQIhtMyfRMcxQz5xMe8WA/6dNAHkkppennqdftOcB+cAMCM +AVJ/yPmywEC71Mm4SthqIPebi59uqj30ws06GGONabswZbngLggz5YMMw53kmLZsVvf HSV1d01Evl7fV+JDWMi7GLrRhFWpmp4IrYXT8HsisgY+fxg2qJXodnFd1+2xqUSV1pOt t/IA==
X-Gm-Message-State: AOJu0YzhPOfTuCMhXpQwMBk1hoNjygguETNWvv5AoDrSFJXSxuAnh//D sBYF/deG5VrCM4fO9iCylsqi2KcRNPVq20+TnrkVql8LUHMPAfjlUXn3eUzn3UqCdPXs6WaMOs6 qKi3DRCKWYX05OBJm5qbGN8SsO9fnbT9ttQbB3UrRxyoWsUk+Vi8=
X-Google-Smtp-Source: AGHT+IFnjmD9d2SVq2sT/O9/vhS0m28GuLImHgAZVT1yebi2c/e7Xs9u5gZSV5caSLrwhsqg5sjKv30VEubz7ZUh/hU=
X-Received: by 2002:a17:90a:55ca:b0:2ca:8b71:21f4 with SMTP id 98e67ed59e1d1-2d1e7fdb4d2mr2406680a91.18.1723219613693; Fri, 09 Aug 2024 09:06:53 -0700 (PDT)
MIME-Version: 1.0
References: <1425bd7fc32446ceb22d01e255cc28fb@huawei.com>
In-Reply-To: <1425bd7fc32446ceb22d01e255cc28fb@huawei.com>
From: Andy Bierman <andy@yumaworks.com>
Date: Fri, 09 Aug 2024 09:06:42 -0700
Message-ID: <CABCOCHQnwpYG4LZ_=oUb1Cz5ZOm5f+iHSvy1nKzTvW1ZMP074g@mail.gmail.com>
To: "maqiufang (A)" <maqiufang1=40huawei.com@dmarc.ietf.org>
Content-Type: multipart/alternative; boundary="000000000000f1d8e3061f4254d3"
Message-ID-Hash: 5VDLD5SQFSTGHWBXE2EFBJKATLVQ75BL
X-Message-ID-Hash: 5VDLD5SQFSTGHWBXE2EFBJKATLVQ75BL
X-MailFrom: andy@yumaworks.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
CC: "netconf@ietf.org" <netconf@ietf.org>
X-Mailman-Version: 3.3.9rc4
Precedence: list
Subject: [netconf] Re: transport and encodings for configured subscriptions
List-Id: NETCONF WG list <netconf.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/e2ksCVlA-QPP67D0xeITx06ZpFw>
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>

On Thu, Aug 8, 2024 at 8:01 PM maqiufang (A) <maqiufang1=
40huawei.com@dmarc.ietf.org> wrote:

> 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?
>
>
>


no

I cannot find the thread, but I remember I raised an issue doubting that
these 2 leaves were ever correct.
The when-stmt looks wrong. Maybe it can just be removed or fixed by Errata





>
> Best Regards,
>
> Qiufang
>

Andy


> _______________________________________________
> netconf mailing list -- netconf@ietf.org
> To unsubscribe send an email to netconf-leave@ietf.org
>