SlideShare a Scribd company logo
5
Most read
9
Most read
12
Most read
1© 2017 ThousandEyes Inc. All Rights Reserved.
How BGP Works
Young Xu, Product Marketing Manager
2© 2017 ThousandEyes Inc. All Rights Reserved.
About ThousandEyes
Network Intelligence platform
that gives you a complete
picture from users to internal
and cloud-based applications
Routing!
User
 App
End-to-End Performance Data
App
Performance!
User
Experience!
Network
Topology!
Routing
Topology!
Enterprise, Endpoint and Cloud Agents
Network
Connectivity!
And Route Monitors!
Surface insights from
a global data set
Lightweight, flexible
data collection
Unified view of diverse
performance data
Solve issues across
shared infrastructure
See any network like
it’s your own
3© 2017 ThousandEyes Inc. All Rights Reserved.
Border Gateway Protocol
BGP-4 RFC4271
Where do I forward traffic to reach an IP
address in an external network?
How can I control the route and composition
of inbound traffic to my network?
4© 2017 ThousandEyes Inc. All Rights Reserved.
•  Autonomous System
–  Collection of IP prefixes
–  Common routing policy
to other ASes
–  Registered by an RIR
(regional Internet registry)
–  Denoted by a name and number
•  A Private AS can be used when
a single upstream exists
–  External routing policy is identical
IP Blocks and Autonomous Systems
AS 200
2.2.2.0/24
2.2.3.0/24
Autonomous
System
5© 2017 ThousandEyes Inc. All Rights Reserved.
•  Inter-Network – Used for routing
between networks (Autonomous
Systems), or within large networks
•  Reachability – BGP defines how one AS
can reach another, described as a path
vector (AS Path)
•  Policy-Based – BGP makes it possible
for an AS to apply policies (e.g. multi-
homing, failover, commercial terms)
•  Decentralized – Each AS makes policy
decisions autonomously, using BGP to
coordinate and share routes
Key BGP Concepts
6© 2017 ThousandEyes Inc. All Rights Reserved.
•  Neighboring
routers, within or
between ASes,
establish a TCP
connection on
port 179.
•  BGP messages
include:
–  Open
–  Update
–  Notification
–  Keep Alive
BGP the Protocol
AS 100
1.1.1.0/24
AS 300
3.3.3.4/22
AS 400
4.4.0.0/16
AS 200
2.2.2.0/24
Border Router
Origin
Autonomous
System
Internal
Router
BGP peers exchange
routes, within and
among ASes
7© 2017 ThousandEyes Inc. All Rights Reserved.
•  An update message may advertise
routes, withdraw routes, or both
•  Any number of routes may be
withdrawn
•  Any number of routes may be
advertised
–  They must all share the same attributes
–  These attributes include AS Path and
Origin
•  Therefore, you’ll expect at least one
Update message for each Origin AS
BGP Update Message
BGP Header
Withdrawn Routes
(n Prefix/Length tuples)
Path Attributes
7 well-known attributes:
Origin, AS Path, Next Hop, MED,
Local Pref, Atomic Aggregate, Aggregate
Optional attributes:
Community, Originator
Network Layer Reachability Info
(n Prefix/Length tuples)
8© 2017 ThousandEyes Inc. All Rights Reserved.
AS 300
3.3.3.4/22
•  Describes available
routes using a path
vector
•  Each AS will
prepend itself onto
the AS Path
•  Associated with an
origin AS and prefix
•  Avoids routing loops
by rejecting any AS
Path containing the
local AS
AS Path
AS 100
1.1.1.0/24
AS 400
4.4.0.0/16
AS 200
2.2.2.0/24
Origin
Autonomous
System
300 100
100100
200 100
9© 2017 ThousandEyes Inc. All Rights Reserved.
The Update Process
Loc-RIB
Routes with policies
applied
Adj-RIB-In
Unprocessed routes
Adj-RIB-Out
Routes to advertiseNewly
learned
routes
Newly
advertised
routes
FIB
Routes with next-hop
and interfaces
IP Routing Table
Routes aggregated
across protocols
Next-hops resolved
Interfaces calculated
Locally learned
routes added
1.  Preference calculated (PIB)
2.  Route selection
•  Ensure resolvability
•  Break ties
3.  Route
dissemination
•  Aggregation
Incorporated with IS-IS, OSPF,
etc. by Administrative Distance
10© 2017 ThousandEyes Inc. All Rights Reserved.
The routing application builds a Routing Information Base (RIB) to map
learned prefixes and routes
Example of the routing table for AS100 (show ip bgp)
* = valid; > = best
Routing Tables (RIBs)
Network
 Next Hop
 Metric (MED)
 Local Pref
 Weight
 Path
