[core] Re: Coreconf Notifications

Henk Birkholz <henk.birkholz@ietf.contact> Fri, 19 July 2024 20:09 UTC

Return-Path: <henk.birkholz@ietf.contact>
X-Original-To: core@ietfa.amsl.com
Delivered-To: core@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 0D7F6C14CF13 for <core@ietfa.amsl.com>; Fri, 19 Jul 2024 13:09:18 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.161
X-Spam-Level:
X-Spam-Status: No, score=-3.161 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, NICE_REPLY_A=-0.355, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=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=ietf.contact
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 VARbh3w_0clY for <core@ietfa.amsl.com>; Fri, 19 Jul 2024 13:09:14 -0700 (PDT)
Received: from smtp04-ext3.udag.de (smtp04-ext3.udag.de [62.146.106.41]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4090AC14E515 for <core@ietf.org>; Fri, 19 Jul 2024 13:09:13 -0700 (PDT)
Received: from [10.10.2.30] (unknown [184.68.26.42]) by smtp04-ext3.udag.de (Postfix) with ESMTPA id 40899E00AC for <core@ietf.org>; Fri, 19 Jul 2024 22:09:09 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ietf.contact; s=uddkim-202310; t=1721419750; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mud+L8hMZOx+AYpwyCdDbcWRoQEkVJ8U9MBZzBTqK4o=; b=mC+93ia8233wFUEb0CxB/jqrkop9RKD7ZA8scmvpfjIkU3JbXKUbAgB3ZdRTgI6zKTwnBd JB+0Zx20Ukyii8LUryMoa86tSr11WxX7OPqV5LqRHBwGkPIpax18POI6ssn1ImZHOnKVU2 BznJFJzhnAfQxLwWJO+HH75w+TmBFfiD1YXvydugA48ZXjFJOIB8GFC5tN5EaAUpq5cXfQ vX+jTp3djO+otFJPB9GoZcKZJBCHIk4c6FOJQ+OAWeY35Jg0KNtOCdSKKSBcUVZYqh/0aV Z38OA7VkQA7IlgQnyWADolm3ycfzOolz5weGBQAQ3lfFgjSxi4uAatuBxYbQHw==
Message-ID: <21fb394e-0045-58f0-2edf-f46f4e2c2d98@ietf.contact>
Date: Fri, 19 Jul 2024 22:09:07 +0200
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0
Content-Language: en-US
To: core@ietf.org
References: <E2DFFA8E-9766-4CB4-BCAA-6897402B8FB2@insa-lyon.fr>
From: Henk Birkholz <henk.birkholz@ietf.contact>
In-Reply-To: <E2DFFA8E-9766-4CB4-BCAA-6897402B8FB2@insa-lyon.fr>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 8bit
Authentication-Results: smtp04-ext3.udag.de; auth=pass smtp.auth=henk.birkholz@ietf.contact smtp.mailfrom=henk.birkholz@ietf.contact
Message-ID-Hash: B4GDXXZYSNXQMM2KLLCECB77GGCPW6NU
X-Message-ID-Hash: B4GDXXZYSNXQMM2KLLCECB77GGCPW6NU
X-MailFrom: henk.birkholz@ietf.contact
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-core.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: [core] Re: Coreconf Notifications
List-Id: "Constrained RESTful Environments (CoRE) Working Group list" <core.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/bPHOMM3qumoYbO_UFdaKTcfLhxQ>
List-Archive: <https://mailarchive.ietf.org/arch/browse/core>
List-Help: <mailto:core-request@ietf.org?subject=help>
List-Owner: <mailto:core-owner@ietf.org>
List-Post: <mailto:core@ietf.org>
List-Subscribe: <mailto:core-join@ietf.org>
List-Unsubscribe: <mailto:core-leave@ietf.org>

Dear Alex,

we've pondering various option to realize a lightweight subscription to 
SIDs years ago, but CORECONF and CBOR-YANG still had to form. I'll be at 
the Hackathon tomorrow and we can chat.


Viele Grüße,

Henk

On 18.07.24 17:56, Alex Huang Feng wrote:
> Dear authors and CORE WG,
> 
> I have some questions regarding how YANG notifications are encoded in CBOR.
> 
> I am co-authoring draft-ahuang-netconf-notif-yang-05 where we are 
> defining how NETCONF notifications are encoded in XML, JSON and CBOR.
> This definition is not explicit in JSON (RFC7951).
> 
> Reading the YANG-CBOR (RFC9254) specification, the notifications are 
> encoded as a “container-like” instance. This is rather a different 
> approach from XML (RFC7950) and JSON (RFC7951) which to my understanding 
> a leaf “eventTime” needs to be present in the notification as defined in 
> RFC5277.
> I am wondering why YANG-CBOR defined YANG notifications differently. I 
> don’t follow this WG closely but would love to hear the reasons which 
> led to the wording in RFC9254. (Or if more consistency with XML and JSON 
> is expected)
> 
> For CORECONF, reading 
> https://datatracker.ietf.org/doc/html/draft-ietf-core-comi-17#name-notify-examples <https://datatracker.ietf.org/doc/html/draft-ietf-core-comi-17#name-notify-examples>, the notifications are also defined without the leaf defined in RFC5277 but still references this RFC.
> 
> We plan to use CBOR encoding with YANG-Push (RFC8641) to reduce the size 
> of the YANG-defined messages between the NETCONF server and client.
> In 
> https://datatracker.ietf.org/doc/html/draft-ahuang-netconf-notif-yang-05#name-cbor-structure <https://datatracker.ietf.org/doc/html/draft-ahuang-netconf-notif-yang-05#name-cbor-structure> we define how we expect the CBOR message to be encoded.
> Having a similar approach to encode YANG notifications between JSON and 
> CBOR ease the development of some open-source projects, such as the 
> integration of YANG in the Kafka message broker.
> Here some references of such integration:
> - 
> https://datatracker.ietf.org/doc/html/draft-ietf-nmop-yang-message-broker-integration-03 <https://datatracker.ietf.org/doc/html/draft-ietf-nmop-yang-message-broker-integration-03>
> - 
> https://github.com/network-analytics/draft-daisy-kafka-yang-integration/blob/main/schema-registry-yangkit-integration-02.pdf <https://github.com/network-analytics/draft-daisy-kafka-yang-integration/blob/main/schema-registry-yangkit-integration-02.pdf>
> 
> Note also that we request a .sid file for YANG-SIDs for compressed CBOR 
> messages in 
> https://datatracker.ietf.org/doc/html/draft-ahuang-netconf-notif-yang-05#appendix-A <https://datatracker.ietf.org/doc/html/draft-ahuang-netconf-notif-yang-05#appendix-A>.
> 
> We will be onsite in Vancouver, so happy to have a live discussion 
> regarding these encoding mismatches.
> 
> I think the integration of YANG and CBOR into Kafka might also be of 
> interest to the WG.
> Feel free to ping me back to have a discussion during the IETF week. We 
> will also be present at the Hackathon Saturday and Sunday.
> 
> Regards,
> Alex
> 
> 
> 
> 
> 
> 
> 
> _______________________________________________
> core mailing list -- core@ietf.org
> To unsubscribe send an email to core-leave@ietf.org