BGP

Overview

BGP is an inter-AS routing protocol. An AS is a network or a group of devices logically organized and controlled by a common network administration. BGP enables devices to exchange network reachability information. AS paths are the routes to each destination. There are two types of BGP: IBGP and EBGP.

See Inter-AS connections in VPRN service management for more information about connecting ASs in a VPRN.

You can use the NFM-P to enable BGP on the device and perform the following functions:

The NFM-P supports the configuration of IPv6 addresses for BGP peering on the base routing instance of supporting devices.

The base BGP routing instance and the policy statement support MVPN IPv6 on supporting devices.

The NFM-P supports IPv4 and IPv6 routes with and without implementation labels. The base router maintains separate BGP RIBs for each of the following types of routes: IPv4, label-IPv4, IPv6 and label-IPv6. Each VPRN maintains separate BGP RIBs for each of the following types of routes: IPv4, label-IPv4 (if CSC is enabled), IPv6 and label-IPv6.

A device can only belong to one AS. After the neighbor relationship is established between devices, they exchange BGP open messages, which contain information such as AS numbers, BGP versions, router IDs, hold-time values, and keepalive messages. This information determines the status of the BGP session. Peer relationships are defined by configuring the IP addresses of the devices that are peers of the local BGP system.

The following figure shows a simple BGP example using groups, subconfederations, and confederations.

Figure 28-1: BGP example
BGP example

In a standard BGP configuration, all BGP-enabled devices within an AS have a full mesh of BGP peerings to ensure all externally learned routes are redistributed through the entire AS. This is needed because IBGP does not re-advertise routes learned from one IBGP peer to another IBGP peer. However, as more devices are added, scaling the IBGP mesh can become an issue. You can use the following subdividing methods to solve this scaling issue:

By default, BGP routers will advertise only the best path to other BGP peers. When the best path fails or a better path is discovered, the old routing information is overwritten. If BGP PIC Add-Path is enabled, peers will advertise multiple paths for the same destination, all of which will be retained in their routing tables. In the event of a failure or path withdrawal message, the router is able to update its forwarding entry for that destination without having to receive new path advertisements. This results in faster convergence after path failure.

MP-BGP

MP-BGP is an extension to BGP that allows different types of addresses (known as address families) to be distributed in parallel. Standard BGP only supports IPv4 Unicast addresses; MP-BGP supports both IPv4 and IPv6 addresses and supports Unicast and Multicast variants of each. MP-BGP allows information about the topology of IP multicast-capable routers to be exchanged separately from the topology of normal IPv4 Unicast routers. The routes associated with multicast routing are used by PIM to build multicast data distribution trees.

BGP distributes IP routing information between networks. The distribution of IP routing information between VPRNs requires MP-BGP. MP-BGP addressing uses an 8-byte RD with a 4-byte or 16-byte IP address, depending on whether IPv4 or IPv6 is used. The requirements for MP-BGP configuration are the following.

When PE devices learn routing information from the CE devices in a VPRN configuration, the routing information is shared using MP-BGP. The RD is used to associate the new routing information with a VPRN instance.

The PE devices distribute the route information to the other CE devices in the VPRN. Each learned route is assigned an MPLS label that is distributed to the devices.

When customer packets arrive at a PE device, the packets are encapsulated with the MPLS label that corresponds to the learned route for the packet destination.

The MP-BGP multicast extension can be applied to build separate routing tables for multicast paths. IGPs such as OSPF and IS-IS can import multicast and Unicast routing information to the multicast and Unicast routing tables. The multicast routing information can subsequently be used by PIM to perform RPF lookups.

BGP SIDR prefix origin validation

BGP SIDR prefix origin validation can help prevent BGP prefix spoofing. BGP speakers access cryptographically secured information about the AS numbers that are authorized to originate routes for different prefixes.

If a BGP speaker that supports SIDR prefix origin validation receives a route from an EBGP peer and the origin AS of the route is incorrect for the advertised prefix, the route is considered invalid and may be given a lower preference or not propagated further. When a device is configured with RPKI router sessions, the device stores the information it receives from cache servers in a local database called the origin validation database. The entries in this database are called VRP (Validated ROA Payload) entries.

See To configure BGP SIDR prefix origin validation for information about configuring BGP SIDR prefix origin validation.