SlideShare a Scribd company logo
Presentation on
BGP Path Selection & Attributes
BGP Weight
&
BGP AS-Path Prepending
Prsented By
• Shawan Roy
• Mobile: 01933827475
BGP Path Selection &
Attributes
Difference Between BGP & IGP Path Selection
• BGP (Border Gateway Protocol)
routers usually receive multiple
paths to the same destination.
• BGP however, selects the best
path based on a set of
attributes.
• IGPs select the path with the
lowest metric. For example:
• RIP selects the path with the
lowest hop count.
• OSPF selects the path with the
lowest cost.
• EIGRP selects the path with the
highest bandwidth and lowest
delay (unless you change the K
values).
How to know about best path in BGP?
Path is selected based on the following attributes
Priority Attribute
1 Weight
2 Local Preference
3 Originate
4 AS path length
5 Origin code
6 MED (MULTI_EXIT_DISC)
7 eBGP path over iBGP path
8 Shortest IGP path to BGP next hop
9 Oldest path
10 Router ID
11 Neighbor IP address
Quick overview of Each Attribute (1 of 3)
• Weight: Prefer the path with the highest weight. This is a value that is local to the router
and it’s Cisco proprietary. The default value is 0 for all routes that are not originated by
the local router.
• Local Preference: The local preference is used within an autonomous system and
exchanged between iBGP routers. We prefer the path with the highest local preference.
The default value is 100.
• Originate: Prefer the path that the local router originated. In the BGP table, you will see
next hop 0.0.0.0. You can get a path in the BGP table through the BGP network
command, aggregation, or redistribution. A BGP router will prefer routes that it installed
into BGP itself over a route that another router installed in BGP.
• AS path length: Prefer the path with the shortest AS path length. For example, AS path 1
2 3 is preferred over AS path 1 2 3 4 5.
Quick overview of Each Attribute (2 of 3)
• Origin code: Prefer the lowest origin code. There are three origin
codes: IGP, EGP, INCOMPLETE. IGP is lower than EGP and EGP is lower
than INCOMPLETE.
• MED (MULTI_EXIT_DISC): Prefer the path with the lowest MED. The
MED is exchanged between autonomous systems.
• eBGP path over iBGP path: Prefer eBGP (external BGP) over iBGP
(internal BGP) paths.
• Shortest IGP path to BGP next hop: Prefer the path within the
autonomous system with the lowest IGP metric to the BGP next hop.
Quick overview of Each Attribute (3 of 3)
• Oldest Path: Prefer the path that we received first, in other words, the
oldest path.
• Router ID: Prefer the path with the lowest BGP neighbor router ID.
The router ID is based on the highest IP address. If you have a
loopback interface, then the IP address on the loopback will be used.
The router ID can also be manually configured.
• Neighbor IP address: Prefer the path with the lowest neighbor IP
address. If you have two eBGP routers and two links in between then
the router ID will be the same. In this case, the neighbor IP address is
the tiebreaker.
BGP Weight Attribute
About BGP Weight Attribute (1 of 2)
• BGP weight attribute is a Cisco proprietary path attribute that is local
to the router and is used to influence local path selection on a certain
router.
• BGP weight is the first tie breaker for best path selection on a Cisco
router, the attribute is not propagated to other routers in the BGP
updates and only found on Cisco routers.
• The path with the highest weight is selected as the best toward a
destination.
About BGP Weight Attribute (2 of 2)
• The weight can be a number from 0 to 65,535. Paths that the router
originates have a weight of 32,768 by default, and other paths have a
weight of 0. As we mentioned earlier the path with the highest weight
value wins.
• BGP weight can be set using three ways on a Cisco router. Those are:
assigned per neighbor, using AS-Path access lists, using route-maps
(complex).
• BGP weight is the easiest way to manipulate the BGP path selection
on a single Cisco router for outbound traffic. The attribute is local and
will not be propagated to other routers in the network within the BGP
update messages.
BGP Weight Attribute Assigned per neighbor (1 of
4)
• R1 to get to R6 it has chosen the path through
R4-
When both paths are external prefer the oldest one –
This is the tiebreaker!
BGP Weight Attribute Assigned per neighbor (2 of
4)
• To prove that we can restart the bgp process on R4 to
make R5 the oldest route. On R4 I have done a clear ip
bgp * This now makes the route through R5 the oldest
one and is preferred.
BGP Weight Attribute Assigned per neighbor (3 of
4)
• Under BGP enter the following command – neighbor
10.0.14.4 weight 100
BGP Weight Attribute Assigned per neighbor (4 of
4)
• You will also notice that all prefixes received from R4 have
also had their weight changed to 100
BGP Weight Attribute Using AS-Path access lists (1
of 2)
• For this example we only want to set the weight for the
6.6.6.6/32 prefix. First we need to match this prefix in an
access list
This is now applied to the neighbor statement for R4 – we also need to remove the previous
weight attribute
BGP Weight Attribute Using AS-Path access lists (1
of 2)
• You can see now that we have changed the weight
attribute for the 6.6.6.6/32 prefix only. All other routes
have the default weight of 0.
BGP AS-Path Prepending
About BGP AS-Path Prepending
• AS-Path prepending is a way to manipulate the AS-Path attribute of a
BGP route.
• It allows prepending multiple entries of AS to a BGP route.
• This can come as a workaround if a specific path is required to be
followed, and other means like Multi-Exit Discriminator (MED) is not
supported.
• AS-Path prepending can be applied to inbound and outbound
direction using route-maps.
Outbound AS-Path Prepending (1 of 2)
• AS-Path prepending can be
applied to outbound direction
on R3 router as below-
• Outbound AS-Path prepending on
R3-
Outbound AS-Path Prepending (2 of 2)
• When R3 router advertises its 10.1.1.0/24 network
to R2 router, it prepends its own AS 200 multiple
times. However, R1 router receives the original
BGP route with a single AS-path entry.
• BGP tables on R1 and R2-
R2 router has two paths to 10.1.1.0/24. However, it
chooses the path through R1 since that path has
shortest AS-Path (indicated by a > sign, meaning best
route). Hence, the direct path through R3 router can
act as a backup path.
Inbound AS-Path Prepending (1 of 2)
• Inbound AS-Path prepending is configured using
set as-path prepend last-as command under route-
map which is then applied in inbound direction.
The last-as keyword copies the AS number of the
neighbor advertising the BGP route that matches
the route-map.
• Inbound AS-Path prepending on R1-
Inbound AS-Path Prepending (2 of 2)
• This configuration causes R1 to prepend the AS
number of R3 twice before installing in the BGP
table. As seen below, R3 does not prepend any AS
number by itself.
• BGP tables on R1 and R3-
References
• https://networklessons.com/bgp/bgp-attributes-and-path-selection
• http://www.networkers-online.com/blog/2012/05/bgp-weight/
• https://www.rogerperkin.co.uk/bgp/bgp-weight-attribute/
• https://sites.google.com/site/amitsciscozone/home/bgp/bgp-as-
path-prepending-and-as-path-filters
Thank You!