*> 1.1.1.0/24 10.1.12.2
 0
 0
 i
*>
 2.2.2.0/24
 10.1.14.4
 0
 0
 200 i
*>
 2.2.3.0/24
 10.1.14.4
 0
 0
 200 i
*>
 3.3.3.4/22 10.1.16.6
 0
 0
 300 i
*>
 4.4.0.0/16
 10.1.16.6
 0
 32768
 300 400 i
*
 4.4.0.0/16
 10.1.14.4
 0
 0
 200 400 i
11© 2017 ThousandEyes Inc. All Rights Reserved.
•  Highest weight (de facto standard)
–  Set by the local router
•  Highest local preference
–  Set by the local AS, typically based on commercial relationships
•  Shortest AS Path
–  The route that traverses the fewest ASes
•  Origin type
–  Internal-learned (IGP) routes preferred
•  Multi-Exit Discriminator (MED)
–  A preference set by the origin AS
•  Additional tiebreaking and multipath criteria…
Route Selection
12© 2017 ThousandEyes Inc. All Rights Reserved.
•  Match the most specific prefix
–  If none available, then the prefix is not reachable
•  Forward traffic to the correct interface
–  Based on information placed in the FIB, learned from BGP (and
other protocols)
•  Thus, a forwarding decision is influenced by:
–  Specificity of IP prefix
–  Internal routes
–  BGP routes, their attributes and the local routing policy
Making Forwarding Decisions
13© 2017 ThousandEyes Inc. All Rights Reserved.
•  Generally, BGP speakers within an AS must communicate with one
another in a full mesh, each updating one another
•  But this can be hard to scale in large ASes
•  Alternatives to full meshes exist, including:
Coordinating Within an AS
Route reflection (hub-spoke) Confederations (AS subdomains)
14© 2017 ThousandEyes Inc. All Rights Reserved.
•  Communities
–  Communicate to neighbors how to
advertise routes they learn from you,
and vice versa
–  ISPs publish community definitions on how advertisements will be handled
–  Often used for local preference, no-export, prepending, geographic or peering
limitations
•  MED (Multi-Exit Discriminator)
–  Communicate preferred inbound paths to a neighbor
•  Prepending
–  Inserting the local AS to the AS Path multiple times to lengthen the path and
reduce its preference by others
Coordinating Between ASes
15© 2017 ThousandEyes Inc. All Rights Reserved.© 2017 ThousandEyes Inc. All Rights Reserved.
Demo
16© 2017 ThousandEyes Inc. All Rights Reserved.
BGP Route Visualization Shows Preferred Routes
WV Fiber
Switch
Level 3
17© 2017 ThousandEyes Inc. All Rights Reserved.
Routes Are Reflected in Traffic Paths
WV Fiber
Switch
Level 3
18© 2017 ThousandEyes Inc. All Rights Reserved.© 2017 ThousandEyes Inc. All Rights Reserved.
Watch the webinar:


www.thousandeyes.com/webinars/how-bgp-works

More Related Content

PDF
Bgp tutorial for ISP
Wahyu Nasution
 
PPT
Bgp
Febrian ‎
 
PPTX
Bgp protocol
Smriti Tikoo
 
PPTX
Border Gateway Protocol (BGP)
Nutan Singh
 
PPT
Multiple access techniques for wireless communications
METHODIST COLLEGE OF ENGG & TECH
 
PPTX
Linux Kernel Booting Process (2) - For NLKB
shimosawa
 
PDF
Sample lld document v1.0
Tom Mark Giembicki
 
