Introduction
to BGP
Border Gateway Protocol (BGP) advertises, learns, and chooses the best paths inside the global Internet. When two ISPs connect, they typically use BGP to exchange routing information. Collectively, the ISPs of the world exchange the Internet’s routing table using BGP. And enterprises sometimes use BGP to exchange routing information with one or more ISPs, allowing the enterprise routers to learn Internet routes.
Interior Gateway Protocols (IGPs) are used for exchanging routing information within an autonomous system (AS). Ex: RIP, IGRP, EIGRP, OSPF, and IS-IS.
Exterior Gateway
Protocols (EGPs)
are used for communication between autonomous systems. The main goal of
EGPs is to provide an inter-domain routing system that exchanges guaranteed loop-free
routing information between autonomous systems throughout the Internet and
within multinational organizations. EGPs are not meant to locate a specific network,
but rather provide the information to find the autonomous system in which the
network resides. Ex: BGP.
One key difference when comparing BGP to the usual IGP routing protocols is BGP’s robust best-path algorithm. BGP uses this algorithm to choose the best BGP path (route) using rules that extend far beyond just choosing the route with the lowest metric. This more complex best-path algorithm gives BGP the power to let engineers configure many different settings that influence BGP best-path selection, allowing great flexibility in how routers choose the best BGP routes.
BGP Basics
BGP, specifically BGP version 4 (BGPv4), is the one routing protocol in popular use today that was designed as an exterior gateway protocol (EGP) instead of as an interior gateway protocol (IGP). As such, some of the goals of BGP differ from those of an IGP, such as Open Shortest Path First (OSPF) or Enhanced Interior Gateway Routing Protocol (EIGRP), but some of the goals remain the same.
Path
Attributes: AS_PATH
Path attributes (PAs) are factors that allow BGP to select a route over another. By default, no BGP PAs have been set, and BGP use AS_PATH (autonomous system path) PA when choosing the best route among many routes.
When a
router uses BGP to advertise a route with AS_PATH, it will tell which list of
ASN the path will go through. AS_PATH can:
- Choose
the best route by using the route with shortest AS_PATH
- Prevent routing loops.
No comments:
Post a Comment