Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Configuring BGP Monitoring Protocol Version 3

    BGP Monitoring Protocol (BMP) allows the Junos OS to send the BGP route information from the router to a monitoring application on a separate device. The monitoring application is called the BMP monitoring station or BMP station. To deploy BMP in your network, you need to configure BMP on each router and you also need to configure at least one BMP station. This procedure describes how to configure BMP on a router.

    You can specify these settings for all BMP stations by configuring the statements described here at the [edit routing-options bmp] hierarchy level. You can also configure settings for specific BMP stations by configuring these statements at the [edit routing-options bmp station station-name] hierarchy level.

    The following procedure describes how to configure BMP version 3 on the router:

    1. Specify the name or address for the BMP monitoring station by configuring the station-address statement. You can specify one or the other but not both. The address must be a valid IPv4 or IPv6 address.

      station-address (station-address | station-name);
    2. Specify the authentication algorithm used to encrypt authentication between the BMP-enabled router and the BMP station using the authentication-algorithm statement.

      You can specify one of the following types of authentication algorithms:

      • aes-128-cmac-96—Cipher-based message authentication code (AES128, 96 bits).
      • hmac-sha-1-96—Hash-based message authentication code (SHA1, 96 bits).
      • md5—Message digest 5.
    3. Specify an MD5 authentication key (password) using the authentication-key statement.

    4. Specify the authentication key chain using the authentication-key-chain statement.

      The authentication key chain itself needs to be configured at the [edit security authentication-key-chains key-chain] hierarchy level. For a detailed example, see Example: Configuring Route Authentication for BGP.
    5. Specify how to handle a BMP station flap by configuring the hold-down statement. A flap is when the TCP session unexpectedly switches from established to non-established. The BMP station can be prevented from attempting to reconnect to the device for a specified period of time.

      hold-down {seconds;flaps number;period seconds;}

      You can specify the following options for the hold-down statement:

      • seconds—Specify the time in seconds to wait before allowing the BMP station to reconnect to the device.
      • flaps number—Specify the number of BMP station flaps allowed before terminating the connection to the BMP station and triggering the hold down timer.
      • period seconds—Specify the time in seconds between BMP station flaps before terminating the connection to the BMP station and triggering the hold down timer.
    6. (Optional) Specify an initiation message to be sent to the BMP station using the initiation-message statement. This statement allows you to provide some information to the BMP station system administrator (for example, a contact phone number).

    7. Specify the connection mode for the connection between the BMP-enabled router and the BMP station using the connection-mode statement. The connection mode can be active or passive:

      • active—BMP initiates the connection to the BMP station. If you configure active mode, you must also configure a station port using the station-port statement. However, you must not configure a local port (active mode).
      • passive—BMP does not initiate a connection the BMP station. However, it does listen for a connection request from active BMP stations and will connect if a station is available. If you configure passive mode, you must not configure a station port. However, you must configure a local port using the local-port statement (passive mode).
      connection-mode (active | passive);
    8. Specify the port number for the BMP monitoring station by configuring the station-port statement. See also connection-mode.

    9. Specify the listening port for the BMP station connection using the local-port statement. See also connection-mode.

      If you change the local port, the BMP station connection flaps when you commit the configuration.

    10. (Optional) Specify the IPv4 or IPv6 address for the BMP connection on the device using the local-address statement. For both active and passive connections, configure a loopback local address. This provides a consistent local endpoint, is useful for debugging, and assures greater reliability for the BMP connection since it is not tied to a single router interface.

      For passive mode, specifying a local address is required. It also provides some security against a malicious BMP connection. For active mode, we also recommend configuring a local address to help ensure reliability.

      If you change the local address, the BMP station connection flaps when you commit the configuration.

      local-address address;
    11. BMP monitoring is enabled by default. You can explicitly enable BMP monitoring or disable it. You can also selectively enable or disable BMP monitoring at various hierarchy levels (for example, [edit protocols bgp group group-name] or [edit protocols bgp group group-name neighbor address]). If you disable BMP monitoring, withdrawal messages are sent for any previously advertised routes. These are followed by a down message. If you enable BMP monitoring, an up message is sent first and then the route advertisements follow.

      monitor (enable | disable);
    12. Specify the dispatch priority for BMP by configuring the priority statement. The dispatch priority controls the frequency with which the device is able to forward BMP messages to BMP stations. You can configure the dispatch priority as either high, medium, or low.

      priority (high | medium | low);
    13. Specify whether BMP should send pre-policy route monitoring messages, post-policy route monitoring messages, both types of messages, or none at all. The pre-policy can be configured to exclude routes that are non-feasible for the decision process (for example, a route loop) by including the non-feasible option for the pre-policy statement. This represents the view of the BGP routes before running the import policy.

      The post-policy can be configured to exclude routes that are not eligible for the decision process (for example, protocol nexthop not resolved) by including the exclude-non-eligible option for the post-policy statement. This represents the view of the BGP routes after running the import policy. If the import policy has rejected the BGP route, the route does not exist in the post policy view.

      You can explicitly disable route monitoring by specifying the none option for the route-monitoring statement. This is the default behavior.

      route-monitoring {none;post-policy {exclude-non-eligble;}pre-policy {exclude-non-feasible;}}
    14. Configure how often statistics messages are sent to the BMP monitoring station by specifying the number of seconds between message transmissions using statistics-timeout statement. If you configure a value of 0, no statistics messages are sent.

    Published: 2014-07-23