PDF
IOS Cisco - Cheat sheets
Alejandro Marin
 
Bgp tutorial for ISP
Wahyu Nasution
 
Bgp protocol
Smriti Tikoo
 
Border Gateway Protocol (BGP)
Nutan Singh
 
Multiple access techniques for wireless communications
METHODIST COLLEGE OF ENGG & TECH
 
Linux Kernel Booting Process (2) - For NLKB
shimosawa
 
Sample lld document v1.0
Tom Mark Giembicki
 
IOS Cisco - Cheat sheets
Alejandro Marin
 

What's hot (20)

PDF
Segment Routing Lab
Cisco Canada
 
PPTX
Border Gateway Protocol
Kashif Latif
 
PDF
Cisco ospf
sarasanandam
 
PPT
Bgp (1)
Vamsidhar Naidu
 
PPTX
Border Gatway Protocol
Shashank Asthana
 
PPTX
ccna networking ppt
Er. Anmol Bhagat
 
PPTX
HSRP ccna
MohamedJafar5
 
PDF
Traffic Engineering Using Segment Routing
Cisco Canada
 
PDF
Ccnp presentation [Day 1-3] Class
SagarR24
 
PPT
BGP protocol presentation
Gorantla Mohanavamsi
 
PPT
OSPF Configuration
NetProtocol Xpert
 
PDF
MPLS L3 VPN Deployment
APNIC
 
PDF
BGP (border gateway routing protocol)
Netwax Lab
 
PDF
Segment Routing
APNIC
 
PPTX
Vxlan deep dive session rev0.5 final
KwonSun Bae
 
PPTX
Ccna ppt1
AIRTEL
 
PDF
Ospf.ppt
Edgardo Scrimaglia
 
PPTX
An Overview of Border Gateway Protocol (BGP)
Jasim Alam
 
PPTX
Hot standby router protocol (hsrp) using
ShubhiGupta94
 
PDF
VXLAN BGP EVPN: Technology Building Blocks
APNIC
 
Segment Routing Lab
Cisco Canada
 
Border Gateway Protocol
Kashif Latif
 
Cisco ospf
sarasanandam
 
Border Gatway Protocol
Shashank Asthana
 
ccna networking ppt
Er. Anmol Bhagat
 
HSRP ccna
MohamedJafar5
 
Traffic Engineering Using Segment Routing
Cisco Canada
 
Ccnp presentation [Day 1-3] Class
SagarR24
 
BGP protocol presentation
Gorantla Mohanavamsi
 
OSPF Configuration
NetProtocol Xpert
 
MPLS L3 VPN Deployment
APNIC
 
BGP (border gateway routing protocol)
Netwax Lab
 
Segment Routing
APNIC
 
Vxlan deep dive session rev0.5 final
KwonSun Bae
 
Ccna ppt1
AIRTEL
 
An Overview of Border Gateway Protocol (BGP)
Jasim Alam
 
Hot standby router protocol (hsrp) using
ShubhiGupta94
 
VXLAN BGP EVPN: Technology Building Blocks
APNIC
 
Ad

Viewers also liked (19)

PPTX
bgp protocol
Sukanya Sanyal
 
PPT
BGP Overview
Matt Bynum
 
PDF
BGP Advance Technique by Steven & James
Febrian ‎
 
PPTX
Ppt of routing protocols
Bhagyashri Dhoke
 
PPTX
Cisco Live Milan 2015 - BGP advance
Bertrand Duvivier
 
PPT
Bgp
Raghu Kiran
 
DOC
Study Notes BGP Exam
Duane Bodle
 
PPTX
Open Shortest Path First
Kashif Latif
 
PPTX
BGP Traffic Engineering / Routing Optimisation
Andy Davidson
 
PPTX
OSPF Basics
Martin Bratina
 
PPT
Part1
cisconetworker
 
PPTX
BGP
Totan Banik
 
DOCX
CCNP Route 642 902 BGP
IT Tech
 
PDF
Ios interior routing_protocols
Mohamed Gamel
 
PPT
Bgp For Presentation
Alp isik
 
PPT
Bgp training
Aun Haider
 
