SlideShare a Scribd company logo
1 of 24
Border Gateway Protocol
(BGP)
Terms
• IGP (Interior Gateway Protocol) - RIP, IGRP, EIGRP, OSPF =
Routing protocol used to exchange routing information within an
autonomous system.
• EGP (Exterior Gateway Protocol) - BGP = Routing protocol used to
exchange routing information between autonomous systems.
• Autonomous System = (From RFC 1771) “A set of routers under
the single technical administration, using an IGP and common
metrics to route packets within the AS, and using an EGP to route
packets to other AS’s.”
• BGP is a path vector or an advanced distance vector routing
protocol.
When to use BGP and when not to use BGP
Use BGP when the effects of BGP are well understood and one of the
following conditions exist:
• The AS allows packets to transit through it to reach another AS
(transit AS).
• The AS has multiple connections to other AS’s.
• The flow of traffic entering or exiting the AS must be manipulated.
This is policy based routing and based on attributes.
When to use BGP and when not to use BGP
Do not use BGP if you have one or more of the following conditions:
• A single connection to the Internet or another AS
• No concern for routing policy or routing selection
• A lack of memory or processing power on your routers to handle
constant BGP updates
• A limited understanding of route filtering and BGP path selection
process
• Low bandwidth between AS’s
Overview of autonomous systems
• An AS is a group of routers that share similar routing policies and
operate within a single administrative domain.
• An AS can be a collection of routers running a single IGP, or it can
be a collection of routers running different protocols all belonging to
one organization.
• In either case, the outside world views the entire Autonomous
System as a single entity.
Overview of autonomous systems
AS Numbers
• Each AS has an identifying number that is assigned by an Internet
registry or a service provider.
• This number is between 1 and 65,535.
• AS numbers within the range of 64,512 through 65,535 are reserved
for private use.
Single-homed autonomous systems
• If an AS has only one exit point to outside networks, it is
considered a single-homed system.
• Single-homed autonomous systems are often referred to as stub
networks or stubs.
• Stubs can rely on a default route to handle all traffic destined for
non-local networks.
• BGP is not normally needed in this situation.
Static
Route
Multihomed nontransit autonomous systems
• Multihomed non-transit autonomous systems do not really need to run
BGP4 with their providers.
• It is usually recommended and often required by ISPs.
Or same ISP
• Incoming route advertisements influence your outgoing traffic, and
outgoing advertisements influence your incoming traffic.
• If the provider advertises routes into your AS via BGP, your internal
routers have more accurate information about external destinations.
– BGP also provides tools for setting routing policies for external
destinations.
• If your internal routes are advertised to the provider via BGP, you have
influence over which routes are advertised at which exit point.
– BGP also provides tools for your influencing (to some degree) the
choices the provider makes when sending traffic into your AS.
Multihomed nontransit autonomous systems
• When BGP is running inside an AS, it is referred to as Internal BGP
(IBGP).
• When BGP runs between autonomous systems, it is called External
BGP (EBGP).
• If the role of a BGP router is to route IBGP traffic, it is called a transit
router.
• Routers that sit on the boundary of an AS and that use EBGP to
exchange information with the ISP are called border or edge routers.
Multi-homed Transit Autonomous Systems
Edge Router
BGP Basics
• BGP is a path vector routing protocol.
• Defined in RFC 1772
• BGP is a distance vector routing protocol, in that it relies on
downstream neighbors to pass along routes from their routing table.
• BGP uses a list of AS numbers through which a packet must pass to
reach a destination.
BGP Message Types
• Before establishing a BGP peer connection the two neighbors must
perform the standard TCP three-way handshake and open a TCP
connection to port 179.
• After the TCP session is established, BGP peers exchanges several
messages to open and confirm connection parameters and to send
BGP routing information.
• All BGP messages are unicast to the one neighbor over the TCP
connection.
• There are four BGP message types:
– Type 1: OPEN
– Type 2: KEEPALIVE
– Type 3: UPDATE
– Type 4: NOTIFICATION
Path Attributes
Optional transitive
• An attribute that may or may not be, recognized by all BGP
implementations (thus, optional).
• Because the attribute is transitive, BGP should accept and
advertise the attribute even if it isn’t recognized.
Example: COMMUNITY
Path Attributes
Optional non-transitive
• An attribute that may or may not be, recognized by all BGP
implementations.
• Whether or not the receiving BGP router recognizes the attribute, it
is non-transitive, and should not be passed along to other
BGP peers.
Example: ORIGINATOR_ID
IBGP vs EBGP
• When BGP is running inside an
AS, it is referred to as Internal
BGP (IBGP).
• When BGP runs between
autonomous systems, it is called
External BGP (EBGP).
AS 100
AS 200
Vail
Aspen
Taos
192.168.100.0/24
192.168.200.0/24
192.168.1.216/30
192.168.1.226/30
192.168.1.225/30
192.168.1.221/30
192.168.1.222/30
192.168.1.224/30
192.168.1.220/30
EBGP
IBGP
…
• All BGP speakers within an AS must establish a peer relationship with
each other, that is, the BGP speakers within an AS must be fully
meshed logically. (later)
• AS 200 is a transit AS for AS 100 and AS 300---that is, AS 200 is
used to transfer packets between AS 100 and AS 300.
BGP Route Selection Algorithm
Summary of the BGP Path Selection Process
• BGP selects only one path as the best path.
• When the path is selected, BGP puts the selected path in its routing table and propagates the
path to its neighbors.
• BGP uses the following criteria, in the order presented, to select a path for a destination:
1. If the path specifies a next hop that is inaccessible, drop the update
2. Prefer the path with the largest weight.
3. If the weights are the same, prefer the path with the largest local preference.
4. If the local preferences are the same, prefer the path that was originated by BGP running on this
router.
5. If no route was originated, prefer the route that has the shortest AS path.
6. If all paths have the same AS path length, prefer the path with the lowest origin type (where IGP
is lower than EGP, and EGP is lower than Incomplete).
7. If the origin codes are the same, prefer the path with the lowest MED attribute.
8. If the paths have the same MED, prefer the external path over the internal path.
9. If the paths are still the same, prefer the path through the closest IGP neighbor.
10. Prefer the path with the lowest IP address, as specified by the BGP router ID.
NEXT_HOP
• The NEXT_HOP attribute is a well-known mandatory attribute (type code 3).
• In terms of an IGP, such as RIP, the “next hop” to reach a route is the IP
address of the router that has announced the route.
• The next hop is the IP address of the EBGP neighbor from which the route
was learned.
The WEIGHT attribute
The weight attribute is a special Cisco attribute that is used in the path
selection process when there is more than one route to the same
destination.
The weight attribute is local to the router on which it is assigned,
and it is not propagated in routing updates.
By default, the weight attribute is 32768 for paths that the router
originates and zero for other paths.
Routes with a higher weight are preferred when there are multiple
routes to the same destination.
The WEIGHT attribute
There are three ways to set the weight for updates coming in from
Router A:
•Using the neighbor weight Command to Set the Weight
Attribute
•Using an Access List to Set the Weight Attribute
•Using a Route Map to Set the Weight Attribute
The LOCAL_PREF Attribute
• Well-known discretionary attribute (type code 5).
• Degree of preference given to a route to compare it with
other routes for the same destination
– Higher LOCAL_PREF values are preferred
• Local to the AS
– Exchanged between IBGP peers only
– It is not advertised to EBGP peers
• The path with the higher preference is preferred (the
default value of the local preference attribute is 100).
The MED attribute
• The MULTI_EXIT_DISC (Multi-Exit Discriminator)
attribute is an optional non-transitive attribute (type code
4).
• Informs external neighbors about the preferred path
into an AS that has multiple entry points.
• A lower MULTI_EXIT_DISC (or MED) is preferred over a
higher MED.
• The default value of the MED attribute is 0.
BGP Route Filtering using ACL
• ACLs come in two varieties : Numbered and named
• Each of these references to ACLs supports two types of filtering:
standard and extended.
• Standard IP ACLs can filter only on the source IP address inside a
packet.
• Whereas an extended IP ACLs can filter on the source and
destination IP addresses in the packet.
• There are two actions an ACL can take: permit or deny.
THANK YOU

