SlideShare uma empresa 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 ?

Mais conteúdo relacionado

Mais procurados

Mais procurados (20)

Border Gatway Protocol
Border Gatway ProtocolBorder Gatway Protocol
Border Gatway Protocol
 
How BGP Works
How BGP WorksHow BGP Works
How BGP Works
 
BGP (border gateway routing protocol)
BGP (border gateway routing protocol)BGP (border gateway routing protocol)
BGP (border gateway routing protocol)
 
Ethernet VPN (EVPN) EVerything Provider Needs
Ethernet VPN (EVPN) EVerything Provider NeedsEthernet VPN (EVPN) EVerything Provider Needs
Ethernet VPN (EVPN) EVerything Provider Needs
 
MPLS Layer 3 VPN
MPLS Layer 3 VPN MPLS Layer 3 VPN
MPLS Layer 3 VPN
 
Eigrp.ppt
Eigrp.pptEigrp.ppt
Eigrp.ppt
 
Mpls
MplsMpls
Mpls
 
Mpls L3_vpn
Mpls L3_vpnMpls L3_vpn
Mpls L3_vpn
 
Bgp tutorial for ISP
Bgp tutorial for ISPBgp tutorial for ISP
Bgp tutorial for ISP
 
CCNP ROUTE V7 CH6
CCNP ROUTE V7 CH6CCNP ROUTE V7 CH6
CCNP ROUTE V7 CH6
 
CCNP ROUTE V7 CH7
CCNP ROUTE V7 CH7CCNP ROUTE V7 CH7
CCNP ROUTE V7 CH7
 
BGP Advance Technique by Steven & James
BGP Advance Technique by Steven & JamesBGP Advance Technique by Steven & James
BGP Advance Technique by Steven & James
 
Multiprotocol label switching (mpls) - Networkshop44
Multiprotocol label switching (mpls)  - Networkshop44Multiprotocol label switching (mpls)  - Networkshop44
Multiprotocol label switching (mpls) - Networkshop44
 
Bgp protocol
Bgp protocolBgp protocol
Bgp protocol
 
Ospf.ppt
Ospf.pptOspf.ppt
Ospf.ppt
 
Segment Routing Advanced Use Cases - Cisco Live 2016 USA
Segment Routing Advanced Use Cases - Cisco Live 2016 USASegment Routing Advanced Use Cases - Cisco Live 2016 USA
Segment Routing Advanced Use Cases - Cisco Live 2016 USA
 
MPLS Presentation
MPLS PresentationMPLS Presentation
MPLS Presentation
 
BGP (Border Gateway Protocol)
BGP (Border Gateway Protocol)BGP (Border Gateway Protocol)
BGP (Border Gateway Protocol)
 
MPLS Traffic Engineering
MPLS Traffic EngineeringMPLS Traffic Engineering
MPLS Traffic Engineering
 
Mpls technology
Mpls technologyMpls technology
Mpls technology
 

Semelhante a BGP

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
 
Study Notes BGP Exam
Study Notes BGP ExamStudy Notes BGP Exam
Study Notes BGP ExamDuane Bodle
 
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
 
Loop prevention mechanism on BGP routing
Loop prevention mechanism on BGP routingLoop prevention mechanism on BGP routing
Loop prevention mechanism on BGP routingbwumnc22006
 
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
 