More Related Content

What's hot

Open Shortest Path First (OSPF) || 2020 || Ser-2
Open Shortest Path First (OSPF) || 2020 || Ser-2Open Shortest Path First (OSPF) || 2020 || Ser-2
Open Shortest Path First (OSPF) || 2020 || Ser-2
Nutan Singh
 
Routing Information Protocol (RIP)
Routing Information Protocol(RIP)Routing Information Protocol(RIP)
Routing Information Protocol (RIP)
waqasahmad1995
 
Bgp
BgpBgp
Routing and OSPF
Routing and OSPFRouting and OSPF
Routing and OSPFarpit
 
Open shortest path first (ospf)
Open shortest path first (ospf)Open shortest path first (ospf)
Open shortest path first (ospf)
Respa Peter
 
Traffic Engineering Using Segment Routing
Traffic Engineering Using Segment Routing Traffic Engineering Using Segment Routing
Traffic Engineering Using Segment Routing
Cisco Canada
 
BGP (Border Gateway Protocol)
BGP (Border Gateway Protocol)BGP (Border Gateway Protocol)
BGP (Border Gateway Protocol)
NetProtocol Xpert
 
BGP protocol presentation
BGP protocol  presentationBGP protocol  presentation
BGP protocol presentation
Gorantla Mohanavamsi
 