More Related Content

What's hot

Virtual Extensible LAN (VXLAN)
Virtual Extensible LAN (VXLAN)Virtual Extensible LAN (VXLAN)
Virtual Extensible LAN (VXLAN)KHNOG
 
CCNA3 Verson6 Chapter4
CCNA3 Verson6 Chapter4CCNA3 Verson6 Chapter4
CCNA3 Verson6 Chapter4Chaing Ravuth
 
Demystifying EVPN in the data center: Part 1 in 2 episode series
Demystifying EVPN in the data center: Part 1 in 2 episode seriesDemystifying EVPN in the data center: Part 1 in 2 episode series
Demystifying EVPN in the data center: Part 1 in 2 episode seriesCumulus Networks
 
Dynamische Routingprotokolle Aufzucht und Pflege - OSPF
Dynamische Routingprotokolle Aufzucht und Pflege - OSPFDynamische Routingprotokolle Aufzucht und Pflege - OSPF
Dynamische Routingprotokolle Aufzucht und Pflege - OSPFMaximilan Wilhelm
 
Juniper MPLS Tutorial by Soricelli
Juniper MPLS Tutorial by SoricelliJuniper MPLS Tutorial by Soricelli
Juniper MPLS Tutorial by SoricelliFebrian ‎
 
Gpon the technology --rev 1
Gpon the technology --rev 1Gpon the technology --rev 1
Gpon the technology --rev 1guerrid
 
CCNAv5 - S3: Chapter6 Multiarea OSPF
CCNAv5 - S3: Chapter6 Multiarea OSPFCCNAv5 - S3: Chapter6 Multiarea OSPF
CCNAv5 - S3: Chapter6 Multiarea OSPFVuz Dở Hơi
 
