SlideShare a Scribd company logo
Introduction to the
Border Gateway Protocol (BGP)
Paul Ferguson
pferguson@cisco.com
Consulting Engineer
Internet Service Providers
cisco Systems, Inc.
BGP
 What
 Why
 Who
 When
 Where
BGP version 4
 RFC 1771
 Intelligent route selection based
on most specific prefix and shortest Autonomous System (AS) path
 Classless Inter Domain Routing (CIDR) support
 Current Internet standard for
inter-domain (AS) exterior routing
Border Gateway Protocol (BGP)
 BGP version 4 is the current
de facto exterior routing protocol
in the Internet
 BGP- 4 is required for CIDR
Introduction
 Used for carrying routing information between AS’s
 Path vector protocol
 Incremental
 Runs over TCP (port 179)
 Conveys information about AS
path topology
BGP Between AS’s
PPT Slide
General Operation
 Learns multiple paths via internal
and external BGP speakers
 Picks the best path and installs in
the IP forwarding table
 Policies applied by influencing the
best path selection
When should I use BGP?
 Dual- or multi-homed
 Providing partial or full Internet
routing to a downstream customer
 Anytime the AS path information is required
 Multi-Homed AS
 AS 100
 AS 200
 AS 300
 A
 B
 C
 D
BGP is not needed...
 ... if singularly homed
 … if not providing downstream routing
 Use a default route!
 PPT Slide
 Default Route
 Static Route
 204.10.0/23
 Upstream
 Provider
 AS100
BGPAttributes
 What is an attribute?
 AS path
 Next hop
 Local preference
 Multi-exit discriminator (MED)
 Others
What Is an Attribute?
 Describes the characteristics of a particular prefix
 Transitive or non-transitive
 13 attributes
 Some are mandatory
BGPAttributes—AS Path
 Sequence of AS’s a route has traversed
 Loop detection
 Apply policy
 AS-Path
 AS 100
 AS 300
 AS 200
 AS 500
 AS 400
 170.10.0.0/16
 180.10.0.0/16
 150.10.0.0/16
 180.10.0.0/16 300 200 100
 170.10.0.0/16 300 200
 150.10.0.0/16 300 400
 180.10.0.0/16 300 200 100
 170.10.0.0/16 300 200
BGPAttributes—Next Hop
 Next hop to reach a network
 Usually the local net is the next hop
in eBGP session
 Third party next hop in iBGP session
 eBGP and Next Hop
 160.10.0.0/16
 150.10.0.0/16
 150.10.1.1
 150.10.1.2
 AS 100
 AS 300
 AS 200
 150.10.0.0/16 150.10.1.1
 160.10.0.0/16 150.10.1.1
 A
 B
BGPAttributes—Next Hop (Cont.)
 Next hop of external routes not changed when
announced to iBGP neighbors
 iBGP and Next Hop
 160.10.0.0/16
 150.10.0.0/16
 150.10.1.1
 150.10.1.2
 AS 100
 AS 300
 AS 200
 150.10.0.0/16 150.10.1.1
 160.10.0.0/16 150.10.1.1
 B
 C
 A
BGPAttributes—Next Hop (Cont.)
 IGP should carry route to next hops
 Recursive route look-up
 Decouples BGP from actual physical topology
BGPAttributes—Local Preference
 Local to AS
 Used to influence BGP path selection
 Path with highest local preference wins
 Local Preference
 AS 400
 AS 200
 160.10.0.0/16
 AS 100
 AS 300
 A
 B
 C
 D
 E
 160.10.0.0/16 500
 > 160.10.0.0/16 800
 500
 800
Multi-Exit Discriminator (MED)
 Non-transitive
 Used to convey the relative preference of entry points
 Influences best path selection
 Comparable if paths are from same AS
 IGP metric can be conveyed as MED
 Multi-Exit Discriminator
 AS 201
 AS 200
 A
 C
 B
 192.68.1.0/24
 192.68.1.0/24 1000
 192.68.1.0/24 2000
Applying Policy with BGP
 Policy based on AS path, community
or the network
 Rejecting/accepting selected routes
 Set attributes to influence path selection
Communities
 BGP attribute
 Used to group destinations
 Represented as an integer
 Each destination could be member
