OPSAWG B. Claise Internet-Draft J. Quilbeuf Intended status: Standards Track Huawei Expires: 9 January 2025 D. Lopez I. Dominguez Telefonica I+D T. Graf Swisscom 8 July 2024 A Data Manifest for Contextualized Telemetry Data draft-ietf-opsawg-collected-data-manifest-04 Abstract Network platforms use Model-driven Telemetry, and in particular YANG- Push, to continuously stream information, including both counters and state information. This document documents the metadata that ensure that the collected data can be interpreted correctly. This document specifies the Data Manifest, composed of two YANG data models (the Platform Manifest and the Data Collection Manifest). These YANG modules are specified at the network (i.e. controller) level to provide a model that encompasses several network platforms. The Data Manifest must be streamed and stored along with the data, up to the collection and analytics system in order to keep the collected data fully exploitable by the data scientists. Status of This Memo This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79. Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet- Drafts is at https://datatracker.ietf.org/drafts/current/. Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress." This Internet-Draft will expire on 9 January 2025. Claise, et al. Expires 9 January 2025 [Page 1] Internet-Draft Telemetry Data Manifest July 2024 Copyright Notice Copyright (c) 2024 IETF Trust and the persons identified as the document authors. All rights reserved. This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/ license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Revised BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Revised BSD License. Table of Contents 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 3 1.1. Use Cases . . . . . . . . . . . . . . . . . . . . . . . . 4 1.1.1. Network Analytics . . . . . . . . . . . . . . . . . . 4 1.1.2. New Device Onboarding . . . . . . . . . . . . . . . . 5 1.1.3. Data Mesh Principles in Networking . . . . . . . . . 5 2. Terminology . . . . . . . . . . . . . . . . . . . . . . . . . 6 3. Platform Manifest . . . . . . . . . . . . . . . . . . . . . . 6 3.1. Overview of the Model . . . . . . . . . . . . . . . . . . 6 3.2. YANG module ietf-platform-manifest . . . . . . . . . . . 8 4. Data Collection Manifest . . . . . . . . . . . . . . . . . . 12 4.1. Overview of the Model . . . . . . . . . . . . . . . . . . 12 4.2. YANG module ietf-data-collection-manifest-statistics . . 14 4.3. YANG module ietf-data-collection-manifest . . . . . . . . 15 5. Data Manifest and the Collected Data . . . . . . . . . . . . 18 5.1. Collecting the Data Manifest . . . . . . . . . . . . . . 18 5.2. Mapping Collected Data to the Data Manifest . . . . . . . 19 5.3. Operational Considerations . . . . . . . . . . . . . . . 20 6. Example . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 7. Security Considerations . . . . . . . . . . . . . . . . . . . 22 8. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 22 9. Contributors . . . . . . . . . . . . . . . . . . . . . . . . 22 10. Open Issues . . . . . . . . . . . . . . . . . . . . . . . . . 23 11. Normative References . . . . . . . . . . . . . . . . . . . . 23 12. Informative References . . . . . . . . . . . . . . . . . . . 24 Appendix A. title="Example of use based on MDT . . . . . . . . . 25 Appendix B. Changes between revisions . . . . . . . . . . . . . 28 Appendix C. Supporting files for generating YANG tree diagrams . . . . . . . . . . . . . . . . . . . . . . . . 30 C.1. Schema Mount Version for the Platform Manifest . . . . . 30 C.2. Schema Mount Version for the Platform Manifest . . . . . 37 Acknowledgements . . . . . . . . . . . . . . . . . . . . . . . . 45 Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . 45 Claise, et al. Expires 9 January 2025 [Page 2] Internet-Draft Telemetry Data Manifest July 2024 1. Introduction Network platforms use Model-driven Telemetry (MDT), and in particular YANG-Push [RFC8641], to continuously stream information, including both counters and state information. This document specifies what needs to be kept as metadata (i.e., the Data Manifest) to ensure that the collected data can still be interpreted correctly throughout the collection and network analytics toolchain. When streaming YANG-structured data with YANG-Push [RFC8641], there is a semantic definition in the corresponding YANG module definition. This is the semantic information for the collected data nodes: While this semantic is absolutely required to correctly decode and interpret the data, understanding the network platform and collection environment contexts information is equally important to interpret the data. This document proposes the Data Manifest, which is composed of two YANG data models, namely, the Platform Manifest and the Data Collection Manifest, in order to keep the collected data exploitable by the data scientists. The Platform Manifest contains information characterizing the platform streaming the telemetry information, while the the Data Collection Manifest contains the required information to characterize how and when the telemetry information was metered. The two proposed YANG modules in the Data Manifest do not expose many new information but rather define what should be exposed by a platform streaming or storing telemetry data. Some related YANG modules have been specified to retrieve the platform capabilities: * The IETF YANG Library [RFC8525]. * YANG Modules Describing Capabilities for Systems and Datastore Update Notifications [RFC9196] for the platform capabilities regarding the production and export of telemetry data. * [I-D.claise-netconf-metadata-for-collection], which is based on the previous draft to define the optimal settings to stream specific items (i.e., per path). These related YANG modules are important to discover the capabilities before applying the telemetry configuration (such as on-change). Some of their content is part of the context for the streamed data. Claise, et al. Expires 9 January 2025 [Page 3] Internet-Draft Telemetry Data Manifest July 2024 This documents covers only metadata about the collection context for the telemetry. The collected data is likely to be transformed into usable indicators for the network. The list of such transformation operation applied to the data is often called data lineage. Supplying the data lineage for the computed indicators is out of scope of this document. We first present the module for the Platform Manifest in Section 3 and then the module for the Data Collection Manifest in Section 4. The full Data Manifest is obtained by combining these two modules. We explain in Section 5 how the Data Manifest can be retrieved and how collected data is mapped to the Data Manifest. 1.1. Use Cases 1.1.1. Network Analytics Streamed information from network platforms is used for network analytics, incident detections, and in the end closed-loop automation. This streamed data can be stored in a database (sometimes called a big data lake) for further analysis. As an example, a database could store a time series representing the evolution of a specific counter collected from a network platform. When analyzing the data, the network operator/data scientist must understand the context information for these data: * This counter definition in the YANG model. * The network platform specific vendor, model, and OS. * The collection parameters. Characterizing the source used for producing the data (vendor, platform, and OS) is useful to complement the data. As an example, knowing the exact data source software specification might reveal a particularity in the observed data, explained by a specific bug, a specific bug fix, or simply a particular specific behavior. This is also necessary to ensure the reliability of the collected data. On top of that, in particular for YANG-Push [RFC8641], it is crucial to know the set of YANG modules supported by the platform, along with their deviations. In some cases, there might even be some backwards incompatible changes in native modules between one OS version to the next one. This information is captured by the proposed Platform Manifest. Claise, et al. Expires 9 January 2025 [Page 4] Internet-Draft Telemetry Data Manifest July 2024 From a collection parameters point of view, the data scientists analyzing the collected data must know that the counter was requested from the network platform as on-change or at specific cadence. Indeed, an on-change collection explains why there is a single value as opposed to a time series. In case of periodic collection, this exact cadence might not be observable in the time series. Indeed, this time series might report some values as 0 or might even omit some values. The reason for this behavior might be diverse: the network platform was under stress, with a too small observation period, compared to the minimum-observed-period [I-D.claise-netconf-metadata-for-collection]. Again, knowing the conditions under which the counter was collected and streamed (along with the platform details) help drawing the right conclusions. As an example, taking into account the value of 0 might lead to a wrong conclusion that the counter dropped to zero. This document specifies the Data Collection Manifest, which contains the required information to characterize how and when the telemetry information was metered. The goal of the current document is to define what needs to be kept as metadata (i.e., the Data Manifest) to ensure that the collected data can still be interpreted correctly. 1.1.2. New Device Onboarding When a new device is onboarded, operators must make sure that the new device streams data with YANG-Push, that the telemetry data is the right ones, that the data is correctly ingested in the collection system, and finally that the data can be analyzed (compared with other similar devices). For the last point, the Data Manifest, which must be linked to the data up to the collection and analytics system, contains all the relevant information. 1.1.3. Data Mesh Principles in Networking The concept behind the data mesh https://www.datamesh- architecture.com/ are: * Principle of Domain Ownership: Architecturally and organizationally align business, technology, and analytical data, following the line of responsibility. Here, the Data Mesh principles adopt the boundary of bounded context to individual data products where each domain is responsible for (and owns) its data and models. * Principle of Data as a Product: The “Domain” owners are responsible to provide the data in useful way (discoverable through a catalog, addressable with a permanent and unique address, understandable with well defined semantics, trustworthy Claise, et al. Expires 9 January 2025 [Page 5] Internet-Draft Telemetry Data Manifest July 2024 and truthful, self-describing for easy consumption, interoperable by supporting standards, secure, self-contained, etc.) and should treat consumers of that data as customers. It requires and relies on the “Domain Ownership” principle. * Principle of Self-serve Data Platform: This fosters the sharing of cross-domain data in order to create extra value. * Principle of Federated Computational Governance: Describes the operating model and approach to establishing global policies across a mesh of data products. The most relevant concept for this document is the "Data as a Product" principle. The Data Manifest fulfills this principle as the two YANG data models, Platform Manifest and the Data Collection Manifest, along with the data, provide all the necessary information in a self-describing way for easy consumption. 2. Terminology The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here. Data Manifest: all the necessary data required to interpret the telemetry information. Platform Manifest: part of the Data Manifest that completely characterizes the platform producing the telemetry information Data Collection Manifest: part of the Data Manifest that completely characterizes how and when the telemetry information was metered. 3. Platform Manifest 3.1. Overview of the Model Figure 1 contains the wanted YANG tree diagram [RFC8340] of the ietf- platform-manifest module. This diagram is not obtained by compiling the YANG module presented in Section 3.2, but rather by using the YANG Schema Mount [RFC8528] version presented in Appendix C.1. Indeed, the module relies on the Full Embed mechanism [I-D.jouqui-netmod-yang-full-include] which is not implemented yet. Claise, et al. Expires 9 January 2025 [Page 6] Internet-Draft Telemetry Data Manifest July 2024 module: ietf-platform-manifest +--ro platforms +--ro platform* [id] +--ro id string +--ro name? string +--ro vendor? string +--ro vendor-pen? uint32 +--ro software-version? string +--ro software-flavor? string +--ro os-version? string +--ro os-type? string +--mp yang-library +--ro yang-library/ | +--ro module-set* [name] | | +--ro name string | | +--ro module* [name] | | | +--ro name yang:yang-identifier | | | +--ro revision? revision-identifier | | | +--ro namespace inet:uri | | | +--ro location* inet:uri | | | +--ro submodule* [name] | | | | +--ro name yang:yang-identifier | | | | +--ro revision? revision-identifier | | | | +--ro location* inet:uri | | | +--ro feature* yang:yang-identifier | | | +--ro deviation* -> ../../module/name | | +--ro import-only-module* [name revision] | | +--ro name yang:yang-identifier | | +--ro revision union | | +--ro namespace inet:uri | | +--ro location* inet:uri | | +--ro submodule* [name] | | +--ro name yang:yang-identifier | | +--ro revision? revision-identifier | | +--ro location* inet:uri | +--ro schema* [name] | | +--ro name string | | +--ro module-set* -> ../../module-set/name | | +--ro deprecated-nodes-implemented? boolean | | +--ro obsolete-nodes-absent? boolean | +--ro datastore* [name] | | +--ro name ds:datastore-ref | | +--ro schema -> ../../schema/name | +--ro content-id string x--ro modules-state/ x--ro module-set-id string x--ro module* [name revision] x--ro name yang:yang-identifier Claise, et al. Expires 9 January 2025 [Page 7] Internet-Draft Telemetry Data Manifest July 2024 x--ro revision union x--ro schema? inet:uri x--ro namespace inet:uri x--ro feature* yang:yang-identifier x--ro deviation* [name revision] | x--ro name yang:yang-identifier | x--ro revision union x--ro conformance-type enumeration x--ro submodule* [name revision] x--ro name yang:yang-identifier x--ro revision union x--ro schema? inet:uri Figure 1: YANG tree diagram for ietf-platform-manifest module The YANG module actually contains a list of Platform Manifests (in 'platforms/platform'), indexed by the identifier of the platform. That identifier should be defined by the network manager so that each platform has a unique id. As an example, the identifier could be the 'sysname' from the ietf-notification module presented in [I-D.tgraf-netconf-notif-sequencing]. The scope of this module is the scope of the data collection, i.e. a given network, therefore it contains a collection of Platform Manifests, as opposed to the device scope, which would contain a single Platform Manifest. The Platform Manifest is identified by a set of parameters ('name', 'software-version', 'software-flavor', 'os-version', 'os-type') that are aligned with the YANG Catalog www.yangcatalog.org [I-D.clacla-netmod-model-catalog] so that the YANG Catalog could be used to retrieve the YANG modules a posteriori. The vendor of the platform can be identified via its name 'vendor' or its PEN number 'vendor-pen', as described in [RFC9371]. The Platform Manifest also includes the contents of the YANG Library [RFC8525]. That module set is particularly useful to analyze the xpath filters, as they are based on module names (see [RFC8639], page 47). The Platform Manifest is obtained by specifying the new fields defined above and embedding the YANG library module, along with the YANG Revisions augmentations. Thus, the YANG Library part is not repeated in the YANG module for the Platform Manifest. 3.2. YANG module ietf-platform-manifest Claise, et al. Expires 9 January 2025 [Page 8] Internet-Draft Telemetry Data Manifest July 2024 file "ietf-platform-manifest@2024-07-02.yang" module ietf-platform-manifest { yang-version 1.1; namespace "urn:ietf:params:xml:ns:yang:ietf-platform-manifest"; prefix p-mf; import ietf-yang-library { prefix yanglib; reference "RFC8525: YANG Library"; } import ietf-yang-status-conformance { prefix ysconf; reference "XXXX: Updated YANG Module Revision Handling"; } import ietf-yang-full-embed { prefix full; reference "XXXX: YANG full embed"; } organization "IETF OPSAWG (Network Configuration) Working Group"; contact "WG Web: WG List: Author: Benoit Claise Author: Jean Quilbeuf Author: Diego R. Lopez Author: Ignacio Dominguez Author: Thomas Graf "; description "This module describes the platform information to be used as context of data collection from a given network element. The contents of this model must be streamed along with the data streamed from the network element so that the platform context of the data collection can be retrieved later. The data content of this model should not change except on upgrade or patching of the device. The key words 'MUST', 'MUST NOT', 'REQUIRED', 'SHALL', 'SHALL NOT', 'SHOULD', 'SHOULD NOT', 'RECOMMENDED', 'NOT RECOMMENDED', 'MAY', and 'OPTIONAL' in this document are to be interpreted as described in BCP 14 (RFC 2119) (RFC 8174) when, and only when, they appear in all Claise, et al. Expires 9 January 2025 [Page 9] Internet-Draft Telemetry Data Manifest July 2024 capitals, as shown here. Copyright (c) 2022 IETF Trust and the persons identified as authors of the code. All rights reserved. Redistribution and use in source and binary forms, with or without modification, is permitted pursuant to, and subject to the license terms contained in, the Revised BSD License set forth in Section 4.c of the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info). This version of this YANG module is part of RFC XXXX; see the RFC itself for full legal notices. "; revision 2024-07-02 { description "Initial revision"; reference "RFC xxxx: Title to be completed"; } container platforms { config false; description "Top container including all platforms in scope. If this model is hosted on a single device, it should contain a single entry in the list. At the network level, it should contain an entry for every monitored platform."; list platform { key "id"; description "Contains information about the platform that allows to identify and understand the individual data collection information. "; anydata yang-library { description "The YANG library of the device specifying the modules available in each of the datastores."; full:embed "yl"; full:embed "ysconf"; } leaf id { type string; description "Identifies a given platform on the network, for instance the sysname of the plaftorm. The id has to be unique on the network."; } leaf name { Claise, et al. Expires 9 January 2025 [Page 10] Internet-Draft Telemetry Data Manifest July 2024 type string; description "Model of the platform from which data is collected."; } leaf vendor { type string; description "Organization that implements that platform."; } leaf vendor-pen { type uint32; description "Vendor''s registered Private Enterprise Number as described in RFC9371"; } leaf software-version { type string; description "Name of the version of software. With respect to most network device appliances, this will be the operating system version. But for other YANG module implementation, this would be a version of appliance software. Ultimately, this should correspond to a version string that will be recognizable by the consumers of the platform."; } leaf software-flavor { type string; description "A variation of a specific version where YANG model support may be different. Depending on the vendor, this could be a license, additional software component, or a feature set."; } leaf os-version { type string; description "Version of the operating system using this module. This is primarily useful if the software implementing the module is an application that requires a specific operating system version."; } leaf os-type { type string; description "Type of the operating system using this module. This is primarily useful if the software implementing the module is an application that requires a specific operating system type."; } Claise, et al. Expires 9 January 2025 [Page 11] Internet-Draft Telemetry Data Manifest July 2024 } } } 4. Data Collection Manifest 4.1. Overview of the Model Figure 2 contains the wanted YANG tree diagram [RFC8340] of the ietf- data-collection-manifest module. This diagram is not obtained by compiling the YANG module presented in Section 4.3, but rather by using the YANG Schema Mount [RFC8528] version presented in Appendix C.2. Indeed, the module relies on the Full Embed mechanism [I-D.jouqui-netmod-yang-full-include] which is not implemented yet. module: ietf-data-collection-manifest +--ro data-collections +--ro data-collection* [platform-id] +--ro platform-id -> /p-mf:platforms/p-mf:platform/p-mf:id +--mp yang-push-collection +--ro streams/ | +--ro stream* [name] | +--ro name string | +--ro description? string +--ro filters/ | +--ro stream-filter* [name] | | +--ro name string | | +--ro (filter-spec)? | | +--:(stream-subtree-filter) | | +--:(stream-xpath-filter) | +--ro selection-filter* [filter-id] | +--ro filter-id string | +--ro (filter-spec)? | +--:(datastore-subtree-filter) | +--:(datastore-xpath-filter) +--ro subscriptions/ +--ro subscription* [id] +--ro id subscription-id +--ro (target) | +--:(stream) | | +--ro (stream-filter)? | | | +--:(by-reference) | | | | +--ro stream-filter-name stream-filter-ref | | | +--:(within-subscription) | | | +--ro (filter-spec)? | | | +--:(stream-subtree-filter) | | | +--:(stream-xpath-filter) Claise, et al. Expires 9 January 2025 [Page 12] Internet-Draft Telemetry Data Manifest July 2024 | | +--ro stream stream-ref | +--:(datastore) | +--ro datastore identityref | +--ro (selection-filter)? | +--:(by-reference) | | +--ro selection-filter-ref selection-filter-ref | +--:(within-subscription) | +--ro (filter-spec)? | +--:(datastore-subtree-filter) | +--:(datastore-xpath-filter) +--ro stop-time? yang:date-and-time +--ro encoding? encoding +--ro receivers | +--ro receiver* [name] | +--ro name string | +--ro sent-event-records? yang:zero-based-counter64 | +--ro excluded-event-records? yang:zero-based-counter64 | +--ro state enumeration +--ro current-period? yp:centiseconds +--ro (update-trigger)? +--:(periodic) +--ro periodic! +--ro period centiseconds +--ro anchor-time? yang:date-and-time Figure 2: YANG tree diagram for ietf-data-collection-manifest module The 'data-collections' container contains the information related to each YANG-Push subscription. As for the Platform Manifest, these subscriptions are indexed by the platform id, so that all subscriptions in the network can be represented in the module. As most of the information related to YANG-push subscription [RFC8639] and [RFC8641] is stored in the ietf-yang-push model, we include that model and its dependencies under the 'yang-push- collection' container. These modules have a part common to all subscriptions of the platform, stored in the 'streams' and 'filters' container. The information about subscriptions themselves are stored in the 'subscriptions/subscription' list, indexed by subscription id. In the subscription object, the 'current-period' indicates the period currently used between two updates. That leaf can only be present when the subscription is periodic. The current period might differ from the requested period if the platform implements a mechanism to increase the collection period when it is overloaded. Having the current period information is crucial to understand if telemetry is missing because of a bug or a packet loss or simply because it was dynamically adjusted by the platform. Claise, et al. Expires 9 January 2025 [Page 13] Internet-Draft Telemetry Data Manifest July 2024 The current-period node is added by the module 'ietf-data-collection- manifest-statistics' presented in Section 4.2. This modules augments the subscription list from the module 'ietf-subscribed- notifications'. The Data Collection Manifest is obtained by embedding the YANG Push and Subscribed Notifications, as well the new 'ietf-data-collection-manifest-statistics' modules in the toplevel platform indexed list. The module for the Data Collection Manifest is presented in Section 4.3. 4.2. YANG module ietf-data-collection-manifest-statistics file "ietf-data-collection-manifest-statistics@2024-07-02.yang" module ietf-data-collection-manifest-statistics { yang-version 1.1; namespace "urn:ietf:params:xml:ns:yang:ietf-data-collection-statistics"; prefix dcs; import ietf-subscribed-notifications { prefix sn; reference "RFC 8639: A YANG Data Model for Subscriptions to Event Notifications"; } import ietf-yang-push { prefix yp; reference "RFC 8641: Subscriptions to YANG Datastores."; } organization "IETF OPSAWG (Network Configuration) Working Group"; contact "WG Web: WG List: Author: Benoit Claise Author: Jean Quilbeuf Author: Diego R. Lopez Author: Ignacio Dominguez Author: Thomas Graf "; description "This module augments subscribed notification with the current-period statistics reporting the actual collection period. The key words 'MUST', 'MUST NOT', 'REQUIRED', 'SHALL', Claise, et al. Expires 9 January 2025 [Page 14] Internet-Draft Telemetry Data Manifest July 2024 'SHALL NOT', 'SHOULD', 'SHOULD NOT', 'RECOMMENDED', 'NOT RECOMMENDED', 'MAY', and 'OPTIONAL' in this document are to be interpreted as described in BCP 14 (RFC 2119) (RFC 8174) when, and only when, they appear in all capitals, as shown here. Copyright (c) 2022 IETF Trust and the persons identified as authors of the code. All rights reserved. Redistribution and use in source and binary forms, with or without modification, is permitted pursuant to, and subject to the license terms contained in, the Revised BSD License set forth in Section 4.c of the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info). This version of this YANG module is part of RFC XXXX; see the RFC itself for full legal notices. "; revision 2024-07-02 { description "Initial revision"; reference "RFC xxxx: Title to be completed"; } augment "/sn:subscriptions/sn:subscription" { description "Add extra statistics about data collection"; leaf current-period { when '../yp:periodic'; type yp:centiseconds; description "Period during two succesive data collections, in the current state. Might differ from the configured period when the plaftorm might increase the period automatically when it is overloaded."; } } } 4.3. YANG module ietf-data-collection-manifest Claise, et al. Expires 9 January 2025 [Page 15] Internet-Draft Telemetry Data Manifest July 2024 file "ietf-data-collection-manifest@2024-07-02.yang" module ietf-data-collection-manifest { yang-version 1.1; namespace "urn:ietf:params:xml:ns:yang:ietf-data-collection-manifest"; prefix d-mf; import ietf-platform-manifest { prefix p-mf; reference "RFC XXXX: Title to be completed"; } import ietf-data-collection-manifest-statistics { prefix dcs; reference "RFC XXXX: Title to be completed"; } import ietf-subscribed-notifications { prefix sn; reference "RFC 8639: A YANG Data Model for Subscriptions to Event Notifications"; } import ietf-yang-full-embed { prefix full; reference "RFC XXXX: Title to be completed"; } import ietf-yang-push { prefix yp; reference "RFC 8641: Subscriptions to YANG Datastores. TODO fix and used original version. This import is a modified version so that it compiles."; } organization "IETF OPSAWG (Network Configuration) Working Group"; contact "WG Web: WG List: Author: Benoit Claise Author: Jean Quilbeuf Author: Diego R. Lopez Author: Ignacio Dominguez Author: Thomas Graf "; description Claise, et al. Expires 9 January 2025 [Page 16] Internet-Draft Telemetry Data Manifest July 2024 "This module describes the context of data collection from a given network element. The contents of this model must be streamed along with the data streamed from the network element so that the context of the data collection can be retrieved later. This module must be completed with ietf-platform-manifest to capture the whole context of a data collection session. The key words 'MUST', 'MUST NOT', 'REQUIRED', 'SHALL', 'SHALL NOT', 'SHOULD', 'SHOULD NOT', 'RECOMMENDED', 'NOT RECOMMENDED', 'MAY', and 'OPTIONAL' in this document are to be interpreted as described in BCP 14 (RFC 2119) (RFC 8174) when, and only when, they appear in all capitals, as shown here. Copyright (c) 2022 IETF Trust and the persons identified as authors of the code. All rights reserved. Redistribution and use in source and binary forms, with or without modification, is permitted pursuant to, and subject to the license terms contained in, the Revised BSD License set forth in Section 4.c of the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info). This version of this YANG module is part of RFC XXXX; see the RFC itself for full legal notices. "; revision 2024-07-02 { description "Initial revision"; reference "RFC xxxx: Title to be completed"; } container data-collections { config false; description "Contains the configuration and statistics for the collected data, per node in the network."; list data-collection { key "platform-id"; description "Defines the information for each collected object"; anydata yang-push-collection { full:embed "sn"; full:embed "yp"; Claise, et al. Expires 9 January 2025 [Page 17] Internet-Draft Telemetry Data Manifest July 2024 full:embed "dcs"; } leaf platform-id { type leafref { path "/p-mf:platforms/p-mf:platform/p-mf:id"; } description "Id of the platform collecting the data. This id is the same as the one in the platform manifest."; } // we could augment here with other kind of collection items } } } 5. Data Manifest and the Collected Data 5.1. Collecting the Data Manifest The Data Manifest MUST be streamed and stored along with the collected data. In case the collected data are moved to a different place (typically a database), the Data Manifest MUST follow the collected data. This can render the collected data unusable if that context is lost, for instance when the data is stored without the relevant information. The Data Manifest MUST be updated when the Data Manifest information changes, for example, when a router is upgraded, when a new telemetry subscription is configured, or when the telemetry subscription parameters change. The Data Manifest can itself be considered as a time series, and stored in a similar fashion to the collected data. The collected data should be mapped to the Data Manifest. Since the Data Manifest will not change as frequently as the collected data itself, it makes sense to map several data to the same Data Manifest. Somehow, the collected data must include a metadata pointing to the corresponding Data Manifest. In case of Data Manifest change, the system should keep the mapping between the data collected so far and the old Data Manifest, and not assume that the latest Data Manifest is valid for the entire time series. The Platform Manifest is likely to remain the same until the platform is updated. Thus, the Platform Manifest only needs to be collected once per streaming session and updated after a platform reboot. Similarly, the elements common to all subscriptions, such as the stream definitions and the common filters might be updated less frequently than the subscriptions. Claise, et al. Expires 9 January 2025 [Page 18] Internet-Draft Telemetry Data Manifest July 2024 As this draft specifically focuses on giving context on data collected via streamed telemetry, we can assume that a streaming telemetry system is available. Retrieving the Data Collection Manifest and Platform Manifest can be done either by reusing that streaming telemetry system (in-band) or using another system (out-of- band), for instance by adding headers or saving manifests into a YANG instance file [RFC9195]. We propose to reuse the existing telemetry system (in-band approach) in order to lower the efforts for implementing this draft. To enable a platform supporting streaming telemetry to also support the Data Manifest, it is sufficient that this platform supports the models from Section 3 and Section 4. Recall that each type of manifest has its own rough frequency update, i.e. at reboot for the Platform Manifest and at new subscription or CPU load variation for the Data Collection Manifest. The Data Manifest MUST be streamed with the YANG-Push on-change feature [RFC8641] (also called event-driven telemetry). Appendix A shows how the in-band approach would work while storing to a time-series database (TSDB). The underlying time series database should accommodate the various rates at which different part of the Data Manifest are updated. In particular, storing the Platform Manifest should be optimized to avoid duplicating repeated content and only storing a new version when there is a change in the manifest. 5.2. Mapping Collected Data to the Data Manifest With YANG-push, each notification sent by the device is part of a subscription, which is also one of the YANG keys used to retrieve the Data Manifest, the other key being the platform ID. In order to enable a posteriori retrieval of the Data Manifest associated to a datapoint, the collector must: * Keep the subscription id and platform id in the metadata of the collected values * Collect as well the Data Manifest for the subscription associated to the datapoint. With this information, to retrieve the Data Manifest from the datapoint, the following happens: * The subscription id and platform id are retrieved from the datapoint metadata * The Data Manifest for that datapoint is obtained by using the values above as keys. Claise, et al. Expires 9 January 2025 [Page 19] Internet-Draft Telemetry Data Manifest July 2024 We don’t focus on the timing aspect as storing both the data and their manifest in a time series database (TSDB) will allow the data scientists to look for the Data Manifest corresponding to the timestamp of the datapoint. More precisely, given the timestamp of a collected datapoint, the query to the TSDB would be to get the last version of the Data Manifest before that timestamp. In that scenario, the reliability of the collection of the Data Manifest is the same as the reliability of the data collection itself, since the Data Manifest is like any other data. 5.3. Operational Considerations It is expected that the Data Manifest is streamed directly from the network equipment, along with YANG-Push [RFC8641] data. However, if the network equipment streaming telemetry does not support yet the YANG modules from the Data Manifest specified in this document, the telemetry collector could populate the Data Manifest from available information collected from the platform. However, this option requires efforts on the telemetry collector side, as the information gathered in the Data Manifest proposed in this document could be scattered among various standard and vendor- specific YANG modules [RFC8199], that depend on the platform. That Data Manifest should be kept and available even if the source platform is not accessible (from the collection system), or if the platform has been updated (new operating system or new configuration). The Platform Manifest is "pretty" stable and should change only when the platform is updated or patched. On the other hand, the Data Collection Manifest is likely to change each time a new YANG-Push subscription [RFC8641] is requested and might even change if the platform load increases and collection periods are updated. To separate these two parts, we enclose each of them in its own module. 6. Example Below is an example of both a Platform manifest and corresponding Data Collection Manifests. The list of YANG modules in the yang- library container is kept empty for brevity. file "manifests-example.json" { "ietf-platform-manifest:platforms": { "platform": [ { "id": "PE1", "name": "PE1", Claise, et al. Expires 9 January 2025 [Page 20] Internet-Draft Telemetry Data Manifest July 2024 "vendor": "ACME", "vendor-pen": 32473, "software-version": "3.14", "os-version": "2.79", "os-type": "ACME OS", "yang-library": {...} } ] }, "ietf-data-collection-manifest:data-collections": { "data-collection": [ { "platform-id": "PE1", "yang-push-collection": { "subscriptions": { "subscription": [ { "id": 4242, "datastore": "ietf-datastores:operational", "datastore-xpath-filter": "/ietf-interfaces:interfaces/interface/enabled", "on-change": {}, "receivers": { "receiver": [ { "name": "yp-collector", "state": "active" } ] } }, { "id": 4243, "datastore": "ietf-datastores:operational", "datastore-xpath-filter": "/ietf-interfaces:interfaces/interface/statistics/in-octets", "periodic": { "period": 10000 }, "current-period": 20000, "receivers": { "receiver": [ { "name": "yp-collector", "state": "active" } ] Claise, et al. Expires 9 January 2025 [Page 21] Internet-Draft Telemetry Data Manifest July 2024 } } ] } } } ] } } Figure 3 The file above contains the Data Collection Manifest for two XPaths subscriptions. With the Data Collection Manifest for the first one, with subscription id 4242, the exact semantics of the collected path, here the administrative status of the network interfaces, can be obtained by looking up the module in the yang-library of the corresponding Platform Manifest, in order to obtain the exact revision of ietf-interfaces used at collection time. Also, the "on- change" container indicates that data will be sent only if there is a change, thus not receiving data indicates that the administrative status of the interface did not change. The other example of Data Collection Manifest, with subscription id 4243, shows how a periodic subscription is reported. In that example, the current-period indicates that the requested period of 10s (1000 centiseconds) could not be attained and is now of 20s, for instance because the device is overloaded. 7. Security Considerations As we are reusing an existing telemetry system, the security considerations lies with the new content divulged in the new manifests. Appropriate access control must be associated to the corresponding leafs and containers. The integrity and provenance of the data of the collection manifest can be ensured by a signing mechanism such as [I-D.lopez-opsawg-yang-provenance]. 8. IANA Considerations This document includes no request to IANA. 9. Contributors Claise, et al. Expires 9 January 2025 [Page 22] Internet-Draft Telemetry Data Manifest July 2024 10. Open Issues * Do we want to handle the absence of values, i.e. add information about missed collection or errors in the collection context ? It could also explain why some values are missing. On the other hand, this might also be out scope. * If [I-D.jouqui-netmod-yang-full-include] is not published in time, what’s the best approach? We could use the schema-mount version? * Henk: how does this interact with SBOM effort? * What is the link with the RFC8345 NodeId and IVY? * Handling of deletion in [I-D.kll-yang-label-tsdb]. 11. Normative References [I-D.jouqui-netmod-yang-full-include] Quilbeuf, J., Claise, B., and T. Joubert, "YANG Full Embed", Work in Progress, Internet-Draft, draft-jouqui- netmod-yang-full-include-02, 5 July 2024, . [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, March 1997, . [RFC8174] Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, May 2017, . [RFC8340] Bjorklund, M. and L. Berger, Ed., "YANG Tree Diagrams", BCP 215, RFC 8340, DOI 10.17487/RFC8340, March 2018, . [RFC8525] Bierman, A., Bjorklund, M., Schoenwaelder, J., Watsen, K., and R. Wilton, "YANG Library", RFC 8525, DOI 10.17487/RFC8525, March 2019, . [RFC8639] Voit, E., Clemm, A., Gonzalez Prieto, A., Nilsen-Nygaard, E., and A. Tripathy, "Subscription to YANG Notifications", RFC 8639, DOI 10.17487/RFC8639, September 2019, . Claise, et al. Expires 9 January 2025 [Page 23] Internet-Draft Telemetry Data Manifest July 2024 [RFC8641] Clemm, A. and E. Voit, "Subscription to YANG Notifications for Datastore Updates", RFC 8641, DOI 10.17487/RFC8641, September 2019, . [RFC9195] Lengyel, B. and B. Claise, "A File Format for YANG Instance Data", RFC 9195, DOI 10.17487/RFC9195, February 2022, . 12. Informative References [I-D.clacla-netmod-model-catalog] Clarke, J. and B. Claise, "YANG module for yangcatalog.org", Work in Progress, Internet-Draft, draft- clacla-netmod-model-catalog-03, 3 April 2018, . [I-D.claise-netconf-metadata-for-collection] Claise, B., Nayyar, M., and A. R. Sesani, "Per-Node Capabilities for Optimum Operational Data Collection", Work in Progress, Internet-Draft, draft-claise-netconf- metadata-for-collection-02, 12 July 2021, . [I-D.kll-yang-label-tsdb] Larsson, K., "Mapping YANG Data to Label-Set Time Series", Work in Progress, Internet-Draft, draft-kll-yang-label- tsdb-00, 18 October 2023, . [I-D.lopez-opsawg-yang-provenance] Lopez, D., Pastor, A., Feng, A. H., Birkholz, H., and S. Garcia, "Applying COSE Signatures for YANG Data Provenance", Work in Progress, Internet-Draft, draft- lopez-opsawg-yang-provenance-03, 6 July 2024, . [I-D.tgraf-netconf-notif-sequencing] Graf, T., Quilbeuf, J., and A. H. Feng, "Support of Hostname and Sequencing in YANG Notifications", Work in Progress, Internet-Draft, draft-tgraf-netconf-notif- sequencing-06, 29 June 2024, . Claise, et al. Expires 9 January 2025 [Page 24] Internet-Draft Telemetry Data Manifest July 2024 [RFC8199] Bogdanovic, D., Claise, B., and C. Moberg, "YANG Module Classification", RFC 8199, DOI 10.17487/RFC8199, July 2017, . [RFC8343] Bjorklund, M., "A YANG Data Model for Interface Management", RFC 8343, DOI 10.17487/RFC8343, March 2018, . [RFC8528] Bjorklund, M. and L. Lhotka, "YANG Schema Mount", RFC 8528, DOI 10.17487/RFC8528, March 2019, . [RFC9196] Lengyel, B., Clemm, A., and B. Claise, "YANG Modules Describing Capabilities for Systems and Datastore Update Notifications", RFC 9196, DOI 10.17487/RFC9196, February 2022, . [RFC9371] Baber, A. and P. Hoffman, "Registration Procedures for Private Enterprise Numbers (PENs)", RFC 9371, DOI 10.17487/RFC9371, March 2023, . Appendix A. title="Example of use based on MDT In this example, the goal is to collect the administrative status and number of received bytes for the interfaces of a fictional ACME device, and store the result in a time-series database (TSDB). The metrics are collected via YANG-Push, which is configured by specifying their XPaths and when they should be collected (periodically or on-change). More precisely, we want collect "ietf- interfaces:interfaces/interface/enabled" on every change and "ietf- interfaces:interfaces/interface/statistics/in-octets" every 100 milliseconds. The paths here are referring to the YANG module from [RFC8343]. The configuration of YANG push is out of scope for this document. Since they don’t have the same trigger, each of the path must be collected in its own subscription. Figure 4 presents an example for such a collection. +------------+ +--------+ | MDT |--------------> | TSDB | | Collector | +--------+ +------------+ ^ | | +---------+ | Device | +---------+ Claise, et al. Expires 9 January 2025 [Page 25] Internet-Draft Telemetry Data Manifest July 2024 Figure 4: Example of collection from a device to a TSDB In the scenario from Figure 4, the collector receives YANG-push from the device and stores it into a TSDB. We first present a version without Data Manifest and then how to enrich it with the Data Manifest. We use the notation from [I-D.kll-yang-label-tsdb] to represent how the data is stored in the TSDB. Without the data manifest, the result of the collection would be stored as showed in Figure 5. The "host" label indicates the devices from which the data is collected and the YANG keys are included as well. Here the interface "eth0" is enabled and received 1234 octets. In that case, the value is stored, without any way to know how the value was obtained. * Metric: interfaces_interface_enabled * Value: True * Labels: - host: "PE1" - interfaces_interface_name: "eth0" -- * Metric: interfaces_interface_statistics_in_octets * Value: 1234 * Labels: - host: "PE1" - interfaces_interface_name: "eth0" Figure 5: Storing datapoints without Data Manifest A possibility for keeping the Data Manifest with the data is to store it directly into the TSDB. In that case, the collector can subscribe to the data exported by the module presented in this draft and store it as other metrics. For the Platform Manifest, assuming the platform ID is "PE1", the collector subscribes to the path "ietf- platform-manifest:platforms/platform[id=PE1]". For the Data Collection Manifests, the collector subscribes to the path "ietf- data-collection-manifest:data-collections/data-collection[platform- id="PE1"]/yang-push-collection/subscriptions/subscription[id=X]" where X is the subscription id of existing subscriptions. With the approach from [I-D.kll-yang-label-tsdb], the corresponding subtrees would be split into a set of datapoints, one per leaf. Figure 6 shows two examples of storing leaves in a TSDB. The first leaf is the vendor PEN number, which is part of the Platform Manifest. The second leaf is the Xpath filter used for subscription to the interface status. Claise, et al. Expires 9 January 2025 [Page 26] Internet-Draft Telemetry Data Manifest July 2024 * Metric: platforms_platform_vendor_pen * Value: 32473 * Labels: - host: "PE1" - platforms_platform_id: "PE1" -- * Metric: data_collections_data_collection_yang_push_collection_ subscriptions_subscription_datastore_xpath_filter * Value: "ietf-interfaces:interfaces/interface/enabled" * Labels: - host: "PE1" - data_collections_data_collection_platform_id: "PE1" - data_collections_data_collection_yang_push_collection_ subscriptions_subscription_id: 4242 Figure 6: Example of storing Platform and Data Collection Manifest: Vendor PEN and Xpath filter. In the labels, the "host" might be different from the "platforms_platform_id" in case the collector is the one assembling it, i.e. for devices that do not natively support the Data Manifest. In that case, the value of this label could be the hostname of the collector. The host value does not matter for retrieving the Data Manifest as the platform id is the meaningful field. In our example, we can retrieve the Platform Manifest associated to a collected datapoint by looking for datapoints that have the label "platforms_platform_id" equal to the value of the host for that collected datapoint. In order to link a datapoint with the corresponding Data Collection Manifest, we need to add an additional label for the subscription id. For instance, the same datapoints as in Figure 5 could be stored as in Figure 7. * Metric: interfaces_interface_enabled * Value: True * Labels: - host: "PE1" - interfaces_interface_name: "eth0" - data_collections_data_collection_yang_push_subscriptions_ subscription_id: 4242 -- * Metric: interfaces_interface_statistics_in_octets * Value: 1234 * Labels: - host: "PE1" - interfaces_interface_name: "eth0" - data_collections_data_collection_yang_push_subscriptions_ subscription_id: 4243 Claise, et al. Expires 9 January 2025 [Page 27] Internet-Draft Telemetry Data Manifest July 2024 Figure 7: Storing datapoints with information to retrieve the Data Manifest From the "interfaces_interface_enabled" datapoint, one can retrieve the corresponding Data Collection Manifest by looking for datapoints that have the label data_collections_data_collection_yang_push_collec tion_subscriptions_subscription_id equal to 4242. Various optimizations could be done, such as relying on on-change subscription to modify only the leaves that changed. In that way, the amount of data needed for updating and storing the Data Manifest in the TSDB would be limited. Appendix B. Changes between revisions v03 -> v04 * State that data lineage is out of scope * Replace copy-pasted version of the modules with schema mount version, use full-embed for the "real" one * Schema mount version is the fallback plan if full:embed is not there fast enough. * Update examples accordingly v02 -> v03 * Explicit that modules are network (Controller) level * InfluxDB example changed to TSDB example aligned with [I-D.kll-yang-label-tsdb] * Minor edits i.e. network element -> platform , object -> data node v01 -> v02 * Updated example with latest version of the model. v00 (WG adoption) - v01 * Solve integrity issue by delegating to [I-D.lopez-opsawg-yang-provenance]. v05 -> v06 * Remove YANG packages Claise, et al. Expires 9 January 2025 [Page 28] Internet-Draft Telemetry Data Manifest July 2024 * Switch YANG models from device view to network view * Add PEN number to identify vendors * Intro rewritten with uses cases * Added an "Operational Considerations" section * Switch from MDT to YANG-push v04 -> v05 * First version of example scenario * Updated affiliation * Updated YANG module names to ietf-platform-manifest and ietf-data- collection-manifest * Unify used terms as defined in the terminology section * Replaced 'device' with 'platform' * Split Section 5 into two sections for better readibility v03 -> v04 * Fix xym error * Moved terminology after introduction * Clarified the role of the module v02 -> v03 * Add when clause in YANG model * Fix validation errors on YANG modules * Augment YANG library to handle semantic versioning v01 -> v02 * Alignment with YANGCatalog YANG module: name, vendor * Clarify the use of YANG instance file * Editorial improvements Claise, et al. Expires 9 January 2025 [Page 29] Internet-Draft Telemetry Data Manifest July 2024 v00 -> v01 * Adding more into data platform: yang packages, whole yanglib module to specify datastores * Setting the right type for periods: int64 -> uint64 * Specify the origin datastore for mdt subscription * Set both models to config false * Applying text comments from Mohamed Boucadair * Adding an example of data-manifest file * Adding rationale for reusing telemetry system for collection of the manifests * Export manifest with on change telemetry as opposed to YANG instance file v00 * Initial version Appendix C. Supporting files for generating YANG tree diagrams This section provides the files needed to generate the YANG tree diagrams [RFC8340] from Figure 1 and Figure 2. The diagrams were obtained using yanglint https://github.com/CESNET/libyang version 2.1.80, using the YANG Schema Mount [RFC8528]. They were manually edited to remove data nodes from imported modules, notifications and RPCs. Once [I-D.jouqui-netmod-yang-full-include] is implemented, they should be replaced by the tree diagrams produced directly from the corresponding modules. Alternatively, the present section could be used as the standard, if [I-D.jouqui-netmod-yang-full-include] does not become an RFC. C.1. Schema Mount Version for the Platform Manifest The YANG module from Section 3.2 is modified to use a mount point from YANG Schema Mount [RFC8528] instead of the full:embed from [I-D.jouqui-netmod-yang-full-include]. Claise, et al. Expires 9 January 2025 [Page 30] Internet-Draft Telemetry Data Manifest July 2024 module ietf-platform-manifest { yang-version 1.1; namespace "urn:ietf:params:xml:ns:yang:ietf-platform-manifest"; prefix p-mf; import ietf-yang-library { prefix yanglib; reference "RFC8525: YANG Library"; } import ietf-yang-status-conformance { prefix ysconf; reference "XXXX: Updated YANG Module Revision Handling"; } import ietf-yang-full-embed { prefix full; reference "XXXX: YANG full embed"; } organization "IETF OPSAWG (Network Configuration) Working Group"; contact "WG Web: WG List: Author: Benoit Claise Author: Jean Quilbeuf Author: Diego R. Lopez Author: Ignacio Dominguez Author: Thomas Graf "; description "This module describes the platform information to be used as context of data collection from a given network element. The contents of this model must be streamed along with the data streamed from the network element so that the platform context of the data collection can be retrieved later. The data content of this model should not change except on upgrade or patching of the device. The key words 'MUST', 'MUST NOT', 'REQUIRED', 'SHALL', 'SHALL NOT', 'SHOULD', 'SHOULD NOT', 'RECOMMENDED', 'NOT RECOMMENDED', 'MAY', and 'OPTIONAL' in this document are to be interpreted as described in BCP 14 (RFC 2119) (RFC 8174) when, and only when, they appear in all capitals, as shown here. Claise, et al. Expires 9 January 2025 [Page 31] Internet-Draft Telemetry Data Manifest July 2024 Copyright (c) 2022 IETF Trust and the persons identified as authors of the code. All rights reserved. Redistribution and use in source and binary forms, with or without modification, is permitted pursuant to, and subject to the license terms contained in, the Revised BSD License set forth in Section 4.c of the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info). This version of this YANG module is part of RFC XXXX; see the RFC itself for full legal notices. "; revision 2024-07-02 { description "Initial revision"; reference "RFC xxxx: Title to be completed"; } container platforms { config false; description "Top container including all platforms in scope. If this model is hosted on a single device, it should contain a single entry in the list. At the network level, it should contain an entry for every monitored platform."; list platform { key "id"; description "Contains information about the platform that allows to identify and understand the individual data collection information. "; anydata yang-library { description "The YANG library of the device specifying the modules available in each of the datastores."; full:embed "yl"; full:embed "ysconf"; } leaf id { type string; description "Identifies a given platform on the network, for instance the sysname of the plaftorm. The id has to be unique on the network."; } leaf name { type string; description Claise, et al. Expires 9 January 2025 [Page 32] Internet-Draft Telemetry Data Manifest July 2024 "Model of the platform from which data is collected."; } leaf vendor { type string; description "Organization that implements that platform."; } leaf vendor-pen { type uint32; description "Vendor''s registered Private Enterprise Number as described in RFC9371"; } leaf software-version { type string; description "Name of the version of software. With respect to most network device appliances, this will be the operating system version. But for other YANG module implementation, this would be a version of appliance software. Ultimately, this should correspond to a version string that will be recognizable by the consumers of the platform."; } leaf software-flavor { type string; description "A variation of a specific version where YANG model support may be different. Depending on the vendor, this could be a license, additional software component, or a feature set."; } leaf os-version { type string; description "Version of the operating system using this module. This is primarily useful if the software implementing the module is an application that requires a specific operating system version."; } leaf os-type { type string; description "Type of the operating system using this module. This is primarily useful if the software implementing the module is an application that requires a specific operating system type."; } } } Claise, et al. Expires 9 January 2025 [Page 33] Internet-Draft Telemetry Data Manifest July 2024 } In order to get the tree diagram with yanglint, two data files are required. First we need the extension data, containing the YANG library to use at the mount point. Then we need the YANG library to use at the top-level context. The extension data is included below as "platform-extension-data.xml", the top-level YANG library as "platform-toplevel-yanglib.xml". The tree diagram is obtained by running the following command: yanglint -f tree \ -x platform-extension-data.xml \ -Y platform-toplevel-yanglib.xml \ ietf-platform-manifest@2024-07-02.yang file "platform-extension-data.xml" mountee-set ietf-yang-status-conformance 2024-02-14 urn:ietf:params:xml:ns:yang:ietf-yang-status-conformance ietf-datastores 2018-02-14 urn:ietf:params:xml:ns:yang:ietf-datastores ietf-yang-library 2019-01-04 urn:ietf:params:xml:ns:yang:ietf-yang-library ietf-yang-types 2013-07-15 urn:ietf:params:xml:ns:yang:ietf-yang-types Claise, et al. Expires 9 January 2025 [Page 34] Internet-Draft Telemetry Data Manifest July 2024 ietf-inet-types 2013-07-15 urn:ietf:params:xml:ns:yang:ietf-inet-types test-schema mountee-set ds:running test-schema ds:operational test-schema 2 2 ietf-platform-manifest file "platform-toplevel-yanglib.xml" main-set ietf-datastores 2018-02-14 urn:ietf:params:xml:ns:yang:ietf-datastores Claise, et al. Expires 9 January 2025 [Page 35] Internet-Draft Telemetry Data Manifest July 2024 ietf-yang-library 2019-01-04 urn:ietf:params:xml:ns:yang:ietf-yang-library ietf-yang-schema-mount 2019-01-14 urn:ietf:params:xml:ns:yang:ietf-yang-schema-mount ietf-platform-manifest 2024-07-02 urn:ietf:params:xml:ns:yang:ietf-platform-manifest ietf-yang-types 2023-01-23 urn:ietf:params:xml:ns:yang:ietf-yang-types ietf-inet-types 2013-07-15 urn:ietf:params:xml:ns:yang:ietf-inet-types ietf-yang-status-conformance 2024-02-14 urn:ietf:params:xml:ns:yang:ietf-yang-status-conformance main-schema main-set ds:running main-schema Claise, et al. Expires 9 January 2025 [Page 36] Internet-Draft Telemetry Data Manifest July 2024 ds:operational main-schema 1 2 C.2. Schema Mount Version for the Platform Manifest The YANG module from Section 4.3 is modified to use a mount point from YANG Schema Mount [RFC8528] instead of the full:embed from [I-D.jouqui-netmod-yang-full-include]. module ietf-data-collection-manifest { yang-version 1.1; namespace "urn:ietf:params:xml:ns:yang:ietf-data-collection-manifest"; prefix d-mf; import ietf-platform-manifest { prefix p-mf; reference "RFC XXXX: Title to be completed"; } import ietf-data-collection-manifest-statistics { prefix dcs; reference "RFC XXXX: Title to be completed"; } import ietf-subscribed-notifications { prefix sn; reference "RFC 8639: A YANG Data Model for Subscriptions to Event Notifications"; } import ietf-yang-full-embed { prefix full; reference "RFC XXXX: Title to be completed"; } import ietf-yang-push { prefix yp; Claise, et al. Expires 9 January 2025 [Page 37] Internet-Draft Telemetry Data Manifest July 2024 reference "RFC 8641: Subscriptions to YANG Datastores. TODO fix and used original version. This import is a modified version so that it compiles."; } organization "IETF OPSAWG (Network Configuration) Working Group"; contact "WG Web: WG List: Author: Benoit Claise Author: Jean Quilbeuf Author: Diego R. Lopez Author: Ignacio Dominguez Author: Thomas Graf "; description "This module describes the context of data collection from a given network element. The contents of this model must be streamed along with the data streamed from the network element so that the context of the data collection can be retrieved later. This module must be completed with ietf-platform-manifest to capture the whole context of a data collection session. The key words 'MUST', 'MUST NOT', 'REQUIRED', 'SHALL', 'SHALL NOT', 'SHOULD', 'SHOULD NOT', 'RECOMMENDED', 'NOT RECOMMENDED', 'MAY', and 'OPTIONAL' in this document are to be interpreted as described in BCP 14 (RFC 2119) (RFC 8174) when, and only when, they appear in all capitals, as shown here. Copyright (c) 2022 IETF Trust and the persons identified as authors of the code. All rights reserved. Redistribution and use in source and binary forms, with or without modification, is permitted pursuant to, and subject to the license terms contained in, the Revised BSD License set forth in Section 4.c of the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info). This version of this YANG module is part of RFC XXXX; see the RFC itself for full legal notices. "; revision 2024-07-02 { Claise, et al. Expires 9 January 2025 [Page 38] Internet-Draft Telemetry Data Manifest July 2024 description "Initial revision"; reference "RFC xxxx: Title to be completed"; } container data-collections { config false; description "Contains the configuration and statistics for the collected data, per node in the network."; list data-collection { key "platform-id"; description "Defines the information for each collected object"; anydata yang-push-collection { full:embed "sn"; full:embed "yp"; full:embed "dcs"; } leaf platform-id { type leafref { path "/p-mf:platforms/p-mf:platform/p-mf:id"; } description "Id of the platform collecting the data. This id is the same as the one in the platform manifest."; } // we could augment here with other kind of collection items } } } In order to get the tree diagram with yanglint, two data files are required. First we need the extension data, containing the YANG library to use at the mount point. Then we need the YANG library to use at the top-level context. The extension data is included below as "data-collection-extension-data.xml", the top-level YANG library as "data-collection-toplevel-yanglib.xml". The tree diagram is obtained by running the following command: yanglint -f tree \ -x data-collection-extension-data.xml \ -Y data-collection-toplevel-yanglib.xml \ ietf-data-collection-manifest@2024-07-02.yang Claise, et al. Expires 9 January 2025 [Page 39] Internet-Draft Telemetry Data Manifest July 2024 file "data-collection-extension-data.xml" mountee-set ietf-subscribed-notifications 2019-09-09 urn:ietf:params:xml:ns:yang:ietf-subscribed-notifications ietf-yang-push 2019-09-09 urn:ietf:params:xml:ns:yang:ietf-yang-push ietf-data-collection-manifest-statistics 2024-07-02 urn:ietf:params:xml:ns:yang:ietf-data-collection-manifest-statistics ietf-datastores 2018-02-14 urn:ietf:params:xml:ns:yang:ietf-datastores ietf-yang-library 2019-01-04 urn:ietf:params:xml:ns:yang:ietf-yang-library ietf-inet-types 2013-07-15 urn:ietf:params:xml:ns:yang:ietf-inet-types Claise, et al. Expires 9 January 2025 [Page 40] Internet-Draft Telemetry Data Manifest July 2024 ietf-interfaces 2018-02-20 urn:ietf:params:xml:ns:yang:ietf-interfaces ietf-ip 2018-02-22 urn:ietf:params:xml:ns:yang:ietf-ip ietf-netconf-acm 2018-02-14 urn:ietf:params:xml:ns:yang:ietf-netconf-acm ietf-network-instance 2019-01-21 urn:ietf:params:xml:ns:yang:ietf-network-instance ietf-restconf 2017-01-26 urn:ietf:params:xml:ns:yang:ietf-restconf ietf-yang-patch 2017-02-22 urn:ietf:params:xml:ns:yang:ietf-yang-patch ietf-yang-types 2023-01-23 urn:ietf:params:xml:ns:yang:ietf-yang-types Claise, et al. Expires 9 January 2025 [Page 41] Internet-Draft Telemetry Data Manifest July 2024 test-schema mountee-set ds:running test-schema ds:operational test-schema 2 2 ietf-data-collection-manifest file "data-collection-toplevel-yanglib.xml" main-set ietf-datastores 2018-02-14 urn:ietf:params:xml:ns:yang:ietf-datastores ietf-yang-library 2019-01-04 urn:ietf:params:xml:ns:yang:ietf-yang-library Claise, et al. Expires 9 January 2025 [Page 42] Internet-Draft Telemetry Data Manifest July 2024 ietf-yang-schema-mount 2019-01-14 urn:ietf:params:xml:ns:yang:ietf-yang-schema-mount ietf-data-collection-manifest 2024-07-02 urn:ietf:params:xml:ns:yang:ietf-data-collection-manifest ietf-platform-manifest 2024-07-02 urn:ietf:params:xml:ns:yang:ietf-platform-manifest ietf-data-collection-manifest-statistics 2024-07-02 urn:ietf:params:xml:ns:yang:ietf-data-collection-manifest-statistics ietf-inet-types 2013-07-15 urn:ietf:params:xml:ns:yang:ietf-inet-types ietf-interfaces 2018-02-20 urn:ietf:params:xml:ns:yang:ietf-interfaces ietf-ip 2018-02-22 urn:ietf:params:xml:ns:yang:ietf-ip Claise, et al. Expires 9 January 2025 [Page 43] Internet-Draft Telemetry Data Manifest July 2024 ietf-netconf-acm 2018-02-14 urn:ietf:params:xml:ns:yang:ietf-netconf-acm ietf-network-instance 2019-01-21 urn:ietf:params:xml:ns:yang:ietf-network-instance ietf-restconf 2017-01-26 urn:ietf:params:xml:ns:yang:ietf-restconf ietf-subscribed-notifications 2019-09-09 urn:ietf:params:xml:ns:yang:ietf-subscribed-notifications ietf-yang-patch 2017-02-22 urn:ietf:params:xml:ns:yang:ietf-yang-patch ietf-yang-push 2019-09-09 urn:ietf:params:xml:ns:yang:ietf-yang-push ietf-yang-types 2023-01-23 urn:ietf:params:xml:ns:yang:ietf-yang-types Claise, et al. Expires 9 January 2025 [Page 44] Internet-Draft Telemetry Data Manifest July 2024 main-schema main-set ds:running main-schema ds:operational main-schema 1 2 Acknowledgements Thanks to Mohamed Boucadair, Tianran Zhou and Jan Lindblad for their reviews and comments. Authors' Addresses Benoit Claise Huawei Email: benoit.claise@huawei.com Jean Quilbeuf Huawei Email: jean.quilbeuf@huawei.com Diego R. Lopez Telefonica I+D Don Ramon de la Cruz, 82 Madrid 28006 Spain Email: diego.r.lopez@telefonica.com Claise, et al. Expires 9 January 2025 [Page 45] Internet-Draft Telemetry Data Manifest July 2024 Ignacio Dominguez Telefonica I+D Ronda de la Comunicacion, S/N Madrid 28050 Spain Email: ignacio.dominguezmartinez@telefonica.com Thomas Graf Swisscom Binzring 17 CH-8045 Zurich Switzerland Email: thomas.graf@swisscom.com Claise, et al. Expires 9 January 2025 [Page 46]