Chapter 8 - IP Subnetting, Troubleshooting and Introduction to NAT 9e
Chapter 8 - IP Subnetting, Troubleshooting and Introduction to NAT 9eChapter 8 - IP Subnetting, Troubleshooting and Introduction to NAT 9e
Chapter 8 - IP Subnetting, Troubleshooting and Introduction to NAT 9eadpeer
 
Route Origin Validation With Routinator - A MANRS Approach for Operators
Route Origin Validation With Routinator - A MANRS Approach for OperatorsRoute Origin Validation With Routinator - A MANRS Approach for Operators
Route Origin Validation With Routinator - A MANRS Approach for OperatorsBangladesh Network Operators Group
 
Building DataCenter networks with VXLAN BGP-EVPN
Building DataCenter networks with VXLAN BGP-EVPNBuilding DataCenter networks with VXLAN BGP-EVPN
Building DataCenter networks with VXLAN BGP-EVPNCisco Canada
 
CCNAS :Multi Area OSPF
CCNAS :Multi Area OSPFCCNAS :Multi Area OSPF
CCNAS :Multi Area OSPFrooree29
 
An introduction to MPLS networks and applications
An introduction to MPLS networks and applicationsAn introduction to MPLS networks and applications
An introduction to MPLS networks and applicationsShawn Zandi
 
494197038-Baseband-6648-Commercial-Presentation.pdf
494197038-Baseband-6648-Commercial-Presentation.pdf494197038-Baseband-6648-Commercial-Presentation.pdf
494197038-Baseband-6648-Commercial-Presentation.pdfmehdiberenji
 

What's hot (20)

Virtual Extensible LAN (VXLAN)
Virtual Extensible LAN (VXLAN)Virtual Extensible LAN (VXLAN)
Virtual Extensible LAN (VXLAN)
 
Bgp (1)
Bgp (1)Bgp (1)
Bgp (1)
 
CCNA3 Verson6 Chapter4
CCNA3 Verson6 Chapter4CCNA3 Verson6 Chapter4
CCNA3 Verson6 Chapter4
 
Demystifying EVPN in the data center: Part 1 in 2 episode series
Demystifying EVPN in the data center: Part 1 in 2 episode seriesDemystifying EVPN in the data center: Part 1 in 2 episode series
Demystifying EVPN in the data center: Part 1 in 2 episode series
 
Dynamische Routingprotokolle Aufzucht und Pflege - OSPF
Dynamische Routingprotokolle Aufzucht und Pflege - OSPFDynamische Routingprotokolle Aufzucht und Pflege - OSPF
Dynamische Routingprotokolle Aufzucht und Pflege - OSPF
 
Ospf
OspfOspf
Ospf
 
Juniper MPLS Tutorial by Soricelli
Juniper MPLS Tutorial by SoricelliJuniper MPLS Tutorial by Soricelli
Juniper MPLS Tutorial by Soricelli
 
Gpon the technology --rev 1
Gpon the technology --rev 1Gpon the technology --rev 1
Gpon the technology --rev 1
 
CCNAv5 - S3: Chapter6 Multiarea OSPF
CCNAv5 - S3: Chapter6 Multiarea OSPFCCNAv5 - S3: Chapter6 Multiarea OSPF
CCNAv5 - S3: Chapter6 Multiarea OSPF
 
Chapter 8 - IP Subnetting, Troubleshooting and Introduction to NAT 9e
Chapter 8 - IP Subnetting, Troubleshooting and Introduction to NAT 9eChapter 8 - IP Subnetting, Troubleshooting and Introduction to NAT 9e
Chapter 8 - IP Subnetting, Troubleshooting and Introduction to NAT 9e
 
Mpls
MplsMpls
Mpls
 
Bgp
BgpBgp
Bgp
 
Route Origin Validation With Routinator - A MANRS Approach for Operators
Route Origin Validation With Routinator - A MANRS Approach for OperatorsRoute Origin Validation With Routinator - A MANRS Approach for Operators
Route Origin Validation With Routinator - A MANRS Approach for Operators
 
CCNP Route EIGRP Overview
CCNP Route  EIGRP OverviewCCNP Route  EIGRP Overview
CCNP Route EIGRP Overview
 
Building DataCenter networks with VXLAN BGP-EVPN
Building DataCenter networks with VXLAN BGP-EVPNBuilding DataCenter networks with VXLAN BGP-EVPN
Building DataCenter networks with VXLAN BGP-EVPN
 
CCNAS :Multi Area OSPF
CCNAS :Multi Area OSPFCCNAS :Multi Area OSPF
CCNAS :Multi Area OSPF
 
An introduction to MPLS networks and applications
An introduction to MPLS networks and applicationsAn introduction to MPLS networks and applications
An introduction to MPLS networks and applications
 
494197038-Baseband-6648-Commercial-Presentation.pdf
494197038-Baseband-6648-Commercial-Presentation.pdf494197038-Baseband-6648-Commercial-Presentation.pdf
494197038-Baseband-6648-Commercial-Presentation.pdf
 
