-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdraft-ietf-grow-bmp-yang-02.txt
2520 lines (1867 loc) · 85.2 KB
/
draft-ietf-grow-bmp-yang-02.txt
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
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
GROW C. Cardona
Internet-Draft P. Lucente
Intended status: Standards Track NTT
Expires: 5 January 2024 T. Graf
Swisscom
B. Claise
Huawei
4 July 2023
BMP YANG Module
draft-ietf-grow-bmp-yang-02
Abstract
This document proposes a YANG module for the configuration and
monitoring of the BGP Monitoring Protocol (BMP).
Status of This Memo
This Internet-Draft is submitted in full conformance with the
provisions of BCP 78 and BCP 79.
Internet-Drafts are working documents of the Internet Engineering
Task Force (IETF). Note that other groups may also distribute
working documents as Internet-Drafts. The list of current Internet-
Drafts is at https://datatracker.ietf.org/drafts/current/.
Internet-Drafts are draft documents valid for a maximum of six months
and may be updated, replaced, or obsoleted by other documents at any
time. It is inappropriate to use Internet-Drafts as reference
material or to cite them other than as "work in progress."
This Internet-Draft will expire on 5 January 2024.
Copyright Notice
Copyright (c) 2023 IETF Trust and the persons identified as the
document authors. All rights reserved.
This document is subject to BCP 78 and the IETF Trust's Legal
Provisions Relating to IETF Documents (https://trustee.ietf.org/
license-info) in effect on the date of publication of this document.
Please review these documents carefully, as they describe your rights
and restrictions with respect to this document. Code Components
extracted from this document must include Revised BSD License text as
described in Section 4.e of the Trust Legal Provisions and are
provided without warranty as described in the Revised BSD License.
Cardona, et al. Expires 5 January 2024 [Page 1]
Internet-Draft BMP YANG Module July 2023
Table of Contents
1. Terminology . . . . . . . . . . . . . . . . . . . . . . . . . 2
2. Model description . . . . . . . . . . . . . . . . . . . . . . 3
2.1. IP Connectivity . . . . . . . . . . . . . . . . . . . . . 3
2.1.1. Active connection . . . . . . . . . . . . . . . . . . 3
2.1.2. Passive connection . . . . . . . . . . . . . . . . . 4
2.2. TCP Options . . . . . . . . . . . . . . . . . . . . . . . 4
2.3. Other BMP connectivity options . . . . . . . . . . . . . 6
2.4. BMP data . . . . . . . . . . . . . . . . . . . . . . . . 7
2.4.1. BMP route monitoring . . . . . . . . . . . . . . . . 8
2.4.1.1. Network instances . . . . . . . . . . . . . . . . 10
2.4.1.2. RIB Type . . . . . . . . . . . . . . . . . . . . 12
2.4.1.3. Address families . . . . . . . . . . . . . . . . 12
2.4.1.4. Peers . . . . . . . . . . . . . . . . . . . . . . 14
2.4.1.5. Filtering route-monitoring messages . . . . . . . 15
2.4.1.6. Full examples of Route monitoring
configurations . . . . . . . . . . . . . . . . . . 15
2.5. Session stats . . . . . . . . . . . . . . . . . . . . . . 17
2.6. Session reset action . . . . . . . . . . . . . . . . . . 17
3. Base ietf-bmp YANG module . . . . . . . . . . . . . . . . . . 17
3.1. Tree View . . . . . . . . . . . . . . . . . . . . . . . . 17
3.2. YANG Module . . . . . . . . . . . . . . . . . . . . . . . 21
4. Security Considerations . . . . . . . . . . . . . . . . . . . 37
5. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 38
5.1. The IETF XML Registry . . . . . . . . . . . . . . . . . . 38
5.2. The YANG Module Name Registration . . . . . . . . . . . . 38
6. Open Issues . . . . . . . . . . . . . . . . . . . . . . . . . 38
7. Normative References . . . . . . . . . . . . . . . . . . . . 38
Appendix A. Examples . . . . . . . . . . . . . . . . . . . . . . 40
A.1. Example one . . . . . . . . . . . . . . . . . . . . . . . 41
A.2. Example two . . . . . . . . . . . . . . . . . . . . . . . 42
Acknowledgements . . . . . . . . . . . . . . . . . . . . . . . . 44
Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . 44
1. Terminology
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 [RFC2119] [RFC8174] when, and only when, they appear in all
capitals, as shown here.
Routing Information Bases, peers, monitoring stations, and initiation
messages are defined in [RFC7854].
Cardona, et al. Expires 5 January 2024 [Page 2]
Internet-Draft BMP YANG Module July 2023
2. Model description
This document specifies a YANG module for configuring and monitoring
the BGP Monitoring Protocol (BMP) [RFC7854]. The model provides
parameters for configuring the session to BMP monitoring stations;
the selection of the BGP Routing Information Bases (RIBs) for Route
Monitoring Messages; provides operational metrics and enables
resetting of BMP monitoring sessions.
The model is included in Section 3. In this section, we provide
details and examples of each of its parts.
The BMP yang model is placed at the root of the YANG tree. At its
upper level, the BMP model lists each monitoring station. Every
monitoring station is identified by an ID, which is a string provided
by the operator.
2.1. IP Connectivity
BMP allows for active and passive connections between the router and
the BMP monitoring station as described in Section 3.2 of [RFC7854].
In an active connection, the router establishes the TCP connection to
the monitoring station, while in a passive one, it is the monitoring
station which initiates the connection. The BMP yang module provides
options for both types of connection using a choice.
We describe each type of connection option next, and provide examples
of their configuration.
2.1.1. Active connection
For an active connection, the IP address and port of the monitoring
station, together with the local address MUST be provided. One can
optionally provide the local port for establishing the connection.
If the monitoring station is connected over a network-instance
instead of the global one, this one must also be specified. An
example of configuration is included in Figure 1.
!
bmp monitoring-stations monitoring-station monitor_station_one
connection active station-address 192.0.2.1
connection active station-port 57992
connection active local-address 192.0.2.2
!
Figure 1: Active connection example
Cardona, et al. Expires 5 January 2024 [Page 3]
Internet-Draft BMP YANG Module July 2023
Note in the example from Figure 1 that there is no network instance
defined, so the connection is using the global network instance.
2.1.2. Passive connection
In a passive connection, the IP of the monitoring station, the local
address and local port for the incoming connection must be specified.
If the port of the monitoring station is provided, it MUST match the
incoming connection. If the monitoring station is connected through
a network-instance instead of the global one, this one MUST also be
specified.
An incoming connection not matching a valid entry MUST be ignored by
the router.
!
network-instances network-instance test
!
bmp monitoring-stations monitoring-station monitoring_station_two
connection passive network-instance test
connection passive station-address 192.0.2.1
connection passive local-address 192.0.2.2
connection passive local-port 57993
!
Figure 2: Passive connection example
2.2. TCP Options
The BMP module allows tuning various parameters of the TCP connection
supporting the BMP session:
* For configuring TCP keepalives, the connection container uses the
tcp-common-grouping from [I-D.ietf-netconf-tcp-client-server].
Please see Section 2.1.3.1 of [I-D.ietf-netconf-tcp-client-server]
for the explanation of each of its parameters. Note that for the
configuration of these parameters, the device must have the
feature "tcp-client-keepalives" enabled. See also Section 3.8.4
of [RFC9293]
* The maximum segment of the TCP connection. See Section 3.7.1 of
[RFC9293].
* Enabling MTU discovery for the path. See Section 3.7.2 of
[RFC9293].
* Session security. Provides options for authentication using AO
and MD5. This part of the model was taken from the BGP yang model
[I-D.ietf-idr-bgp-model].
Cardona, et al. Expires 5 January 2024 [Page 4]
Internet-Draft BMP YANG Module July 2023
Figures 3 and 4 include examples configuring the previous TCP
parameters in the model.
!
bmp monitoring-stations monitoring-station monitoring_station_one
connection keepalives idle-time 15
connection keepalives max-probes 3
connection keepalives probe-interval 30
!
bmp monitoring-stations monitoring-station monitoring_station_one
connection maximum-segment-size 1500
connection mtu-discovery true
!
Figure 3: Example of configuring basic TCP parameters
Cardona, et al. Expires 5 January 2024 [Page 5]
Internet-Draft BMP YANG Module July 2023
!
key-chains key-chain bmp-key-chain
description "An example of TCP-AO configuration for BMP"
key 55 crypto-algorithm aes-128
lifetime send-lifetime start-date-time 2023-01-01T00:00:00+00:00
lifetime send-lifetime end-date-time 2023-02-01T00:00:00+00:00
lifetime accept-lifetime start-date-time 2023-01-01T00:00:00+00:00
lifetime accept-lifetime end-date-time 2023-02-01T00:00:00+00:00
key-string keystring teststring
authentication keychain bmp-key-chain
authentication ao send-id 65
authentication ao recv-id 87
!
!
key 56 crypto-algorithm aes-128
lifetime send-lifetime start-date-time 2023-01-01T00:00:00+00:00
lifetime send-lifetime end-date-time 2023-02-01T00:00:00+00:00
lifetime accept-lifetime start-date-time 2023-01-01T00:00:00+00:00
lifetime accept-lifetime end-date-time 2023-02-01T00:00:00+00:00
authentication keychain bmp-key-chain
authentication ao send-id 65
authentication ao recv-id 87
!
!
!
bmp monitoring-stations monitoring-station monitoring_station_one
connection tcp-options secure-session-enable true
connection tcp-options secure-session ao-keychain bmp-key-chain
!
key-chains key-chain bmp-key-chain
!
Figure 4: Example of the Configuration of TCP session security.
2.3. Other BMP connectivity options
The model also includes the next options to configure the connection
to the BMP monitoring station:
* Initial-delay: a value in seconds that the device must hold back
before starting the connection to the station.
* Backoff time. Configuration of the backoff time strategy after
failing to connect to the monitoring station. The model includes
a basic exponential backoff with a default initial backoff of 30
seconds and a maximum of 720 seconds, as suggested in Section 3.2
of [RFC7854].
Cardona, et al. Expires 5 January 2024 [Page 6]
Internet-Draft BMP YANG Module July 2023
In the example in Figure 5, we configure an initial-delay of 10.
Configuring an initial-backoff of 50 seconds and 600 of maximum-
backoff.
!
bmp monitoring-stations monitoring-station monitoring_station_one
connection initial-delay 10
connection backoff simple-exponential initial-backoff 50
connection backoff simple-exponential maximum-backoff 600
!
Figure 5: Example of the initial-delay and simple exponential
backoff.
2.4. BMP data
The bmp-data container defines the configuration parameters for the
data that the devices sends to the monitoring station using the
various BMP messages. See Section 4 of [RFC7854].
The BMP model defines options for the initiation message, the
statistics report, and the routing monitoring. The first two have
simple configurations options and are shortly described next. The
Routing monitoring is the most complex of all and it is detailed in
Section 2.4.1.
* Initiation-message: Content for an information TLV type-0 for
identification of the device. See 4.3 and Section 4.4 of
[RFC7854]
* Statistics-interval: The statistics report is enabled by the
presence of the bmp-statistics-report container. The statistics-
interval is mandatory if the bmp-statistics-report container
exists and defines the interval of the statistics report. See
Section 4.8 of [RFC7854].
An example of configuring the previous options is included in
Figure 6
!
bmp monitoring-stations monitoring-station monitoring_station_one
bmp-data initiation-message "I am a BMP device supporting the BMP yang module"
bmp-data bmp-statistics-report statistics-interval 600
!
Figure 6: Example of configuration of initiation-message and
statistics report interval.
Cardona, et al. Expires 5 January 2024 [Page 7]
Internet-Draft BMP YANG Module July 2023
2.4.1. BMP route monitoring
Route monitoring messages are used for synchronization of RIBs to the
monitoring station. See Section 5 of [RFC7854].
The next 3 requirements were defined before designing this part of
the model.
* Operators might not want to receive all routes from all RIBs in a
network device. For instance, some devices contain a considerable
amount of data that might overwhelm the monitoring station. In
this cases, operators might want to only collect information from
an arbitrary subset of RIBs, address families, peers.
* Operators might want to configure the route monitoring messages
for different network instances differently. For example, they
might want to receive different address families from the global
network instance than in L3 VPN network instances.
* In contrast to the previous points. some operators might want a
simple configuration that covers multiple cases (e.g. same config
for all peers, or same config for all network instances). This
would not only make configurations look smaller and concise, but
will reduce the need for reconfiguring devices when you add a new
peer or add a new network instance (which happens frequently on
some type of networks).
Based on the previous points, the BMP yang model is designed to
flexibly control the data sent through the BMP route monitoring
packets, yet it provides options to facilitate configurations for
simple cases, such as when the operator wants to receive all routes
from a RIB.
The Routing monitoring configuration is divided in a 4 part
hierarchy:
* Network Instance
* RIB Type (e.g. Adj-RIB-IN pre/post, local RIB)
* Address Family
* Peers
Absence of the routing monitoring container will disable the routing
monitoring messages to the monitoring station.
We'll offer an introduction to these hierarchies before going over
them with detail.
Cardona, et al. Expires 5 January 2024 [Page 8]
Internet-Draft BMP YANG Module July 2023
The number of RIB types (e.g. Adj-RIB-IN, etc/OUT and local RIB) and
Address families is low, and their configuration should not change
frequently. Therefore, they are configured explicitly in the model.
That is, the model does not provide a way of providing a default
configuration for these or configuring them in groups.
On the other hand, Network instances and peers require greater
flexibility.
For network instances, the model should configure not only the
"global" network instance (the main one configured under the /ietf-
routing:routing), but also other network instances configured under
the /ietf-network-instance:network-instances/. Also, network
instances can change frequently in networks with customer connecting
to Virtual Private Networks. To not force operators to change
configuration at every change, the model provides methods for
defining a "default" configuration for network instances. However,
to provide control over the configuration, each network instance can
be configured independently, if needed.
A situation is similar with peers for the Adj-RIB-IN and Adj-RIB-OUT
RIBs. The model includes a way of configuring a default for all
peers for simple cases, but one can provide configuration for type of
peers or each peer individually.
We summarize the requirements stated on the previous two paragraphs
next:
For network instances:
* The configuration should be simple for cases where only the
"global" routing instance is enabled.
* The model should provide ways of configuring all Network instances
(kind of a default config for any Network instance that is
configured in the device).
* The model should provide a way of configuring network instances
individually.
For peers:
* The model should provide ways of configuring all peers, kind of a
default. This would be the most common case.
* The model should provide ways of configuring type of peers. For
instance, only send routes from eBGP peers.
* The model should provide ways of configuring individual peers.
For instance, turn a route-policy filtering prefix for a specific
peer, or turning off a peer that is noisy yet not important.
Cardona, et al. Expires 5 January 2024 [Page 9]
Internet-Draft BMP YANG Module July 2023
To further control the route monitoring data, the peer/peer-type
container includes a route-policy option in which the operator can
further filter the data send to the BMP monitoring station.
We'll describe each of the 4 hierarchies, and provide examples for
each, in the next sections.
2.4.1.1. Network instances
The routing monitoring configuration starts with the selection of
network instance. One or more Network instances can be selected
using a "bmp-ni-types" identity, or they can be selected
individually, referencing the /network-instance/ list.
The model currently defines two bmp-ni-types identities: "bmp-ni-
types-all-ni" which selects all network instances, and "bmp-ni-types-
global-ni" which selects the global network instance (the one
configured in `/ietf-routing:routing/`). The former can be used as a
"default" configuration for simple cases.
An empty configuration disables routing monitoring messages for the
selected network-instances. Operators can also use the enable leaf
to disable explicitly the routing messages for the network instance.
The route-monitoring data for a network instance can be configured by
maximum one element of the network-instances list. There SHOULD be
clear rules to which element to apply to a network instance in case
multiple elements can select it. We provide rules and examples in
the next part of the section.
* If the bmp-ni-types-global-ni exist, the global network instance /
network instance SHOULD be configured using this element.
* If any /ni:network-instances/ni:network-instance/ is referenced,
the network instance SHOULD be configured using this element.
* Any Network instance not referenced by any rule above should be
configured using the bmp-ni-types-all-ni if one exists. If it
does not exist, then the network instance is not configured (and
therefore no route monitoring messages from the network instance
are sent to the monitoring station).
Any extension of the bmp-ni-types SHOULD provide explanations of how
to deal with case in which multiple elements select the same network
instance.
We provide examples of configuring the network instance level next.
To focus on the network instance configuration, we mask the
configuration under each instance using "Configuration X".
Cardona, et al. Expires 5 January 2024 [Page 10]
Internet-Draft BMP YANG Module July 2023
!
network-instances network-instance network-instance-one
!
network-instances network-instance network-instance-two
!
bmp monitoring-stations monitoring-station monitoring_station_one
bmp-data bmp-route-monitoring network-instances network-instance bmp-ni-types-all-ni
< Configuration A >
!
bmp-data bmp-route-monitoring network-instances network-instance bmp-ni-types-global-ni
< Configuration B >
!
bmp-data bmp-route-monitoring network-instances network-instance network-instance-one
enabled false
!
bmp-data bmp-route-monitoring network-instances network-instance network-instance-two
< Configuration C >
!
Figure 7: Examples of configuring the network instance level for
Route Monitoring.
In example from Figure 7, we have a "default" configuration
(Configuration A) applied to any network instance without any
explicit configuration. The global network instance and network-
instance-two get Configuration B and Configuration C, respectively.
The network-instance-one instance disables the routing monitoring
messages for that network instance.
!
bmp-data bmp-route-monitoring network-instances network-instance bmp-ni-types-all-ni
< Configuration D >
!
Figure 8: Example of configuring all network instances.
The example in Figure 8 shows a "simple" configuration. In this
case, all network instances would get "Configuration D". Note that
`bmp-ni-types-all-ni` would also cover the global instance.
Another simple configuration would just involve configuring the
global network instance. In this case, information of non-global
network instances would not be sent to the monitoring station. This
is depicted in Figure 9
Cardona, et al. Expires 5 January 2024 [Page 11]
Internet-Draft BMP YANG Module July 2023
!
bmp-data bmp-route-monitoring network-instances network-instance bmp-ni-types-global-ni
< Configuration E >
!
Figure 9: Example of configuring only the global network instance.
2.4.1.2. RIB Type
Each RIB type is configured explicitly in the model through a
container. The model currently provides containers for adj-rib-out-
pre, adj-rib-out-post, adj-rib-in-post, adj-rib-in-pre and local-rib.
An empty configuration or absence of a RIB-type container disables
route-messages for it. Operators can also disable the RIB-type route
monitoring messages by marking the "enabled" leaf as False.
We provide an example of this together with address families in the
next section
2.4.1.3. Address families
Address families are configured explicitly within each RIB-TYPE using
a list. The key is of type `ietf-bgp-types:afi-safi-type` without
any further constraint.
An empty configuration or absence of an address family disables
route-messages for it. Operators can also disable the address-family
route monitoring messages by marking the "enabled" leaf as False.
We show a few examples of configuring RIB-Types and Address families
next. We will mask further configurations of address families with
"Configuration X" to focus on the covered parts.
Cardona, et al. Expires 5 January 2024 [Page 12]
Internet-Draft BMP YANG Module July 2023
!
bmp monitoring-stations monitoring-station monitoring_station_one
bmp-data bmp-route-monitoring network-instances network-instance bmp-ni-types-all-ni
adj-rib-in-pre address-families address-family ipv6-unicast
< Configuration F >
!
adj-rib-in-pre address-families address-family ipv4-unicast
< Configuration G >
!
!
bmp-data bmp-route-monitoring network-instances network-instance bmp-ni-types-global-ni
adj-rib-in-pre address-families address-family ipv6-unicast
< Configuration H >
!
adj-rib-in-pre address-families address-family ipv4-unicast
< Configuration I >
!
adj-rib-in-post address-families address-family ipv6-unicast
< Configuration J >
!
adj-rib-in-post address-families address-family ipv4-unicast
< Configuration K >
!
!
bmp-data bmp-route-monitoring network-instances network-instance network-instance-one
disabled
!
bmp-data bmp-route-monitoring network-instances network-instance network-instance-two
adj-rib-out-post address-families address-family ipv4-unicast
< Configuration L >
!
!
!
Figure 10: Example of configuring RIBs and address families.
In Figure 10, we expand previous sections examples with RIB-Type and
address families configurations. The expected result of the previous
configuration would be:
* For the global network instance, adj-rib-in-pre and adj-rib-in-
post RIBs are enabled. In each of them IPv4 and IPv6 address
families are configured. The configuration can be the same or
not, depending on the requirements of the operators. Any other
RIB and address families are disabled.
* Network instance one is disabled, meaning that routing monitoring
messages are disabled for that network instance.
Cardona, et al. Expires 5 January 2024 [Page 13]
Internet-Draft BMP YANG Module July 2023
* Network instance "network-instance-two" has adj-rib-out-post
enabled, but only address family ipv4-unicast is configured. The
ipv6-unicast will not be configured for this instance.
* For all other network instances, adj-rib-in-pre with IPv4 and IPv6
address families are configured, thanks to the configuration of
bmp-ni-types-all-ni
If an operator only wants to configure the IPv4/IPv6 of adj-rib-pre-
in for the global instance, the configuration in Figure 11 will be
enough. We note again that even if the configuration of both address
families is the same, they must be explicitly configured for each of
them.
!
bmp-data bmp-route-monitoring network-instances network-instance bmp-ni-types-global-ni
adj-rib-in-pre address-families address-family ipv6-unicast
< config for ipv6-unicast >
!
adj-rib-in-pre address-families address-family ipv4-unicast
< config for ipv4-unicast >
!
!
Figure 11: Example of configuring RIBs and address families.
2.4.1.4. Peers
For adj-RIB-in and adj-RIB-out, both pre and post, the model requires
the selection of peer's RIBs that will be transmitted to the
monitoring station. The local-rib does not include this container.
Peers are a list indexed by a peer id, which can be one of the
following:
* An individual peer, using a remote address. The model currently
does not check if the remote address exists, that would be a
responsibility of the device.
* A group of peers matching a BGP type. i.e. eBGP peers.
* One or more peers defined by an `bmp-peer-types` identity. The
BMP model currently provides the `bmp-peer-types-all-peers`
identity which select all peers. For simple cases, this is the
value that would normally be considered.
Peers MUST be selected (configured) by maximum a single instance of
the peers list. For the included keys in the BMP model, the process
to select which instance to use is the next:
Cardona, et al. Expires 5 January 2024 [Page 14]
Internet-Draft BMP YANG Module July 2023
* If there is a peer address matching the peer, it should be
configured using that instance.
* If the peer is of any BGP type listed in the peer list, it should
be configured using this instance.
* If there is a peer instance identified with the `bmp-peer-types-
all-peers`, it would be configured using this instance.
* Finally, if no instance covers the peer, the data from this peer
should not be transmitted to the monitoring station.
An empty configuration of a peer type disables route-messages for it.
Operators can also disable the address-family route monitoring
messages by marking the "enabled" leaf as False.
Any additional bmp-peer-types identity created SHOULD describe how to
unambiguously select a peer when there are conflicting options
(multiple options covering the peer).
We'll provide examples of the peers configuration after describing
the filter containers.
2.4.1.5. Filtering route-monitoring messages
The local rib, and the peer containers within the rest of rib types,
include a filter container. This container includes mechanisms to
filter route-monitoring messages for the specific RIB.
The policy-filter can include a routing policy that, if existing,
should be applied to the outgoing updates to the monitoring station,
and would serve as a granular way of filtering the messages that the
monitoring station receives.
Note that the policy-filter contains an `accept-route` default export
policy. An operator can change it to a reject-route, if required.
The policies created with the routing-policy can perform a large
variety of actions routes, and can filter them based on multiple
characteristics. For the consistency of the data in the monitoring
station, the route policies actions SHOULD be restricted to accepting
or rejecting routes. Furthermore, the conditions SHOULD only match
prefix sets.
We present examples of full configurations next.
2.4.1.6. Full examples of Route monitoring configurations
Cardona, et al. Expires 5 January 2024 [Page 15]
Internet-Draft BMP YANG Module July 2023
2.4.1.6.1. Example one
In this example, address families IPv6 and IPv4 are configured to
send all peers. This is an example of a simple configuration
!
bmp-data bmp-route-monitoring network-instances network-instance bmp-ni-types-all-ni
adj-rib-in-pre address-families address-family ipv6-unicast
peers peer bmp-peer-types-all-peers
!
!
adj-rib-in-pre address-families address-family ipv4-unicast
peers peer bmp-peer-types-all-peers
!
!
!
Figure 12: Enabling Route monitoring for all peers; all network
instances; IPv4/ IPv6 Address families, in the adj-rib-in-pre
RIB.
2.4.1.6.2. Example two
In this example, the global network instance enables the adj-rib-in-
pre. In this RIB, the IPv4 unicast address family is configured for
all external peers. We assume peer 198.51.100.1 is external, but its
BGP configuration is not shown in the snippet. Peer 198.51.100.1,
however, has a specific configuration: it announces everything but
prefixes matching the test_policy list. Note that there is a default
accept-route default policy in the model.
!
bmp-data bmp-route-monitoring network-instances network-instance bmp-ni-types-global-ni
adj-rib-in-pre
adj-rib-in-pre address-families address-family ipv6-unicast
peers peer bmp-peer-types-all-peers
!
!
adj-rib-in-pre address-families address-family ipv4-unicast
peers peer 198.51.100.1
filters policy-filter export-policy [ test_policy ]
!
peers peer external
!
!
Figure 13: Configuring address families differently for the
global network instance
Cardona, et al. Expires 5 January 2024 [Page 16]
Internet-Draft BMP YANG Module July 2023
2.4.1.6.3. Example three
In this example, all network instances have adj-rib-in-pre with IPv6
and IPv4 configured receiving all peers. network-instance-one is
disabled, and network-instance-two is announcing only the local-rib/
IPv4 unicast routes.
!
bmp-data bmp-route-monitoring network-instances network-instance bmp-ni-types-all-ni
adj-rib-in-pre address-families address-family ipv6-unicast
peers peer bmp-peer-types-all-peers
!
!
adj-rib-in-pre address-families address-family ipv4-unicast
peers peer bmp-peer-types-all-peers
!
!
!
bmp-data bmp-route-monitoring network-instances network-instance network-instance-one
disabled
!
bmp-data bmp-route-monitoring network-instances network-instance network-instance-two
local-rib address-families address-family ipv4-unicast
!
!
!
Figure 14: Applying a general configuration to all network
instances, except of two, which are configured specifically.
2.5. Session stats
The non-configurable container "session-stats" includes various
metrics for the session with the monitoring station.
2.6. Session reset action
The "session-reset" action resets a session with a monitoring
station.
3. Base ietf-bmp YANG module
3.1. Tree View
The following tree diagram provides an overview of the ietf-bmp.yang
data model.
Cardona, et al. Expires 5 January 2024 [Page 17]
Internet-Draft BMP YANG Module July 2023
=============== NOTE: '\\' line wrapping per RFC 8792 ===============
module: ietf-bmp
+--rw bmp
+--rw monitoring-stations
+--rw monitoring-station* [id]
+--rw id string
+--rw connection
| +--rw (passive-or-active)?
| | +--:(active)
| | | +--rw active
| | | +--rw network-instance? leafref
| | | +--rw station-address inet:ip-address
| | | +--rw station-port inet:port-number
| | | +--rw local-address inet:ip-address
| | | +--rw local-port? inet:port-number
| | +--:(passive)
| | +--rw passive
| | +--rw network-instance? leafref
| | +--rw station-address inet:ip-address
| | +--rw station-port? inet:port-number
| | +--rw local-address inet:ip-address
| | +--rw local-port inet:port-number
| +--rw tcp-options
| | +--rw maximum-segment-size? uint16
| | +--rw mtu-discovery? boolean
| | +--rw keepalives! {keepalives-supported}?
| | | +--rw idle-time uint16
| | | +--rw max-probes uint16
| | | +--rw probe-interval uint16
| | +--rw secure-session-enable? boolean
| | +--rw secure-session
| | +--rw (authentication)?
| | +--:(ao)
| | | +--rw ao-keychain?
| | | key-chain:key-chain-ref
| | +--:(md5)
| | +--rw md5-keychain?
| | key-chain:key-chain-ref
| +--rw initial-delay? uint32
| +--rw backoff
| +--rw (backoff-options)?
| +--:(simple-exponential)
| +--rw simple-exponential