Beruflich Dokumente
Kultur Dokumente
Protocol
Bertrand Duvivier (bduvivie@cisco.com)
Sr Product Manager
September, 2014
2013 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 1
BMP overview
What is BMP ?
http://tools.ietf.org/html/draft-ietf-grow-bmp-07.txt
BMP overview
BMP client/collector
BMP
BMP collector
collector
BMP message
Adj-RIB-in
Adj-RIB-in (pre-inbound-filter)
(pre-inbound-filter)
BGP
BGP Monitor
Monitor Protocol
Protocol update
update
Loc-RIB
Loc-RIB (post-inbound-filter)
(post-inbound-filter) Adj-RIB-in
Adj-RIB-in (pre-inbound-filter)
(pre-inbound-filter)
iBGP update
iBGP update eBGP update
eBGP update
BGP peer (internal)
BMP client
Inbound BGP peers (external)
filtering
policing
BMP overview
Full picture
There are many reasons to use BMP, but to highlight a few common ones:
1. Looking Glasses - IPv4, IPv6, and VPN4
BMP collector
- OpenBMP: Open Source: using MySQL
https://www.openbmp.org/
BMP receiver can be configured with both ipv4 & ipv6 host addresses.
The BGP speaker process is referred to as the BMP Client.
BMP client provides only pre-policy view of the ADJ-RIB-IN of a peer
Post-policy view is not supported
Once the TCP connection with a BMP receiver comes up, BMP client does the
following
Sends the Initiation message to BMP receiver
This contains the host name and system software info (version)
Sends Peer-Up message for every ESTABLISHED peer
Send Route-Refresh message to all ESTABLISHED peers (unless configured not to)
Peer-Down message for every peer which goes down
Periodic Stats-Report messages
Route-monitoring messages for any update received from the monitored peer
Termination message if session with BMP receiver is brought down gracefully
( unconfigured )
BMP Client
Design (4)
When BMP client receives updates from a peer, it makes a copy of the
message and add it to the queue of all BMP receivers monitoring the peer
A separate thread in BGP speaker process then flushes the updates out on the tcp
session to the BMP receiver
A copy of the message is made for every monitoring BMP receiver
If a TCP session with the BMP receiver cannot be established, the Client
process will retry the connect every 7 secs
BMP
BMP messages
Stat type
0 (standard) Number of prefixes rejected by inbound policy.
1 (standard) Number of (known) duplicate prefix advertisements. Currently sending 0.
2 (standard) Number of (known) duplicate withdraws. Currently sending 0.
3 (standard) Number of updates invalidated due to CLUSTER_LIST loop.
4 (standard) Number of updates invalidated due to AS_PATH loop.
5 (standard) Number of updates invalidated due to ORIGINATOR_ID.
6 (standard) Number of updates invalidated due to AS_CONFED loop.
7 (standard) Number of routes in Adj-RIBs-In.
8 (standard) Number of routes in Loc-RIB.
BMP Client
Client config.
3. Few command:
RP/0/0/CPU0:Aug 18 11:01:14 : bgp[1039]: [default-mgmt]: [BMP Message Dump : receiver (NULL), nbr 20.0.101.11, type
Peer Down Notification]:
RP/0/0/CPU0:Aug 18 11:01:14 : bgp[1039]: [default-mgmt]: 0300 0000 4602 0000 0000 0000 0000 0000
RP/0/0/CPU0:Aug 18 11:01:14 : bgp[1039]: [default-mgmt]: 0000 0000 0000 0000 0000 0000 1400 650b
RP/0/0/CPU0:Aug 18 11:01:14 : bgp[1039]: [default-mgmt]: 0000 0065 1400 650b 53f2 3f6a 000c fd3a
RP/0/0/CPU0:Aug 18 11:01:14 : bgp[1039]: [default-mgmt]: 01ff ffff ffff ffff ffff ffff ffff ffff
RP/0/0/CPU0:Aug 18 11:03:22 : bgp[1039]: [default-iord]: 0300 0000 ac03 0000 0000 0000 0000 0000
RP/0/0/CPU0:Aug 18 11:03:22 : bgp[1039]: [default-iord]: 0000 0000 0000 0000 0000 0000 1400 650b
RP/0/0/CPU0:Aug 18 11:03:22 : bgp[1039]: [default-iord]: 0000 0065 0000 0000 53f2 3fea 0005 3282
RP/0/0/CPU0:Aug 18 11:03:22 : bgp[1039]: [default-iord]: 0000 0000 0000 0000 0000 0000 1400 0002
RP/0/0/CPU0:Aug 18 11:03:22 : bgp[1039]: [default-iord]: 00b3 7f51 ffff ffff ffff ffff ffff ffff
RP/0/0/CPU0:Aug 18 11:03:22 : bgp[1039]: [default-iord]: ffff ffff 003b 0104 0064 00b4 0202 0202
RP/0/0/CPU0:Aug 18 11:03:22 : bgp[1039]: [default-iord]: 1e02 0601 0400 0100 0102 0280 0002 0202
RP/0/0/CPU0:Aug 18 11:03:22 : bgp[1039]: [default-iord]: 0002 0641 0400 0000 6402 0440 0200 78ff
RP/0/0/CPU0:Aug 18 11:03:22 : bgp[1039]: [default-iord]: ffff ffff ffff ffff ffff ffff ffff ff00
RP/0/0/CPU0:Aug 18 11:03:22 : bgp[1039]: [default-iord]: 2d01 0400 6500 b414 0065 0b10 0206 0104
RP/0/0/CPU0:Aug 18 11:03:22 : bgp[1039]: [default-iord]: 0001 0001 0202 8000 0202 0200
BMP Client Debug debug bgp bmp
RP/0/0/CPU0:Aug 18 10:08:13 : bgp[1039]: [default-ext]: 0300 0000 6b04 0001 005b 4369 7363 6f20
RP/0/0/CPU0:Aug 18 10:08:13 : bgp[1039]: [default-ext]: 494f 5320 5852 2053 6f66 7477 6172 652c
RP/0/0/CPU0:Aug 18 10:08:13 : bgp[1039]: [default-ext]: 2056 6572 7369 6f6e 2035 2e32 2e32 2e31
RP/0/0/CPU0:Aug 18 10:08:13 : bgp[1039]: [default-ext]: 3849 5b44 6566 6175 6c74 5d0a 436f 7079
RP/0/0/CPU0:Aug 18 10:08:13 : bgp[1039]: [default-ext]: 7269 6768 7420 2863 2920 3230 3134 2062
RP/0/0/CPU0:Aug 18 10:08:13 : bgp[1039]: [default-ext]: 7920 4369 7363 6f20 5379 7374 656d 732c
RP/0/0/CPU0:Aug 18 09:37:33 : bgp[1039]: [default-mgmt]: [BMP Message Dump : receiver 10.0.101.1, nbr (None), type
Termination Message]:
RP/0/0/CPU0:Aug 18 09:37:33 : bgp[1039]: [default-mgmt]: 0300 0000 1f05 0000 000f 636f 6e66 6967
RP/0/0/CPU0:Aug 18 09:37:33 : bgp[1039]: [default-mgmt]: 2073 6875 7464 6f77 6e00 0100 0200 00
RP/0/2/CPU0:Aug 18 09:37:33 : bgp[1039]: [default-mgmt]: [10.0.101.1] receiver close called with reason 0x3 [state NONE]