CCNP ROUTE V7 CH7
CCNP ROUTE V7 CH7CCNP ROUTE V7 CH7
CCNP ROUTE V7 CH7
 
Border Gatway Protocol
Border Gatway ProtocolBorder Gatway Protocol
Border Gatway Protocol
 

Viewers also liked

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
 
Border Gateway Protocol
Border Gateway ProtocolBorder Gateway Protocol
Border Gateway ProtocolKashif Latif
 
Troubleshooting Industrial Ethernet & TCP/IP Networks
Troubleshooting Industrial Ethernet & TCP/IP NetworksTroubleshooting Industrial Ethernet & TCP/IP Networks
Troubleshooting Industrial Ethernet & TCP/IP NetworksLiving Online
 
Ios interior routing_protocols
Ios interior routing_protocolsIos interior routing_protocols
Ios interior routing_protocolsMohamed Gamel
 
CCNA R&S-11-Troubleshooting Ethernet LANs
CCNA R&S-11-Troubleshooting Ethernet LANsCCNA R&S-11-Troubleshooting Ethernet LANs
CCNA R&S-11-Troubleshooting Ethernet LANsAmir Jafari
 
CCNA R&S-06-Fundamentals of TCP-IP Transport and Applications
CCNA R&S-06-Fundamentals of TCP-IP Transport and ApplicationsCCNA R&S-06-Fundamentals of TCP-IP Transport and Applications
CCNA R&S-06-Fundamentals of TCP-IP Transport and ApplicationsAmir Jafari
 
Presentation on basic networking
Presentation on basic networkingPresentation on basic networking
Presentation on basic networkingqshamim07
 
Cisco trouble shooting
Cisco trouble shootingCisco trouble shooting
Cisco trouble shootingHamid Younesi
 
Junos vs ios Troubleshooting comands
Junos vs ios Troubleshooting comands Junos vs ios Troubleshooting comands
Junos vs ios Troubleshooting comands sandeep kumar
 
Study Notes BGP Exam
Study Notes BGP ExamStudy Notes BGP Exam
Study Notes BGP ExamDuane Bodle
 
CCCNA R&S-02-The TCP-IP and OSI Networking Models
CCCNA R&S-02-The TCP-IP and OSI Networking ModelsCCCNA R&S-02-The TCP-IP and OSI Networking Models
CCCNA R&S-02-The TCP-IP and OSI Networking ModelsAmir Jafari
 
Vpn site to site
Vpn site to siteVpn site to site
Vpn site to siteIT Tech
 
Top Down Network Design - ebrahma.com
Top Down Network Design - ebrahma.comTop Down Network Design - ebrahma.com
Top Down Network Design - ebrahma.comPawan Sharma
 

Viewers also liked (19)

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)
 
BGP protocol presentation
BGP protocol  presentationBGP protocol  presentation
BGP protocol presentation
 
Border Gateway Protocol
Border Gateway ProtocolBorder Gateway Protocol
Border Gateway Protocol
 
Troubleshooting Industrial Ethernet & TCP/IP Networks
Troubleshooting Industrial Ethernet & TCP/IP NetworksTroubleshooting Industrial Ethernet & TCP/IP Networks
Troubleshooting Industrial Ethernet & TCP/IP Networks
 
Bgp protocol
Bgp protocolBgp protocol
Bgp protocol
 
Ios interior routing_protocols
Ios interior routing_protocolsIos interior routing_protocols
Ios interior routing_protocols
 
Bgp
BgpBgp
Bgp
 
CCNA R&S-11-Troubleshooting Ethernet LANs
CCNA R&S-11-Troubleshooting Ethernet LANsCCNA R&S-11-Troubleshooting Ethernet LANs
CCNA R&S-11-Troubleshooting Ethernet LANs
 
CCNA R&S-06-Fundamentals of TCP-IP Transport and Applications
CCNA R&S-06-Fundamentals of TCP-IP Transport and ApplicationsCCNA R&S-06-Fundamentals of TCP-IP Transport and Applications
CCNA R&S-06-Fundamentals of TCP-IP Transport and Applications
 
Presentation on basic networking
Presentation on basic networkingPresentation on basic networking
Presentation on basic networking
 
Cisco trouble shooting
Cisco trouble shootingCisco trouble shooting
Cisco trouble shooting
 
Junos vs ios Troubleshooting comands
Junos vs ios Troubleshooting comands Junos vs ios Troubleshooting comands
Junos vs ios Troubleshooting comands
 
Study Notes BGP Exam
Study Notes BGP ExamStudy Notes BGP Exam
Study Notes BGP Exam
 
IPsec vpn
IPsec vpnIPsec vpn
IPsec vpn
 
CCCNA R&S-02-The TCP-IP and OSI Networking Models
CCCNA R&S-02-The TCP-IP and OSI Networking ModelsCCCNA R&S-02-The TCP-IP and OSI Networking Models
CCCNA R&S-02-The TCP-IP and OSI Networking Models
 
Top down design
Top down designTop down design
Top down design
 
