An unexpected behavior related to BMP feature, BMP servers not sending any route updates out for the route exported by a BGP peer that was recently flapped. gw1> show version detail no-forwarding Model: mx2020 Junos: 21.2R3-S3.5 bmp { station test1 { local-address 17.0.X.X; connection-mode active; monitor disable; route-monitoring { post-policy; } station-address 10.x.x.x; station-port 9000; statistics-timeout 15; } station test2 { local-address 17.x.x.x; connection-mode active; monitor disable; route-monitoring { post-policy; } station-address 10.x.x.x; station-port 9000; statistics-timeout 15; } station test3 { local-address 17.0.X.X; connection-mode active; monitor disable; route-monitoring { post-policy; } station-address 10.x.x.x; station-port 9000; statistics-timeout 15; } }
gw1> clear bgp neighbor 5.x.x.x Do you want to continue ? [yes,no] (no) yes gw1> show bgp summary |match ^[0-9] | except "[0-9]w" | except " [0-9]d " Mar 09 06:17:38 5.x.x.y 207841 2155 2217 0 7 15:37:27 Establ 5.x.x. 6507 42 311 0 6 18:54 Establ ================================== 18 mins since established gw1> show bgp statistics bmp Mar 09 06:17:38 Station Name Monitor-type Advertised Prefix Withdrawn Prefix test1 Rib-In-Pre 0 0 Rib-In-Post 1772016463 803550590 =========== stuck Loc Rib 0 0 Rib-Out-Pre 0 0 Rib-Out-Post 0 0 test2 Rib-In-Pre 0 0 Rib-In-Post 1866202441 837944290 =========== stuck Loc Rib 0 0 Rib-Out-Pre 0 0 Rib-Out-Post 0 0 test3 Rib-In-Pre 0 0 Rib-In-Post 2362380598 1095950223 =========== stuck Loc Rib 0 0 Rib-Out-Pre 0 0 Rib-Out-Post 0 0
Mitigation is to deactivate / activate stuck BMP server(s).
{master}[edit] gw1# show | compare [edit routing-options bmp] ! inactive: station test1 { ... } {master}[edit] gw1# commit comment "Deactivare test11" re0: configuration check succeeds re1: commit complete re0: commit complete {master}[edit] gw1# run show bgp statistics bmp Mar 09 06:00:35 Station Name Monitor-type Advertised Prefix Withdrawn Prefix test1 Rib-In-Pre 0 0 Rib-In-Post 1772016463 803550590 Loc Rib 0 0 Rib-Out-Pre 0 0 Rib-Out-Post 0 0 test2 Rib-In-Pre 0 0 Rib-In-Post 2362380598 1095950223 Loc Rib 0 0 Rib-Out-Pre 0 0 Rib-Out-Post 0 0 gw1# run show bgp statistics bmp Station name: test1 Local address/port: 17.0.X.X/-, Station address/port: 10.0.248.116/9000, active State: established Local: 17.0.1.37+49914 Remote: 10.0.248.116+9000 Last state change: 26w2d 12:39:10 Monitor BGP Peers: disabled Route-monitoring: post-policy Hold-down: 600, flaps 3, period 300 Priority: low Statistics timeout: 15 Version: 3 Routing Instance: default Station name: test2 Local address/port: 17.0.X.X/-, Station address/port: 10.0.248.114/9000, active State: connect-timer Retry connect in 11 seconds Last state change: 16 Monitor BGP Peers: disabled Route-monitoring: post-policy Hold-down: 600, flaps 3, period 300 Priority: low Statistics timeout: 15 Version: 3 Routing Instance: default Station name: test2 Local address/port: 17.0.X.X/-, Station address/port: 10.0.248.115/9000, active State: established Local: 17.0.1.37+56166 Remote: 10.0.248.115+9000 Last state change: 27w4d 11:35:46 Monitor BGP Peers: disabled Route-monitoring: post-policy Hold-down: 600, flaps 3, period 300 Priority: low Statistics timeout: 15 Version: 3 Routing Instance: default gw1# run show bgp statistics bmp Station Name Monitor-type Advertised Prefix Withdrawn Prefix test1 Rib-In-Pre 0 0 Rib-In-Post 1772016463 803550590 Loc Rib 0 0 Rib-Out-Pre 0 0 Rib-Out-Post 0 0 test2 Rib-In-Pre 0 0 Rib-In-Post 12178911 820275 ===========================> restored Loc Rib 0 0 Rib-Out-Pre 0 0 Rib-Out-Post 0 0 test3 Rib-In-Pre 0 0 Rib-In-Post 2362380598 1095950223 Loc Rib 0 0 Rib-Out-Pre 0 0 Rib-Out-Post 0 0