Table of Contents

Chapter 10: BGP Fundamentals

IGPInternal Gateway Protocol
EGPExternal Gateway Protocol
BGPBorder Gateway Protocol
iBGPinternal BGP
eBGPexternal BGP
ASAutonomous System
ASsAutonomous Systems
ASNAutonomous System Number
RFC Description Link
1774BGP-4 Protocol Analysisrfc1774
4271A Border Gateway Protocol 4rfc4271
4274BGP-4 Protocol Analysisrfc4274
5123Path Validation Considerationsrfc5123
Book Title ISBN-13 Link
IP Routing on Cisco IOS, IOS XE, and IOS XR978-1-58714-423-3http://www.ciscopress.com/store/ip-routing-on-cisco-ios-ios-xe-and-ios-xr-an-essential-9781587144233

BGP Basics

BGP Algorithm

Example of eBGP preventing routing loops

  1. AS 1 advertises its route 10.1.1.0/24 to AS 2 as AS Path 1.
  2. AS 2 learns how to reach AS 1's network of 10.1.1.0/24 via AS Path 1.
  3. AS 2 adds its AS path to AS Path 1 and advertises it to AS 4 as AS Path 2 1.
  4. AS 4 learns how to reach AS 1's network of 10.1.1.0/24 via AS Path 2 1.
  5. AS 4 adds its AS path to AS Path 2 1 and advertises it to AS 3 as AS Path 4 2 1.
  6. AS 3 learns how to reach AS 1's network of 10.1.1.0/24 via AS Path 4 2 1.
  7. AS 3 adds its AS path to AS Path 4 2 1 and advertises it to AS 1 as AS Path 3 4 2 1.
  8. AS 1 rejects the advertisement because its own ASN is in the AS Path.
  9. AS 3 also advertises AS path 3 4 2 1 to AS 2 and AS 2 rejects the advertisement because its own ASN is in the AS Path.

Autonomous System Numbers

Path Attributes

Loop Prevention

Inter-Router Communication

Table 10-1: BGP Packet Types
TypeNameFunctional Overview
1OpenSets up and establishes BGP adjacency
2UpdateAdvertises, updates, or withdraws routes
3NotificationIndicates an error condition to a BGP neighbor
4KeepaliveEnsures the BGP neighbors are still alive

Open Messages

Hold Time
BGP Identifier

Keepalive Messages

Update Messages

Notification Messages

BGP Sessions

BGP Neighbor States

BGP neighbor states are:
Idle State
Connect State
Active State
OpenSent State
OpenConfirm State
Established State

page 419