BGP Overview
BGP OverviewBGP Overview
BGP Overview
 
Vpn site to site
Vpn site to siteVpn site to site
Vpn site to site
 
Top Down Network Design - ebrahma.com
Top Down Network Design - ebrahma.comTop Down Network Design - ebrahma.com
Top Down Network Design - ebrahma.com
 

Similar to Bgp training

15 coms 525 tcpip - border gateway protocols
15    coms 525 tcpip - border gateway protocols15    coms 525 tcpip - border gateway protocols
15 coms 525 tcpip - border gateway protocolsPalanivel Kuppusamy
 
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
 
BGP Path Selection & Attributes BGP Weight & BGP AS-Path Prepending
BGP Path Selection & Attributes BGP Weight & BGP AS-Path PrependingBGP Path Selection & Attributes BGP Weight & BGP AS-Path Prepending
BGP Path Selection & Attributes BGP Weight & BGP AS-Path PrependingShawan Roy
 
bgp features presentation routing protocle
bgp features presentation routing protoclebgp features presentation routing protocle
bgp features presentation routing protocleBadr Belhajja
 
Border Gateway Protocol (BGP)
Border Gateway Protocol (BGP)Border Gateway Protocol (BGP)
Border Gateway Protocol (BGP)Nutan Singh
 
Describe the different metrics that BGP can use in building a routing.docx
Describe the different metrics that BGP can use in building a routing.docxDescribe the different metrics that BGP can use in building a routing.docx
Describe the different metrics that BGP can use in building a routing.docxearleanp
 
Sept 2017 dynamic routing
Sept 2017   dynamic routingSept 2017   dynamic routing
Sept 2017 dynamic routingshahin raj
 
U5CSS2 (1).pdf
U5CSS2 (1).pdfU5CSS2 (1).pdf
U5CSS2 (1).pdfchelsi33
 
Final Presentation on the Network layer
Final Presentation on the Network layerFinal Presentation on the Network layer
Final Presentation on the Network layerZee Haak
 
Routing Protocol in detail
Routing Protocol in detailRouting Protocol in detail
Routing Protocol in detailDil_E_Dastan
 

Similar to Bgp training (20)

15 coms 525 tcpip - border gateway protocols
15    coms 525 tcpip - border gateway protocols15    coms 525 tcpip - border gateway protocols
15 coms 525 tcpip - border gateway protocols
 
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
 
BGP Path Selection & Attributes BGP Weight & BGP AS-Path Prepending
BGP Path Selection & Attributes BGP Weight & BGP AS-Path PrependingBGP Path Selection & Attributes BGP Weight & BGP AS-Path Prepending
BGP Path Selection & Attributes BGP Weight & BGP AS-Path Prepending
 
BGP.pdf
BGP.pdfBGP.pdf
BGP.pdf
 
bgp features presentation routing protocle
bgp features presentation routing protoclebgp features presentation routing protocle
bgp features presentation routing protocle
 
Part1
Part1Part1
Part1
 
BGP.ppt
BGP.pptBGP.ppt
BGP.ppt
 
Border Gateway Protocol (BGP)
Border Gateway Protocol (BGP)Border Gateway Protocol (BGP)
Border Gateway Protocol (BGP)
 
Describe the different metrics that BGP can use in building a routing.docx
Describe the different metrics that BGP can use in building a routing.docxDescribe the different metrics that BGP can use in building a routing.docx
Describe the different metrics that BGP can use in building a routing.docx
 
Part8-ibgp.pptx
Part8-ibgp.pptxPart8-ibgp.pptx
Part8-ibgp.pptx
 
Sept 2017 dynamic routing
Sept 2017   dynamic routingSept 2017   dynamic routing
Sept 2017 dynamic routing
 
BORDER GATEWAY PROTOCOL
BORDER GATEWAY PROTOCOLBORDER GATEWAY PROTOCOL
BORDER GATEWAY PROTOCOL
 
Bigbgp (1)
Bigbgp (1)Bigbgp (1)
Bigbgp (1)
 
BGP
BGP BGP
BGP
 
U5CSS2 (1).pdf
U5CSS2 (1).pdfU5CSS2 (1).pdf
U5CSS2 (1).pdf
 
Final Presentation on the Network layer
Final Presentation on the Network layerFinal Presentation on the Network layer
Final Presentation on the Network layer
 
Bgp Toc
Bgp TocBgp Toc
Bgp Toc
 
Routing algorithms
Routing algorithmsRouting algorithms
Routing algorithms
 
Routing Protocol in detail
Routing Protocol in detailRouting Protocol in detail
Routing Protocol in detail
 
Routing Protocols
Routing ProtocolsRouting Protocols
Routing Protocols
 

Recently uploaded

VIP Kolkata Call Girls Salt Lake 8250192130 Available With Room
VIP Kolkata Call Girls Salt Lake 8250192130 Available With RoomVIP Kolkata Call Girls Salt Lake 8250192130 Available With Room
VIP Kolkata Call Girls Salt Lake 8250192130 Available With Roomgirls4nights
 
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024APNIC
 
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
On Starlink, presented by Geoff Huston at NZNOG 2024
On Starlink, presented by Geoff Huston at NZNOG 2024On Starlink, presented by Geoff Huston at NZNOG 2024
On Starlink, presented by Geoff Huston at NZNOG 2024APNIC
 
