SlideShare une entreprise Scribd logo
1  sur  18
Télécharger pour lire hors ligne
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

Contenu connexe

Tendances

CCNA Advanced Routing Protocols
CCNA Advanced Routing ProtocolsCCNA Advanced Routing Protocols
CCNA Advanced Routing Protocols
Dsunte Wilson
 

Tendances (20)

MPLS Layer 3 VPN
MPLS Layer 3 VPN MPLS Layer 3 VPN
MPLS Layer 3 VPN
 
BGP (Border Gateway Protocol)
BGP (Border Gateway Protocol)BGP (Border Gateway Protocol)
BGP (Border Gateway Protocol)
 
Bgp
BgpBgp
Bgp
 
Routing protocols
Routing protocolsRouting protocols
Routing protocols
 
bgp protocol
 bgp protocol bgp protocol
bgp protocol
 
Border Gateway Protocol (BGP)
Border Gateway Protocol (BGP)Border Gateway Protocol (BGP)
Border Gateway Protocol (BGP)
 
OPEN SHORTEST PATH FIRST (OSPF)
OPEN SHORTEST PATH FIRST (OSPF)OPEN SHORTEST PATH FIRST (OSPF)
OPEN SHORTEST PATH FIRST (OSPF)
 
BGP
BGPBGP
BGP
 
Enhanced Interior Gateway Routing Protocol (EIGRP) || NETWORK PROTOCOL
Enhanced Interior Gateway Routing Protocol (EIGRP) || NETWORK PROTOCOLEnhanced Interior Gateway Routing Protocol (EIGRP) || NETWORK PROTOCOL
Enhanced Interior Gateway Routing Protocol (EIGRP) || NETWORK PROTOCOL
 
MPLS (Multi-Protocol Label Switching)
MPLS (Multi-Protocol Label Switching)MPLS (Multi-Protocol Label Switching)
MPLS (Multi-Protocol Label Switching)
 
Open shortest path first (ospf)
Open shortest path first (ospf)Open shortest path first (ospf)
Open shortest path first (ospf)
 
BGP (border gateway routing protocol)
BGP (border gateway routing protocol)BGP (border gateway routing protocol)
BGP (border gateway routing protocol)
 
Routing information protocol
Routing information protocolRouting information protocol
Routing information protocol
 
Dynamic routing
Dynamic routingDynamic routing
Dynamic routing
 
CCNA Advanced Routing Protocols
CCNA Advanced Routing ProtocolsCCNA Advanced Routing Protocols
CCNA Advanced Routing Protocols
 
Dynamic routing protocols (CCNA)
Dynamic routing protocols (CCNA)Dynamic routing protocols (CCNA)
Dynamic routing protocols (CCNA)
 
Routing protocols
Routing protocolsRouting protocols
Routing protocols
 
MPLS Presentation
MPLS PresentationMPLS Presentation
MPLS Presentation
 
BGP Path Selection & Attributes BGP Weight & BGP AS-Path Prepending
BGP Path Selection & Attributes BGP Weight & BGP AS-Path PrependingBGP Path Selection & Attributes BGP Weight & BGP AS-Path Prepending
BGP Path Selection & Attributes BGP Weight & BGP AS-Path Prepending
 
Multiprotocol label switching (mpls) - Networkshop44
Multiprotocol label switching (mpls)  - Networkshop44Multiprotocol label switching (mpls)  - Networkshop44
Multiprotocol label switching (mpls) - Networkshop44
 

En vedette

BGP Advance Technique by Steven & James
BGP Advance Technique by Steven & JamesBGP Advance Technique by Steven & James
BGP Advance Technique by Steven & James
Febrian ‎
 
Open Shortest Path First
Open Shortest Path FirstOpen Shortest Path First
Open Shortest Path First
Kashif Latif
 
BGP
BGPBGP
Ios interior routing_protocols
Ios interior routing_protocolsIos interior routing_protocols
Ios interior routing_protocols
Mohamed Gamel
 
Bgp For Presentation
Bgp For PresentationBgp For Presentation
Bgp For Presentation
Alp isik
 

En vedette (18)

BGP protocol presentation
BGP protocol  presentationBGP protocol  presentation
BGP protocol presentation
 
BGP Overview
BGP OverviewBGP Overview
BGP Overview
 
Bgp tutorial for ISP
Bgp tutorial for ISPBgp tutorial for ISP
Bgp tutorial for ISP
 
BGP Advance Technique by Steven & James
BGP Advance Technique by Steven & JamesBGP Advance Technique by Steven & James
BGP Advance Technique by Steven & James
 
Ppt of routing protocols
Ppt of routing protocolsPpt of routing protocols
Ppt of routing protocols
 
