BGP Table Types Explained

Rashmi Bhardwaj | Blog,Routing & Switching
Advertisements

In order for BGP to be able to perform its functions it stores this information is a special type of database called the BGP RIB (Routing Information Base).

For BGP Routing Information Base to learn BGP routes through its neighbors, store the best BGP routes and then advertise the best routes to neighbors/peers, there is need for multiple BGP tables

3 BGP Table Types

BGP Routing Information Base consists of three parts as explained below –

Advertisements

1. Adj-RIBs-In –

This BGP information refers to routing prefix received from neighbor without applying any filtering or attribute manipulation. Attribute modifications or route filtering is applied after Adj-RIB-In.

2. Loc-RIB –

BGP maintains its own master routing table called the Local Routing Information Base (Loc-RIB).Best routes is selected after applying routing policies on the routes available in Adj-RIBs-In. Whenever an Adj-RIB-In changes, the main BGP process decides if any of the neighbour’s new routes are preferred to routes already in the Loc-RIB and it replaces as required.

3. Adj-RIBs-Out –

This table refers to Routes/NLRI selected from Loc-RIB after applying outbound routing/filtering policies. This table stores the routing information that was selected by the local BGP router and the advertised to its peers through BGP update messages.

Below diagram will help understand placement of 3 BGP table types for BGP routing flow starting with Route learning till its advertisement to neighbors –bgp table types

Command List for BGP Table Types

Following are the commands to find output for 3 BGP tables (Adj-RIBs-Out,Loc-RIB andAdj-RIBs-In) –

bgp-table-types

Continue Reading:

BGP Message Types

Guide on BGP Neighbor States

ABOUT THE AUTHOR


Leave a Comment

Your email address will not be published. Required fields are marked *

Shopping Cart