Russian Call Girls in Kolkata Samaira 🤌 8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Samaira 🤌  8250192130 🚀 Vip Call Girls KolkataRussian Call Girls in Kolkata Samaira 🤌  8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Samaira 🤌 8250192130 🚀 Vip Call Girls Kolkataanamikaraghav4
 
Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
AlbaniaDreamin24 - How to easily use an API with Flows
AlbaniaDreamin24 - How to easily use an API with FlowsAlbaniaDreamin24 - How to easily use an API with Flows
AlbaniaDreamin24 - How to easily use an API with FlowsThierry TROUIN ☁
 
Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
Gram Darshan PPT cyber rural in villages of india
Gram Darshan PPT cyber rural  in villages of indiaGram Darshan PPT cyber rural  in villages of india
Gram Darshan PPT cyber rural in villages of indiaimessage0108
 
Russian Call girls in Dubai +971563133746 Dubai Call girls
Russian  Call girls in Dubai +971563133746 Dubai  Call girlsRussian  Call girls in Dubai +971563133746 Dubai  Call girls
Russian Call girls in Dubai +971563133746 Dubai Call girlsstephieert
 
AWS Community DAY Albertini-Ellan Cloud Security (1).pptx
AWS Community DAY Albertini-Ellan Cloud Security (1).pptxAWS Community DAY Albertini-Ellan Cloud Security (1).pptx
AWS Community DAY Albertini-Ellan Cloud Security (1).pptxellan12
 
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$kojalkojal131
 
VIP Kolkata Call Girl Kestopur 👉 8250192130 Available With Room
VIP Kolkata Call Girl Kestopur 👉 8250192130  Available With RoomVIP Kolkata Call Girl Kestopur 👉 8250192130  Available With Room
VIP Kolkata Call Girl Kestopur 👉 8250192130 Available With Roomdivyansh0kumar0
 
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012rehmti665
 
Low Rate Young Call Girls in Sector 63 Mamura Noida ✔️☆9289244007✔️☆ Female E...
Low Rate Young Call Girls in Sector 63 Mamura Noida ✔️☆9289244007✔️☆ Female E...Low Rate Young Call Girls in Sector 63 Mamura Noida ✔️☆9289244007✔️☆ Female E...
Low Rate Young Call Girls in Sector 63 Mamura Noida ✔️☆9289244007✔️☆ Female E...SofiyaSharma5
 
Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
Russian Call Girls Thane Swara 8617697112 Independent Escort Service Thane
Russian Call Girls Thane Swara 8617697112 Independent Escort Service ThaneRussian Call Girls Thane Swara 8617697112 Independent Escort Service Thane
Russian Call Girls Thane Swara 8617697112 Independent Escort Service ThaneCall girls in Ahmedabad High profile
 
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts serviceChennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts servicevipmodelshub1
 
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)Dana Luther
 
Networking in the Penumbra presented by Geoff Huston at NZNOG
Networking in the Penumbra presented by Geoff Huston at NZNOGNetworking in the Penumbra presented by Geoff Huston at NZNOG
Networking in the Penumbra presented by Geoff Huston at NZNOGAPNIC
 

Recently uploaded (20)

VIP Kolkata Call Girls Salt Lake 8250192130 Available With Room
VIP Kolkata Call Girls Salt Lake 8250192130 Available With RoomVIP Kolkata Call Girls Salt Lake 8250192130 Available With Room
VIP Kolkata Call Girls Salt Lake 8250192130 Available With Room
 
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024
 
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
On Starlink, presented by Geoff Huston at NZNOG 2024
On Starlink, presented by Geoff Huston at NZNOG 2024On Starlink, presented by Geoff Huston at NZNOG 2024
On Starlink, presented by Geoff Huston at NZNOG 2024
 
Russian Call Girls in Kolkata Samaira 🤌 8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Samaira 🤌  8250192130 🚀 Vip Call Girls KolkataRussian Call Girls in Kolkata Samaira 🤌  8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Samaira 🤌 8250192130 🚀 Vip Call Girls Kolkata
 
Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝
 
AlbaniaDreamin24 - How to easily use an API with Flows
AlbaniaDreamin24 - How to easily use an API with FlowsAlbaniaDreamin24 - How to easily use an API with Flows
AlbaniaDreamin24 - How to easily use an API with Flows
 
Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝
 
Gram Darshan PPT cyber rural in villages of india
Gram Darshan PPT cyber rural  in villages of indiaGram Darshan PPT cyber rural  in villages of india
Gram Darshan PPT cyber rural in villages of india
 
Russian Call girls in Dubai +971563133746 Dubai Call girls
Russian  Call girls in Dubai +971563133746 Dubai  Call girlsRussian  Call girls in Dubai +971563133746 Dubai  Call girls
Russian Call girls in Dubai +971563133746 Dubai Call girls
 
