SlideShare a Scribd company logo
2
Most read
4
Most read
5
Most read
BGP loop prevention
www.netprotocolxpert.in
• When BGP updates travel through different Autonomous Systems (AS),
EBGP routers prepend their AS to AS PATH attribute.
• BGP routers use this information to check through which Autonomous
Systems certain updates passed.
• If a EBGP speaking router detects its own AS in AS PATH attribute update,
the router will ignore the update and will not advertise it further to IBGP
neighbors, because it is a routing information loop. This is a built in
mechanism for loop prevention in BGP.
BGP Loop Prevention
• In Previous slide you can see four BGP speaking routers. R1 and R2 are in AS
(Autonomous System) 65001 and form IBGP neighbor relationship with each other.
• R3 is in AS 65002 and form EBGP neighborship with R1 and R4. R4 is in AS 65003 and
form EBGP neighborship with R2 and R3. The only network prefix advertised in BGP is
192.168.0.1, which is advertised by R1.
• All the other routers learn this route from BGP. Router R2 learns this network prefix
directly from R1 which is in the same AS. Also, this prefix is sent to R3 by R1 as a BGP
routing update and by R3 to R4. Router R4 in turn will send BGP routing update to R2.
• Routing information loop would have occurred if loop prevention mechanism wouldn’t
exist. Because routing update about 192.168.0.0/24 received by R2 from R4 contains
R2’s own AS (65001), R2 will reject that update and will not be sent further to other
IBGP neighbors (in this case – R1).
To see BGP loop prevention in action, we’ll enable BGP debugging
on R2 for updates received from R4, then will clear R4 (10.0.2.2)
from BGP neighbors. See it in output below:
• R2#debug ip bgp 10.0.2.2 updates
• BGP updates debugging is on for neighbor 10.0.2.2 for address family: IPv4 Unicast
• R2#
• R2#clear ip bgp 10.0.2.2
• R2#
• R2#
• *Mar 1 00:12:27.455: %BGP-5-ADJCHANGE: neighbor 10.0.2.2 Down User reset
• *Mar 1 00:12:28.679: %BGP-5-ADJCHANGE: neighbor 10.0.2.2 Up
• *Mar 1 00:12:28.683: BGP(0): 10.0.2.2 send UPDATE (format) 192.168.0.0/24, next 10.0.2.1, metric 0, path Local
• *Mar 1 00:13:00.219: BGP(0): 10.0.2.2 rcv UPDATE w/ attr: nexthop 10.0.2.2, origin i, originator 0.0.0.0, path
65003 65001, community , extended community
• *Mar 1 00:13:00.223: BGP(0): 10.0.2.2 rcv UPDATE about 192.168.0.0/24 -- DENIED due to: AS-PATH contains
our own AS;
As you can see (highlighted in Black), there is an update sent by R4 to R2. That update was denied by R2 because it
sees its own AS in AS-PATH.
• This is how BGP handles BGP loop prevention of information
updates between Autonomous Systems.
• To avoid routing information loops within the same AS, all IBGP
routers must peer with every router within AS (only TCP sessions
required, not physical connections) – this is called full mesh IBGP.
• IBGP uses split horizon rule, which states that routes learned from
one IBGP neighbor is never sent to the rest of IBGP neighbors. That
way, when you have full mesh IBGP, routing information loops will
not occur, because all routers have the same routing information.
Follow Us On
https://www.facebook.com/
NetProtocolXpert/
https://www.linkedin.com/
company/netprotocol-xpert
https://plus.google.com/u
/0/collection/AYQ-EB
https://www.instagram.co
m/netprotocol_xpert/
https://twitter.com/NPX_cis
co
https://branded.me/netpr
otocolxpert

More Related Content

