forked from younglee-ietf/actn-wson-flexi-grid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ietf-wson-impairment-topology@2018-08-31.yang
454 lines (413 loc) · 11.2 KB
/
ietf-wson-impairment-topology@2018-08-31.yang
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
module ietf-wson-impairment-topology {
yang-version 1.1;
namespace "urn:ietf:params:xml:ns:yang:ietf-wson-impairment-topology";
prefix "wson-imp-topo";
import ietf-network {
prefix "nw";
}
import ietf-network-topology {
prefix "nt";
}
import ietf-te-topology {
prefix "tet";
}
import ietf-wson-topology {
prefix "wson";
}
import ietf-te-wson-types {
prefix "te-wson-types";
}
organization
"IETF CCAMP Working Group";
contact
"Editor: Young Lee <leeyoung@huawei.com>";
description
"This module contains a collection of YANG definitions for
Impairment-aware RWA WSON.
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
(http://trustee.ietf.org/license-info).";
revision 2018-08-31{
description
"version 0.";
reference
"RFC XXX: A Yang Data Model for Impairment-aware WSON Optical Networks ";
}
identity modulation {
description "base identity for modulation type";
}
identity QPSK {
base modulation;
description
"QPSK (Quadrature Phase Shift Keying) modulation";
}
identity DP_QPSK {
base modulation;
description
"DP-QPSK (Dual Polarization Quadrature
Phase Shift Keying) modulation";
}
identity QAM16 {
base modulation;
description
"QAM16 (Quadrature Amplitude Modulation
- 4 bits per symbol) modulation";
}
identity DP_QAM16 {
base modulation;
description
"DP-QAM16 (Dual Polarization Quadrature Amplitude Modulation
- 4 bits per symbol) modulation";
}
identity DC_DP_QAM16 {
base modulation;
description
"DC DP-QAM16 (Dual Polarization Quadrature Amplitude Modulation
- 4 bits per symbol) modulation";
}
identity FEC {
description
"Enumeration that defines the type of
Forward Error Correction";
}
identity reed-solomon {
base FEC;
description
"Reed-Solomon error correction";
}
identity hamming-code {
base FEC;
description
"Hamming Code error correction";
}
identity golay {
base FEC;
description "Golay error correction";
}
grouping wson-label {
description
"Generic label for WSON links and paths";
choice grid-type {
description
"Label for DWDM or CWDM grid";
case dwdm {
leaf channel-freq {
type decimal64 {
fraction-digits 5;
}
units THz;
config false;
description
"The DWDM frequency in THz, e.g. 193.12500";
reference
"RFC6205";
}
}
case cwdm {
leaf channel-wavelength {
type uint32;
units nm;
config false;
description
"The CWDM wavelength in nanometer, e.g. 1511";
reference
"RFC6205";
}
}
}
}
grouping transponder-attributes {
description "Configuration of an optical transponder";
leaf-list available-modulation {
type identityref {
base modulation;
}
config false;
description
"List determining all the available modulations";
}
leaf modulation-enabled {
type boolean;
config false;
description
"Determines whether the modulation is enabled or not";
}
leaf modulation-type {
type identityref {
base modulation;
}
config false;
description
"Modulation type of the transponder";
}
leaf-list available-FEC {
type identityref {
base FEC;
}
config false;
description "List determining all the available FEC";
}
leaf FEC-enabled {
type boolean;
config false;
description
"Determines whether the FEC is enabled or not";
}
leaf FEC-type {
type identityref {
base FEC;
}
config false;
description
"FEC type of the transponder";
}
leaf FEC-code-rate {
type decimal64 {
fraction-digits 8;
range "0..max";
}
config false;
description "FEC-code-rate";
}
leaf FEC-threshold {
type decimal64 {
fraction-digits 8;
range "0..max";
}
config false;
description "Threshold on the BER, for which FEC is able to correct errors";
}
}
grouping sliceable-transponder-attributes {
description
"Configuration of a sliceable transponder.";
list transponder-list {
key "carrier-id";
config false;
description "List of carriers";
leaf carrier-id {
type uint32;
config false;
description "Identifier of the carrier";
}
}
}
grouping wson-node-attributes {
description "WSON node attributes";
container wson-node {
description "WSON node attrtibutes.";
leaf node-type {
type identityref {
base te-wson-types:wson-node-type;
}
description "WSON node type.";
}
}
}
grouping wson-fiber-data {
description "WSON link (fiber) attributes with impairment data";
leaf power {
type int32;
units "dBm";
config false;
description "Input Power Level of the receiver side of the link";
}
}
grouping wson-impairement-data {
description "WSON impairment data per wavelength";
leaf bit-rate {
type decimal64 {
fraction-digits 8;
range "0..max";
}
units "Gbit/s";
config false;
description "Gross bit rate";
}
leaf BER {
type decimal64 {
fraction-digits 18;
range "0..max";
}
config false;
description "BER";
}
leaf pmd {
type decimal64 {
fraction-digits 8;
range "0..max";
}
units "ps/(km)^0.5";
config false;
description "Polarization Mode Dispersion";
}
leaf cd {
type decimal64 {
fraction-digits 5;
}
units "ps/nm/km";
config false;
description "Cromatic Dispersion";
}
leaf osnr {
type decimal64 {
fraction-digits 5;
}
units "dB";
config false;
description "osnr";
}
leaf q-factor {
type decimal64 {
fraction-digits 5;
}
units "dB";
config false;
description "q-factor";
}
}
/*
grouping wson-ttp-attributes {
description
"WSON tunnel termination point (e.g.tranponder) attributes";
leaf-list available-operational-mode {
type te-wson-types:operational-mode;
description "List of all vendor-specific supported
mode identifiers";
}
leaf operational-mode {
type te-wson-types:operational-mode;
description "Vendor-specific mode identifier";
}
}
*/
/* Data nodes */
augment "/nw:networks/nw:network/nw:network-types"
+ "/tet:te-topology" {
description "wson-impairment topology augmented";
container wson-impairment-topology {
presence "indicates an impairment-aware topology of wson";
description
"Container to identify impairment-aware wson topology type";
}
}
augment "/nw:networks/nw:network/nt:link/tet:te"
+ "/tet:te-link-attributes" {
when "/nw:networks/nw:network/nw:network-types"
+"/tet:te-topology/wson-imp-topo:wson-impairment-topology" {
description
"This augment is only valid for WSON Impairment.";
}
description "WSON Link augmentation for impairment data.";
uses wson-fiber-data;
}
/* Augment label hop of underlay primary path of TE link */
augment "/nw:networks/nw:network/nt:link/tet:te/"
+ "tet:te-link-attributes/"
+ "tet:underlay/tet:primary-path/tet:path-element/tet:type/"
+ "tet:label/tet:label-hop/tet:te-label/tet:technology" {
when "../../../../../../../../"
+ "nw:network-types/tet:te-topology/"
+ "wson:wson-topology" {
description "Augment WSON TE label";
}
description "WSON label.";
case wson-imp-topo {
uses wson-label;
uses wson-impairement-data;
}
}
/* Augment label hop of underlay backup path of TE link */
augment "/nw:networks/nw:network/nt:link/tet:te/"
+ "tet:te-link-attributes/"
+ "tet:underlay/tet:backup-path/tet:path-element/tet:type/"
+ "tet:label/tet:label-hop/tet:te-label/tet:technology" {
when "../../../../../../../../"
+ "nw:network-types/tet:te-topology/"
+ "wson:wson-topology" {
description "Augment WSON TE label";
}
description "WSON label.";
case wson-imp-topo {
uses wson-label;
uses wson-impairement-data;
}
}
/* Augment label hop of underlay primary path of TE link template */
augment "/nw:networks/tet:te/tet:templates/"
+ "tet:link-template/tet:te-link-attributes/"
+ "tet:underlay/tet:primary-path/tet:path-element/tet:type/"
+ "tet:label/tet:label-hop/tet:te-label/tet:technology" {
/*
when "../../../../../../../../../"
+ "nw:network-types/tet:te-topology/"
+ "wson:wson-topology" {
description "Augment WSON TE label";
}
*/
description "WSON label.";
case wson-imp-topo {
uses wson-label;
uses wson-impairement-data;
}
}
/* Augment label hop of underlay backup path of TE link template */
augment "/nw:networks/tet:te/tet:templates/"
+ "tet:link-template/tet:te-link-attributes/"
+ "tet:underlay/tet:backup-path/tet:path-element/tet:type/"
+ "tet:label/tet:label-hop/tet:te-label/tet:technology" {
/*
when "../../../../../../../../../"
+ "nw:network-types/tet:te-topology/"
+ "wson:wson-topology" {
description "Augment WSON TE label";
}
*/
description "WSON label.";
case wson-imp-topo {
uses wson-label;
uses wson-impairement-data;
}
}
augment "/nw:networks/nw:network/nw:node/tet:te"
+ "/tet:te-node-attributes" {
when "/nw:networks/nw:network/nw:network-types"
+"/tet:te-topology/wson:wson-topology" {
description
"This augment is only valid for WSON.";
}
description "WSON Node augmentation.";
uses wson-node-attributes;
}
augment "/nw:networks/nw:network/nw:node/tet:te"
+ "/tet:tunnel-termination-point" {
when "/nw:networks/nw:network/nw:network-types"
+"/tet:te-topology/wson-imp-topo:wson-impairment-topology" {
description
"This augment is only valid for Impairment WSON with non-sliceable
transponder model";
}
description
"WSON tunnel termination point
augmentation for non-sliceabletransponder model.";
/* uses wson-ttp-attributes; */
uses transponder-attributes;
}
augment "/nw:networks/nw:network/nw:node/tet:te"
+ "/tet:tunnel-termination-point" {
when "/nw:networks/nw:network/nw:network-types"
+"/tet:te-topology/wson-imp-topo:wson-impairment-topology" {
description
"This augment is only valid for Impairment WSON with sliceable
transponder model";
}
description
"WSON tunnel termination point augmentation for sliceabletransponder model.";
uses sliceable-transponder-attributes;
}
}