BGP communication

There are two types of BGP peers, internal BGP (iBGP) and external BGP (eBGP) (Figure: BGP configuration).

Autonomous systems share routing information, such as routes to each destination and information about the route or AS path, with other ASs using BGP. Routing tables contain lists of known routers, reachable addresses, and associated path cost metrics to each router. BGP uses the information and path attributes to compile a network topology.