PPTX
BGP Next-hop-self
PDF
Bgp tutorial for ISP
PDF
Introduction to OpenFlow
PPTX
Introduction to nexux from zero to Hero
PDF
Juniper MPLS Tutorial by Soricelli
PDF
ネットワーク自動化ツール紹介(Ansible・NAPALM編)
PPTX
Cisco Live Milan 2015 - BGP advance
PPTX
EIGRP Routing Protocols
BGP Next-hop-self
Bgp tutorial for ISP
Introduction to OpenFlow
Introduction to nexux from zero to Hero
Juniper MPLS Tutorial by Soricelli
ネットワーク自動化ツール紹介(Ansible・NAPALM編)
Cisco Live Milan 2015 - BGP advance
EIGRP Routing Protocols

What's hot (20)

PDF
Cisco ospf
PPT
PDF
NETCONFとYANGの話
PDF
BGP (border gateway routing protocol)
PPTX
Bgp protocol
PDF
Linux Networking Explained
PPT
BGP protocol presentation
PPT
Chapter 06 - Routing
PPTX
EIGRP (Enhanced Interior Gateway Routing Protocol)
PDF
MPLS L3 VPN Deployment
PPT
PPTX
Comparing ospf vs isis
PDF
3GPP TR 22.885 study on LTE support for V2X services
PDF
IPv4/IPv6 移行・共存技術の動向
PDF
IPv6マルチプレフィックスの話
PDF
Neighbor Discovery Deep Dive – IPv6-Networking-Referat
PDF
Virtuals LAN
PDF
E4 pt act_7_5_1
PPTX
plotnetcfg入門 | Introduction to plotnetcfg
PPTX
IPv6 - Neighbour Discovery
Cisco ospf
NETCONFとYANGの話
BGP (border gateway routing protocol)
Bgp protocol
Linux Networking Explained
BGP protocol presentation
Chapter 06 - Routing
EIGRP (Enhanced Interior Gateway Routing Protocol)
MPLS L3 VPN Deployment
Comparing ospf vs isis
3GPP TR 22.885 study on LTE support for V2X services
IPv4/IPv6 移行・共存技術の動向
IPv6マルチプレフィックスの話
Neighbor Discovery Deep Dive – IPv6-Networking-Referat
Virtuals LAN
E4 pt act_7_5_1
plotnetcfg入門 | Introduction to plotnetcfg
IPv6 - Neighbour Discovery
Ad

Viewers also liked (20)

PPS
Dung Cho Den Ngay Mai
PPT
Helsinki book launch jenn lim delivering happiness_45_16.9
PPTX
Big ideas 2015
PDF
Secrets of e marketing success 2016 presentation
PPTX
Presentation1
PPTX
CISOs are from Mars, CIOs are from Venus
PPTX
Atlassian User Group, AUG Wiesbaden, 25 October 2012
PDF
6th lesson
DOC
Resume milind patil
PDF
Grafico diario del dax perfomance index para el 13 08-2013
DOC
CV_akansh doc
PPTX
PDF
Parallelizing a Real-Time Steering Simulation for Computer Games with OpenMP ...
PPTX
Evaluation question 1res
PPT
orchid island 蘭嶼
PPTX
Google analytics 2-dagers kurs mai 2011
PPTX
iDRUG - intelligent drug discovery
PPTX
La capa de ozono
PPTX
How to Deal with an Overbearing Mother w/o Audio
PDF
Physics of Trust OOP 2016
Dung Cho Den Ngay Mai
Helsinki book launch jenn lim delivering happiness_45_16.9
Big ideas 2015
Secrets of e marketing success 2016 presentation
Presentation1
CISOs are from Mars, CIOs are from Venus
Atlassian User Group, AUG Wiesbaden, 25 October 2012
6th lesson
Resume milind patil
Grafico diario del dax perfomance index para el 13 08-2013
CV_akansh doc
Parallelizing a Real-Time Steering Simulation for Computer Games with OpenMP ...
Evaluation question 1res
orchid island 蘭嶼
Google analytics 2-dagers kurs mai 2011
iDRUG - intelligent drug discovery
La capa de ozono
How to Deal with an Overbearing Mother w/o Audio
Physics of Trust OOP 2016
Ad