Semelhante a BGP (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
 
Study Notes BGP Exam
Study Notes BGP ExamStudy Notes BGP Exam
Study Notes BGP Exam
 
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
 
SANOG23-BGP-Techniques.pdf
SANOG23-BGP-Techniques.pdfSANOG23-BGP-Techniques.pdf
SANOG23-BGP-Techniques.pdf
 
Loop prevention mechanism on BGP routing
Loop prevention mechanism on BGP routingLoop prevention mechanism on BGP routing
Loop prevention mechanism on BGP routing
 
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
 
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
 

Mais 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
 

Mais 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

DR PROF ING GURUDUTT SAHNI WIKIPEDIA.pdf
DR PROF ING GURUDUTT SAHNI WIKIPEDIA.pdfDR PROF ING GURUDUTT SAHNI WIKIPEDIA.pdf
DR PROF ING GURUDUTT SAHNI WIKIPEDIA.pdfDrGurudutt
 
Electrical shop management system project report.pdf
Electrical shop management system project report.pdfElectrical shop management system project report.pdf
Electrical shop management system project report.pdfKamal Acharya
 
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdf
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdfONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdf
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdfKamal Acharya
 
Intelligent Agents, A discovery on How A Rational Agent Acts
Intelligent Agents, A discovery on How A Rational Agent ActsIntelligent Agents, A discovery on How A Rational Agent Acts
Intelligent Agents, A discovery on How A Rational Agent ActsSheetal Jain
 
ANSI(ST)-III_Manufacturing-I_05052020.pdf
ANSI(ST)-III_Manufacturing-I_05052020.pdfANSI(ST)-III_Manufacturing-I_05052020.pdf
ANSI(ST)-III_Manufacturing-I_05052020.pdfBertinKamsipa1
 
NEWLETTER FRANCE HELICES/ SDS SURFACE DRIVES - MAY 2024
NEWLETTER FRANCE HELICES/ SDS SURFACE DRIVES - MAY 2024NEWLETTER FRANCE HELICES/ SDS SURFACE DRIVES - MAY 2024
NEWLETTER FRANCE HELICES/ SDS SURFACE DRIVES - MAY 2024EMMANUELLEFRANCEHELI
 
Quiz application system project report..pdf
Quiz application system project report..pdfQuiz application system project report..pdf
Quiz application system project report..pdfKamal Acharya
 
Supermarket billing system project report..pdf
Supermarket billing system project report..pdfSupermarket billing system project report..pdf
Supermarket billing system project report..pdfKamal Acharya
 
Theory for How to calculation capacitor bank
Theory for How to calculation capacitor bankTheory for How to calculation capacitor bank
Theory for How to calculation capacitor banktawat puangthong
 
Involute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdf
Involute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdfInvolute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdf
Involute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdfJNTUA
 
Linux Systems Programming: Semaphores, Shared Memory, and Message Queues
Linux Systems Programming: Semaphores, Shared Memory, and Message QueuesLinux Systems Programming: Semaphores, Shared Memory, and Message Queues
Linux Systems Programming: Semaphores, Shared Memory, and Message QueuesRashidFaridChishti
 
Complex plane, Modulus, Argument, Graphical representation of a complex numbe...
Complex plane, Modulus, Argument, Graphical representation of a complex numbe...Complex plane, Modulus, Argument, Graphical representation of a complex numbe...
Complex plane, Modulus, Argument, Graphical representation of a complex numbe...MohammadAliNayeem
 
Diploma Engineering Drawing Qp-2024 Ece .pdf
Diploma Engineering Drawing Qp-2024 Ece .pdfDiploma Engineering Drawing Qp-2024 Ece .pdf
Diploma Engineering Drawing Qp-2024 Ece .pdfJNTUA
 
RESORT MANAGEMENT AND RESERVATION SYSTEM PROJECT REPORT.pdf
RESORT MANAGEMENT AND RESERVATION SYSTEM PROJECT REPORT.pdfRESORT MANAGEMENT AND RESERVATION SYSTEM PROJECT REPORT.pdf
RESORT MANAGEMENT AND RESERVATION SYSTEM PROJECT REPORT.pdfKamal Acharya
 
ChatGPT Prompt Engineering for project managers.pdf
ChatGPT Prompt Engineering for project managers.pdfChatGPT Prompt Engineering for project managers.pdf
ChatGPT Prompt Engineering for project managers.pdfqasastareekh
 
ROAD CONSTRUCTION PRESENTATION.PPTX.pptx
ROAD CONSTRUCTION PRESENTATION.PPTX.pptxROAD CONSTRUCTION PRESENTATION.PPTX.pptx
ROAD CONSTRUCTION PRESENTATION.PPTX.pptxGagandeepKaur617299
 
"United Nations Park" Site Visit Report.
"United Nations Park" Site  Visit Report."United Nations Park" Site  Visit Report.
"United Nations Park" Site Visit Report.MdManikurRahman
 
Attraction and Repulsion type Moving Iron Instruments.pptx
Attraction and Repulsion type Moving Iron Instruments.pptxAttraction and Repulsion type Moving Iron Instruments.pptx
Attraction and Repulsion type Moving Iron Instruments.pptxkarthikeyanS725446
 
How to Design and spec harmonic filter.pdf
How to Design and spec harmonic filter.pdfHow to Design and spec harmonic filter.pdf
How to Design and spec harmonic filter.pdftawat puangthong
 
Artificial Intelligence Bayesian Reasoning
Artificial Intelligence Bayesian ReasoningArtificial Intelligence Bayesian Reasoning
Artificial Intelligence Bayesian Reasoninghotman30312
 

Último (20)

DR PROF ING GURUDUTT SAHNI WIKIPEDIA.pdf
DR PROF ING GURUDUTT SAHNI WIKIPEDIA.pdfDR PROF ING GURUDUTT SAHNI WIKIPEDIA.pdf
DR PROF ING GURUDUTT SAHNI WIKIPEDIA.pdf
 
Electrical shop management system project report.pdf
Electrical shop management system project report.pdfElectrical shop management system project report.pdf
Electrical shop management system project report.pdf
 
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdf
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdfONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdf
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdf
 
Intelligent Agents, A discovery on How A Rational Agent Acts
Intelligent Agents, A discovery on How A Rational Agent ActsIntelligent Agents, A discovery on How A Rational Agent Acts
Intelligent Agents, A discovery on How A Rational Agent Acts
 
ANSI(ST)-III_Manufacturing-I_05052020.pdf
ANSI(ST)-III_Manufacturing-I_05052020.pdfANSI(ST)-III_Manufacturing-I_05052020.pdf
ANSI(ST)-III_Manufacturing-I_05052020.pdf
 
NEWLETTER FRANCE HELICES/ SDS SURFACE DRIVES - MAY 2024
NEWLETTER FRANCE HELICES/ SDS SURFACE DRIVES - MAY 2024NEWLETTER FRANCE HELICES/ SDS SURFACE DRIVES - MAY 2024
NEWLETTER FRANCE HELICES/ SDS SURFACE DRIVES - MAY 2024
 
Quiz application system project report..pdf
Quiz application system project report..pdfQuiz application system project report..pdf
Quiz application system project report..pdf
 
Supermarket billing system project report..pdf
Supermarket billing system project report..pdfSupermarket billing system project report..pdf
Supermarket billing system project report..pdf
 
Theory for How to calculation capacitor bank
Theory for How to calculation capacitor bankTheory for How to calculation capacitor bank
Theory for How to calculation capacitor bank
 
Involute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdf
Involute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdfInvolute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdf
Involute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdf
 
Linux Systems Programming: Semaphores, Shared Memory, and Message Queues
Linux Systems Programming: Semaphores, Shared Memory, and Message QueuesLinux Systems Programming: Semaphores, Shared Memory, and Message Queues
Linux Systems Programming: Semaphores, Shared Memory, and Message Queues
 
Complex plane, Modulus, Argument, Graphical representation of a complex numbe...
Complex plane, Modulus, Argument, Graphical representation of a complex numbe...Complex plane, Modulus, Argument, Graphical representation of a complex numbe...
Complex plane, Modulus, Argument, Graphical representation of a complex numbe...
 
Diploma Engineering Drawing Qp-2024 Ece .pdf
Diploma Engineering Drawing Qp-2024 Ece .pdfDiploma Engineering Drawing Qp-2024 Ece .pdf
Diploma Engineering Drawing Qp-2024 Ece .pdf
 
RESORT MANAGEMENT AND RESERVATION SYSTEM PROJECT REPORT.pdf
RESORT MANAGEMENT AND RESERVATION SYSTEM PROJECT REPORT.pdfRESORT MANAGEMENT AND RESERVATION SYSTEM PROJECT REPORT.pdf
RESORT MANAGEMENT AND RESERVATION SYSTEM PROJECT REPORT.pdf
 
ChatGPT Prompt Engineering for project managers.pdf
ChatGPT Prompt Engineering for project managers.pdfChatGPT Prompt Engineering for project managers.pdf
ChatGPT Prompt Engineering for project managers.pdf
 
ROAD CONSTRUCTION PRESENTATION.PPTX.pptx
ROAD CONSTRUCTION PRESENTATION.PPTX.pptxROAD CONSTRUCTION PRESENTATION.PPTX.pptx
ROAD CONSTRUCTION PRESENTATION.PPTX.pptx
 
"United Nations Park" Site Visit Report.
"United Nations Park" Site  Visit Report."United Nations Park" Site  Visit Report.
"United Nations Park" Site Visit Report.
 
Attraction and Repulsion type Moving Iron Instruments.pptx
Attraction and Repulsion type Moving Iron Instruments.pptxAttraction and Repulsion type Moving Iron Instruments.pptx
Attraction and Repulsion type Moving Iron Instruments.pptx
 
How to Design and spec harmonic filter.pdf
How to Design and spec harmonic filter.pdfHow to Design and spec harmonic filter.pdf
How to Design and spec harmonic filter.pdf
 
Artificial Intelligence Bayesian Reasoning
Artificial Intelligence Bayesian ReasoningArtificial Intelligence Bayesian Reasoning
Artificial Intelligence Bayesian Reasoning
 

BGP

  • 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 do 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.