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
|
module openconfig-rsvp-sr-ext {
yang-version "1";
namespace "http://openconfig.net/yang/rsvp-sr-ext";
prefix "oc-sr-rsvp-ext";
import openconfig-extensions { prefix "oc-ext"; }
import openconfig-types { prefix "oc-types"; }
import openconfig-network-instance { prefix "oc-ni"; }
organization
"OpenConfig working group";
contact
"OpenConfig working group
www.openconfig.net";
description
"This module adds extensions to the OpenConfig MPLS models to
provide extensions which allow the coexistence of RSVP-TE and
Segment Routing (SR) within the same network. It augments the
existing OpenConfig segment routing (SR) and RSVP-TE models
where required.";
oc-ext:openconfig-version "0.2.0";
revision 2018-04-13 {
description
"Replace boolean with modes for measure-sr-traffic.";
reference "0.2.0";
}
revision 2017-03-06 {
description
"Initial revision.";
reference "0.1.0";
}
grouping bandwidth-measurement-global-state {
description
"Operational state parameters for bandwidth measurement which
apply globally to the device.";
leaf effective-adjustment-interval {
type uint32;
units "seconds";
description
"The effective adjustment interval that is being used by
the system. In the case that the adjustment-interval leaf
is set to a non-integer multiple of the collection-interval,
and the system does not support this, the value of this leaf
should reflect the effective value of the adjustment interval
that it has selected. In the case where no rounding of the
adjustment interval has occurred, this value should have the
same value as the adjustment-inerval leaf.";
}
}
grouping bandwidth-measurement-global-config {
description
"Configuration parameters for bandwidth measurement which apply
globally to the device.";
leaf measure-sr-traffic {
type enumeration {
enum MEASURE_ONLY {
description
"Only measure the SR traffic being sent via an interface,
and do not flood it into the IGP.";
}
enum MEASURE_AND_FLOOD {
description
"Measure the SR traffic being sent via an interface and
flood it into the IGP.";
}
}
description
"Parameter enabling SR traffic measurement
and optional flooding into IGP.";
reference
"draft-sitaraman-sr-rsvp-coexistence-rec-01";
}
// TODO(robjs): For future extension, traffic accounting for
// non-SR, non-RSVP traffic could be added here. e.g., LDP,
// BGP-LU etc.
leaf collection-interval {
type uint32;
units "seconds";
description
"The interval at which the collection of interface
statistics relating to non-RSVP-TE traffic should be
performed";
reference
"draft-sitaraman-sr-rsvp-coexistence-rec-01";
}
leaf adjustment-interval {
type uint32;
units "seconds";
description
"The interval after which an adjustment to the utilised
bandwidth on the interface is made. This value must be
greater than, or equal to, the collection interval for
statistics. This value is referred to as N in
draft-sitaraman-sr-rsvp-coexistence-rec-01.
After N seconds have expired, the
arithmetic mean of the samples is taken, and this is
considered as the non-RSVP-TE utilisation of the
interface. In the case that the adjustment interval is
an integer >1 multiple of the collection interval, this
serves to provide smoothing of the collected bandwidth
statistics.";
reference
"draft-sitaraman-sr-rsvp-coexistence-rec-01";
}
leaf bandwidth-multiplier {
type decimal64 {
fraction-digits 4;
}
default 1.0000;
description
"A multiplier applied to the sampled bandwidth which
determines the value that is propagated to the IGP TED.
By default this value is 1.0000, and hence the actual
sampled value is flooded.";
}
}
grouping bandwidth-measurement-update-config {
description
"Configuration parameters related to when the bandwidth
measurement information is used to update the IGP TED.";
leaf update-trigger {
type enumeration {
enum ADJUSTED_MAX_RESERVABLE_PCT {
description
"Update of a new maximum reservable bandwidth IGP
TLV is based on the value changing >= X% of
the currently flooded adjusted-absolute-subscription-bw.
The percentage of this value that is used is specified
by the adjusted-max-reservable-bw-pct leaf.";
}
enum SR_TRAFFIC_PCT {
description
"Update of the new maximum reservable bandwidth IGP
TLV is based on the value changing >= X% of the last
calculated segment routing traffic utilisation for the
interface. The percentage delta of this value is
specified by the sr-traffic-pct leaf.";
}
}
description
"The trigger that should be used to determine when the IGP
TED is updated with new information as to the effective
maximum reservable bandwidth
(adjusted-absolute-subscription-bw)";
}
leaf adjusted-max-reservable-bw-pct {
when "../update-trigger = 'ADJUSTED_MAX_RESERVABLE_PCT'" {
description
"Only allow the adjusted-max-reservable-bw update trigger
to be specified when the update-trigger mode is specified
to be a percentage of the currently flooded value.";
}
type oc-types:percentage;
description
"The delta in the adjusted-max-reservable-bandwidth that
should trigger an update in the value which is flooded
through the IGP TED.
The delta is measured as a percentage of the
current adjusted value of the maximum reservable bandwidth
of the interface, as specified by the
adjusted-absolute-subscription-bw RSVP-TE leaf.";
reference
"draft-sitaraman-sr-rsvp-coexistence-rec-01";
}
leaf sr-traffic-pct {
when "../update-trigger = 'SR_TRAFFIC_PCT'" {
description
"Only allow the SR traffic percentage trigger to be
specified when the update trigger is defined to be a
percentage of the last calculated SR traffic value.";
}
type oc-types:percentage;
description
"The change in the calculated SR traffic on the interface
that should trigger an update in the value of the
maximum reservable bandwidth flooded through the IGP TED.
The value is specified as a percentage of the
last-calculated-sr-traffic state leaf.";
}
}
grouping bandwidth-measurement-global-structural {
description
"Structural grouping for the measurement of segment routing
traffic, and its advertisement into the IGP TED.";
container bandwidth-measurement {
description
"Configuration and operational state parameters related to
how bandwidth utilisation is measured and flooded into the
IGP.";
container config {
description
"Configuration parameters relating to bandwidth
measurement.";
uses bandwidth-measurement-global-config;
}
container state {
config false;
description
"Operational state parameters relating to bandwidth
measurement";
uses bandwidth-measurement-global-config;
uses bandwidth-measurement-global-state;
}
container update-trigger {
description
"Configuration and operational state parameters related
to the update trigger for flooding new bandwidth
information into the IGP.";
container config {
description
"Configuration parameters related to the bandwidth
measurement update trigger.";
uses bandwidth-measurement-update-config;
}
container state {
config false;
description
"Operational state parameters related to the bandwidth
measurement update trigger.";
uses bandwidth-measurement-update-config;
}
}
}
}
augment "/oc-ni:network-instances/oc-ni:network-instance/" +
"oc-ni:mpls/oc-ni:te-global-attributes" {
description
"Add the bandwidth measurement parameters to MPLS global
traffic engineering hierarchy.";
uses bandwidth-measurement-global-structural;
}
grouping bandwidth-measurement-rsvp-te-adjusted-state {
description
"Logical grouping augmented into the RSVP-TE hierarchy to
provide an operational state value which reflects the
adjusted RSVP-TE available bandwidth.";
leaf adjusted-absolute-subscription-bw {
type uint64;
units "kbps";
description
"The adjusted absolute value (in kbps) of the
bandwidth which is reservable to RSVP-TE on the
local system. In the case that the bandwidth-measurement
configuration does not account for non-RSVP-TE traffic
then this value is equal to the
calculated-absolute-subscription-bw, in the case that
non-RSVP-TE traffic is being accounted for, it is lower
such that calculated-absolute-subscription-bw -
adjusted-absolute-subscription-bw = the current calculated
non-RSVP-TE traffic.
This value reflects the last flooded value of the maximum
reservable bandwidth, or subscription.";
}
}
augment "/oc-ni:network-instances/oc-ni:network-instance/" +
"oc-ni:mpls/oc-ni:signaling-protocols/oc-ni:rsvp-te/" +
"oc-ni:interface-attributes/oc-ni:interface/" +
"oc-ni:subscription/oc-ni:state" {
description
"Augmentation to add the adjusted RSVP-TE available bandwidth
state to the RSVP-TE signaling protocol.";
uses bandwidth-measurement-rsvp-te-adjusted-state;
}
grouping bandwidth-measurement-intf-structural {
description
"Structural grouping containing interface bandwidth
measurement configuration and operational state
parameters.";
container bandwidth-measurement {
description
"Configuration and operational state parameters relating to
per-interface bandwidth measurement. These parameters are
used in the case that RSVP-TE coexists with other MPLS
signaling protocols on an interface.";
container state {
config false;
description
"Operational state parameters relating to the containing
interface's bandwidth measurement.";
uses bandwidth-measurement-intf-state;
}
}
}
grouping bandwidth-measurement-intf-state {
description
"Operational state parameters per-interface for the measured
bandwidth on an interface";
leaf last-sample-time {
type oc-types:timeticks64;
description
"The time at which the last sample of bandwidth utilisation
for both RSVP-TE and non-RSVP-TE traffic was taken. This value
is represented in nanoseconds since the Unix epoch.";
}
leaf last-sample-measured-rsvp-util {
type uint64;
units "kbps";
description
"The measured RSVP-TE bandwidth utilisation at the last sample
(whose time is indicated in last-sample-time). This value is
expressed as a 64-bit unsigned integer representing the number
of kilobits per second that RSVP-TE traffic is consuming on
the interface.";
}
leaf last-sample-measured-sr-util {
type uint64;
units "kbps";
description
"The measured Segment Routing bandwidth utilisation at the
last sample (whose time is indicated in last-sample-time).
This value is expressed as a 64-bit unsigned integer
representing the number of kilobits per second that Segment
Routing traffic is consuming on the interface.";
}
leaf last-calculated-time {
type oc-types:timeticks64;
description
"The time at which the last calculated value for bandwidth
utilisation was performed.";
}
leaf last-calculated-sr-utilisation {
type uint64;
description
"The last calculated value of the Segment Routing utilisation
(taken post any averaging or adjustment that occurs). This
value is updated regardless of whether the value was flooded
or not.";
}
leaf last-flooded-time {
type oc-types:timeticks64;
description
"The time, expressed in nanoseconds since the epoch, at which
the bandwidth utilisation of non-RSVP-TE traffic resulted in
the value being flooded in the IGP. If the configuration of the
local system specifies a 0% change requires flooding, this leaf
will always reflect the value of the last-calculated-time. In
systems that have suppression due to a >0% delta being required
then it indicates the last time that the percentage threshold
was exceeded.";
}
}
augment "/oc-ni:network-instances/oc-ni:network-instance/oc-ni:mpls" +
"/oc-ni:te-interface-attributes/oc-ni:interface" {
description
"Augment the per-interface bandwidth measurement parameters into the
MPLS hierarchy of network instance.";
uses bandwidth-measurement-intf-structural;
}
}
|