BGP Flashcards
AS numbers main purpose
To determine the best path to a prefix
To prevent routing loops between ASs
Private BGP AS number range
64512 to 65534
BGP peers communicate over which TCP Port
TCP port 179
BGP Session States
Idle: Tries to initiate a TCP session with its peer
Connect: Router with the highest ip address manages the connection state
Active: The router with the highest ip (The active router) initiates another TCP connection with the Passive router
OpenSent: Peers begin performing some BGP specific sanity checks
OpenConfirm: The peers wait to receive a keepalive message.
Established: After each peer receives a keepalive
Keepalive Message Time and Hold Time
60 seconds. Hold Time is 180 seconds
(*) Asterisk Indication in the BGP Table
Indicates the next-hop address is reachable. This means that the IP routing table has the route to reach the next hop.
The greater-than symbol (>)
Indicates the best path. BGP only advertises the best path to its peers.
Weight
Control which route is chosen as the best path. Locally significant. The default is 0 and 32,768 for self-generated routes. A higher weight is preferred.
Weight in show ip bgp
Local Preference
Influences the path traffic takes to prefixes outside an AS. The default value for local preference is 100. A higher local preference is preferred.
LocPrf in show ip bgp
Originate
Paths sourced locally are preferred.
AS Path Length
The number of autonomous systems in the AS_Path path attribute. Lower AS path lengths are preferred.
Path in show ip bgp
Origin Type
Indicates how BGP learned the route. Incomplete and a (?) means the source prefix was redistributed.
IGP (i) preferred over Incomplete (?)
Multi-Exit Discriminator (MED)
Reversal of the local preference. Influences how traffic ingresses an AS. A lower MED is preferred.
Metric in show ip bgp
Paths
eBGP routes take preference over iBGP routes. eBGP routes have an AD of 20, where iBGP routes have an AD of 200.
Oldest Route
BGP prefers the oldest installed route. It will hold onto the existing installed route as the best path