SlideShare una empresa de Scribd logo
1 de 56
Border Gateway Protocol (BGP)
By : Reza Farahani
BGP BASICS
 Border Gateway Protocol (BGP) advertises, learns, and chooses
the best paths inside the global Internet.
 When two ISPs connect, they typically use BGP to exchange
routing information.
 BGP need to advertise IPv4 prefixes, just like IGPs.
 BGP needs to advertise some information so that routers can
choose the best route.
 BGP does establish a neighbor relationship before exchanging
topology information with a neighboring router.
IGP & BGP COMPARISON
ASN
 The integer BGP ASN uniquely identifies one organization that
considers itself autonomous from other organizations.
 Each company whose Enterprise network connects to the
Internet can be considered to be an autonomous system and
can be assigned a ASN.
AS_SEQ PATH ATTRIBUTE
 BGP uses BGP path attributes (PA) for several purposes.
 PAs define information about a path, or route, through a network.
 By default, if no BGP PAs have been set, BGP routers use the
AS_PATH for best route choosing.
 Choose the best route for a prefix based on the shortest
AS_Path.
 Prevent routing loops.
 When a BGP router receives an update, and a route
advertisement lists an AS_Path with its own ASN, the router
ignores that route.
AS_SEQ PATH ATTRIBUTE
AS_SEQ PATH ATTRIBUTE
INTERNAL AND EXTERNAL BGP
 BGP defines two classes of neighbors (peers): internal BGP
(iBGP) and external BGP (eBGP).
 BGP neighbor is in the same ASN (iBGP) or a different ASN
(eBGP).
 BGP router does not update the AS_Path PA to iBGP peer.
ASNDUPLICATE
 BGP router does not update the AS_Path PA to iBGP peer.
Comparison
 If ASNs are duplicated, the BGP can actually prevent from
learning about a route.
ROUTING TOWARD INTERNET
 Enterprises typically have two major classes of options for outbound
routing toward the Internet: default routing and BGP.
 Full updates: The ISP sends you the entire BGP table.
 Partial updates: The ISP sends you routes for prefixes that might be
better reached through that ISP, but not all routes, plus a default route
BGP NEIGHBOR RELATIONSHIPS
BGP NEIGHBOR RELATIONSHIPS
BGP NEIGHBOR RELATIONSHIPS
When IP redundancy exists between two eBGP peers, the eBGP neighbor
commands should use loopback IP addresses to take advantage of that
redundancy.
BGP NEIGHBOR STATES & MESSAGE
SAMPLE CONFIGURATION
BGP TABLE
EBGP NEIGHBORSHIP REQUIREMENTS
• Reachability
• Neighbor ship with loopback
• Introduce Loopback from Source
• Next-hop-self
• ebgp-multihup
• Inject route to bgp
INJECTING ROUTES INTO BGP
 BGP network command
 Redistribution from an IGP
 The BGP network command differs from the network
command used by IGPs.
 For BGP : Look for a route in the router’s current routing
table that exactly matches the parameters of the network
command; if a route exists, put the equivalent prefix/length
into the local BGP table
Manual Summary
The AS_PATH PA consists of up to four different components, called segments ,
as follows:
Default Route
 When you inject a default route into BGP using the network
command, a route to 0.0.0.0/0 must exist in the local routing
table, and the network 0.0.0.0 command is required.
 Injecting a default route into BGP by using the neighbor
neighbor-id default-originate [ route-map route-map-name ] BGP
subcommand does not add a default route to the local BGP
table; instead, it causes the advertisement of a default to the
specified neighbor.
BGP SYNCHRONIZATION
The routing black hole occurs because R8 does not have a route to either of the
prefixes advertised by BGP.
BGP SYNCHRONIZATION
 The original solution to this problem involves the use of BGP
synchronization, along with redistributing BGP routes into the
IGP. However, two later solutions provide better options
today:into the IGP.
However, two later solutions provide better options:
 BGP route reflectors
 BGP confederations
CONFEDERATIONS
 Just as the AS_SEQ and AS_SET components help prevent
loops between autonomous systems, AS_CONFED_SEQ and
AS_CONFED_SET help prevent loops within confederation
autonomous systems.
CONFEDERATIONS
CONFEDERATIONS
ROUTE REFLECTORS
 With multiple clusters, at least one RR from a cluster