of multiple communities
 Community attribute carried across AS’s
 Useful in applying policies
Community Attribute
 RFC1997, RFC1998
 Optional attribute
 Range: 0 to 4,294,901,760
 Method to group destinations
into communities and apply
routing decisions (accept, prefer,
redistribute, etc.) using route-maps
Community attribute (cont.)
 Format -- aa:nn
 `aa’ -- ASN
 `nn’ -- 1 to 4,294,901,760
 BGP Communities
 Community 10:200
 Community 10:300
 Community 10:200
 Community 10:300
Load Balancing
 BGP does not load-balance traffic;
it chooses & installs a “best” route.
 BGP Load Balancing Problem
 “Since BGP picks a „best‟ route based upon most specific prefix and shortest
AS_PATH,
it becomes non-trivial to figure out how to manually direct specific portions of
internal traffic (prefixes) in a distributed fashion across multiple external
gateways.”
eBGP Multihop
BGP Multipath
Difficulties in Load Balancing
Internal BGP (iBGP)
 Same routing protocol as BGP,
different application
 iBGP should be used when AS_PATH information must
remain intact between multiple eBGP peers
 All iBGP peers must be fully meshed, logically; an iBGP
peer will not advertise
a route learned by one iBGP peer to another iBGP peer
(readvertisement restriction to prevent looping)
 PPT Slide
 AS 1
 AS 2
 eBGP
 eBGP
 eBGP
 iBGP
 iBGP
 Upstream
 Provider B
 AS200
 Upstream
 Provider A
 AS100
iBGP
Scaling the iBGP mesh
 Two methods:
BGP Confederations
BGP Route Reflectors
BGP Confederations
 Method to subdivide a single AS into multiple, internal
sub-AS’s, yet still advertise a single AS to external peers
 Reduces iBGP mesh
 BGP Confederation
 AS10
 AS20
 AS30
 AS300
BGP Route Reflectors (RR)
 Another method to reduce iBGP mesh
 iBGP re-advertisement restrictions
are relaxed
 Single iBGP peer advertises (reflects) routes to
subordinate iBGP peers
 Clients must not peer with RR’s
outside of cluster
 Route Reflectors
 (RR)
 AS300
 (RR)
 (RR)
Asymmetric Routing Paradigm
 In the Internet, it is impossible
to control end-to-end routing
and paths traversed
 Packets may not always traverse
same downstream path as they
do when forwarded upstream
Asymmetric Routing
Achieving stability
 Using loopbacks
 BGP/IGP Interaction
 Peer groups
 Route-flap dampening
 BGP soft reconfiguration
Stable iBGP Peering
 Peer with loop-back addresses
 iBGP session is not dependent
on a single interface
 Loop-back interface does not go down
 Peering to Loop-Back Address
 AS 100
Relationship with IGP
 BGP carries full Internet routing table
 IGP’s are used to carry next hop and interior network
information
 Routes are never redistributed from BGP into IGP (and
vice versa)
 Recursive route lookup
Peer Groups
 iBGP neighbors receive same update
 Group peers with same outbound policy
 Updates are generated once per group
 Makes configuration easier
 Members could have different
inbound policy
 eBGP neighbors
Route Flap Dampening
 Route flap
Going up and down of path
Change in attribute
 Ripples through the entire Internet
 Consumes CPU
 Reduce scope of route flap propagation
Route Flap Dampening (Cont.)
 Fast convergence for normal
route changes
 History predicts future behavior
 Suppress oscillating routes
 Advertise stable suppressed routes
Flap Dampening: Terminology
 Penalty
 Decay
 Half-life time
 Suppress-limit
 Reuse-limit
 Suppress

 Route Flap Dampening
 0
 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 0
 1
 2
 3
 4
 Suppress-Limit
 Reuse-Limit
 Penalty
 Time
Flap Dampening: Operation
 Add penalty for each flap
 Exponentially decay penalty
 Penalty above suppress-limit—
do not advertise up route
 Penalty decayed below reuse-limit—advertise route
 History path
Flap Dampening: Operation (Cont.)
 Done only for external path
 Alternate paths still usable
 Suppress-limit, reuse-limit and half-life time give
