Fundamentals of BGP Operations
Fundamentals of BGP Operations
1. Purpose of BGP
3. Types of BGP
Internal BGP (iBGP): Used for routing within a single AS. iBGP is
crucial for distributing external routes learned from eBGP peers to
all routers within an AS, ensuring consistent routing information
across the entire AS. iBGP peers do not re-advertise routes learned
from other iBGP peers to avoid routing loops, necessitating a full
mesh topology or the use of route reflectors.
BGP establishes peering sessions using TCP port 179. The process of
establishing a BGP session involves several steps:
4. Lowest Origin Type: Prefer paths with an origin type of IGP over
EGP, and EGP over INCOMPLETE.
6. eBGP over iBGP: Prefer routes learned via eBGP over routes
learned via iBGP, giving precedence to external paths.
7. Lowest IGP Metric to the BGP Next Hop: Prefer the path with
the lowest IGP cost to reach the next-hop IP address.
8. Oldest Route: Prefer the path that was received first, which
promotes stability in the network.
9. Lowest Router ID: As a final tie-breaker, prefer the path from the
router with the lowest router ID.
9. Security in BGP
ISPs and Large Enterprises: BGP is essential for ISPs and large
enterprises that connect to