PDF
Aag c45 697761
HP IN Rajesh Goel
 
PDF
Reverse, Multi-Process and Non-Stop Debugging come to the CDT
marckhouzam
 
bgp protocol
Sukanya Sanyal
 
BGP Overview
Matt Bynum
 
BGP Advance Technique by Steven & James
Febrian ‎
 
Ppt of routing protocols
Bhagyashri Dhoke
 
Cisco Live Milan 2015 - BGP advance
Bertrand Duvivier
 
Study Notes BGP Exam
Duane Bodle
 
Open Shortest Path First
Kashif Latif
 
BGP Traffic Engineering / Routing Optimisation
Andy Davidson
 
OSPF Basics
Martin Bratina
 
CCNP Route 642 902 BGP
IT Tech
 
Ios interior routing_protocols
Mohamed Gamel
 
Bgp For Presentation
Alp isik
 
Bgp training
Aun Haider
 
Aag c45 697761
HP IN Rajesh Goel
 
Reverse, Multi-Process and Non-Stop Debugging come to the CDT
marckhouzam
 
Ad

Similar to How BGP Works (20)

PDF
Monitoring Route Changes
ThousandEyes
 
PPTX
CCNP ROUTE V7 CH1
Chaing Ravuth
 
PPTX
en_ROUTE_v7_Ch01 (3)_Cisco ccna v7..pptx
LucioCondoriMamani
 
PPT
Bigbgp
tushar sharda
 
PDF
Computer network (14)
NYversity
 
PPTX
ENCOR_Chapter_6.pptx
ManuelRojas960410
 
PPTX
CCNA3 Verson6 Chapter5
Chaing Ravuth
 
PDF
Detecting Hijacks and Leaks
ThousandEyes
 
PDF
Routing Protocols
elgraini
 
PPT
Routing Protocols and Concepts – Chapter 3
arcijaz
 
PPTX
BGP Ebook: Everything you need to know about Border Gateway Protocol
noBGP
 
PPT
CCNA Discovery 2 - Chapter 6
Irsandi Hasan
 
PPT
InternetMappingAndVisualizationGroup5JinfuZhengAndLingLiu
?? ?
 
PPTX
Using BGP To Manage Dual Internet Connections
Rowell Dionicio
 
PPT
Who are the INTERNET SERVICE PROVIDERS?
Likan Patra
 
PDF
E rou01 routing_basics
tanawan44
 
PPTX
15 coms 525 tcpip - border gateway protocols
Palanivel Kuppusamy
 
PPTX
IDNOG 2: AS interconnection in indonesia
APNIC
 
Monitoring Route Changes
ThousandEyes
 
CCNP ROUTE V7 CH1
Chaing Ravuth
 
en_ROUTE_v7_Ch01 (3)_Cisco ccna v7..pptx
LucioCondoriMamani
 
Computer network (14)
NYversity
 
ENCOR_Chapter_6.pptx
ManuelRojas960410
 
CCNA3 Verson6 Chapter5
Chaing Ravuth
 
Detecting Hijacks and Leaks
ThousandEyes
 
Routing Protocols
elgraini
 
Routing Protocols and Concepts – Chapter 3
arcijaz
 
BGP Ebook: Everything you need to know about Border Gateway Protocol
noBGP
 
CCNA Discovery 2 - Chapter 6
Irsandi Hasan
 
InternetMappingAndVisualizationGroup5JinfuZhengAndLingLiu
?? ?
 
Using BGP To Manage Dual Internet Connections
Rowell Dionicio
 
Who are the INTERNET SERVICE PROVIDERS?
Likan Patra
 
E rou01 routing_basics
tanawan44
 
15 coms 525 tcpip - border gateway protocols
Palanivel Kuppusamy
 
IDNOG 2: AS interconnection in indonesia
APNIC
 

More from ThousandEyes (20)

PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
PPTX
IT Runs Better with ThousandEyes AI-driven Assurance
ThousandEyes
 
PDF
2025-07-15 EMEA Volledig Inzicht Dutch Webinar
ThousandEyes
 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
PPTX
End-to-end Assurance for SD-WAN & SASE with ThousandEyes
ThousandEyes
 