control
 Less overhead
BGP soft reconfig
 Soft reconfig allows BGP policies to be configured &
activated without clearing the BGP session
 Does not invalidate forwarding cache, hence no short-
term interruptions
 Outbound preferable over inbound reconfig
Cisco IOS™ Version Information
 Peer-groups—10.2
 Communities—10.3
 Route-reflectors—10.3
 Confederation—10.3
 Route flap dampening—11.0
 BGP Multipath, Soft Reconfig—11.2
Summary
 Use BGP only when needed!
 IGP and conventional BGP
network problems
 BGP gives flexibility and control
 Route reflectors and confederations helps iBGP mesh
scale
Questions?
Thanks for attending!

More Related Content

What's hot

BGP
BGP BGP
PLNOG15: BGP New Advanced Features - Piotr Wojciechowski
PLNOG15: BGP New Advanced Features - Piotr WojciechowskiPLNOG15: BGP New Advanced Features - Piotr Wojciechowski
PLNOG15: BGP New Advanced Features - Piotr Wojciechowski
PROIDEA
 
3 ip routing bgp-updated
3 ip routing bgp-updated3 ip routing bgp-updated
3 ip routing bgp-updated
SagarR24
 
Study Notes BGP Exam
Study Notes BGP ExamStudy Notes BGP Exam
Study Notes BGP Exam
Duane Bodle
 
BGP (border gateway routing protocol)
BGP (border gateway routing protocol)BGP (border gateway routing protocol)
BGP (border gateway routing protocol)
Netwax Lab
 
BGP Techniques for Network Operators
BGP Techniques for Network OperatorsBGP Techniques for Network Operators
BGP Techniques for Network Operators
APNIC
 
An Overview of Border Gateway Protocol (BGP)
An Overview of Border Gateway Protocol (BGP)An Overview of Border Gateway Protocol (BGP)
An Overview of Border Gateway Protocol (BGP)Jasim Alam
 
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
Rowell Dionicio
 
SGNOG2 - Using communities for multihoming ISP workshop
SGNOG2 - Using communities for multihoming ISP workshopSGNOG2 - Using communities for multihoming ISP workshop
SGNOG2 - Using communities for multihoming ISP workshop
APNIC
 
Border gateway protocol
Border gateway protocolBorder gateway protocol
Border gateway protocol
azlerabby
 
Bgp
BgpBgp
Ccnp enterprise workbook v1.0 bgp zero to hero
Ccnp enterprise workbook v1.0 bgp zero to heroCcnp enterprise workbook v1.0 bgp zero to hero
Ccnp enterprise workbook v1.0 bgp zero to hero
SagarR24
 
Route static Configuration
Route static ConfigurationRoute static Configuration
Route static Configuration
Gausul Azam
 
Equinix IP Address Renumbering in Singapore and Sydney
Equinix IP Address Renumbering in Singapore and SydneyEquinix IP Address Renumbering in Singapore and Sydney
Equinix IP Address Renumbering in Singapore and Sydney
APNIC
 
bgp(border gateway protocol)
bgp(border gateway protocol)bgp(border gateway protocol)
bgp(border gateway protocol)
Noor Ul Hudda Memon
 
BGP (Border Gateway Protocol)
BGP (Border Gateway Protocol)BGP (Border Gateway Protocol)
BGP (Border Gateway Protocol)
NetProtocol Xpert
 

What's hot (20)

Lec7
Lec7Lec7
Lec7
 
BGP
BGP BGP
BGP
 
PLNOG15: BGP New Advanced Features - Piotr Wojciechowski
PLNOG15: BGP New Advanced Features - Piotr WojciechowskiPLNOG15: BGP New Advanced Features - Piotr Wojciechowski
PLNOG15: BGP New Advanced Features - Piotr Wojciechowski
 
3 ip routing bgp-updated
3 ip routing bgp-updated3 ip routing bgp-updated
3 ip routing bgp-updated
 
Juniper Bgp
Juniper BgpJuniper Bgp
Juniper Bgp
 
BGP
BGPBGP
BGP
 
Study Notes BGP Exam
Study Notes BGP ExamStudy Notes BGP Exam
Study Notes BGP Exam
 