AWS Community DAY Albertini-Ellan Cloud Security (1).pptx
AWS Community DAY Albertini-Ellan Cloud Security (1).pptxAWS Community DAY Albertini-Ellan Cloud Security (1).pptx
AWS Community DAY Albertini-Ellan Cloud Security (1).pptx
 
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$
Call Girls Dubai Prolapsed O525547819 Call Girls In Dubai Princes$
 
VIP Kolkata Call Girl Kestopur 👉 8250192130 Available With Room
VIP Kolkata Call Girl Kestopur 👉 8250192130  Available With RoomVIP Kolkata Call Girl Kestopur 👉 8250192130  Available With Room
VIP Kolkata Call Girl Kestopur 👉 8250192130 Available With Room
 
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
 
Low Rate Young Call Girls in Sector 63 Mamura Noida ✔️☆9289244007✔️☆ Female E...
Low Rate Young Call Girls in Sector 63 Mamura Noida ✔️☆9289244007✔️☆ Female E...Low Rate Young Call Girls in Sector 63 Mamura Noida ✔️☆9289244007✔️☆ Female E...
Low Rate Young Call Girls in Sector 63 Mamura Noida ✔️☆9289244007✔️☆ Female E...
 
Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝
 
Russian Call Girls Thane Swara 8617697112 Independent Escort Service Thane
Russian Call Girls Thane Swara 8617697112 Independent Escort Service ThaneRussian Call Girls Thane Swara 8617697112 Independent Escort Service Thane
Russian Call Girls Thane Swara 8617697112 Independent Escort Service Thane
 
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts serviceChennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts service
 
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
 
Networking in the Penumbra presented by Geoff Huston at NZNOG
Networking in the Penumbra presented by Geoff Huston at NZNOGNetworking in the Penumbra presented by Geoff Huston at NZNOG
Networking in the Penumbra presented by Geoff Huston at NZNOG
 

