-
Notifications
You must be signed in to change notification settings - Fork 0
/
ietf-layer0-types-ext.yang
632 lines (556 loc) · 17.1 KB
/
ietf-layer0-types-ext.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
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
module ietf-layer0-types-ext {
namespace "urn:ietf:params:xml:ns:yang:ietf-layer0-types-ext";
prefix "l0-types-ext";
organization
"IETF CCAMP Working Group";
contact
"WG Web: <http://tools.ietf.org/wg/ccamp/>
WG List: <mailto:[email protected]>
Editor: Dieter Beller
<mailto:[email protected]>
Editor: Sergio Belotti
<mailto:[email protected]>
Editor: Italo Busi
<mailto:[email protected]>
Editor: Haomian Zheng
<mailto:[email protected]>";
// Additional contacts TBA (contributors)
description
"Description to be added!!!
Copyright (c) 2020 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).
This version of this YANG module is part of RFC XXXX; see
the RFC itself for full legal notices.";
revision "2020-09-23" {
description
"Initial Version";
reference
"RFC XXXX: A YANG Data Model for Layer 0 Types - Revision 2";
}
// identity
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 QAM8 {
base modulation;
description
"8QAM (8-State Quadrature Amplitude Modulation) modulation";
}
identity QAM16 {
base modulation;
description
"QAM16 (Quadrature Amplitude Modulation)";
}
identity DP-QAM8 {
base modulation;
description
"DP-QAM8 (Dual Polarization Quadrature Amplitude Modulation)";
}
identity DC-DP-QAM8 {
base modulation;
description
"DC DP-QAM8 (Dual Carrier Dual Polarization Quadrature
Amplitude Modulation)";
}
identity DP-QAM16 {
base modulation;
description
"DP-QAM16 (Dual Polarization Quadrature Amplitude
Modulation)";
}
identity DC-DP-QAM16 {
base modulation;
description
"DC DP-QAM16 (Dual Carrier Dual Polarization Quadrature
Amplitude Modulation)";
}
identity FEC {
description
"Base Identity 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";
}
identity line-coding {
description
"base line-coding class";
reference
"ITU-T G.698.2-201811 section 7";
}
identity line-coding-NRZ-2p5G {
base line-coding;
description
"ITU-T G.698.2-201811 section 7 table 8-1";
}
identity line-coding-NRZ-OTU1 {
base line-coding;
description
"ITU-T G.698.2-201811 section 7 table 8-2";
}
identity line-coding-NRZ-10G {
base line-coding;
description
"ITU-T G.698.2-201811 section 7 table 8-3/8-5";
}
identity line-coding-NRZ-OTU2 {
base line-coding;
description
"ITU-T G.698.2-201811 section 7 table 8-4/8-6";
}
// typedefs
typedef operational-mode {
type string;
description
"Organization/vendor specific mode that guarantees
interoperability.";
reference "ITU-T G.698.2 (11/2018)";
}
typedef standard-mode {
type string;
description
"ITU-T G.698.2 standard mode that guarantees
interoperability.
It must be an string with the following format:
B-DScW-ytz(v) where all these attributes
are conformant
to the ITU-T recomendation";
reference "ITU-T G.698.2 (11/2018)";
}
typedef organization-identifier {
type string;
description
"vendor/organization identifier that uses a private mode
out of already defined in G.698.2 ITU-T application-code";
reference
"RFC7581: Routing and Wavelength Assignment Information
Encoding for Wavelength Switched Optical Networks";
}
typedef frequency-thz {
type decimal64 {
fraction-digits 6;
}
units THz;
description
"The DWDM frequency in THz, e.g., 193.112500";
reference
"RFC6205: Generalized Labels for
Lambda-Switch-Capable (LSC) Label Switching Routers";
}
typedef frequency-ghz {
type decimal64 {
fraction-digits 3;
}
units GHz;
description
"The DWDM frequency in GHz, e.g., 193112.500";
reference
"RFC6205: Generalized Labels for
Lambda-Switch-Capable (LSC) Label Switching Routers";
}
typedef dbm-t {
type int32;
units ".01dbm";
description
"Amplifiers and Transceivers Power in dBm.";
}
// GROUPINGS
/* supported inverse multiplexing capabilities such as
max. OTSiG:OTSi cardinality
It is a transponder attribute not transceiver
*/
/* leaf multiplexing-cap {
type uint32;
config false;
description "supported inverse multiplexing capabilities
such as max. OTSiG:OTSi cardinality";
}
*/
grouping transceiver-capabilities {
description
"This grouping is intended to be use for reporting the
capabilities of a transceiver.";
container supported-modes {
description
"Transceiver's supported modes.";
list supported-mode {
key "mode-id";
config false;
description "list of supported transceiver's modes.";
leaf mode-id {
type string {
length "1..255";
}
description "ID for the supported transceiver's mode.";
}
choice mode {
mandatory true;
description
"Indicates whether the transceiver's mode is a standard
mode, an organizational mode or an explicit mode.";
case G.698.2 {
uses standard-mode;
}
case organizational-mode {
container organizational-mode {
description
"The set of attributes for an organizational mode";
uses organizational-mode;
uses common-organizational-explicit-mode;
} // container organizational-mode
}
case explicit-mode {
container explicit-mode {
container supported-modes {
description
"Container for all the standard and organizational
modes supported by the transceiver's explicit
mode.";
leaf-list supported-application-codes {
type leafref {
path "../../mode-id";
}
must "../../../supported-mode[mode-id=current()]/"
+ "standard-mode" {
description
"The pointer is only for application codes
supported by transceiver.";
}
description
"List of pointers to the application codes
supported by the transceiver's explicit mode.";
}
leaf-list supported-organizational-modes {
type leafref {
path "../../mode-id";
}
must "../../../supported-mode[mode-id=current()]/"
+ "operational-mode" {
description
"The pointer is only for organizational modes
supported by transceiver.";
}
description
"List of pointers to the organizational modes
supported by the transceiver's explicit mode.";
}
} // container supported-modes
uses common-explicit-mode;
uses common-organizational-explicit-mode;
} // container explicit-mode
} // end of case explicit-mode
} // end of choice
} // list supported-modes
} // container supported-modes
} // grouping transceiver-capabilities
grouping standard-mode {
description
"ITU-T G.698.2 standard mode that guarantees interoperability.
It must be an string with the following format:
B-DScW-ytz(v) where all these attributes are conformant
to the ITU-T recomendation";
leaf standard-mode {
type standard-mode;
config false;
description
"G.698.2 standard mode";
}
}
grouping organizational-mode {
description
"Transponder operational mode supported by organizations or
vendor";
leaf operational-mode {
type operational-mode;
config false;
description
"configured organization- or vendor-specific
application identifiers (AI) supported by the transponder";
}
leaf organization-identifier {
type organization-identifier;
config false;
description
"organization identifier that uses organizational
mode";
}
}
grouping cd-pmd-penalty {
description "entries of table; triplet chromatic
dispersion, polarization mode dispersion and
associated penalty";
leaf chromatic-dispersion {
type decimal64 {
fraction-digits 2;
range "0..max";
}
units "ps/nm";
config false;
mandatory true;
description "chromatic dispersion";
}
leaf polarization-mode-dispersion {
type decimal64 {
fraction-digits 2;
range "0..max";
}
units "ps";
config false;
mandatory true;
description "Polarization mode dispersion";
}
leaf penalty {
type decimal64 {
fraction-digits 2;
range "0..max";
}
units "dB";
config false;
mandatory true;
description "Associated penalty on the receiver";
}
}
/* This grouping represent the list of attributes related to */
/* optical impairment limits for each operational mode */
/*(min OSNR, max PMD, max CD, max PDL, Q-factor limit, etc.)*/
/* It can be utilized also in case of "explicit-mode" */
grouping common-explicit-mode {
description "Attributes capabilities related to operational
modes of an optical transceiver";
leaf line-coding-bitrate {
type identityref {
base line-coding;
}
config false;
description "Bit rate/line coding of optical tributary signal";
reference
"ITU-T G.698.2 section 7.1.2";
}
leaf max-polarization-mode-dispersion {
type decimal64 {
fraction-digits 2;
range "0..max";
}
units "ps";
config false;
description
"Maximum acceptable accumulated polarization mode
dispersion on the receiver";
}
leaf max-chromatic-dispersion {
type decimal64 {
fraction-digits 2;
range "0..max";
}
units "ps/nm";
config false;
description
"Maximum acceptable accumulated chromatic dispersion
on the receiver";
}
list chromatic-and-polarization-dispersion-penalty {
config false;
description
"Optional penalty associated with a given accumulated
CD and PMD.
This list of triplet cd, pmd, penalty can be used to
sample the function penalty = f(CD, PMD).";
uses cd-pmd-penalty ;
}
leaf max-diff-group-delay {
type int32;
config false;
description "Maximum Differential group delay of this mode
for this lane";
}
leaf max-polarization-dependent-loss {
type decimal64 {
fraction-digits 2;
}
units dB ;
description
"Maximum acceptable accumulate polarization dependent loss";
}
leaf available-modulation-type {
type identityref {
base modulation;
}
config false;
description
"Modulation type the specific transceiver in the list
can support";
}
leaf min-OSNR {
type int32;
units "dB";
config false;
description "min OSNR measured over 12.5 GHz
resolution bandwidth:
if received OSNR at minimum Rx-power is lower than MIN-OSNR,
an increased level of bit-errors post-FEC needs
to be expected.";
}
leaf min-Q-factor {
type int32;
units "dB";
config false;
description "min Qfactor at FEC threshold";
}
leaf available-baud-rate {
type uint32;
units Bd;
config false;
description
"Baud-rate the specific transceiver in
the list can support.
Baud-rate is the unit for
symbol rate or modulation rate
in symbols per second or
pulses per second.
It is the number of distinct symbol
changes (signal events) made to the
transmission medium
per second in a digitally
modulated signal or a line code";
}
leaf available-FEC-type {
type identityref {
base FEC;
}
config false;
description "Available FEC";
}
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 common-explicit-mode
grouping common-organizational-explicit-mode {
description "Common capability in case of operational mode
and explicit mode.
These attributes are supported separately in
case of application codes";
/* transmitter tuning range (f_tx-min, f_tx-max) */
leaf min-central-frequency {
type frequency-thz;
config false;
description
"This parameter indicates the minimum frequency for
this transceiver.";
}
leaf max-central-frequency {
type frequency-thz;
config false;
description
"This parameter indicates the maximum frequency
for this transceiver.";
}
/* transmitter-tunability-grid */
leaf minimum-channel-spacing {
type frequency-ghz;
config false;
description
"This paramenter represents the minumum difference in
frequency between two adjacent channels
(ref. G.698.2 sec.7.1.1).
This free value is to permit OTSi's central frequency not
to stay on the G.694.1 grid.";
}
/* supported transmitter power range [p_tx-min, p_tx_max] */
leaf min-channel-output-power {
type dbm-t;
config false;
description "The minimum output power of this interface";
}
leaf max-channel-output-power {
type dbm-t;
config false;
description "The maximum output power of this interface";
}
/* supported receiver power range [p_rx-min, p_rx_max] */
leaf min-channel-input-power {
type dbm-t;
config false;
description "The minimum input power of this interface";
}
leaf max-channel-input-power {
type dbm-t;
config false;
description "The maximum input power of this interface";
}
leaf max-total-input-power {
type dbm-t;
config false;
description "Maximum rx optical power for
all the channels";
}
} // grouping common-organizational-explicit-mode
/* This grouping represent the list of configured parameters */
/* values independent of operational mode */
grouping common-transceiver-configured-param {
description "Capability of an optical transceiver";
leaf central-frequency {
type frequency-thz;
config false;
description
"This parameter indicates the actual configured transmitter
frequency ";
}
leaf channel-output-power {
type dbm-t;
description "Current transmit power";
}
leaf channel-input-power {
type dbm-t;
config false;
description "The current OTSi input power ";
}
leaf total-input-power {
type dbm-t;
config false;
description "Current total receive power";
}
} // grouping for configured attributes out of mode
} // end of module