must be peered with at least one RR in each of the
other clusters.
 Typically, all RRs are peered directly, creating a full
mesh of RR iBGP peers among RRs.
ROUTE REFLECTORS
ROUTE REFLECTORS
ROUTE REFLECTORS
MULTIPROTOCOL BGP
We are required to run Multiprotocol BGP (MP-BGP) only within the service
provider cloud.
Each MP-BGP session is an internal BGP session.
MP-iBGPis required within the MPLS/VPN
architecture because the BGP update needs to carry more information than just an
IPv4 address.
The ability to exchange addresses other than standard IPv4 addresses was
introduced into BGP.
MULTIPROTOCOL BGP
MULTIPROTOCOL BGP
ROUTE FILTERING
1- Like as before:
Select traffic with Prefix-List
Match with Route-map and policy
Apply on interface
1- FILTERING BGP UPDATES BYMATCHING THE AS_PATH PA:
 Regex
 ACL
 Apply on interface by Filter-list
Regex
Regex Example
FILTERING BGP UPDATES BYMATCHING THE AS_PATH PA
FILTERING BGP UPDATES BYMATCHING THE AS_PATH PA
BGP PATH ATTRIBUTES
Each BGP PA can be described as either a
well-known or optional PA.
 Well-known PAs are either one of the following:
Mandatory: The PA must be in every BGP Update.
 AS_PATH PA
 Discretionary: The PA is not required in every BGP Update.
 ATOMIC_AGGREGATE PA
 BGP classifies optionalPAs into two categories :
 Transitive : The router should silently forward the PA to other routers
without needing to consider the meaning of the PA.
 Nontransitive : The router should remove the PA so that it is not
propagated to any peers.
BGP PATH ATTRIBUTES
BGP PATH ATTRIBUTES
BGP PATH ATTRIBUTES
BGP PATH ATTRIBUTES
BGP PATH ATTRIBUTES
WEIGHT
LOCAL PREFERENCE
ORIGIN
The only hard part is memorizing the ORIGIN codes, and that “I” is better than
“E” is better than “?”.
REMOVING PRIVATE ASNs
REMOVING PRIVATE ASNs
AS_PATH PREPENDING
MULTI-EXIT DISCRIMINATOR
BGP COMMUNITIES
 The BGP COMMUNITY PA provides a mechanism by which to group
routes so that routing policies can be applied to all the routes with the
same community.
 By marking a set of routes with the same COMMUNITY string, routers
can look for the COMMUNITY string and then make policy decisions—
like setting some PA that impacts the BGP decision process or simply
filtering the routes.
BGP COMMUNITIES
BGP COMMUNITIES
BGP COMMUNITIES
Question ?

Más contenido relacionado

La actualidad más candente

Border Gateway Protocol
Border Gateway ProtocolBorder Gateway Protocol
Border Gateway ProtocolKashif Latif
 
Layer-2 VPN
Layer-2 VPNLayer-2 VPN
Layer-2 VPNrosmida
 
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
 
MPLS L3 VPN Tutorial, by Nurul Islam Roman [APNIC 38]
MPLS L3 VPN Tutorial, by Nurul Islam Roman [APNIC 38]MPLS L3 VPN Tutorial, by Nurul Islam Roman [APNIC 38]
MPLS L3 VPN Tutorial, by Nurul Islam Roman [APNIC 38]APNIC
 
BGP Techniques for Network Operators
BGP Techniques for Network OperatorsBGP Techniques for Network Operators
BGP Techniques for Network OperatorsAPNIC
 
CCNA Routing Protocols
CCNA Routing ProtocolsCCNA Routing Protocols
CCNA Routing ProtocolsDsunte Wilson
 
Traffic Engineering Using Segment Routing
Traffic Engineering Using Segment Routing Traffic Engineering Using Segment Routing
Traffic Engineering Using Segment Routing Cisco Canada
 
Troubleshooting BGP
Troubleshooting BGPTroubleshooting BGP
Troubleshooting BGPDuane Bodle
 