Bgp
BgpBgp
How BGP Works
How BGP WorksHow BGP Works
How BGP Works
ThousandEyes
 
Eigrp
EigrpEigrp
Eigrpfirey
 
Mpls
MplsMpls
EIGRP Routing Protocols
EIGRP Routing ProtocolsEIGRP Routing Protocols
EIGRP Routing Protocols
sul6an14
 
Enhanced Interior Gateway Routing Protocol (EIGRP) || NETWORK PROTOCOL
Enhanced Interior Gateway Routing Protocol (EIGRP) || NETWORK PROTOCOLEnhanced Interior Gateway Routing Protocol (EIGRP) || NETWORK PROTOCOL
Enhanced Interior Gateway Routing Protocol (EIGRP) || NETWORK PROTOCOL
Nutan Singh
 
Border Gateway Protocol
Border Gateway ProtocolBorder Gateway Protocol
Border Gateway ProtocolKashif Latif
 
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
 
IS-IS vs OSPF
IS-IS vs OSPFIS-IS vs OSPF
IS-IS vs OSPF
NetProtocol Xpert
 
MPLS Traffic Engineering
MPLS Traffic EngineeringMPLS Traffic Engineering
MPLS Traffic Engineering
APNIC
 
OPEN SHORTEST PATH FIRST (OSPF)
OPEN SHORTEST PATH FIRST (OSPF)OPEN SHORTEST PATH FIRST (OSPF)
OPEN SHORTEST PATH FIRST (OSPF)
Ann Joseph
 
Multicasting and multicast routing protocols
Multicasting and multicast routing protocolsMulticasting and multicast routing protocols
Multicasting and multicast routing protocolsAbhishek Kesharwani
 

What's hot (20)

Open Shortest Path First (OSPF) || 2020 || Ser-2
Open Shortest Path First (OSPF) || 2020 || Ser-2Open Shortest Path First (OSPF) || 2020 || Ser-2
Open Shortest Path First (OSPF) || 2020 || Ser-2
 
Routing Information Protocol (RIP)
Routing Information Protocol(RIP)Routing Information Protocol(RIP)
Routing Information Protocol (RIP)
 
Bgp
BgpBgp
Bgp
 
Routing and OSPF
Routing and OSPFRouting and OSPF
Routing and OSPF
 
Open shortest path first (ospf)
Open shortest path first (ospf)Open shortest path first (ospf)
Open shortest path first (ospf)
 
Traffic Engineering Using Segment Routing
Traffic Engineering Using Segment Routing Traffic Engineering Using Segment Routing
Traffic Engineering Using Segment Routing
 
BGP (Border Gateway Protocol)
BGP (Border Gateway Protocol)BGP (Border Gateway Protocol)
BGP (Border Gateway Protocol)
 
BGP protocol presentation
BGP protocol  presentationBGP protocol  presentation
BGP protocol presentation
 
Bgp
BgpBgp
Bgp
 
How BGP Works
How BGP WorksHow BGP Works
How BGP Works
 
Eigrp
EigrpEigrp
Eigrp
 
Mpls
MplsMpls
Mpls
 
EIGRP Routing Protocols
EIGRP Routing ProtocolsEIGRP Routing Protocols
EIGRP Routing Protocols
 
