Internet-Draft | ACaaS | July 2023 |
Boucadair, et al. | Expires 11 January 2024 | [Page] |
This document specifies a YANG service data model for Attachment Circuits (ACs). This model can be used for the provisioning of ACs before or during service provisioning (e.g., Network Slice Service). The document also specifies a module that updates other service and network modules with the required information to bind specific services to ACs that are created using the AC service model.¶
Also, the document specifies a set of reusable groupings. Whether other service models reuse structures defined in the AC models or simply include an AC reference is a design choice of these service models. Utilizing the AC service model to manage ACs over which a service is delivered has the advantage of decoupling service management from upgrading AC components to incorporate recent AC technologies or features.¶
This note is to be removed before publishing as an RFC.¶
Discussion of this document takes place on the Operations and Management Area Working Group Working Group mailing list ([email protected]), which is archived at https://mailarchive.ietf.org/arch/browse/opsawg/.¶
Source for this draft and an issue tracker can be found at https://github.com/boucadair/attachment-circuit-model.¶
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 11 January 2024.¶
Copyright (c) 2023 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.¶
Connectivity services are provided by networks to customers via dedicated terminating points, such as Service Functions [RFC7665], customer edges (CEs), peer Autonomous System Border Routers (ASBRs), data centers gateways, or Internet Exchange Points. A connectivity service is basically about ensuring data transfer received from or destined to a given terminating point to or from other terminating points within the same customer/service, an interconnection node, or an ancillary node. The objectives for the connectivity service can be negotiated and agreed upon between the customer and the network provider. To facilitate data transfer within the provider network, it is assumed that the appropriate setup is provisioned over the links that connect customer terminating points and a provider network, allowing successfully data exchanged over these links. The required setup is referred to in this document as Attachment Circuits (ACs), while the underlying link is referred to as "bearers".¶
This document adheres to the definition of an Attachment Circuit as provided in Section 1.2 of [RFC4364], especially:¶
Routers can be attached to each other, or to end systems, in a variety of different ways: PPP connections, ATM Virtual Circuits (VCs), Frame Relay VCs, ethernet interfaces, Virtual Local Area Networks (VLANs) on ethernet interfaces, GRE tunnels, Layer 2 Tunneling Protocol (L2TP) tunnels, IPsec tunnels, etc. We will use the term "attachment circuit" to refer generally to some such means of attaching to a router. An attachment circuit may be the sort of connection that is usually thought of as a "data link", or it may be a tunnel of some sort; what matters is that it be possible for two devices to be network layer peers over the attachment circuit.¶
When a customer requests a new value-added service, the service can be bound to existing attachment circuits or trigger the instantiation of new attachment circuits. The provisioning of a value-added service should, thus, accommodate both deployments.¶
Also, because the instantiation of an attachment circuit requires coordinating the provisioning of endpoints that might not belong to the same administrative entity (customer vs. provider or distinct operational teams within the same provider, etc.), ** providing programmatic means to expose 'attachment circuits'-as-a-service will greatly simplify the provisioning of value-added services** delivered over an attachment circuits.¶
This document specifies a YANG service data model ("ietf-ac-svc") for managing attachment circuits that are exposed by a network to its customers, such as an enterprise site, a network function, a hosting infrastructure, or a peer network provider. The model can be used for the provisioning of ACs prior or during advanced service provisioning (e.g., Network Slice Service).¶
The "ietf-ac-svc" includes a set of reusable groupings. Whether a service model reuses structures defined in the "ietf-ac-svc" or simply includes an AC reference (that was communicated during AC service instantiation) is a design choice of these service models. Relying upon the AC service model to manage ACes over which services are delivered has the merit to decorrelate the management of the (core) service vs. upgrade the AC components to reflect recent AC technologies or new features (e.g., new encryption scheme, additional routing protocol). This document favors the approach of completely relying upon the AC service model instead of duplicating data nodes into specific modules of advanced services that are delivered over an Attachment Circuit.¶
Since the provisioning of an AC requires a bearer to be in place, this document introduces a new module called "ietf-bearer-svc" that enables customers to manage their bearer requests. The customers can then retrieve a provider-assigned bearer reference that they will include in their AC service requests.¶
An AC service request can provide a reference to a bearer or a set of peer SAPs. Both schemes are supported in the AC service model.¶
Each AC is identified with a unique identifier within a (provider) domain. From a network provider standpoint, an AC can be bound to a single or multiple Service Attachment Points (SAPs) [RFC9408]. Likewise, the same SAP can be bound to one or multiple ACs. However, the mapping between an AC and a PE in the provider network that terminates that AC is hidden to the application that makes use of the AC service model. Such mapping information is internal to the network controllers. As such, the details about the (node-specific) attachment interfaces are not exposed in the AC service model.¶
The AC service model does not make any assumptions about the internal structure or even the nature or the services that will be delivered over an attachment circuit. Customers do not have access to that network view other than the ACes that the ordered. For example, the AC service model can be used to provision a set of ACes to connect multiple sites (Site1, Site2, ..., SiteX) for customer who also requested VPN services. If these provisioning of these services require specific configuration on ASBR nodes, such configuration is handled at the network level and is not exposed to the customer at the service level. However, the network controller will have access to such a view as the service points in these ASBRs will be exposed as SAPs with "role" set to "ietf-sap-ntw:nni" [RFC9408].¶
The AC service model can be used in a variety of contexts, such as (but not limited to) those provided in Appendix A:¶
The examples use the IPv4 address blocks reserved for documentation [RFC5737], the IPv6 prefix reserved for documentation [RFC3849], and the Autonomous System (AS) numbers reserved for documentation [RFC5398].¶
The YANG data models in this document conform to the Network Management Datastore Architecture (NMDA) defined in [RFC8342].¶
The AC model specified in this document is not a network model [RFC8969]. As such, the model does not expose details related to specific nodes in the provider's network that terminate an AC. The mapping between an AC as seen by a customer and the network implementation of an AC is maintained by the network controllers and is not exposed to the customer. This mapping can be maintained using a variety of network models, such as augmented SAP AC network model [I-D.boro-opsawg-ntw-attachment-circuit].¶
The AC service model is not a device model. A network provider may use a variety of device models (e.g., Routing management [RFC8349] or BGP [I-D.ietf-idr-bgp-model]) to provision an AC service.¶
The L2SM [RFC8466] covers some AC-related considerations. Nevertheless, the L2SM structure is primarily focused on Layer 2 aspects. For example, the L2SM part does not cover Layer 3 provisioning, which is required for the typical AC instantiation.¶
Like the L2SM, the L3SM [RFC8299] addresses certain AC-related aspects. However, the L3SM structure does not sufficiently address layer 2 provisioning requirements. Additionally, the L3SM is primarily designed for conventional L3VPN deployments and, as such, has some limitations for instantiating ACs in other deployment contexts (e.g., cloud environments). For example, the L3SM does not provide the capability to provision multiple BGP sessions over the same AC.¶
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.¶
The meanings of the symbols in the YANG tree diagrams are defined in [RFC8340].¶
This document uses the following terms:¶
A physical or logical link that connects a customer node (or site) to a provider network. A bearer can be a wireless or wired link. One or multiple technologies can be used to build a bearer. The bearer type can be specified by a customer.¶
The operator allocates a unique bearer reference to identify a bearer within its network (e.g., customer line identifier). Such a reference can be retrieved by a customer and used in subsequent service placement requests to unambiguously identify where a service is to be bound.¶
The concept of bearer can be generalized to refer to the required underlying connection for the provisioning of an attachment circuit. One or multiple attachment circuits may be hosted over the same bearer (e.g., multiple VLANs on the same bearer that is provided by a physical link).¶
Denotes a functional entity responsible for the management of the service provider network.¶
Refers to a functional entity that interacts with the customer of a network service. The service orchestrator is typically responsible for the attachment circuits, the Provider Edge (PE) selection, and requesting the activation of the requested service to a network controller.¶
A network that is able to provide network services (e.g., Layer 2 VPN, Layer 3, and Network Slice Services).¶
A service provider that offers network services (e.g., Layer 2 VPN, Layer 3, and Network Slice Services).¶
Figure 1 depicts two target topology flavors that involve ACs. These topologies have the following characteristics:¶
The procedure to provision a service in a service provider network may depend on the practices adopted by a service provider. This includes the flow put in place for the provisioning of advanced network services and how they are bound to an attachment circuit. For example, a single attachment circuit may be used to host multiple connectivity services. In order to avoid service interference and redundant information in various locations, a service provider may expose an interface to manage ACs network-wide. Customers can then request a bearer or an attachment circuit to be put in place, and then refer to that bearer or AC when requesting services that are bound to the bearer or AC.¶
Figure 2 shows the positioning of the AC service model is the overall service delivery process.¶
In order to ease the mapping between the service model and underlying network models (e.g., L3NM, SAP), the name conventions used in existing network data models are reused as much as possible. For example, "local-address" is used rather than "provider-address" (or similar) to refer to an IP address used in the provider network. This approach is consistent with the automation framework defined in [RFC8969].¶
Figure 3 shows the tree for managing the bearers (that is, the properties of the attachment that are below Layer 3). A bearer can be a wireless or wired link. A reference to a bearer is generated by the operator. Such a reference can be used, e.g., in a subsequent service request to create an AC. The anchoring of the AC can also be achieved by indicating (with or without a bearer reference), a peer SAP identifier (e.g., an identifier of a Service Function).¶
The same customer site (CE, NF, etc.) can terminate one or multiple bearers; each of them uniquely identified by a reference that is assigned by the network provider. These bearers can terminate on the same or distinct network nodes. CEs that terminate multiple bearers are called multi-homed CEs.¶
A bearer request may indicate some hints about the placement constraints ('placement-constraints'). These constraints are used by a provider to determine how/where to terminate a bearer in the network side (e.g., PoP/PE selection).¶
The descriptions of the bearer data nodes are as follows:¶
Used to uniquely identify a bearer. This identifier is typically selected by the client when requesting a bearer.¶
Includes a textual description of the bearer.¶
Includes operational comments that may be useful for managing the bearer (building, level, etc.). No structure is associated with this data node to accommodate all deployments.¶
Tags a bearer with one ore more identifiers that are used to group a set of bearers.¶
Specifies the customer terminating point for the bearer. A bearer request can indicate a device, a site, a combination thereof, or a custom information when requesting a bearer. All these schemes are supported in the model.¶
Specifies the requested bearer type (Ethernet, wireless, etc.).¶
Returns an internal reference for the service provider to identify the bearer. This reference can be used when requesting services. Appendix A.1 provides an example about how this reference can be retrieved by a customer.¶
Whether the 'bearer-reference' mirrors the content of the 'id' is deployment specific. The module does not assume nor preclude such schemes.¶
Used to track the overall status of a given bearer. Both operational and administrative status are maintained together with a timestamp.¶
The overall tree structure of the AC service module is shown in Figure 4.¶
The full ACaaS tree is available at [AC-SVC-Tree]. The full reusable groupings defined in the ACaaS module are shown in [AC-SVC-GRP].¶
The rationale for deciding whether a reusable grouping should be maintained in this document or be moved into the AC common module [I-D.boro-opsawg-teas-common-ac] is as follows:¶
Each AC is identified with a unique name ('../ac/name') within a domain. The mapping between this AC and a local PE that terminates the AC is hidden to the application that makes use of the AC service model. This information is internal to the Network controller. As such, the details about the (node-specific) attachment interfaces are not exposed in this service model.¶
The AC service model uses groupings and types defined in the AC common model [I-D.boro-opsawg-teas-common-ac]. Therefore, the description of these nodes are not reiterated in the following subsections.¶
The 'specific-provisioning-profiles' container (Figure 5) can be used by a service provider to maintain a set of reusable profiles. The profiles definition are similar to those defined in [RFC9181], including: Quality of Service (QoS), Bidirectional Forwarding Detection (BFD), forwarding, and routing profiles. The exact definition of the profiles is local to each service provider. The model only includes an identifier for these profiles in order to facilitate identifying and binding local policies when building an AC.¶
As shown in Figure 5, two profile types can be defined: 'specific-provisioning-profiles' and 'service-provisioning-profiles'. Whether only specific profiles, service profiles, or a combination thereof are used is local to each service provider.¶
The following specific provisioning profiles can be defined:¶
Refers to a set of policies related to the encryption setup that can be applied when provisioning an AC.¶
Refers to a set of policies, such as classification, marking, and actions (e.g., [RFC3644]).¶
Refers to a set of Bidirectional Forwarding Detection (BFD) policies [RFC5880] that can be invoked when building an AC.¶
Refers to the policies that apply to the forwarding of packets conveyed within an AC. Such policies may consist, for example, of applying Access Control Lists (ACLs).¶
Refers to a set of routing policies that will be invoked (e.g., BGP policies) when building an AC.¶
All the abovementioned profiles are uniquely identified by the NETCONF/RESTCONF server by an identifier. To ease referencing these profiles by other data models, specific typedefs are defined for each of these profiles. Likewise, an attachment circuit reference typedef is defined when referencing a (global) attachment circuit by its name is required. These typedefs SHOULD be used when other modules need a reference to one of these profiles or attachment circuits.¶
The 'ac-group-profile' defines reusable parameters for a set of ACes. Each profile is identified by 'name'. Some of the data nodes can be adjusted at the 'ac'. These adjusted values take precedence over the global values. The structure of 'ac-group-profile' is similar to the one used to model each 'ac' (Figure 7).¶
The 'placement-constraints' specifies the placement constraints of an AC. For example, this container can be used to request avoiding to connecting two ACes to the same PE. The full set of supported constraints is defined in [RFC9181] (see 'placement-diversity', in particular).¶
The structure of 'placement-constraints' is shown in Figure 6.¶
The structure of 'attachment-circuits' is shown in Figure 7.¶
The description of the data nodes is as follows:¶
Indicates the name of the customer who ordered the AC.¶
Includes a textual description of the AC.¶
Includes references to the remote endpoints of an attachment circuit [RFC9408].¶
Indicates references to one or more profiles that are defined in Section 4.2.3.¶
Lists the groups to which an AC belongs [RFC9181]. For example, the 'group-id' is used to associate redundancy or protection constraints of ACes. An example is provided in Appendix A.5.¶
Associates a name that uniquely identifies an AC within a service provider network.¶
See Section 4.2.5.1.¶
See Section 4.2.5.2.¶
See Section 4.2.5.3.¶
See Section 4.2.5.7.¶
See Section 4.2.5.8.¶
See Section 4.2.5.9.¶
The 'l2-connection' container (Figure 8) is used to configure the relevant Layer 2 properties of an AC including: encapsulation details and tunnel terminations. For the encapsulation details, the model supports the definition of the type as well as the Identifiers (e.g., VLAN-IDs) of each of the encapsulation-type defined. For the second case, attributes for pseudowire, Virtual Private LAN Service (VPLS), and Virtual eXtensible Local Area Network (VXLAN) tunnel terminations are included. This structure relies upon the common groupings defined in [I-D.boro-opsawg-teas-common-ac].¶
The 'ip-connection' container is used to configure the relevant IP properties of an AC. The model supports the usage of dynamic and static addressing. This structure relies upon the common groupings defined in [I-D.boro-opsawg-teas-common-ac]. Both IPv4 and IPv6 parameters are supported.¶
Figure 9 shows the structure of the IPv4 connection.¶
Figure 10 shows the structure of the IPv6 connection.¶
As shown in the tree depicted in Figure 11, the 'routing-protocols' container defines the required parameters to enable the desired routing features for an AC. One or more routing protocols can be associated with an AC. Such routing protocols will be then enabled between a PE and the customer terminating points. Each routing instance is uniquely identified by the combination of the 'id' and 'type' to accommodate scenarios where multiple instances of the same routing protocol have to be configured on the same link.¶
In addition to static routing, the module supports BGP, OSPF, IS-IS, and RIP. It also includes a reference to the 'routing-profile-identifier' defined in Section 4.2.2, so that additional constraints can be applied to a specific instance of each routing protocol.¶
The static tree structure is shown in Figure 12.¶
The BGP tree structure is shown in Figure 13.¶
Similar to [RFC9182], this version of the ACaaS assumes that parameters specific to the TCP-AO are preconfigured as part of the key chain that is referenced in the ACaaS. No assumption is made about how such a key chain is preconfigured. However, the structure of the key chain should cover data nodes beyond those in [RFC8177], mainly SendID and RecvID (Section 3.1 of [RFC5925]).¶
The OSPF tree structure is shown in Figure 14.¶
The RIP tree structure is shown in Figure 16.¶
'address-family' indicates whether IPv4, IPv6, or both address families are to be activated. For example, this parameter is used to determine whether RIPv2 [RFC2453], RIP Next Generation (RIPng), or both are to be enabled [RFC2080].¶
The model also supports the Virtual Router Redundancy Protocol (VRRP) [RFC5798] on an AC (Figure 17).¶
As shown in the tree depicted in Figure 18, the 'oam' container defines OAM-related parameters of an AC.¶
As shown in the tree depicted in Figure 19, the 'security' container defines a set of AC security parameters.¶
As shown in the tree depicted in Figure 20, the 'service' container defines the following data nodes:¶
Specifies the Layer 2 MTU, in bytes, for the AC.¶
Indicates the inbound bandwidth of the AC (i.e., download bandwidth from the service provider to the customer site).¶
Indicates the outbound bandwidth of the AC (i.e., upload bandwidth from the customer site to the service provider).¶
Both 'svc-pe-to-ce-bandwidth' and 'svc-ce-to-pe-bandwidth' can be represented using the Committed Information Rate (CIR), the Excess Information Rate (EIR), or the Peak Information Rate (PIR). Both reuse the 'bandwidth-per-type' grouping defined in [I-D.boro-opsawg-teas-common-ac].¶
This module uses types defined in [RFC6991] and [RFC9181].¶
<CODE BEGINS> file [email protected] module ietf-bearer-svc { yang-version 1.1; namespace "urn:ietf:params:xml:ns:yang:ietf-bearer-svc"; prefix bearer-svc; import ietf-vpn-common { prefix vpn-common; reference "RFC 9181: A Common YANG Data Model for Layer 2 and Layer 3 VPNs"; } import ietf-ac-common { prefix ac-common; reference "RFC CCCC: A Common YANG Data Model for Attachment Circuits"; } import ietf-ac-svc { prefix ac-svc; reference "RFC XXXX: YANG Service Data Models for Attachment Circuits"; } organization "IETF OPSAWG (Operations and Management Area Working Group)"; contact "WG Web: <https://datatracker.ietf.org/wg/opsawg/> WG List: <mailto:[email protected]> Editor: Mohamed Boucadair <mailto:[email protected]> Author: Richard Roberts <mailto:[email protected]> Author: Oscar Gonzalez de Dios <mailto:[email protected]> Author: Samier Barguil <mailto:[email protected]> Author: Bo Wu <mailto:[email protected]>"; description "This YANG module defines a generic YANG model for exposing network bearers as a service. Copyright (c) 2023 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 xxx; see the RFC itself for full legal notices."; revision 2022-11-30 { description "Initial revision."; reference "RFC xxxx: A YANG Service Data Model for Attachment Circuits"; } // Identities identity identification-type { description "Base identity for identification of bearers."; } identity device-id { base identification-type; description "Identification of bearers based on device.."; } identity site-id { base identification-type; description "Identification of bearers based on site."; } identity site-and-device-id { base identification-type; description "Identification of bearers based on site and device."; } identity custom { base identification-type; description "Identification of bearers based on other custom criteria."; } identity bearer-type { description "Base identity for bearers type."; } identity ethernet { base bearer-type; description "Ethernet."; } identity wireless { base bearer-type; description "Wireless."; } identity network-termination-hint { base vpn-common:placement-diversity; description "A hint about the termination at the network side is provided (e.g., geoproximity)."; } grouping location-information { description "Basic location information"; container location { description "Location of the node."; leaf location-name { type string; description "Provides a location name. This data node can be mapped, e.g., to the 3GPP NRM IOC ManagedElement."; } leaf address { type string; description "Address (number and street) of the device/site."; } leaf postal-code { type string; description "Postal code of the device/site."; } leaf state { type string; description "State of the device/site. This leaf can also be used to describe a region for a country that does not have states."; } leaf city { type string; description "City of the device/site."; } leaf country-code { type string { pattern '[A-Z]{2}'; } description "Country of the device/site. Expressed as ISO ALPHA-2 code."; } } } grouping placement-constraints { description "Constraints related to placement of a bearer."; list constraint { if-feature vpn-common:placement-diversity; key "constraint-type"; description "List of constraints."; leaf constraint-type { type identityref { base vpn-common:placement-diversity; } must "not(derived-from-or-self(current(), " + "'vpn-common:bearer-diverse') or " + "derived-from-or-self(current(), " + "'vpn-common:same-bearer'))" { error-message "Only bearer-specific diversity" + "constraints must be provided."; } description "Diversity constraint type for bearers."; } container target { description "The constraint will apply against this list of groups."; choice target-flavor { description "Choice for the group definition."; case id { list group { key "group-id"; description "List of groups."; leaf group-id { type string; description "The constraint will apply against this particular group ID."; } } } case all-bearers { leaf all-other-bearers { type empty; description "The constraint will apply against all other bearers of a site."; } } case all-groups { leaf all-other-groups { type empty; description "The constraint will apply against all other groups managed by the customer."; } } } } } } container bearers { description "Main container for the bearers."; container placement-constraints { description "Diversity constraint type."; uses placement-constraints; } list bearer { key "id"; description "Maintains a list of bearers."; leaf id { type string; description "An identifier of the bearer."; } leaf description { type string; description "A description of this bearer."; } uses vpn-common:vpn-components-group; leaf op-comment { type string; description "Includes comments that can be shared with operational teams and which may be useful for the activation of a bearer. This may include, for example, information about the building, level, etc."; } container customer-point { description "Base container to link the Bearer existence"; leaf identified-by { type identityref { base identification-type; } description "Attribute used to identify the bearer"; } container device { when "derived-from-or-self(../identified-by, " + "'device-id') or derived-from-or-self(../identified-by, " + "'site-and-device-id')" { description "Only applicable if identified-by is device."; } description "Bearer is linked to device."; leaf device-id { type string; description "Identifier for the device where that bearer belongs."; } uses location-information; } container site { when "derived-from-or-self(../identified-by, " + "'site-id') or derived-from-or-self(../identified-by, " + "'site-and-device-id')" { description "Only applicable if identified-by is site."; } description "Bearer is linked to a site."; leaf site-id { type string; description "Identifier for the site or sites where that bearer belongs."; } uses location-information; } leaf custom-id { when "derived-from-or-self(../identified-by, " + "'custom')" { description "Only enabled id identified-by is custom."; } type string; description "The semantic of this identifier is shared between the customer/provider using out-of-band means."; } } leaf requested-type { type identityref { base bearer-type; } description "Type of the requested bearer (e.g., Ethernet or wireless)"; } leaf bearer-reference { if-feature "vpn-common:bearer-reference"; type string; config false; description "This is an internal reference for the service provider to identify the bearers."; } leaf-list ac-refs { type ac-svc:attachment-circuit-reference; config false; description "Specifies the set of ACes that are bound to the bearer."; } uses ac-common:op-instructions; uses vpn-common:service-status; } } } <CODE ENDS>¶
This module uses types defined in [RFC6991], [RFC9181], [RFC8177], and [I-D.boro-opsawg-teas-common-ac].¶
<CODE BEGINS> file [email protected] module ietf-ac-svc { yang-version 1.1; namespace "urn:ietf:params:xml:ns:yang:ietf-ac-svc"; prefix ac-svc; import ietf-ac-common { prefix ac-common; reference "RFC CCCC: A Common YANG Data Model for Attachment Circuits"; } import ietf-vpn-common { prefix vpn-common; reference "RFC 9181: A Common YANG Data Model for Layer 2 and Layer 3 VPNs"; } import ietf-netconf-acm { prefix nacm; reference "RFC 8341: Network Configuration Access Control Model"; } import ietf-inet-types { prefix inet; reference "RFC 6991: Common YANG Data Types, Section 4"; } import ietf-key-chain { prefix key-chain; reference "RFC 8177: YANG Data Model for Key Chains"; } organization "IETF OPSAWG (Operations and Management Area Working Group)"; contact "WG Web: <https://datatracker.ietf.org/wg/opsawg/> WG List: <mailto:[email protected]> Editor: Mohamed Boucadair <mailto:[email protected]> Author: Richard Roberts <mailto:[email protected]> Author: Oscar Gonzalez de Dios <mailto:[email protected]> Author: Samier Barguil <mailto:[email protected]> Author: Bo Wu <mailto:[email protected]>"; description "This YANG module defines a YANG model for exposing attachment circuits as a service (ACaaS). Copyright (c) 2023 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 2022-11-30 { description "Initial revision."; reference "RFC XXXX: YANG Service Data Models for Attachment Circuits"; } /* A set of typedefs to ease referencing cross-modules */ typedef attachment-circuit-reference { type leafref { path "/ac-svc:attachment-circuits/ac-svc:ac/ac-svc:name"; } description "Defines a reference to an attachment circuit that can be used by other modules."; } typedef ac-group-reference { type leafref { path "/ac-svc:attachment-circuits/ac-group-profile/name"; } description "Defines a reference to an attachment circuit profile."; } typedef encryption-profile-reference { type leafref { path "/ac-svc:specific-provisioning-profiles/ac-svc:valid-provider-identifiers" + "/ac-svc:encryption-profile-identifier/ac-svc:id"; } description "Defines a type to an encryption profile for referencing purposes."; } typedef qos-profile-reference { type leafref { path "/ac-svc:specific-provisioning-profiles/ac-svc:valid-provider-identifiers" + "/ac-svc:qos-profile-identifier/ac-svc:id"; } description "Defines a type to a QoS profile for referencing purposes."; } typedef bfd-profile-reference { type leafref { path "/ac-svc:specific-provisioning-profiles/ac-svc:valid-provider-identifiers" + "/ac-svc:bfd-profile-identifier/ac-svc:id"; } description "Defines a type to a BFD profile for referencing purposes."; } typedef forwarding-profile-reference { type leafref { path "/ac-svc:specific-provisioning-profiles/ac-svc:valid-provider-identifiers" + "/ac-svc:forwarding-profile-identifier/ac-svc:id"; } description "Defines a type to a forwarding profile for referencing purposes."; } typedef routing-profile-reference { type leafref { path "/ac-svc:specific-provisioning-profiles/ac-svc:valid-provider-identifiers" + "/ac-svc:routing-profile-identifier/ac-svc:id"; } description "Defines a type to a routing profile for referencing purposes."; } typedef service-profile-reference { type leafref { path "/ac-svc:service-provisioning-profiles/ac-svc:service-profile-identifier" + "/ac-svc:id"; } description "Defines a type to a service profile for referencing purposes."; } /******************** Reusable groupings ********************/ // Basic Layer 2 connection grouping l2-connection-basic { description "Defines Layer 2 protocols and parameters that can be factorized when provisioning Layer 2 connectivity among multiple ACs."; container encapsulation { description "Container for Layer 2 encapsulation."; leaf type { type identityref { base vpn-common:encapsulation-type; } description "Encapsulation type."; } container dot1q { when "derived-from-or-self(../type, 'vpn-common:dot1q')" { description "Only applies when the type of the tagged interface is 'dot1q'."; } description "Tagged interface."; uses ac-common:dot1q; } container qinq { when "derived-from-or-self(../type, 'vpn-common:qinq')" { description "Only applies when the type of the tagged interface is 'qinq'."; } description "Includes QinQ parameters."; uses ac-common:qinq; } } } // Full Layer 2 connection grouping l2-connection { description "Defines Layer 2 protocols and parameters that are used to enable AC connectivity."; container encapsulation { description "Container for Layer 2 encapsulation."; leaf type { type identityref { base vpn-common:encapsulation-type; } description "Encapsulation type."; } container dot1q { when "derived-from-or-self(../type, 'vpn-common:dot1q')" { description "Only applies when the type of the tagged interface is 'dot1q'."; } description "Tagged interface."; uses ac-common:dot1q; } container priority-tagged { when "derived-from-or-self(../type, " + "'vpn-common:priority-tagged')" { description "Only applies when the type of the tagged interface is 'priority-tagged'."; } description "Priority-tagged interface."; uses ac-common:priority-tagged; } container qinq { when "derived-from-or-self(../type, 'vpn-common:qinq')" { description "Only applies when the type of the tagged interface is 'qinq'."; } description "Includes QinQ parameters."; uses ac-common:qinq; } } choice l2-service { description "The Layer 2 connectivity service can be provided by indicating a pointer to an L2VPN or by specifying a Layer 2 tunnel service."; container l2-tunnel-service { description "Defines a Layer 2 tunnel termination. It is only applicable when a tunnel is required."; uses ac-common:l2-tunnel-service; } case l2vpn { leaf l2vpn-id { type vpn-common:vpn-id; description "Indicates the L2VPN service associated with an Integrated Routing and Bridging (IRB) interface."; } } } leaf bearer-reference { if-feature "vpn-common:bearer-reference"; type string; description "This is an internal reference for the service provider to identify the bearer associated with this AC."; } } // Basic IP connection grouping ip-connection-basic { description "Defines basic IP connection parameters."; container ipv4 { if-feature "vpn-common:ipv4"; description "IPv4-specific parameters."; uses ac-common:ipv4-connection-basic; } container ipv6 { if-feature "vpn-common:ipv6"; description "IPv6-specific parameters."; uses ac-common:ipv6-connection-basic; } } // Full IP connection grouping ip-connection { description "Defines IP connection parameters."; container ipv4 { if-feature "vpn-common:ipv4"; description "IPv4-specific parameters."; uses ac-common:ipv4-connection; } container ipv6 { if-feature "vpn-common:ipv6"; description "IPv6-specific parameters."; uses ac-common:ipv6-connection; } } // Routing protocol list grouping routing-protocol-list { description "List of routing protocols used on the AC."; leaf type { type identityref { base vpn-common:routing-protocol-type; } description "Type of routing protocol."; } list routing-profiles { key "id"; description "Routing profiles."; leaf id { type routing-profile-reference; description "Reference to the routing profile to be used."; } leaf type { type identityref { base vpn-common:ie-type; } description "Import, export, or both."; } } } // BGP Service grouping bgp-svc { description "Configuration specific to BGP."; container peer-groups { description "Configuration for BGP peer-groups"; list peer-group { key "name"; description "List of BGP peer-groups configured on the local system - uniquely identified by peer-group name"; uses ac-common:bgp-peer-group-with-name; leaf local-address { type inet:ip-address; description "The local IP address that will be used to establish the BGP session."; } uses ac-common:bgp-authentication; } } list neighbor { key "id"; description "List of BGP neighbors."; leaf id { type string; description "A neighbor identifier."; } leaf remote-address { type inet:ip-address; description "The remote IP address of this entry's BGP peer. If this leaf is not present, this means that the primary customer IP address is used as remote IP address."; } leaf local-address { type inet:ip-address; description "The local IP address that will be used to establish the BGP session."; } leaf peer-group { type leafref { path "../../peer-groups/peer-group/name"; } description "The peer-group with which this neighbor is associated."; } uses ac-common:bgp-peer-group-without-name; uses ac-common:bgp-authentication; uses vpn-common:service-status; } } // OSPF Service grouping ospf-svc { description "Service configuration specific to OSPF."; uses ac-common:ospf-basic; uses ac-common:ospf-authentication; uses vpn-common:service-status; } // IS-IS Service grouping isis-svc { description "Service configuration specific to IS-IS."; uses ac-common:isis-basic; uses ac-common:isis-authentication; uses vpn-common:service-status; } // RIP Service grouping rip-svc { description "Service configuration specific to RIP routing."; leaf address-family { type identityref { base vpn-common:address-family; } description "Indicates whether IPv4, IPv6, or both address families are to be activated."; } uses ac-common:rip-authentication; uses vpn-common:service-status; } // VRRP Service grouping vrrp-svc { description "Service configuration specific to VRRP."; reference "RFC 5798: Virtual Router Redundancy Protocol (VRRP) Version 3 for IPv4 and IPv6"; leaf address-family { type identityref { base vpn-common:address-family; } description "Indicates whether IPv4, IPv6, or both address families are to be enabled."; } uses vpn-common:service-status; } // Basic routing parameters grouping routing-basic { description "Defines basic parameters for routing protocols."; list routing-protocol { key "id"; description "List of routing protocols used on the AC."; leaf id { type string; description "Unique identifier for the routing protocol."; } uses routing-protocol-list; container bgp { when "derived-from-or-self(../type, 'vpn-common:bgp-routing')" { description "Only applies when the protocol is BGP."; } description "Configuration specific to BGP."; container peer-groups { description "Configuration for BGP peer-groups"; list peer-group { key "name"; description "List of BGP peer-groups configured on the local system - uniquely identified by peer-group name"; uses ac-common:bgp-peer-group-with-name; } } } container ospf { when "derived-from-or-self(../type, " + "'vpn-common:ospf-routing')" { description "Only applies when the protocol is OSPF."; } description "Configuration specific to OSPF."; uses ac-common:ospf-basic; } container isis { when "derived-from-or-self(../type, " + "'vpn-common:isis-routing')" { description "Only applies when the protocol is IS-IS."; } description "Configuration specific to IS-IS."; uses ac-common:isis-basic; } container rip { when "derived-from-or-self(../type, " + "'vpn-common:rip-routing')" { description "Only applies when the protocol is RIP. For IPv4, the model assumes that RIP version 2 is used."; } description "Configuration specific to RIP routing."; leaf address-family { type identityref { base vpn-common:address-family; } description "Indicates whether IPv4, IPv6, or both address families are to be activated."; } } container vrrp { when "derived-from-or-self(../type, " + "'vpn-common:vrrp-routing')" { description "Only applies when the protocol is the Virtual Router Redundancy Protocol (VRRP)."; } description "Configuration specific to VRRP."; leaf address-family { type identityref { base vpn-common:address-family; } description "Indicates whether IPv4, IPv6, or both address families are to be enabled."; } } } } // Full routing parameters grouping routing { description "Defines routing protocols."; list routing-protocol { key "id"; description "List of routing protocols used on the AC."; leaf id { type string; description "Unique identifier for the routing protocol."; } uses routing-protocol-list; container static { when "derived-from-or-self(../type, " + "'vpn-common:static-routing')" { description "Only applies when the protocol is static routing protocol."; } description "Configuration specific to static routing."; container cascaded-lan-prefixes { description "LAN prefixes from the customer."; uses ac-common:ipv4-static-rtg; uses ac-common:ipv6-static-rtg; } } container bgp { when "derived-from-or-self(../type, " + "'vpn-common:bgp-routing')" { description "Only applies when the protocol is BGP."; } description "Configuration specific to BGP."; uses bgp-svc { refine "peer-groups/peer-group/local-address" { config false; } refine "neighbor/local-address" { config false; } } } container ospf { when "derived-from-or-self(../type, " + "'vpn-common:ospf-routing')" { description "Only applies when the protocol is OSPF."; } description "Configuration specific to OSPF."; uses ospf-svc; } container isis { when "derived-from-or-self(../type, " + "'vpn-common:isis-routing')" { description "Only applies when the protocol is IS-IS."; } description "Configuration specific to IS-IS."; uses isis-svc; } container rip { when "derived-from-or-self(../type, " + "'vpn-common:rip-routing')" { description "Only applies when the protocol is RIP. For IPv4, the model assumes that RIP version 2 is used."; } description "Configuration specific to RIP routing."; uses rip-svc; } container vrrp { when "derived-from-or-self(../type, " + "'vpn-common:vrrp-routing')" { description "Only applies when the protocol is the Virtual Router Redundancy Protocol (VRRP)."; } description "Configuration specific to VRRP."; uses vrrp-svc; } } } // Encryption choice grouping encryption-choice { description "Container for the encryption profile."; choice profile { description "Choice for the encryption profile."; case provider-profile { leaf provider-profile { type encryption-profile-reference; description "Reference to a provider encryption profile."; } } case customer-profile { leaf customer-key-chain { type key-chain:key-chain-ref; description "Customer-supplied key chain."; } } } } // Basic security parameters grouping ac-security-basic { description "AC-specific security parameters."; container encryption { if-feature "vpn-common:encryption"; description "Container for AC security encryption."; leaf enabled { type boolean; description "If set to 'true', traffic encryption on the connection is required. Otherwise, it is disabled."; } leaf layer { when "../enabled = 'true'" { description "Included only when encryption is enabled."; } type enumeration { enum layer2 { description "Encryption occurs at Layer 2."; } enum layer3 { description "Encryption occurs at Layer 3. For example, IPsec may be used when a customer requests Layer 3 encryption."; } } description "Indicates the layer on which encryption is applied."; } } container encryption-profile { when "../encryption/enabled = 'true'" { description "Indicates the layer on which encryption is enabled."; } description "Container for the encryption profile."; uses encryption-choice; } } // Bandwith grouping bandwidth { description "Container for bandwidth."; container svc-pe-to-ce-bandwidth { if-feature "vpn-common:inbound-bw"; description "From the customer site's perspective, the inbound bandwidth of the AC or download bandwidth from the service provider to the site."; uses ac-common:bandwidth-per-type; } container svc-ce-to-pe-bandwidth { if-feature "vpn-common:outbound-bw"; description "From the customer site's perspective, the outbound bandwidth of the AC or upload bandwidth from the CE to the PE."; uses ac-common:bandwidth-per-type; } } // Basic AC parameter grouping ac-basic { description "Grouping for basic parameters for an attachment circuit."; leaf id { type string; description "An identifier of the AC."; } container l2-connection { description "Defines Layer 2 protocols and parameters that are required to enable AC connectivity."; uses l2-connection-basic; } container ip-connection { description "Defines IP connection parameters."; uses ip-connection-basic; } container routing-protocols { description "Defines routing protocols."; uses routing-basic; } container oam { description "Defines the Operations, Administration, and Maintenance (OAM) mechanisms used."; container bfd { if-feature "vpn-common:bfd"; description "Container for BFD."; uses ac-common:bfd; } } container security { description "AC-specific security parameters."; uses ac-security-basic; } container service { description "AC-specific bandwith parameters."; leaf mtu { type uint32; units "bytes"; description "Layer 2 MTU."; } uses bandwidth; } } // Full AC parameters grouping ac { description "Grouping for an attachment circuit."; leaf name { type string; description "A name of the AC. Data models that need to reference an attachment circuits should use attachment-circuit-reference."; } leaf-list service-profile { type service-profile-reference; description "A reference to a service profile."; } container l2-connection { description "Defines Layer 2 protocols and parameters that are required to enable AC connectivity."; uses l2-connection; } container ip-connection { description "Defines IP connection parameters."; uses ip-connection; } container routing-protocols { description "Defines routing protocols."; uses routing; } container oam { description "Defines the OAM mechanisms used."; container bfd { if-feature "vpn-common:bfd"; description "Container for BFD."; uses ac-common:bfd; uses vpn-common:service-status; } } container security { description "AC-specific security parameters."; uses ac-security-basic; } container service { description "AC-specific bandwith parameters."; uses bandwidth; } } /******************** Main AC containers ********************/ container specific-provisioning-profiles { description "Contains a set of valid profiles to reference for an AC."; uses ac-common:ac-profile-cfg; } container service-provisioning-profiles { description "Contains a set of valid profiles to reference for an AC."; list service-profile-identifier { key "id"; description "List of generic service profile identifiers."; leaf id { type string; description "Identification of the service profile to be used. The profile only has significance within the service provider's administrative domain."; } } nacm:default-deny-write; } container attachment-circuits { description "Main container for the attachment circuits."; list ac-group-profile { key "name"; description "Maintains a list of profiles that are shared among a set of ACs."; uses ac; } container placement-constraints { description "Diversity constraint type."; uses vpn-common:placement-constraints; } list ac { key "name"; description "Global provisioning of attachment circuits."; leaf customer-name { type string; description "Indicates the name of the customer that requested this AC."; } leaf description { type string; description "Associates a description with an AC."; } uses ac-common:op-instructions; leaf-list peer-sap-id { type string; description "One or more peer SAPs can be indicated."; } leaf-list ac-group-profile { type ac-group-reference; description "A reference to an AC profile."; } list group { key "group-id"; description "List of group-ids."; leaf group-id { type string; description "Indicates the group-id to which the network access belongs."; } leaf precedence { type identityref { base ac-common:precedence-type; } description "Defines redundancy of an AC."; } } uses ac; } } } <CODE ENDS>¶
The YANG modules specified in this document define schema for data that is designed to be accessed via network management protocols such as NETCONF [RFC6241] or RESTCONF [RFC8040]. The lowest NETCONF layer is the secure transport layer, and the mandatory-to-implement secure transport is Secure Shell (SSH) [RFC6242]. The lowest RESTCONF layer is HTTPS, and the mandatory-to-implement secure transport is TLS [RFC8446].¶
The Network Configuration Access Control Model (NACM) [RFC8341] provides the means to restrict access for particular NETCONF or RESTCONF users to a preconfigured subset of all available NETCONF or RESTCONF protocol operations and content.¶
There are a number of data nodes defined in these YANG modules that are writable/creatable/deletable (i.e., config true, which is the default). These data nodes may be considered sensitive or vulnerable in some network environments. Write operations (e.g., edit-config) and delete operations to these data nodes without proper protection or authentication can have a negative effect on network operations. These are the subtrees and data nodes and their sensitivity/ vulnerability in the "ietf-ac-svc" module:¶
Some of the readable data nodes in these YANG module may be considered sensitive or vulnerable in some network environments. It is thus important to control read access (e.g., via get, get-config, or notification) to these data nodes. These are the subtrees and data nodes and their sensitivity/vulnerability in the "ietf-ac-svc" module:¶
An attacker can retrieve privacy-related information, which can be used to track a customer. Disclosing such information may be considered a violation of the customer-provider trust relationship.¶
An attacker can retrieve the cryptographic keys protecting the underlying connectivity services (routing, in particular). These keys could be used to inject spoofed routing advertisements.¶
Several data nodes ('bgp', 'ospf', 'isis', and 'rip') rely upon [RFC8177] for authentication purposes. As such, the AC service module inherits the security considerations discussed in Section 5 of [RFC8177]. Also, these data nodes support supplying explicit keys as strings in ASCII format. The use of keys in hexadecimal string format would afford greater key entropy with the same number of key- string octets. However, such a format is not included in this version of the AC service model, because it is not supported by the underlying device modules (e.g., [RFC8695]).¶
IANA is requested to register the following URIs in the "ns" subregistry within the "IETF XML Registry" [RFC3688]:¶
URI: urn:ietf:params:xml:ns:yang:ietf-bearer-svc Registrant Contact: The IESG. XML: N/A; the requested URI is an XML namespace. URI: urn:ietf:params:xml:ns:yang:ietf-ac-svc Registrant Contact: The IESG. XML: N/A; the requested URI is an XML namespace.¶
IANA is requested to register the following YANG modules in the "YANG Module Names" subregistry [RFC6020] within the "YANG Parameters" registry.¶
Name: ietf-bearer-svc Maintained by IANA? N Namespace: urn:ietf:params:xml:ns:yang:ietf-bearer-svc Prefix: bearer-svc Reference: RFC xxxx Name: ietf-ac-svc Maintained by IANA? N Namespace: urn:ietf:params:xml:ns:yang:ietf-ac-svc Prefix: ac-svc Reference: RFC xxxx¶
This section includes a non-exhaustive list of examples to illustrate the use of the service models defined in this document.¶
An example of a request message body to create a bearer is shown in Figure 21.¶
A bearer-reference is then generated by the controller for this bearer. Figure 22 shows the example of a response message body that is sent by the controller to reply to a GET request:¶
An example of a request message body to create a simple AC over an existing bearer is shown in Figure 23. The bearer reference is assumed to be known to both the customer and the network provider. Such a reference can be retrieved, e.g., following the example described in Appendix A.1 or using other means (including, exchanged out-of-band or via proprietary APIs).¶
Figure 24 shows the message body of a response received from the controller and which indicates the "cvlan-id" that was assigned for the requested AC.¶
An example of a request to create a simple AC, when the peer SAP is known, is shown in Figure 25. In this example, the peer SAP identifier points to an identifier of a service function. The (topological) location of that service function is assumed to be known to the network controller. For example, this can be determined as part of an on-demand procedure to instantiate a service function in a cloud. That instantiated service function can be granted a connectivity service via the provider network.¶
Let’s consider the example of an eNodeB (CE) that is directly connected to the access routers of the mobile backhaul (see Figure 26). In this example, two ACs are needed to service the eNodeB (e.g., distinct VLANs for Control and User Planes).¶
An example of a request to create the ACs to service the eNodeB is shown in Figure 27. This example assumes that static addressing is used for both ACs.¶
Figure 28 shows the message body of a response received from the controller.¶
The example shown Figure 28 is not optimal as it includes many redundant data. Figure 29 shows a more compact request that factorizes all the redundant data.¶
A customer may request adding a new AC by simply referring to an existing per-node AC profile as shown in Figure 30. This AC inherits all the data that was enclosed in the indicated per-node AC profile (IP addressing, routing, etc.).¶
When multiple ACs are requested by the same customer for the same site, the request can tag one of these ACs as "primary" and the other ones as "secondary". An example of such a request is shown in Figure 32. In this example, both ACs are bound to the same "group-id", and the "precedence" data node is set as a function of the intended role of each AC (primary or secondary).¶
Figure 33 shows an example of CEs that are interconnected by a service provider network.¶
Figure 34 depicts an example of the message body of a response to a request to instantiate the various ACs that are shown in Figure 33.¶
This example shows how the AC service model complements [I-D.ietf-teas-ietf-network-slice-nbi-yang] to connect a site to a slice service.¶
First, Figure 35 describes the end-to-end network topology as well the orchestration scopes:¶
Network Functions are deployed within each site.¶
Figure 36 describes the logical connectivity enforced thanks to both IETF Network Slice and Attachment Circuit models.¶
Figure 37 shows the message body of the request to create the required ACs using the Attachment Circuit module.¶
Figure 38 shows the message body of a reponse received from the controller.¶
Figure 39 shows the message body of the request to create the a slice service bound to the ACs created using Figure 37. Only references to these ACs are included in the Slice Service request. This example assumes that the module that "glues" the service/AC is also supported by the NSC.¶
This example (Figure 40) shows how the AC service model can be used to connect a Cloud Infrastructure to a service provider network. This example makes the following assumptions:¶
Figure 41 illustrates the pre-provisioning logic for the physical connection to the Cloud Provider. After this connection is delivered to the service provider, the network inventory is updated with "bearer-reference" set to the value of the "Connection Identifier".¶
Next, API workflows can be initiated:¶
Figure 42 shows the message body of the request to create the required ACs to connect the Cloud Provider Virtualized (VM) using the Attachment Circuit module.¶
Figure 43 shows the message body of the response received from the provider. Note that this Cloud Provider mandates the use of MD5 authentication for establishing BGP connections.¶
The module supports MD5 to basically accommodate the installed BGP base (including by some Cloud Providers). Note that MD5 suffers from the security weaknesses discussed in Section 2 of [RFC6151] and Section 2.1 of [RFC6952].¶
Thanks to TBC for the comments.¶