[netmod] Re: Yang Scalability

"Robert Peschi (Nokia)" <robert.peschi@nokia.com> Fri, 26 July 2024 08:12 UTC

Return-Path: <robert.peschi@nokia.com>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 31D17C1D5306 for <netmod@ietfa.amsl.com>; Fri, 26 Jul 2024 01:12:41 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.255
X-Spam-Level:
X-Spam-Status: No, score=-2.255 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.148, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_NONE=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=nokia.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 jyPyEqlDW6v7 for <netmod@ietfa.amsl.com>; Fri, 26 Jul 2024 01:12:36 -0700 (PDT)
Received: from EUR03-VI1-obe.outbound.protection.outlook.com (mail-vi1eur03on2043.outbound.protection.outlook.com [40.107.103.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B757EC1D52E7 for <netmod@ietf.org>; Fri, 26 Jul 2024 01:12:36 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=YCKF3mfSIwKDN8YS9V65YsWbQi3DKuq+fwM1B4h9KJsDxixV6f4rLx1GCLeQ6mFEzISUID3h/N0Mr5GFQ3INYU17WXa/VxM2B1MjzKWbXz5MVMs3V/VaROZ4pRmXpyPczvcYGrFyEcf36bvm2kk/icOu5UIBM9SYcUMqGFPjHWM3PwcWMk//CMoe90Rd3U9G12NGG/2fLSA9hqJFAB0RMzANV7VQxJq7VTiAk1JoHId0iUs2fmhobwSC2ZBS0gRHdnukKKBW+XZfMBI3ZLKHFcHYBB9kF+SUE0DdTPqhs/IG7MtmCly3Qu4IHutfAW2rKBOSsybSv6183LHACS7SvA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=YdCz0RJRu/pJNlvFYuCRLi3PuqLKup1oTsg75o+gYpk=; b=iikqpVmAspTCGdeIna5QYMjcpvG0DPf4yv6GklzCgC32KQhXXwEgnhhLsX9J0zVkojXWa42OXwneyuAcGE+87iIhtTi5Ar6peGzWBZDQbzJm13VWIzDBpIoQUCm2EKG02fxCNjUA2Vl4PC3TU3IraR4EslRIb2xFt2tFPL3QANL/0YzWcgq+4yOimHzOoqCEMchTJtcb1Q7UabdLlUwyMe+m6k7RIIPB5shH5NlYKuKtPpQIIPO9EhrHlioJbngztgYfO1LgMpgunB+68OZ0boOxChElqUUqHyNbPXII7Nz/kmvF/pJDmRybN1ZOKeyHVUtTPDy10MVNhMd697JCSw==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nokia.com; dmarc=pass action=none header.from=nokia.com; dkim=pass header.d=nokia.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nokia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=YdCz0RJRu/pJNlvFYuCRLi3PuqLKup1oTsg75o+gYpk=; b=BK5MO7Qd5Oq8QHkkas6M6Rq/cL/JdLG8L7XFHAlSwBAjJPlbDuqeFucg7SOIVnfzu2XPilUbkhncsJroP/PSo8jV1yyczwL+/5sPQ07STfz6eAuxym2iZAGjYDI4ByqeafX1KdNRoJcjNHjK3dFq/YOudmmba9y5aEI/tjfR50LgAjnFEbLrPvMAx8c30EstHE7Exg94D4h8WKyyy6xxiME5Foc3nvi9u6p9LQLvEfiASph3t5c4SyKbctSxWV+kthdXABWf75dxuP4eQ235FzX9i9jFL/9CfAI8q19mEpdBM2jadsbbTxzm25TTZuLkezFeKeiTOSQv/6joOIgIDA==
Received: from VI1PR07MB10115.eurprd07.prod.outlook.com (2603:10a6:800:1de::9) by DU0PR07MB8993.eurprd07.prod.outlook.com (2603:10a6:10:40f::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.21; Fri, 26 Jul 2024 08:12:33 +0000
Received: from VI1PR07MB10115.eurprd07.prod.outlook.com ([fe80::19ca:7f7b:ad19:7726]) by VI1PR07MB10115.eurprd07.prod.outlook.com ([fe80::19ca:7f7b:ad19:7726%4]) with mapi id 15.20.7807.006; Fri, 26 Jul 2024 08:12:32 +0000
From: "Robert Peschi (Nokia)" <robert.peschi@nokia.com>
To: Carsten Bormann <cabo@tzi.org>
Thread-Topic: [netmod] Yang Scalability
Thread-Index: AQHa3p2fj1dwSG2s00eQ5m61JCzBDrIHgWSggABzOwCAAKyMAA==
Date: Fri, 26 Jul 2024 08:12:32 +0000
Message-ID: <VI1PR07MB101156E21078C99666ADCCC51E1B42@VI1PR07MB10115.eurprd07.prod.outlook.com>
References: <AS4PR07MB8411551211BE217ACE4D9EBF81A92@AS4PR07MB8411.eurprd07.prod.outlook.com> <850b8060a1fa4e04833ce09873aed2f3@huawei.com> <VI1PR07MB1011581B2C59AE3F91F8D9DF1E1AB2@VI1PR07MB10115.eurprd07.prod.outlook.com> <ZqIeNgrzsCLVX911@alice.eecs.jacobs-university.de> <VI1PR07MB10115CD06B34B8E7870D64809E1AB2@VI1PR07MB10115.eurprd07.prod.outlook.com> <B205ECAF-7537-4F78-9850-64C9789D81CE@tzi.org> <VI1PR07MB101154EFE521F296E0D156FE0E1AB2@VI1PR07MB10115.eurprd07.prod.outlook.com> <95992D74-5319-4C61-AD42-58A8B3DF9E74@tzi.org>
In-Reply-To: <95992D74-5319-4C61-AD42-58A8B3DF9E74@tzi.org>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nokia.com;
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: VI1PR07MB10115:EE_|DU0PR07MB8993:EE_
x-ms-office365-filtering-correlation-id: 609b1a6e-683f-4ffb-5c51-08dcad4ab309
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;ARA:13230040|366016|376014|1800799024|38070700018;
x-microsoft-antispam-message-info: J2IX9OFd9jl7PfF+b62+Zi+omgCJIYa1gdl6fXRQs6CZxGf0dBrvlQVjhJs7eKkZ7nx2jZ4UUnaVF+7/DE36t5a2Ii0qvehFIsGxG4y5JBtgqedUzXyurLOqycWY+wuHLFqwLhE08JDUD7T/9EKHtvSYzizvaVfJXpPVH+O5ygcKgemm+vEnUNCWS0yc4TpyVyWDt+tI8R+li62V8gQcVf29M3Hx/VIgjPEPcxTixDahYg7R9G0CmG6c8b3RF/9V2GYzer3nYjdJsAt3VTZZwI4J/XVwrBYuxW9nkknHQo4yJtiZcL1yIcfLCeYQsOSB8+kpWnf7SyOF0vT6yGUjqVAPo9RsQqdZTIxghucBfhBJtYhcm3urH2OCavu6doqweba6QP/vmrUvOdQYb7Jg2QEIwJ9YRRM8TLe1dSqtkboSBf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phQQTZS7uHPQh48TDremnPePO52n7oRy4cJ1L+jxZYeuKLSVIRLOXlTR+Eiu+hw/rSCRUrnAW2HoJJMm8ixTcu3QKI+nP+4yIyn7b+fU2xcRi5wGir39vO9WrCoP4JR43xAZWXx7M9lCsPzk5IyLLWdCcekv47q7rG5sM8r6YV+v6swec7Bm1JroShT0oo4/mMYR0u+kplCT2c+5N9kYOqQylCiih6/eCWyQFi56lY46rjQ7ZnY03LuDAdYTlJn60zROsWTqxa3UICNZ3SRjri9BjoMJlxOvkeB0BSoSSxX0jjOBeyFT8RCuLKkJ/zUQtdzuty4gOyLcB44QV36RiuHNyB49lIH0hhZyQ8xSJaaTUyBFWcOyYsHYX2sxV/IxwwIlzm8tRPa4nCOtQ0I+jqo8Gs3n6Jp4l1lAjIpIHrTxELYPI90DEJepyVvQ4bQWat4NfYI6Licp5dKoyoyTSgx9kDV169Mk7l+Hlmq/qhdVj6q4T6qhe6yuSDC1pPQhuP/bxtJhfLB0M7rKYXYhz3xL6jj4GkAGE2e7pNXU0hwiesUr5CueglkUZc3hpr/2BjHpFY6Kwjo/dgw0HZuGEHtutPrPgaTkaMuUHdvCkKhPmDzG1fGTsDKb75vH4THqbvzyG71CFLeuZTM1hb2lNu/qPcuQ2JDY1j5rrViQosYF4n4emFSSWzrc2Pt+I
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: nokia.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: VI1PR07MB10115.eurprd07.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 609b1a6e-683f-4ffb-5c51-08dcad4ab309
X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Jul 2024 08:12:32.2478 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 5d471751-9675-428d-917b-70f44f9630b0
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: 5/dw045R+Ybd/c2OazYQwoRUfNH6oUVnFWz8Gna+8Trb7VoW+lo0GSgz04pegE8kR4H2K9r1/qDnwZIawS46Gw==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR07MB8993
Message-ID-Hash: SVCRLHZZTJLMFKU7RWCSB4VKYZC7SWH2
X-Message-ID-Hash: SVCRLHZZTJLMFKU7RWCSB4VKYZC7SWH2
X-MailFrom: robert.peschi@nokia.com
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-netmod.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: Jürgen Schönwälder <jschoenwaelder@constructor.university>, Italo Busi <Italo.Busi@huawei.com>, "netmod@ietf.org" <netmod@ietf.org>
X-Mailman-Version: 3.3.9rc4
Precedence: list
Subject: [netmod] Re: Yang Scalability
List-Id: NETMOD WG list <netmod.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/edAbRCZ2halKV3NW5rHlZE74y6g>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netmod>
List-Help: <mailto:netmod-request@ietf.org?subject=help>
List-Owner: <mailto:netmod-owner@ietf.org>
List-Post: <mailto:netmod@ietf.org>
List-Subscribe: <mailto:netmod-join@ietf.org>
List-Unsubscribe: <mailto:netmod-leave@ietf.org>

Hi Carsten,

>  So a mental model of “default-value + merge-patch where needed” (RFC 7396) would work?
I like the term "mental model" that you coined !
I am not sure which environment RFC7396 is intended for, but indeed this quote from RFC 7396 is exactly what I meant:

"Recipients of a merge patch document 
     RP>  i.e., the function inside the device responsible for generating
     RP>  the config data nodes for a particular instance
determine the exact set of changes being requested by comparing the content of the provided patch 
     RP>  i.e., the few data nodes specific to a particular instance (cf "dark blue dots" in slide 12)
against the current content of the target document.
     RP> i.e., the copy of the template (cf "green dots" in slide 12)
if the provided merge patch contains members that do not appear
within the target, those members are added.  If the target does
contain the member, the value is replaced."

NB: the "null" value in the patch further mentioned in RFC7396 is something that does not fit in the proposed template mechanism, though, because the template (green) and instance (blue) use the same data nodes and in a YANG model, there is no data node value that means "remove the data node itself")

Best regards,
Robert

-----Original Message-----
From: Carsten Bormann <cabo@tzi.org> 
Sent: Thursday, July 25, 2024 11:24 PM
To: Robert Peschi (Nokia) <robert.peschi@nokia.com>
Cc: Jürgen Schönwälder <jschoenwaelder@constructor.university>; Italo Busi <Italo.Busi@huawei.com>; netmod@ietf.org
Subject: Re: [netmod] Yang Scalability

[You don't often get email from cabo@tzi.org. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]

CAUTION: This is an external email. Please be very careful when clicking links or opening attachments. See the URL nok.it/ext for additional information.



On 25. Jul 2024, at 16:59, Robert Peschi (Nokia) <robert.peschi@nokia.com> wrote:
>
> The actual data nodes of an instance to be configured are internally generated from a “photocopy” of the data nodes of an original configuration (template, green dots on slide 12) that is customized here and there (cf blue dots on slide 12) for this specific instance. The gain in the running data store size is that
>     • only one copy of the many green dots of one (or say, a few) templates need to be persistently configured and stored on the device
>     • only a few blue dots need to be persistently configured and stored on the device, different for each instance (many ones)

So a mental model of “default-value + merge-patch where needed” (RFC 7396) would work?

Grüße, Carsten