Skip to content

Commit d20594d

Browse files
authored
Update README.md
1 parent d03494d commit d20594d

File tree

1 file changed

+326
-4
lines changed

1 file changed

+326
-4
lines changed

‎README.md

+326-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,328 @@
1-
# OpenDaylight Unimgr for MEF Carrier Ethernet Services with Cisco IOS XR
1+
# MEF Carrier Ethernet Services using OpenDaylight UniMgr with Cisco IOS XR
22

3-
EVC Services based on LSO Architecture
3+
## Background
4+
5+
A team from Xoriant, Cisco, and Amartus has been working with Ethernet Virtual Connection (EVC) based Ethernet Services based on the Lifecycle Service Orchestration (LSO) architecture defined by MEF Forum (MEF). The implementation of these services has been done within the OpenDaylight UniMgr open source project. These EVC services are offered by service providers to their clients. There are six EVC services standardized by MEF, namely Ethernet Private Line (EPL), Ethernet Virtual Private Line (EVPL), Ethernet Private LAN (EP-LAN), Ethernet Virtual Private LAN (EVP-LAN), Ethernet Private Tree (EP-Tree), and Ethernet Virtual Private Tree (EVP-Tree).
6+
7+
An E-Line is a point-to-point Ethernet service that connects exactly two User Network Interface (UNI) end points. EPL and EVPL services both come under the E-Line service.
8+
An E-LAN is a multipoint-to-multipoint Ethernet service that connects at least two UNI endpoints, and possibly several UNI endpoints. Each UNI can communicate with any other UNI that is connected to that Ethernet service. EP-LAN and EVP-LAN services both come under the E-LAN service.
9+
An E-Tree is a rooted-multipoint ethernet service that connects at least two UNI end points, and possibly many UNI end points. The role of each UNI can be either root or leaf. A root UNI can communicate with all other root UNIs and all leaf UNIs, whereas a leaf UNI can communicate only with all root UNIs but not with any other leaf UNI. EP-Tree and EVP-Tree services both come under the E-Tree service.
10+
Please also refer to MEF 6.3, MEF 55.1, and MEF 10.4 for additional information and the formal definition of each service.
11+
12+
Ethernet Private services are port-based services, which means that only one such service can be provisioned on a given UNI. Ethernet Virtual Private services, on the other hand, are VLAN tag-based services, which means that multiple Ethernet Virtual Private services can be provisioned on one single UNI.
13+
14+
The UniMgr project implements these six services as a plugin for OpenDaylight (https://www.opendaylight.org/), an open source platform for customizing and automating networks of any size and scale. The services are implemented at the Legato and Presto layers as defined in Lifecycle Service Orchestration (LSO) architecture of MEF.
15+
16+
Legato is the topmost layer that interfaces with Operations Support Systems (OSS) / Business Support Systems (BSS), whereas Presto is an underlying layer that interacts with devices through respective drivers. The UniMgr project has provided support at Presto for several years. The team from Xorian recently contributed significant code to add support at Legato and provide important updates to Presto and the driver layer as well. This includes some validations at Legato that are over and above the validations specified in the corresponding YANG models. This ensures Legato receives absolutely valid requests and prevents rejection of equivalent API calls by the underlying Presto layer. The Presto layer has the ability to automatically determine an appropriate driver for various UNI hardware so that correct configurations are provisioned on all UNIs participating in the service. Full functionality of Create/Update/Delete/Inquire for all the six services is implemented as part of the UniMgr project. The code supports creating services on UNIs that are part of one device or that span multiple devices.
17+
18+
Currently, the UniMgr project supports devices compliant with Cisco XR (ASR 9000) devices. Cisco and Xorian collaborated to upgrade this support for work with more recently version of IOS XR software. The Xorian team can easily develop drivers for devices of other vendors to enable orchestration of these six services on other devices.
19+
20+
This repository provides a tutorial that can be used to try the UniMgr project for yourself. The tutorial demonstrates orchestration of these services using two Cisco XR devices running in a Cisco DevNet Sandbox. Postman scripts are used to invoke the Legato API with the necessary parameters to provision the services.
21+
22+
## Create EVC Service using Cisco XR - Step By Step
23+
24+
Prerequisites: For this tutorial, you will need access to a computer on which you can the prerequisite software packages and tools. You will also need access to two Cisco IOS XR devices.
25+
26+
If you do not have access to two Cisco IOS XR devices, you can use those provided by the CiscoDevNet Sandbox for IOS XR Programmability. If you do not have access to a computer on which you can install software, you can use the Linux host included within the sandbox.
27+
28+
This sandbox must be reserved prior to use. You can request a reservation for up to a week. It typically takes 10-15 minutes for the sandbox to be ready once it is reserved. Once you receive the email confirming the availability of your sandbox, use the information in that email to establish the VPN required to access your sandbox.
29+
30+
The sandbox provides two Cisco IOS XRv 9000 devices (R1 and R2) connected back to back, plus a Linux host that acts as a development box (devbox).
31+
32+
### Step 1: Clone the “master” branch of “unimgr” project from the OpenDaylight repository.
33+
34+
$ git clone -b master https://git.opendaylight.org/gerrit/unimgr
35+
36+
### Step 2: Change to the “unimgr” directory and build the project.
37+
38+
$ cd unimgr
39+
$ mvn clean install
40+
41+
### Step 3: After a successful build, start unimgr.
42+
43+
The unimgr project builds a karaf distribution that has the umimgr component as a deployed
44+
feature. It is necessary to set a higher than default maximum heap size for the JVM when running
45+
karaf.
46+
47+
$ export JAVA_MAX_MEM=2g
48+
$ ./karaf/target/assembly/bin/karaf
49+
50+
The resulting log file is ./karaf/target/assembly/data/log/karaf.log.
51+
52+
53+
54+
### Step 4: To enable support for Ethernet Virtual Connection (EVC) services, install the following features via the OpenDaylight console.
55+
56+
opendaylight-user@root>feature:install odl-unimgr-legato-api
57+
opendaylight-user@root>feature:install odl-unimgr-cisco-xr-driver
58+
59+
### Step 5: Verify OpenDaylight is running
60+
61+
You can verify that OpenDaylight is running on your system with the UniMgr driver for Cisco XR devices installed and the UniMgr Legato API enabled by accessing the network topology API.
62+
63+
http://localhost:8181/rests/data/network-topology?content=nonconfig (username: admin/ password: admin).
64+
65+
### Step 6: Access your Cisco IOS XR devices.
66+
67+
The remainder of this tutorial assumes you are using the devices in the CiscoDevNet Sandbox for IOS XR Programmability and have established the VPN required to access the devices.
68+
If you are using your own devices, you will need to update the access information accordingly.
69+
70+
In one terminal, access R1
71+
$ ssh -p 2221 [email protected]
72+
Password: admin
73+
74+
In another terminal, access R2
75+
$ ssh -p 2231 [email protected]
76+
Password: admin
77+
78+
Show the interfaces and l2vpn configuration prior to configuring anything on the devices.
79+
80+
### Step 7: Configure network interfaces on XR devices
81+
82+
On R1, configure a loopback interface and enable Gigabit Ethernet 0/0/0/2 as follows:
83+
84+
RP/0/RP0/CPU0:r1#conf t
85+
RP/0/RP0/CPU0:r1(config)#interface gigabitEthernet 0/0/0/2
86+
RP/0/RP0/CPU0:r1(config-if)#no shutdown
87+
RP/0/RP0/CPU0:r1(config-if)#commit
88+
RP/0/RP0/CPU0:r1(config)#interface loopback0
89+
RP/0/RP0/CPU0:r1(config-if)#ipv4 address 100.100.100.100 255.255.255.255
90+
RP/0/RP0/CPU0:r1(config-if)#commit
91+
RP/0/RP0/CPU0:r1(config-if)#end
92+
93+
On R2, configure a loopback interface and enable Gigabit Ethernet 0/0/0/2 as follows:
94+
95+
RP/0/RP0/CPU0:r2#conf t
96+
RP/0/RP0/CPU0:r2(config)#interface gigabitEthernet 0/0/0/2
97+
RP/0/RP0/CPU0:r2(config-if)#no shutdown
98+
RP/0/RP0/CPU0:r2(config-if)#commit
99+
RP/0/RP0/CPU0:r2(config-if)#interface loopback0
100+
RP/0/RP0/CPU0:r2(config-if)#ipv4 address 200.200.200.200 255.255.255.255
101+
RP/0/RP0/CPU0:r2(config-if)#commit
102+
RP/0/RP0/CPU0:r2(config-if)#end
103+
104+
Show the interfaces and l2vpn configuration after completing this configuration on the devices.
105+
106+
Note, you will no longer see anything for GigabitEthernet 0/0/0/2 because its configuration is empty/default. You can verify the status of all the interfaces as follows:
107+
108+
### Step 8: Connect to R1 and R2 using OpenDaylight’s RESTCONF API, per RFC 8040.
109+
110+
All API calls are available as part of the Postman environment and collection available via .
111+
112+
#### Connect R1
113+
114+
PUT: http://{{host}}:{{port}}/rests/data/network-topology:network-topology/topology=topology-netconf/node={{r1_name}}
115+
116+
Payload:
117+
{
118+
"network-topology:node": [
119+
{
120+
"network-topology:node-id": "{{r1_name}}",
121+
"network-topology:topology-ext:loopback-address": "{{r1_loopback}}",
122+
"netconf-node-topology:host" : "{{r1_host}}",
123+
"netconf-node-topology:port" : "{{r1_netconf_port}}",
124+
"netconf-node-topology:username": "{{r1_username}}",
125+
"netconf-node-topology:password": "{{r1_password}}",
126+
"netconf-node-topology:tcp-only" : "false",
127+
"netconf-node-topology:keepalive-delay" : "0",
128+
"netconf-node-topology:schema-cache-directory" : "{{r1_name}}"
129+
}
130+
]
131+
}
132+
133+
#### Connect R2
134+
135+
PUT: http://{{host}}:{{port}}/rests/data/network-topology:network-topology/topology=topology-netconf/node={{r2_name}}
136+
137+
Payload:
138+
{
139+
"network-topology:node": [
140+
{
141+
"network-topology:node-id": "{{r2_name}}",
142+
"network-topology:topology-ext:loopback-address": "{{r2_loopback}}",
143+
"netconf-node-topology:host" : "{{r2_host}}",
144+
"netconf-node-topology:port" : "{{r2_netconf_port}}",
145+
"netconf-node-topology:username": "{{r2_username}}",
146+
"netconf-node-topology:password": "{{r2_password}}",
147+
"netconf-node-topology:tcp-only" : "false",
148+
"netconf-node-topology:keepalive-delay" : "0",
149+
"netconf-node-topology:schema-cache-directory" : "{{r2_name}}"
150+
}
151+
]
152+
}
153+
154+
### Step 9: On mounting the devices successfully, each devices capabilities can be observed on network topology API.
155+
156+
http://localhost:8181/rests/data/network-topology?content=nonconfig (username: admin/ password: admin).
157+
158+
This can also be observed using the equivalent API call via Postman. Note, that this, as with all Legato API calls, is an asynchronous operation. The response to the API call reflects the status of the change to the configuration database on OpenDaylight. It may take some time for this configuration to be successfully applied on the network devices to which OpenDaylight is connected. The following Postman request and the corresponding response are shown twice, once immediately after issuing the PUT requests to mount R1 and R2, and again 30 seconds later, after connection to each device and discovery of its capabilities has completed.
159+
160+
GET: http://{{host}}:{{port}}/rests/data/network-topology?content=nonconfig
161+
162+
The complete list of capabilities is very long and continues well beyond that shown in the screenshot. Unimgr’s cisco-xr-driver explicitly looks for 3 capabilities. If any mounted device doesn’t have these capabilities, the driver will not work appropriately.
163+
164+
• "capability": "(http://cisco.com/ns/yang/Cisco-IOS-XR-l2vpn-cfg?revision=2017-06-26)Cisco-IOS-XR-l2vpn-cfg"
165+
• "capability": "(http://cisco.com/ns/yang/Cisco-IOS-XR-ifmgr-cfg?revision=2017-09-07)Cisco-IOS-XR-ifmgr-cfg"
166+
• "capability": "(http://cisco.com/ns/yang/Cisco-IOS-XR-infra-policymgr-cfg?revision=2017-12-12)Cisco-IOS-XR-infra-policymgr-cfg"
167+
168+
### Step 10: Create a MEF EP-Line service
169+
170+
Create MEF services between endpoints using the Legato API. The following API call creates an EP-Line service between R1 and R2. Gigabit Ethernet 0/0/0/2 is used on both devices.
171+
172+
PUT: http://{{host}}:{{port}}/rests/data/mef-legato-services:mef-services/carrier-ethernet/subscriber-services/evc={{evc3_id}}
173+
174+
Payload:
175+
{
176+
"mef-legato-services:evc": [
177+
{
178+
"mef-legato-services:evc-id": "{{evc3_id}}",
179+
"mef-legato-services:cos-names": {
180+
"mef-legato-services:cos-name": [
181+
{
182+
"mef-legato-services:name": "EPL"
183+
}
184+
]
185+
},
186+
"mef-legato-services:end-points": {
187+
"mef-legato-services:end-point": [
188+
{
189+
"mef-legato-services:uni-id": "sip:{{r1_name}}:GigabitEthernet0/0/0/2",
190+
"mef-legato-services:role": "root",
191+
"mef-legato-services:admin-state": "true",
192+
"mef-legato-services:color-identifier": "COLID1",
193+
"mef-legato-services:cos-identifier": "COSID1",
194+
"mef-legato-services:eec-identifier": "EECID1",
195+
"mef-legato-services:source-mac-address-limit": "1",
196+
"mef-legato-services:source-mac-address-limit-time-interval": "1",
197+
"mef-legato-services:test-meg-enabled": "false",
198+
"mef-legato-services:user-label": "admin",
199+
"mef-legato-services:subscriber-meg-mip-enabled": "false",
200+
"mef-legato-services:ce-vlans": {
201+
"mef-legato-services:ce-vlan": [
202+
"301"
203+
]
204+
},
205+
"ingress-bwp-per-cos": {
206+
"mef-legato-services:bwp-flow-per-cos": [
207+
{
208+
"mef-legato-services:cos-name": "Neon",
209+
"envelope-id": "Rank 0",
210+
"rank": "0"
211+
}
212+
]
213+
},
214+
"egress-bwp-per-eec": {
215+
"mef-legato-services:bwp-flow-per-eec": [
216+
{
217+
"mef-legato-services:eec-name": "EEC-Krypton",
218+
"envelope-id": "Rank 0",
219+
"rank": "0"
220+
}
221+
]
222+
}
223+
},
224+
{
225+
"mef-legato-services:uni-id": "sip:{{r2_name}}:GigabitEthernet0/0/0/2",
226+
"mef-legato-services:role": "root",
227+
"mef-legato-services:admin-state": "true",
228+
"mef-legato-services:color-identifier": "COLID1",
229+
"mef-legato-services:cos-identifier": "COSID1",
230+
"mef-legato-services:eec-identifier": "EECID1",
231+
"mef-legato-services:source-mac-address-limit": "1",
232+
"mef-legato-services:source-mac-address-limit-time-interval": "1",
233+
"mef-legato-services:test-meg-enabled": "false",
234+
"mef-legato-services:user-label": "admin",
235+
"mef-legato-services:subscriber-meg-mip-enabled": "false",
236+
"mef-legato-services:ce-vlans": {
237+
"mef-legato-services:ce-vlan": [
238+
"301"
239+
]
240+
},
241+
"ingress-bwp-per-cos": {
242+
"mef-legato-services:bwp-flow-per-cos": [
243+
{
244+
"mef-legato-services:cos-name": "Neon",
245+
"envelope-id": "Rank 0",
246+
"rank": "0"
247+
}
248+
]
249+
},
250+
"egress-bwp-per-eec": {
251+
"mef-legato-services:bwp-flow-per-eec": [
252+
{
253+
"mef-legato-services:eec-name": "EEC-Krypton",
254+
"envelope-id": "Rank 0",
255+
"rank": "0"
256+
}
257+
]
258+
}
259+
}
260+
]
261+
},
262+
"mef-legato-services:carrier-ethernet-sls": {
263+
"mef-legato-services:sls-id": "SLSID1",
264+
"mef-legato-services:start-time": "9372-84-27T31:46:58Z",
265+
"mef-legato-services:cos-entries": {
266+
"mef-legato-services:cos-entry": [
267+
{
268+
"mef-legato-services:cos-name": "Krypton",
269+
"mef-legato-services:pm-entries": {
270+
"mef-legato-services:pm-entry": [
271+
{
272+
"mef-legato-services:pm-entry-id": "68",
273+
"mef-legato-services:sets-of-end-point-pairs": {
274+
"mef-legato-services:set-of-end-point-pairs": [
275+
{
276+
"mef-legato-services:index": "0",
277+
"sls-uni-exclusions": {
278+
"mef-legato-services:end-point-pair": [
279+
{
280+
"mef-legato-services:end-point1": "1",
281+
"mef-legato-services:end-point2": "2"
282+
}
283+
]
284+
}
285+
}
286+
]
287+
},
288+
"mef-legato-services:end-point-pairs": {
289+
"sls-uni-exclusions": {
290+
"mef-legato-services:end-point-pair": [
291+
{
292+
"mef-legato-services:end-point1": "1",
293+
"mef-legato-services:end-point2": "2"
294+
}
295+
]
296+
}
297+
}
298+
}
299+
]
300+
}
301+
}
302+
]
303+
}
304+
},
305+
"mef-legato-services:connection-type": "point-to-point",
306+
"mef-legato-services:admin-state": "true",
307+
"mef-legato-services:user-label": "U4",
308+
"mef-legato-services:max-frame-size": "1522",
309+
"mef-legato-services:max-num-of-evc-end-point": "2",
310+
"mef-legato-services:ce-vlan-id-preservation": "false",
311+
"mef-legato-services:ce-vlan-pcp-preservation": "false",
312+
"mef-legato-services:ce-vlan-dei-preservation": "false",
313+
"mef-legato-services:unicast-frame-delivery": "unconditional",
314+
"mef-legato-services:multicast-frame-delivery": "unconditional",
315+
"mef-legato-services:broadcast-frame-delivery": "unconditional",
316+
"mef-legato-services:svc-type": "epl"
317+
}
318+
]
319+
}
320+
321+
### Step 11: Verify configuration on R1 and R2
322+
323+
Show the interface and l2vpn configuration of both devices after the creation of the service. Note that Gigabit Ethernet 0/0/0/2 on both devices now have an mtu and l2transport configured and that l2vpn is now configured on both devices as well.
324+
325+
## Connect with others working on Unimgr
326+
327+
If you have any question or wish to contribute in UniMgr project please reach out to us at [email protected] .
4328

5-
The team at Xoriant have been working on implementing Ethernet Virtual Connection (EVC) based Ethernet Services based on Lifecycle Service Orchestration (LSO) architecture proposed defined by MEF Forum (MEF). The implementation of these services has been done as part of OpenDaylight UniMgr open source project. These EVC services are expected to be offered by Service Providers to their clients. There are six such services standardized by MEF, namely Ethernet Private Line (EPL), Ethernet Virtual Private Line (EVPL), Ethernet Private LAN (EP-LAN), Ethernet Virtual Private LAN (EVP-LAN), Ethernet Private Tree (EP-Tree), Ethernet Virtual Private Tree (EVP-Tree).
6-
Here is a brief explanation of these services. Please also refer to MEF 6.2MEF 6.3, MEF 55MEF 55.1, MEF 10.3MEF 10.4 documents for the terminology used in this document and for a formal definition of each service.

0 commit comments

Comments
 (0)