Similar to BGP Loop Prevention (20)

DOCX
CCNP Route 642 902 BGP
PDF
bgp features presentation routing protocle
PPT
PDF
Cisco ccnp 642-902 practice tests for quick preparation
PPT
Bgp 6 advanced transit as issues
PPT
Bgp Basic Labs
PPT
Bgp Basic Labs
PPT
Bgp For Presentation
PDF
Bgp Toc
PDF
BGP Interview Questions for Network Engineers
PPTX
BGP Weight Manipulation with Route Map
PDF
Ospf Last Modified Eng
PDF
Apnic_bgp_training_cisco_ciscosaicoc.pdf
PPTX
BGP Monitoring Protocol
PDF
Bgp in-large-networks
PPTX
10 routing-bgp
PPSX
PDF
08 ip oc304 2_e1_1 zxr10 m6000 bgp configuration 24
PPTX
OSPF v3
PDF
Bgp attribute-case study
CCNP Route 642 902 BGP
bgp features presentation routing protocle
Cisco ccnp 642-902 practice tests for quick preparation
Bgp 6 advanced transit as issues
Bgp Basic Labs
Bgp Basic Labs
Bgp For Presentation
Bgp Toc
BGP Interview Questions for Network Engineers
BGP Weight Manipulation with Route Map
Ospf Last Modified Eng
Apnic_bgp_training_cisco_ciscosaicoc.pdf
BGP Monitoring Protocol
Bgp in-large-networks
10 routing-bgp
08 ip oc304 2_e1_1 zxr10 m6000 bgp configuration 24
OSPF v3
Bgp attribute-case study

More from NetProtocol Xpert (20)

PPTX
Basic Cisco ASA 5506-x Configuration (Firepower)
PPTX
MPLS Layer 3 VPN
PPTX
Common Layer 2 Threats, Attacks & Mitigation
PPTX
Storm-Control
PPTX
Dynamic ARP Inspection (DAI)
PPTX
IP Source Guard
PPTX
DHCP Snooping
PPTX
Password Recovery
PPTX
Application & Data Center
PPTX
Cisco ISR 4351 Router
PPTX
Cisco ASR 1001-X Router
PPTX
Securing management, control & data plane
PPTX
Point to-point protocol (ppp), PAP & CHAP
PPTX
Avoid DNS lookup when mistyping a command
PPTX
TCLSH and Macro Ping Test on Cisco Routers and Switches
PPTX
Private VLANs
PPTX
MTU (maximum transmission unit) & MRU (maximum receive unit)
PPTX
OTV Configuration
PPTX
Cisco OTV 
PPTX
OTV(Overlay Transport Virtualization)
Basic Cisco ASA 5506-x Configuration (Firepower)
MPLS Layer 3 VPN
Common Layer 2 Threats, Attacks & Mitigation
Storm-Control
Dynamic ARP Inspection (DAI)
IP Source Guard
DHCP Snooping
Password Recovery
Application & Data Center
Cisco ISR 4351 Router
Cisco ASR 1001-X Router
Securing management, control & data plane
Point to-point protocol (ppp), PAP & CHAP
Avoid DNS lookup when mistyping a command
TCLSH and Macro Ping Test on Cisco Routers and Switches
Private VLANs
MTU (maximum transmission unit) & MRU (maximum receive unit)
OTV Configuration
Cisco OTV 
OTV(Overlay Transport Virtualization)

Recently uploaded (20)