PPTX
Assurance Best Practices: Unlocking Proactive Network Operations
ThousandEyes
 
PPTX
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes
 
PPTX
How to Optimize Your AWS Environment for Improved Cloud Performance
ThousandEyes
 
PPTX
Assuring Your SD-WAN to Deliver Unparalleled Digital Experiences
ThousandEyes
 
PPTX
Assuring Your SD-WAN to Deliver Unparalleled Digital Experiences
ThousandEyes
 
PPTX
How to Optimize Your AWS Environment for Improved Cloud Performance
ThousandEyes
 
PPTX
How to Optimize Your AWS Environment for Improved Cloud Performance
ThousandEyes
 
PPTX
Introduction to ThousandEyes platform March 2025
ThousandEyes
 
PPTX
What's New? ThousandEyes Product Features and Highlights for February 2025
ThousandEyes
 
PPTX
AMER Introduction to ThousandEyes Webinar
ThousandEyes
 
PPTX
What's New? ThousandEyes Product Features and Highlights
ThousandEyes
 
PPTX
Top Outages of 2024, Explained: Lessons in Digital Resilience
ThousandEyes
 
PPTX
Top Outages of 2024, Explained: Lessons in Digital Resilience
ThousandEyes
 
PPTX
Top Outages of 2024, Explained: Lessons in Digital Resilience
ThousandEyes
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
IT Runs Better with ThousandEyes AI-driven Assurance
ThousandEyes
 
2025-07-15 EMEA Volledig Inzicht Dutch Webinar
ThousandEyes
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
End-to-end Assurance for SD-WAN & SASE with ThousandEyes
ThousandEyes
 
Assurance Best Practices: Unlocking Proactive Network Operations
ThousandEyes
 
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes
 
How to Optimize Your AWS Environment for Improved Cloud Performance
ThousandEyes
 
Assuring Your SD-WAN to Deliver Unparalleled Digital Experiences
ThousandEyes
 
Assuring Your SD-WAN to Deliver Unparalleled Digital Experiences
ThousandEyes
 
How to Optimize Your AWS Environment for Improved Cloud Performance
ThousandEyes
 
How to Optimize Your AWS Environment for Improved Cloud Performance
ThousandEyes
 
Introduction to ThousandEyes platform March 2025
ThousandEyes
 
What's New? ThousandEyes Product Features and Highlights for February 2025
ThousandEyes
 
AMER Introduction to ThousandEyes Webinar
ThousandEyes
 
What's New? ThousandEyes Product Features and Highlights
ThousandEyes
 
Top Outages of 2024, Explained: Lessons in Digital Resilience
ThousandEyes
 
Top Outages of 2024, Explained: Lessons in Digital Resilience
ThousandEyes
 
Top Outages of 2024, Explained: Lessons in Digital Resilience
ThousandEyes
 

Recently uploaded (20)

PPTX
Introduction to Flutter by Ayush Desai.pptx
ayushdesai204
 
PDF
AI-Cloud-Business-Management-Platforms-The-Key-to-Efficiency-Growth.pdf
Artjoker Software Development Company
 
PPTX
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
PDF
NewMind AI Weekly Chronicles - July'25 - Week IV
NewMind AI
 
PDF
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
PDF
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
PDF
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
PDF
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
PDF
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
PPTX
Agile Chennai 18-19 July 2025 Ideathon | AI Powered Microfinance Literacy Gui...
AgileNetwork
 
PPTX
Agile Chennai 18-19 July 2025 | Emerging patterns in Agentic AI by Bharani Su...
AgileNetwork
 
PPTX
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
PDF
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
PDF
Peak of Data & AI Encore - Real-Time Insights & Scalable Editing with ArcGIS
Safe Software
 
PDF
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
PDF
Research-Fundamentals-and-Topic-Development.pdf
ayesha butalia
 
PPTX
Simple and concise overview about Quantum computing..pptx
mughal641
 
PDF
Software Development Methodologies in 2025
KodekX
 
PDF
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
PPTX
The Future of AI & Machine Learning.pptx
pritsen4700
 