Cisco Live Milan 2015 - BGP advance
Cisco Live Milan 2015 - BGP advanceCisco Live Milan 2015 - BGP advance
Cisco Live Milan 2015 - BGP advance
 
Study Notes BGP Exam
Study Notes BGP ExamStudy Notes BGP Exam
Study Notes BGP Exam
 
Open Shortest Path First
Open Shortest Path FirstOpen Shortest Path First
Open Shortest Path First
 
BGP Traffic Engineering / Routing Optimisation
BGP Traffic Engineering / Routing OptimisationBGP Traffic Engineering / Routing Optimisation
BGP Traffic Engineering / Routing Optimisation
 
OSPF Basics
OSPF BasicsOSPF Basics
OSPF Basics
 
Part1
Part1Part1
Part1
 
BGP
BGPBGP
BGP
 
CCNP Route 642 902 BGP
CCNP Route 642 902 BGPCCNP Route 642 902 BGP
CCNP Route 642 902 BGP
 
Ios interior routing_protocols
Ios interior routing_protocolsIos interior routing_protocols
Ios interior routing_protocols
 
Bgp For Presentation
Bgp For PresentationBgp For Presentation
Bgp For Presentation
 
Bgp training
Bgp trainingBgp training
Bgp training
 
Aag c45 697761
Aag c45 697761Aag c45 697761
Aag c45 697761
 
Reverse, Multi-Process and Non-Stop Debugging come to the CDT
Reverse, Multi-Process and Non-Stop Debugging come to the CDTReverse, Multi-Process and Non-Stop Debugging come to the CDT
Reverse, Multi-Process and Non-Stop Debugging come to the CDT
 

Similaire à How BGP Works

Computer network (14)
Computer network (14)Computer network (14)
Computer network (14)
NYversity
 
CCNA Discovery 2 - Chapter 6
CCNA Discovery 2 - Chapter 6CCNA Discovery 2 - Chapter 6
CCNA Discovery 2 - Chapter 6
Irsandi Hasan
 
InternetMappingAndVisualizationGroup5JinfuZhengAndLingLiu
InternetMappingAndVisualizationGroup5JinfuZhengAndLingLiuInternetMappingAndVisualizationGroup5JinfuZhengAndLingLiu
InternetMappingAndVisualizationGroup5JinfuZhengAndLingLiu
?? ?
 
E rou01 routing_basics
E rou01 routing_basicsE rou01 routing_basics
E rou01 routing_basics
tanawan44
 

Similaire à How BGP Works (20)

Monitoring Route Changes
Monitoring Route ChangesMonitoring Route Changes
Monitoring Route Changes
 
CCCNP ROUTE v6_ch06
CCCNP ROUTE v6_ch06CCCNP ROUTE v6_ch06
CCCNP ROUTE v6_ch06
 
CCNP ROUTE V7 CH1
CCNP ROUTE V7 CH1CCNP ROUTE V7 CH1
CCNP ROUTE V7 CH1
 
CCCNP ROUTE v6_ch05
CCCNP ROUTE  v6_ch05CCCNP ROUTE  v6_ch05
CCCNP ROUTE v6_ch05
 
Bigbgp
BigbgpBigbgp
Bigbgp
 
Computer network (14)
Computer network (14)Computer network (14)
Computer network (14)
 
ENCOR_Chapter_6.pptx
ENCOR_Chapter_6.pptxENCOR_Chapter_6.pptx
ENCOR_Chapter_6.pptx
 
CCNA3 Verson6 Chapter5
CCNA3 Verson6 Chapter5CCNA3 Verson6 Chapter5
CCNA3 Verson6 Chapter5
 
Detecting Hijacks and Leaks
Detecting Hijacks and LeaksDetecting Hijacks and Leaks
Detecting Hijacks and Leaks
 
Routing Protocols
Routing ProtocolsRouting Protocols
Routing Protocols
 
CCNA Discovery 2 - Chapter 6
CCNA Discovery 2 - Chapter 6CCNA Discovery 2 - Chapter 6
CCNA Discovery 2 - Chapter 6
 
InternetMappingAndVisualizationGroup5JinfuZhengAndLingLiu
InternetMappingAndVisualizationGroup5JinfuZhengAndLingLiuInternetMappingAndVisualizationGroup5JinfuZhengAndLingLiu
InternetMappingAndVisualizationGroup5JinfuZhengAndLingLiu
 
Using BGP To Manage Dual Internet Connections
Using BGP To Manage Dual Internet ConnectionsUsing BGP To Manage Dual Internet Connections
Using BGP To Manage Dual Internet Connections
 
Who are the INTERNET SERVICE PROVIDERS?
Who are the INTERNET SERVICE PROVIDERS?Who are the INTERNET SERVICE PROVIDERS?
Who are the INTERNET SERVICE PROVIDERS?
 