1 asr9 k platform architecture
1   asr9 k platform architecture1   asr9 k platform architecture
1 asr9 k platform architectureThanh Hung Quach
 
Routing and OSPF
Routing and OSPFRouting and OSPF
Routing and OSPFarpit
 
Study Notes BGP Exam
Study Notes BGP ExamStudy Notes BGP Exam
Study Notes BGP ExamDuane Bodle
 

La actualidad más candente (20)

Bgp (1)
Bgp (1)Bgp (1)
Bgp (1)
 
BGP protocol presentation
BGP protocol  presentationBGP protocol  presentation
BGP protocol presentation
 
Border Gateway Protocol
Border Gateway ProtocolBorder Gateway Protocol
Border Gateway Protocol
 
Ospf
 Ospf Ospf
Ospf
 
CCNP Route EIGRP Overview
CCNP Route  EIGRP OverviewCCNP Route  EIGRP Overview
CCNP Route EIGRP Overview
 
Layer-2 VPN
Layer-2 VPNLayer-2 VPN
Layer-2 VPN
 
Mpls L3_vpn
Mpls L3_vpnMpls L3_vpn
Mpls L3_vpn
 
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)
 
MPLS Layer 3 VPN
MPLS Layer 3 VPN MPLS Layer 3 VPN
MPLS Layer 3 VPN
 
MPLS L3 VPN Tutorial, by Nurul Islam Roman [APNIC 38]
MPLS L3 VPN Tutorial, by Nurul Islam Roman [APNIC 38]MPLS L3 VPN Tutorial, by Nurul Islam Roman [APNIC 38]
MPLS L3 VPN Tutorial, by Nurul Islam Roman [APNIC 38]
 
BGP Techniques for Network Operators
BGP Techniques for Network OperatorsBGP Techniques for Network Operators
BGP Techniques for Network Operators
 
CCNA Routing Protocols
CCNA Routing ProtocolsCCNA Routing Protocols
CCNA Routing Protocols
 
Eigrp.ppt
Eigrp.pptEigrp.ppt
Eigrp.ppt
 
Traffic Engineering Using Segment Routing
Traffic Engineering Using Segment Routing Traffic Engineering Using Segment Routing
Traffic Engineering Using Segment Routing
 
Troubleshooting BGP
Troubleshooting BGPTroubleshooting BGP
Troubleshooting BGP
 
1 asr9 k platform architecture
1   asr9 k platform architecture1   asr9 k platform architecture
1 asr9 k platform architecture
 
OSPF Basics
OSPF BasicsOSPF Basics
OSPF Basics
 
Ospf area types
Ospf area typesOspf area types
Ospf area types
 
Routing and OSPF
Routing and OSPFRouting and OSPF
Routing and OSPF
 
Study Notes BGP Exam
Study Notes BGP ExamStudy Notes BGP Exam
Study Notes BGP Exam
 

Similar a BGP Basics and Configuration Guide

Cisco BGP Exam 642-661 Review Notes
Cisco BGP Exam 642-661 Review NotesCisco BGP Exam 642-661 Review Notes
Cisco BGP Exam 642-661 Review NotesDuane Bodle
 
CCNP Route 642 902 BGP
CCNP Route 642 902 BGPCCNP Route 642 902 BGP
CCNP Route 642 902 BGPIT Tech
 
Cisco ccnp 642-902 practice tests for quick preparation
Cisco ccnp 642-902 practice tests for quick preparationCisco ccnp 642-902 practice tests for quick preparation
Cisco ccnp 642-902 practice tests for quick preparationCisco-642-902
 
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 WojciechowskiPROIDEA
 
SANOG23-BGP-Techniques.pdf
SANOG23-BGP-Techniques.pdfSANOG23-BGP-Techniques.pdf
SANOG23-BGP-Techniques.pdfGhulamIbneGhulam
 
BGP Protocol Makes the Internet Work
BGP Protocol Makes the Internet WorkBGP Protocol Makes the Internet Work
BGP Protocol Makes the Internet WorkIT Tech
 
Bgp For Presentation
Bgp For PresentationBgp For Presentation
Bgp For PresentationAlp isik
 

Similar a BGP Basics and Configuration Guide (20)