Enhanced Interior Gateway Routing Protocol (EIGRP) || NETWORK PROTOCOL
Enhanced Interior Gateway Routing Protocol (EIGRP) || NETWORK PROTOCOLEnhanced Interior Gateway Routing Protocol (EIGRP) || NETWORK PROTOCOL
Enhanced Interior Gateway Routing Protocol (EIGRP) || NETWORK PROTOCOL
 
Border Gateway Protocol
Border Gateway ProtocolBorder Gateway Protocol
Border Gateway Protocol
 
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)
 
IS-IS vs OSPF
IS-IS vs OSPFIS-IS vs OSPF
IS-IS vs OSPF
 
MPLS Traffic Engineering
MPLS Traffic EngineeringMPLS Traffic Engineering
MPLS Traffic Engineering
 
OPEN SHORTEST PATH FIRST (OSPF)
OPEN SHORTEST PATH FIRST (OSPF)OPEN SHORTEST PATH FIRST (OSPF)
OPEN SHORTEST PATH FIRST (OSPF)
 
Multicasting and multicast routing protocols
Multicasting and multicast routing protocolsMulticasting and multicast routing protocols
Multicasting and multicast routing protocols
 

Similar to BGP Path Selection & Attributes BGP Weight & BGP AS-Path Prepending

bgp features presentation routing protocle
bgp features presentation routing protoclebgp features presentation routing protocle
bgp features presentation routing protocle
Badr Belhajja
 
Bgp training
Bgp trainingBgp training
Bgp training
Aun Haider
 
11 bgp-ethernet
11 bgp-ethernet11 bgp-ethernet
11 bgp-ethernet
Olivier Bonaventure
 
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
earleanp
 
PLNOG15: BGP New Advanced Features - Piotr Wojciechowski
PLNOG15: BGP New Advanced Features - Piotr WojciechowskiPLNOG15: BGP New Advanced Features - Piotr Wojciechowski
PLNOG15: BGP New Advanced Features - Piotr Wojciechowski
PROIDEA
 
Study Notes BGP Exam
Study Notes BGP ExamStudy Notes BGP Exam
Study Notes BGP Exam
Duane Bodle
 
Part8-ibgp.pptx
Part8-ibgp.pptxPart8-ibgp.pptx
Part8-ibgp.pptx
Olivier Bonaventure
 
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
Duane Bodle
 
BGP Advanced topics
BGP Advanced topicsBGP Advanced topics
BGP Advanced topics
Olivier Bonaventure
 
Computer network (14)
Computer network (14)Computer network (14)
Computer network (14)
NYversity
 
Routing Protocol EIGRP
Routing Protocol EIGRPRouting Protocol EIGRP
Routing Protocol EIGRP
Dmitry Figol
 
EIGRP Protocol.pptx
EIGRP Protocol.pptxEIGRP Protocol.pptx
EIGRP Protocol.pptx
AhmedEssam352399
 
Bgp 6 advanced transit as issues
Bgp 6   advanced transit as issuesBgp 6   advanced transit as issues
Bgp 6 advanced transit as issuesAuguste Behe
 
PLNOG 6: Rafał Szarecki - Routing w Sieci - Praktyczne aspekty implementacji ...
PLNOG 6: Rafał Szarecki - Routing w Sieci - Praktyczne aspekty implementacji ...PLNOG 6: Rafał Szarecki - Routing w Sieci - Praktyczne aspekty implementacji ...
PLNOG 6: Rafał Szarecki - Routing w Sieci - Praktyczne aspekty implementacji ...
PROIDEA
 
Routing Protocol in detail
Routing Protocol in detailRouting Protocol in detail
Routing Protocol in detail
Dil_E_Dastan
 
BGP
BGP BGP
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
Palanivel Kuppusamy
 
Bgp Toc
Bgp TocBgp Toc
Bgp Toc
bigb0206
 