Bgp training

  • 2. Terms • IGP (Interior Gateway Protocol) - RIP, IGRP, EIGRP, OSPF = Routing protocol used to exchange routing information within an autonomous system. • EGP (Exterior Gateway Protocol) - BGP = Routing protocol used to exchange routing information between autonomous systems. • Autonomous System = (From RFC 1771) “A set of routers under the single technical administration, using an IGP and common metrics to route packets within the AS, and using an EGP to route packets to other AS’s.” • BGP is a path vector or an advanced distance vector routing protocol.
  • 3. When to use BGP and when not to use BGP Use BGP when the effects of BGP are well understood and one of the following conditions exist: • The AS allows packets to transit through it to reach another AS (transit AS). • The AS has multiple connections to other AS’s. • The flow of traffic entering or exiting the AS must be manipulated. This is policy based routing and based on attributes.
  • 4. When to use BGP and when not to use BGP Do not use BGP if you have one or more of the following conditions: • A single connection to the Internet or another AS • No concern for routing policy or routing selection • A lack of memory or processing power on your routers to handle constant BGP updates • A limited understanding of route filtering and BGP path selection process • Low bandwidth between AS’s
  • 5. Overview of autonomous systems • An AS is a group of routers that share similar routing policies and operate within a single administrative domain. • An AS can be a collection of routers running a single IGP, or it can be a collection of routers running different protocols all belonging to one organization. • In either case, the outside world views the entire Autonomous System as a single entity.
  • 6. Overview of autonomous systems AS Numbers • Each AS has an identifying number that is assigned by an Internet registry or a service provider. • This number is between 1 and 65,535. • AS numbers within the range of 64,512 through 65,535 are reserved for private use.
  • 7. Single-homed autonomous systems • If an AS has only one exit point to outside networks, it is considered a single-homed system. • Single-homed autonomous systems are often referred to as stub networks or stubs. • Stubs can rely on a default route to handle all traffic destined for non-local networks. • BGP is not normally needed in this situation. Static Route
  • 8. Multihomed nontransit autonomous systems • Multihomed non-transit autonomous systems do not really need to run BGP4 with their providers. • It is usually recommended and often required by ISPs. Or same ISP
  • 9. • Incoming route advertisements influence your outgoing traffic, and outgoing advertisements influence your incoming traffic. • If the provider advertises routes into your AS via BGP, your internal routers have more accurate information about external destinations. – BGP also provides tools for setting routing policies for external destinations. • If your internal routes are advertised to the provider via BGP, you have influence over which routes are advertised at which exit point. – BGP also provides tools for your influencing (to some degree) the choices the provider makes when sending traffic into your AS. Multihomed nontransit autonomous systems
  • 10. • When BGP is running inside an AS, it is referred to as Internal BGP (IBGP). • When BGP runs between autonomous systems, it is called External BGP (EBGP). • If the role of a BGP router is to route IBGP traffic, it is called a transit router. • Routers that sit on the boundary of an AS and that use EBGP to exchange information with the ISP are called border or edge routers. Multi-homed Transit Autonomous Systems Edge Router
  • 11. BGP Basics • BGP is a path vector routing protocol. • Defined in RFC 1772 • BGP is a distance vector routing protocol, in that it relies on downstream neighbors to pass along routes from their routing table. • BGP uses a list of AS numbers through which a packet must pass to reach a destination.
  • 12. BGP Message Types • Before establishing a BGP peer connection the two neighbors must perform the standard TCP three-way handshake and open a TCP connection to port 179. • After the TCP session is established, BGP peers exchanges several messages to open and confirm connection parameters and to send BGP routing information. • All BGP messages are unicast to the one neighbor over the TCP connection. • There are four BGP message types: – Type 1: OPEN – Type 2: KEEPALIVE – Type 3: UPDATE – Type 4: NOTIFICATION
  • 13. Path Attributes Optional transitive • An attribute that may or may not be, recognized by all BGP implementations (thus, optional). • Because the attribute is transitive, BGP should accept and advertise the attribute even if it isn’t recognized. Example: COMMUNITY
  • 14. Path Attributes Optional non-transitive • An attribute that may or may not be, recognized by all BGP implementations. • Whether or not the receiving BGP router recognizes the attribute, it is non-transitive, and should not be passed along to other BGP peers. Example: ORIGINATOR_ID
  • 15. IBGP vs EBGP • When BGP is running inside an AS, it is referred to as Internal BGP (IBGP). • When BGP runs between autonomous systems, it is called External BGP (EBGP). AS 100 AS 200 Vail Aspen Taos 192.168.100.0/24 192.168.200.0/24 192.168.1.216/30 192.168.1.226/30 192.168.1.225/30 192.168.1.221/30 192.168.1.222/30 192.168.1.224/30 192.168.1.220/30 EBGP IBGP …
  • 16. • All BGP speakers within an AS must establish a peer relationship with each other, that is, the BGP speakers within an AS must be fully meshed logically. (later) • AS 200 is a transit AS for AS 100 and AS 300---that is, AS 200 is used to transfer packets between AS 100 and AS 300.
  • 17. BGP Route Selection Algorithm Summary of the BGP Path Selection Process • BGP selects only one path as the best path. • When the path is selected, BGP puts the selected path in its routing table and propagates the path to its neighbors. • BGP uses the following criteria, in the order presented, to select a path for a destination: 1. If the path specifies a next hop that is inaccessible, drop the update 2. Prefer the path with the largest weight. 3. If the weights are the same, prefer the path with the largest local preference. 4. If the local preferences are the same, prefer the path that was originated by BGP running on this router. 5. If no route was originated, prefer the route that has the shortest AS path. 6. If all paths have the same AS path length, prefer the path with the lowest origin type (where IGP is lower than EGP, and EGP is lower than Incomplete). 7. If the origin codes are the same, prefer the path with the lowest MED attribute. 8. If the paths have the same MED, prefer the external path over the internal path. 9. If the paths are still the same, prefer the path through the closest IGP neighbor. 10. Prefer the path with the lowest IP address, as specified by the BGP router ID.
  • 18. NEXT_HOP • The NEXT_HOP attribute is a well-known mandatory attribute (type code 3). • In terms of an IGP, such as RIP, the “next hop” to reach a route is the IP address of the router that has announced the route. • The next hop is the IP address of the EBGP neighbor from which the route was learned.
  • 19. The WEIGHT attribute The weight attribute is a special Cisco attribute that is used in the path selection process when there is more than one route to the same destination. The weight attribute is local to the router on which it is assigned, and it is not propagated in routing updates. By default, the weight attribute is 32768 for paths that the router originates and zero for other paths. Routes with a higher weight are preferred when there are multiple routes to the same destination.
  • 20. The WEIGHT attribute There are three ways to set the weight for updates coming in from Router A: •Using the neighbor weight Command to Set the Weight Attribute •Using an Access List to Set the Weight Attribute •Using a Route Map to Set the Weight Attribute
  • 21. The LOCAL_PREF Attribute • Well-known discretionary attribute (type code 5). • Degree of preference given to a route to compare it with other routes for the same destination – Higher LOCAL_PREF values are preferred • Local to the AS – Exchanged between IBGP peers only – It is not advertised to EBGP peers • The path with the higher preference is preferred (the default value of the local preference attribute is 100).
  • 22. The MED attribute • The MULTI_EXIT_DISC (Multi-Exit Discriminator) attribute is an optional non-transitive attribute (type code 4). • Informs external neighbors about the preferred path into an AS that has multiple entry points. • A lower MULTI_EXIT_DISC (or MED) is preferred over a higher MED. • The default value of the MED attribute is 0.
  • 23. BGP Route Filtering using ACL • ACLs come in two varieties : Numbered and named • Each of these references to ACLs supports two types of filtering: standard and extended. • Standard IP ACLs can filter only on the source IP address inside a packet. • Whereas an extended IP ACLs can filter on the source and destination IP addresses in the packet. • There are two actions an ACL can take: permit or deny.