E rou01 routing_basics
E rou01 routing_basicsE rou01 routing_basics
E rou01 routing_basics
 
15 coms 525 tcpip - border gateway protocols
15    coms 525 tcpip - border gateway protocols15    coms 525 tcpip - border gateway protocols
15 coms 525 tcpip - border gateway protocols
 
IDNOG 2: AS interconnection in indonesia
IDNOG 2: AS interconnection in indonesiaIDNOG 2: AS interconnection in indonesia
IDNOG 2: AS interconnection in indonesia
 
CCNA (R & S) Module 04 - Scaling Networks - Chapter 5
CCNA (R & S) Module 04 - Scaling Networks - Chapter 5CCNA (R & S) Module 04 - Scaling Networks - Chapter 5
CCNA (R & S) Module 04 - Scaling Networks - Chapter 5
 
Bigbgp (1)
Bigbgp (1)Bigbgp (1)
Bigbgp (1)
 
01 (IDNOG02) ASN distribution and interconnection in Indonesia by Sanjaya
01 (IDNOG02) ASN distribution and interconnection in Indonesia by Sanjaya 01 (IDNOG02) ASN distribution and interconnection in Indonesia by Sanjaya
01 (IDNOG02) ASN distribution and interconnection in Indonesia by Sanjaya
 

Plus de ThousandEyes

Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
ThousandEyes
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
ThousandEyes
 

Plus de ThousandEyes (20)

How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
 
New ThousandEyes Product Features and Release Highlights: March 2024
New ThousandEyes Product Features and Release Highlights: March 2024New ThousandEyes Product Features and Release Highlights: March 2024
New ThousandEyes Product Features and Release Highlights: March 2024
 
EMEA What is ThousandEyes? Webinar
EMEA What is ThousandEyes? WebinarEMEA What is ThousandEyes? Webinar
EMEA What is ThousandEyes? Webinar
 
Outage Analysis: March 5th/6th 2024 Meta, Comcast, and LinkedIn
Outage Analysis: March 5th/6th 2024 Meta, Comcast, and LinkedInOutage Analysis: March 5th/6th 2024 Meta, Comcast, and LinkedIn
Outage Analysis: March 5th/6th 2024 Meta, Comcast, and LinkedIn
 
Assure Patient and Clinician Digital Experiences with ThousandEyes for Health...
Assure Patient and Clinician Digital Experiences with ThousandEyes for Health...Assure Patient and Clinician Digital Experiences with ThousandEyes for Health...
Assure Patient and Clinician Digital Experiences with ThousandEyes for Health...
 
AMER Introduction to ThousandEyes Webinar
AMER Introduction to ThousandEyes WebinarAMER Introduction to ThousandEyes Webinar
AMER Introduction to ThousandEyes Webinar
 
New ThousandEyes Product Features and Release Highlights: February 2024
New ThousandEyes Product Features and Release Highlights: February 2024New ThousandEyes Product Features and Release Highlights: February 2024
New ThousandEyes Product Features and Release Highlights: February 2024
 
The Top Outages of 2023: Analyses and Takeaways
The Top Outages of 2023: Analyses and TakeawaysThe Top Outages of 2023: Analyses and Takeaways
The Top Outages of 2023: Analyses and Takeaways
 
Enhancing SaaS Performance: A Hands-on Workshop for Partners
Enhancing SaaS Performance: A Hands-on Workshop for PartnersEnhancing SaaS Performance: A Hands-on Workshop for Partners
Enhancing SaaS Performance: A Hands-on Workshop for Partners
 
The Top Outages of 2023: Analysis and Takeaways
The Top Outages of 2023: Analysis and TakeawaysThe Top Outages of 2023: Analysis and Takeaways
The Top Outages of 2023: Analysis and Takeaways
 
The Top Outages of 2023: Analysis and Takeaways
The Top Outages of 2023: Analysis and TakeawaysThe Top Outages of 2023: Analysis and Takeaways
The Top Outages of 2023: Analysis and Takeaways
 
ThousandEyes Enterprise Digital Workshop - Spanish
ThousandEyes Enterprise Digital Workshop - SpanishThousandEyes Enterprise Digital Workshop - Spanish
ThousandEyes Enterprise Digital Workshop - Spanish
 
ThousandEyes Enterprise Digital Workshop - German
ThousandEyes Enterprise Digital Workshop - GermanThousandEyes Enterprise Digital Workshop - German
ThousandEyes Enterprise Digital Workshop - German
 
ThousandEyes Enterprise Digital Workshop
ThousandEyes Enterprise Digital WorkshopThousandEyes Enterprise Digital Workshop
ThousandEyes Enterprise Digital Workshop
 

Dernier

Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Dernier (20)

Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 

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