Similar to BGP Path Selection & Attributes BGP Weight & BGP AS-Path Prepending (20)

bgp features presentation routing protocle
bgp features presentation routing protoclebgp features presentation routing protocle
bgp features presentation routing protocle
 
Bgp training
Bgp trainingBgp training
Bgp training
 
11 bgp-ethernet
11 bgp-ethernet11 bgp-ethernet
11 bgp-ethernet
 
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
 
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
 
Study Notes BGP Exam
Study Notes BGP ExamStudy Notes BGP Exam
Study Notes BGP Exam
 
Part8-ibgp.pptx
Part8-ibgp.pptxPart8-ibgp.pptx
Part8-ibgp.pptx
 
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 Advanced topics
BGP Advanced topicsBGP Advanced topics
BGP Advanced topics
 
Computer network (14)
Computer network (14)Computer network (14)
Computer network (14)
 
Routing Protocol EIGRP
Routing Protocol EIGRPRouting Protocol EIGRP
Routing Protocol EIGRP
 
EIGRP Protocol.pptx
EIGRP Protocol.pptxEIGRP Protocol.pptx
EIGRP Protocol.pptx
 
Bgp 6 advanced transit as issues
Bgp 6   advanced transit as issuesBgp 6   advanced transit as issues
Bgp 6 advanced transit as issues
 
PLNOG 6: Rafał Szarecki - Routing w Sieci - Praktyczne aspekty implementacji ...
PLNOG 6: Rafał Szarecki - Routing w Sieci - Praktyczne aspekty implementacji ...PLNOG 6: Rafał Szarecki - Routing w Sieci - Praktyczne aspekty implementacji ...
PLNOG 6: Rafał Szarecki - Routing w Sieci - Praktyczne aspekty implementacji ...
 
Routing Protocol in detail
Routing Protocol in detailRouting Protocol in detail
Routing Protocol in detail
 
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
BGP BGP
BGP
 
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
 
Bgp Toc
Bgp TocBgp Toc
Bgp Toc
 

More from Shawan Roy

Presentation on Pretreatment (Scouring & Bleaching)
Presentation on Pretreatment (Scouring & Bleaching)Presentation on Pretreatment (Scouring & Bleaching)
Presentation on Pretreatment (Scouring & Bleaching)
Shawan Roy
 
Presentation on Smart Textile
Presentation on Smart TextilePresentation on Smart Textile
Presentation on Smart Textile
Shawan Roy
 
Assignment on Camouflage Fabric
Assignment on Camouflage FabricAssignment on Camouflage Fabric
Assignment on Camouflage Fabric
Shawan Roy
 
Presentation on Camouflage Fabric
Presentation on Camouflage FabricPresentation on Camouflage Fabric
Presentation on Camouflage Fabric
Shawan Roy
 
Calculation of rf for maddar & turmeric
Calculation of rf for maddar & turmericCalculation of rf for maddar & turmeric
Calculation of rf for maddar & turmeric
Shawan Roy
 
Assignment on latest development on dyeing technique
Assignment on latest development on dyeing techniqueAssignment on latest development on dyeing technique
Assignment on latest development on dyeing technique
Shawan Roy
 
Astm standard on apparel (Source Copy)
Astm standard on apparel (Source Copy)Astm standard on apparel (Source Copy)
Astm standard on apparel (Source Copy)
Shawan Roy
 
ASTM Standard on Apparel
ASTM Standard on ApparelASTM Standard on Apparel
ASTM Standard on Apparel
Shawan Roy
 
Weft knit fabric geometry
Weft knit fabric geometryWeft knit fabric geometry
Weft knit fabric geometry
Shawan Roy
 
Presentation on Weft Knitting Machine (Single Jersey, Rib & Interlock)
Presentation on Weft Knitting Machine (Single Jersey, Rib & Interlock)Presentation on Weft Knitting Machine (Single Jersey, Rib & Interlock)
Presentation on Weft Knitting Machine (Single Jersey, Rib & Interlock)
Shawan Roy
 