Cisco BGP Exam 642-661 Review Notes
Cisco BGP Exam 642-661 Review NotesCisco BGP Exam 642-661 Review Notes
Cisco BGP Exam 642-661 Review Notes
 
CCNP Route 642 902 BGP
CCNP Route 642 902 BGPCCNP Route 642 902 BGP
CCNP Route 642 902 BGP
 
Cisco ccnp 642-902 practice tests for quick preparation
Cisco ccnp 642-902 practice tests for quick preparationCisco ccnp 642-902 practice tests for quick preparation
Cisco ccnp 642-902 practice tests for quick preparation
 
Bgp Toc
Bgp TocBgp Toc
Bgp Toc
 
Bgp attribute-case study
Bgp attribute-case studyBgp attribute-case study
Bgp attribute-case study
 
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
 
Bgp
BgpBgp
Bgp
 
SANOG23-BGP-Techniques.pdf
SANOG23-BGP-Techniques.pdfSANOG23-BGP-Techniques.pdf
SANOG23-BGP-Techniques.pdf
 
07.bgp
07.bgp07.bgp
07.bgp
 
Bgp
BgpBgp
Bgp
 
BGP Protocol Makes the Internet Work
BGP Protocol Makes the Internet WorkBGP Protocol Makes the Internet Work
BGP Protocol Makes the Internet Work
 
B G P Part2
B G P  Part2B G P  Part2
B G P Part2
 
B G P Part2
B G P  Part2B G P  Part2
B G P Part2
 
BGP.pdf
BGP.pdfBGP.pdf
BGP.pdf
 
Bgp For Presentation
Bgp For PresentationBgp For Presentation
Bgp For Presentation
 
CCNP ROUTE V7 CH7
CCNP ROUTE V7 CH7CCNP ROUTE V7 CH7
CCNP ROUTE V7 CH7
 
Bigbgp
BigbgpBigbgp
Bigbgp
 
Bgp training
Bgp trainingBgp training
Bgp training
 
BGP Update Source
BGP Update Source BGP Update Source
BGP Update Source
 
Bgp in-large-networks
Bgp in-large-networksBgp in-large-networks
Bgp in-large-networks
 

Más de Reza Farahani

USuurey_Presentation__CollaborativeHASSystems.pdf
USuurey_Presentation__CollaborativeHASSystems.pdfUSuurey_Presentation__CollaborativeHASSystems.pdf
USuurey_Presentation__CollaborativeHASSystems.pdfReza Farahani
 
IEEE_ICC'23_SARENA.pdf
IEEE_ICC'23_SARENA.pdfIEEE_ICC'23_SARENA.pdf
IEEE_ICC'23_SARENA.pdfReza Farahani
 
MHV_22__RICHTER_POSTER.pdf
MHV_22__RICHTER_POSTER.pdfMHV_22__RICHTER_POSTER.pdf
MHV_22__RICHTER_POSTER.pdfReza Farahani
 
MMSys2022-TowardsLLL-Poster.pdf
MMSys2022-TowardsLLL-Poster.pdfMMSys2022-TowardsLLL-Poster.pdf
MMSys2022-TowardsLLL-Poster.pdfReza Farahani
 
MMSys'21 DS- RezaFarahani.pdf
MMSys'21 DS- RezaFarahani.pdfMMSys'21 DS- RezaFarahani.pdf
MMSys'21 DS- RezaFarahani.pdfReza Farahani
 
IEEEGlobecom'22-OL-RICHTER.pdf
IEEEGlobecom'22-OL-RICHTER.pdfIEEEGlobecom'22-OL-RICHTER.pdf
IEEEGlobecom'22-OL-RICHTER.pdfReza Farahani
 
IEEE ICC'22_ LEADER_ A Collaborative Edge- and SDN-Assisted Framework for HTT...
IEEE ICC'22_ LEADER_ A Collaborative Edge- and SDN-Assisted Framework for HTT...IEEE ICC'22_ LEADER_ A Collaborative Edge- and SDN-Assisted Framework for HTT...
IEEE ICC'22_ LEADER_ A Collaborative Edge- and SDN-Assisted Framework for HTT...Reza Farahani
 
