forked from tsaad-dev/te
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ietf-te-packet-types.yang
412 lines (378 loc) · 12 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
module ietf-te-packet-types {
yang-version 1.1;
namespace "urn:ietf:params:xml:ns:yang:ietf-te-packet-types";
/* Replace with IANA when assigned */
prefix "te-packet-types";
/* Import TE generic types */
import ietf-te-types {
prefix te-types;
reference
"RFC XXXX: A YANG Data Model for Common Traffic Engineering
Types";
}
organization
"IETF TEAS Working Group";
contact
"WG Web: <http://tools.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: Himanshu Shah
<mailto:[email protected]>
Editor: Xufeng Liu
<mailto:[email protected]>
Editor: Igor Bryskin
<mailto:[email protected]>
Editor: Young Lee
<mailto:[email protected]>";
description
"This module contains a collection of generally useful MPLS TE
specific YANG data type definitions. The model fully conforms
to the Network Management Datastore Architecture (NMDA).
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 XXXX; see
the RFC itself for full legal notices.";
// RFC Ed.: replace XXXX with actual RFC number and remove this
// note.
// RFC Ed.: update the date below with the date of RFC publication
// and remove this note.
revision "2019-11-18" {
description "Latest revision of TE MPLS types";
reference
"RFC XXXX: A YANG Data Model for Common Traffic Engineering
Types";
}
/**
* Typedefs
*/
typedef te-bandwidth-requested-type {
type enumeration {
enum specified {
description
"Bandwidth 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 that defines a set of Traffic
Trunks crossing a link that is governed by a specific
set of bandwidth constraints. CT is used for the
purposes of link bandwidth allocation, constraint-
based routing and admission control.";
reference "RFC4124: Protocols for Diffserv-aware TE";
}
typedef bc-type {
type uint8 {
range '0..7';
}
description
"Diffserv-TE bandwidth constraint as defined in RFC4124";
reference "RFC4124: Protocols for Diffserv-aware TE";
}
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 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 Diffserv-TE bandwidth constraint
model type";
reference "RFC4124: Protocols for Diffserv-aware TE";
}
identity bc-model-rdm {
base bc-model-type;
description
"Russian Doll bandwidth constraint model type.";
reference "RFC4127: Russian Dolls Model for DS-TE";
}
identity bc-model-mam {
base bc-model-type;
description
"Maximum Allocation bandwidth constraint
model type.";
reference "RFC4125: Maximum Allocation Model for DS-TE";
}
identity bc-model-mar {
base bc-model-type;
description
"Maximum Allocation with Reservation
bandwidth constraint model type.";
reference "RFC4126: MAR Bandwidth Constraints Model for DS-TE";
}
grouping performance-metrics-attributes-packet {
description
"A container containing performance metric 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 micro seconds.";
}
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 micro seconds.";
}
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 micro seconds.";
reference "RFC5481, section 4.2";
}
leaf one-way-delay-variation-normality {
type te-types:performance-metrics-normality;
default "normal";
description "One-way delay variation normality.";
reference "RFC7471, RFC8570, and RFC7823";
}
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 50.331642%.";
reference "RFC 7810, section-4.4";
}
leaf one-way-packet-loss-normality {
type te-types:performance-metrics-normality;
default "normal";
description "Packet loss normality.";
reference "RFC7471, RFC8570, and RFC7823";
}
description
"PM one-way packet specific augmentation to 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 micro seconds.";
}
leaf two-way-min-delay-normality {
type te-types:performance-metrics-normality;
default "normal";
description "Two-way minimum delay or latency normality.";
reference "RFC7471, RFC8570, and RFC7823";
}
leaf two-way-max-delay {
type uint32 {
range '0..16777215';
}
default 0;
description
"Two-way maximum delay or latency in micro seconds.";
}
leaf two-way-max-delay-normality {
type te-types:performance-metrics-normality;
default "normal";
description "Two-way maximum delay or latency normality.";
reference "RFC7471, RFC8570, and RFC7823";
}
leaf two-way-delay-variation {
type uint32 {
range '0..16777215';
}
default 0;
description "Two-way delay variation in micro seconds.";
reference "RFC5481, section 4.2";
}
leaf two-way-delay-variation-normality {
type te-types:performance-metrics-normality;
default "normal";
description "Two-way delay variation normality.";
reference "RFC7471, RFC8570, and RFC7823";
}
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 to generic PM
grouping";
reference "RFC7471, RFC8570, and RFC7823";
}
}
}
grouping one-way-performance-metrics-packet {
description
"One-way packet performance metrics throttle grouping.";
leaf one-way-min-delay {
type uint32 {
range '0..16777215';
}
default 0;
description "One-way minimum delay or latency in micro seconds.";
}
leaf one-way-max-delay {
type uint32 {
range '0..16777215';
}
default 0;
description "One-way maximum delay or latency in micro seconds.";
}
leaf one-way-delay-variation {
type uint32 {
range '0..16777215';
}
default 0;
description "One-way delay variation in micro seconds.";
}
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 two-way-performance-metrics-packet {
description
"Two-way packet performance metrics throttle grouping.";
leaf two-way-min-delay {
type uint32 {
range '0..16777215';
}
default 0;
description "Two-way minimum delay or latency in micro seconds.";
}
leaf two-way-max-delay {
type uint32 {
range '0..16777215';
}
default 0;
description "Two-way maximum delay or latency in micro seconds.";
}
leaf two-way-delay-variation {
type uint32 {
range '0..16777215';
}
default 0;
description "Two-way delay variation in micro seconds.";
}
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 performance-metrics-throttle-container-packet {
description
"Packet performance metrics 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 to
generic grouping";
}
augment "throttle/threshold-in" {
uses one-way-performance-metrics-packet;
uses two-way-performance-metrics-packet;
description
"PM threshold-in packet augmentation to
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 to
generic grouping";
}
}
}
}