Presentation on children's wear
Presentation on children's wearPresentation on children's wear
Presentation on children's wear
Shawan Roy
 
Method for measuring or investigation of fiber structure
Method for measuring or investigation of fiber structureMethod for measuring or investigation of fiber structure
Method for measuring or investigation of fiber structureShawan Roy
 
RN cleaner
RN cleanerRN cleaner
RN cleaner
Shawan Roy
 
Method for measuring or investigation of fiber structure
Method for measuring or investigation of fiber structureMethod for measuring or investigation of fiber structure
Method for measuring or investigation of fiber structure
Shawan Roy
 
Electromagnetic field (emf)
Electromagnetic field (emf)Electromagnetic field (emf)
Electromagnetic field (emf)
Shawan Roy
 

More from Shawan Roy (15)

Presentation on Pretreatment (Scouring & Bleaching)
Presentation on Pretreatment (Scouring & Bleaching)Presentation on Pretreatment (Scouring & Bleaching)
Presentation on Pretreatment (Scouring & Bleaching)
 
Presentation on Smart Textile
Presentation on Smart TextilePresentation on Smart Textile
Presentation on Smart Textile
 
Assignment on Camouflage Fabric
Assignment on Camouflage FabricAssignment on Camouflage Fabric
Assignment on Camouflage Fabric
 
Presentation on Camouflage Fabric
Presentation on Camouflage FabricPresentation on Camouflage Fabric
Presentation on Camouflage Fabric
 
Calculation of rf for maddar & turmeric
Calculation of rf for maddar & turmericCalculation of rf for maddar & turmeric
Calculation of rf for maddar & turmeric
 
Assignment on latest development on dyeing technique
Assignment on latest development on dyeing techniqueAssignment on latest development on dyeing technique
Assignment on latest development on dyeing technique
 
Astm standard on apparel (Source Copy)
Astm standard on apparel (Source Copy)Astm standard on apparel (Source Copy)
Astm standard on apparel (Source Copy)
 
ASTM Standard on Apparel
ASTM Standard on ApparelASTM Standard on Apparel
ASTM Standard on Apparel
 
Weft knit fabric geometry
Weft knit fabric geometryWeft knit fabric geometry
Weft knit fabric geometry
 
Presentation on Weft Knitting Machine (Single Jersey, Rib & Interlock)
Presentation on Weft Knitting Machine (Single Jersey, Rib & Interlock)Presentation on Weft Knitting Machine (Single Jersey, Rib & Interlock)
Presentation on Weft Knitting Machine (Single Jersey, Rib & Interlock)
 
Presentation on children's wear
Presentation on children's wearPresentation on children's wear
Presentation on children's wear
 
Method for measuring or investigation of fiber structure
Method for measuring or investigation of fiber structureMethod for measuring or investigation of fiber structure
Method for measuring or investigation of fiber structure
 
RN cleaner
RN cleanerRN cleaner
RN cleaner
 
Method for measuring or investigation of fiber structure
Method for measuring or investigation of fiber structureMethod for measuring or investigation of fiber structure
Method for measuring or investigation of fiber structure
 
Electromagnetic field (emf)
Electromagnetic field (emf)Electromagnetic field (emf)
Electromagnetic field (emf)
 

Recently uploaded

The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
RitikBhardwaj56
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
amberjdewit93
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
Advantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO PerspectiveAdvantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO Perspective
Krisztián Száraz
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
ak6969907
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
Dr. Shivangi Singh Parihar
 
Aficamten in HCM (SEQUOIA HCM TRIAL 2024)
Aficamten in HCM (SEQUOIA HCM TRIAL 2024)Aficamten in HCM (SEQUOIA HCM TRIAL 2024)
Aficamten in HCM (SEQUOIA HCM TRIAL 2024)
Ashish Kohli
 