BGP (border gateway routing protocol)
BGP (border gateway routing protocol)BGP (border gateway routing protocol)
BGP (border gateway routing protocol)
 
Bgp (1)
Bgp (1)Bgp (1)
Bgp (1)
 
BGP Techniques for Network Operators
BGP Techniques for Network OperatorsBGP Techniques for Network Operators
BGP Techniques for Network Operators
 
An Overview of Border Gateway Protocol (BGP)
An Overview of Border Gateway Protocol (BGP)An Overview of Border Gateway Protocol (BGP)
An Overview of Border Gateway Protocol (BGP)
 
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
 
SGNOG2 - Using communities for multihoming ISP workshop
SGNOG2 - Using communities for multihoming ISP workshopSGNOG2 - Using communities for multihoming ISP workshop
SGNOG2 - Using communities for multihoming ISP workshop
 
Border gateway protocol
Border gateway protocolBorder gateway protocol
Border gateway protocol
 
Bgp
BgpBgp
Bgp
 
Ccnp enterprise workbook v1.0 bgp zero to hero
Ccnp enterprise workbook v1.0 bgp zero to heroCcnp enterprise workbook v1.0 bgp zero to hero
Ccnp enterprise workbook v1.0 bgp zero to hero
 
Route static Configuration
Route static ConfigurationRoute static Configuration
Route static Configuration
 
Equinix IP Address Renumbering in Singapore and Sydney
Equinix IP Address Renumbering in Singapore and SydneyEquinix IP Address Renumbering in Singapore and Sydney
Equinix IP Address Renumbering in Singapore and Sydney
 
bgp(border gateway protocol)
bgp(border gateway protocol)bgp(border gateway protocol)
bgp(border gateway protocol)
 
BGP (Border Gateway Protocol)
BGP (Border Gateway Protocol)BGP (Border Gateway Protocol)
BGP (Border Gateway Protocol)
 

Viewers also liked

Gabriel Spitale Resume 2015
Gabriel Spitale Resume 2015Gabriel Spitale Resume 2015
Gabriel Spitale Resume 2015Gabriel Spitale
 
Un friended (horror movie)
Un friended (horror movie)Un friended (horror movie)
Un friended (horror movie)
EleanorBinley99
 
Linah Mathibe's resume (1)
Linah Mathibe's resume (1)Linah Mathibe's resume (1)
Linah Mathibe's resume (1)Linky Mathibe
 
National & Florida Hispanic Mobile Poll
National & Florida Hispanic Mobile PollNational & Florida Hispanic Mobile Poll
National & Florida Hispanic Mobile Poll
New Latino Voice
 
Cuadro sinoptico
Cuadro sinopticoCuadro sinoptico
Cuadro sinoptico
nte1504
 
BattlefieldAirmen April 2006
BattlefieldAirmen April 2006BattlefieldAirmen April 2006
BattlefieldAirmen April 2006Rob Curry
 
8/22 National & Florida Hispanic Mobile Poll
8/22 National & Florida Hispanic Mobile Poll8/22 National & Florida Hispanic Mobile Poll
8/22 National & Florida Hispanic Mobile Poll
New Latino Voice
 
Newsletter 10192015 Final Volume 1 Issue 17
Newsletter 10192015 Final Volume 1 Issue 17Newsletter 10192015 Final Volume 1 Issue 17
Newsletter 10192015 Final Volume 1 Issue 17Jonathan M. Lamb
 
Royal Brunei Armed Forces 2015
Royal Brunei Armed Forces 2015Royal Brunei Armed Forces 2015
Royal Brunei Armed Forces 2015murukami
 
Bab 4 kesetimbangan
Bab 4 kesetimbanganBab 4 kesetimbangan
Bab 4 kesetimbangan
Willy Chandra
 
Eng. Ayman Mitkees Cv.
Eng. Ayman Mitkees Cv.Eng. Ayman Mitkees Cv.
Eng. Ayman Mitkees Cv.
Ayman Mitkees
 
Älykodin kuluttajansuojaa
Älykodin kuluttajansuojaaÄlykodin kuluttajansuojaa
Características de la planeación argumentada
Características de la planeación argumentadaCaracterísticas de la planeación argumentada
Características de la planeación argumentada
nte1504
 

