BGP Monitoring Protocol draft-ietf-grow-bmp-07
BMP Initiation Message
Attribute |
Description |
|---|---|
version |
Version. this packet lib defines BMP ver. 3 |
len |
Length field. Ignored when encoding. |
type |
Type field. one of BMP_MSG_ constants. |
info |
One or more piece of information encoded as a TLV |
Base class for BGP Monitoring Protocol messages.
An instance has the following attributes at least. Most of them are same to the on-wire counterparts but in host byte order. __init__ takes the corresponding args in this order.
Attribute |
Description |
|---|---|
version |
Version. this packet lib defines BMP ver. 3 |
len |
Length field. Ignored when encoding. |
type |
Type field. one of BMP_MSG_ constants. |
Encode a protocol header.
This method is used only when encoding a packet.
Encode a protocol header. Returns a bytearray which contains the header.
payload is the rest of the packet which will immediately follow this header.
prev is a packet_base.PacketBase subclass for the outer protocol header. prev is None if the current header is the outer-most. For example, prev is ipv4 or ipv6 for tcp.serialize.
BMP Peer Down Notification Message
Attribute |
Description |
|---|---|
version |
Version. this packet lib defines BMP ver. 3 |
len |
Length field. Ignored when encoding. |
type |
Type field. one of BMP_MSG_ constants. |
reason |
Reason indicates why the session was closed. |
data |
vary by the reason. |
BMP Message with Per Peer Header
Following BMP Messages contain Per Peer Header after Common BMP Header.
BMP_MSG_TYPE_ROUTE_MONITRING
BMP_MSG_TYPE_STATISTICS_REPORT
BMP_MSG_PEER_UP_NOTIFICATION
Attribute |
Description |
|---|---|
version |
Version. this packet lib defines BMP ver. 3 |
len |
Length field. Ignored when encoding. |
type |
Type field. one of BMP_MSG_ constants. |
peer_type |
The type of the peer. |
is_post_policy |
Indicate the message reflects the post-policy Adj-RIB-In |
peer_distinguisher |
Use for L3VPN router which can have multiple instance. |
peer_address |
The remote IP address associated with the TCP session. |
peer_as |
The Autonomous System number of the peer. |
peer_bgp_id |
The BGP Identifier of the peer |
timestamp |
The time when the encapsulated routes were received. |
BMP Peer Up Notification Message
Attribute |
Description |
|---|---|
version |
Version. this packet lib defines BMP ver. 3 |
len |
Length field. Ignored when encoding. |
type |
Type field. one of BMP_MSG_ constants. |
peer_type |
The type of the peer. |
peer_flags |
Provide more information about the peer. |
peer_distinguisher |
Use for L3VPN router which can have multiple instance. |
peer_address |
The remote IP address associated with the TCP session. |
peer_as |
The Autonomous System number of the peer. |
peer_bgp_id |
The BGP Identifier of the peer |
timestamp |
The time when the encapsulated routes were received. |
local_address |
The local IP address associated with the peering TCP session. |
local_port |
The local port number associated with the peering TCP session. |
remote_port |
The remote port number associated with the peering TCP session. |
sent_open_message |
The full OPEN message transmitted by the monitored router to its peer. |
received_open_message |
The full OPEN message received by the monitored router from its peer. |
BMP Route Monitoring Message
Attribute |
Description |
|---|---|
version |
Version. this packet lib defines BMP ver. 3 |
len |
Length field. Ignored when encoding. |
type |
Type field. one of BMP_MSG_ constants. |
peer_type |
The type of the peer. |
peer_flags |
Provide more information about the peer. |
peer_distinguisher |
Use for L3VPN router which can have multiple instance. |
peer_address |
The remote IP address associated with the TCP session. |
peer_as |
The Autonomous System number of the peer. |
peer_bgp_id |
The BGP Identifier of the peer |
timestamp |
The time when the encapsulated routes were received. |
bgp_update |
BGP Update PDU |
BMP Statistics Report Message
Attribute |
Description |
|---|---|
version |
Version. this packet lib defines BMP ver. 3 |
len |
Length field. Ignored when encoding. |
type |
Type field. one of BMP_MSG_ constants. |
peer_type |
The type of the peer. |
peer_flags |
Provide more information about the peer. |
peer_distinguisher |
Use for L3VPN router which can have multiple instance. |
peer_address |
The remote IP address associated with the TCP session. |
peer_as |
The Autonomous System number of the peer. |
peer_bgp_id |
The BGP Identifier of the peer |
timestamp |
The time when the encapsulated routes were received. |
stats |
Statistics (one or more stats encoded as a TLV) |
BMP Termination Message
Attribute |
Description |
|---|---|
version |
Version. this packet lib defines BMP ver. 3 |
len |
Length field. Ignored when encoding. |
type |
Type field. one of BMP_MSG_ constants. |
info |
One or more piece of information encoded as a TLV |
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.