RFC 8466
A YANG Data Model for Layer 2 Virtual Private Network (L2VPN) Service Delivery
Part 1 of 30 ๐ RFC 8466 (A YANG Data Model for Layer 2 VPN Service Delivery) ๐
Okay bestie, this one is a Standards Track document from the IETF, and it's all about a YANG data model for L2VPN service delivery โจ. It was published in October 2018 as RFC 8466 ๐ฆ. The ISSN is 2070-1721 ๐ .
It was written by B. Wen (Comcast), G. Fioccola, Ed. (Telecom Italia), C. Xie (China Telecom), and L. Jalil (Verizon) ๐ซถ. Nothing here obsoletes or updates any earlier RFC ๐ธ.
The Abstract ๐
okay so the gist is: this doc defines a YANG data model that you can use to configure a Layer 2 provider-provisioned VPN service ๐. A management system takes this model as input and then generates the specific configuration models to set up the different network elements that actually deliver the service ๐ง. How the network elements get configured is out of scope for this document, so don't look for it here ๐.
The model covers point-to-point Virtual Private Wire Services (VPWSs) and multipoint Virtual Private LAN Services (VPLSs), both using Pseudowires signaled with LDP and BGP, as described in RFCs 4761 and 6624 โจ. It also conforms to the Network Management Datastore Architecture defined in RFC 8342 ๐.
Status of This Memo ๐
This is an Internet Standards Track document ๐. It's a product of the IETF, it represents the IETF community's consensus, it got public review, and the IESG approved it for publication ๐
. If you want more on Internet Standards, check Section 2 of RFC 7841 โจ. Errata and feedback info live at https://www.rfc-editor.org/info/rfc8466 ๐ฆ.
Copyright Notice ๐
Copyright (c) 2018 IETF Trust and the persons identified as the document authors. All rights reserved ๐ธ. This doc is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) as in effect on the publication date ๐ซถ. Read those carefully, bestie, because they spell out your rights ๐. Code Components pulled out of this doc must include Simplified BSD License text, as described in Section 4.e of the Trust Legal Provisions, and they come without warranty as described in the Simplified BSD License ๐ฅ.
Table of Contents ๐ง
Here's the map of the whole doc, with page numbers, so you can scroll to the good stuff ๐บ๏ธโจ
1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 4
1.1. Terminology . . . . . . . . . . . . . . . . . . . . . . . 4
1.1.1. Requirements Language . . . . . . . . . . . . . . . . 5
1.2. Tree Diagrams . . . . . . . . . . . . . . . . . . . . . . 5
2. Definitions . . . . . . . . . . . . . . . . . . . . . . . . . 5
3. The Layer 2 VPN Service Model . . . . . . . . . . . . . . . . 7
3.1. Layer 2 VPN Service Types . . . . . . . . . . . . . . . . 7
3.2. Layer 2 VPN Physical Network Topology . . . . . . . . . . 7
4. Service Data Model Usage . . . . . . . . . . . . . . . . . . 9
5. Design of the Data Model . . . . . . . . . . . . . . . . . . 11
5.1. Features and Augmentation . . . . . . . . . . . . . . . . 20
5.2. VPN Service Overview . . . . . . . . . . . . . . . . . . 20
5.2.1. VPN Service Type . . . . . . . . . . . . . . . . . . 21
5.2.2. VPN Service Topologies . . . . . . . . . . . . . . . 22
5.2.2.1. Route Target Allocation . . . . . . . . . . . . . 22
5.2.2.2. Any-to-Any . . . . . . . . . . . . . . . . . . . 22
5.2.2.3. Hub-and-Spoke . . . . . . . . . . . . . . . . . . 22
5.2.2.4. Hub-and-Spoke Disjoint . . . . . . . . . . . . . 23
5.2.3. Cloud Access . . . . . . . . . . . . . . . . . . . . 24
5.2.4. Extranet VPNs . . . . . . . . . . . . . . . . . . . . 27
5.2.5. Frame Delivery Service . . . . . . . . . . . . . . . 28
5.3. Site Overview . . . . . . . . . . . . . . . . . . . . . . 30
5.3.1. Devices and Locations . . . . . . . . . . . . . . . . 31
5.3.2. Site Network Accesses . . . . . . . . . . . . . . . . 32
5.3.2.1. Bearer . . . . . . . . . . . . . . . . . . . . . 33
5.3.2.2. Connection . . . . . . . . . . . . . . . . . . . 33
5.4. Site Roles . . . . . . . . . . . . . . . . . . . . . . . 38
5.5. Site Belonging to Multiple VPNs . . . . . . . . . . . . . 38
5.5.1. Site VPN Flavors . . . . . . . . . . . . . . . . . . 38
5.5.1.1. Single VPN Attachment: site-vpn-flavor-single . . 39
5.5.1.2. Multi-VPN Attachment: site-vpn-flavor-multi . . . 39
5.5.1.3. NNI: site-vpn-flavor-nni . . . . . . . . . . . . 40
5.5.1.4. E2E: site-vpn-flavor-e2e . . . . . . . . . . . . 41
5.5.2. Attaching a Site to a VPN . . . . . . . . . . . . . . 41
5.5.2.1. Referencing a VPN . . . . . . . . . . . . . . . . 41
5.5.2.2. VPN Policy . . . . . . . . . . . . . . . . . . . 43
5.6. Deciding Where to Connect the Site . . . . . . . . . . . 48
5.6.1. Constraint: Device . . . . . . . . . . . . . . . . . 49
5.6.2. Constraint/Parameter: Site Location . . . . . . . . . 50
5.6.3. Constraint/Parameter: Access Type . . . . . . . . . . 51
5.6.4. Constraint: Access Diversity . . . . . . . . . . . . 52
5.7. Route Distinguisher and Network Instance Allocation . . . 53
5.8. Site-Network-Access Availability . . . . . . . . . . . . 54
5.9. SVC MTU . . . . . . . . . . . . . . . . . . . . . . . . . 56
5.10. Service . . . . . . . . . . . . . . . . . . . . . . . . . 56
5.10.1. Bandwidth . . . . . . . . . . . . . . . . . . . . . 56
5.10.2. QoS . . . . . . . . . . . . . . . . . . . . . . . . 57
5.10.2.1. QoS Classification . . . . . . . . . . . . . . . 57
5.10.2.2. QoS Profile . . . . . . . . . . . . . . . . . . 58
5.10.3. Support for BUM . . . . . . . . . . . . . . . . . . 59
5.11. Site Management . . . . . . . . . . . . . . . . . . . . . 60
5.12. MAC Loop Protection . . . . . . . . . . . . . . . . . . . 61
5.13. MAC Address Limit . . . . . . . . . . . . . . . . . . . . 61
5.14. Enhanced VPN Features . . . . . . . . . . . . . . . . . . 62
5.14.1. Carriers' Carriers . . . . . . . . . . . . . . . . . 62
5.15. External ID References . . . . . . . . . . . . . . . . . 63
5.16. Defining NNIs and Inter-AS Support . . . . . . . . . . . 64
5.16.1. Defining an NNI with the Option A Flavor . . . . . . 66
5.16.2. Defining an NNI with the Option B Flavor . . . . . . 70
5.16.3. Defining an NNI with the Option C Flavor . . . . . . 73
5.17. Applicability of L2SM in Inter-provider and Inter-domain
Orchestration . . . . . . . . . . . . . . . . . . . . . . 74
6. Interaction with Other YANG Modules . . . . . . . . . . . . . 76
7. Service Model Usage Example . . . . . . . . . . . . . . . . . 77
8. YANG Module . . . . . . . . . . . . . . . . . . . . . . . . . 82
9. Security Considerations . . . . . . . . . . . . . . . . . . . 152
10. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 153
11. References . . . . . . . . . . . . . . . . . . . . . . . . . 153
11.1. Normative References . . . . . . . . . . . . . . . . . . 153
11.2. Informative References . . . . . . . . . . . . . . . . . 155
Acknowledgements . . . . . . . . . . . . . . . . . . . . . . . . 157
Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . 158
1. Introduction ๐ฆ
okay so this doc defines a YANG data model for the Layer 2 VPN (L2VPN) service ๐. The model has service configuration elements that communication protocols between customers and network operators can use ๐ซถ. Those same elements can also feed automated control and configuration apps, and they can generate specific configuration models to configure the different network elements that deliver the service ๐ง. How that network-element configuration actually happens is out of scope here, so bestie, that's a different story ๐.
If you want the deeper scoop on how services get modeled in YANG, and how "customer service models" like this one relate to configuration models, check out [RFC8309] and [RFC8199] ๐โจ. Sections 4 and 6 also explain how this service model could be used and how it fits into the overall modeling architecture ๐ .
The model supports point-to-point VPWSs and multipoint VPLSs that use Pseudowires signaled with LDP and BGP, as described in [RFC4761] and [RFC6624] ๐ธ. It also conforms to the Network Management Datastore Architecture (NMDA) [RFC8342] ๐.
1.1. Terminology ๐
The following terms are defined in [RFC6241] and are not redefined here ๐:
- client
- configuration data
- server
- state data
The following terms are defined in [RFC7950] and are not redefined here ๐ง:
- augment
- data model
- data node
The terminology for describing YANG data models is found in [RFC7950] โจ.
1.1.1. Requirements Language ๐ฅ
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 ๐. (Bestie, these only count when they're in ALL CAPS, so no sneaky lowercase "must" tricks ๐ โโ๏ธ.)
1.2. Tree Diagrams ๐
Tree diagrams used in this document follow the notation defined in [RFC8340] ๐ฆ.
Part 1 of 30 done! ๐ Stay tuned for part 2, bestie, it's going to be SO good ๐ญโจ
2. Definitions ๐
okay bestie, let's get the vocab down first ๐ this doc uses these terms:
Service Provider (SP): the organization (usually a commercial business) that runs the network and sells VPN services to clients and customers ๐
Customer Edge (CE) Device: equipment that belongs to one specific customer and plugs straight into one or more PE devices through Attachment Circuits (ACs). A CE usually lives at the customer's premises and is usually dedicated to a single VPN, though it can serve several VPNs if each one has its own ACs. CE devices can be routers, bridges, switches, or hosts ๐
Provider Edge (PE) Device: equipment the SP manages that can serve multiple VPNs for different customers. It connects directly to one or more CE devices through ACs. A PE usually sits at an SP Point of Presence (POP) and is managed by the SP ๐ธ
Virtual Private LAN Service (VPLS): a provider service that copies the full functionality of a traditional LAN โจ It lets you connect several LAN segments over a packet switched network (PSN), and the remote LAN segments act like one single LAN. iconic ๐ฆ
Virtual Private Wire Service (VPWS): a point-to-point circuit (a link) connecting two CE devices. The link is set up as a logical Layer 2 circuit through a PSN. The CE on the customer side hooks up to a PE on the provider side through an AC, which can be either a physical or a logical circuit ๐ง The big difference from VPLS is that VPLS is point-to-multipoint while VPWS is point-to-point. Some implementations use a bunch of VPWSs together to build a multi-site L2VPN network ๐
Pseudowire (PW): an emulation of a native service running over a PSN. The native service can be ATM, Frame Relay, Ethernet, low-rate Time-Division Multiplexing (TDM), or Synchronous Optical Network / Synchronous Digital Hierarchy (SONET/SDH). The PSN can be MPLS, IP (either IPv4 or IPv6), or Layer 2 Tunneling Protocol version 3 (L2TPv3) ๐
MAC-VRF: a Virtual Routing and Forwarding table for Media Access Control (MAC) addresses on a PE. People sometimes also call it a Virtual Switching Instance (VSI) ๐
UNI: User-to-Network Interface. This is the physical demarcation point between the customer's area of responsibility and the provider's area of responsibility ๐ซถ
NNI: Network-to-Network Interface. A reference point marking the boundary between two networks that run as separate administrative domains. The two networks can belong to the same provider or to two different providers ๐
This document also uses these abbreviations:
- BSS: Business Support System
- BUM: Broadcast, Unknown Unicast, or Multicast
- CoS: Class of Service
- LAG: Link Aggregation Group
- LLDP: Link Layer Discovery Protocol
- OAM: Operations, Administration, and Maintenance
- OSS: Operations Support System
- PDU: Protocol Data Unit
- QoS: Quality of Service
3. The Layer 2 VPN Service Model ๐ธ
okay so a Layer 2 VPN (L2VPN) service is basically a group of sites that are allowed to swap traffic with each other over a shared infrastructure built on one common technology ๐ค The L2VPN Service Model (L2SM) in this doc gives everyone a shared understanding of how that service is supposed to get deployed on top of the shared infrastructure. no cap, it's the blueprint everyone agrees on ๐
This doc writes the L2SM in the YANG data modeling language [RFC7950]. It's a formal language that humans can read and software can parse, and it works with protocols like the Network Configuration Protocol (NETCONF) [RFC6241] and RESTCONF [RFC8040] ๐
This service model only covers VPWS-based VPNs and VPLS-based VPNs as described in [RFC4761] and [RFC6624], plus Ethernet VPNs (EVPNs) as described in [RFC7432] ๐ฆ
3.1. Layer 2 VPN Service Types
from a technology point of view, the basic L2VPN service types are:
- Point-to-point VPWSs that use LDP-signaled Pseudowires or L2TP-signaled Pseudowires [RFC6074] ๐
- Multipoint VPLSs that use LDP-signaled Pseudowires or L2TP-signaled Pseudowires [RFC6074] โจ
- Multipoint VPLSs that use a BGP control plane as described in [RFC4761] and [RFC6624] ๐
- IP-only LAN Services (IPLSs), which are a functional subset of VPLS services [RFC7436] ๐ง
- BGP MPLS-based EVPN services as described in [RFC7432] and [RFC7209] ๐
- EVPN VPWSs as specified in [RFC8214] ๐
3.2. Layer 2 VPN Physical Network Topology
okay, Figure 1 shows what a typical SP's physical network looks like ๐บ๏ธ Most SPs have built an IP, MPLS, or Segment Routing (SR) multi-service core. Ingress Layer 2 service frames get mapped onto either an Ethernet Pseudowire (for example, Pseudowire Emulation Edge to Edge (PWE3)) or a Virtual Extensible Local Area Network (VXLAN) PE-to-PE tunnel. The details of these tunneling mechanisms are up to the provider and are not part of the L2SM ๐
an L2VPN gives you end-to-end Layer 2 connectivity across that multi-service core between two or more customer locations or a collection of sites. ACs sit between CE devices and PE devices, and they backhaul Layer 2 service frames from the customer across the access network to the provider network or a remote site ๐ฃ๏ธ The demarcation point (aka the UNI) between the customer and the SP can go in one of two spots: (1) between the customer nodes and the CE device, or (2) between the CE device and the PE device. The actual bearer connection between the CE and the PE gets described in the L2SM ๐ซถ
the SP can also pick a "seamless MPLS" approach to stretch the PWE3 or VXLAN tunnel between sites ๐
and the SP can use Multiprotocol BGP (MP-BGP) to autodiscover and signal the PWE3 or VXLAN tunnel endpoints ๐ฅ
Site A | |Site B
--- ---- | VXLAN/PW | ---
| | | | |<------------------------>| | |
| C +---+ CE | | | | C |
| | | | | --------- | | |
--- ----\ | ( ) | /---
\ -|-- ( ) -|-- ---- /
\| | ( ) | | | |/
| PE +---+ IP/MPLS/SR +---+ PE +---+ CE |
/| | ( Network ) | | | |\
/ ---- ( ) ---- ---- \
--- ----/ ( ) \---
| | | | ----+---- | |
| C +---+ CE | | | C |
| | | | --+-- | |
--- ---- | PE | ---
--+--
| Site C
--+--
| CE |
--+--
|
--+--
| C |
-----
Figure 1: Reference Network for the Use of the L2SM
now the customer's point of view is totally different ๐ญ From where they sit, all the CE devices look like they're connected over one simulated LAN, as Figure 2 shows. Broadcast and multicast packets get sent to every participant in the same bridge domain ๐
CE---+----+-----+---CE
| | |
| | |
| | |
CE---+ CE +---CE
Figure 2: Customer's View of the L2VPN
4. Service Data Model Usage ๐ง
the L2SM gives you an abstracted interface to request, configure, and manage the parts of an L2VPN service. A customer who buys connectivity and other services from an SP uses the model to talk to that SP ๐ฌ
the usual move is feeding the model into an orchestration layer, which turns it into configuration commands for the network elements that deliver or enable the service โ๏ธ Those network elements can be routers, but they can also be servers (like Authentication, Authorization, and Accounting (AAA) servers) that the network needs ๐ฅ๏ธ
you can configure network elements with the Command Line Interface (CLI) or with any other configuration (aka "southbound") interface, like NETCONF [RFC6241] combined with device-specific and protocol-specific YANG data models ๐ง
Figure 3 shows this usage in action, and [RFC8309] and [RFC8199] explain it in more detail. [RFC8309] also clarifies how the orchestration job gets split between a "service orchestrator" and a "network orchestrator" ๐งฉ The model isn't limited to this one example: any component of the management system can use it, but network elements can't use it directly ๐ โโ๏ธ
you should compare the usage and structure of this model with the Layer 3 VPN service model defined in [RFC8299] ๐
----------------------------
| Customer Service Requester |
----------------------------
|
|
L2SM |
|
|
-----------------------
| Service Orchestration |
-----------------------
|
| Service +-------------+
| Delivery +------>| Application |
| Model | | BSS/OSS |
| V +-------------+
-----------------------
| Network Orchestration |
-----------------------
| |
+----------------+ |
| Config manager | |
+----------------+ | Device
| | Models
| |
--------------------------------------------
Network
+++++++
+ AAA +
+++++++
++++++++ Bearer ++++++++ ++++++++ ++++++++
+ CE A + ----------- + PE A + + PE B + ---- + CE B +
++++++++ Connection ++++++++ ++++++++ ++++++++
Site A Site B
Figure 3: Reference Architecture for the Use of the L2SM
the Metro Ethernet Forum (MEF) [MEF-6] also built an architecture for network management and operations ๐๏ธ But MEF's work covers every part of lifecycle service orchestration, including billing, Service Level Agreements (SLAs), order management, and lifecycle management. The IETF's service model work is usually smaller and gives you a simple, self-contained service YANG module ๐ท See [RFC8309] for more details.
5. Design of the Data Model ๐
the L2SM is set up so the provider can list multiple circuits of different service types for the same customer ๐ A circuit is an end-to-end connection between two or more customer locations.
the YANG module splits into two main containers: "vpn-services" and "sites" ๐ซง The "vpn-svc" container under vpn-services holds the global parameters for a specific customer's VPN service ๐
A site has at least one network access ๐ (these are the site network accesses that give the site its way in, as defined in Section 5.3.2 ๐), and if it's multihoming there can be more than one ๐ฆ for that extra redundancy energy ๐ .
The site gets attached to its network access through a bearer, with a Layer 2 connection sitting on top โจ. Here's the tea: the bearer covers the properties of the attachment that live below Layer 2 ๐ธ, while the connection covers the Layer 2 protocol-oriented properties ๐ง. Two different vibes, one attachment ๐ซถ. The bearer may be allocated dynamically by the SP ๐, and the customer may hand over some constraints or parameters to drive where it gets placed ๐.
Traffic exchanges get authorized through what we call a VPN policy or VPN topology ๐. It's the thing that defines the routing exchange rules between sites ๐ญ, and it's giving main character energy ngl ๐ .
End-to-end multi-segment connectivity can be realized by mixing per-site connectivity with per-segment connectivity across the different segments ๐ฅ, which is seriously iconic ๐ฆ.
Figure 4 shows the overall structure of the YANG module: ๐
Okay bestie, here's the whole tree, straight from the module. It's giving organized ๐ณโจ
module: ietf-l2vpn-svc
+--rw l2vpn-svc
+--rw vpn-profiles
| +--rw valid-provider-identifiers
| +--rw cloud-identifier* string{cloud-access}?
| +--rw qos-profile-identifier* string
| +--rw bfd-profile-identifier* string
| +--rw remote-carrier-identifier* string
+--rw vpn-services
| +--rw vpn-service* [vpn-id]
| +--rw vpn-id svc-id
| +--rw vpn-svc-type? identityref
| +--rw customer-name? string
| +--rw svc-topo? identityref
| +--rw cloud-accesses {cloud-access}?
| | +--rw cloud-access* [cloud-identifier]
| | +--rw cloud-identifier
| | | -> /l2vpn-svc/vpn-profiles/
| | | valid-provider-identifiers/cloud-identifier
| | +--rw (list-flavor)?
| | +--:(permit-any)
| | | +--rw permit-any? empty
| | +--:(deny-any-except)
| | | +--rw permit-site*
| | | : -> /l2vpn-svc/sites/site/site-id
| | +--:(permit-any-except)
| | +--rw deny-site*
| | -> /l2vpn-svc/sites/site/site-id
| +--rw frame-delivery {frame-delivery}?
| | +--rw customer-tree-flavors
| | | +--rw tree-flavor* identityref
| | +--rw bum-frame-delivery
| | | +--rw bum-frame-delivery* [frame-type]
| | | +--rw frame-type identityref
| | | +--rw delivery-mode? identityref
| | +--rw multicast-gp-port-mapping identityref
| +--rw extranet-vpns {extranet-vpn}?
| | +--rw extranet-vpn* [vpn-id]
| | +--rw vpn-id svc-id
| | +--rw local-sites-role? identityref
| +--rw ce-vlan-preservation boolean
| +--rw ce-vlan-cos-preservation boolean
| +--rw carrierscarrier? boolean {carrierscarrier}?
+--rw sites
+--rw site* [site-id]
+--rw site-id string
+--rw site-vpn-flavor? identityref
+--rw devices
| +--rw device* [device-id]
| +--rw device-id string
| +--rw location
| | -> ../../../locations/location/location-id
| +--rw management
| +--rw transport? identityref
| +--rw address? inet:ip-address
+--rw management
| +--rw type identityref
+--rw locations
| +--rw location* [location-id]
| +--rw location-id string
| +--rw address? string
| +--rw postal-code? string
| +--rw state? string
| +--rw city? string
| +--rw country-code? string
+--rw site-diversity {site-diversity}?
| +--rw groups
| +--rw group* [group-id]
| +--rw group-id string
+--rw vpn-policies
| +--rw vpn-policy* [vpn-policy-id]
| +--rw vpn-policy-id string
| +--rw entries* [id]
| +--rw id string
| +--rw filters
| | +--rw filter* [type]
| | +--rw type identityref
| | +--rw lan-tag* uint32 {lan-tag}?
| +--rw vpn* [vpn-id]
| +--rw vpn-id
| | -> /l2vpn-svc/vpn-services/
| | vpn-service/vpn-id
| +--rw site-role? identityref
+--rw service
| +--rw qos {qos}?
| | +--rw qos-classification-policy
| | | +--rw rule* [id]
| | | +--rw id string
| | | +--rw (match-type)?
| | | | +--:(match-flow)
| | | | | +--rw match-flow
| | | | | +--rw dscp? inet:dscp
| | | | | +--rw dot1q? uint16
| | | | | +--rw pcp? uint8
| | | | | +--rw src-mac? yang:mac-address
| | | | | +--rw dst-mac? yang:mac-address
| | | | | +--rw color-type? identityref
| | | | | +--rw target-sites*
| | | | | | svc-id {target-sites}?
| | | | | +--rw any? empty
| | | | | +--rw vpn-id? svc-id
| | | | +--:(match-application)
| | | | +--rw match-application? identityref
| | | +--rw target-class-id? string
| | +--rw qos-profile
| | +--rw (qos-profile)?
| | +--:(standard)
| | | +--rw profile?
| | | -> /l2vpn-svc/vpn-profiles/
| | | valid-provider-identifiers/
| | | qos-profile-identifier
| | +--:(custom)
| | +--rw classes {qos-custom}?
| | +--rw class* [class-id]
| | +--rw class-id string
| | +--rw direction? identityref
| | +--rw policing? identityref
| | +--rw byte-offset? uint16
| | +--rw frame-delay
| | | +--rw (flavor)?
| | | +--:(lowest)
| | | | +--rw use-lowest-latency? empty
| | | +--:(boundary)
| | | +--rw delay-bound? uint16
| | +--rw frame-jitter
| | | +--rw (flavor)?
| | | +--:(lowest)
| | | | +--rw use-lowest-jitter? empty
| | | +--:(boundary)
| | | +--rw delay-bound? uint32
| | +--rw frame-loss
| | | +--rw rate? decimal64
| | +--rw bandwidth
| | +--rw guaranteed-bw-percent decimal64
| | +--rw end-to-end? empty
| +--rw carrierscarrier {carrierscarrier}?
| +--rw signaling-type? identityref
+--rw broadcast-unknown-unicast-multicast {bum}?
| +--rw multicast-site-type? enumeration
| +--rw multicast-gp-address-mapping* [id]
| | +--rw id uint16
| | +--rw vlan-id uint16
| | +--rw mac-gp-address yang:mac-address
| | +--rw port-lag-number? uint32
| +--rw bum-overall-rate? uint32
| +--rw bum-rate-per-type* [type]
| +--rw type identityref
| +--rw rate? uint32
+--rw mac-loop-prevention {mac-loop-prevention}?
| +--rw protection-type? identityref
| +--rw frequency? uint32
| +--rw retry-timer? uint32
+--rw access-control-list
| +--rw mac* [mac-address]
| +--rw mac-address yang:mac-address
+--ro actual-site-start? yang:date-and-time
+--ro actual-site-stop? yang:date-and-time
+--rw bundling-type? identityref
+--rw default-ce-vlan-id uint32
+--rw site-network-accesses
+--rw site-network-access* [network-access-id]
+--rw network-access-id string
+--rw remote-carrier-name? string
+--rw type? identityref
+--rw (location-flavor)
| +--:(location)
| | +--rw location-reference?
| | -> ../../../locations/location/
| | location-id
| +--:(device)
| +--rw device-reference?
| -> ../../../devices/device/device-id
+--rw access-diversity {site-diversity}?
| +--rw groups
| | +--rw group* [group-id]
| | +--rw group-id string
| +--rw constraints
| +--rw constraint* [constraint-type]
| +--rw constraint-type identityref
| +--rw target
| +--rw (target-flavor)?
| +--:(id)
| | +--rw group* [group-id]
| | +--rw group-id string
| +--:(all-accesses)
| | +--rw all-other-accesses? empty
| +--:(all-groups)
| +--rw all-other-groups? empty
+--rw bearer
| +--rw requested-type {requested-type}?
| | +--rw type? string
| | +--rw strict? boolean
| +--rw always-on? boolean {always-on}?
| +--rw bearer-reference? string {bearer-reference}?
+--rw connection
| +--rw encapsulation-type? identityref
| +--rw eth-inf-type? identityref
| +--rw tagged-interface
| | +--rw type? identityref
| | +--rw dot1q-vlan-tagged {dot1q}?
| | | +--rw tg-type? identityref
| | | +--rw cvlan-id uint16
| | +--rw priority-tagged
| | | +--rw tag-type? identityref
| | +--rw qinq {qinq}?
| | | +--rw tag-type? identityref
| | | +--rw svlan-id uint16
| | | +--rw cvlan-id uint16
| | +--rw qinany {qinany}?
| | | +--rw tag-type? identityref
| | | +--rw svlan-id uint16
| | +--rw vxlan {vxlan}?
| | +--rw vni-id uint32
| | +--rw peer-mode? identityref
| | +--rw peer-list* [peer-ip]
| | +--rw peer-ip inet:ip-address
| +--rw untagged-interface
| | +--rw speed? uint32
| | +--rw mode? neg-mode
| | +--rw phy-mtu? uint32
| | +--rw lldp? boolean
| | +--rw oam-802.3ah-link {oam-3ah}?
| | | +--rw enabled? boolean
| | +--rw uni-loop-prevention? boolean
| +--rw lag-interfaces {lag-interface}?
| | +--rw lag-interface* [index]
| | +--rw index string
| | +--rw lacp {lacp}?
| | +--rw enabled? boolean
| | +--rw mode? neg-mode
| | +--rw speed? uint32
| | +--rw mini-link-num? uint32
| | +--rw system-priority? uint16
| | +--rw micro-bfd {micro-bfd}?
| | | +--rw enabled? enumeration
| | | +--rw interval? uint32
| | | +--rw hold-timer? uint32
| | +--rw bfd {bfd}?
| | | +--rw enabled? boolean
| | | +--rw (holdtime)?
| | | +--:(profile)
| | | | +--rw profile-name?
| | | | -> /l2vpn-svc/
| | | | vpn-profiles/
| | | | valid-provider-identifiers/
| | | | bfd-profile-identifier
| | | +--:(fixed)
| | | +--rw fixed-value? uint32
| | +--rw member-links
| | | +--rw member-link* [name]
| | | +--rw name string
| | | +--rw speed? uint32
| | | +--rw mode? neg-mode
| | | +--rw link-mtu? uint32
| | | +--rw oam-802.3ah-link {oam-3ah}?
| | | +--rw enabled? boolean
| | +--rw flow-control? boolean
| | +--rw lldp? boolean
| +--rw cvlan-id-to-svc-map* [svc-id]
| | +--rw svc-id
| | | -> /l2vpn-svc/vpn-services/vpn-service/
| | | vpn-id
| | +--rw cvlan-id* [vid]
| | +--rw vid uint16
| +--rw l2cp-control {l2cp-control}?
| | +--rw stp-rstp-mstp? control-mode
| | +--rw pause? control-mode
| | +--rw lacp-lamp? control-mode
| | +--rw link-oam? control-mode
| | +--rw esmc? control-mode
| | +--rw l2cp-802.1x? control-mode
| | +--rw e-lmi? control-mode
| | +--rw lldp? boolean
| | +--rw ptp-peer-delay? control-mode
| | +--rw garp-mrp? control-mode
| +--rw oam {oam}
| +--rw md-name string
| +--rw md-level uint16
| +--rw cfm-802.1-ag* [maid]
| | +--rw maid string
| | +--rw mep-id? uint32
| | +--rw mep-level? uint32
| | +--rw mep-up-down? enumeration
| | +--rw remote-mep-id? uint32
| | +--rw cos-for-cfm-pdus? uint32
| | +--rw ccm-interval? uint32
| | +--rw ccm-holdtime? uint32
| | +--rw alarm-priority-defect? identityref
| | +--rw ccm-p-bits-pri? ccm-priority-type
| +--rw y-1731* [maid]
| +--rw maid string
| +--rw mep-id? uint32
| +--rw type? identityref
| +--rw remote-mep-id? uint32
| +--rw message-period? uint32
| +--rw measurement-interval? uint32
| +--rw cos? uint32
| +--rw loss-measurement? boolean
| +--rw synthetic-loss-measurement? boolean
| +--rw delay-measurement
| | +--rw enable-dm? boolean
| | +--rw two-way? boolean
| +--rw frame-size? uint32
| +--rw session-type? enumeration
+--rw availability
| +--rw access-priority? uint32
| +--rw (redundancy-mode)?
| +--:(single-active)
| | +--rw single-active? empty
| +--:(all-active)
| +--rw all-active? empty
+--rw vpn-attachment
| +--rw (attachment-flavor)
| +--:(vpn-id)
| | +--rw vpn-id?
| | | -> /l2vpn-svc/vpn-services/
| | | vpn-service/vpn-id
| | +--rw site-role? identityref
| +--:(vpn-policy-id)
| +--rw vpn-policy-id?
| -> ../../../../vpn-policies/
| vpn-policy/vpn-policy-id
+--rw service
| +--rw svc-bandwidth {input-bw}?
| | +--rw bandwidth* [direction type]
| | +--rw direction identityref
| | +--rw type identityref
| | +--rw cos-id? uint8
| | +--rw vpn-id? svc-id
| | +--rw cir uint64
| | +--rw cbs uint64
| | +--rw eir? uint64
| | +--rw ebs? uint64
| | +--rw pir? uint64
| | +--rw pbs? uint64
| +--rw svc-mtu uint16
| +--rw qos {qos}?
| | +--rw qos-classification-policy
| | | +--rw rule* [id]
| | | +--rw id string
| | | +--rw (match-type)?
| | | | +--:(match-flow)
| | | | | +--rw match-flow
| | | | | +--rw dscp? inet:dscp
| | | | | +--rw dot1q? uint16
| | | | | +--rw pcp? uint8
| | | | | +--rw src-mac? yang:mac-address
| | | | | +--rw dst-mac? yang:mac-address
| | | | | +--rw color-type? identityref
| | | | | +--rw target-sites*
| | | | | | svc-id {target-sites}?
| | | | | +--rw any? empty
| | | | | +--rw vpn-id? svc-id
| | | | +--:(match-application)
| | | | +--rw match-application? identityref
| | | +--rw target-class-id? string
| | +--rw qos-profile
| | +--rw (qos-profile)?
| | +--:(standard)
| | | +--rw profile?
| | | -> /l2vpn-svc/vpn-profiles/
| | | valid-provider-identifiers/
| | | qos-profile-identifier
| | +--:(custom)
| | +--rw classes {qos-custom}?
| | +--rw class* [class-id]
| | +--rw class-id string
| | +--rw direction? identityref
| | +--rw policing? identityref
| | +--rw byte-offset? uint16
| | +--rw frame-delay
| | | +--rw (flavor)?
| | | +--:(lowest)
| | | | +--rw use-lowest-latency?
| | | | empty
| | | +--:(boundary)
| | | +--rw delay-bound? uint16
| | +--rw frame-jitter
| | | +--rw (flavor)?
| | | +--:(lowest)
| | | | +--rw use-lowest-jitter?
| | | | empty
| | | +--:(boundary)
| | | +--rw delay-bound? uint32
| | +--rw frame-loss
| | | +--rw rate? decimal64
| | +--rw bandwidth
| | +--rw guaranteed-bw-percent
| | | decimal64
| | +--rw end-to-end? empty
| +--rw carrierscarrier {carrierscarrier}?
| +--rw signaling-type? identityref
+--rw broadcast-unknown-unicast-multicast {bum}?
| +--rw multicast-site-type? enumeration
| +--rw multicast-gp-address-mapping* [id]
| | +--rw id uint16
| | +--rw vlan-id uint16
| | +--rw mac-gp-address yang:mac-address
| | +--rw port-lag-number? uint32
| +--rw bum-overall-rate? uint32
| +--rw bum-rate-per-type* [type]
| +--rw type identityref
| +--rw rate? uint32
+--rw mac-loop-prevention {mac-loop-prevention}?
| +--rw protection-type? identityref
| +--rw frequency? uint32
| +--rw retry-timer? uint32
+--rw access-control-list
| +--rw mac* [mac-address]
| +--rw mac-address yang:mac-address
+--rw mac-addr-limit
+--rw limit-number? uint16
+--rw time-interval? uint32
+--rw action? identityref
Figure 4: Overall Structure of the YANG Module
5.1. Features and Augmentation
Okay so this model is basically a big bag of features ๐โจ, which means an implementation can pick and choose what it turns on. Like, the Layer 2 protocol parameters (Section 5.3.2.2) that get proposed to the customer? Those can be switched on through features too ๐ . And there are some extra-fancy options for the advanced stuff: extranet VPNs (Section 5.2.4), site diversity (Section 5.3), and QoS (Section 5.10.2) ๐ธ. Modular and iconic, honestly.
Also, just like any YANG data model, this service model can be augmented to add new behaviours or specific features ๐ฆ. For example, this model uses VXLAN [RFC7348] for Ethernet packet encapsulation. If VXLAN doesn't cover everything you need to describe the service, you can bolt on new options through augmentation. No stress, bestie ๐ซถ.
5.2. VPN Service Overview
The vpn-service list item holds the generic info about the VPN service ๐. The vpn-id in the vpn-service list points at an internal reference for this service. That ID is purely internal to the organisation running the VPN service, so nobody outside needs to care about it ๐.
The vpn-service list is made up of these characteristics:
- Customer information (
customer-name): used to identify the customer ๐. - VPN service type (
vpn-svc-type): used to indicate the VPN service type. The identifier is an identity that allows any encoding for local administration of the VPN service. Also, another identity can extend the base identity, which is very main character of it ๐. - Cloud access (
cloud-access): All sites in the L2VPN SHOULD be permitted to access the cloud by default โ๏ธ. Thecloud-accesscontainer gives you parameters for authorisation rules. A cloud identifier is used to reference the target service, and that identifier is local to each administration ๐ง. - Service topology (
svc-topo): used to identify the type of VPN service topology that is required ๐. - Frame delivery service (
frame-delivery): defines the frame delivery support that the L2VPN needs, e.g., multicast delivery, unicast delivery, or broadcast delivery ๐ฆโจ. - Extranet VPN (
extranet-vpns): indicates that a particular VPN needs access to resources located in another VPN ๐. It's giving collab energy, no cap.
5.2.1. VPN Service Type
okay so the vpn-svc-type parameter is where you pick the service type for provider-provisioned L2VPNs ๐
The current version of the model supports six flavors โจ
- Point-to-point VPWSs connecting two customer sites.
- Point-to-point or point-to-multipoint VPWSs connecting a set of customer sites [RFC8214].
- Multipoint VPLSs connecting a set of customer sites.
- Multipoint VPLSs connecting one or more root sites and a set of leaf sites but preventing inter-leaf-site communication.
- EVPN services [RFC7432] connecting a set of customer sites.
- EVPN VPWSs between two customer sites or a set of customer sites as specified in [RFC8214].
Other L2VPN service types can be added by augmentation ๐ง Also, ngl, the acronyms get a lot: an Ethernet Private Line (EPL) or an Ethernet Virtual Private Line (EVPL) is an Ethernet Line (E-Line) service [MEF-6] or a point-to-point Ethernet Virtual Circuit (EVC) service, while an Ethernet Private LAN (EP-LAN) or an Ethernet Virtual Private LAN (EVP-LAN) is an Ethernet LAN (E-LAN) service [MEF-6] or a multipoint-to-multipoint EVC service ๐
5.2.2. VPN Service Topologies
the topologies below can be used for configuration if you need them ๐ฆ The module currently handles any-to-any, Hub-and-Spoke (where Hubs can exchange traffic), and Hub-and-Spoke Disjoint (where Hubs cannot exchange traffic). New topologies can be added by augmentation ๐ And by default, any-to-any is the one that gets used ๐
5.2.2.1. Route Target Allocation
a Layer 2 PE-based VPN (like a VPLS-based VPN, or an EVPN that uses BGP as its signaling protocol) can be built using Route Targets (RTs) as described in [RFC4364] and [RFC7432] ๐ซถ The management system is expected to automatically allocate a set of RTs as soon as it gets a VPN service creation request. How it does the allocating is out of scope for this document, but there are multiple ways it could be done, as described in Section 6.2.1.1 of [RFC8299] ๐ฅ
5.2.2.2. Any-to-Any
+--------------------------------------------------------------+
| VPN1_Site 1 ------ PE1 PE2 ------ VPN1_Site 2 |
| |
| VPN1_Site 3 ------ PE3 PE4 ------ VPN1_Site 4 |
+--------------------------------------------------------------+
Figure 5: Any-to-Any VPN Service Topology
in any-to-any, all VPN sites can talk to each other with no restrictions at all ๐ธ The management system that receives an any-to-any L2VPN service request through this model is expected to assign and then configure the MAC-VRF and RTs on the appropriate PEs. In the any-to-any case, a single RT is generally required, and every MAC-VRF imports and exports this RT ๐
5.2.2.3. Hub-and-Spoke
+---------------------------------------------------------------+
| Hub_Site 1 ------ PE1 PE2 ------ Spoke_Site 1 |
| +------------------------------------+
| |
| +------------------------------------+
| Hub_Site 2 ------ PE3 PE4 ------ Spoke_Site 2 |
+---------------------------------------------------------------+
Figure 6: Hub-and-Spoke VPN Service Topology
in the Hub-and-Spoke topology, the rules are:
- all Spoke sites can communicate only with Hub sites (i.e., Spoke sites cannot communicate with each other).
- Hubs can communicate with each other.
The management system that receives a Hub-and-Spoke L2VPN service request through this model is expected to assign and then configure the MAC-VRF and RTs on the appropriate PEs. In the Hub-and-Spoke case, two RTs are generally required (one RT for Hub routes and one RT for Spoke routes). A Hub MAC-VRF that connects Hub sites will export Hub routes with the Hub RT and will import Spoke routes through the Spoke RT. It will also import the Hub RT to allow Hub-to-Hub communication. A Spoke MAC-VRF that connects Spoke sites will export Spoke routes with the Spoke RT and will import Hub routes through the Hub RT ๐ง
5.2.2.4. Hub-and-Spoke Disjoint
+---------------------------------------------------------------+
| Hub_Site 1 ------ PE1 PE2 ------ Spoke_Site 1 |
+--------------------------+ +---------------------------------+
| |
+--------------------------+ +---------------------------------+
| Hub_Site 2 ------ PE3 PE4 ------ Spoke_Site 2 |
+---------------------------------------------------------------+
Figure 7: Hub-and-Spoke-Disjoint VPN Service Topology
in the Hub-and-Spoke-Disjoint topology, the rules are:
- all Spoke sites can communicate only with Hub sites (i.e., Spoke sites cannot communicate with each other).
- Hubs cannot communicate with each other.
The management system that receives a Hub-and-Spoke-Disjoint L2VPN service request through this model is expected to assign and then configure the VRF and RTs on the appropriate PEs. In the Hub-and-Spoke-Disjoint case, at least two RTs are required for Hubs and Spokes, respectively (at least one RT for Hub routes and at least one RT for Spoke routes). A Hub VRF that connects Hub sites will export Hub routes with the Hub RT and will import Spoke routes through the Spoke RT. A Spoke VRF that connects Spoke sites will export Spoke routes with the Spoke RT and will import Hub routes through the Hub RT.
The management system MUST take into account constraints on Hub-and-Spoke connections, as in the previous case. ๐
Hub-and-Spoke Disjoint can also be seen as multiple Hub-and-Spoke VPNs (one per Hub) that share a common set of Spoke sites ๐
5.2.3. Cloud Access
this model provides cloud access configuration through the cloud-access container ๐ค๏ธ The usage of cloud-access is aimed at public cloud access and Internet access. The cloud-access container provides parameters for authorization rules. Heads up: this model treats public cloud and public Internet access as sharing some commonality, so it does not distinguish Internet access from cloud access. If you need a different label for Internet access, you can add one by augmentation ๐ซง
Private cloud access can be handled through the site container, as described in Section 5.3, with usage that's consistent with sites of type "NNI" ๐
A cloud identifier is used to reference the target service. This identifier is local to each administration ๐ธ
By default, all sites in the L2VPN SHOULD be permitted to access the cloud or the Internet. If restrictions are required, a user MAY configure some limitations for some sites or nodes by using policies, i.e., the "permit-site" or "deny-site" leaf-list. The permit-site leaf-list defines the list of sites authorized for cloud access. The deny-site leaf-list defines the list of sites denied for cloud access. The model supports both "deny-any-except" and "permit-any-except" authorization ๐
How the restrictions get configured on network elements is out of scope for this document ๐ซถ
L2VPN
++++++++++++++++++++++++++++++++ ++++++++++++
+ Site 3 + --- + Cloud 1 +
+ Site 1 + ++++++++++++
+ +
+ Site 2 + --- ++++++++++++
+ + + Internet +
+ Site 4 + ++++++++++++
++++++++++++++++++++++++++++++++
|
+++++++++++
+ Cloud 2 +
+++++++++++
Figure 8: Example of Cloud Access Configuration
As shown in Figure 8, we configure the global VPN to access the Internet by creating a cloud-access container pointing to the cloud identifier for the Internet service. (This is illustrated in the XML [W3C.REC-xml-20081126] below.) No authorized sites will be configured, as all sites are required to be able to access the Internet ๐
<?xml version="1.0"?>
<l2vpn-svc xmlns="urn:ietf:params:xml:ns:yang:ietf-l2vpn-svc">
<vpn-services>
<vpn-service>
<vpn-id>123456487</vpn-id>
<cloud-accesses>
<cloud-access>
<cloud-identifier>INTERNET</cloud-identifier>
</cloud-access>
</cloud-accesses>
<ce-vlan-preservation>true</ce-vlan-preservation>
<ce-vlan-cos-preservation>true</ce-vlan-cos-preservation>
</vpn-service>
</vpn-services>
</l2vpn-svc>
If Site 1 and Site 2 require access to Cloud 1, a new cloud-access container pointing to the cloud identifier of Cloud 1 will be created. The permit-site leaf-list will be filled with a reference to Site 1 and Site 2 โจ
<?xml version="1.0"?>
<l2vpn-svc xmlns="urn:ietf:params:xml:ns:yang:ietf-l2vpn-svc">
<vpn-services>
<vpn-service>
<vpn-id>123456487</vpn-id>
<cloud-accesses>
<cloud-access>
<cloud-identifier>Cloud1</cloud-identifier>
<permit-site>site1</permit-site>
<permit-site>site2</permit-site>
</cloud-access>
</cloud-accesses>
<ce-vlan-preservation>true</ce-vlan-preservation>
<ce-vlan-cos-preservation>true</ce-vlan-cos-preservation>
</vpn-service>
</vpn-services>
</l2vpn-svc>
If all sites except Site 1 require access to Cloud 2, a new cloud-access container pointing to the cloud identifier of Cloud 2 will be created. The deny-site leaf-list will be filled with a reference to Site 1 ๐
<?xml version="1.0"?>
<l2vpn-svc xmlns="urn:ietf:params:xml:ns:yang:ietf-l2vpn-svc">
<vpn-services>
<vpn-service>
<vpn-id>123456487</vpn-id>
<cloud-accesses>
<cloud-access>
<cloud-identifier>Cloud2</cloud-identifier>
<deny-site>site1</deny-site>
</cloud-access>
</cloud-accesses>
<ce-vlan-preservation>true</ce-vlan-preservation>
<ce-vlan-cos-preservation>true</ce-vlan-cos-preservation>
</vpn-service>
</vpn-services>
</l2vpn-svc>
5.2.4. Extranet VPNs โจ
Okay so sometimes a VPN needs to reach stuff (servers, hosts, the whole squad) that lives somewhere else, and that stuff can actually be sitting inside another VPN ๐ฆ
+-----------+ +-----------+
/ \ / \
Site A -- | VPN A | --- | VPN B | --- Site B
\ / \ / (Shared
+-----------+ +-----------+ resources)
Figure 9: Example of Shared VPN Resources
As Figure 9 shows, VPN B has some resources on Site B that need to be shared with certain customers and partners. In particular, VPN A must be able to reach those VPN B resources ๐
You can set this up with a VPN policy, which is defined in Section 5.5.2.2. But if the case is simple and VPN A just needs access to everything in VPN B, the model gives you a shortcut: the extranet-vpns container ๐
The extranet-vpns container is a list of the VPNs that a particular VPN wants to reach. It gets used on customer VPNs that want to access extranet resources sitting in another VPN. In Figure 9, to give VPN A access to VPN B, you configure the extranet-vpns container under VPN A with an entry for VPN B. VPN B doesn't need any service configuration at all ๐
Readers should note that even if there is no configuration requirement on VPN B, if VPN A lists VPN B as an extranet, all sites in VPN B will gain access to all sites in VPN A. ๐
The site-role leaf sets the role of the local VPN sites in the target extranet VPN service topology. Site roles are defined in Section 5.4 ๐ธ
Here's an example where VPN A reaches VPN B through an extranet connection. The VPN A sites need a Spoke role, because sites from VPN A are not allowed to talk to each other through the extranet VPN connection. That would be chaos ๐ญ
<?xml version="1.0"?>
<l2vpn-svc xmlns="urn:ietf:params:xml:ns:yang:ietf-l2vpn-svc">
<vpn-services>
<vpn-service>
<vpn-id>VPNB</vpn-id>
<svc-topo>hub-spoke</svc-topo>
<ce-vlan-preservation>true</ce-vlan-preservation>
<ce-vlan-cos-preservation>true</ce-vlan-cos-preservation>
</vpn-service>
<vpn-service>
<vpn-id>VPNA</vpn-id>
<svc-topo>any-to-any</svc-topo>
<extranet-vpns>
<extranet-vpn>
<vpn-id>VPNB</vpn-id>
<local-sites-role>spoke-role</local-sites-role>
</extranet-vpn>
</extranet-vpns>
<ce-vlan-preservation>true</ce-vlan-preservation>
<ce-vlan-cos-preservation>true</ce-vlan-cos-preservation>
</vpn-service>
</vpn-services>
</l2vpn-svc>
This model doesn't say how the extranet configuration actually gets done inside the network. That part is left alone ๐ง
If the interconnection gets more complicated, like only certain parts of the sites on VPN A get to touch only certain parts of the sites on VPN B, then you need a VPN attachment (see Section 5.5.2) and, specifically, a VPN policy (see Section 5.5.2.2). Those are the tools for that level of drama ๐
5.2.5. Frame Delivery Service
Okay, this one's a whole vibe ๐ If a BUM (Broadcast, Unknown Unicast, or Multicast) frame delivery service is supported for an L2VPN, you have to feed in some global frame delivery parameters as input for the service request. When a CE sends BUM packets, the replication happens at the ingress PE, and three frame types need to be supported ๐ฅ
Users of this model have to tell it which flavors of trees the customers within the L2VPN will use (customer-tree-flavors). The model in this document supports bidirectional, shared, and source-based trees, and it can be augmented to contain other tree types too. You can run multiple flavors of trees at the same time, which is so efficient it's giving ๐ฆ
Operator network
______________
/ \
| |
| |
Recv -- Site 2 ------- PE2 |
| PE1 --- Site 1 --- Source 1
| | \
| | -- Source 2
| |
| |
Recv -- Site 3 ------- PE3 |
| |
| |
Recv -- Site 4 ------- PE4 |
/ | |
Recv -- Site 5 ------- | |
| |
| |
\______________/
Figure 10: BUM Frame Delivery Service Example
You can create multicast-group-to-port mappings with the rp-group-mappings leaf. There are two group-to-port mapping methods that get supported ๐
- Static configuration of multicast Ethernet addresses and ports/interfaces.
- A multicast control protocol based on Layer 2 technology that signals mappings of multicast addresses to ports/interfaces, such as the Generic Attribute Registration Protocol (GARP) / GARP Multicast Registration Protocol (GARP/GMRP) [IEEE-802-1D].
5.3. Site Overview
Okay, so a site is basically a customer office plugging into one or more VPN services ๐ข Each site is tied to one or more locations.
+-------------+
/ \
+-----| VPN1 |
+------------------+ | \ /
| | | +-------------+
| New York Office |------ (site) -----+
| | | +-------------+
+------------------+ | / \
+-----| VPN2 |
\ /
+-------------+
Figure 11: Example: Customer Office and Two VPN Services
The provider uses the site container to keep track of the detailed implementation arrangements made with either the customer or the peer operators at each interconnect location ๐
We only restrict the L2SM to exterior interfaces (i.e., UNIs and NNIs). That means all internal interfaces and the underlying topology are totally outside the scope of the L2SM ๐ซถ
Usually, you'll want to document these characteristics of a site interface handoff as part of the service design:
- Unique identifier (
site-id): An arbitrary string that uniquely identifies the site within the overall network infrastructure. The format ofsite-idis decided by the local administrator of the VPN service. - Device (
device): The customer can request one or more customer premises equipment entities from the SP for a particular site. - Management (
management): Defines the model of management for the site, for example, type, management-transport, address. This parameter draws the boundary between the SP and the customer, meaning who owns the CE device ๐ - Location (
location): The site location information. It makes it easy to look up data about the nearest available resources ๐ - Site diversity (
site-diversity): Presents some parameters that support site diversity. - Site network accesses (
site-network-accesses): Defines the list of ports to the site and their properties, in particular bearer, connection, and service parameters.
A site-network-access represents an Ethernet logical connection to a site. A site can have multiple site-network-accesses ๐
+------------------+ Site
| |-------------------------------------
| |****** (site-network-access#1) ******
| New York Office |
| |****** (site-network-access#2) ******
| |-------------------------------------
+------------------+
Figure 12: Two Site-Network-Accesses for a Site
Multiple site-network-accesses show up when you're multihoming, for instance. Some other meshing cases might also use multiple site-network-accesses ๐ฆ
The site configuration is treated as one global entity. The management system is mostly the one in charge of splitting the parameters between the different elements in the network. For example, for a site-network-access configuration, the management system has to split the parameters between the PE configuration and the CE configuration ๐ง
A site can support single-homed access or multihoming. With multihoming, the site can have multiple site-network-accesses. Under each site-network-access, you define vpn-attachment, which describes the association between a given site-network-access and a given site, plus the VPN that site will connect to โจ
5.3.1. Devices and Locations โจ
okay so the "location" sub-container under a site and the "devices" container let you quickly look up the nearest available facilities ๐, which makes them super useful for access topology planning ๐บ๏ธ. Other network orchestration components can use this info to choose the targeted upstream PE and downstream CE ๐ฆ. Location is expressed as postal information, and if you want more detailed or different location info, you can add it with augmentation ๐ .
A site can be made up of multiple locations ๐ธ. All of those locations need to be configured in the "locations" container and list.
A classic multi-location site is a headquarters office in a city where the office is spread across several buildings ๐ข. The buildings might be in different parts of town and linked by intra-city fibers (a customer metropolitan area network) ๐งต. This model doesn't represent connectivity between a site's multiple locations, because the customer controls that connectivity ๐. Still, when connecting to a VPN service, the customer may ask for multihoming based on those distributed locations ๐.
New York Site
+------------------+ Site
| +--------------+ |-------------------------------------
| | Manhattan | |****** (site-network-access#1) ******
| +--------------+ |
| +--------------+ |
| | Brooklyn | |****** (site-network-access#2) ******
| +--------------+ |-------------------------------------
+------------------+
Figure 13: Two Site-Network-Accesses, Two Sites
A customer can also ask the SP for some premises equipment entities (CEs) through the devices container ๐. Requesting a CE means you're in a provider-managed or co-managed model ๐. A particular device has to be requested for a particular location that's already configured ๐ฆ. That's how the SP knows which postal address to send the device to ๐. In a multi-location site, a customer might request a CE for each location where multihoming needs to be implemented ๐. In Figure 13, you could request one device for the Manhattan location and one other for the Brooklyn location ๐ฝ.
Using devices and locations, the user can shape the multihoming scenario they want, like single CE, dual CE, and so on ๐.
5.3.2. Site Network Accesses
The L2SM puts a set of essential physical interface properties and Ethernet-layer characteristics in the "site-network-accesses" container ๐. Some of these are critical implementation arrangements that need consent from both the customer and the provider ๐ค.
As mentioned earlier, a site may be multihomed ๐ฆ. Each logical network access for a site is defined in the site-network-accesses container. The site-network-access parameter defines how the site is connected to the network, and it's split into three main classes of parameters โจ:
- bearer: defines requirements of the attachment (below Layer 2).
- connection: defines Layer 2 protocol parameters of the attachment.
- availability: defines the site's availability policy. The availability parameters are defined in Section 5.8.
The site-network-access has a specific type (site-network-access type). This document defines two types ๐ :
- point-to-point: describes a point-to-point connection between the SP and the customer.
- multipoint: describes a multipoint connection between the SP and the customer.
The site-network-access type can change which parameters get offered to the customer ๐. For example, an SP might not offer MAC loop protection for multipoint accesses. It's up to the provider to decide which parameters are supported for point-to-point and/or multipoint accesses ๐ซถ. Multipoint accesses are out of scope for this document, and some containers in the model may need extensions to work properly for multipoint accesses ๐ง.
5.3.2.1. Bearer
The "bearer" container defines the requirements for the site attachment (below Layer 2) to the provider network ๐.
The bearer parameters help determine which access media to use ๐ก.
5.3.2.2. Connection
The "connection" container defines the Layer 2 protocol parameters of the attachment (for example, vlan-id or circuit-id) and provides connectivity between customer Ethernet switches ๐. Depending on the management mode, it refers either to PE-CE-LAN segment addressing or to CE-to-customer-LAN segment addressing ๐งฉ. Either way, it describes the responsibility boundary between the provider and the customer ๐ช. For a customer-managed site, it refers to the PE-CE-LAN segment connection. For a provider-managed site, it refers to the CE-to-customer-LAN segment connection ๐ .
The "encapsulation-type" parameter lets the user pick between Ethernet encapsulation (port-based) or Ethernet VLAN encapsulation (VLAN-based) ๐ธ. All the allowed Ethernet interface types of service frames can be listed under "ether-inf-type", such as untagged interface, tagged interface, or LAG interface ๐.
Matching "ether-inf-type", the connection container also presents three sets of link attributes: untagged interface, tagged interface, and optional LAG interface attributes ๐. These parameters are essential for the connection to be properly established between the CE devices and the PE devices ๐ค. The connection container also defines a Layer 2 Control Protocol (L2CP) attribute, which allows control-plane protocol interaction between the CE devices and the PE device ๐ง .
5.3.2.2.1. Untagged Interface
For each untagged interface (untagged-interface), there are basic configuration parameters like interface index and speed, interface MTU, auto-negotiation, and flow-control settings, and so on ๐ ๏ธ. On top of that, and based on mutual agreement, the customer and provider may decide to enable advanced features such as LLDP, IEEE 802.3ah [IEEE-802-3ah], or MAC loop detection/prevention at a UNI ๐. If loop avoidance is required, the attribute "uni-loop-prevention" must be set to "true" ๐.
5.3.2.2.2. Tagged Interface
If the tagged service is enabled on a logical unit on the connection at the interface, "encapsulation-type" should be specified as Ethernet VLAN encapsulation (if VLAN-based) or VXLAN encapsulation ๐ท๏ธ. And "eth-inf-type" should be set to indicate a tagged interface ๐.
On top of that, "tagged-interface-type" should be specified in the "tagged-interface" container to determine how tagging needs to be done ๐. The current model defines five ways to do VLAN tagging ๐:
- priority-tagged: SPs encapsulate and tag packets between the CE and the PE with the frame priority level.
- dot1q-vlan-tagged: SPs encapsulate packets between the CE and the PE with one or a set of customer VLAN (CVLAN) IDs.
- qinq: SPs encapsulate packets that enter their networks with multiple CVLAN IDs and a single VLAN tag with a single SP VLAN (SVLAN).
- qinany: SPs encapsulate packets that enter their networks with unknown CVLANs and a single VLAN tag with a single SVLAN.
- vxlan: SPs encapsulate packets that enter their networks with a VXLAN Network Identifier (VNI) and a peer list.
The overall S-tag for the Ethernet circuit and (if applicable) C-tag-to-SVC mapping (where "SVC" stands for "Switched Virtual Circuit") live in the "service" container ๐ง. For the qinq and qinany options, the S-tag under "qinq" and "qinany" should match the S-tag in the service container in most cases ๐ . However, VLAN translation is required for the S-tag in certain deployments at the external-facing interface or upstream PEs, to "normalize" the outer VLAN tag to the service S-tag going into the network, and translate it back to the site's S-tag in the opposite direction ๐. One example is a Layer 2 aggregation switch along the path, where the S-tag for the SVC was already assigned to another service and therefore can't be used by this AC ๐ญ.
5.3.2.2.3. LAG Interface
Sometimes the customer needs multiple physical links bundled together to form a single, logical, point-to-point LAG connection to the SP ๐งต. Typically, the Link Aggregation Control Protocol (LACP) is used to dynamically manage adding or deleting member links of the aggregate group ๐ค. In general, a LAG lets the service bandwidth go beyond the speed of a single physical link, while providing graceful degradation when a failure occurs, which boosts availability ๐.
In the L2SM, there's a set of attributes under "lag-interface" for link aggregation functionality ๐งฉ. The customer and provider first need to decide whether LACP PDUs will be exchanged between the edge devices, by setting "LACP-state" to "on" or "off" ๐. If LACP is enabled, both parties need to further specify (1) whether LACP runs in active or passive mode and (2) the time interval and priority level of the LACP PDU โฑ๏ธ. The customer and provider can also set the minimum aggregate bandwidth for a LAG to count as a valid path, using the optional "mini-link-num" attribute ๐. To enable fast detection of faulty links, micro-BFD [RFC7130] ("BFD" stands for "Bidirectional Forwarding Detection") runs independent UDP sessions to monitor the status of each member link ๐ต๏ธโโ๏ธ. The customer and provider should agree on the BFD hello interval and hold time ๐ค.
Each member link is listed under the LAG interface with basic physical link properties ๐. Certain attributes, like flow control, encapsulation type, allowed ingress Ethertype, and LLDP settings, live at the LAG level ๐ .
5.3.2.2.4. CVLAN-ID-to-SVC Mapping
When more than one service is multiplexed onto the same interface, ingress service frames are conditionally transmitted through one of the L2VPN services, based on a pre-arranged customer-VLAN-to-SVC mapping ๐. Multiple CVLANs can be bundled across the same SVC, and the bundling type determines how a group of CVLANs is bundled into one VPN service (that's the VLAN-bundling) ๐งบ.
When applicable, "cvlan-id-to-svc-map" contains the list of CVLANs mapped to the same service ๐. In most cases, this is the VLAN access-list for the inner 802.1Q tag [IEEE-802-1Q] (the C-tag) ๐ท๏ธ.
A VPN service can be set to preserve the CE-VLAN ID and CE-VLAN CoS from the source site to the destination site ๐ท. This is required when the customer wants to use the VLAN header information between its two sites ๐. CE-VLAN ID preservation and CE-VLAN CoS preservation are applied on each site-network-access within sites ๐. "Preservation" means the value of the CE-VLAN ID and/or CE-VLAN CoS at the source site must be equal to the value at a destination site belonging to the same L2VPN service ๐ซถ.
If all-to-one bundling is enabled (meaning the bundling type is set to "all-to-one bundling"), then preservation applies to all ingress service frames ๐. If all-to-one bundling is disabled, then preservation applies to tagged ingress service frames having the CE-VLAN ID ๐.
5.3.2.2.5. L2CP Control Support ๐
okay bestie, the customer and the SP should sort out in advance whether they're letting the CE devices and the PE device talk control-plane protocols with each other ๐ซถ. For smooth multicast data transport, customers can use the transparent operation of Ethernet control protocols (e.g., the Spanning Tree Protocol (STP) [IEEE-802-1D]) ๐ธ.
To support efficient dynamic transport, Ethernet multicast control frames (e.g., GARP/GMRP [IEEE-802-1D]) can be used between the CE and the PE. ngl, though, solutions MUST NOT assume that all CEs are always running such protocols ๐. This is typically the case when a CE is a router and isn't aware of Layer 2 details, so please don't build your whole plan around it ๐.
The destination MAC addresses of these L2CP PDUs fall within two reserved blocks specified by the IEEE 802.1 Working Group ๐ฆ. Packets with destination MAC addresses in these multicast ranges get special forwarding rules, so they're a whole main character moment ๐.
- Bridge block of protocols:
01-80-C2-00-00-00through01-80-C2-00-00-0F - MRP block of protocols:
01-80-C2-00-00-20through01-80-C2-00-00-2F
Layer 2 protocol tunneling lets SPs pass subscriber Layer 2 control PDUs across the network without intermediate network devices interpreting and processing them ๐ง. These L2CP PDUs get transparently encapsulated across the MPLS-enabled core network in QinQ fashion, and it's giving discreet but powerful ๐.
The L2CP-control container holds the list of commonly used L2CP protocols and their parameters โจ. The SP can specify discard-mode, peer-mode, or tunnel-mode actions for each individual protocol ๐.
5.3.2.2.6. Ethernet Service OAM ๐ฅ
okay so Ethernet is no longer just a LAN thing. As a wide-area network technology, it brings extra requirements for end-to-end service monitoring and fault management in the SP network ๐ญ. The big ones are service availability and Mean Time To Repair (MTTR) ๐. Ethernet Service OAM in the L2SM refers to the combined protocol suites of IEEE 802.1ag [IEEE-802-1ag] and ITU-T Y.1731 [ITU-T-Y-1731] ๐.
Generally speaking, Ethernet Service OAM lets SPs do service continuity checks, fault isolation, and packet delay/jitter measurement at per-customer and per-site-network-access granularity ๐ฆ. The info collected from Ethernet Service OAM data sets is complementary to other higher-layer IP/MPLS OSS tools, which helps make sure the required SLAs can be met โจ.
The 802.1ag Connectivity Fault Management (CFM) functional model is built with hierarchical Maintenance Domains (MDs), and each one gets a unique maintenance level ๐. Higher-level MDs can be nested over lower-level MDs, but the MDs cannot intersect ๐ โโ๏ธ. The scope of each MD can be solely within a customer network or solely within the SP network. An MD can interact between CEs and PEs (customer-to-provider) or between PEs (provider-to-provider), or it can tunnel over another SP network ๐ซง.
Depending on the use case, one or more Maintenance Entity Group End Points (MEPs) can sit on the external-facing interface and send CFM PDUs towards the core network ("Up MEP") or towards the downstream link ("Down MEP") ๐งโโ๏ธ.
The cfm-802.1-ag sub-container under site-network-access presents the CFM Maintenance Association (MA), i.e., the Down MEP for the UNI MA ๐
.
For each MA, the user can define the Maintenance Association Identifier (MAID), MEP level, MEP direction, Remote MEP ID, CoS level of the CFM PDUs, Continuity Check Message (CCM) interval and hold time, alarm-priority defect (i.e., the lowest-priority defect that's allowed to generate a fault alarm), CCM priority type, and more ๐.
ITU-T Y.1731 Performance Monitoring (PM) gives you essential network telemetry, like the measurement of Ethernet service frame delay, frame delay variation, frame loss, and frame throughput ๐. The delay/jitter measurement can be one-way or two-way. Typically, a Y.1731 PM probe sends a small amount of synthetic frames along with service frames to measure the SLA parameters ๐ธ.
The y-1731 sub-container under site-network-access holds a set of parameters that define the PM probe information. That includes MAID, local and Remote MEP ID, PM PDU type, message period and measurement interval, CoS level of the PM PDUs, loss measurement by synthetic or service frame options, one-way or two-way delay measurement, PM frame size, and session type ๐.
5.4. Site Roles ๐
a VPN has a particular service topology, as described in Section 5.2.2. So each site in a VPN gets assigned a particular role in that topology ๐ซถ. The site-role leaf defines the role of the site in a particular VPN topology ๐ฆ.
In the any-to-any VPN service topology, all sites MUST have the same role, and that role will be "any-to-any-role" โจ.
In the Hub-and-Spoke VPN service topology or the Hub-and-Spoke-Disjoint VPN service topology, sites MUST have a Hub role or a Spoke role ๐.
5.5. Site Belonging to Multiple VPNs ๐
5.5.1. Site VPN Flavors ๐
a site may be part of one or more VPNs ๐ง. The "site-vpn-flavor" defines the way that the VPN multiplexing is done ๐. There are four possible types of external-facing connections associated with an EVPN service and a site, so the model supports four flavors ๐ฅ:
site-vpn-flavor-single: The site belongs to only one VPN.site-vpn-flavor-multi: The site belongs to multiple VPNs, and all the logical accesses of the sites belong to the same set of VPNs.site-vpn-flavor-nni: The site represents an NNI where two administrative domains belonging to the same or different providers interconnect.site-vpn-flavor-e2e: The site represents an end-to-end multi-segment connection.
5.5.1.1. Single VPN Attachment: site-vpn-flavor-single ๐ฆ
Figure 14 depicts a single VPN attachment. The site connects to only one VPN, very focused, very cute ๐ธ.
+--------+
+------------------+ Site / \
| |-----------------------------| |
| |***(site-network-access#1)***| VPN1 |
| New York Office | | |
| |***(site-network-access#2)***| |
| |-----------------------------| |
+------------------+ \ /
+--------+
Figure 14: Single VPN Attachment
5.5.1.2. Multi-VPN Attachment: site-vpn-flavor-multi ๐
Figure 15 shows a site connected to multiple VPNs, which is giving multi-tasking queen ๐.
+---------+
+---/----+ \
+------------------+ Site / | \ |
| |--------------------------------- | |VPN B|
| |***(site-network-access#1)******* | | |
| New York Office | | | | |
| |***(site-network-access#2)******* \ | /
| |-----------------------------| VPN A+-----|---+
+------------------+ \ /
+--------+
Figure 15: Multi-VPN Attachment
In Figure 15, the New York office is multihomed. Both logical accesses use the same VPN attachment rules, and both are connected to VPN A and to VPN B ๐ซถ.
Reaching VPN A or VPN B from the New York office will be done via MAC destination-based forwarding. Having the same destination reachable from the two VPNs may cause routing problems ๐. So the customer administration's role here is to make sure its MAC addresses are mapped correctly in each VPN, which is a bit of a chore but very important ๐. See Sections 5.5.2 and 5.10.2 for more details. See also Section 5.10.3 for details regarding support for BUM ๐งโโ๏ธ.
5.5.1.3. NNI: site-vpn-flavor-nni ๐ฅ
A Network-to-Network Interface (NNI) scenario may be modeled using the sites container. It's helpful for the SP to indicate that the requested VPN connection is not a regular site but an NNI, because specific default device configuration parameters may be applied to NNIs (e.g., Access Control Lists (ACLs), routing policies) ๐.
SP A SP B
------------------- -------------------
/ \ / \
| | | |
| ++++++++ Inter-AS link ++++++++ |
| + +_______________+ + |
| + (MAC-VRF1)-(VPN1)-(MAC-VRF1)+ |
| + + + + |
| + ASBR + + ASBR + |
| + + + + |
| + (MAC-VRF2)-(VPN2)-(MAC-VRF2)+ |
| + +_______________+ + |
| ++++++++ ++++++++ |
| | | |
| | | |
| | | |
| ++++++++ Inter-AS link ++++++++ |
| + +_______________+ + |
| + (MAC-VRF1)-(VPN1)-(MAC-VRF1)+ |
| + + + + |
| + ASBR + + ASBR + |
| + + + + |
| + (MAC-VRF2)-(VPN2)-(MAC-VRF2)+ |
| + +_______________+ + |
| ++++++++ ++++++++ |
| | | |
| | | |
\ / \ /
------------------- -------------------
Figure 16: Option A NNI Scenario
Figure 16 illustrates an option A NNI scenario that can be modeled using the sites container ๐ฆ. To connect its customer VPNs (VPN1 and VPN2) in SP B, SP A may request the creation of some site-network-accesses to SP B. The site-vpn-flavor-nni type will be used to tell SP B that this is an NNI and not a regular customer site ๐.
5.5.1.4. E2E: site-vpn-flavor-e2e ๐ธ
An end-to-end (E2E) multi-segment VPN connection built out of several connectivity segments may be modeled ๐ง. It's helpful for the SP to indicate that the requested VPN connection is not a regular site but an end-to-end VPN connection, because specific default device configuration parameters may be applied in the case of site-vpn-flavor-e2e (e.g., QoS configuration) โจ. To establish a connection between Site 1 in SP A and Site 2 in SP B spanning multiple domains, SP A may request the creation of end-to-end connectivity to SP B ๐. The site-vpn-flavor-e2e type will be used to indicate that this is an end-to-end connectivity setup and not a regular customer site ๐ซถ.
5.5.2. Attaching a Site to a VPN โจ
okay so bestie, because there are multiple site-vpn flavors ๐ฆ, attaching a site to an L2VPN happens at the site-network-access (logical access) level, using the vpn-attachment container. And yes, vpn-attachment is mandatory ๐
The model gives you two ways to attach a site to a VPN:
- By referencing the target VPN directly.
- By referencing a VPN policy for attachments that are more complex.
so you get to pick whichever flavor fits best ๐ธ
5.5.2.1. Referencing a VPN
referencing a vpn-id is the easy-breezy way to attach a particular logical access to a VPN ๐ this is the best move for a single VPN attachment. when you reference a vpn-id, the site-role setting must be added to express the role of the site in the target VPN service topology ๐
<?xml version="1.0"?>
<l2vpn-svc xmlns="urn:ietf:params:xml:ns:yang:ietf-l2vpn-svc">
<vpn-services>
<vpn-service>
<vpn-id>VPNA</vpn-id>
<ce-vlan-preservation>true</ce-vlan-preservation>
<ce-vlan-cos-preservation>true</ce-vlan-cos-preservation>
</vpn-service>
<vpn-service>
<vpn-id>VPNB</vpn-id>
<ce-vlan-preservation>true</ce-vlan-preservation>
<ce-vlan-cos-preservation>true</ce-vlan-cos-preservation>
</vpn-service>
</vpn-services>
<sites>
<site>
<site-id>SITE1</site-id>
<locations>
<location>
<location-id>L1</location-id>
</location>
</locations>
<management>
<type>customer-managed</type>
</management>
<site-network-accesses>
<site-network-access>
<network-access-id>LA1</network-access-id>
<service>
<svc-bandwidth>
<bandwidth>
<direction>input-bw</direction>
<type>bw-per-cos</type>
<cir>450000000</cir>
<cbs>20000000</cbs>
<eir>1000000000</eir>
<ebs>200000000</ebs>
</bandwidth>
</svc-bandwidth>
<carrierscarrier>
<signaling-type>bgp</signaling-type>
</carrierscarrier>
<svc-mtu>1514</svc-mtu>
</service>
<vpn-attachment>
<vpn-id>VPNA</vpn-id>
<site-role>spoke-role</site-role>
</vpn-attachment>
</site-network-access>
<site-network-access>
<network-access-id>LA2</network-access-id>
<service>
<svc-bandwidth>
<bandwidth>
<direction>input-bw</direction>
<type>bw-per-cos</type>
<cir>450000000</cir>
<cbs>20000000</cbs>
<eir>1000000000</eir>
<ebs>200000000</ebs>
</bandwidth>
</svc-bandwidth>
<carrierscarrier>
<signaling-type>bgp</signaling-type>
</carrierscarrier>
<svc-mtu>1514</svc-mtu>
</service>
<vpn-attachment>
<vpn-id>VPNB</vpn-id>
<site-role>spoke-role</site-role>
</vpn-attachment>
</site-network-access>
</site-network-accesses>
</site>
</sites>
</l2vpn-svc>
the example above shows a multi-VPN case ๐ where a site (SITE 1) has two logical accesses (LA1 and LA2), attached to both VPNA and VPNB. two accesses, two VPNs, one very busy site โจ๐
5.5.2.2. VPN Policy โจ
okay bestie, so the vpn-policy list is the thing that lets one logical access belong to multiple VPNs at once ๐ฆ like, main character energy for sites ๐
since a site can be in multiple VPNs, the vpn-policy list can have multiple entries ๐ and you can add a filter so only some LANs at the site join a particular VPN. a site can have a bunch of LAN segments, and each one can plug into a different VPN, which is lowkey iconic ๐ญ every time a site (or LAN) gets attached to a VPN, the user has to spell out its role (site-role) in that VPN's service topology ๐ซถ
Here's the picture of it:
+---------------------------------------------------------------+
| Site 1 ------ PE7 |
+-------------------------+ [VPN2] |
| |
+-------------------------+ |
| Site 2 ------ PE3 PE4 ------ Site 3 |
+-----------------------------------+ |
| |
+-------------------------------------------------------------+ |
| Site 4 ------ PE5 | PE6 ------ Site 5 | |
| | |
| [VPN3] | |
+-------------------------------------------------------------+ |
| |
+----------------------------+
Figure 17: VPN Policy Example
so in Figure 17, Site 5 is in two VPNs, VPN3 and VPN2 ๐ it's a Hub in VPN2 and any-to-any in VPN3, and that's the whole vibe ๐ here's how you'd write that multi-VPN scenario:
<?xml version="1.0"?>
<l2vpn-svc xmlns="urn:ietf:params:xml:ns:yang:ietf-l2vpn-svc">
<vpn-services>
<vpn-service>
<vpn-id>VPN2</vpn-id>
<ce-vlan-preservation>true</ce-vlan-preservation>
<ce-vlan-cos-preservation>true</ce-vlan-cos-preservation>
</vpn-service>
<vpn-service>
<vpn-id>VPN3</vpn-id>
<ce-vlan-preservation>true</ce-vlan-preservation>
<ce-vlan-cos-preservation>true</ce-vlan-cos-preservation>
</vpn-service>
</vpn-services>
<sites>
<site>
<locations>
<location>
<location-id>L1</location-id>
</location>
</locations>
<management>
<type>customer-managed</type>
</management>
<site-id>Site5</site-id>
<vpn-policies>
<vpn-policy>
<vpn-policy-id>POLICY1</vpn-policy-id>
<entries>
<id>ENTRY1</id>
<vpn>
<vpn-id>VPN2</vpn-id>
<site-role>hub-role</site-role>
</vpn>
</entries>
<entries>
<id>ENTRY2</id>
<vpn>
<vpn-id>VPN3</vpn-id>
<site-role>any-to-any-role</site-role>
</vpn>
</entries>
</vpn-policy>
</vpn-policies>
<site-network-accesses>
<site-network-access>
<network-access-id>LA1</network-access-id>
<site>
<site-id>SITE1</site-id>
<locations>
<location>
<location-id>L1</location-id>
</location>
</locations>
<management>
<type>customer-managed</type>
</management>
<site-network-accesses>
<site-network-access>
<network-access-id>LA1</network-access-id>
<service>
<svc-bandwidth>
<bandwidth>
<direction>input-bw</direction>
<type>bw-per-cos</type>
<cir>450000000</cir>
<cbs>20000000</cbs>
<eir>1000000000</eir>
<ebs>200000000</ebs>
</bandwidth>
</svc-bandwidth>
<carrierscarrier>
<signaling-type>bgp</signaling-type>
</carrierscarrier>
<svc-mtu>1514</svc-mtu>
</service>
<vpn-attachment>
<vpn-id>VPNA</vpn-id>
<site-role>spoke-role</site-role>
</vpn-attachment>
</site-network-access>
<site-network-access>
<network-access-id>LA2</network-access-id>
<service>
<svc-bandwidth>
<bandwidth>
<direction>input-bw</direction>
<type>bw-per-cos</type>
<cir>450000000</cir>
<cbs>20000000</cbs>
<eir>1000000000</eir>
<ebs>200000000</ebs>
</bandwidth>
</svc-bandwidth>
<carrierscarrier>
<signaling-type>bgp</signaling-type>
</carrierscarrier>
<svc-mtu>1514</svc-mtu>
</service>
<vpn-attachment>
<vpn-id>VPNB</vpn-id>
<site-role>spoke-role</site-role>
</vpn-attachment>
</site-network-access>
</site-network-accesses>
</site>
<vpn-attachment>
<vpn-policy-id>POLICY1</vpn-policy-id>
</vpn-attachment>
</site-network-access>
</site-network-accesses>
</site>
</sites>
</l2vpn-svc>
now, if you need something more granular, you can use filtering ๐ say LAN1 from Site 5 has to attach to VPN2 as a Hub, and LAN2 has to attach to VPN3. then you'd write it like this:
<?xml version="1.0"?>
<l2vpn-svc xmlns="urn:ietf:params:xml:ns:yang:ietf-l2vpn-svc">
<vpn-services>
<vpn-service>
<vpn-id>VPN2</vpn-id>
<ce-vlan-preservation>true</ce-vlan-preservation>
<ce-vlan-cos-preservation>true</ce-vlan-cos-preservation>
</vpn-service>
<vpn-service>
<vpn-id>VPN3</vpn-id>
<ce-vlan-preservation>true</ce-vlan-preservation>
<ce-vlan-cos-preservation>true</ce-vlan-cos-preservation>
</vpn-service>
</vpn-services>
<sites>
<site>
<locations>
<location>
<location-id>L1</location-id>
</location>
</locations>
<management>
<type>customer-managed</type>
</management>
<site-id>Site5</site-id>
<vpn-policies>
<vpn-policy>
<vpn-policy-id>POLICY1</vpn-policy-id>
<entries>
<id>ENTRY1</id>
<filters>
<filter>
<type>lan</type>
<lan-tag>LAN1</lan-tag>
</filter>
</filters>
<vpn>
<vpn-id>VPN2</vpn-id>
<site-role>hub-role</site-role>
</vpn>
</entries>
<entries>
<id>ENTRY2</id>
<filters>
<filter>
<type>lan</type>
<lan-tag>LAN2</lan-tag>
</filter>
</filters>
<vpn>
<vpn-id>VPN3</vpn-id>
<site-role>any-to-any-role</site-role>
</vpn>
</entries>
</vpn-policy>
</vpn-policies>
<site-network-accesses>
<site-network-access>
<network-access-id>LA1</network-access-id>
<service>
<svc-bandwidth>
<bandwidth>
<direction>input-bw</direction>
<type>bw-per-cos</type>
<cir>450000000</cir>
<cbs>20000000</cbs>
<eir>1000000000</eir>
<ebs>200000000</ebs>
</bandwidth>
</svc-bandwidth>
<carrierscarrier>
<signaling-type>bgp</signaling-type>
</carrierscarrier>
<svc-mtu>1514</svc-mtu>
</service>
<vpn-attachment>
<vpn-policy-id>POLICY1</vpn-policy-id>
</vpn-attachment>
</site-network-access>
</site-network-accesses>
</site>
</sites>
</l2vpn-svc>
5.6. Deciding Where to Connect the Site ๐บ๏ธ
so the management system has to figure out where to plug in each site-network-access of a site into the provider network (think PE or aggregation switch) ๐
this model defines the parameters and constraints that can affect how that meshing of the site-network-access happens ๐ง
the management system MUST honor all customer constraints ๐ซถ but if a constraint is too strict and can't be fulfilled, the management system MUST NOT provision the site, and it MUST tell the user about any constraints that couldn't be met ๐ญ how that info gets shared is out of scope for this doc ๐ whether to relax the constraint is then up to the user ๐
parameters like site location (see Section 5.6.2) and access type (see Section 5.6.3) affect the service placement the management system applies ๐ธ
on top of that, the management system's decision MAY be based on any other internal constraints the SP leaves up to them, e.g., least load, distance โจ
5.6.1. Constraint: Device ๐
in the case of provider management or co-management, one or more devices have been ordered by the customer to a particular location that's already been configured ๐ the customer MAY force a particular site-network-access to be connected on a particular device that it ordered ๐
New York Site
+------------------+ Site
| +--------------+ |-------------------------------------
| | Manhattan | |
| | CE1********* (site-network-access#1) ******
| +--------------+ |
| +--------------+ |
| | Brooklyn | |
| | CE2********* (site-network-access#2) ******
| +--------------+ |
| |-------------------------------------
+------------------+
Figure 18: Example of a Constraint Applied to a Device
in Figure 18, site-network-access#1 is tied to CE1 in the service request ๐ฆ the SP MUST ensure the provisioning of this connection ๐
5.6.2. Constraint/Parameter: Site Location โจ
okay so the location info in this model MAY be used by a management system to pick the target PE to mesh the site with (SP side) ๐บ๏ธ. Every site-network-access needs a location attached when you configure it. The SP MUST honor the termination of the access on the location tied to that site-network-access (customer side) ๐ . The "country-code" in the site location should be expressed as an ISO 3166 code, and it's kinda like the "country" label from [RFC4119] ๐.
The location for a site-network-access comes from its "location-flavor" ๐. For a provider-managed or co-managed site, the user is expected to set a "device-reference" (the device case). That binds the site-network-access to a specific device the customer ordered. Each device already has a location, so the location info just gets pulled from the device ๐ง. For a customer-managed site, the user is expected to set a "location-reference" (the location case). That points to a location that's already configured and helps with placement ๐.
POP#1 (New York)
+---------+
| PE1 |
Site 1 ---... | PE2 |
(Atlantic City) | PE3 |
+---------+
POP#2 (Washington)
+---------+
| PE4 |
| PE5 |
| PE6 |
+---------+
POP#3 (Philadelphia)
+---------+
| PE7 |
Site 2 CE#1---... | PE8 |
(Reston) | PE9 |
+---------+
Figure 19: Location Information for Sites
In Figure 19, Site 1 is a customer-managed site with a location "L1", while Site 2 is a provider-managed site for which a CE (CE#1) was ordered. Site 2 is configured with "L2" as its location. When you configure a site-network-access for Site 1, the user will need to reference location L1 so the management system knows the access has to terminate on that location ๐. Then, for distance reasons, the management system may mesh Site 1 on a PE in the Philadelphia POP. It may also look at resources available on PEs to pick the exact target PE (e.g., least loaded) ๐.
For Site 2, the user is expected to configure the site-network-access with a device-reference to CE#1. That way the management system knows the access must terminate on the location of CE#1 and must be connected to CE#1 ๐. For placement of the SP side of the access connection, if the nearest PE is used, it may mesh Site 2 on the Washington POP ๐.
5.6.3. Constraint/Parameter: Access Type
the management system needs to pick the access media for connecting the site to the customer (for example, xDSL, leased line, Ethernet backhaul) ๐. The customer can hand over some parameters or constraints that give the management system hints ๐ก.
The bearer container information SHOULD be the first piece of information considered when making this decision:
- The "requested-type" parameter tells the SP what media type the customer would like to use. If the
strictleaf is equal totrue, this MUST be considered a strict constraint, so the management system can't connect the site with another media type ๐ซ. If thestrictleaf is equal tofalse(default) and the requested media type can't be fulfilled, the management system can select another media type ๐คทโโ๏ธ. The supported media types SHOULD be communicated by the SP to the customer through a mechanism that's out of scope for this document ๐ฌ. - The "always-on" leaf is a strict constraint: if it's set to
true, the management system MUST elect an always-on media type (e.g., this means no dial-in access type) ๐ข. - The "bearer-reference" parameter is for when the customer has already ordered a network connection to the SP separately from the L2VPN site and wants to reuse it โป๏ธ. The string is an internal reference from the SP that describes the already-available connection. This is also a strict requirement that can't be relaxed ๐. How the reference gets to the customer is out of scope for this document. As an example, when the customer ordered the bearer (through a process that's out of scope for this model), the SP may have provided the bearer reference that can be used for provisioning services on top ๐งพ.
Any other internal parameters from the SP can also be used. The management system MAY use other parameters, such as the requested input svc-bandwidth and output svc-bandwidth, to help decide which access type to use ๐.
5.6.4. Constraint: Access Diversity
each site-network-access may have one or more constraints that drive where the access gets placed ๐๏ธ. By default, the model assumes there are no constraints, but allocating a unique bearer per site-network-access is expected ๐ซถ.
To help with the different placement scenarios, a site-network-access may be tagged with one or multiple group identifiers ๐ท๏ธ. The group identifier is a string, so it can handle both an explicit name for a group of sites (e.g., "multihomed-set1") and a numbered identifier (e.g., 12345678) ๐ข. The meaning of each group-id is local to each customer administrator, and the management system MUST ensure that different customers can use the same group-ids ๐ โโ๏ธ. One or more group-ids can also be defined at the site level. As a consequence, all site-network-accesses under the site MUST inherit the group-ids of the site they belong to ๐. When some group-ids are defined at the site-network-access level in addition to the site group-ids, the management system MUST consider the union of all groups (site level and site-network-access level) for that site-network-access ๐งฉ.
For an already-configured site-network-access, each constraint MUST be expressed against a targeted set of site-network-accesses. That site-network-access (the already-configured one) MUST never be taken into account in the targeted set of site-network-accesses. For example, "My site-network-access S must not be connected on the same POP as the site-network-accesses that are part of Group 10." ๐ The set of site-network-accesses that the constraint is evaluated against can be expressed as a list of groups, "all-other-accesses", or "all-other-groups". The all-other-accesses option means the current site-network-access constraint MUST be evaluated against all the other site-network-accesses belonging to the current site. The all-other-groups option means the constraint MUST be evaluated against all groups the current site-network-access does not belong to ๐ง.
The current model defines multiple constraint-types ๐:
pe-diverse: The current site-network-access MUST NOT be connected to the same PE as the targeted site-network-accesses.pop-diverse: The current site-network-access MUST NOT be connected to the same POP as the targeted site-network-accesses.linecard-diverse: The current site-network-access MUST NOT be connected to the same linecard as the targeted site-network-accesses. Note that the customer can requestlinecard-diversefor site-network-accesses, but the specific linecard identifier used should not be exposed to the customer ๐คซ.bearer-diverse: The current site-network-access MUST NOT use common bearer components compared to the bearers used by the targeted site-network-accesses.bearer-diversegives some level of diversity at the access level ๐ก๏ธ. As an example, two bearer-diverse site-network-accesses must not use the same Digital Subscriber Line Access Multiplexer (DSLAM), Broadband Access Switch (BAS), or Layer 2 switch.same-pe: The current site-network-access MUST be connected to the same PE as the targeted site-network-accesses ๐ค.same-bearer: The current site-network-access MUST be connected using the same bearer as the targeted site-network-accesses ๐งท.
These constraint-types can be extended through augmentation โจ. Each constraint is expressed as The site-network-access S must be <constraint-type> (e.g., pe-diverse, pop-diverse) from these <target> site-network-accesses.
The group-id used to target some site-network-accesses may be the same as the one used by the current site-network-access. This makes it way easier to configure scenarios where a group of site-network-access points has a constraint between the access points in that same group ๐.
5.7. Route Distinguisher and Network Instance Allocation ๐ธ
okay the Route Distinguisher (RD) is a critical parameter of BGP-based L2VPNs, as described in [RFC4364]. It's what lets the model tell apart common addressing plans in different VPNs ๐. Just like Route Targets (RTs), a management system is expected to allocate a MAC-VRF on the target PE and an RD for that MAC-VRF. That RD MUST be unique across all MAC-VRFs on the target PE ๐ .
If a MAC-VRF already exists on the target PE and it fulfills the connectivity constraints for the site, there's no need to recreate it, and the site MAY be meshed within the existing MAC-VRF ๐. How the management system checks whether an existing MAC-VRF fulfills the connectivity constraints for a site is out of scope for this document ๐ซ .
If no such MAC-VRF exists on the target PE, the management system has to start creating a new MAC-VRF on the target PE and allocate a new RD for it ๐ ๏ธ.
The management system MAY apply a per-VPN or per-MAC-VRF allocation policy for the RD, depending on the SP's policy ๐. With a per-VPN allocation policy, all MAC-VRFs (dispatched on multiple PEs) within a VPN share the same RD value ๐ฏ. With a per-MAC-VRF model, all MAC-VRFs should always have a unique RD value ๐ฆ. Some other allocation policies are also possible, and this document doesn't restrict which allocation policies get used ๐.
The allocation of RDs MAY be done the same way as RTs. The information provided in Section 5.2.2.1 could also be used in this scenario ๐ง .
Note that an SP MAY configure a target PE for automated allocation of RDs. In that case, there's no need for any backend system to allocate an RD value โญ.
5.8. Site-Network-Access Availability โจ
okay so a site can be multihomed, which means it has multiple site-network-access points ๐ธ the placement constraints in Section 5.6 are what help make sure those accesses are physically diverse ๐ซถ
when the site-network-accesses get placed on the network, a customer may want a particular routing policy on them ๐ the "site-network-access/availability" container is where the parameters for site redundancy live ๐ the "access-priority" leaf sets a preference for a particular access, and that preference is what models load-balancing or primary/backup setups ๐ฆ the higher the access-priority value, the higher the preference will be ๐ then there's the "redundancy-mode" attribute, which is defined for a multihoming site and is used to model single-active and active/active scenarios ๐ it allows for multiple active paths in forwarding state, plus load-balancing options, so it's giving flexibility ๐ฅ
Figure 20 shows how the access-priority attribute gets used ๐
Hub#1 LAN (Primary/backup) Hub#2 LAN (Load-sharing)
| |
| access-priority 1 access-priority 1 |
|--- CE1 ------- PE1 PE3 --------- CE3 --- |
| |
| |
|--- CE2 ------- PE2 PE4 --------- CE4 --- |
| access-priority 2 access-priority 1 |
PE5
|
|
|
CE5
|
Spoke#1 site (Single-homed)
Figure 20: Example: Configuring Access Priority
so in Figure 20, Hub#2 requires load-sharing, which means all the site-network-accesses must use the same access-priority value ๐ค on the other hand, Hub#1 needs a primary site-network-access and a backup site-network-access, so a higher access-priority setting gets configured on the primary one ๐ฅ
scenarios can get more complex too ๐ง say there's a Hub site with five accesses to the network (A1, A2, A3, A4, and A5) ๐ the customer wants to load-share its traffic on A1 and A2 in the nominal situation ๐ if A1 and A2 fail, they want to load-share on A3 and A4 instead, and finally, if A1, A2, A3, and A4 are all down, they want to use A5 ๐ญ this is easy to model with these access-priority values: A1=100, A2=100, A3=50, A4=50, A5=10 ๐
BUT the access-priority scenario does have some limitations, bestie ๐ a version of the five-access setup where traffic is load-shared between A3 and A4 when only A1 or A2 (not both) is down is not achievable ๐ still, the access-priority attribute covers most of the deployment use cases, and if needed, the model can be extended via augmentation to support additional use cases ๐ง
5.9. SVC MTU ๐
the MTU of subscriber service frames can be derived from the physical interface MTU by default ๐ or you can specify it under the "svc-mtu" leaf if it's different from the default number ๐ง
5.10. Service ๐ผ
the service container defines the service parameters associated with the site ๐
5.10.1. Bandwidth ๐
the service bandwidth refers to the bandwidth requirement between the CE and the PE ๐ถ it can be represented using the Committed Information Rate (CIR), the Excess Information Rate (EIR), or the Peak Information Rate (PIR) โจ the requested bandwidth is expressed as ingress bandwidth and egress bandwidth, and the direction is always judged from the customer site's point of view ๐ so "ingress-direction bandwidth" means download bandwidth for the site, and "egress-direction bandwidth" means upload bandwidth for the site ๐ซถ
the service bandwidth is only configurable at the site-network-access level, meaning the site network access associated with the site ๐ฏ
using a different ingress and egress bandwidth lets an SP know if a customer allows for asymmetric bandwidth access like ADSL ๐ง it can also set the rate limit differently for uploads and downloads on symmetric bandwidth access ๐
the svc-bandwidth parameter has a specific type, and this document defines four of them ๐ฆ
- bw-per-access: bandwidth is per connection or site network access, providing rate enforcement for all service frames at the interface that are associated with a particular network access. ๐ช
- bw-per-cos: bandwidth is per CoS, providing rate enforcement for all service frames for a given CoS with a specific cos-id. ๐จ
- bw-per-svc: bandwidth is per site, providing rate enforcement for all service frames that are associated with a particular VPN service. ๐
- opaque bandwidth is the total bandwidth that is not associated with any particular cos-id, VPN service identified with the vpn-id, or site network access ID. ๐ซฅ
the svc-bandwidth parameter must include a "cos-id" parameter if the "type" is set to "bw-per-cos" ๐ the cos-id can be assigned based on either (1) the IEEE 802.1p value [IEEE-802-1D] in the C-tag or (2) the Differentiated Services Code Point (DSCP) in the Ethernet frame header ๐ท๏ธ service frames get metered against the bandwidth profile based on the cos-id ๐
the svc-bandwidth parameter must be associated with a specific "site-network-access-id" parameter if the "type" is set to "bw-per-access" ๐ multiple bandwidths per cos-id can be associated with the same site network access ๐งฉ
the svc-bandwidth parameter must include a specific "vpn-id" parameter if the "type" is set to "bw-per-svc" ๐ชช multiple bandwidths per cos-id can be associated with the same EVPN service ๐
5.10.2. QoS ๐
the model defines QoS parameters as an abstraction ๐ซง
- qos-classification-policy: defines a set of ordered rules to classify customer traffic. ๐๏ธ
- qos-profile: provides a QoS scheduling profile to be applied. ๐๏ธ
5.10.2.1. QoS Classification ๐ฆ
QoS classification rules are handled by "qos-classification-policy" ๐โโ๏ธ it's an ordered list of rules that match a flow or application and set the appropriate target CoS (target-class-id) ๐ฏ the user can define the match using a more specific flow definition, based on things like Layer 2 source and destination MAC addresses, cos, dscp, cos-id, color-id, and so on ๐งพ
a "color-id" gets assigned to a service frame to show its QoS profile conformance ๐ here's the vibe: a service frame is "green" if it's conformant with the "committed" rate of the bandwidth profile ๐ it's "yellow" if it exceeds the "committed" rate but is still conformant with the "excess" rate ๐ and it's "red" if it's conformant with neither the "committed" rate nor the "excess" rate ๐
when a flow definition is used, the user can use a target-sites leaf-list to identify the destination of a flow instead of using destination addresses ๐ in that case, an association between the site abstraction and the MAC addresses used by that site must be done dynamically ๐ how that association is done is out of scope for this document ๐ โโ๏ธ the association of a site to an L2VPN is done through the vpn-attachment container, so the user can also use the "target-sites" leaf-list and "vpn-attachment" together to identify the destination of a flow targeted to a specific VPN service ๐
a rule that doesn't have a "match" statement is considered a "match-all" rule ๐ธ๏ธ an SP may implement a default terminal classification rule if the customer doesn't provide one ๐ it'll be up to the SP to determine its default target class ๐คทโโ๏ธ this model defines some applications, but new application identities may be added through augmentation ๐งฉ the exact meaning of each application identity is up to the SP, so the SP will need to advise the customer on how to use application-matching ๐ฃ iykyk, it's a whole thing ๐ซถโจ
5.10.2.2. QoS Profile ๐
okay so customers get to choose: the standard profile the operator already offers, or a custom one they build themselves ๐
The QoS profile ("qos-profile") is the traffic-scheduling policy the SP is going to use. ๐ง
A custom QoS profile is a list of CoS entries, and each entry has its own properties. Here they are, bestie ๐
- direction: This sets which direction the qos-profile setting applies to. The model supports the site-to-WAN direction (
"site-to-wan"), the WAN-to-site direction ("wan-to-site"), and both directions ("bidirectional"). By default it's"bidirectional"๐ When it's both directions, the provider should make sure scheduling follows the requested policy in both traffic directions (SP to customer and customer to SP). For example, a device-scheduling policy may be running on both the PE side and the CE side of the WAN link. For the WAN-to-site direction, the provider should make sure scheduling happens from the SP network to the customer site. For example, a device-scheduling policy may be running only on the PE side of the WAN link facing the customer ๐ฆ - policing: Optional. This tells you whether policing should apply to one-rate, two-color or to two-rate, three-color ๐
- byte-offset: Optional. This shows how many bytes in the service frame header are left out of rate enforcement ๐
- frame-delay: This defines the latency constraint of the class โฑ๏ธ The latency constraint can be the lowest possible latency, or a latency boundary in milliseconds. How the SP actually meets it is up to its implementation: a strict priority-queuing mechanism may be used on the access and in the core network, or a low-latency routing path may be created for this traffic class โจ
- frame-jitter: This defines the jitter constraint of the class ๐ธ The jitter constraint can be the lowest possible jitter, or a jitter boundary in microseconds. Again, how it gets fulfilled is up to the SP implementation: a strict priority-queuing mechanism may be used on the access and in the core network, or a jitter-aware routing path may be created for this traffic class ๐ซถ
- bandwidth: This defines a guaranteed amount of bandwidth for the CoS, expressed as a percentage. The
"guaranteed-bw-percent"parameter uses available bandwidth as its reference. The available bandwidth should not fall below the CIR value defined under the input svc-bandwidth or the output svc-bandwidth. When the"qos-profile"container is implemented on the CE side, the output svc-bandwidth is the reference. When it's implemented on the PE side, the input svc-bandwidth is used ๐ฅ By default, the bandwidth reservation is only guaranteed at the access level. If the user wants an end-to-end bandwidth reservation, including across the MPLS transport network, they can use the"end-to-end"leaf. (In other words, the SP will activate something in the MPLS core so the customer's bandwidth request gets fulfilled by the MPLS core as well ๐ ) How this is done (for example, RSVP-TE reservation or controller reservation) is out of scope for this document ๐
Also, due to network conditions, some constraints may not be completely fulfilled by the SP. When that happens, the SP should advise the customer about the limitations. How that communication is done is out of scope for this document ๐
5.10.3. Support for BUM ๐ฆ
The "broadcast-unknown-unicast-multicast" container tells us the type of site in the customer multicast service topology: source, receiver, or both. These parameters help the management system optimize the multicast service โจ
You can create multiple multicast group-to-port mappings using the "multicast-gp-address-mapping" list. That list defines the multicast group address and port LAG number. These parameters help the SP pick the right association between an interface and a multicast group to meet the customer's service requirement ๐
To make sure a given frame is transparently transported, a whole Layer 2 multicast frame (whether data or control) should not be altered from a CE to other CEs, except for the VLAN ID field. VLAN IDs assigned by the SP can also be altered ๐
For point-to-point services, the provider only needs to deliver a single copy of each service frame to the remote PE, no matter whether the destination MAC address of the incoming frame is unicast, multicast, or broadcast. So all service frames should be delivered unconditionally ๐
BUM frame forwarding in multipoint-to-multipoint services is a different story ๐ญ It involves both local flooding to other ACs on the same PE and remote replication to all other PEs, which eats up extra resources and core bandwidth. Special BUM frame disposition rules can be implemented at external-facing interfaces (UNIs or External NNIs (E-NNIs)) to rate-limit the BUM frames, in terms of packets per second or bits per second ๐ก๏ธ
The threshold can apply to all BUM traffic, or one threshold can be applied for each category of traffic ๐
5.11. Site Management ๐ง
The "management" sub-container is for site management options. They depend on device ownership and security access control. There are three common management models, and they're giving very different vibes ๐
- Provider-managed CE: The provider has sole ownership of the CE device, and only the provider has access to the CE. The responsibility boundary between the SP and the customer is between the CE and the customer network. This is the most common use case ๐
- Customer-managed CE: The customer has sole ownership of the CE device, and only the customer has access to the CE. In this model, the responsibility boundary between the SP and the customer is between the PE and the CE ๐
- Co-managed CE: The provider owns the CE device and is responsible for managing it. However, the provider grants the customer access to the CE for some configuration/monitoring purposes. In this co-managed mode, the responsibility boundary is the same as for the provider-managed model ๐ค
The selected management mode is specified under the "type" leaf. The "address" leaf stores the CE device management addressing information. The "management-transport" leaf identifies the transport protocol for management traffic: IPv4 or IPv6 ๐ธ Additional security options may be derived based on the management model you picked ๐
5.12. MAC Loop Protection ๐
MAC address flapping between different physical ports usually means there's a bridge loop in the customer network ๐ฑ Misleading entries in the MAC cache table can make service frames circulate around the network forever and saturate links across the provider's network, which then affects other services on the same network. With EVPNs, it also causes a flood of BGP updates and control-plane instability ๐
The SP may choose to implement a switching loop-prevention mechanism at the external-facing interfaces for multipoint-to-multipoint services by imposing a MAC address move threshold ๐
The MAC move rate and prevention-type options are listed in the "mac-loop-prevention" container ๐ญ
5.13. MAC Address Limit ๐งฎ
The optional "mac-addr-limit" container holds the customer MAC address limit, plus info on the action taken when that limit is exceeded and the aging time for a MAC address โณ
When multiple services run on the same network element, the MAC address table (and the Routing Information Base space for MAC routes in the case of EVPNs) is a shared common resource ๐คฏ SPs may cap the number of MAC addresses learned from the customer for a single service instance using the "mac-addr-limit" leaf. They can use the "action" leaf to choose what happens when the upper limit is exceeded: drop the packet, flood the packet, or simply send a warning log message ๐
For point-to-point services, if MAC learning is disabled, then the MAC address limit is not necessary ๐ โโ๏ธ
5.14. Enhanced VPN Features ๐ฆ
5.14.1. Carriers' Carriers ๐
In the case of Carriers' Carriers (CsC) [RFC8299], a customer may want to build an MPLS service using an L2VPN to carry its traffic ๐ซง
LAN customer1
|
|
CE1
|
| -------------
(vrf_cust1)
CE1_ISP1
| ISP1 POP
| MPLS link
| -------------
|
(vrf ISP1)
PE1
(...) Provider backbone
PE2
(vrf ISP1)
|
| ------------
|
| MPLS link
| ISP1 POP
CE2_ISP1
(vrf_cust1)
| ------------
|
CE2
LAN customer1
Figure 21: MPLS Service Using an L2VPN to Carry Traffic
In Figure 21, ISP1 resells an L2VPN service but has no core network infrastructure between its POPs ๐๏ธ So ISP1 uses an L2VPN as the core network infrastructure (belonging to another provider) between its POPs. Lowkey genius ๐ง
In order to support CsC, the VPN service must indicate MPLS support by setting the "carrierscarrier" leaf to "true" in the vpn-service list. The link between CE1_ISP1/PE1 and CE2_ISP1/PE2 must also run an MPLS signaling protocol. This configuration is done at the site level ๐ฏ
In this model, LDP or BGP can be used as the MPLS signaling protocol. In the case of LDP, an IGP routing protocol MUST also be activated. In the case of BGP signaling, BGP MUST also be configured as the routing protocol ๐
If CsC is enabled, the requested "svc-mtu" leaf will refer to the MPLS MTU and not to the link MTU ๐
5.15. External ID References ๐ชช
The service model sometimes refers to external information through identifiers. For example, to order cloud access to a particular Cloud Service Provider (CSP), the model uses an identifier to refer to the targeted CSP. If a customer is directly using this service model as an API (through RESTCONF or NETCONF, for example) to order a particular service, the SP should provide a list of authorized identifiers. For cloud access, the SP will provide the associated identifiers for each available CSP. The same applies to other identifiers, such as qos-profile โ๏ธ
As a usage example, the remote-carrier-name setting is used in the NNI case because it should be known by the current L2VPN SP to which it is connecting. Meanwhile, the cloud-identifier setting should be known by both the current L2VPN SP and the customer, because it is applied to the public cloud or Internet access ๐ซ
How an SP provides the meanings of those identifiers to the customer is out of scope for this document ๐
5.16. Defining NNIs and Inter-AS Support โจ
okay bestie, let's talk about ASes ๐ An Autonomous System (AS) is a single network, or a group of networks, that's run by one common system administration group and uses a single, clearly defined routing protocol. Lowkey iconic. Sometimes VPNs need to stretch across different ASes in different geographical areas, or across different SPs. The SPs set up the connection between ASes, and the customer doesn't even notice. Seamless! ๐ซถ Some examples:
- A partnership between SPs (e.g., carrier, cloud) to extend their VPN services seamlessly.
- An internal administrative boundary within a single SP (e.g., backhaul versus core versus data center).
So the NNIs have to be defined to extend the VPNs across multiple ASes ๐ [RFC4761] defines multiple flavors of VPN NNI implementations (e.g., VPLSs). Each one has pros and cons, but comparing them is outside the scope of this document, so we're skipping that drama ๐
Here's the vibe with an inter-AS option A (two ASes). The AS Border Router (ASBR) peers are connected by multiple interfaces, and at least one of those interfaces spans the two ASes while being present in the same VPN. To signal label blocks, the ASBRs associate each interface with a MAC-VRF (VSI) (Section 2) and a BGP session. ๐ฆ The result is that traffic between devices in the back-to-back VPLS is Ethernet. In this setup the VPNs are isolated from each other, and since the traffic is Ethernet, QoS mechanisms that operate on Ethernet traffic can be applied to achieve customer SLAs. It's giving well-organized network energy ๐
Check out this picture of the whole setup ๐
-------- -------------- -----------
/ \ / \ / \
| Cloud | | | | |
| Provider |-----NNI-----| |----NNI---| Data Center |
| #1 | | | | |
\ / | | \ /
-------- | | -----------
| |
-------- | My network | -----------
/ \ | | / \
| Cloud | | | | |
| Provider |-----NNI-----| |---NNI---| L2VPN |
| #2 | | | | Partner |
\ / | | | |
-------- | | | |
\ / | |
-------------- \ /
| -----------
|
NNI
|
|
-------------------
/ \
| |
| |
| |
| L2VPN Partner |
| |
\ /
-------------------
Figure 22: SP Network with Several NNIs
Figure 22 shows an SP network called "My network" that has several NNIs ๐ This network uses its NNIs to:
- increase its footprint by relying on L2VPN partners.
- connect its own data-center services to the customer L2VPN.
- enable the customer to access its private resources located in a private cloud owned by some CSPs.
That's the whole tea on inter-AS NNIs! ๐โจ
5.16.1. Defining an NNI with the Option A Flavor ๐
Okay bestie, let's look at Figure 23 first ๐โจ It shows two ASes, AS A and AS B, each with their ASBRs and MAC-VRFs sitting right on the inter-AS links ๐ฆ
AS A AS B
------------------- -------------------
/ \ / \
| | | |
| ++++++++ Inter-AS link +++++++++ |
| + +_______________+ + |
| +(MAC-VRF1)--(VPN1)--(MAC-VRF1)+ |
| + + + + |
| + ASBR + + ASBR + |
| + + + + |
| +(MAC-VRF2)--(VPN2)--(MAC-VRF2)+ |
| + +_______________+ + |
| ++++++++ +++++++++ |
| | | |
| | | |
| | | |
| ++++++++ Inter-AS link +++++++++ |
| + +_______________+ + |
| +(MAC-VRF1)--(VPN1)--(MAC-VRF1)+ |
| + + + + |
| + ASBR + + ASBR + |
| + + + + |
| +(MAC-VRF2)--(VPN2)--(MAC-VRF2)+ |
| + +_______________+ + |
| ++++++++ +++++++++ |
| | | |
| | | |
\ / \ /
------------------- -------------------
Figure 23: NNI Defined with the Option A Flavor: Example 1
So in option A, the two ASes hook up to each other with physical links on their ASBRs ๐ And because we love resiliency ๐ก๏ธโจ, there can be multiple physical connections between the ASes. Then, for every VPN that needs to cross the AS boundary, you make a VPN connection, which can be physical or logical (sitting on top of the physical one) ๐ Basically you get a back-to-back VPLS model, and it's giving clean layering ๐
Here's the lowkey genius part ๐ง ๐ From a service model's point of view, that VPN connection can be treated as a site! So say AS B wants to stretch some of its VPN connections for VPN C over to AS A. The AS B admin can use this service model to order a site on AS A ๐ Every connection scenario can be built with what the current model already offers ๐ง Figure 23 is one example: two physical connections, each with a logical connection per VPN layered on top. That's a multi-VPN scenario, and it's giving main character energy ๐
The AS B admin also gets to pick the routing protocol they want (for example, External BGP (EBGP)) to swap routes between the ASes dynamically ๐ฆ Choice is everything, bestie ๐
This document assumes that the option A NNI flavor SHOULD reuse the existing VPN site modeling ๐ซถ Reuse the stuff that's already there, no need to reinvent the wheel ๐
Now, Figure 24 shows a customer who wants its CSP A to attach its virtual network N to an L2VPN (VPN1) that it already has from L2VPN SP B ๐ธ
CSP A L2VPN SP B
----------------- -----------
/ \ / \
| | | | |
| VM --| ++++++++ NNI ++++++++++ |--- VPN1
| | + +____________+ + | Site 1
| |-------+(MAC-VRF1)-(VPN1)-(MAC-VRF1)+ |
| | + + + + |
| | + ASBR + + ASBR + |
| | + +____________+ + |
| | ++++++++ ++++++++++ |
| VM --| | | |--- VPN1
| |Virtual | | | Site 2
| |Network | | |
| VM --| | | |--- VPN1
| | | | | Site 3
\ / \ /
----------------- -----------
|
|
VPN1
Site 4
VM = Virtual Machine
Figure 24: NNI Defined with the Option A Flavor: Example 2
Figure 24: NNI Defined with the Option A Flavor: Example 2
To set up that VPN connectivity, the CSP or the customer can use the L2SM that SP B exposes ๐งโโ๏ธโจ Since the NNI is shared, we can assume the physical connection (bearer) between CSP A and SP B is already there ๐ CSP A can ask, through a service model, for a brand-new site with a single site-network-access (single-homing is what Figure 24 uses) ๐ And if it wants the VPN NNI to land on a specific link, it can use the existing bearer reference it has from SP A as a placement constraint ๐ The XML below shows what a possible configuration request to SP B could look like ๐
<?xml version="1.0"?>
<l2vpn-svc xmlns="urn:ietf:params:xml:ns:yang:ietf-l2vpn-svc">
<vpn-profiles>
<valid-provider-identifiers>
<qos-profile-identifier>
<id>GOLD</id>
</qos-profile-identifier>
<qos-profile-identifier>
<id>PLATINUM</id>
</qos-profile-identifier>
</valid-provider-identifiers>
</vpn-profiles>
<vpn-services>
<vpn-service>
<vpn-id>VPN1</vpn-id>
<ce-vlan-preservation>true</ce-vlan-preservation>
<ce-vlan-cos-preservation>true</ce-vlan-cos-preservation>
</vpn-service>
</vpn-services>
<sites>
<site>
<site-id>CSP_A_attachment</site-id>
<locations>
<location>
<location-id>NY1</location-id>
<city>NY</city>
<country-code>US</country-code>
</location>
</locations>
<site-vpn-flavor>site-vpn-flavor-nni</site-vpn-flavor>
<site-network-accesses>
<site-network-access>
<network-access-id>CSP_A_VN1</network-access-id>
<connection>
<encapsulation-type>vlan</encapsulation-type>
<eth-inf-type>tagged</eth-inf-type>
<tagged-interface>
<tagged-inf-type>dot1q</tagged-inf-type>
<dot1q-vlan-tagged>
<cvlan-id>17</cvlan-id>
</dot1q-vlan-tagged>
</tagged-interface>
</connection>
<service>
<svc-bandwidth>
<bandwidth>
<direction>input-bw</direction>
<type>bw-per-cos</type>
<cir>450000000</cir>
<cbs>20000000</cbs>
<eir>1000000000</eir>
<ebs>200000000</ebs>
</bandwidth>
</svc-bandwidth>
<carrierscarrier>
<signaling-type>bgp</signaling-type>
</carrierscarrier>
</service>
<vpn-attachment>
<vpn-id>12456487</vpn-id>
<site-role>spoke-role</site-role>
</vpn-attachment>
</site-network-access>
</site-network-accesses>
<management>
<type>customer-managed</type>
</management>
</site>
</sites>
</l2vpn-svc>
Last but not least, this case is NOT the same as using the cloud-accesses container ๐ โโ๏ธ Cloud-access gives you public cloud access, while this example gives you access to private resources sitting in a CSP network ๐ Different vibes, different doors ๐ชโจ
5.16.2. Defining an NNI with the Option B Flavor โจ
Okay so option B is giving "two networks, one shared link, and the VPN routes do all the talking" ๐ The two ASes connect to each other with physical links on the ASBRs. For resiliency, there can be multiple physical connections between the ASes. The VPN "connection" between them happens by swapping VPN routes through MP-BGP [RFC4761] ๐ฆ
AS A AS B
------------------- -------------------
/ \ / \
| | | |
| ++++++++ Inter-AS link ++++++++ |
| + +_______________+ + |
| + + + + |
| + ASBR +<---MP-BGP---->+ ASBR + |
| + + + + |
| + +_______________+ + |
| ++++++++ ++++++++ |
| | | |
| | | |
| | | |
| ++++++++ Inter-AS link ++++++++ |
| + +_______________+ + |
| + + + + |
| + ASBR +<---MP-BGP---->+ ASBR + |
| + + + + |
| + +_______________+ + |
| ++++++++ ++++++++ |
| | | |
| | | |
\ / \ /
------------------- -------------------
Figure 25: NNI Defined with the Option B Flavor: Example 1
There are multiple flavors of this NNI, bestie ๐ธ For example:
- The NNI is internal to the provider and sits between a backbone and a data center. There is enough trust between the domains to not filter the VPN routes ๐ซถ So all the VPN routes get exchanged. RT filtering may be implemented to save some unnecessary route states ๐
- The NNI is used between providers that agreed to exchange VPN routes for specific RTs only. Each provider is authorized to use the RT values from the other provider ๐
- The NNI is used between providers that agreed to exchange VPN routes for specific RTs only. Each provider has its own RT scheme ๐ญ So a customer spanning the two networks will have different RTs in each network for a particular VPN ๐
Case 1 needs zero service modeling ๐ง because the protocol handles the dynamic exchange of the necessary VPN routes on its own.
Case 2 requires that an RT-filtering policy on the ASBRs be maintained ๐ From a service-modeling point of view, it's necessary to agree on the list of RTs to authorize ๐
In Case 3, both ASes need to agree on the VPN RT to exchange, as well as how to map a VPN RT from AS A to the corresponding RT in AS B (and vice versa) ๐
Those modelings are currently out of scope for this document ๐
CSP A L3VPN SP B
----------------- ------------------
/ \ / \
| | | | |
| VM --| ++++++++ NNI ++++++++ |--- VPN1
| | + +__________+ + | Site 1
| |-------+ + + + |
| | + ASBR +<-MP-BGP->+ ASBR + |
| | + +__________+ + |
| | ++++++++ ++++++++ |
| VM --| | | |--- VPN1
| |Virtual | | | Site 2
| |Network | | |
| VM --| | | |--- VPN1
| | | | | Site 3
\ / | |
----------------- | |
\ /
------------------
|
|
VPN1
Site 4
VM = Virtual Machine
Figure 26: NNI Defined with the Option B Flavor: Example 2
Figure 26 shows an NNI connection between CSP A and SP network B ๐ฅ The SPs don't trust each other and use different RT allocation policies, so the customer VPN ends up with a different RT in each network (RT A in CSP A and RT B in SP network B) ๐ฅบ To connect the customer's virtual network in CSP A to the customer's L2VPN (VPN1) in SP network B, CSP A should request that SP network B open the customer VPN on the NNI (accept the appropriate RT). Who does the RT translation depends on the agreement between the two SPs: SP B may permit CSP A to request VPN (RT) translation ๐ซถ
5.16.3. Defining an NNI with the Option C Flavor โจ
AS A AS B
------------------- -------------------
/ \ / \
| | | |
| | | |
| | | |
| ++++++++ Multihop EBGP ++++++++ |
| + + + + |
| + + + + |
| + RGW +<----MP-BGP---->+ RGW + |
| + + + + |
| + + + + |
| ++++++++ ++++++++ |
| | | |
| | | |
| | | |
| | | |
| | | |
| ++++++++ Inter-AS link ++++++++ |
| + +_______________+ + |
| + + + + |
| + ASBR + + ASBR + |
| + + + + |
| + +_______________+ + |
| ++++++++ ++++++++ |
| | | |
| | | |
| | | |
| ++++++++ Inter-AS link ++++++++ |
| + +_______________+ + |
| + + + + |
| + ASBR + + ASBR + |
| + + + + |
| + +_______________+ + |
| ++++++++ ++++++++ |
| | | |
| | | |
\ / \ /
------------------- -------------------
Figure 27: NNI Defined with the Option C Flavor
From a VPN service's perspective, the option C NNI is very similar to option B, since an MP-BGP session is used to exchange VPN routes between the ASes ๐ฆ The difference is that the forwarding plane and the control plane are on different nodes, so the MP-BGP session is multihop between routing gateway (RGW) nodes ๐ง From a VPN service's point of view, modeling options B and C will be configured identically ๐
5.17. Applicability of L2SM in Inter-provider and Inter-domain Orchestration ๐ฆ
Okay so bestie, when the ASes belong to different providers ๐, you can totally imagine the providers wanting fewer signaling sessions crossing the AS boundary, and the devices that end those sessions being a smaller, more exclusive crew ๐ . Two approaches can be taken:
- a. Construct inter-provider control connections to run only between the two border routers.
- b. Allow end-to-end, multi-segment connectivity to be constructed out of several connectivity segments, without maintaining an end-to-end control connection.
Inter-provider control connections as described in approach (a) can be realized using the techniques provided in Section 5.16 (e.g., defining NNIs) โจ. Multi-segment connectivity as described in approach (b) can produce an inter-AS solution that more closely resembles scheme (b) in Section 10 of [RFC4364] ๐ธ. It may be realized using "stitching" of per-site connectivity and service segments at different domains. For example, end-to-end connectivity between Site 1 and Site 3 spans multiple domains (like metropolitan area networks) and can be built by stitching network access connectivity within Site 1 with SEG1, SEG3, and SEG4, plus network access connectivity within Site 3 (as shown in Figure 28) ๐ง. The assumption is that the service orchestration component in Figure 3 should have visibility into the complete abstract topology and resource availability. This may rely on network planning ๐.
---------- ---------- ----------
| | | | | |
+--+ +---+ +---+ +--+
Site 1|PE|==SEG1==| |==SEG3==| |==SEG4==|PE|Site 3
+--+ +---+ | | +--+
| | | | | | ----------
| | | | | | | |
+--+ +---+ | | +---+ +--+
Site 2|PE|==SEG2==| |==SEG5==| |==SEG6==| |==SEG7==|PE|Site 4
+--+ +---+ +---+ +---+ +--+
| | | | | | | |
---------- ---------- ---------- ----------
Figure 28: Example: Inter-provider and Inter-domain Orchestration
Note that SEG1, SEG2, SEG3, SEG4, SEG5, and SEG6 can also be regarded as network access connectivity within a site, and can be created as a normal site using the L2SM ๐.
In Figure 28, we use BGP redistribution of L2VPN Network Layer Reachability Information (NLRI) instances from AS to neighboring AS ๐ฅ. First, the PE routers use BGP to redistribute L2VPN NLRIs to either an ASBR or a route reflector of which an ASBR is a client. The ASBR then uses BGP to redistribute those L2VPN NLRIs to an ASBR in another AS, which in turn distributes them to the PE routers in that AS, or perhaps to another ASBR that in turn distributes them, and so on ๐.
In this case, a PE can learn the address of an ASBR through which it could reach another PE it wants to connect to. That is, a local PE will receive a BGP advertisement containing an L2VPN NLRI corresponding to an L2VPN instance where the local PE has some attached members. The BGP next hop for that L2VPN NLRI will be an ASBR of the local AS. Then, rather than building a control connection all the way to the remote PE, it builds one only to the ASBR. A connectivity segment can now be established from the PE to the ASBR. The ASBR in turn can establish connectivity to the ASBR of the next AS, and then stitch that connectivity to the connectivity from the PE as described in [RFC6073] ๐ชก. Repeating the process at each ASBR leads to a sequence of connectivity segments that, when stitched together, connect the two PEs ๐.
Note that in the approach just described, the local PE may never learn the IP address of the remote PE. It learns the L2VPN NLRI advertised by the remote PE, which need not contain the remote PE address, and it learns the IP address of the ASBR that is the BGP next hop for that NLRI ๐.
When this approach is used for VPLS or for full-mesh VPWS, it leads to a full mesh of connectivity among the PEs, but it does not require a full mesh of control connections (LDP or L2TPv3 sessions) ๐. Instead, the control connections within a single AS run among all the PEs of that AS and the ASBRs of the AS. A single control connection between the ASBRs of adjacent ASes can be used to support as many AS-to-AS connectivity segments as may be needed ๐.
6. Interaction with Other YANG Modules โจ
As explained in Section 4, this service model is not intended to configure network elements. Instead, it is instantiated in a management system ๐ง .
The management system might follow modular design and comprise two different components:
- a. The component instantiating the service model (let's call it the service component).
- b. The component responsible for network element configuration (let's call it the configuration component).
In some cases, when a split is needed between the behavior and functions that a customer requests and the technology that the network operator has available to deliver the service [RFC8309], a new component can be separated out of the service component (let's call it the control component) ๐. This component is responsible for network-centric operation and is aware of many features, such as topology, technology, and operator policy. As an optional component, it can use the service model as input, and it is not required at all if the control component delegates its control operations to the configuration component ๐.
In Section 7, we provide an example of translating service provisioning requests into router configuration lines, as an illustration ๐ฅ๏ธ. In the YANG-based ecosystem, it is expected that NETCONF and YANG will be used between the configuration component and network elements to configure the requested service on those elements ๐ .
In this framework, it is expected that YANG data models will be used to configure service components on network elements. There will be a strong relationship between the abstracted view provided by this service model and the detailed configuration view provided by specific configuration models for network elements, such as those defined in [MPLS-L2VPN-YANG] and [EVPN-YANG] ๐ฆ. Service components that would need configuration of network elements in support of the service model defined in this document include:
- Network instance definitions that include defined VPN policies.
- Physical interfaces.
- Ethernet-layer parameters (e.g., VLAN IDs).
- QoS: classification, profiles, etc.
- Support for Ethernet Service OAM.
7. Service Model Usage Example โจ
okay so, as we talked about in Section 4, this service model is meant to live at a management layer ๐ง. It is NOT meant to be poked directly on network elements. The management system is the main hub for configuring the whole service ๐
This section shows how a management system can use this model to set up an L2VPN service on network elements ๐
Our example gives a VPN service to three sites using point-to-point VPWS and a Hub-and-Spoke VPN topology ๐ธ Load balancing isn't considered here, so don't worry about it ๐ซถ Check out the layout in Figure 29:
Site 1
............
: : P2P VPWS
:Spoke Site:-----PE1--------------------------+
: : | Site 3
:..........: | ............
| : :
PE3-----: Hub Site :
Site 2 | : :
............ | :..........:
: : P2P VPWS |
:Spoke Site:-----PE2--------------------------+
: :
:..........:
Figure 29: Reference Network for Simple Example
Next up, the overall simplified service config for this VPN looks like this ๐
<?xml version="1.0"?>
<l2vpn-svc xmlns="urn:ietf:params:xml:ns:yang:ietf-l2vpn-svc">
<vpn-services>
<vpn-service>
<vpn-id>12456487</vpn-id>
<vpn-svc-type>vpws</vpn-svc-type>
<svc-topo>hub-spoke</svc-topo>
<ce-vlan-preservation>true</ce-vlan-preservation>
<ce-vlan-cos-preservation>true</ce-vlan-cos-preservation>
</vpn-service>
<vpn-service>
<vpn-id>12456488</vpn-id>
<vpn-svc-type>vpws</vpn-svc-type>
<svc-topo>hub-spoke</svc-topo>
<ce-vlan-preservation>true</ce-vlan-preservation>
<ce-vlan-cos-preservation>true</ce-vlan-cos-preservation>
</vpn-service>
</vpn-services>
</l2vpn-svc>
When the provisioning request for the VPN service comes in, the management system works it out internally (or chats with another OSS component) and allocates VPN RTs ๐ฆ In this case, two RTs get allocated: 100:1 for Hubs and 100:2 for Spokes. The output below describes the configuration of Spoke Site 1 ๐
<?xml version="1.0"?>
<l2vpn-svc xmlns="urn:ietf:params:xml:ns:yang:ietf-l2vpn-svc">
<vpn-services>
<vpn-service>
<vpn-id>12456487</vpn-id>
<svc-topo>hub-spoke</svc-topo>
<ce-vlan-preservation>true</ce-vlan-preservation>
<ce-vlan-cos-preservation>true</ce-vlan-cos-preservation>
</vpn-service>
</vpn-services>
<sites>
<site>
<site-id>Spoke_Site1</site-id>
<locations>
<location>
<location-id>NY1</location-id>
<city>NY</city>
<country-code>US</country-code>
</location>
</locations>
<site-network-accesses>
<site-network-access>
<network-access-id>Spoke_UNI-Site1</network-access-id>
<access-diversity>
<groups>
<group>
<group-id>20</group-id>
</group>
</groups>
</access-diversity>
<connection>
<encapsulation-type>vlan</encapsulation-type>
<tagged-interface>
<dot1q-vlan-tagged>
<cvlan-id>17</cvlan-id>
</dot1q-vlan-tagged>
</tagged-interface>
<l2cp-control>
<stp-rstp-mstp>tunnel</stp-rstp-mstp>
<lldp>true</lldp>
</l2cp-control>
</connection>
<service>
<svc-bandwidth>
<bandwidth>
<direction>input-bw</direction>
<type>bw-per-cos</type>
<cir>450000000</cir>
<cbs>20000000</cbs>
<eir>1000000000</eir>
<ebs>200000000</ebs>
</bandwidth>
</svc-bandwidth>
<carrierscarrier>
<signaling-type>bgp</signaling-type>
</carrierscarrier>
</service>
<vpn-attachment>
<vpn-id>12456487</vpn-id>
<site-role>spoke-role</site-role>
</vpn-attachment>
</site-network-access>
</site-network-accesses>
<management>
<type>provider-managed</type>
</management>
</site>
</sites>
</l2vpn-svc>
When the provisioning request for Spoke Site 1 arrives, the management system MUST allocate network resources for this site ๐ฅ It MUST first figure out the target network elements for the access, especially the PE router (or maybe an aggregation switch) ๐ As we covered in Sections 5.3.1 and 5.6, the management system SHOULD use the location information and MUST use the access-diversity constraint to find the right PE ๐ In this case, Spoke Site 1 needs PE diversity with the Hubs, and the management system will allocate PEs based on least distance. Using the location info, it finds the available PEs in the area closest to the customer and picks one that fits the access-diversity constraint ๐ฆ
Once the PE is chosen, the management system has to allocate interface resources on that node. It selects one interface from the PE's pool of available resources ๐ The management system can start provisioning the PE node using whatever method it likes (for example, NETCONF or CLI) ๐ It checks whether a VSI that fits its needs already exists. If not, it provisions the VSI: the RD comes from the internal allocation policy model, and the RTs come from the vpn-policy configuration of the site (so the management system allocates some RTs for the VPN) โจ Since the site is a Spoke site (site-role), the management system knows which RTs must be imported and exported ๐ซถ Because the site is provider managed, some management RTs may also be added (100:5000). Standard provider VPN policies MAY also be added in the configuration. ๐
Here's an example of a generated PE configuration:
l2vpn vsi context one
vpn id 12456487
autodiscovery bgp signaling bgp
ve id 1001 <---- identify the PE routers within the VPLS domain
ve range 50 <---- VPLS Edge (VE) size
route-distinguisher 100:3123234324
route-target import 100:1
route-target import 100:5000 <---- Standard SP configuration
route-target export 100:2 for provider-managed CE
!
Once the VSI is provisioned, the management system can start configuring the access on the PE using the allocated interface information ๐ The tag or VLAN (for example, the service instance tag) is chosen by the management system. One tag is picked from an allocated subnet for the PE, and another is used for the CE configuration ๐
LACP will also be configured between the PE and the CE. In the provider-managed model, the choice is left to the SP ๐ This choice is independent of the LACP protocol the customer picks ๐ธ
Here's an example of a generated PE configuration:
!
bridge-domain 1
member Ethernet0/0 service-instance 100
member vsi one
!
l2 router-id 198.51.100.1
!
l2 router-id 2001:db8::10:1/64
!
interface Ethernet0/0
no ip address
service instance 100 ethernet
encapsulation dot1q 100
!
!
router bgp 1
bgp log-neighbor-changes
neighbor 198.51.100.4 remote-as 1
neighbor 198.51.100.4 update-source Loopback0
!
address-family l2vpn vpls
neighbor 198.51.100.4 activate
neighbor 198.51.100.4 send-community extended
neighbor 198.51.100.4 suppress-signaling-protocol ldp
neighbor 2001:db8::0a10:4 activate
neighbor 2001:db8::0a10:4 send-community extended
exit-address-family
!
interface vlan 100 <---- Associating the AC with
no ip address the MAC-VRF at the PE
xconnect vsi PE1-VPLS-A
!
vlan 100
state active
The CE router isn't reachable at this stage, so the management system can produce a complete CE configuration that gets uploaded to the node by hand (for example, before the CE is sent to the customer premises at the right postal address, as described in Section 5.3.1) ๐ฆ The CE configuration is built the same way as the PE configuration. Based on (1) the CE type (vendor/model) assigned to the customer and (2) bearer information, the management system knows which interface needs configuring on the CE ๐ง PE-CE link configuration is expected to be handled automatically through the SP's OSS, since both resources are managed internally ๐ CE-to-LAN interface parameters, such as dot1Q tags, are derived from the Ethernet connection, taking into account how the management system spreads dot1Q tags between the PE and the CE within the subnet. This lets a plug'n'play configuration be produced for the CE ๐ซถ
Here's an example of a generated CE configuration:
interface Ethernet0/1
switchport trunk allowed vlan none
switchport mode trunk
service instance 100 ethernet
encapsulation default
l2protocol forward cdp
xconnect 203.0.113.1 100 encapsulation mpls
!
8. YANG Module ๐
This YANG module imports typedefs from [RFC6991] and [RFC8341] ๐
<CODE BEGINS> file "ietf-l2vpn-svc@2018-10-09.yang"
module ietf-l2vpn-svc {
yang-version 1.1;
namespace "urn:ietf:params:xml:ns:yang:ietf-l2vpn-svc";
prefix l2vpn-svc;
import ietf-inet-types {
prefix inet;
}
import ietf-yang-types {
prefix yang;
}
import ietf-netconf-acm {
prefix nacm;
}
organization
"IETF L2SM Working Group.";
contact
"WG Web: <https://datatracker.ietf.org/wg/l2sm/>
WG List: <mailto:l2sm@ietf.org>
Editor: Giuseppe Fioccola
<mailto:giuseppe.fioccola@tim.it>";
description
"This YANG module defines a generic service configuration model
for Layer 2 VPN services common across all vendor
implementations.
Copyright (c) 2018 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 Simplified 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 8466;
see the RFC itself for full legal notices.";
revision 2018-10-09 {
description
"Initial revision.";
reference
"RFC 8466: A YANG Data Model for Layer 2 Virtual Private
Network (L2VPN) Service Delivery";
}
feature carrierscarrier {
description
"Enables the support of carriers' carriers (CsC).";
}
okay the features are all lined up and the typedefs and identities are serving ๐ โจ
feature ethernet-oam {
description
"Enables the support of Ethernet Service OAM.";
}
feature extranet-vpn {
description
"Enables the support of extranet VPNs.";
}
feature l2cp-control {
description
"Enables the support of L2CP control.";
}
feature input-bw {
description
"Enables the support of input bandwidth in a VPN.";
}
feature output-bw {
description
"Enables the support of output bandwidth in a VPN.";
}
feature uni-list {
description
"Enables the support of a list of UNIs in a VPN.";
}
feature cloud-access {
description
"Allows the VPN to connect to a Cloud Service Provider (CSP)
or an ISP.";
}
feature oam-3ah {
description
"Enables the support of OAM 802.3ah.";
}
feature micro-bfd {
description
"Enables the support of micro-BFD.";
}
feature bfd {
description
"Enables the support of BFD.";
}
feature signaling-options {
description
"Enables the support of signaling options.";
}
feature site-diversity {
description
"Enables the support of site diversity constraints in a VPN.";
}
feature encryption {
description
"Enables the support of encryption.";
}
feature always-on {
description
"Enables support for the 'always-on' access constraint.";
}
feature requested-type {
description
"Enables support for the 'requested-type' access constraint.";
}
feature bearer-reference {
description
"Enables support for the 'bearer-reference' access
constraint.";
}
feature qos {
description
"Enables support for QoS.";
}
feature qos-custom {
description
"Enables the support of a custom QoS profile.";
}
feature lag-interface {
description
"Enables LAG interfaces.";
}
feature vlan {
description
"Enables the support of VLANs.";
}
feature dot1q {
description
"Enables the support of dot1Q.";
}
feature qinq {
description
"Enables the support of QinQ.";
}
feature qinany {
description
"Enables the support of QinAny.";
}
feature vxlan {
description
"Enables the support of VXLANs.";
}
feature lan-tag {
description
"Enables LAN tag support in a VPN.";
}
feature target-sites {
description
"Enables the support of the 'target-sites'
match-flow parameter.";
}
feature bum {
description
"Enables BUM capabilities in a VPN.";
}
feature mac-loop-prevention {
description
"Enables the MAC loop-prevention capability in a VPN.";
}
feature lacp {
description
"Enables the Link Aggregation Control Protocol (LACP)
capability in a VPN.";
}
feature mac-addr-limit {
description
"Enables the MAC address limit capability in a VPN.";
}
feature acl {
description
"Enables the ACL capability in a VPN.";
}
feature cfm {
description
"Enables the 802.1ag CFM capability in a VPN.";
}
feature y-1731 {
description
"Enables the Y.1731 capability in a VPN.";
}
typedef svc-id {
type string;
description
"Defines the type of service component identifier.";
}
typedef ccm-priority-type {
type uint8 {
range "0..7";
}
description
"A 3-bit priority value to be used in the VLAN tag,
if present in the transmitted frame.";
}
typedef control-mode {
type enumeration {
enum peer {
description
"'peer' mode, i.e., participate in the protocol towards
the CE. Peering is common for LACP and the Ethernet
Local Management Interface (E-LMI) and, occasionally,
for LLDP. For VPLSs and VPWSs, the subscriber can also
request that the SP peer enable spanning tree.";
}
enum tunnel {
description
"'tunnel' mode, i.e., pass to the egress or destination
site. For EPLs, the expectation is that L2CP frames are
tunneled.";
}
enum discard {
description
"'discard' mode, i.e., discard the frame.";
}
}
description
"Defines the type of control mode on L2CP protocols.";
}
typedef neg-mode {
type enumeration {
enum full-duplex {
description
"Defines full-duplex mode.";
}
enum auto-neg {
description
"Defines auto-negotiation mode.";
}
}
description
"Defines the type of negotiation mode.";
}
identity site-network-access-type {
description
"Base identity for the site-network-access type.";
}
identity point-to-point {
base site-network-access-type;
description
"Identity for a point-to-point connection.";
}
identity multipoint {
base site-network-access-type;
description
"Identity for a multipoint connection, e.g.,
an Ethernet broadcast segment.";
}
identity tag-type {
description
"Base identity from which all tag types are derived.";
}
identity c-vlan {
base tag-type;
description
"A CVLAN tag, normally using the 0x8100 Ethertype.";
}
identity s-vlan {
base tag-type;
description
"An SVLAN tag.";
}
identity c-s-vlan {
base tag-type;
description
"Using both a CVLAN tag and an SVLAN tag.";
}
identity multicast-tree-type {
description
"Base identity for the multicast tree type.";
}
identity ssm-tree-type {
base multicast-tree-type;
description
"Identity for the Source-Specific Multicast (SSM) tree type.";
reference "RFC 8299: YANG Data Model for L3VPN Service Delivery";
}
identity asm-tree-type {
base multicast-tree-type;
description
"Identity for the Any-Source Multicast (ASM) tree type.";
reference "RFC 8299: YANG Data Model for L3VPN Service Delivery";
}
identity bidir-tree-type {
base multicast-tree-type;
description
"Identity for the bidirectional tree type.";
reference "RFC 8299: YANG Data Model for L3VPN Service Delivery";
}
identity multicast-gp-address-mapping {
description
"Identity for mapping type.";
}
identity static-mapping {
base multicast-gp-address-mapping;
description
"Identity for static mapping, i.e., attach the interface
to the multicast group as a static member.";
}
identity dynamic-mapping {
base multicast-gp-address-mapping;
description
"Identity for dynamic mapping, i.e., an interface was added
to the multicast group as a result of snooping.";
}
identity tf-type {
description
"Identity for the traffic type.";
}
identity multicast-traffic {
base tf-type;
description
"Identity for multicast traffic.";
}
identity broadcast-traffic {
base tf-type;
description
"Identity for broadcast traffic.";
}
identity unknown-unicast-traffic {
base tf-type;
description
"Identity for unknown unicast traffic.";
}
identity encapsulation-type {
description
"Identity for the encapsulation type.";
}
identity ethernet {
base encapsulation-type;
description
"Identity for Ethernet type.";
}
identity vlan {
base encapsulation-type;
description
"Identity for the VLAN type.";
}
identity carrierscarrier-type {
description
"Identity of the CsC type.";
}
identity ldp {
base carrierscarrier-type;
description
"Use LDP as the signaling protocol
between the PE and the CE.";
}
identity bgp {
base carrierscarrier-type;
description
"Use BGP (as per RFC 8277) as the signaling protocol
between the PE and the CE.
In this case, BGP must also be configured as
the routing protocol.";
}
identity eth-inf-type {
description
"Identity of the Ethernet interface type.";
}
identity tagged {
base eth-inf-type;
description
"Identity of the tagged interface type.";
}
identity untagged {
base eth-inf-type;
description
"Identity of the untagged interface type.";
}
identity lag {
base eth-inf-type;
description
"Identity of the LAG interface type.";
}
identity bw-type {
description
"Identity of the bandwidth type.";
}
identity bw-per-cos {
base bw-type;
description
"Bandwidth is per CoS.";
}
identity bw-per-port {
base bw-type;
description
"Bandwidth is per site network access.";
}
identity bw-per-site {
base bw-type;
description
"Bandwidth is per site. It is applicable to
all the site network accesses within the site.";
}
identity bw-per-svc {
base bw-type;
description
"Bandwidth is per VPN service.";
}
identity site-vpn-flavor {
description
"Base identity for the site VPN service flavor.";
}
identity site-vpn-flavor-single {
base site-vpn-flavor;
description
"Identity for the site VPN service flavor.
Used when the site belongs to only one VPN.";
}
identity site-vpn-flavor-multi {
base site-vpn-flavor;
description
"Identity for the site VPN service flavor.
Used when a logical connection of a site
belongs to multiple VPNs.";
}
identity site-vpn-flavor-nni {
base site-vpn-flavor;
description
"Identity for the site VPN service flavor.
Used to describe an NNI option A connection.";
}
identity service-type {
description
"Base identity of the service type.";
}
identity vpws {
base service-type;
description
"Point-to-point Virtual Private Wire Service (VPWS)
service type.";
}
identity pwe3 {
base service-type;
description
"Pseudowire Emulation Edge to Edge (PWE3) service type.";
}
identity ldp-l2tp-vpls {
base service-type;
description
"LDP-based or L2TP-based multipoint Virtual Private LAN
Service (VPLS) service type. This VPLS uses LDP-signaled
Pseudowires or L2TP-signaled Pseudowires.";
}
identity bgp-vpls {
base service-type;
description
"BGP-based multipoint VPLS service type. This VPLS uses a
BGP control plane as described in RFCs 4761 and 6624.";
}
identity vpws-evpn {
base service-type;
description
"VPWS service type using Ethernet VPNs (EVPNs)
as specified in RFC 7432.";
}
identity pbb-evpn {
base service-type;
description
"Provider Backbone Bridge (PBB) service type using
EVPNs as specified in RFC 7432.";
}
identity bundling-type {
description
"The base identity for the bundling type. It supports
multiple CE-VLANs associated with an L2VPN service or
all CE-VLANs associated with an L2VPN service.";
}
identity multi-svc-bundling {
base bundling-type;
description
"Identity for multi-service bundling, i.e.,
multiple CE-VLAN IDs can be associated with an
L2VPN service at a site.";
}
identity one2one-bundling {
base bundling-type;
description
"Identity for one-to-one service bundling, i.e.,
each L2VPN can be associated with only one CE-VLAN ID
at a site.";
}
identity all2one-bundling {
base bundling-type;
description
"Identity for all-to-one bundling, i.e., all CE-VLAN IDs
are mapped to one L2VPN service.";
}
identity color-id {
description
"Base identity of the color ID.";
}
identity color-id-cvlan {
base color-id;
description
"Identity of the color ID based on a CVLAN.";
}
identity cos-id {
description
"Identity of the CoS ID.";
}
identity cos-id-pcp {
base cos-id;
description
"Identity of the CoS ID based on the
Port Control Protocol (PCP).";
}
okay bestie, we're still in the YANG module and it's a whole identity parade ๐ฆ๐
identity cos-id-dscp {
base cos-id;
description
"Identity of the CoS ID based on DSCP.";
}
identity color-type {
description
"Identity of color types.";
}
identity green {
base color-type;
description
"Identity of the 'green' color type.";
}
identity yellow {
base color-type;
description
"Identity of the 'yellow' color type.";
}
identity red {
base color-type;
description
"Identity of the 'red' color type.";
}
identity policing {
description
"Identity of the type of policing applied.";
}
identity one-rate-two-color {
base policing;
description
"Identity of one-rate, two-color (1R2C).";
}
identity two-rate-three-color {
base policing;
description
"Identity of two-rate, three-color (2R3C).";
}
identity bum-type {
description
"Identity of the BUM type.";
}
identity broadcast {
base bum-type;
description
"Identity of broadcast.";
}
identity unicast {
base bum-type;
description
"Identity of unicast.";
}
identity multicast {
base bum-type;
description
"Identity of multicast.";
}
identity loop-prevention-type {
description
"Identity of loop prevention.";
}
identity shut {
base loop-prevention-type;
description
"Identity of shut protection.";
}
identity trap {
base loop-prevention-type;
description
"Identity of trap protection.";
}
identity lacp-state {
description
"Identity of the LACP state.";
}
identity lacp-on {
base lacp-state;
description
"Identity of LACP on.";
}
identity lacp-off {
base lacp-state;
description
"Identity of LACP off.";
}
identity lacp-mode {
description
"Identity of the LACP mode.";
}
identity lacp-passive {
base lacp-mode;
description
"Identity of LACP passive.";
}
identity lacp-active {
base lacp-mode;
description
"Identity of LACP active.";
}
identity lacp-speed {
description
"Identity of the LACP speed.";
}
identity lacp-fast {
base lacp-speed;
description
"Identity of LACP fast.";
}
identity lacp-slow {
base lacp-speed;
description
"Identity of LACP slow.";
}
identity bw-direction {
description
"Identity for the bandwidth direction.";
}
identity input-bw {
base bw-direction;
description
"Identity for the input bandwidth.";
}
identity output-bw {
base bw-direction;
description
"Identity for the output bandwidth.";
}
identity management {
description
"Base identity for the site management scheme.";
}
identity co-managed {
base management;
description
"Identity for a co-managed site.";
}
identity customer-managed {
base management;
description
"Identity for a customer-managed site.";
}
identity provider-managed {
base management;
description
"Identity for a provider-managed site.";
}
identity address-family {
description
"Identity for an address family.";
}
identity ipv4 {
base address-family;
description
"Identity for an IPv4 address family.";
}
identity ipv6 {
base address-family;
description
"Identity for an IPv6 address family.";
}
identity vpn-topology {
description
"Base identity for the VPN topology.";
}
identity any-to-any {
base vpn-topology;
description
"Identity for the any-to-any VPN topology.";
}
identity hub-spoke {
base vpn-topology;
description
"Identity for the Hub-and-Spoke VPN topology.";
}
identity hub-spoke-disjoint {
base vpn-topology;
description
"Identity for the Hub-and-Spoke VPN topology,
where Hubs cannot communicate with each other.";
}
identity site-role {
description
"Base identity for a site type.";
}
identity any-to-any-role {
base site-role;
description
"Site in an any-to-any L2VPN.";
}
identity spoke-role {
base site-role;
description
"Spoke site in a Hub-and-Spoke L2VPN.";
}
identity hub-role {
base site-role;
description
"Hub site in a Hub-and-Spoke L2VPN.";
}
identity pm-type {
description
"Performance-monitoring type.";
}
identity loss {
base pm-type;
description
"Loss measurement.";
}
identity delay {
base pm-type;
description
"Delay measurement.";
}
identity fault-alarm-defect-type {
description
"Indicates the alarm-priority defect (i.e., the
lowest-priority defect that is allowed to
generate a fault alarm).";
}
identity remote-rdi {
base fault-alarm-defect-type;
description
"Indicates the aggregate health
of the Remote MEPs.";
}
identity remote-mac-error {
base fault-alarm-defect-type;
description
"Indicates that one or more of the Remote MEPs are
reporting a failure in their Port Status TLVs or
Interface Status TLVs.";
}
identity remote-invalid-ccm {
base fault-alarm-defect-type;
description
"Indicates that at least one of the Remote MEP
state machines is not receiving valid
Continuity Check Messages (CCMs) from its Remote MEP.";
}
identity invalid-ccm {
base fault-alarm-defect-type;
description
"Indicates that one or more invalid CCMs have been
received and that a period of time 3.5 times the length
of those CCMs' transmission intervals has not yet expired.";
}
identity cross-connect-ccm {
base fault-alarm-defect-type;
description
"Indicates that one or more cross-connect CCMs have been
received and that 3.5 times the period of at least one of
those CCMs' transmission intervals has not yet expired.";
}
identity frame-delivery-mode {
description
"Delivery types.";
}
identity discard {
base frame-delivery-mode;
description
"Service frames are discarded.";
}
identity unconditional {
base frame-delivery-mode;
description
"Service frames are unconditionally delivered to the
destination site.";
}
identity unknown-discard {
base frame-delivery-mode;
description
"Service frames are conditionally delivered to the
destination site. Packets with unknown destination addresses
will be discarded.";
}
identity placement-diversity {
description
"Base identity for site placement constraints.";
}
identity bearer-diverse {
base placement-diversity;
description
"Identity for bearer diversity.
The bearers should not use common elements.";
}
identity pe-diverse {
base placement-diversity;
description
"Identity for PE diversity.";
}
identity pop-diverse {
base placement-diversity;
description
"Identity for POP diversity.";
}
identity linecard-diverse {
base placement-diversity;
description
"Identity for linecard diversity.";
}
identity same-pe {
base placement-diversity;
description
"Identity for having sites connected on the same PE.";
}
identity same-bearer {
base placement-diversity;
description
"Identity for having sites connected using the same bearer.";
}
identity tagged-inf-type {
description
"Identity for the tagged interface type.";
}
identity priority-tagged {
base tagged-inf-type;
description
"Identity for the priority-tagged interface.";
}
identity qinq {
base tagged-inf-type;
description
"Identity for the QinQ tagged interface.";
}
identity dot1q {
base tagged-inf-type;
description
"Identity for the dot1Q VLAN tagged interface.";
}
identity qinany {
base tagged-inf-type;
description
"Identity for the QinAny tagged interface.";
}
identity vxlan {
base tagged-inf-type;
description
"Identity for the VXLAN tagged interface.";
}
identity provision-model {
description
"Base identity for the provision model.";
}
identity single-side-provision {
description
"Identity for single-sided provisioning with discovery.";
}
identity doubled-side-provision {
description
"Identity for double-sided provisioning.";
}
identity mac-learning-mode {
description
"MAC learning mode.";
}
identity data-plane {
base mac-learning-mode;
description
"User MAC addresses are learned through ARP broadcast.";
}
identity control-plane {
base mac-learning-mode;
description
"User MAC addresses are advertised through EVPN-BGP.";
}
identity vpn-policy-filter-type {
description
"Base identity for the filter type.";
}
identity lan {
base vpn-policy-filter-type;
description
"Identity for a LAN tag filter type.";
}
identity mac-action {
description
"Base identity for a MAC action.";
}
identity drop {
base mac-action;
description
"Identity for dropping a packet.";
}
identity flood {
base mac-action;
description
"Identity for packet flooding.";
}
identity warning {
base mac-action;
description
"Identity for sending a warning log message.";
}
identity qos-profile-direction {
description
"Base identity for the QoS-profile direction.";
}
identity site-to-wan {
base qos-profile-direction;
description
"Identity for the site-to-WAN direction.";
}
identity wan-to-site {
base qos-profile-direction;
description
"Identity for the WAN-to-site direction.";
}
identity bidirectional {
base qos-profile-direction;
description
"Identity for both the WAN-to-site direction
and the site-to-WAN direction.";
}
identity vxlan-peer-mode {
description
"Base identity for the VXLAN peer mode.";
}
identity static-mode {
base vxlan-peer-mode;
description
"Identity for VXLAN access in the static mode.";
}
identity bgp-mode {
base vxlan-peer-mode;
description
"Identity for VXLAN access by BGP EVPN learning.";
}
identity customer-application {
description
"Base identity for a customer application.";
}
identity web {
base customer-application;
description
"Identity for a web application (e.g., HTTP, HTTPS).";
}
identity mail {
base customer-application;
description
"Identity for a mail application.";
}
identity file-transfer {
base customer-application;
description
"Identity for a file-transfer application
(e.g., FTP, SFTP).";
}
identity database {
base customer-application;
description
"Identity for a database application.";
}
identity social {
base customer-application;
description
"Identity for a social-network application.";
}
identity games {
base customer-application;
description
"Identity for a gaming application.";
}
identity p2p {
base customer-application;
description
"Identity for a peer-to-peer application.";
}
identity network-management {
base customer-application;
description
"Identity for a management application
(e.g., Telnet, syslog, SNMP).";
}
identity voice {
base customer-application;
description
"Identity for a voice application.";
}
identity video {
base customer-application;
description
"Identity for a videoconference application.";
}
okay bestie, we're still deep in the YANG module ๐ and first up are the customer-application identities. eMBB, URLLC, and mMTC each get a little description about what they need from the network ๐ฆ
identity embb {
base customer-application;
description
"Identity for the enhanced Mobile Broadband (eMBB)
application. Note that the eMBB application
requires strict threshold values for a wide variety
of network performance parameters (e.g., data rate,
latency, loss rate, reliability).";
}
identity urllc {
base customer-application;
description
"Identity for the Ultra-Reliable and Low Latency
Communications (URLLC) application. Note that the
URLLC application requires strict threshold values for
a wide variety of network performance parameters
(e.g., latency, reliability).";
}
identity mmtc {
base customer-application;
description
"Identity for the massive Machine Type
Communications (mMTC) application. Note that the
mMTC application requires strict threshold values for
a wide variety of network performance parameters
(e.g., data rate, latency, loss rate, reliability).";
}
next up is the site ACL grouping ๐ฅ it's basically a container called access-control-list that holds a list of MAC addresses, and it only shows up if the "acl" feature is turned on ๐
grouping site-acl {
container access-control-list {
if-feature "acl";
list mac {
key "mac-address";
leaf mac-address {
type yang:mac-address;
description
"MAC addresses.";
}
description
"List of MAC addresses.";
}
description
"Container for the ACL.";
}
description
"Grouping that defines the ACL.";
}
now the BUM grouping, and this one is a whole vibe ๐ it's got a multicast site type with receiver-only, source-only, and source-receiver options (defaulting to source-receiver), plus multicast group mappings, an overall rate, and per-type rate limits ๐ญ
grouping site-bum {
container broadcast-unknown-unicast-multicast {
if-feature "bum";
leaf multicast-site-type {
type enumeration {
enum receiver-only {
description
"The site only has receivers.";
}
enum source-only {
description
"The site only has sources.";
}
enum source-receiver {
description
"The site has both sources and receivers.";
}
}
default "source-receiver";
description
"Type of multicast site.";
}
list multicast-gp-address-mapping {
key "id";
leaf id {
type uint16;
description
"Unique identifier for the mapping.";
}
leaf vlan-id {
type uint16 {
range "0..1024";
}
mandatory true;
description
"The VLAN ID of the multicast group.
The range of the 12-bit VLAN ID is 0 to 1024.";
}
leaf mac-gp-address {
type yang:mac-address;
mandatory true;
description
"The MAC address of the multicast group.";
}
leaf port-lag-number {
type uint32;
description
"The ports/LAGs belonging to the multicast group.";
}
description
"List of port-to-group mappings.";
}
leaf bum-overall-rate {
type uint64;
units "bps";
description
"Overall rate for BUM.";
}
list bum-rate-per-type {
key "type";
leaf type {
type identityref {
base bum-type;
}
description
"BUM type.";
}
leaf rate {
type uint64;
units "bps";
description
"Rate for BUM.";
}
description
"List of limit rates for the BUM type.";
}
description
"Container of BUM configurations.";
}
description
"Grouping for BUM.";
}
next is MAC loop prevention ๐ง it has a protection type that defaults to "trap", a frequency that defaults to 5, and a retry timer, and yeah the retry timer is what flushes the duplicate MAC address out of the MAC-VRF once it runs out โฐ
grouping site-mac-loop-prevention {
container mac-loop-prevention {
if-feature "mac-loop-prevention";
leaf protection-type {
type identityref {
base loop-prevention-type;
}
default "trap";
description
"Protection type. By default, the protection
type is 'trap'.";
}
leaf frequency {
type uint32;
default "5";
description
"The number of times to detect MAC duplication, where
a 'duplicate MAC address' situation has occurred and
the duplicate MAC address has been added to a list of
duplicate MAC addresses. By default, the number of
times is 5.";
}
leaf retry-timer {
type uint32;
units "seconds";
description
"The retry timer. When the retry timer expires,
the duplicate MAC address will be flushed from
the MAC-VRF.";
}
description
"Container of MAC loop-prevention parameters.";
}
description
"Grouping for MAC loop prevention.";
}
last but not least for this part, the QoS grouping ๐ this is the big one. It has a classification policy with ordered rules (match-flow or match-application), and a QoS profile that is either a standard one picked by leafref or a custom one with classes, all wrapped up in its own container ๐ธ
grouping site-service-qos-profile {
container qos {
if-feature "qos";
container qos-classification-policy {
list rule {
key "id";
ordered-by user;
leaf id {
type string;
description
"A description identifying the QoS classification
policy rule.";
}
choice match-type {
default "match-flow";
case match-flow {
container match-flow {
leaf dscp {
type inet:dscp;
description
"DSCP value.";
}
leaf dot1q {
type uint16;
description
"802.1Q matching. It is a VLAN tag added into
a frame.";
}
leaf pcp {
type uint8 {
range "0..7";
}
description
"PCP value.";
}
leaf src-mac {
type yang:mac-address;
description
"Source MAC.";
}
leaf dst-mac {
type yang:mac-address;
description
"Destination MAC.";
}
leaf color-type {
type identityref {
base color-type;
}
description
"Color types.";
}
leaf-list target-sites {
if-feature "target-sites";
type svc-id;
description
"Identifies a site as a traffic destination.";
}
leaf any {
type empty;
description
"Allow all.";
}
leaf vpn-id {
type svc-id;
description
"Reference to the target VPN.";
}
description
"Describes flow-matching criteria.";
}
}
case match-application {
leaf match-application {
type identityref {
base customer-application;
}
description
"Defines the application to match.";
}
}
description
"Choice for classification.";
}
leaf target-class-id {
type string;
description
"Identification of the CoS.
This identifier is internal to the
administration.";
}
description
"List of marking rules.";
}
description
"Configuration of the traffic classification policy.";
}
container qos-profile {
choice qos-profile {
description
"Choice for the QoS profile.
Can be a standard profile or a customized profile.";
case standard {
description
"Standard QoS profile.";
leaf profile {
type leafref {
path "/l2vpn-svc/vpn-profiles/"
+ "valid-provider-identifiers/"
+ "qos-profile-identifier";
}
description
"QoS profile to be used.";
}
}
case custom {
description
"Customized QoS profile.";
container classes {
if-feature "qos-custom";
list class {
key "class-id";
leaf class-id {
type string;
description
"Identification of the CoS. This identifier is
internal to the administration.";
}
leaf direction {
type identityref {
base qos-profile-direction;
}
default "bidirectional";
description
"The direction in which the QoS profile is
applied. By default, the direction is
bidirectional.";
}
leaf policing {
type identityref {
base policing;
}
default "one-rate-two-color";
description
"The policing type can be either one-rate,
two-color (1R2C) or two-rate, three-color
(2R3C). By default, the policing type is
'one-rate-two-color'.";
}
leaf byte-offset {
type uint16;
description
okay the QoS section is where the bandwidth and delay knobs live ๐ โจ
"Number of bytes in the service frame header
that are excluded from the QoS calculation
(e.g., extra VLAN tags).";
}
container frame-delay {
choice flavor {
case lowest {
leaf use-lowest-latency {
type empty;
description
"The traffic class should use the path
with the lowest delay.";
}
}
case boundary {
leaf delay-bound {
type uint16;
units "milliseconds";
description
"The traffic class should use a path
with a defined maximum delay.";
}
}
description
"Delay constraint on the traffic class.";
}
description
"Delay constraint on the traffic class.";
}
container frame-jitter {
choice flavor {
case lowest {
leaf use-lowest-jitter {
type empty;
description
"The traffic class should use the path
with the lowest jitter.";
}
}
case boundary {
leaf delay-bound {
type uint32;
units "microseconds";
description
"The traffic class should use a path
with a defined maximum jitter.";
}
}
description
"Jitter constraint on the traffic class.";
}
description
"Jitter constraint on the traffic class.";
}
container frame-loss {
leaf rate {
type decimal64 {
fraction-digits 2;
range "0..100";
}
units "percent";
description
"Frame loss rate constraint on the traffic
class.";
}
description
"Container for frame loss rate.";
}
container bandwidth {
leaf guaranteed-bw-percent {
type decimal64 {
fraction-digits 5;
range "0..100";
}
units "percent";
mandatory true;
description
"Used to define the guaranteed bandwidth
as a percentage of the available service
bandwidth.";
}
leaf end-to-end {
type empty;
description
"Used if the bandwidth reservation
must be done on the MPLS network too.";
}
description
"Bandwidth constraint on the traffic class.";
}
description
"List of CoS entries.";
}
description
"Container for list of CoS entries.";
}
}
}
description
"Qos profile configuration.";
}
description
"QoS configuration.";
}
description
"Grouping that defines QoS parameters for a site.";
}
grouping site-service-mpls {
container carrierscarrier {
if-feature "carrierscarrier";
leaf signaling-type {
type identityref {
base carrierscarrier-type;
}
default "bgp";
description
"CsC. By default, the signaling type is 'bgp'.";
}
description
"Container for CsC.";
}
description
"Grouping for CsC.";
}
container l2vpn-svc {
container vpn-profiles {
container valid-provider-identifiers {
leaf-list cloud-identifier {
if-feature "cloud-access";
type string;
description
"Identification of the public cloud service or
Internet service. Local to each administration.";
}
leaf-list qos-profile-identifier {
type string;
description
"Identification of the QoS profile to be used.
Local to each administration.";
}
leaf-list bfd-profile-identifier {
type string;
description
"Identification of the SP BFD profile to be used.
Local to each administration.";
}
leaf-list remote-carrier-identifier {
type string;
description
"Identification of the remote carrier name to be used.
It can be an L2VPN partner, data-center SP, or
private CSP. Local to each administration.";
}
nacm:default-deny-write;
description
"Container for valid provider identifiers.";
}
description
"Container for VPN profiles.";
}
container vpn-services {
list vpn-service {
key "vpn-id";
leaf vpn-id {
type svc-id;
description
"Defines a service identifier.";
}
leaf vpn-svc-type {
type identityref {
base service-type;
}
default "vpws";
description
"Service type. By default, the service type is 'vpws'.";
}
leaf customer-name {
type string;
description
"Customer name.";
}
leaf svc-topo {
type identityref {
base vpn-topology;
}
default "any-to-any";
description
"Defines the service topology, e.g.,
'any-to-any', 'hub-spoke'.";
}
container cloud-accesses {
if-feature "cloud-access";
list cloud-access {
key "cloud-identifier";
leaf cloud-identifier {
type leafref {
path "/l2vpn-svc/vpn-profiles/"
+ "valid-provider-identifiers"
+ "/cloud-identifier";
}
description
"Identification of the cloud service.
Local to each administration.";
}
choice list-flavor {
case permit-any {
leaf permit-any {
type empty;
description
"Allow all sites.";
}
}
case deny-any-except {
leaf-list permit-site {
type leafref {
path "/l2vpn-svc/sites/site/site-id";
}
description
"Site ID to be authorized.";
}
}
case permit-any-except {
leaf-list deny-site {
type leafref {
path "/l2vpn-svc/sites/site/site-id";
}
description
"Site ID to be denied.";
}
}
description
"Choice for cloud access policy.
By default, all sites in the L2VPN
MUST be authorized to access the cloud.";
}
description
"Cloud access configuration.";
}
description
"Container for cloud access configurations.";
}
container frame-delivery {
if-feature "bum";
container customer-tree-flavors {
leaf-list tree-flavor {
type identityref {
base multicast-tree-type;
}
description
"Type of tree to be used.";
}
description
"Types of trees used by the customer.";
}
container bum-deliveries {
list bum-delivery {
key "frame-type";
leaf frame-type {
type identityref {
base tf-type;
}
description
"Type of frame delivery. It supports unicast
frame delivery, multicast frame delivery,
and broadcast frame delivery.";
}
leaf delivery-mode {
type identityref {
base frame-delivery-mode;
}
default "unconditional";
description
"Defines the frame delivery mode
('unconditional' (default), 'conditional',
or 'discard'). By default, service frames are
unconditionally delivered to the destination site.";
}
description
"List of frame delivery types and modes.";
}
description
"Defines the frame delivery types and modes.";
}
leaf multicast-gp-port-mapping {
type identityref {
base multicast-gp-address-mapping;
okay bestie, the sites container is where the real magic happens ๐ โจ
}
mandatory true;
description
"Describes the way in which each interface is
associated with the multicast group.";
}
description
"Multicast global parameters for the VPN service.";
}
container extranet-vpns {
if-feature "extranet-vpn";
list extranet-vpn {
key "vpn-id";
leaf vpn-id {
type svc-id;
description
"Identifies the target VPN that the local VPN wants to
access.";
}
leaf local-sites-role {
type identityref {
base site-role;
}
default "any-to-any-role";
description
"Describes the role of the local sites in the target
VPN topology. In the any-to-any VPN service topology,
the local sites must have the same role, which will be
'any-to-any-role'. In the Hub-and-Spoke VPN service
topology or the Hub-and-Spoke-Disjoint VPN service
topology, the local sites must have a Hub role or a
Spoke role.";
}
description
"List of extranet VPNs to which the local VPN
is attached.";
}
description
"Container for extranet VPN configurations.";
}
leaf ce-vlan-preservation {
type boolean;
mandatory true;
description
"Preserves the CE-VLAN ID from ingress to egress, i.e.,
the CE-VLAN tag of the egress frame is identical to
that of the ingress frame that yielded this
egress service frame. If all-to-one bundling within
a site is enabled, then preservation applies to all
ingress service frames. If all-to-one bundling is
disabled, then preservation applies to tagged
ingress service frames having CE-VLAN IDs 1 through 4094.";
}
leaf ce-vlan-cos-preservation {
type boolean;
mandatory true;
description
"CE VLAN CoS preservation. The PCP bits in the CE-VLAN tag
of the egress frame are identical to those of the
ingress frame that yielded this egress service frame.";
}
leaf carrierscarrier {
if-feature "carrierscarrier";
type boolean;
default "false";
description
"The VPN is using CsC, and so MPLS is required.";
}
description
"List of VPN services.";
}
description
"Container for VPN services.";
}
container sites {
list site {
key "site-id";
leaf site-id {
type string;
description
"Identifier of the site.";
}
leaf site-vpn-flavor {
type identityref {
base site-vpn-flavor;
}
default "site-vpn-flavor-single";
description
"Defines the way that the VPN multiplexing is
done, e.g., whether the site belongs to
a single VPN site or a multi-VPN site. By
default, the site belongs to a single VPN.";
}
container devices {
when "derived-from-or-self(../management/type, "
+ "'l2vpn-svc:provider-managed') or "
+ "derived-from-or-self(../management/type, "
+ "'l2vpn-svc:co-managed')" {
description
"Applicable only for a provider-managed or
co-managed device.";
}
list device {
key "device-id";
leaf device-id {
type string;
description
"Identifier for the device.";
}
leaf location {
type leafref {
path "../../../locations/location/location-id";
}
mandatory true;
description
"Location of the device.";
}
container management {
when "derived-from-or-self(../../../management/type, "
+ "'l2vpn-svc:co-managed')" {
description
"Applicable only for a co-managed device.";
}
leaf transport {
type identityref {
base address-family;
}
description
"Transport protocol or address family
used for management.";
}
leaf address {
when '(../ transport)' {
description
"If the address family is specified, then the
address should also be specified. If the
transport is not specified, then the address
should not be specified.";
}
type inet:ip-address;
description
"Management address.";
}
description
"Management configuration. Applicable only for a
co-managed device.";
}
description
"List of devices requested by the customer.";
}
description
"Device configurations.";
}
container management {
leaf type {
type identityref {
base management;
}
mandatory true;
description
"Management type of the connection.";
}
description
"Management configuration.";
}
container locations {
list location {
key "location-id";
leaf location-id {
type string;
description
"Location ID.";
}
leaf address {
type string;
description
"Address (number and street) of the site.";
}
leaf postal-code {
type string;
description
"Postal code of the site. The format of 'postal-code'
is similar to the 'PC' (postal code) label format
defined in RFC 4119.";
}
leaf state {
type string;
description
"State (region) of the site. This leaf can also be used
to describe a region of a country that does not have
states.";
}
leaf city {
type string;
description
"City of the site.";
}
leaf country-code {
type string;
description
"Country of the site. The format of 'country-code' is
similar to the 'country' label defined in RFC 4119.";
}
description
"List of locations.";
}
description
"Location of the site.";
}
container site-diversity {
if-feature "site-diversity";
container groups {
list group {
key "group-id";
leaf group-id {
type string;
description
"The group-id to which the site belongs.";
}
description
"List of group-ids.";
}
description
"Groups to which the site belongs.
All site network accesses will inherit those group
values.";
}
description
"The type of diversity constraint.";
}
container vpn-policies {
list vpn-policy {
key "vpn-policy-id";
leaf vpn-policy-id {
type string;
description
"Unique identifier for the VPN policy.";
}
list entries {
key "id";
leaf id {
type string;
description
"Unique identifier for the policy entry.";
}
container filters {
list filter {
key "type";
ordered-by user;
leaf type {
type identityref {
base vpn-policy-filter-type;
}
description
"Type of VPN policy filter.";
}
leaf-list lan-tag {
when "derived-from-or-self(../type, "
+ "'l2vpn-svc:lan')" {
description
"Only applies when the VPN policy filter is a
LAN tag filter.";
}
if-feature "lan-tag";
type uint32;
description
"List of Ethernet LAN tags to be matched. An
Ethernet LAN tag identifies a particular
broadcast domain in a VPN.";
}
description
"List of filters used on the site. This list can
be augmented.";
}
description
"If a more granular VPN attachment is necessary,
filtering can be used. If used, it permits the
splitting of site LANs among multiple VPNs. The
site LAN can be split based on either the LAN tag or
the LAN prefix. If no filter is used, all the LANs
will be part of the same VPNs with the same role.";
}
list vpn {
key "vpn-id";
leaf vpn-id {
type leafref {
path "/l2vpn-svc/vpn-services/vpn-service/vpn-id";
}
description
"Reference to an L2VPN.";
}
leaf site-role {
type identityref {
base site-role;
}
default "any-to-any-role";
description
"Role of the site in the L2VPN.";
}
description
"List of VPNs with which the LAN is associated.";
}
description
"List of entries for an export policy.";
}
description
"List of VPN policies.";
}
description
"VPN policy.";
}
container service {
uses site-service-qos-profile;
uses site-service-mpls;
description
"Service parameters on the attachment.";
}
uses site-bum;
uses site-mac-loop-prevention;
uses site-acl;
leaf actual-site-start {
type yang:date-and-time;
config false;
description
"This leaf is optional. It indicates the date and time
when the service at a particular site actually started.";
}
leaf actual-site-stop {
type yang:date-and-time;
config false;
description
"This leaf is optional. It indicates the date and time
when the service at a particular site actually stopped.";
}
leaf bundling-type {
type identityref {
Okay bestie, this chunk is all YANG, so the code stays exactly as written ๐ ๐
base bundling-type;
}
default "one2one-bundling";
description
"Bundling type. By default, each L2VPN
can be associated with only one
CE-VLAN, i.e., one-to-one bundling is used.";
}
leaf default-ce-vlan-id {
type uint32;
mandatory true;
description
"Default CE VLAN ID set at the site level.";
}
container site-network-accesses {
list site-network-access {
key "network-access-id";
leaf network-access-id {
type string;
description
"Identifier of network access.";
}
leaf remote-carrier-name {
when "derived-from-or-self(../../../site-vpn-flavor,"
+ "'l2vpn-svc:site-vpn-flavor-nni')" {
description
"Relevant when the site's VPN flavor is
'site-vpn-flavor-nni'.";
}
type leafref {
path "/l2vpn-svc/vpn-profiles/"
+ "valid-provider-identifiers"
+ "/remote-carrier-identifier";
}
description
"Remote carrier name. The 'remote-carrier-name'
parameter must be configured only when
'site-vpn-flavor' is set to 'site-vpn-flavor-nni'.
If it is not set, it indicates that the customer
does not know the remote carrier's name
beforehand.";
}
leaf type {
type identityref {
base site-network-access-type;
}
default "point-to-point";
description
"Describes the type of connection, e.g.,
point-to-point or multipoint.";
}
choice location-flavor {
case location {
when "derived-from-or-self(../../management/type, "
+ "'l2vpn-svc:customer-managed')" {
description
"Applicable only for a customer-managed device.";
}
leaf location-reference {
type leafref {
path "../../../locations/location/location-id";
}
description
"Location of the site-network-access.";
}
}
case device {
when "derived-from-or-self(../../management/type, "
+ "'l2vpn-svc:provider-managed') or "
+ "derived-from-or-self(../../management/type, "
+ "'l2vpn-svc:co-managed')" {
description
"Applicable only for a provider-managed
or co-managed device.";
}
leaf device-reference {
type leafref {
path "../../../devices/device/device-id";
}
description
"Identifier of the CE to use.";
}
}
mandatory true;
description
"Choice of how to describe the site's location.";
}
container access-diversity {
if-feature "site-diversity";
container groups {
list group {
key "group-id";
leaf group-id {
type string;
description
"Group-id to which the site belongs.";
}
description
"List of group-ids.";
}
description
"Groups to which the site or site-network-access
belongs.";
}
container constraints {
list constraint {
key "constraint-type";
leaf constraint-type {
type identityref {
base placement-diversity;
}
description
"The type of diversity constraint.";
}
container target {
choice target-flavor {
default "id";
case id {
list group {
key "group-id";
leaf group-id {
type string;
description
"The constraint will apply against this
particular group-id.";
}
description
"List of groups.";
}
}
case all-accesses {
leaf all-other-accesses {
type empty;
description
"The constraint will apply against all other
site network accesses of this site.";
}
}
case all-groups {
leaf all-other-groups {
type empty;
description
"The constraint will apply against all other
groups the customer is managing.";
}
}
description
"Choice for the group definition.";
}
description
"The constraint will apply against
this list of groups.";
}
description
"List of constraints.";
}
description
"Constraints for placing this site network access.";
}
description
"Diversity parameters.";
}
container bearer {
container requested-type {
if-feature "requested-type";
leaf type {
type string;
description
"Type of requested bearer: Ethernet, ATM, Frame
Relay, IP Layer 2 transport, Frame Relay Data
Link Connection Identifier (DLCI), SONET/SDH,
PPP.";
}
leaf strict {
type boolean;
default "false";
description
"Defines whether the requested type is a preference
or a strict requirement.";
}
description
"Container for requested types.";
}
leaf always-on {
if-feature "always-on";
type boolean;
default "true";
description
"Request for an 'always-on' access type.
For example, this could mean no dial-in access
type.";
}
leaf bearer-reference {
if-feature "bearer-reference";
type string;
description
"An internal reference for the SP.";
}
description
"Bearer-specific parameters. To be augmented.";
}
container connection {
leaf encapsulation-type {
type identityref {
base encapsulation-type;
}
default "ethernet";
description
"Encapsulation type. By default, the
encapsulation type is set to 'ethernet'.";
}
leaf eth-inf-type {
type identityref {
base eth-inf-type;
}
default "untagged";
description
"Ethernet interface type. By default, the
Ethernet interface type is set to 'untagged'.";
}
container tagged-interface {
leaf type {
type identityref {
base tagged-inf-type;
}
default "priority-tagged";
description
"Tagged interface type. By default,
the type of the tagged interface is
'priority-tagged'.";
}
container dot1q-vlan-tagged {
when "derived-from-or-self(../type, "
+ "'l2vpn-svc:dot1q')" {
description
"Only applies when the type of the tagged
interface is 'dot1q'.";
}
if-feature "dot1q";
leaf tg-type {
type identityref { base tag-type; } default "c-vlan"; description "Tag type. By default, the tag type is 'c-vlan'."; } leaf cvlan-id { type uint16; mandatory true; description "VLAN identifier."; } description "Tagged interface."; } container priority-tagged { when "derived-from-or-self(../type, "
- "'l2vpn-svc:priority-tagged')" { description "Only applies when the type of the tagged interface is 'priority-tagged'."; } leaf tag-type { type identityref { base tag-type; } default "c-vlan"; description "Tag type. By default, the tag type is 'c-vlan'."; } description "Priority tagged."; } container qinq { when "derived-from-or-self(../type, "
- "'l2vpn-svc:qinq')" { description "Only applies when the type of the tagged interface is 'qinq'."; } if-feature "qinq"; leaf tag-type { type identityref { base tag-type; } default "c-s-vlan"; description "Tag type. By default, the tag type is 'c-s-vlan'."; } leaf svlan-id { type uint16; mandatory true; description "SVLAN identifier."; } leaf cvlan-id { type uint16; mandatory true; description "CVLAN identifier."; } description "QinQ."; } container qinany { when "derived-from-or-self(../type, "
- "'l2vpn-svc:qinany')" { description "Only applies when the type of the tagged interface is 'qinany'."; } if-feature "qinany"; leaf tag-type { type identityref { base tag-type; } default "s-vlan"; description "Tag type. By default, the tag type is 's-vlan'."; } leaf svlan-id { type uint16; mandatory true; description "SVLAN ID."; } description "Container for QinAny."; } container vxlan { when "derived-from-or-self(../type, "
- "'l2vpn-svc:vxlan')" { description "Only applies when the type of the tagged interface is 'vxlan'."; } if-feature "vxlan"; leaf vni-id { type uint32; mandatory true; description "VXLAN Network Identifier (VNI)."; } leaf peer-mode { type identityref { base vxlan-peer-mode; } default "static-mode"; description "Specifies the VXLAN access mode. By default, the peer mode is set to 'static-mode'."; } list peer-list { key "peer-ip"; leaf peer-ip { type inet:ip-address; description "Peer IP."; } description "List of peer IP addresses."; } description "QinQ."; } description "Container for tagged interfaces."; } container untagged-interface { leaf speed { type uint32; units "mbps"; default "10"; description "Port speed."; } leaf mode { type neg-mode; default "auto-neg"; description "Negotiation mode."; } leaf phy-mtu { type uint32; units "bytes"; description "PHY MTU."; } leaf lldp { type boolean; default "false"; description "LLDP. Indicates that LLDP is supported."; } container oam-802.3ah-link { if-feature "oam-3ah"; leaf enabled { type boolean; default "false"; description "Indicates whether or not to support OAM 802.3ah links."; } description "Container for OAM 802.3ah links."; } leaf uni-loop-prevention { type boolean; default "false"; description "If this leaf is set to 'true', then the port automatically goes down when a physical loopback is detected."; } description "Container of untagged interface attribute configurations."; } container lag-interfaces { if-feature "lag-interface"; list lag-interface { key "index"; leaf index { type string; description "LAG interface index."; } container lacp { if-feature "lacp"; leaf enabled { type boolean; default "false"; description "LACP on/off. By default, LACP is disabled."; } leaf mode { type neg-mode; description "LACP mode. LACP modes have active mode and passive mode ('false'). 'Active mode' means initiating the auto-speed negotiation and trying to form an Ethernet channel with the other end. 'Passive mode' means not initiating the negotiation but responding to LACP packets initiated by the other end (e.g., full duplex or half duplex)."; } leaf speed { type uint32; units "mbps"; default "10"; description "LACP speed. By default, the LACP speed is 10 Mbps."; } leaf mini-link-num { type uint32; description "Defines the minimum number of links that must be active before the aggregating link is put into service."; } leaf system-priority { type uint16; default "32768"; description "Indicates the LACP priority for the system. The range is from 0 to 65535. The default is 32768."; } container micro-bfd { if-feature "micro-bfd"; leaf enabled { type enumeration { enum on {
description "Micro-bfd on."; } enum off { description "Micro-bfd off."; } } default "off"; description "Micro-BFD on/off. By default, micro-BFD is set to 'off'."; } leaf interval { type uint32; units "milliseconds"; description "BFD interval."; } leaf hold-timer { type uint32; units "milliseconds"; description "BFD hold timer."; } description "Container of micro-BFD configurations."; } container bfd { if-feature "bfd"; leaf enabled { type boolean; default "false"; description "BFD activation. By default, BFD is not activated."; } choice holdtime { default "fixed"; case profile { leaf profile-name { type leafref { path "/l2vpn-svc/vpn-profiles/"
- "valid-provider-identifiers"
- "/bfd-profile-identifier"; } description "SP well-known profile.";
} description "SP well-known profile."; } case fixed { leaf fixed-value { type uint32; units "milliseconds"; description "Expected hold time expressed in milliseconds."; } } description "Choice for the hold-time flavor."; } description "Container for BFD."; } container member-links { list member-link { key "name"; leaf name { type string; description "Member link name."; } leaf speed { type uint32; units "mbps"; default "10"; description "Port speed."; } leaf mode { type neg-mode; default "auto-neg"; description "Negotiation mode."; } leaf link-mtu { type uint32; units "bytes"; description "Link MTU size."; } container oam-802.3ah-link { if-feature "oam-3ah"; leaf enabled { type boolean; default "false"; description "Indicates whether OAM 802.3ah links are supported."; } description "Container for OAM 802.3ah links."; } description "Member link."; } description "Container of the member link list."; } leaf flow-control { type boolean; default "false"; description "Flow control. Indicates whether flow control is supported."; } leaf lldp { type boolean; default "false"; description "LLDP. Indicates whether LLDP is supported."; } description "LACP."; } description "List of LAG interfaces."; } description "Container of LAG interface attribute configurations."; } list cvlan-id-to-svc-map { key "svc-id"; leaf svc-id { type leafref { path "/l2vpn-svc/vpn-services/vpn-service/vpn-id"; } description "VPN service identifier."; } list cvlan-id { key "vid"; leaf vid { type uint16; description "CVLAN ID."; } description "List of CVLAN-ID-to-SVC-map configurations."; } description "List of CVLAN-ID-to-L2VPN-service-map configurations."; } container l2cp-control { if-feature "l2cp-control"; leaf stp-rstp-mstp { type control-mode; description "STP / Rapid STP (RSTP) / Multiple STP (MSTP) protocol type applicable to all sites."; } leaf pause { type control-mode; description "Pause protocol type applicable to all sites."; } leaf lacp-lamp { type control-mode; description "LACP / Link Aggregation Marker Protocol (LAMP)."; } leaf link-oam { type control-mode; description "Link OAM."; } leaf esmc { type control-mode; description "Ethernet Synchronization Messaging Channel (ESMC)."; } leaf l2cp-802.1x { type control-mode; description "IEEE 802.1x."; } leaf e-lmi { type control-mode; description "E-LMI."; } leaf lldp { type boolean; description "LLDP protocol type applicable to all sites."; } leaf ptp-peer-delay { type control-mode; description "Precision Time Protocol (PTP) peer delay."; } leaf garp-mrp { type control-mode; description "GARP/MRP."; } description "Container of L2CP control configurations."; } container oam { if-feature "ethernet-oam"; leaf md-name { type string; mandatory true; description "Maintenance domain name."; } leaf md-level { type uint16 { range "0..255"; } mandatory true; description "Maintenance domain level. The level may be restricted in certain protocols (e.g., protocols in Layer 0 to Layer 7)."; } list cfm-8021-ag { if-feature "cfm"; key "maid"; leaf maid { type string; mandatory true; description
"Identifies a Maintenance Association (MA)."; } leaf mep-id { type uint32; description "Local Maintenance Entity Group End Point (MEP) ID. The non-existence of this leaf means that no defects are to be reported."; } leaf mep-level { type uint32; description "Defines the MEP level. The non-existence of this leaf means that no defects are to be reported."; } leaf mep-up-down { type enumeration { enum up { description "MEP up."; } enum down { description "MEP down."; } } default "up"; description "MEP up/down. By default, MEP up is used. The non-existence of this leaf means that no defects are to be reported."; } leaf remote-mep-id { type uint32; description "Remote MEP ID. The non-existence of this leaf means that no defects are to be reported."; } leaf cos-for-cfm-pdus { type uint32; description "CoS for CFM PDUs. The non-existence of this leaf means that no defects are to be reported."; } leaf ccm-interval { type uint32; units "milliseconds"; default "10000"; description "CCM interval. By default, the CCM interval is 10,000 milliseconds (10 seconds)."; } leaf ccm-holdtime { type uint32; units "milliseconds"; default "35000"; description "CCM hold time. By default, the CCM hold time is 3.5 times the CCM interval."; } leaf alarm-priority-defect { type identityref { base fault-alarm-defect-type; } default "remote-invalid-ccm"; description "The lowest-priority defect that is allowed to generate a fault alarm. By default, 'fault-alarm-defect-type' is set to 'remote-invalid-ccm'. The non-existence of this leaf means that no defects are to be reported."; } leaf ccm-p-bits-pri { type ccm-priority-type; description "The priority parameter for CCMs transmitted by the MEP. The non-existence of this leaf means that no defects are to be reported."; } description "List of 802.1ag CFM attributes."; } list y-1731 { if-feature "y-1731"; key "maid"; leaf maid { type string; mandatory true; description "Identifies an MA."; } leaf mep-id { type uint32; description "Local MEP ID. The non-existence of this leaf
means that no measurements are to be reported."; } leaf type { type identityref { base pm-type; } default "delay"; description "Performance-monitoring types. By default, the performance-monitoring type is set to 'delay'. The non-existence of this leaf means that no measurements are to be reported."; } leaf remote-mep-id { type uint32; description "Remote MEP ID. The non-existence of this leaf means that no measurements are to be reported."; } leaf message-period { type uint32; units "milliseconds"; default "10000"; description "Defines the interval between Y.1731 performance-monitoring messages. The message period is expressed in milliseconds."; } leaf measurement-interval { type uint32; units "seconds"; description "Specifies the measurement interval for statistics. The measurement interval is expressed in seconds."; } leaf cos { type uint32; description "CoS. The non-existence of this leaf means that no measurements are to be reported."; } leaf loss-measurement { type boolean; default "false"; description "Indicates whether or not to enable loss
measurement. By default, loss measurement is not enabled."; } leaf synthetic-loss-measurement { type boolean; default "false"; description "Indicates whether or not to enable synthetic loss measurement. By default, synthetic loss measurement is not enabled."; } container delay-measurement { leaf enable-dm { type boolean; default "false"; description "Indicates whether or not to enable delay measurement. By default, delay measurement is not enabled."; } leaf two-way { type boolean; default "false"; description "Indicates whether delay measurement is two-way ('true') or one-way ('false'). By default, one-way measurement is enabled."; } description "Container for delay measurement."; } leaf frame-size { type uint32; units "bytes"; description "Frame size. The non-existence of this leaf means that no measurements are to be reported."; } leaf session-type { type enumeration { enum proactive { description "Proactive mode."; } enum on-demand { description "On-demand mode."; }
} default "on-demand"; description "Session type. By default, the session type is 'on-demand'. The non-existence of this leaf means that no measurements are to be reported."; } description "List of configured Y-1731 instances."; } description "Container for Ethernet Service OAM."; } description "Container for connection requirements."; } container availability { leaf access-priority { type uint32; default "100"; description "Access priority. The higher the access-priority value, the higher the preference will be for the access in question."; } choice redundancy-mode { case single-active { leaf single-active { type empty; description "Single-active mode."; } description "In single-active mode, only one node forwards traffic to and from the Ethernet segment."; } case all-active { leaf all-active { type empty; description "All-active mode."; } description "In all-active mode, all nodes can forward traffic."; } description
"Redundancy mode choice."; } description "Container of available optional configurations."; } container vpn-attachment { choice attachment-flavor { case vpn-id { leaf vpn-id { type leafref { path "/l2vpn-svc/vpn-services/vpn-service/vpn-id"; } description "Reference to an L2VPN. Referencing a vpn-id provides an easy way to attach a particular logical access to a VPN. In this case, the vpn-id must be configured."; } leaf site-role { type identityref { base site-role; } default "any-to-any-role"; description "Role of the site in the L2VPN. When referencing a vpn-id, the site-role setting must be added to express the role of the site in the target VPN service topology."; } } case vpn-policy-id { leaf vpn-policy-id { type leafref { path "../../../../vpn-policies/vpn-policy/"
- "vpn-policy-id"; } description "Reference to a VPN policy."; } } mandatory true; description "Choice for the VPN attachment flavor."; } description "Defines the VPN attachment of a site."; } container service {
container svc-bandwidth { if-feature "input-bw"; list bandwidth { key "direction type"; leaf direction { type identityref { base bw-direction; } description "Indicates the bandwidth direction. It can be the bandwidth download direction from the SP to the site or the bandwidth upload direction from the site to the SP."; } leaf type { type identityref { base bw-type; } description "Bandwidth type. By default, the bandwidth type is set to 'bw-per-cos'."; } leaf cos-id { when "derived-from-or-self(../type, "
- "'l2vpn-svc:bw-per-cos')" { description "Relevant when the bandwidth type is set to 'bw-per-cos'."; } type uint8; description "Identifier of the CoS, indicated by DSCP or a CE-VLAN CoS (802.1p) value in the service frame. If the bandwidth type is set to 'bw-per-cos', the CoS ID MUST also be specified."; } leaf vpn-id { when "derived-from-or-self(../type, "
- "'l2vpn-svc:bw-per-svc')" { description "Relevant when the bandwidth type is set as bandwidth per VPN service."; } type svc-id; description "Identifies the target VPN. If the bandwidth type is set as bandwidth per VPN service, the vpn-id MUST be specified.";
}
leaf cir {
type uint64;
units "bps";
mandatory true;
description
"Committed Information Rate. The maximum number
of bits that a port can receive or send over
an interface in one second.";
}
leaf cbs {
type uint64;
units "bps";
mandatory true;
description
"Committed Burst Size (CBS). Controls the bursty
nature of the traffic. Traffic that does not
use the configured Committed Information Rate
(CIR) accumulates credits until the credits
reach the configured CBS.";
}
leaf eir {
type uint64;
units "bps";
description
"Excess Information Rate (EIR), i.e., excess frame
delivery allowed that is not subject to an SLA.
The traffic rate can be limited by the EIR.";
}
leaf ebs {
type uint64;
units "bps";
description
"Excess Burst Size (EBS). The bandwidth available
for burst traffic from the EBS is subject to the
amount of bandwidth that is accumulated during
periods when traffic allocated by the EIR
policy is not used.";
}
leaf pir {
type uint64;
units "bps";
description
"Peak Information Rate, i.e., maximum frame
delivery allowed. It is equal to or less
than the sum of the CIR and the EIR.";
}
leaf pbs {
type uint64;
units "bps";
description
"Peak Burst Size. It is measured in bytes per
second.";
}
description
"List of bandwidth values (e.g., per CoS,
per vpn-id).";
}
description
"From the customer site's perspective, the service
input/output bandwidth of the connection or
download/upload bandwidth from the SP/site
to the site/SP.";
}
leaf svc-mtu {
type uint16;
units "bytes";
mandatory true;
description
"SVC MTU. It is also known as the maximum
transmission unit or maximum frame size. When
a frame is larger than the MTU, it is broken
down, or fragmented, into smaller pieces by
the network protocol to accommodate the MTU
of the network. If CsC is enabled,
the requested svc-mtu leaf will refer to the
MPLS MTU and not to the link MTU.";
}
uses site-service-qos-profile;
uses site-service-mpls;
description
"Container for services.";
}
uses site-bum;
uses site-mac-loop-prevention;
uses site-acl;
container mac-addr-limit {
if-feature "mac-addr-limit";
leaf limit-number {
type uint16;
default "2";
description
"Maximum number of MAC addresses learned from
the subscriber for a single service instance.
The default allowed maximum number of MAC
addresses is 2.";
}
leaf time-interval {
type uint32;
units "seconds";
default "300";
description
"The aging time of the MAC address. By default,
the aging time is set to 300 seconds.";
}
leaf action {
type identityref {
base mac-action;
}
default "warning";
description
"Specifies the action taken when the upper limit is
exceeded: drop the packet, flood the packet, or
simply send a warning log message. By default,
the action is set to 'warning'.";
}
description
"Container of MAC address limit configurations.";
}
description
"List of site network accesses.";
}
description
"Container of port configurations.";
}
description
"List of sites.";
}
description
"Container of site configurations.";
}
description
"Container for L2VPN services.";
}
}
<CODE ENDS>
9. Security Considerations ๐
Okay, bestie, security time, and it's serious ๐. The YANG module in this doc defines a schema for data that's built to be reached through network management protocols like NETCONF [RFC6241] or RESTCONF [RFC8040]. The lowest NETCONF layer is the secure transport layer, and the mandatory-to-implement secure transport there is Secure Shell (SSH) [RFC6242]. The lowest RESTCONF layer is HTTPS, and the mandatory-to-implement secure transport there is TLS [RFC8446].
The NETCONF access control model [RFC8341] gives you the tools to restrict particular NETCONF or RESTCONF users to a preconfigured subset of all the available NETCONF or RESTCONF protocol operations and content. Think of it as a bouncer with a very specific guest list ๐ซถ.
There are a bunch of data nodes in this YANG module that are writable, creatable, and deletable (that's 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) to these data nodes without proper protection can have a negative effect on network operations. These are the subtrees and data nodes, plus their sensitivity and vulnerability:
/l2vpn-svc/vpn-services/vpn-service
The entries in the list above include all of the VPN service configurations the customer subscribes to, which get used to indirectly create or modify the PE and CE device configurations. Unexpected changes to these entries could lead to service disruptions and/or network misbehavior. ๐ญ
/l2vpn-svc/sites/site
The entries in the list above include the customer site configurations. As noted in the previous paragraph, unexpected changes to these entries could lead to service disruptions and/or network misbehavior. ๐
Some of the readable data nodes in this YANG module may be considered sensitive or vulnerable in some network environments, so it's really important to control read access to these data nodes (for example, via get, get-config, or notification). These are the subtrees and data nodes, plus their sensitivity and vulnerability:
/l2vpn-svc/vpn-services/vpn-service/l2vpn-svc/sites/site
The entries in the lists above include customer-proprietary or confidential information, e.g., customer name, site location, and the services the customer subscribes to. Keep that stuff locked down ๐.
When an SP works with multiple customers, it has to make sure that a given customer can only view and modify its (the customer's) own service information. No peeking at the neighbours' data, periodt ๐ โโ๏ธ.
The data model defines some security parameters that can be extended via augmentation as part of the customer service request. Those parameters are described in Sections 5.12 and 5.13.
10. IANA Considerations ๐ธ
IANA has assigned a new URI from the "IETF XML Registry" [RFC3688].
URI: urn:ietf:params:xml:ns:yang:ietf-l2vpn-svc
Registrant Contact: The IESG
XML: N/A; the requested URI is an XML namespace
IANA has also assigned a new YANG module name in the "YANG Module Names" registry [RFC6020].
name: ietf-l2vpn-svc
namespace: urn:ietf:params:xml:ns:yang:ietf-l2vpn-svc
prefix: l2vpn-svc
reference: RFC 8466
11. References ๐
11.1. Normative References ๐
- [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, March 1997, <https://www.rfc-editor.org/info/rfc2119>. ๐
- [RFC3688] Mealling, M., "The IETF XML Registry", BCP 81, RFC 3688, DOI 10.17487/RFC3688, January 2004, <https://www.rfc-editor.org/info/rfc3688>. ๐
- [RFC4364] Rosen, E. and Y. Rekhter, "BGP/MPLS IP Virtual Private Networks (VPNs)", RFC 4364, DOI 10.17487/RFC4364, February 2006, <https://www.rfc-editor.org/info/rfc4364>. ๐ธ
- [RFC4761] Kompella, K., Ed. and Y. Rekhter, Ed., "Virtual Private LAN Service (VPLS) Using BGP for Auto-Discovery and Signaling", RFC 4761, DOI 10.17487/RFC4761, January 2007, <https://www.rfc-editor.org/info/rfc4761>. โจ
- [RFC6020] Bjorklund, M., Ed., "YANG - A Data Modeling Language for the Network Configuration Protocol (NETCONF)", RFC 6020, DOI 10.17487/RFC6020, October 2010, <https://www.rfc-editor.org/info/rfc6020>. ๐ฆ
- [RFC6073] Martini, L., Metz, C., Nadeau, T., Bocci, M., and M. Aissaoui, "Segmented Pseudowire", RFC 6073, DOI 10.17487/RFC6073, January 2011, <https://www.rfc-editor.org/info/rfc6073>. ๐ง
- [RFC6074] Rosen, E., Davie, B., Radoaca, V., and W. Luo, "Provisioning, Auto-Discovery, and Signaling in Layer 2 Virtual Private Networks (L2VPNs)", RFC 6074, DOI 10.17487/RFC6074, January 2011, <https://www.rfc-editor.org/info/rfc6074>. ๐
- [RFC6241] Enns, R., Ed., Bjorklund, M., Ed., Schoenwaelder, J., Ed., and A. Bierman, Ed., "Network Configuration Protocol (NETCONF)", RFC 6241, DOI 10.17487/RFC6241, June 2011, <https://www.rfc-editor.org/info/rfc6241>. ๐
- [RFC6242] Wasserman, M., "Using the NETCONF Protocol over Secure Shell (SSH)", RFC 6242, DOI 10.17487/RFC6242, June 2011, <https://www.rfc-editor.org/info/rfc6242>. ๐
- [RFC6991] Schoenwaelder, J., Ed., "Common YANG Data Types", RFC 6991, DOI 10.17487/RFC6991, July 2013, <https://www.rfc-editor.org/info/rfc6991>. ๐
- [RFC7432] Sajassi, A., Ed., Aggarwal, R., Bitar, N., Isaac, A., Uttaro, J., Drake, J., and W. Henderickx, "BGP MPLS-Based Ethernet VPN", RFC 7432, DOI 10.17487/RFC7432, February 2015, <https://www.rfc-editor.org/info/rfc7432>. โญ
- [RFC7950] Bjorklund, M., Ed., "The YANG 1.1 Data Modeling Language", RFC 7950, DOI 10.17487/RFC7950, August 2016, <https://www.rfc-editor.org/info/rfc7950>. ๐
- [RFC8040] Bierman, A., Bjorklund, M., and K. Watsen, "RESTCONF Protocol", RFC 8040, DOI 10.17487/RFC8040, January 2017, <https://www.rfc-editor.org/info/rfc8040>. ๐ซถ
- [RFC8174] Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, May 2017, <https://www.rfc-editor.org/info/rfc8174>. ๐ฅ
- [RFC8214] Boutros, S., Sajassi, A., Salam, S., Drake, J., and J. Rabadan, "Virtual Private Wire Service Support in Ethernet VPN", RFC 8214, DOI 10.17487/RFC8214, August 2017, <https://www.rfc-editor.org/info/rfc8214>. ๐ธ
- [RFC8341] Bierman, A. and M. Bjorklund, "Network Configuration Access Control Model", STD 91, RFC 8341, DOI 10.17487/RFC8341, March 2018, <https://www.rfc-editor.org/info/rfc8341>. ๐ก๏ธ
- [RFC8342] Bjorklund, M., Schoenwaelder, J., Shafer, P., Watsen, K., and R. Wilton, "Network Management Datastore Architecture (NMDA)", RFC 8342, DOI 10.17487/RFC8342, March 2018, <https://www.rfc-editor.org/info/rfc8342>. ๐ฆ
- [RFC8446] Rescorla, E., "The Transport Layer Security (TLS) Protocol Version 1.3", RFC 8446, DOI 10.17487/RFC8446, August 2018, <https://www.rfc-editor.org/info/rfc8446>. ๐
- [W3C.REC-xml-20081126] Bray, T., Paoli, J., Sperberg-McQueen, M., Maler, E., and F. Yergeau, "Extensible Markup Language (XML) 1.0 (Fifth Edition)", World Wide Web Consortium Recommendation REC-xml-20081126, November 2008, <https://www.w3.org/TR/2008/REC-xml-20081126>. ๐งก
11.2. Informative References ๐
- [EVPN-YANG] Brissette, P., Ed., Shah, H., Ed., Chen, I., Ed., Hussain, I., Ed., Tiruveedhula, K., Ed., and J. Rabadan, Ed., "Yang Data Model for EVPN", Work in Progress, draft-ietf-bess-evpn-yang-05, February 2018. ๐ท
- [IEEE-802-1ag] IEEE, "802.1ag - 2007 - IEEE Standard for Local and Metropolitan Area Networks - Virtual Bridged Local Area Networks Amendment 5: Connectivity Fault Management", DOI 10.1109/IEEESTD.2007.4431836. ๐ซ
- [IEEE-802-1D] IEEE, "802.1D-2004 - IEEE Standard for Local and metropolitan area networks: Media Access Control (MAC) Bridges", DOI 10.1109/IEEESTD.2004.94569. ๐
- [IEEE-802-1Q] IEEE, "802.1Q - 2014 - IEEE Standard for Local and metropolitan area networks--Bridges and Bridged Networks", DOI 10.1109/IEEESTD.2014.6991462. ๐
- [IEEE-802-3ah] IEEE, "802.3ah - 2004 - IEEE Standard for Information technology-- Local and metropolitan area networks-- Part 3: CSMA/CD Access Method and Physical Layer Specifications Amendment: Media Access Control Parameters, Physical Layers, and Management Parameters for Subscriber Access Networks", DOI 10.1109/IEEESTD.2004.94617. ๐
- [ITU-T-Y-1731] International Telecommunication Union, "Operations, administration and maintenance (OAM) functions and mechanisms for Ethernet-based networks", ITU-T Recommendation Y.1731, August 2015, <https://www.itu.int/rec/T-REC-Y.1731/en>. ๐ฐ๏ธ
- [MEF-6] Metro Ethernet Forum, "Ethernet Services Definitions - Phase 2", April 2008, <https://mef.net/PDF_Documents/technical-specifications/MEF6-1.pdf>. ๐
- [MPLS-L2VPN-YANG] Shah, H., Ed., Brissette, P., Ed., Chen, I., Ed., Hussain, I., Ed., Wen, B., Ed., and K. Tiruveedhula, Ed., "YANG Data Model for MPLS-based L2VPN", Work in Progress, draft-ietf-bess-l2vpn-yang-08, February 2018. ๐ช
- [RFC4119] Peterson, J., "A Presence-based GEOPRIV Location Object Format", RFC 4119, DOI 10.17487/RFC4119, December 2005, <https://www.rfc-editor.org/info/rfc4119>. ๐
- [RFC6624] Kompella, K., Kothari, B., and R. Cherukuri, "Layer 2 Virtual Private Networks Using BGP for Auto-Discovery and Signaling", RFC 6624, DOI 10.17487/RFC6624, May 2012, <https://www.rfc-editor.org/info/rfc6624>. ๐
- [RFC7130] Bhatia, M., Ed., Chen, M., Ed., Boutros, S., Ed., Binderberger, M., Ed., and J. Haas, Ed., "Bidirectional Forwarding Detection (BFD) on Link Aggregation Group (LAG) Interfaces", RFC 7130, DOI 10.17487/RFC7130, February 2014, <https://www.rfc-editor.org/info/rfc7130>. ๐ฆ
- [RFC7209] Sajassi, A., Aggarwal, R., Uttaro, J., Bitar, N., Henderickx, W., and A. Isaac, "Requirements for Ethernet VPN (EVPN)", RFC 7209, DOI 10.17487/RFC7209, May 2014, <https://www.rfc-editor.org/info/rfc7209>. ๐
- [RFC7348] Mahalingam, M., Dutt, D., Duda, K., Agarwal, P., Kreeger, L., Sridhar, T., Bursell, M., and C. Wright, "Virtual eXtensible Local Area Network (VXLAN): A Framework for Overlaying Virtualized Layer 2 Networks over Layer 3 Networks", RFC 7348, DOI 10.17487/RFC7348, August 2014, <https://www.rfc-editor.org/info/rfc7348>. ๐
- [RFC7436] Shah, H., Rosen, E., Le Faucheur, F., and G. Heron, "IP-Only LAN Service (IPLS)", RFC 7436, DOI 10.17487/RFC7436, January 2015, <https://www.rfc-editor.org/info/rfc7436>. ๐ธ
- [RFC8199] Bogdanovic, D., Claise, B., and C. Moberg, "YANG Module Classification", RFC 8199, DOI 10.17487/RFC8199, July 2017, <https://www.rfc-editor.org/info/rfc8199>. ๐๏ธ
- [RFC8299] Wu, Q., Ed., Litkowski, S., Tomotaki, L., and K. Ogaki, "YANG Data Model for L3VPN Service Delivery", RFC 8299, DOI 10.17487/RFC8299, January 2018, <https://www.rfc-editor.org/info/rfc8299>. ๐ซง
- [RFC8309] Wu, Q., Liu, W., and A. Farrel, "Service Models Explained", RFC 8309, DOI 10.17487/RFC8309, January 2018, <https://www.rfc-editor.org/info/rfc8309>. ๐ญ
- [RFC8340] Bjorklund, M. and L. Berger, Ed., "YANG Tree Diagrams", BCP 215, RFC 8340, DOI 10.17487/RFC8340, March 2018, <https://www.rfc-editor.org/info/rfc8340>. ๐ณ
Acknowledgements ๐ซถ
Okay bestie, huge thank-yous go out to Qin Wu and Adrian Farrel for facilitating work on the initial draft revisions of this document. ๐ Thanks also to Zonghe Huang, Wei Deng, and Xiaoling Song for reviewing this document, you're all literally the best. โจ
Special thanks to Jan Lindblad for his careful review of the YANG. ๐ง
This document has drawn on the work of the L3SM Working Group as provided in [RFC8299]. ๐
Authors' Addresses ๐ฆ
Bin Wen Comcast
Email: bin_wen@comcast.com ๐
Giuseppe Fioccola (editor) Telecom Italia
Email: giuseppe.fioccola@tim.it ๐
Chongfeng Xie China Telecom
Email: xiechf.bri@chinatelecom.cn ๐
Luay Jalil Verizon
Email: luay.jalil@verizon.com ๐
๐ฆ where this page comes from
- ietf: rfc8466 2018-10
- ๐ girlified by claude-haiku-5-5 on : a language model's rewrite of the original, under its terms