Viewers also liked (16)

Gabriel Spitale Resume 2015
Gabriel Spitale Resume 2015Gabriel Spitale Resume 2015
Gabriel Spitale Resume 2015
 
Un friended (horror movie)
Un friended (horror movie)Un friended (horror movie)
Un friended (horror movie)
 
Linah Mathibe's resume (1)
Linah Mathibe's resume (1)Linah Mathibe's resume (1)
Linah Mathibe's resume (1)
 
National & Florida Hispanic Mobile Poll
National & Florida Hispanic Mobile PollNational & Florida Hispanic Mobile Poll
National & Florida Hispanic Mobile Poll
 
Cuadro sinoptico
Cuadro sinopticoCuadro sinoptico
Cuadro sinoptico
 
BattlefieldAirmen April 2006
BattlefieldAirmen April 2006BattlefieldAirmen April 2006
BattlefieldAirmen April 2006
 
8/22 National & Florida Hispanic Mobile Poll
8/22 National & Florida Hispanic Mobile Poll8/22 National & Florida Hispanic Mobile Poll
8/22 National & Florida Hispanic Mobile Poll
 
Newsletter 10192015 Final Volume 1 Issue 17
Newsletter 10192015 Final Volume 1 Issue 17Newsletter 10192015 Final Volume 1 Issue 17
Newsletter 10192015 Final Volume 1 Issue 17
 
شهادة خبرة
شهادة خبرةشهادة خبرة
شهادة خبرة
 
Royal Brunei Armed Forces 2015
Royal Brunei Armed Forces 2015Royal Brunei Armed Forces 2015
Royal Brunei Armed Forces 2015
 
Bab 4 kesetimbangan
Bab 4 kesetimbanganBab 4 kesetimbangan
Bab 4 kesetimbangan
 
Eng. Ayman Mitkees Cv.
Eng. Ayman Mitkees Cv.Eng. Ayman Mitkees Cv.
Eng. Ayman Mitkees Cv.
 
Älykodin kuluttajansuojaa
Älykodin kuluttajansuojaaÄlykodin kuluttajansuojaa
Älykodin kuluttajansuojaa
 
Alat alat muzik
Alat alat muzikAlat alat muzik
Alat alat muzik
 
Urak
UrakUrak
Urak
 
Características de la planeación argumentada
Características de la planeación argumentadaCaracterísticas de la planeación argumentada
Características de la planeación argumentada
 

Similar to Bgp

Computer network (14)
Computer network (14)Computer network (14)
Computer network (14)
NYversity
 
Bgp
BgpBgp
SANOG23-BGP-Techniques.pdf
SANOG23-BGP-Techniques.pdfSANOG23-BGP-Techniques.pdf
SANOG23-BGP-Techniques.pdf
GhulamIbneGhulam
 
Bgp
BgpBgp
Week14 lec2
Week14 lec2Week14 lec2
Week14 lec2
syedhaiderraza
 
11 bgp-ethernet
11 bgp-ethernet11 bgp-ethernet
11 bgp-ethernet
Olivier Bonaventure
 
CCNP ROUTE V7 CH7
CCNP ROUTE V7 CH7CCNP ROUTE V7 CH7
CCNP ROUTE V7 CH7
Chaing Ravuth
 
bgp.ppt
bgp.pptbgp.ppt
bgp.ppt
aozcan1
 
BGP Overview
BGP OverviewBGP Overview
BGP Overview
Matt Bynum
 
Part8-ibgp.pptx
Part8-ibgp.pptxPart8-ibgp.pptx
Part8-ibgp.pptx
Olivier Bonaventure
 
Routing Protocols
Routing ProtocolsRouting Protocols
Routing Protocols
elgraini
 
Class 7
Class 7Class 7
Class 7
mozaharulhoq
 
BGP
BGPBGP
BGP
KHNOG
 
Dynamische Routingprotokolle Aufzucht und Pflege - BGP
Dynamische Routingprotokolle Aufzucht und Pflege - BGPDynamische Routingprotokolle Aufzucht und Pflege - BGP
Dynamische Routingprotokolle Aufzucht und Pflege - BGP
Maximilan Wilhelm
 