Best Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDABest Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDA
deeptiverma2406
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
Group Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana BuscigliopptxGroup Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana Buscigliopptx
ArianaBusciglio
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
Celine George
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
Israel Genealogy Research Association
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 

Recently uploaded (20)

The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
Advantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO PerspectiveAdvantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO Perspective
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
 
Aficamten in HCM (SEQUOIA HCM TRIAL 2024)
Aficamten in HCM (SEQUOIA HCM TRIAL 2024)Aficamten in HCM (SEQUOIA HCM TRIAL 2024)
Aficamten in HCM (SEQUOIA HCM TRIAL 2024)
 
Best Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDABest Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDA
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
Group Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana BuscigliopptxGroup Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana Buscigliopptx
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 

BGP Path Selection & Attributes BGP Weight & BGP AS-Path Prepending

  • 1. Presentation on BGP Path Selection & Attributes BGP Weight & BGP AS-Path Prepending
  • 2. Prsented By • Shawan Roy • Mobile: 01933827475
  • 3. BGP Path Selection & Attributes
  • 4. Difference Between BGP & IGP Path Selection • BGP (Border Gateway Protocol) routers usually receive multiple paths to the same destination. • BGP however, selects the best path based on a set of attributes. • IGPs select the path with the lowest metric. For example: • RIP selects the path with the lowest hop count. • OSPF selects the path with the lowest cost. • EIGRP selects the path with the highest bandwidth and lowest delay (unless you change the K values).
  • 5. How to know about best path in BGP?
  • 6. Path is selected based on the following attributes Priority Attribute 1 Weight 2 Local Preference 3 Originate 4 AS path length 5 Origin code 6 MED (MULTI_EXIT_DISC) 7 eBGP path over iBGP path 8 Shortest IGP path to BGP next hop 9 Oldest path 10 Router ID 11 Neighbor IP address
  • 7. Quick overview of Each Attribute (1 of 3) • Weight: Prefer the path with the highest weight. This is a value that is local to the router and it’s Cisco proprietary. The default value is 0 for all routes that are not originated by the local router. • Local Preference: The local preference is used within an autonomous system and exchanged between iBGP routers. We prefer the path with the highest local preference. The default value is 100. • Originate: Prefer the path that the local router originated. In the BGP table, you will see next hop 0.0.0.0. You can get a path in the BGP table through the BGP network command, aggregation, or redistribution. A BGP router will prefer routes that it installed into BGP itself over a route that another router installed in BGP. • AS path length: Prefer the path with the shortest AS path length. For example, AS path 1 2 3 is preferred over AS path 1 2 3 4 5.
  • 8. Quick overview of Each Attribute (2 of 3) • Origin code: Prefer the lowest origin code. There are three origin codes: IGP, EGP, INCOMPLETE. IGP is lower than EGP and EGP is lower than INCOMPLETE. • MED (MULTI_EXIT_DISC): Prefer the path with the lowest MED. The MED is exchanged between autonomous systems. • eBGP path over iBGP path: Prefer eBGP (external BGP) over iBGP (internal BGP) paths. • Shortest IGP path to BGP next hop: Prefer the path within the autonomous system with the lowest IGP metric to the BGP next hop.
  • 9. Quick overview of Each Attribute (3 of 3) • Oldest Path: Prefer the path that we received first, in other words, the oldest path. • Router ID: Prefer the path with the lowest BGP neighbor router ID. The router ID is based on the highest IP address. If you have a loopback interface, then the IP address on the loopback will be used. The router ID can also be manually configured. • Neighbor IP address: Prefer the path with the lowest neighbor IP address. If you have two eBGP routers and two links in between then the router ID will be the same. In this case, the neighbor IP address is the tiebreaker.
  • 11. About BGP Weight Attribute (1 of 2) • BGP weight attribute is a Cisco proprietary path attribute that is local to the router and is used to influence local path selection on a certain router. • BGP weight is the first tie breaker for best path selection on a Cisco router, the attribute is not propagated to other routers in the BGP updates and only found on Cisco routers. • The path with the highest weight is selected as the best toward a destination.
  • 12. About BGP Weight Attribute (2 of 2) • The weight can be a number from 0 to 65,535. Paths that the router originates have a weight of 32,768 by default, and other paths have a weight of 0. As we mentioned earlier the path with the highest weight value wins. • BGP weight can be set using three ways on a Cisco router. Those are: assigned per neighbor, using AS-Path access lists, using route-maps (complex). • BGP weight is the easiest way to manipulate the BGP path selection on a single Cisco router for outbound traffic. The attribute is local and will not be propagated to other routers in the network within the BGP update messages.
  • 13. BGP Weight Attribute Assigned per neighbor (1 of 4) • R1 to get to R6 it has chosen the path through R4- When both paths are external prefer the oldest one – This is the tiebreaker!
  • 14. BGP Weight Attribute Assigned per neighbor (2 of 4) • To prove that we can restart the bgp process on R4 to make R5 the oldest route. On R4 I have done a clear ip bgp * This now makes the route through R5 the oldest one and is preferred.
  • 15. BGP Weight Attribute Assigned per neighbor (3 of 4) • Under BGP enter the following command – neighbor 10.0.14.4 weight 100
  • 16. BGP Weight Attribute Assigned per neighbor (4 of 4) • You will also notice that all prefixes received from R4 have also had their weight changed to 100
  • 17. BGP Weight Attribute Using AS-Path access lists (1 of 2) • For this example we only want to set the weight for the 6.6.6.6/32 prefix. First we need to match this prefix in an access list This is now applied to the neighbor statement for R4 – we also need to remove the previous weight attribute
  • 18. BGP Weight Attribute Using AS-Path access lists (1 of 2) • You can see now that we have changed the weight attribute for the 6.6.6.6/32 prefix only. All other routes have the default weight of 0.
  • 20. About BGP AS-Path Prepending • AS-Path prepending is a way to manipulate the AS-Path attribute of a BGP route. • It allows prepending multiple entries of AS to a BGP route. • This can come as a workaround if a specific path is required to be followed, and other means like Multi-Exit Discriminator (MED) is not supported. • AS-Path prepending can be applied to inbound and outbound direction using route-maps.
  • 21. Outbound AS-Path Prepending (1 of 2) • AS-Path prepending can be applied to outbound direction on R3 router as below- • Outbound AS-Path prepending on R3-
  • 22. Outbound AS-Path Prepending (2 of 2) • When R3 router advertises its 10.1.1.0/24 network to R2 router, it prepends its own AS 200 multiple times. However, R1 router receives the original BGP route with a single AS-path entry. • BGP tables on R1 and R2- R2 router has two paths to 10.1.1.0/24. However, it chooses the path through R1 since that path has shortest AS-Path (indicated by a > sign, meaning best route). Hence, the direct path through R3 router can act as a backup path.
  • 23. Inbound AS-Path Prepending (1 of 2) • Inbound AS-Path prepending is configured using set as-path prepend last-as command under route- map which is then applied in inbound direction. The last-as keyword copies the AS number of the neighbor advertising the BGP route that matches the route-map. • Inbound AS-Path prepending on R1-
  • 24. Inbound AS-Path Prepending (2 of 2) • This configuration causes R1 to prepend the AS number of R3 twice before installing in the BGP table. As seen below, R3 does not prepend any AS number by itself. • BGP tables on R1 and R3-
  • 25. References • https://networklessons.com/bgp/bgp-attributes-and-path-selection • http://www.networkers-online.com/blog/2012/05/bgp-weight/ • https://www.rogerperkin.co.uk/bgp/bgp-weight-attribute/ • https://sites.google.com/site/amitsciscozone/home/bgp/bgp-as- path-prepending-and-as-path-filters