[netmod] Re: Yang Scalability

"Robert Peschi (Nokia)" <robert.peschi@nokia.com> Fri, 26 July 2024 13:50 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 1ABA4C1840F7 for <netmod@ietfa.amsl.com>; Fri, 26 Jul 2024 06:50:14 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.255
X-Spam-Level:
X-Spam-Status: No, score=-7.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_HI=-5, 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 3mCyMYwoGUsq for <netmod@ietfa.amsl.com>; Fri, 26 Jul 2024 06:50:09 -0700 (PDT)
Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2084.outbound.protection.outlook.com [40.107.105.84]) (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 8B3C6C18DB86 for <netmod@ietf.org>; Fri, 26 Jul 2024 06:50:09 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=xfMuW3AMW7w3hlaxY5E5bqEXl9YGhLETt0MwwKSfhZ6ztN3JUEjGhQYH6xXnFy2eJoezsTRuzDEWmxpXeZWQxp0sYFtSh528N7MuvWGnCE57xoZPUlqupN7/vQFE8V44sRXx5e+omJ5g0fFVfbNkHYg4o0L/G/QxkIbJBFWlvb/HbpKJULJFaBKU1108SsVKWPzSOkMzNi1V3sZhNA9w0VRTXOTyDkc+IFHi44vGiB2ILc9D4neBtys4RvGMs8t6Eqi/WliiUM2OC2MOCDNnr8EsRNh1gVBOqZzrBJyXC18lfASp/WcUV5bv/xrIkCS/G5NSpt2e3GW1h/xf6MgToQ==
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=zNl4kEmfj2KeeOUB/Qp/bySAGfZnZzNCFBBWtkpLz6Q=; b=trp7K3kvKaDai/HO4IYk//e3Le7xEj/jVgK4L0Z6WsGAY+Rz+ITgKXpxwxhAkKV+qFRMdYOYm8kMfKRuyIk1XByLU0jMp3US6NOy68m4CjPEb0sFaeN7IavK9DhHOJKwdJj4GChKC6DGmyWQnQx7JE1xtAypAOUTEO7CNlimHjGCEKpY/ub8h3KiHu1g8mgwzZ7QnZRIPnnBpV6PuBMiL5yc91y7AEZAeQn2J2NiUXCVIyyZQIs41Mw7VcHxhSK/ilvmaJtmY7t3c+mLcCQSxkbsxzfRB1c9zmqhHZhEU98xU7d4sz35KZUFNVstWWKLHkHASJanNhM9yBNPow30fA==
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=zNl4kEmfj2KeeOUB/Qp/bySAGfZnZzNCFBBWtkpLz6Q=; b=Kzzcn32cRyeEehmuPm+dcPw+igt+qaoAUffKrl0MyIRExeAw1jEccU0ErA4dtHQL0ErusSyL6ov62ldeOPfBAUMm0xKPyvDHY35oTfIhEdE1L8dyv+LQ1HSz3TnEfXaXOlCElFazrbjsGwx+VEYuxnIzRBZy+mBF4s/gK0Kk1TRdM8Pqk2NF3t6CRTl7MOWOWnL+G0BSiSl08v072gNXAlAu2GsutOlBjHn32qA/71gSw1CPuilexvrHzV8bqSnQYRPZ8SNqu2pFl+GVF2jONfZ35uuiw5ooEF+e3r+Weqlsf0XBKIHv7sT+GcIvFIL1MBo0kR/ArLwAEhib3W6hEA==
Received: from VI1PR07MB10115.eurprd07.prod.outlook.com (2603:10a6:800:1de::9) by PR3PR07MB6843.eurprd07.prod.outlook.com (2603:10a6:102:73::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.22; Fri, 26 Jul 2024 13:50:06 +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 13:50:06 +0000
From: "Robert Peschi (Nokia)" <robert.peschi@nokia.com>
To: Carsten Bormann <cabo@tzi.org>
Thread-Topic: [netmod] Yang Scalability
Thread-Index: AQHa3p2fj1dwSG2s00eQ5m61JCzBDrIHgWSggABzOwCAAKyMAIAAYx8A
Date: Fri, 26 Jul 2024 13:50:06 +0000
Message-ID: <VI1PR07MB101155B9558355586AE059947E1B42@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> <VI1PR07MB101156E21078C99666ADCCC51E1B42@VI1PR07MB10115.eurprd07.prod.outlook.com>
In-Reply-To: <VI1PR07MB101156E21078C99666ADCCC51E1B42@VI1PR07MB10115.eurprd07.prod.outlook.com>
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_|PR3PR07MB6843:EE_
x-ms-office365-filtering-correlation-id: fcf2c0bb-d6a1-4e23-86f7-08dcad79db51
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;ARA:13230040|376014|366016|1800799024|38070700018;
x-microsoft-antispam-message-info: uBsaHrikQtYO1GWPNWUnrjdZZPUR9PE1jO3hqfdwfe50xLX2AteZ+hctofVmLenDUIvDHAgH/CDzl8j78OG9tcanLW0jaF4jTvq749o9gWGCyUG81aN02kn2MhlxEVJZQzXa2x4LhFeA91+1CE1kZogk1ZV/EX61ujO5pPBV2eigy+a4Tw/7kb4qrkl+B6h5LVYnV30Z31qn5Te1UAQX7Xz3AfAzKrUPOKvtABiVC50NUkiECz56BfczlcIu79etwj548RU2TdlQKFgGljpgy+GsmVr7VgFQ613AXeZQbu40LKFdF6c8imxz3L6tzAANmkT8btnHS5L/OoirglUT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CL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR07MB10115.eurprd07.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(366016)(1800799024)(38070700018);DIR:OUT;SFP:1101;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: CIhG8gCg3kWynCfXjSe+LiY56oOdi2tXy+dauna4rNhdwae6B/rzFS6ZE+e1YSpE0/qCh1WnbHrKZ3xuU4kipWRXHzWA10BkA8cnTC3qWkD63lC4zTsdHYbskuS6DYUmcfoG5CksUmwahqgRFKkpBxWA5YTKqgzukqhIZzCJyufcunfuvtS1swL9xorD1hMNXa0N4T7oXQC99MjZtnNh0BkbKLxY7chDPbPJJ1cUzcg3BonsrntrnBo3So0B3OSnOR/AXRZwKVJZiumklZc8gzY6Ofro9wQjRngML5qGPWlBft6NmHHC++E4mX52VrbB0ravhaE0qxL4cQWhOt0viCCfd1FE0WixCxj9dozPnv8oWPEDIeejJ+8DMfO9+Mpwv+FMl8uB/8N2OOyC0SP4KkgmTnznE0sfukVBRkHAzun9WE5FbBgxXsbidhtNkbGxEE/XkTURaQhhiKaI7GEGdY2eySRY31siWOZEppUw0GoPrG71+2xiBfEkkdstpzG52gofttzlHM+4iNf86jURDYoiMdXalkMTtE+P5Ehd/kGDNMR87uIblggj42iJi4lK3fRoQBMOiVcxPdY+PM1G9pDRM5wtWkO+ckGZxEENCMSFq/psLAwYgFQT4hbTt7Od7z2UXmG+6E8MrtIt5gnp763A/xAIEvRDyu8FB5CoXuTtyC/XaQ8/hP34YqttIhc5KV9PYrQ6f9FQkcsyhznplWdoKTOV/xuZ42NDK++WggCtfcQH3t4XndSSm7qf/ZbZr68Mw4EQ5panXAuQCWP7v08Gk8qUuuk4Z6y3wJZZnFiTLOWu+7LRw4qn3FYYoPVfL871zIq902RZVNAe8SgUacZ2fveDYUOT0oVPtwO+AfkanixX1BF8bJNiNHQU27EH50xaM/8+sJkAi//A25JcbPz9+stgmrU+QqUilHpJ+E4JWkDlFSHHFjlQelc3s1oZr/RE2eroqF6kuXQVTykxkhRkN28e0KER4FH5/847CYzyPFHc8iit6QLjGY4PtZfK1S0fkn92crT7KyRlz6febJFpw3bni5PRNJH/blStc+m2sNGkK52h2v7aJyFvUZLHuo60ePi32B5009ZxYZUTvz0uryOCx3nloIpZbUR8K9NtTIfkAstlrNjNigoLBforT/FznvNBZxUuS6sFv8QWN1RJYpkgR13Xru+BnAQckFcBsPx1Uno2XnjgCzusdxzziuZROqUP3jfz2Pa5/bo+XdF+uS0Ak6OON6IY7j0mz1m5EAlk1TK7B6HYgMMXd+dc8fwozDLCm6hJsVboZTCyAzS2+4EhWbbdu20awYX/abB9wVw2U2XJBcqQ5Jg6vLuMmwUxJ3nPxmpCuR0sgwa3x5rKWgG51Eoh7LEUCIxJ49AfKRf+RKAcdwJPx+hRMqONsMOxCBbqHiQREuoeWkFlFYTa8KcYdOe95g2u75tlHK682Zvt95bns3Tew18rhrZGM+vTT8vD3TbgWg81t9n/EJvQpOMl1nvk8iGdbByctpmqoMLy7EIu03S5UmQO8G2HFWajWlJpCpbT42eXdVnrTGIIySoXX9gLMidVHazPpzmRIgbfxuDxA3eT+nNV9QtPf7jEn8JuglgTbRpHM18vEPwE2BkmOI8jOw85U/Vei+CocXR73utqNXtjcPJol8lx
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: fcf2c0bb-d6a1-4e23-86f7-08dcad79db51
X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Jul 2024 13:50:06.1593 (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: m8VVspCtBE6VYS+VIsUifIgIwXVOV6t3m6ZI+43mVmur+LW2AqsmSGGmazcgrRKsPGlUI2jZfNFTN+AyhXnjWw==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3PR07MB6843
Message-ID-Hash: U24G3YID6JRKU5SPPFKOJHGRL4RYSR6B
X-Message-ID-Hash: U24G3YID6JRKU5SPPFKOJHGRL4RYSR6B
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/fm5qGYa0xSo3nBNOxJaMoXGOR-I>
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>

Not sure what happened with the messed'd up formatting. Resending with some more  <CR><RET>'s in between lines...
Sorry for the confusion.
Robert

This is the intended post:

***********************
"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")
*********************

-----Original Message-----
From: Robert Peschi (Nokia) 
Sent: Friday, July 26, 2024 10:13 AM
To: Carsten Bormann <cabo@tzi.org>
Cc: Jürgen Schönwälder <jschoenwaelder@constructor.university>; Italo Busi <Italo.Busi@huawei.com>; netmod@ietf.org
Subject: RE: [netmod] Yang Scalability

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