[netmod] Re: Yang Scalability

"Robert Peschi (Nokia)" <robert.peschi@nokia.com> Thu, 25 July 2024 08:01 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 7E153C16A128; Thu, 25 Jul 2024 01:01:35 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.253
X-Spam-Level:
X-Spam-Status: No, score=-2.253 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, HTML_MESSAGE=0.001, 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_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=unavailable 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 WvntoygJmP4C; Thu, 25 Jul 2024 01:01:30 -0700 (PDT)
Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2040.outbound.protection.outlook.com [40.107.20.40]) (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 8D57FC18DB9B; Thu, 25 Jul 2024 01:01:30 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=J5/vRxl5L+tCjq6lRcJ8WfuOtwFV9nDeVtTg+N3El/gNX2VcMnSyxMhDGZJWBCQLGKtCkO1gIB7E3Tc6O63mFTN+p6aVZ/SNIbzDDg3wfXHLx/1/mphE12Bnn0QfbXnDFJedPj2gC8Ha9RJbH+dWCvF57zd2cGwgPFn0KgrNzup3d+G/ujYzXzASJ7PaiHwFf5QSLPF1w1d60zeHXNvTLhx7ymsEqHvD9jirj70Fbba4wBaDgy+YYvG3ciSsqAicowDIQkhGdnhNEcgDJKy487/ygdl8ZmOHaTU1GM6lYAyhcl3c9Y3swtOx7yxuFNfaNlWJSSCuNuvGjlxD9m+4sg==
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=9UJn2pqN9ABmMD7nwpyOiI2vt+HKlsY4rriURwRJzfM=; b=q51OwFDBNcTUnR5JN/lsa4VSWuCoCw4w/Xq7m+TPYzU1G83YjIvnkb1d6A9zwU3P06xxLzClXO29i+szp9z6IBtiq/KdHWa3G0WFBj2b7hFMri6WrpKV7as4Nb38WH7ZvgwhSXEKHQnpGgIaJ67htdos6LbivlBFfMKoazX7cDgSpcLiaa8SP3Tcm0YYm79JBbbixdefZmBykF5Medl9XORSJife7RLeofoww3xV0aw1p9lYFQor8v5Fr95K28F4sNBO0vNiELAodn4U2AYOf76GY+s6E3jFll6nw6MxPlMEzlhzXRwUQWz+wrHkRDmMG8eBdVge/XEblKCMR22MQw==
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=9UJn2pqN9ABmMD7nwpyOiI2vt+HKlsY4rriURwRJzfM=; b=hA3fIkYtYBSYFk8kWR7jWWnl6tcITIA8N9vx/TR6Ed/ajoNMZ8biKqRdIC+gC4lKyl/xhy7Tj0bOtsKa5i2B95Ko9LSOfX1WSpuvj9StLti972sHzqs3HFJFbba4AiRUOAbV7I3ohbdJ1I1QdbPQ1FaLg0mGL7vbUwUIizoLwUQRZkIyXAkuD7zVoGbCsAs1yJKXfQGm7eK1+bhDKg1MviAlu1sinm75DsOZrXPXO1aeQf5rbpgs6gQjuKbMdsYuhm34bFohpjbTXULtasISbrlmotyHKzPWnTjXXBzH5Ub3ZbmMrP0LJ2PSQSASo3ZG193rp5DUtxcxR3Drm3RRSg==
Received: from VI1PR07MB10115.eurprd07.prod.outlook.com (2603:10a6:800:1de::9) by DB9PR07MB10098.eurprd07.prod.outlook.com (2603:10a6:10:4cb::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.19; Thu, 25 Jul 2024 08:01:27 +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; Thu, 25 Jul 2024 08:01:27 +0000
From: "Robert Peschi (Nokia)" <robert.peschi@nokia.com>
To: Italo Busi <Italo.Busi=40huawei.com@dmarc.ietf.org>, "netmod@ietf.org" <netmod@ietf.org>
Thread-Topic: Yang Scalability
Thread-Index: Adrc2Wg3jNtQ1tF7RRKseYVve/FgFABR9iDwABCpOjA=
Date: Thu, 25 Jul 2024 08:01:27 +0000
Message-ID: <VI1PR07MB1011581B2C59AE3F91F8D9DF1E1AB2@VI1PR07MB10115.eurprd07.prod.outlook.com>
References: <AS4PR07MB8411551211BE217ACE4D9EBF81A92@AS4PR07MB8411.eurprd07.prod.outlook.com> <850b8060a1fa4e04833ce09873aed2f3@huawei.com>
In-Reply-To: <850b8060a1fa4e04833ce09873aed2f3@huawei.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_|DB9PR07MB10098:EE_
x-ms-office365-filtering-correlation-id: 499c1d8b-625d-419e-b9ee-08dcac7ffc30
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;ARA:13230040|376014|1800799024|366016|38070700018;
x-microsoft-antispam-message-info: cT7Cgci3LwjD5lcqMJ6X5IBqSZU6TRzVS/XKqithQsKolihp4pb6FMrTJFg4tEsunUtWfyPJcsI0NZw/dIF4oc9qHpD4BDxkw0fTZdopvPguDIFMbrGiJ1jLGgQII5AU8gZ1Is2RteC7KWkPDcHxJLbx20765k1tEbggpueuKshNM/BCxj9dAFc7vo4Yjore6jWlHqko2Cov0zXbZVyJUSVIW+cZjnCEZEDRn0g2wp57t/8yCNQOk7c5B/KFKYBpYGVhMAlHXaae6ujFlslz22UE3bGERRxcSo2GLUXw+LzhWcXJj3cLWu+ZY1+PbdbVZPCrn15PAhbhw0aLz6trTFItez9N2lW9Qy4GRb9UoERtMcu5jwnIkEcF1OymDy26sIv/n1Wt5N8G1A3zmGQKmHx7zqLN5ddoZ4fz5ZEIE5DHh+rp3Qfig0dN3D4O4pmvbGBR4pJN4DfzFomdAwb2Nu2e9zu9Gk8IQef+a0VPtgMb4OXgYQJowVeqAnHU21tLZrwf70NcLNpYmmpqDIqIReueql0vLgMYp1Bx/m+3zcXI9aVJf4h7Lxo2cQCD1ChjVZCpk/5Q6MFQOMoQQZJl0EHHYBNrAO+RpF5DWquLLAR/jr1OzuzqaGXhXXVt0ea3RVeiZzJ5FeRn82cKoRLo0ooCPEkI/s2PmVUop1+oBjB/lUEEsdCEI2HGxgJYnG6o/+ikisNYjMx50nRy2cUyy9ZxS09xY8UIaua50W71Tzod26aFGRZ3346OF8QHN0iTiZidC7So7JuBq5ePGi4V/Qvm2YoueFxb9exT7Ns/Rs2BDmTP69Qps+S4zKCyE/5felf51JU/TPne5KCnD2rY5/YG/p4vvRDWK3nycNsr/H9VTOnNIjZ3FvfmmdNnEaySfVdpqwYLhJbFzJDa9rWYzzqOMOyOJBS/S4vqma7lQ86NeajfOVS1AonmwutkPW1kta10/oAHW2coMZhUAcrQhfziRNDuZQdVJqfb5YjOjbeHXhTO5EUFmrMnNhv3+AEqOzc/NtSgWBAuTfkU/Fy1VkpHugzs5YxESe6e/hCK8FENqa6GjOj9LMp9/LBPPJnoGfWAWP2ErAEYLXRym76wAwh9f1jNa7IdQws1DVm4GED8fRKP8tZSoqPfrk/KWwANJcwVgyakPQhIgDbepc7vs2yskgb1gvllHFn+rQZ6cjVRf2t7dmHmBQg7hZgTJwUpVpcJOaLoGRsOUtq6xT9STNaBKH+Mmk8GVr3/gDRqIfKJH8+8WtXMvJCLyOpxuFnuW+Socw3+at0RkhV13owTV/fJQAaFOVKg1KG19rG467YWwguqfbX3jtfBA5qwlvUPWof5gusb4rn1v1RiDJbkkqeNMRxCw4o2EFZ0Haouook=
x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR07MB10115.eurprd07.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(1800799024)(366016)(38070700018);DIR:OUT;SFP:1101;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: w+2Q1svQiw1Sk+Rv2aXnIWkecNF/DkCjuNhjVe6oJL5c2iiu9l7oU4BGFtH8t0MwBO7W8GDl2xbRf6EE1smLYLpjNLSpVeWuXCo6/HlMG5VU7olqNHAZtKMYdJ17HF4Lprha3RO70+ZXUNxquqUszCwfBw6ACAhpL+JY6l28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4Xtb17UivPw44dZF2CYaV29O3RNwDstSJodC7M/NglEaOMJ6g1RnC8bCDCBc3UKsrV3ZiMe2Ax/a9EA9UPNctqHbItYe/LZfv5JkWi9xN4Sn6A3LxTKaRaW0WvwPK0Uf1dcsqewJ4yopeKYW//yNxbwoBYUAqipxVqx2pbAmTt6K3FCRHBiHvOT1NTWd4y9S6HE2pk1plr0HdGy2GOZMPpdFpTDWCHAq+Pqfp8iimM5bfyd7J5L2UeM10alLghwAgIvsktuAl++G1/Sx6VusyjfBku8okuA/JKtm67W/EpDDl4RM05Xi+xXcl51rwXSctsx3wrWAXzjQfUh7cA4LXVA0WzI1vonrim/WvTBLA9Cmm07P4KV15zfFvIQGXGLZNdcjWR9PsDK2QP5wJ0kQxPW4
Content-Type: multipart/alternative; boundary="_000_VI1PR07MB1011581B2C59AE3F91F8D9DF1E1AB2VI1PR07MB10115eu_"
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: 499c1d8b-625d-419e-b9ee-08dcac7ffc30
X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Jul 2024 08:01:27.1072 (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: rbSBd6aUqa7BnltLT60Ad3rh887NXmpkwZU9ZyFWbQ0XQvKw15XtsBx2g9mw2NHQbmgP55J2BwUR83vV3iyHFQ==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR07MB10098
Message-ID-Hash: 5U7JA2HCEZFWQZT4Y675ACKCL2457TJ4
X-Message-ID-Hash: 5U7JA2HCEZFWQZT4Y675ACKCL2457TJ4
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: "netconf@ietf.org" <netconf@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/EWH6Y0xKN5-ZpGWtHWQCyxQxfEI>
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>

Hello Italo,

Thanks for commenting.

> The idea of using templates to avoid repeating the same set of information on multiple
> instances look a good idea and valid in general, as a YANG modelling specific issue.
> IMHO we should further explore what needs to be changed in existing models to support templates.

Yes, it was indeed one of the key message of our presentation slides-120-netmod-10-bbf-liaison-on-management-at-scale-projects<https://datatracker.ietf.org/meeting/120/materials/slides-120-netmod-10-bbf-liaison-on-management-at-scale-projects> that templates would greatly improve the observed scalability issue. We plan to write an RFC to clarify the template mechanism and its implications.

Using templates also means transmitting much less data from the client to the device server, e.g. during a copy-config. Naturally, this would accordingly reduce protocol transmission penalty. It also greatly reduces the footprint of the running data store on the persistent memory of the device.

Best regards,
Robert

From: Italo Busi <Italo.Busi=40huawei.com@dmarc.ietf.org>
Sent: Thursday, July 25, 2024 1:49 AM
To: Deepak Rajaram (Nokia) <deepak.rajaram@nokia.com>; netmod@ietf.org
Cc: netconf@ietf.org
Subject: [netmod] Re: Yang Scalability

You don't often get email from italo.busi=40huawei.com@dmarc.ietf.org<mailto:italo.busi=40huawei.com@dmarc.ietf.org>. Learn why this is important<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.


Hi all,

I think that the YANG scalability issue should better addressed as a generic issue within the relevant IETF WGs

We have discovered similar issue also in IVY WG when working on the base network inventory model. You can see Appendix B of https://datatracker.ietf.org/doc/html/draft-ietf-ivy-network-inventory-yang and the conclusion was that this is mainly a protocol issue

I think that it would be also worthwhile understanding what issues are implementation specific (and outside the scope of standardization), a YANG modelling specific or a protocol specific.

The idea of using templates to avoid repeating the same set of information on multiple instances look a good idea and valid in general, as a YANG modelling specific issue. IMHO we should further explore what needs to be changed in existing models to support templates.

I have some concerns with the approach of re-defining the interface models under a different root. I think this would defeat one of the major advantages of re-using RFC8343 which is to be able to have a common model for managing all the interfaces of any system.

The scalability concerns here appears to me more a protocol specific issue (therefore I am cc-ing the Netconf WG for further feedbacks)

IMHO, there is a need to have a flexible definition of some filtering criteria (on the server side) when it is needed to retrieve only a limited set of instances on a list, pagination mechanisms (which is already a work in progress within Netconf WG) and/or a more efficient protocol encodings.

Italo

From: Deepak Rajaram (Nokia) <deepak.rajaram@nokia.com<mailto:deepak.rajaram@nokia.com>>
Sent: martedì 23 luglio 2024 01:52
To: netmod@ietf.org<mailto:netmod@ietf.org>
Subject: [netmod] Yang Scalability

Dear all

Thanks for the opportunity to present on yang scalability, this is a follow-up after having briefly introduced the real-life YANG scalability and performance challenges layed out in the Broadband Forum liaison.

I would encourage NETMOD participants to go over the slides in the meeting materials section of ietf-120/netmod. slides-120-netmod-10-bbf-liaison-on-management-at-scale-projects<https://datatracker.ietf.org/meeting/120/materials/slides-120-netmod-10-bbf-liaison-on-management-at-scale-projects>

Short summary:

Based on studies conducted by several Broadband Forum meeting participants, it is found that existing standard YANG implementations do not scale up to configurations that contain a very high number of interfaces; for instance in a Passive Optical Network, a single Optical Line Termination (OLT) can easily surpass 30.000 interfaces (i.e. a few per Optical Network Unit). This is a real challenge for network deployments. We are seeing scaling challenges in terms of datastore sizes and datastore manipulations (slow configuration, slow data retrieval).

While a PON network is taken as an example, it’s more than likely this scaling challenge will find its way to other parts of networks as products and industry evolves.

We believe this is something NETMOD needs to address with urgency.

As a result of the study, to address such scalability issues, few salient points were analyzed and translated into following requirements:


  1.  “Clustering” data nodes
  2.  Reducing datastore size by using shared profiles
  3.  Reducing datastore size by using “templates”

Existing ietf-schema-mount (RFC8528<https://www.rfc-editor.org/rfc/rfc8528>) and the new draft of full: embed<https://datatracker.ietf.org/doc/draft-jouqui-netmod-yang-full-include/> definitely prove to be useful for certain aspects, including reusability of modules as-is. Still, in their current form they fall short for overcoming the scalability issues, which we believe can be mitigated using “templates” and profiles.

I expect a more detailed ID will be brought forward explaining the proposal of templates/profiles. In anticipation of this ID, I would welcome the group to go over the slides for more details on the concepts. Any feedback/suggestions are more than welcome 😊

Regards
Deepak