PPTX
UNIT 4 Total Quality Management .pptx
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PDF
Arduino robotics embedded978-1-4302-3184-4.pdf
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PDF
Digital Logic Computer Design lecture notes
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PPT
Project quality management in manufacturing
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PPT
Mechanical Engineering MATERIALS Selection
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PPTX
additive manufacturing of ss316l using mig welding
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PPTX
Sustainable Sites - Green Building Construction
UNIT 4 Total Quality Management .pptx
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
Arduino robotics embedded978-1-4302-3184-4.pdf
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
Model Code of Practice - Construction Work - 21102022 .pdf
Digital Logic Computer Design lecture notes
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
Project quality management in manufacturing
UNIT-1 - COAL BASED THERMAL POWER PLANTS
CYBER-CRIMES AND SECURITY A guide to understanding
Embodied AI: Ushering in the Next Era of Intelligent Systems
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
Mechanical Engineering MATERIALS Selection
Operating System & Kernel Study Guide-1 - converted.pdf
additive manufacturing of ss316l using mig welding
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
Sustainable Sites - Green Building Construction

BGP Loop Prevention

  • 2. • When BGP updates travel through different Autonomous Systems (AS), EBGP routers prepend their AS to AS PATH attribute. • BGP routers use this information to check through which Autonomous Systems certain updates passed. • If a EBGP speaking router detects its own AS in AS PATH attribute update, the router will ignore the update and will not advertise it further to IBGP neighbors, because it is a routing information loop. This is a built in mechanism for loop prevention in BGP.
  • 4. • In Previous slide you can see four BGP speaking routers. R1 and R2 are in AS (Autonomous System) 65001 and form IBGP neighbor relationship with each other. • R3 is in AS 65002 and form EBGP neighborship with R1 and R4. R4 is in AS 65003 and form EBGP neighborship with R2 and R3. The only network prefix advertised in BGP is 192.168.0.1, which is advertised by R1. • All the other routers learn this route from BGP. Router R2 learns this network prefix directly from R1 which is in the same AS. Also, this prefix is sent to R3 by R1 as a BGP routing update and by R3 to R4. Router R4 in turn will send BGP routing update to R2. • Routing information loop would have occurred if loop prevention mechanism wouldn’t exist. Because routing update about 192.168.0.0/24 received by R2 from R4 contains R2’s own AS (65001), R2 will reject that update and will not be sent further to other IBGP neighbors (in this case – R1).
  • 5. To see BGP loop prevention in action, we’ll enable BGP debugging on R2 for updates received from R4, then will clear R4 (10.0.2.2) from BGP neighbors. See it in output below: • R2#debug ip bgp 10.0.2.2 updates • BGP updates debugging is on for neighbor 10.0.2.2 for address family: IPv4 Unicast • R2# • R2#clear ip bgp 10.0.2.2 • R2# • R2# • *Mar 1 00:12:27.455: %BGP-5-ADJCHANGE: neighbor 10.0.2.2 Down User reset • *Mar 1 00:12:28.679: %BGP-5-ADJCHANGE: neighbor 10.0.2.2 Up • *Mar 1 00:12:28.683: BGP(0): 10.0.2.2 send UPDATE (format) 192.168.0.0/24, next 10.0.2.1, metric 0, path Local • *Mar 1 00:13:00.219: BGP(0): 10.0.2.2 rcv UPDATE w/ attr: nexthop 10.0.2.2, origin i, originator 0.0.0.0, path 65003 65001, community , extended community • *Mar 1 00:13:00.223: BGP(0): 10.0.2.2 rcv UPDATE about 192.168.0.0/24 -- DENIED due to: AS-PATH contains our own AS; As you can see (highlighted in Black), there is an update sent by R4 to R2. That update was denied by R2 because it sees its own AS in AS-PATH.
  • 6. • This is how BGP handles BGP loop prevention of information updates between Autonomous Systems. • To avoid routing information loops within the same AS, all IBGP routers must peer with every router within AS (only TCP sessions required, not physical connections) – this is called full mesh IBGP. • IBGP uses split horizon rule, which states that routes learned from one IBGP neighbor is never sent to the rest of IBGP neighbors. That way, when you have full mesh IBGP, routing information loops will not occur, because all routers have the same routing information.