CSDN_ CDN-Aware QoE Optimization inSDN-Assisted HTTP Adaptive Video Streaming...
CSDN_ CDN-Aware QoE Optimization inSDN-Assisted HTTP Adaptive Video Streaming...CSDN_ CDN-Aware QoE Optimization inSDN-Assisted HTTP Adaptive Video Streaming...
CSDN_ CDN-Aware QoE Optimization inSDN-Assisted HTTP Adaptive Video Streaming...Reza Farahani
 
ACM NOSSDAV'21-ES-HAS_ An Edge- and SDN-Assisted Framework for HTTP Adaptive ...
ACM NOSSDAV'21-ES-HAS_ An Edge- and SDN-Assisted Framework for HTTP Adaptive ...ACM NOSSDAV'21-ES-HAS_ An Edge- and SDN-Assisted Framework for HTTP Adaptive ...
ACM NOSSDAV'21-ES-HAS_ An Edge- and SDN-Assisted Framework for HTTP Adaptive ...Reza Farahani
 
Basic Security in Routing and Switching
Basic Security in Routing and SwitchingBasic Security in Routing and Switching
Basic Security in Routing and SwitchingReza Farahani
 
Quality of Service(Queuing Methods)
Quality of Service(Queuing Methods)Quality of Service(Queuing Methods)
Quality of Service(Queuing Methods)Reza Farahani
 
Fundamental of Quality of Service(QoS)
Fundamental of Quality of Service(QoS) Fundamental of Quality of Service(QoS)
Fundamental of Quality of Service(QoS) Reza Farahani
 

Más de Reza Farahani (16)

USuurey_Presentation__CollaborativeHASSystems.pdf
USuurey_Presentation__CollaborativeHASSystems.pdfUSuurey_Presentation__CollaborativeHASSystems.pdf
USuurey_Presentation__CollaborativeHASSystems.pdf
 
IEEE_ICC'23_SARENA.pdf
IEEE_ICC'23_SARENA.pdfIEEE_ICC'23_SARENA.pdf
IEEE_ICC'23_SARENA.pdf
 
RAW23-Reza.pdf
RAW23-Reza.pdfRAW23-Reza.pdf
RAW23-Reza.pdf
 
MHV_22__RICHTER_POSTER.pdf
MHV_22__RICHTER_POSTER.pdfMHV_22__RICHTER_POSTER.pdf
MHV_22__RICHTER_POSTER.pdf
 
MMSys2022-TowardsLLL-Poster.pdf
MMSys2022-TowardsLLL-Poster.pdfMMSys2022-TowardsLLL-Poster.pdf
MMSys2022-TowardsLLL-Poster.pdf
 
MMSys'21 DS- RezaFarahani.pdf
MMSys'21 DS- RezaFarahani.pdfMMSys'21 DS- RezaFarahani.pdf
MMSys'21 DS- RezaFarahani.pdf
 
IEEEGlobecom'22-OL-RICHTER.pdf
IEEEGlobecom'22-OL-RICHTER.pdfIEEEGlobecom'22-OL-RICHTER.pdf
IEEEGlobecom'22-OL-RICHTER.pdf
 
IEEE ICC'22_ LEADER_ A Collaborative Edge- and SDN-Assisted Framework for HTT...
IEEE ICC'22_ LEADER_ A Collaborative Edge- and SDN-Assisted Framework for HTT...IEEE ICC'22_ LEADER_ A Collaborative Edge- and SDN-Assisted Framework for HTT...
IEEE ICC'22_ LEADER_ A Collaborative Edge- and SDN-Assisted Framework for HTT...
 
CSDN_ CDN-Aware QoE Optimization inSDN-Assisted HTTP Adaptive Video Streaming...
CSDN_ CDN-Aware QoE Optimization inSDN-Assisted HTTP Adaptive Video Streaming...CSDN_ CDN-Aware QoE Optimization inSDN-Assisted HTTP Adaptive Video Streaming...
CSDN_ CDN-Aware QoE Optimization inSDN-Assisted HTTP Adaptive Video Streaming...
 