Introduction to Flutter by Ayush Desai.pptx
ayushdesai204
 
AI-Cloud-Business-Management-Platforms-The-Key-to-Efficiency-Growth.pdf
Artjoker Software Development Company
 
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
NewMind AI Weekly Chronicles - July'25 - Week IV
NewMind AI
 
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
Agile Chennai 18-19 July 2025 Ideathon | AI Powered Microfinance Literacy Gui...
AgileNetwork
 
Agile Chennai 18-19 July 2025 | Emerging patterns in Agentic AI by Bharani Su...
AgileNetwork
 
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
Peak of Data & AI Encore - Real-Time Insights & Scalable Editing with ArcGIS
Safe Software
 
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
Research-Fundamentals-and-Topic-Development.pdf
ayesha butalia
 
Simple and concise overview about Quantum computing..pptx
mughal641
 
Software Development Methodologies in 2025
KodekX
 
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
The Future of AI & Machine Learning.pptx
pritsen4700
 

How BGP Works

  • 1. 1© 2017 ThousandEyes Inc. All Rights Reserved. How BGP Works Young Xu, Product Marketing Manager
  • 2. 2© 2017 ThousandEyes Inc. All Rights Reserved. About ThousandEyes Network Intelligence platform that gives you a complete picture from users to internal and cloud-based applications Routing! User App End-to-End Performance Data App Performance! User Experience! Network Topology! Routing Topology! Enterprise, Endpoint and Cloud Agents Network Connectivity! And Route Monitors! Surface insights from a global data set Lightweight, flexible data collection Unified view of diverse performance data Solve issues across shared infrastructure See any network like it’s your own
  • 3. 3© 2017 ThousandEyes Inc. All Rights Reserved. Border Gateway Protocol BGP-4 RFC4271 Where do I forward traffic to reach an IP address in an external network? How can I control the route and composition of inbound traffic to my network?
  • 4. 4© 2017 ThousandEyes Inc. All Rights Reserved. •  Autonomous System –  Collection of IP prefixes –  Common routing policy to other ASes –  Registered by an RIR (regional Internet registry) –  Denoted by a name and number •  A Private AS can be used when a single upstream exists –  External routing policy is identical IP Blocks and Autonomous Systems AS 200 2.2.2.0/24 2.2.3.0/24 Autonomous System
  • 5. 5© 2017 ThousandEyes Inc. All Rights Reserved. •  Inter-Network – Used for routing between networks (Autonomous Systems), or within large networks •  Reachability – BGP defines how one AS can reach another, described as a path vector (AS Path) •  Policy-Based – BGP makes it possible for an AS to apply policies (e.g. multi- homing, failover, commercial terms) •  Decentralized – Each AS makes policy decisions autonomously, using BGP to coordinate and share routes Key BGP Concepts
  • 6. 6© 2017 ThousandEyes Inc. All Rights Reserved. •  Neighboring routers, within or between ASes, establish a TCP connection on port 179. •  BGP messages include: –  Open –  Update –  Notification –  Keep Alive BGP the Protocol AS 100 1.1.1.0/24 AS 300 3.3.3.4/22 AS 400 4.4.0.0/16 AS 200 2.2.2.0/24 Border Router Origin Autonomous System Internal Router BGP peers exchange routes, within and among ASes
  • 7. 7© 2017 ThousandEyes Inc. All Rights Reserved. •  An update message may advertise routes, withdraw routes, or both •  Any number of routes may be withdrawn •  Any number of routes may be advertised –  They must all share the same attributes –  These attributes include AS Path and Origin •  Therefore, you’ll expect at least one Update message for each Origin AS BGP Update Message BGP Header Withdrawn Routes (n Prefix/Length tuples) Path Attributes 7 well-known attributes: Origin, AS Path, Next Hop, MED, Local Pref, Atomic Aggregate, Aggregate Optional attributes: Community, Originator Network Layer Reachability Info (n Prefix/Length tuples)
  • 8. 8© 2017 ThousandEyes Inc. All Rights Reserved. AS 300 3.3.3.4/22 •  Describes available routes using a path vector •  Each AS will prepend itself onto the AS Path •  Associated with an origin AS and prefix •  Avoids routing loops by rejecting any AS Path containing the local AS AS Path AS 100 1.1.1.0/24 AS 400 4.4.0.0/16 AS 200 2.2.2.0/24 Origin Autonomous System 300 100 100100 200 100
  • 9. 9© 2017 ThousandEyes Inc. All Rights Reserved. The Update Process Loc-RIB Routes with policies applied Adj-RIB-In Unprocessed routes Adj-RIB-Out Routes to advertiseNewly learned routes Newly advertised routes FIB Routes with next-hop and interfaces IP Routing Table Routes aggregated across protocols Next-hops resolved Interfaces calculated Locally learned routes added 1.  Preference calculated (PIB) 2.  Route selection •  Ensure resolvability •  Break ties 3.  Route dissemination •  Aggregation Incorporated with IS-IS, OSPF, etc. by Administrative Distance
  • 10. 10© 2017 ThousandEyes Inc. All Rights Reserved. The routing application builds a Routing Information Base (RIB) to map learned prefixes and routes Example of the routing table for AS100 (show ip bgp) * = valid; > = best Routing Tables (RIBs) Network Next Hop Metric (MED) Local Pref Weight Path *> 1.1.1.0/24 10.1.12.2 0 0 i *> 2.2.2.0/24 10.1.14.4 0 0 200 i *> 2.2.3.0/24 10.1.14.4 0 0 200 i *> 3.3.3.4/22 10.1.16.6 0 0 300 i *> 4.4.0.0/16 10.1.16.6 0 32768 300 400 i * 4.4.0.0/16 10.1.14.4 0 0 200 400 i
  • 11. 11© 2017 ThousandEyes Inc. All Rights Reserved. •  Highest weight (de facto standard) –  Set by the local router •  Highest local preference –  Set by the local AS, typically based on commercial relationships •  Shortest AS Path –  The route that traverses the fewest ASes •  Origin type –  Internal-learned (IGP) routes preferred •  Multi-Exit Discriminator (MED) –  A preference set by the origin AS •  Additional tiebreaking and multipath criteria… Route Selection
  • 12. 12© 2017 ThousandEyes Inc. All Rights Reserved. •  Match the most specific prefix –  If none available, then the prefix is not reachable •  Forward traffic to the correct interface –  Based on information placed in the FIB, learned from BGP (and other protocols) •  Thus, a forwarding decision is influenced by: –  Specificity of IP prefix –  Internal routes –  BGP routes, their attributes and the local routing policy Making Forwarding Decisions
  • 13. 13© 2017 ThousandEyes Inc. All Rights Reserved. •  Generally, BGP speakers within an AS must communicate with one another in a full mesh, each updating one another •  But this can be hard to scale in large ASes •  Alternatives to full meshes exist, including: Coordinating Within an AS Route reflection (hub-spoke) Confederations (AS subdomains)
  • 14. 14© 2017 ThousandEyes Inc. All Rights Reserved. •  Communities –  Communicate to neighbors how to advertise routes they learn from you, and vice versa –  ISPs publish community definitions on how advertisements will be handled –  Often used for local preference, no-export, prepending, geographic or peering limitations •  MED (Multi-Exit Discriminator) –  Communicate preferred inbound paths to a neighbor •  Prepending –  Inserting the local AS to the AS Path multiple times to lengthen the path and reduce its preference by others Coordinating Between ASes
  • 15. 15© 2017 ThousandEyes Inc. All Rights Reserved.© 2017 ThousandEyes Inc. All Rights Reserved. Demo
  • 16. 16© 2017 ThousandEyes Inc. All Rights Reserved. BGP Route Visualization Shows Preferred Routes WV Fiber Switch Level 3
  • 17. 17© 2017 ThousandEyes Inc. All Rights Reserved. Routes Are Reflected in Traffic Paths WV Fiber Switch Level 3
  • 18. 18© 2017 ThousandEyes Inc. All Rights Reserved.© 2017 ThousandEyes Inc. All Rights Reserved. Watch the webinar:
 www.thousandeyes.com/webinars/how-bgp-works