BGP-EDS Presentation
BGP-EDS  Presentation BGP-EDS  Presentation
BGP-EDS Presentation
East Coast Datacom, Inc.
 
Bgp
BgpBgp
Bgp
w78ww
 

Similar to Bgp (20)

Computer network (14)
Computer network (14)Computer network (14)
Computer network (14)
 
Bgp
BgpBgp
Bgp
 
SANOG23-BGP-Techniques.pdf
SANOG23-BGP-Techniques.pdfSANOG23-BGP-Techniques.pdf
SANOG23-BGP-Techniques.pdf
 
Bgp
BgpBgp
Bgp
 
Week14 lec2
Week14 lec2Week14 lec2
Week14 lec2
 
11 bgp-ethernet
11 bgp-ethernet11 bgp-ethernet
11 bgp-ethernet
 
B G P Part2
B G P  Part2B G P  Part2
B G P Part2
 
07.bgp
07.bgp07.bgp
07.bgp
 
CCNP ROUTE V7 CH7
CCNP ROUTE V7 CH7CCNP ROUTE V7 CH7
CCNP ROUTE V7 CH7
 
bgp.ppt
bgp.pptbgp.ppt
bgp.ppt
 
BGP Overview
BGP OverviewBGP Overview
BGP Overview
 
Part8-ibgp.pptx
Part8-ibgp.pptxPart8-ibgp.pptx
Part8-ibgp.pptx
 
Routing Protocols
Routing ProtocolsRouting Protocols
Routing Protocols
 
Class 7
Class 7Class 7
Class 7
 
BGP
BGPBGP
BGP
 
Dynamische Routingprotokolle Aufzucht und Pflege - BGP
Dynamische Routingprotokolle Aufzucht und Pflege - BGPDynamische Routingprotokolle Aufzucht und Pflege - BGP
Dynamische Routingprotokolle Aufzucht und Pflege - BGP
 
BGP-EDS Presentation
BGP-EDS  Presentation BGP-EDS  Presentation
BGP-EDS Presentation
 
Bgp
BgpBgp
Bgp
 
Bgp
BgpBgp
Bgp
 
Bgp
BgpBgp
Bgp
 

Recently uploaded

GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
Neo4j
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
danishmna97
 
GridMate - End to end testing is a critical piece to ensure quality and avoid...
GridMate - End to end testing is a critical piece to ensure quality and avoid...GridMate - End to end testing is a critical piece to ensure quality and avoid...
GridMate - End to end testing is a critical piece to ensure quality and avoid...
ThomasParaiso2
 
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
James Anderson
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Malak Abu Hammad
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
Alpen-Adria-Universität
 
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
Neo4j
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AIEnchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Vladimir Iglovikov, Ph.D.
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
Quotidiano Piemontese
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
Matthew Sinclair
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
DanBrown980551
 
By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024
Pierluigi Pugliese
 
Building RAG with self-deployed Milvus vector database and Snowpark Container...
Building RAG with self-deployed Milvus vector database and Snowpark Container...Building RAG with self-deployed Milvus vector database and Snowpark Container...
Building RAG with self-deployed Milvus vector database and Snowpark Container...
Zilliz
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Paige Cruz
 
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex ProofszkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
Alex Pruden
 
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
SOFTTECHHUB
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
Neo4j
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
mikeeftimakis1
 

Recently uploaded (20)

GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
 
GridMate - End to end testing is a critical piece to ensure quality and avoid...
GridMate - End to end testing is a critical piece to ensure quality and avoid...GridMate - End to end testing is a critical piece to ensure quality and avoid...
GridMate - End to end testing is a critical piece to ensure quality and avoid...
 
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
 
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AIEnchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
 
By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024
 
Building RAG with self-deployed Milvus vector database and Snowpark Container...
Building RAG with self-deployed Milvus vector database and Snowpark Container...Building RAG with self-deployed Milvus vector database and Snowpark Container...
Building RAG with self-deployed Milvus vector database and Snowpark Container...
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
 
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex ProofszkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
 
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
 