ACM NOSSDAV'21-ES-HAS_ An Edge- and SDN-Assisted Framework for HTTP Adaptive ...
ACM NOSSDAV'21-ES-HAS_ An Edge- and SDN-Assisted Framework for HTTP Adaptive ...ACM NOSSDAV'21-ES-HAS_ An Edge- and SDN-Assisted Framework for HTTP Adaptive ...
ACM NOSSDAV'21-ES-HAS_ An Edge- and SDN-Assisted Framework for HTTP Adaptive ...
 
Basic Security in Routing and Switching
Basic Security in Routing and SwitchingBasic Security in Routing and Switching
Basic Security in Routing and Switching
 
Quality of Service(Queuing Methods)
Quality of Service(Queuing Methods)Quality of Service(Queuing Methods)
Quality of Service(Queuing Methods)
 
Fundamental of Quality of Service(QoS)
Fundamental of Quality of Service(QoS) Fundamental of Quality of Service(QoS)
Fundamental of Quality of Service(QoS)
 
VPLS Fundamental
VPLS FundamentalVPLS Fundamental
VPLS Fundamental
 
MPLS & BASIC LDP
MPLS & BASIC LDPMPLS & BASIC LDP
MPLS & BASIC LDP
 
OSPF Fundamental
OSPF FundamentalOSPF Fundamental
OSPF Fundamental
 

Último

CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...ranjana rawat
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdfankushspencer015
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlysanyuktamishra911
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 

Último (20)

CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 

