-
Notifications
You must be signed in to change notification settings - Fork 19
/
ietf-te-packet-types.yang
806 lines (751 loc) · 24 KB
/
ietf-te-packet-types.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
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
module ietf-te-packet-types {
yang-version 1.1;
namespace "urn:ietf:params:xml:ns:yang:ietf-te-packet-types";
prefix te-packet-types;
import ietf-yang-types {
prefix yang;
reference
"RFC 6991: Common YANG Data Types";
}
import ietf-te-types {
prefix te-types;
reference
"RFC XXXX: Common YANG Data Types for Traffic Engineering";
}
// RFC Editor: replace XXXX with actual RFC number
// and remove this note
organization
"IETF Traffic Engineering Architecture and Signaling (TEAS)
Working Group";
contact
"WG Web: <https://datatracker.ietf.org/wg/teas/>
WG List: <mailto:[email protected]>
Editor: Tarek Saad
<mailto:[email protected]>
Editor: Rakesh Gandhi
<mailto:[email protected]>
Editor: Vishnu Pavan Beeram
<mailto:[email protected]>
Editor: Xufeng Liu
<mailto:[email protected]>
Editor: Igor Bryskin
<mailto:[email protected]>";
description
"This YANG module contains a collection of generally useful YANG
data type definitions specific to Packet Traffic Enginnering
(TE).
The model fully conforms to the Network Management Datastore
Architecture (NMDA).
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 (RFC 2119) (RFC 8174) when, and only when,
they appear in all capitals, as shown here.
Copyright (c) 2024 IETF Trust and the persons identified as
authors of the code. All rights reserved.
Redistribution and use in source and binary forms, with or
without modification, is permitted pursuant to, and subject to
the license terms contained in, the Revised BSD License set
forth in Section 4.c of the IETF Trust's Legal Provisions
Relating to IETF Documents
(https://trustee.ietf.org/license-info).
This version of this YANG module is part of RFC XXXX
(https://www.rfc-editor.org/info/rfcXXXX); see the RFC itself
for full legal notices.";
revision 2024-10-30 {
description
"This revision adds the following new identities:
- bandwidth-profile-type;
- link-metric-delay-variation;
- link-metric-loss;
- path-metric-delay-variation;
- path-metric-loss.
This revision adds the following new groupings:
- bandwidth-profile-parameters;
- te-packet-path-bandwidth;
- te-packet-link-bandwidth.
This revision provides also few editorial changes.";
reference
"RFC XXXX: Common YANG Data Types for Traffic Engineering";
}
// RFC Editor: replace XXXX with actual RFC number, update date
// information and remove this note
revision 2020-06-10 {
description
"Latest revision of TE MPLS types.";
reference
"RFC 8776: Common YANG Data Types for Traffic Engineering";
}
/*
* Identities
*/
identity bandwidth-profile-type {
description
"Bandwidth Profile Types";
}
identity mef-10 {
base bandwidth-profile-type;
description
"MEF 10 Bandwidth Profile";
reference
"MEF 10.3: Ethernet Services Attributes Phase 3";
}
identity rfc-2697 {
base bandwidth-profile-type;
description
"RFC 2697 Bandwidth Profile";
reference
"RFC 2697: A Single Rate Three Color Marker";
}
identity rfc-2698 {
base bandwidth-profile-type;
description
"RFC 2698 Bandwidth Profile";
reference
"RFC 2698: A Two Rate Three Color Marker";
}
// Derived identities from te-types:link-metric-type
identity link-metric-delay-variation {
base te-types:link-metric-type;
description
"The Unidirectional Delay Variation Metric,
measured in units of microseconds.";
reference
"RFC 7471: OSPF Traffic Engineering (TE) Metric Extensions,
Section 4.3
RFC 8570: IS-IS Traffic Engineering (TE) Metric Extensions,
Section 4.3";
}
identity link-metric-loss {
base te-types:link-metric-type;
description
"The Unidirectional Link Loss Metric,
measured in units of 0.000003%.";
reference
"RFC 7471: OSPF Traffic Engineering (TE) Metric Extensions,
Section 4.4
RFC 8570: IS-IS Traffic Engineering (TE) Metric Extensions,
Section 4.4";
}
// Derived identities from te-types:link-metric-type
identity path-metric-delay-variation {
base te-types:path-metric-type;
description
"The Path Delay Variation Metric,
measured in units of microseconds.";
reference
"RFC 8233: Extensions to the Path Computation Element
Communication Protocol (PCEP) to Compute
Service-Aware Label Switched Paths (LSPs),
Section 3.1.2";
}
identity path-metric-loss {
base te-types:path-metric-type;
description
"The Path Loss Metric, measured in units of 0.000003%.";
reference
"RFC 8233: Extensions to the Path Computation Element
Communication Protocol (PCEP) to Compute
Service-Aware Label Switched Paths (LSPs),
Section 3.1.3";
}
/*
* Typedefs
*/
typedef te-bandwidth-requested-type {
type enumeration {
enum specified-value {
description
"Bandwidth value is explicitly specified.";
}
enum specified-profile {
description
"Bandwidth profile is explicitly specified.";
}
enum auto {
description
"Bandwidth is automatically computed.";
}
}
description
"Enumerated type for specifying whether bandwidth is
explicitly specified or automatically computed.";
}
typedef te-class-type {
type uint8;
description
"Diffserv-TE Class-Type. Defines a set of Traffic Trunks
crossing a link that is governed by a specific set of
bandwidth constraints. Class-Type is used for the purposes
of link bandwidth allocation, constraint-based routing, and
admission control.";
reference
"RFC 4124: Protocol Extensions for Support of Diffserv-aware
MPLS Traffic Engineering";
}
typedef bc-type {
type uint8 {
range "0..7";
}
description
"Diffserv-TE bandwidth constraints as defined in RFC 4124.";
reference
"RFC 4124: Protocol Extensions for Support of Diffserv-aware
MPLS Traffic Engineering";
}
typedef bandwidth-kbps {
type uint64;
units "Kbps";
description
"Bandwidth values, expressed in kilobits per second.";
}
typedef bandwidth-mbps {
type uint64;
units "Mbps";
description
"Bandwidth values, expressed in megabits per second.";
}
typedef bandwidth-gbps {
type uint64;
units "Gbps";
description
"Bandwidth values, expressed in gigabits per second.";
}
identity backup-protection-type {
description
"Base identity for the backup protection type.";
}
identity backup-protection-link {
base backup-protection-type;
description
"Backup provides link protection only.";
}
identity backup-protection-node-link {
base backup-protection-type;
description
"Backup offers node (preferred) or link protection.";
}
identity bc-model-type {
description
"Base identity for the Diffserv-TE Bandwidth Constraints
Model type.";
reference
"RFC 4124: Protocol Extensions for Support of Diffserv-aware
MPLS Traffic Engineering";
}
identity bc-model-rdm {
base bc-model-type;
description
"Russian Dolls Bandwidth Constraints Model type.";
reference
"RFC 4127: Russian Dolls Bandwidth Constraints Model for
Diffserv-aware MPLS Traffic Engineering";
}
identity bc-model-mam {
base bc-model-type;
description
"Maximum Allocation Bandwidth Constraints Model type.";
reference
"RFC 4125: Maximum Allocation Bandwidth Constraints Model for
Diffserv-aware MPLS Traffic Engineering";
}
identity bc-model-mar {
base bc-model-type;
description
"Maximum Allocation with Reservation Bandwidth Constraints
Model type.";
reference
"RFC 4126: Max Allocation with Reservation Bandwidth
Constraints Model for Diffserv-aware MPLS Traffic
Engineering & Performance Comparisons";
}
/*
* Groupings
*/
grouping performance-metrics-attributes-packet {
description
"Contains PM attributes.";
uses te-types:performance-metrics-attributes {
augment "performance-metrics-one-way" {
leaf one-way-min-delay {
type uint32 {
range "0..16777215";
}
description
"One-way minimum delay or latency in microseconds.";
}
leaf one-way-min-delay-normality {
type te-types:performance-metrics-normality;
default "normal";
description
"One-way minimum delay or latency normality.";
}
leaf one-way-max-delay {
type uint32 {
range "0..16777215";
}
description
"One-way maximum delay or latency in microseconds.";
}
leaf one-way-max-delay-normality {
type te-types:performance-metrics-normality;
default "normal";
description
"One-way maximum delay or latency normality.";
}
leaf one-way-delay-variation {
type uint32 {
range "0..16777215";
}
description
"One-way delay variation in microseconds.";
reference
"RFC 5481: Packet Delay Variation Applicability
Statement, Section 4.2";
}
leaf one-way-delay-variation-normality {
type te-types:performance-metrics-normality;
default "normal";
description
"One-way delay variation normality.";
reference
"RFC 7471: OSPF Traffic Engineering (TE) Metric
Extensions
RFC 8570: IS-IS Traffic Engineering (TE) Metric
Extensions
RFC 7823: Performance-Based Path Selection for
Explicitly Routed Label Switched Paths (LSPs)
Using TE Metric Extensions";
}
leaf one-way-packet-loss {
type decimal64 {
fraction-digits 6;
range "0..50.331642";
}
description
"One-way packet loss as a percentage of the total traffic
sent over a configurable interval. The finest precision
is 0.000003%, where the maximum is 50.331642%.";
reference
"RFC 8570: IS-IS Traffic Engineering (TE) Metric
Extensions, Section 4.4";
}
leaf one-way-packet-loss-normality {
type te-types:performance-metrics-normality;
default "normal";
description
"Packet loss normality.";
reference
"RFC 7471: OSPF Traffic Engineering (TE) Metric
Extensions
RFC 8570: IS-IS Traffic Engineering (TE) Metric
Extensions
RFC 7823: Performance-Based Path Selection for
Explicitly Routed Label Switched Paths (LSPs)
Using TE Metric Extensions";
}
description
"PM one-way packet-specific augmentation for a generic PM
grouping.";
}
augment "performance-metrics-two-way" {
leaf two-way-min-delay {
type uint32 {
range "0..16777215";
}
default "0";
description
"Two-way minimum delay or latency in microseconds.";
}
leaf two-way-min-delay-normality {
type te-types:performance-metrics-normality;
default "normal";
description
"Two-way minimum delay or latency normality.";
reference
"RFC 7471: OSPF Traffic Engineering (TE) Metric
Extensions
RFC 8570: IS-IS Traffic Engineering (TE) Metric
Extensions
RFC 7823: Performance-Based Path Selection for
Explicitly Routed Label Switched Paths (LSPs)
Using TE Metric Extensions";
}
leaf two-way-max-delay {
type uint32 {
range "0..16777215";
}
default "0";
description
"Two-way maximum delay or latency in microseconds.";
}
leaf two-way-max-delay-normality {
type te-types:performance-metrics-normality;
default "normal";
description
"Two-way maximum delay or latency normality.";
reference
"RFC 7471: OSPF Traffic Engineering (TE) Metric
Extensions
RFC 8570: IS-IS Traffic Engineering (TE) Metric
Extensions
RFC 7823: Performance-Based Path Selection for
Explicitly Routed Label Switched Paths (LSPs)
Using TE Metric Extensions";
}
leaf two-way-delay-variation {
type uint32 {
range "0..16777215";
}
default "0";
description
"Two-way delay variation in microseconds.";
reference
"RFC 5481: Packet Delay Variation Applicability
Statement, Section 4.2";
}
leaf two-way-delay-variation-normality {
type te-types:performance-metrics-normality;
default "normal";
description
"Two-way delay variation normality.";
reference
"RFC 7471: OSPF Traffic Engineering (TE) Metric
Extensions
RFC 8570: IS-IS Traffic Engineering (TE) Metric
Extensions
RFC 7823: Performance-Based Path Selection for
Explicitly Routed Label Switched Paths (LSPs)
Using TE Metric Extensions";
}
leaf two-way-packet-loss {
type decimal64 {
fraction-digits 6;
range "0..50.331642";
}
default "0";
description
"Two-way packet loss as a percentage of the total traffic
sent over a configurable interval. The finest precision
is 0.000003%.";
}
leaf two-way-packet-loss-normality {
type te-types:performance-metrics-normality;
default "normal";
description
"Two-way packet loss normality.";
}
description
"PM two-way packet-specific augmentation for a generic PM
grouping.";
reference
"RFC 7471: OSPF Traffic Engineering (TE) Metric Extensions
RFC 8570: IS-IS Traffic Engineering (TE) Metric Extensions
RFC 7823: Performance-Based Path Selection for Explicitly
Routed Label Switched Paths (LSPs) Using TE
Metric Extensions";
}
}
}
grouping one-way-performance-metrics-packet {
description
"One-way packet PM throttle grouping.";
leaf one-way-min-delay {
type uint32 {
range "0..16777215";
}
default "0";
description
"One-way minimum delay or latency in microseconds.";
}
leaf one-way-max-delay {
type uint32 {
range "0..16777215";
}
default "0";
description
"One-way maximum delay or latency in microseconds.";
}
leaf one-way-delay-variation {
type uint32 {
range "0..16777215";
}
default "0";
description
"One-way delay variation in microseconds.";
}
leaf one-way-packet-loss {
type decimal64 {
fraction-digits 6;
range "0..50.331642";
}
default "0";
description
"One-way packet loss as a percentage of the total traffic
sent over a configurable interval. The finest precision is
0.000003%.";
}
}
grouping one-way-performance-metrics-gauge-packet {
description
"One-way packet PM throttle grouping.
This grouping is used to report the same metrics defined in
the one-way-performance-metrics-packet grouping, using gauges
instead of uint32 data types and referencing IPPM RFCs
instead of IGP-TE RFCs.";
leaf one-way-min-delay {
type yang:gauge64;
description
"One-way minimum delay or latency in microseconds.";
}
leaf one-way-max-delay {
type yang:gauge64;
description
"One-way maximum delay or latency in microseconds.";
reference
"RFC 7679: A One-Way Delay Metric for IP Performance
Metrics (IPPM)";
}
leaf one-way-delay-variation {
type yang:gauge64;
description
"One-way delay variation in microseconds.";
reference
"RFC 3393: IP Packet Delay Variation Metric for IP
Performance Metrics (IPPM)";
}
leaf one-way-packet-loss {
type decimal64 {
fraction-digits 5;
range "0..100";
}
description
"The ratio of packets dropped to packets transmitted between
two endpoints.";
reference
"RFC 7680: A One-Way Loss Metric for IP Performance
Metrics (IPPM)";
}
}
grouping two-way-performance-metrics-packet {
description
"Two-way packet PM throttle grouping.";
leaf two-way-min-delay {
type uint32 {
range "0..16777215";
}
default "0";
description
"Two-way minimum delay or latency in microseconds.";
}
leaf two-way-max-delay {
type uint32 {
range "0..16777215";
}
default "0";
description
"Two-way maximum delay or latency in microseconds.";
}
leaf two-way-delay-variation {
type uint32 {
range "0..16777215";
}
default "0";
description
"Two-way delay variation in microseconds.";
}
leaf two-way-packet-loss {
type decimal64 {
fraction-digits 6;
range "0..50.331642";
}
default "0";
description
"Two-way packet loss as a percentage of the total traffic
sent over a configurable interval. The finest precision is
0.000003%.";
}
}
grouping two-way-performance-metrics-gauge-packet {
description
"Two-way packet PM throttle grouping.
This grouping is used to report the same metrics defined in
the two-way-performance-metrics-packet grouping, using gauges
instead of uint32 data types and referencing IPPM RFCs
instead of IGP-TE RFCs.";
leaf two-way-min-delay {
type yang:gauge64;
description
"Two-way minimum delay or latency in microseconds.";
reference
"RFC 2681: A Round-trip Delay Metric for IPPM";
}
leaf two-way-max-delay {
type yang:gauge64;
description
"Two-way maximum delay or latency in microseconds.";
reference
"RFC 2681: A Round-trip Delay Metric for IPPM";
}
leaf two-way-delay-variation {
type yang:gauge64;
description
"Two-way delay variation in microseconds.";
reference
"RFC 5481: Packet Delay Variation Applicability Statement";
}
leaf two-way-packet-loss {
type decimal64 {
fraction-digits 5;
range "0..100";
}
description
"The ratio of packets dropped to packets transmitted between
two endpoints.";
}
}
grouping performance-metrics-throttle-container-packet {
description
"Packet PM threshold grouping.";
uses te-types:performance-metrics-throttle-container {
augment "throttle/threshold-out" {
uses one-way-performance-metrics-packet;
uses two-way-performance-metrics-packet;
description
"PM threshold-out packet augmentation for a
generic grouping.";
}
augment "throttle/threshold-in" {
uses one-way-performance-metrics-packet;
uses two-way-performance-metrics-packet;
description
"PM threshold-in packet augmentation for a
generic grouping.";
}
augment "throttle/threshold-accelerated-advertisement" {
uses one-way-performance-metrics-packet;
uses two-way-performance-metrics-packet;
description
"PM accelerated advertisement packet augmentation for a
generic grouping.";
}
}
}
grouping bandwidth-profile-parameters {
description
"Common parameters to define bandwidth profiles in packet
networks.";
leaf cir {
type uint64;
units "bits/second";
description
"Committed Information Rate (CIR).";
}
leaf cbs {
type uint64;
units "bytes";
description
"Committed Burst Size (CBS).";
}
leaf eir {
type uint64;
units "bits/second";
description
"Excess Information Rate (EIR).";
}
leaf ebs {
type uint64;
units "bytes";
description
"Excess Burst Size (EBS).";
}
leaf pir {
type uint64;
units "bits/second";
description
"Peak Information Rate (PIR).";
}
leaf pbs {
type uint64;
units "bytes";
description
"Peak Burst Size (PBS).";
}
}
grouping te-packet-path-bandwidth {
description
"Bandwidth attributes for TE Packet paths.";
container packet-bandwidth {
description
"Bandwidth attributes for TE Packet paths.";
leaf specification-type {
type te-bandwidth-requested-type;
description
"The bandwidth specification type, either explicitly
specified or automatically computed.";
}
leaf set-bandwidth {
when "../specification-type = 'specified-value'" {
description
"When the bandwidth value is explicitly specified.";
}
type bandwidth-kbps;
description
"Set the bandwidth value explicitly, e.g., using offline
calculation.";
}
container bandwidth-profile {
when "../specification-type = 'specified-profile'" {
description
"When the bandwidth profile is explicitly specified.";
}
description
"Set the bandwidth profile attributes explicitly.";
leaf bandwidth-profile-name {
type string;
description
"Name of Bandwidth Profile.";
}
leaf bandwidth-profile-type {
type identityref {
base bandwidth-profile-type;
}
description
"Type of Bandwidth Profile.";
}
uses bandwidth-profile-parameters;
}
leaf class-type {
type te-types:te-ds-class;
description
"The Class-Type of traffic transported by the LSP.";
reference
"RFC 4124: Protocol Extensions for Support of
Diffserv-aware MPLS Traffic Engineering,
Section 4.3.1";
}
leaf signaled-bandwidth {
type te-packet-types:bandwidth-kbps;
config false;
description
"The currently signaled bandwidth of the LSP.
In the case where the bandwidth is specified
explicitly, then this will match the value of the
set-bandwidth leaf.
In the cases where the bandwidth is dynamically
computed by the system, the current value of the
bandwidth should be reflected.";
}
}
}
grouping te-packet-link-bandwidth {
description
"Bandwidth attributes for Packet TE links.";
leaf packet-bandwidth {
type uint64;
units "bits/second";
description
"Bandwidth value for Packet TE links.";
}
}
}