Bgp

  • 1. Introduction to the Border Gateway Protocol (BGP) Paul Ferguson pferguson@cisco.com Consulting Engineer Internet Service Providers cisco Systems, Inc. BGP  What  Why  Who  When  Where BGP version 4  RFC 1771  Intelligent route selection based on most specific prefix and shortest Autonomous System (AS) path  Classless Inter Domain Routing (CIDR) support  Current Internet standard for inter-domain (AS) exterior routing Border Gateway Protocol (BGP)  BGP version 4 is the current de facto exterior routing protocol in the Internet  BGP- 4 is required for CIDR Introduction  Used for carrying routing information between AS’s  Path vector protocol
  • 2.  Incremental  Runs over TCP (port 179)  Conveys information about AS path topology BGP Between AS’s PPT Slide General Operation  Learns multiple paths via internal and external BGP speakers  Picks the best path and installs in the IP forwarding table  Policies applied by influencing the best path selection When should I use BGP?  Dual- or multi-homed  Providing partial or full Internet routing to a downstream customer  Anytime the AS path information is required  Multi-Homed AS  AS 100  AS 200  AS 300  A  B  C
  • 3.  D BGP is not needed...  ... if singularly homed  … if not providing downstream routing  Use a default route!  PPT Slide  Default Route  Static Route  204.10.0/23  Upstream  Provider  AS100 BGPAttributes  What is an attribute?  AS path  Next hop  Local preference  Multi-exit discriminator (MED)  Others What Is an Attribute?  Describes the characteristics of a particular prefix
  • 4.  Transitive or non-transitive  13 attributes  Some are mandatory BGPAttributes—AS Path  Sequence of AS’s a route has traversed  Loop detection  Apply policy  AS-Path  AS 100  AS 300  AS 200  AS 500  AS 400  170.10.0.0/16  180.10.0.0/16  150.10.0.0/16  180.10.0.0/16 300 200 100  170.10.0.0/16 300 200  150.10.0.0/16 300 400  180.10.0.0/16 300 200 100  170.10.0.0/16 300 200 BGPAttributes—Next Hop  Next hop to reach a network  Usually the local net is the next hop in eBGP session  Third party next hop in iBGP session
  • 5.  eBGP and Next Hop  160.10.0.0/16  150.10.0.0/16  150.10.1.1  150.10.1.2  AS 100  AS 300  AS 200  150.10.0.0/16 150.10.1.1  160.10.0.0/16 150.10.1.1  A  B BGPAttributes—Next Hop (Cont.)  Next hop of external routes not changed when announced to iBGP neighbors  iBGP and Next Hop  160.10.0.0/16  150.10.0.0/16  150.10.1.1  150.10.1.2  AS 100  AS 300  AS 200  150.10.0.0/16 150.10.1.1  160.10.0.0/16 150.10.1.1  B  C  A BGPAttributes—Next Hop (Cont.)  IGP should carry route to next hops  Recursive route look-up
  • 6.  Decouples BGP from actual physical topology BGPAttributes—Local Preference  Local to AS  Used to influence BGP path selection  Path with highest local preference wins  Local Preference  AS 400  AS 200  160.10.0.0/16  AS 100  AS 300  A  B  C  D  E  160.10.0.0/16 500  > 160.10.0.0/16 800  500  800 Multi-Exit Discriminator (MED)  Non-transitive  Used to convey the relative preference of entry points  Influences best path selection  Comparable if paths are from same AS  IGP metric can be conveyed as MED
  • 7.  Multi-Exit Discriminator  AS 201  AS 200  A  C  B  192.68.1.0/24  192.68.1.0/24 1000  192.68.1.0/24 2000 Applying Policy with BGP  Policy based on AS path, community or the network  Rejecting/accepting selected routes  Set attributes to influence path selection Communities  BGP attribute  Used to group destinations  Represented as an integer  Each destination could be member of multiple communities  Community attribute carried across AS’s  Useful in applying policies Community Attribute
  • 8.  RFC1997, RFC1998  Optional attribute  Range: 0 to 4,294,901,760  Method to group destinations into communities and apply routing decisions (accept, prefer, redistribute, etc.) using route-maps Community attribute (cont.)  Format -- aa:nn  `aa’ -- ASN  `nn’ -- 1 to 4,294,901,760  BGP Communities  Community 10:200  Community 10:300  Community 10:200  Community 10:300 Load Balancing  BGP does not load-balance traffic; it chooses & installs a “best” route.  BGP Load Balancing Problem  “Since BGP picks a „best‟ route based upon most specific prefix and shortest AS_PATH, it becomes non-trivial to figure out how to manually direct specific portions of internal traffic (prefixes) in a distributed fashion across multiple external gateways.”
  • 9. eBGP Multihop BGP Multipath Difficulties in Load Balancing Internal BGP (iBGP)  Same routing protocol as BGP, different application  iBGP should be used when AS_PATH information must remain intact between multiple eBGP peers  All iBGP peers must be fully meshed, logically; an iBGP peer will not advertise a route learned by one iBGP peer to another iBGP peer (readvertisement restriction to prevent looping)  PPT Slide  AS 1  AS 2  eBGP  eBGP  eBGP  iBGP  iBGP  Upstream  Provider B  AS200  Upstream  Provider A  AS100 iBGP
  • 10. Scaling the iBGP mesh  Two methods: BGP Confederations BGP Route Reflectors BGP Confederations  Method to subdivide a single AS into multiple, internal sub-AS’s, yet still advertise a single AS to external peers  Reduces iBGP mesh  BGP Confederation  AS10  AS20  AS30  AS300 BGP Route Reflectors (RR)  Another method to reduce iBGP mesh  iBGP re-advertisement restrictions are relaxed  Single iBGP peer advertises (reflects) routes to subordinate iBGP peers  Clients must not peer with RR’s outside of cluster  Route Reflectors  (RR)
  • 11.  AS300  (RR)  (RR) Asymmetric Routing Paradigm  In the Internet, it is impossible to control end-to-end routing and paths traversed  Packets may not always traverse same downstream path as they do when forwarded upstream Asymmetric Routing Achieving stability  Using loopbacks  BGP/IGP Interaction  Peer groups  Route-flap dampening  BGP soft reconfiguration Stable iBGP Peering  Peer with loop-back addresses  iBGP session is not dependent on a single interface
  • 12.  Loop-back interface does not go down  Peering to Loop-Back Address  AS 100 Relationship with IGP  BGP carries full Internet routing table  IGP’s are used to carry next hop and interior network information  Routes are never redistributed from BGP into IGP (and vice versa)  Recursive route lookup Peer Groups  iBGP neighbors receive same update  Group peers with same outbound policy  Updates are generated once per group  Makes configuration easier  Members could have different inbound policy  eBGP neighbors Route Flap Dampening  Route flap
  • 13. Going up and down of path Change in attribute  Ripples through the entire Internet  Consumes CPU  Reduce scope of route flap propagation Route Flap Dampening (Cont.)  Fast convergence for normal route changes  History predicts future behavior  Suppress oscillating routes  Advertise stable suppressed routes Flap Dampening: Terminology  Penalty  Decay  Half-life time  Suppress-limit  Reuse-limit  Suppress 
  • 14.  Route Flap Dampening  0  1  2  3  4  5  6  7  8  9  10  11  12  13  14  15  16  17  18  19  20  21  22  23  24  25  0  1  2  3  4  Suppress-Limit  Reuse-Limit  Penalty  Time
  • 15. Flap Dampening: Operation  Add penalty for each flap  Exponentially decay penalty  Penalty above suppress-limit— do not advertise up route  Penalty decayed below reuse-limit—advertise route  History path Flap Dampening: Operation (Cont.)  Done only for external path  Alternate paths still usable  Suppress-limit, reuse-limit and half-life time give control  Less overhead BGP soft reconfig  Soft reconfig allows BGP policies to be configured & activated without clearing the BGP session  Does not invalidate forwarding cache, hence no short- term interruptions  Outbound preferable over inbound reconfig
  • 16. Cisco IOS™ Version Information  Peer-groups—10.2  Communities—10.3  Route-reflectors—10.3  Confederation—10.3  Route flap dampening—11.0  BGP Multipath, Soft Reconfig—11.2 Summary  Use BGP only when needed!  IGP and conventional BGP network problems  BGP gives flexibility and control  Route reflectors and confederations helps iBGP mesh scale Questions? Thanks for attending!