BGP Basics and Configuration Guide

  • 1. Border Gateway Protocol (BGP) By : Reza Farahani
  • 2. BGP BASICS  Border Gateway Protocol (BGP) advertises, learns, and chooses the best paths inside the global Internet.  When two ISPs connect, they typically use BGP to exchange routing information.  BGP need to advertise IPv4 prefixes, just like IGPs.  BGP needs to advertise some information so that routers can choose the best route.  BGP does establish a neighbor relationship before exchanging topology information with a neighboring router.
  • 3. IGP & BGP COMPARISON
  • 4. ASN  The integer BGP ASN uniquely identifies one organization that considers itself autonomous from other organizations.  Each company whose Enterprise network connects to the Internet can be considered to be an autonomous system and can be assigned a ASN.
  • 5. AS_SEQ PATH ATTRIBUTE  BGP uses BGP path attributes (PA) for several purposes.  PAs define information about a path, or route, through a network.  By default, if no BGP PAs have been set, BGP routers use the AS_PATH for best route choosing.  Choose the best route for a prefix based on the shortest AS_Path.  Prevent routing loops.  When a BGP router receives an update, and a route advertisement lists an AS_Path with its own ASN, the router ignores that route.
  • 8. INTERNAL AND EXTERNAL BGP  BGP defines two classes of neighbors (peers): internal BGP (iBGP) and external BGP (eBGP).  BGP neighbor is in the same ASN (iBGP) or a different ASN (eBGP).  BGP router does not update the AS_Path PA to iBGP peer.
  • 9. ASNDUPLICATE  BGP router does not update the AS_Path PA to iBGP peer.
  • 10. Comparison  If ASNs are duplicated, the BGP can actually prevent from learning about a route.
  • 11. ROUTING TOWARD INTERNET  Enterprises typically have two major classes of options for outbound routing toward the Internet: default routing and BGP.  Full updates: The ISP sends you the entire BGP table.  Partial updates: The ISP sends you routes for prefixes that might be better reached through that ISP, but not all routes, plus a default route
  • 14. BGP NEIGHBOR RELATIONSHIPS When IP redundancy exists between two eBGP peers, the eBGP neighbor commands should use loopback IP addresses to take advantage of that redundancy.
  • 15. BGP NEIGHBOR STATES & MESSAGE
  • 18. EBGP NEIGHBORSHIP REQUIREMENTS • Reachability • Neighbor ship with loopback • Introduce Loopback from Source • Next-hop-self • ebgp-multihup • Inject route to bgp
  • 19. INJECTING ROUTES INTO BGP  BGP network command  Redistribution from an IGP  The BGP network command differs from the network command used by IGPs.  For BGP : Look for a route in the router’s current routing table that exactly matches the parameters of the network command; if a route exists, put the equivalent prefix/length into the local BGP table
  • 20. Manual Summary The AS_PATH PA consists of up to four different components, called segments , as follows:
  • 21. Default Route  When you inject a default route into BGP using the network command, a route to 0.0.0.0/0 must exist in the local routing table, and the network 0.0.0.0 command is required.  Injecting a default route into BGP by using the neighbor neighbor-id default-originate [ route-map route-map-name ] BGP subcommand does not add a default route to the local BGP table; instead, it causes the advertisement of a default to the specified neighbor.
  • 22. BGP SYNCHRONIZATION The routing black hole occurs because R8 does not have a route to either of the prefixes advertised by BGP.
  • 23. BGP SYNCHRONIZATION  The original solution to this problem involves the use of BGP synchronization, along with redistributing BGP routes into the IGP. However, two later solutions provide better options today:into the IGP. However, two later solutions provide better options:  BGP route reflectors  BGP confederations
  • 24. CONFEDERATIONS  Just as the AS_SEQ and AS_SET components help prevent loops between autonomous systems, AS_CONFED_SEQ and AS_CONFED_SET help prevent loops within confederation autonomous systems.
  • 27. ROUTE REFLECTORS  With multiple clusters, at least one RR from a cluster must be peered with at least one RR in each of the other clusters.  Typically, all RRs are peered directly, creating a full mesh of RR iBGP peers among RRs.
  • 31. MULTIPROTOCOL BGP We are required to run Multiprotocol BGP (MP-BGP) only within the service provider cloud. Each MP-BGP session is an internal BGP session. MP-iBGPis required within the MPLS/VPN architecture because the BGP update needs to carry more information than just an IPv4 address. The ability to exchange addresses other than standard IPv4 addresses was introduced into BGP.
  • 34. ROUTE FILTERING 1- Like as before: Select traffic with Prefix-List Match with Route-map and policy Apply on interface 1- FILTERING BGP UPDATES BYMATCHING THE AS_PATH PA:  Regex  ACL  Apply on interface by Filter-list
  • 35. Regex
  • 37. FILTERING BGP UPDATES BYMATCHING THE AS_PATH PA
  • 38. FILTERING BGP UPDATES BYMATCHING THE AS_PATH PA
  • 39. BGP PATH ATTRIBUTES Each BGP PA can be described as either a well-known or optional PA.  Well-known PAs are either one of the following: Mandatory: The PA must be in every BGP Update.  AS_PATH PA  Discretionary: The PA is not required in every BGP Update.  ATOMIC_AGGREGATE PA
  • 40.  BGP classifies optionalPAs into two categories :  Transitive : The router should silently forward the PA to other routers without needing to consider the meaning of the PA.  Nontransitive : The router should remove the PA so that it is not propagated to any peers. BGP PATH ATTRIBUTES
  • 47. ORIGIN The only hard part is memorizing the ORIGIN codes, and that “I” is better than “E” is better than “?”.
  • 52. BGP COMMUNITIES  The BGP COMMUNITY PA provides a mechanism by which to group routes so that routing policies can be applied to all the routes with the same community.  By marking a set of routes with the same COMMUNITY string, routers can look for the COMMUNITY string and then make policy decisions— like setting some PA that impacts the BGP decision process or simply filtering the routes.

Notas del editor

  1. Today’s internet is build around a point-to-point communication abstractions. While this simple abstraction allows Internet to be highly scalable and Efficient, it is not appropriate for application that requires other communication primitives such as multicast, anycast, mobility, and so on.
  2. This is because there is a fundamental mismatch between point-to-point communication abstraction and these primitives. In particulr, the point-to-point communication abstraction implicitly assumes that there is only one sender and on receivers an that they are placed at fixed and well-known locations. Multicast, anycast, and mobility violate at least one of these assumptions. With mobility end-hosts do not have fixed locations, with multicast there are more than one receiver and sender.
  3. Finally, IL supports composable services, I.e., performing on the fly transformation such as transcoding on the data packets as they travel through the network. To achieve this we replace the packet ID with a stack of Ids, where each identifier excepting the last one identifies a transformation to be aplied on packets. The advantage of this solution versus previously proposed solutions is that you don’t need to find and configure the path,(you just insert the Ids in the proper order). Load balancing and robustness are easy to achieve. Just have more servers implementing the same operations. If one fails, the other one will take transparently over.