SlideShare ist ein Scribd-Unternehmen logo
1 von 177
Intro to BGP All-Day Tutorial Avi Freedman [email_address]
Index ,[object Object],[object Object],[object Object],[object Object]
Index ,[object Object],[object Object],[object Object],[object Object],[object Object]
Index ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Internet  Connectivity Overview
Having Internet Connectivity ,[object Object],[object Object],[object Object]
Multihoming  Without BGP
Multihoming Without BGP ,[object Object],[object Object]
BGP Route Advertisement (1) ,[object Object],[object Object],[object Object]
BGP Route Advertisement (2) ,[object Object],[object Object],[object Object]
BGP Route Advertisement (3) ,[object Object],[object Object]
BGP Route Advertisement (4) ,[object Object],[object Object]
Multihoming  Without BGP - How it Works
Customer Side - Outbound ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Cisco Load Balancing ,[object Object],[object Object],[object Object]
Customer Side - Inbound ,[object Object],[object Object],[object Object],[object Object]
Provider Side (1) ,[object Object],[object Object],[object Object],[object Object],[object Object]
Provider Side (2) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Address Space Complications ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Disadvantages of  not using BGP ,[object Object],[object Object]
Why BGP? ,[object Object],[object Object]
What is BGP?
BGP is … (1) ,[object Object],[object Object]
BGP is … (2) ,[object Object],[object Object],[object Object]
Purpose of BGP
Purpose of BGP ,[object Object],[object Object],[object Object],[object Object]
Basic BGP Concepts
Basic BGP Concepts (1) ,[object Object],[object Object],[object Object],[object Object]
BGP AND ASNs AS 4969 AS 5000 AS 6461 AS 701 AS 12001
Basic BGP Concepts (2) ,[object Object],[object Object],[object Object],[object Object]
Basic BGP Concepts (3) ,[object Object],[object Object],[object Object],[object Object]
Basic BGP Concepts (4) ,[object Object],[object Object],[object Object],[object Object]
CISCO DIAGRAM - RIB FIB ETC
Basic BGP Concepts - The BGP Route and Route Attributes
The BGP Route ,[object Object],[object Object],[object Object],[object Object]
What Is an Attribute? ,[object Object],[object Object],Next Hop AS Path ... ... MED ...
Next Hop Attribute ,[object Object],[object Object],[object Object],[object Object],[object Object],AS 6201 AS 3847 198.3.97.0/24 A B 207.240.24.200/30 .201 A B .202 C
Next Hop Self AS701 AS3561 AS3847 A B C D AS1 198.32.184.19 198.32.184.116 198.32.184.42 198.32.184.56
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],AS Path Attribute (1) AS3847 207.240.0.0/16 AS1673 140.222.0.0/16 AS701 192.67.95.0/24 AS3561 204.70.0.0/15 192.67.95.0/24  3847 701 i 140.222.0.0  3847 1673 i 204.70.0.0/15  3847 3561 i 207.240.0.0/16  3847 i AS6201 E C F G D B A
[object Object],[object Object],[object Object],AS Path Attribute (2)
[object Object],[object Object],[object Object],AS Path Attribute (3)
[object Object],[object Object],[object Object],[object Object],[object Object],Multi-Exit Discriminator (MED )
MED Attribute (2) ,[object Object],[object Object],[object Object]
[object Object],[object Object],MED Attribute  (3) +40 +20 +5
Origin Attribute ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Weight Attribute ,[object Object],[object Object],[object Object],[object Object],[object Object]
Weight Attribute (ctd) ,[object Object],[object Object]
Local Preference Attribute ,[object Object],[object Object],[object Object],[object Object],[object Object],AS 6201 208.1.1.0/24 A B 208.1.1.0/24  100 Preferred by all  AS3847 routers 208.1.1.0/24  80 AS 3847 G F E C D
Local-Pref Attribute (2) ,[object Object],[object Object],[object Object]
iBGP vs. eBGP
iBGP vs. eBGP ,[object Object],[object Object],[object Object],[object Object]
iBGP AS 3847 When BGP speakers in the same  AS form a BGP connection for  the purpose of exchanging routing information, they are said to be  running IBGP or  internal  BGP. IBGP speakers are usually  fully-meshed. B A c
eBGP (1) AS 3561 AS 3847 When BGP speakers in different  ASs form a BGP connection for  the purpose of exchanging routing information, they are said to be  running EBGP or  external  BGP.  EBGP peers are usually directly  connected.  B A
eBGP (2) AS 2033 AS 4200 AS 7007 AS 2041
iBGP and eBGP Diagram AS 7007 XP AS 1239 AS 6079 AS 701 AS 4006
eBGP Rules ,[object Object],[object Object],[object Object],[object Object],[object Object]
iBGP Rules ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Logical view of 16 routers, fully meshed
iBGP Restriction (1) ,[object Object],AS 2828 AS 1239 A B C
iBGP Restriction (2) ,[object Object],AS 2828 AS 1239 A B C
iBGP and next-hop (1) ,[object Object],AS 2828 AS 1239 A B C
iBGP and next-hop (2) ,[object Object],[object Object],[object Object]
Basic BGP Concepts Inserting Routes into BGP
Inserting Routes into BGP (1) ,[object Object],[object Object],[object Object],[object Object]
Inserting Routes into BGP (2) ,[object Object],[object Object],[object Object],[object Object],[object Object]
Inserting Routes into BGP (3) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Inserting Routes into BGP (4) ,[object Object],[object Object],[object Object],[object Object]
Basic BGP Advertising Routes
BGP Peering Sessions (1) ,[object Object],[object Object],[object Object],[object Object]
BGP Peering Sessions (2) ,[object Object],[object Object],[object Object],[object Object]
Peering - BGP State Machine ,[object Object],[object Object],[object Object]
Peering - Processing Routes ,[object Object],[object Object],[object Object],[object Object],[object Object]
Filtering BGP Routes - BGP Policy Control
BGP Policy Control ,[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object],Distribute List (1)
Distribute List (2) router bgp 3847 neighbor 207.240.8.246 remote-as 8130 neighbor 207.240.8.246 distribute-list 127 in neighbor 207.240.8.246 distribute-list 101 out access-list 127 permit ip host 207.19.74.0 host 255.255.255.0 access-list 127 permit ip host 208.198.100.0 host 255.255.252.0 access-list 127 permit ip host 208.204.80.0 host 255.255.252.0 access-list 127 permit ip host 208.212.249.0 host 255.255.255.0 access-list 127 permit ip host 207.240.120.0 host 255.255.255.0 access-list 127 permit ip host 208.220.144.0 host 255.255.248.0 access-list 127 permit ip host 208.225.192.0 host 255.255.240.0 access-list 127 deny  ip any any  ! explicit deny if not specified
Distribute List  (3) access-list 10 deny  ip 10.0.0.0 0.255.255.255  access-list 10 deny  ip 127.0.0.0 0.255.255.255 access-list 10 deny  ip 128.0.0.0 0.0.255.255 access-list 10 deny  ip 172.16.0.0 0.15.255.255 access-list 10 deny  ip 191.255.0.0 0.0.255.255 access-list 10 deny  ip 192.0.2.0 0.0.0.255 access-list 10 deny  ip 192.168.0.0 0.0.255.255 access-list 10 deny  ip 223.255.255.0 0.0.0.255 access-list 10 deny  ip 224.0.0.0 31.255.255.255 access-list 10 deny  ip 207.240.0.0 0.0.3.255 access-list 10 permit ip any A sanity filter like this keeps your table neat and prevents you from advertising crud to your peers.
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Filter List (1)
Cisco Regular Expressions (1) ,[object Object],[object Object],[object Object],[object Object]
Cisco Regular Expressions (2) ,[object Object],[object Object],[object Object]
Cisco Regular Expressions (3) ,[object Object],[object Object],[object Object]
Applying AS Path Filtering 3847 6201 D A C B E 701 F 6202 G The following configuration could be used on router B to accept routes from AS6201 & 6202 and deny all others. ip as-path access-list 10 permit ^6201$ ip as-path access-list 10 permit ^6201_6202$ ip as-path access-list 10 deny .*
[object Object],[object Object],[object Object],[object Object],[object Object],netaxs AS-Path ACLs
Route Maps (1) ,[object Object],[object Object]
Route Maps (2) ,[object Object],[object Object],[object Object],[object Object],[object Object]
Route Maps (3) ,[object Object],[object Object],[object Object],[object Object],[object Object]
Route Maps (4) ,[object Object],[object Object],[object Object]
Route Maps (5) ,[object Object],[object Object]
Basic BGP Selecting Routes
Selecting BGP Routes ,[object Object],[object Object],[object Object],[object Object],[object Object]
Selecting BGP Routes - Basic ,[object Object],[object Object],[object Object],[object Object],[object Object]
 
Hardware for BGP
Router Vendors (1) ,[object Object],[object Object],[object Object],[object Object],[object Object]
Router Vendors (2) ,[object Object],[object Object]
Router Vendors (3) ,[object Object],[object Object]
Router Vendors (4) ,[object Object],[object Object],[object Object],[object Object],[object Object]
Cisco Products ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Multihoming with BGP An Introduction
Step 1 - Determine Policy ,[object Object],[object Object],[object Object]
Policy for Basic Multi-Homing ,[object Object],[object Object]
Warning - I am Blackholio (1) ,[object Object],[object Object],[object Object],[object Object]
Warning - I am Blackholio (2) ,[object Object],[object Object],[object Object]
Warning - I am Blackholio (3) ,[object Object],[object Object]
Multihoming - Minimal BGP (for cheap routers)
Insert Static Default Routes ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Gather Networks ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Set up BGP Base Config ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Configuring Neighbors - Note ,[object Object],[object Object]
Neighbor Configuration (1) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Neighbor Configuration (2) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Test it ,[object Object],[object Object],[object Object]
Multihoming with BGP - Taking Customer Routes (an intermediate solution)
Taking Just Customer Routes ,[object Object],[object Object],[object Object]
Taking Just Customer Routes (2) ,[object Object],[object Object],[object Object]
Taking Just Customer Routes (3) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Taking Just Customer Routes (4) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Multihoming with BGP - Taking Full Routes
Policy ,[object Object],[object Object],[object Object],[object Object]
So, what Policy? ,[object Object]
Configuring Full BGP ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Logistics of becoming Multihomed
Multihoming Logistics ,[object Object],[object Object],[object Object],[object Object]
Multihoming to the same Provider
Multihoming to the same Provider ,[object Object],[object Object],[object Object],[object Object]
The Network Grows - Supporting BGP Customers
Supporting BGP Customers (1) ,[object Object],[object Object],[object Object],[object Object]
Supporting BGP Customers (2) ,[object Object],[object Object],[object Object]
Supporting BGP Customers (3) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Hot Potato  vs. Hop-by-Hop Routing
Hot Potato Routing ,[object Object],[object Object],[object Object],[object Object]
Quickie on Route-Maps ,[object Object],[object Object],[object Object],[object Object]
Implementing Communities ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Implementing Communities ,[object Object],[object Object],[object Object],[object Object],[object Object]
TUNING INBOUND  BGP ANNOUNCEMENTS
Inbound BGP Routes ,[object Object],[object Object],[object Object]
Tuning Inbound BGP Routes ,[object Object],[object Object],[object Object],[object Object],[object Object]
Tuning Inbound BGP Routes ,[object Object],[object Object]
Tuning Inbound BGP Routes ,[object Object],[object Object],[object Object],[object Object]
Tuning Inbound BGP Routes ,[object Object],[object Object],[object Object],[object Object]
Tuning Inbound BGP Routes ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Tuning Inbound BGP Routes ,[object Object],[object Object]
TUNING OUTBOUND BGP ANNOUNCEMENTS
Tuning Outbound BGP ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Tuning Outbound - Padding ,[object Object]
Tuning Outbound - Padding ,[object Object],[object Object],[object Object],[object Object],[object Object]
Tuning Outbound - Communities ,[object Object],[object Object]
Tuning Outbound - deagg. ,[object Object],[object Object],[object Object],[object Object]
PEERING WITH  OTHER ISPS
Peering ,[object Object],[object Object],[object Object]
PEERING AND next-hop-self
BGP: Next-hop-self ,[object Object],[object Object],[object Object]
Next-Hop-Self Issues: Bad XP AS 701 192.41.177.241 AS 4969 192.41.177.87 AS 6666 192.41.177.4 10.10.10.0/24  6666  192.41.177.4 Prefix  AS-Path Next-hop AS 6666 says to AS 4969: AS 4969 says to AS 701: Prefix  AS-Path  Next-hop 10.10.10.0/24  4969 6666 192.41.177.4
Next-Hop-Self Issues: Better XP AS 701 192.41.177.241 AS 4969 192.41.177.87 AS 6666 192.41.177.4 10.10.10.0/24  6666  192.41.177.4 Prefix  AS-Path Next-hop AS 6666 says to AS 4969: AS 4969 says to AS 701: Prefix  AS-Path  Next-hop 10.10.10.0/24  4969 6666 192.41.177.87
BACKUP TRANSIT
STABLE BGP
Stable BGP ,[object Object],[object Object],[object Object],[object Object],[object Object]
Stable BGP - Loopbacks ,[object Object],[object Object],[object Object],[object Object]
BGP Stability - soft-reconfig ,[object Object],[object Object],[object Object]
BGP Dampening BGP dampening is used to minimize instability caused by route flapping and oscillation over the network.  To accomplish this, values are defined to identify badly behaved routes. Genuity currently uses Cisco's default values which basically say 'flap 3 times in 15 minutes and your damped': half-life  15 minutes penalty  1000 suppress-value  2000 reuse-value  750 But in time it can become a bit more complex.  Each time a route flaps it gets a  penalty  (1000).  If the cumulative  penalty  is greater than the  suppress-value  (2000, so 3 flaps), the advertisement of the route will be suppressed.  The  penalty  will be exponentially decayed based on the  half-life .  Once the  penalty  decreases below the predefined  reuse-value , the  advertisement will be unsuppressed.  The default maximum suppress time is 4 times the  half-life .  This ensures that if a route flaps a lot in a very short period but quickly becomes stable it's only suppressed for a maximum of 1 hour. Route flap dampening is not applied to routes originated from the AS in which the router resides.
eBGP Multihop
Why eBGP Multihop is BAD ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Blackhole w/ eBGP Multihop ,[object Object],[object Object],[object Object]
SUPPORTING MULTI-HOMED CUSTOMERS
Supporting Multi-Homed Custs ,[object Object],[object Object]
Supporting Multi-Homed Custs ,[object Object],[object Object],[object Object],[object Object]
IGP REDISTRIBUTION
SCALING WITH CONFEDERATIONS
BGP Confederations ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Logical View of full 16-router Mesh (kudos to danny@genuity)
Confederations C C C C C C C C C C C C C AS 1239 AS 701 AS 4969 AS 64512 AS 64513 AS 64514
AS-Path filters for confederations ,[object Object],[object Object],[object Object],[object Object]
SCALING WITH ROUTE REFLECTORS
Route Reflector Terminology ,[object Object],[object Object],[object Object],[object Object],[object Object]
Other Issues
Access-List 112: smd ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
CISCO CONFIGURATION

Weitere ähnliche Inhalte

Was ist angesagt?

BGP (border gateway routing protocol)
BGP (border gateway routing protocol)BGP (border gateway routing protocol)
BGP (border gateway routing protocol)Netwax Lab
 
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
 
CCNP Route 642 902 BGP
CCNP Route 642 902 BGPCCNP Route 642 902 BGP
CCNP Route 642 902 BGPIT Tech
 
Using BGP To Manage Dual Internet Connections
Using BGP To Manage Dual Internet ConnectionsUsing BGP To Manage Dual Internet Connections
Using BGP To Manage Dual Internet ConnectionsRowell Dionicio
 
BGP Multihoming Techniques
BGP Multihoming TechniquesBGP Multihoming Techniques
BGP Multihoming TechniquesAPNIC
 
SGNOG2 - Using communities for multihoming ISP workshop
SGNOG2 - Using communities for multihoming ISP workshopSGNOG2 - Using communities for multihoming ISP workshop
SGNOG2 - Using communities for multihoming ISP workshopAPNIC
 
Implementing Internet and MPLS BGP
Implementing Internet and MPLS BGPImplementing Internet and MPLS BGP
Implementing Internet and MPLS BGPPrivate
 
Border Gateway Protocol
Border Gateway ProtocolBorder Gateway Protocol
Border Gateway ProtocolKashif Latif
 
BGP Techniques for Network Operators
BGP Techniques for Network OperatorsBGP Techniques for Network Operators
BGP Techniques for Network OperatorsAPNIC
 
BGP Prime
BGP Prime BGP Prime
BGP Prime KHNOG
 

Was ist angesagt? (20)

BGP (border gateway routing protocol)
BGP (border gateway routing protocol)BGP (border gateway routing protocol)
BGP (border gateway routing 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)
 
CCNP Route 642 902 BGP
CCNP Route 642 902 BGPCCNP Route 642 902 BGP
CCNP Route 642 902 BGP
 
Bgp (1)
Bgp (1)Bgp (1)
Bgp (1)
 
BGP
BGPBGP
BGP
 
Using BGP To Manage Dual Internet Connections
Using BGP To Manage Dual Internet ConnectionsUsing BGP To Manage Dual Internet Connections
Using BGP To Manage Dual Internet Connections
 
Bgp
BgpBgp
Bgp
 
BGP Multihoming Techniques
BGP Multihoming TechniquesBGP Multihoming Techniques
BGP Multihoming Techniques
 
Bgp
BgpBgp
Bgp
 
Bgp training
Bgp trainingBgp training
Bgp training
 
Bgp
BgpBgp
Bgp
 
SGNOG2 - Using communities for multihoming ISP workshop
SGNOG2 - Using communities for multihoming ISP workshopSGNOG2 - Using communities for multihoming ISP workshop
SGNOG2 - Using communities for multihoming ISP workshop
 
How BGP Works
How BGP WorksHow BGP Works
How BGP Works
 
Implementing Internet and MPLS BGP
Implementing Internet and MPLS BGPImplementing Internet and MPLS BGP
Implementing Internet and MPLS BGP
 
Border Gateway Protocol
Border Gateway ProtocolBorder Gateway Protocol
Border Gateway Protocol
 
BGP Techniques for Network Operators
BGP Techniques for Network OperatorsBGP Techniques for Network Operators
BGP Techniques for Network Operators
 
BGP
BGPBGP
BGP
 
BGP
BGPBGP
BGP
 
BGP Prime
BGP Prime BGP Prime
BGP Prime
 
Lec7
Lec7Lec7
Lec7
 

Ähnlich wie Bigbgp

BGP Protocol Makes the Internet Work
BGP Protocol Makes the Internet WorkBGP Protocol Makes the Internet Work
BGP Protocol Makes the Internet WorkIT Tech
 
Routing Protocols
Routing ProtocolsRouting Protocols
Routing Protocolselgraini
 
Surviving The Stump The Chump Interview Questions
Surviving The Stump The Chump Interview QuestionsSurviving The Stump The Chump Interview Questions
Surviving The Stump The Chump Interview QuestionsDuane Bodle
 
T4 Handout3
T4 Handout3T4 Handout3
T4 Handout3gobed
 
Computer network (14)
Computer network (14)Computer network (14)
Computer network (14)NYversity
 
PLNOG15: BGP New Advanced Features - Piotr Wojciechowski
PLNOG15: BGP New Advanced Features - Piotr WojciechowskiPLNOG15: BGP New Advanced Features - Piotr Wojciechowski
PLNOG15: BGP New Advanced Features - Piotr WojciechowskiPROIDEA
 
3 ip routing eigrp
3 ip routing eigrp3 ip routing eigrp
3 ip routing eigrpSagarR24
 
3 ip routing bgp-updated
3 ip routing bgp-updated3 ip routing bgp-updated
3 ip routing bgp-updatedSagarR24
 
3 ip routing part b
3 ip routing part b3 ip routing part b
3 ip routing part bSagarR24
 
3 ip routing pbr bfd -v2
3 ip routing   pbr bfd -v23 ip routing   pbr bfd -v2
3 ip routing pbr bfd -v2SagarR24
 
Comment by JCB Please center this on the pag.docx
Comment by JCB Please center this on the pag.docxComment by JCB Please center this on the pag.docx
Comment by JCB Please center this on the pag.docxclarebernice
 
Dynamische Routingprotokolle Aufzucht und Pflege - BGP
Dynamische Routingprotokolle Aufzucht und Pflege - BGPDynamische Routingprotokolle Aufzucht und Pflege - BGP
Dynamische Routingprotokolle Aufzucht und Pflege - BGPMaximilan Wilhelm
 

Ähnlich wie Bigbgp (20)

BGP Protocol Makes the Internet Work
BGP Protocol Makes the Internet WorkBGP Protocol Makes the Internet Work
BGP Protocol Makes the Internet Work
 
BGP Overview
BGP OverviewBGP Overview
BGP Overview
 
Routing Protocols
Routing ProtocolsRouting Protocols
Routing Protocols
 
CCNP ROUTE V7 CH7
CCNP ROUTE V7 CH7CCNP ROUTE V7 CH7
CCNP ROUTE V7 CH7
 
Surviving The Stump The Chump Interview Questions
Surviving The Stump The Chump Interview QuestionsSurviving The Stump The Chump Interview Questions
Surviving The Stump The Chump Interview Questions
 
T4 Handout3
T4 Handout3T4 Handout3
T4 Handout3
 
Computer network (14)
Computer network (14)Computer network (14)
Computer network (14)
 
Bgp
BgpBgp
Bgp
 
ENCOR_Chapter_6.pptx
ENCOR_Chapter_6.pptxENCOR_Chapter_6.pptx
ENCOR_Chapter_6.pptx
 
ION Bangladesh - Secure BGP and Operational Report of Bangladesh
ION Bangladesh - Secure BGP and Operational Report of BangladeshION Bangladesh - Secure BGP and Operational Report of Bangladesh
ION Bangladesh - Secure BGP and Operational Report of Bangladesh
 
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
 
CS6551 COMPUTER NETWORKS
CS6551 COMPUTER NETWORKSCS6551 COMPUTER NETWORKS
CS6551 COMPUTER NETWORKS
 
Week14 lec2
Week14 lec2Week14 lec2
Week14 lec2
 
3 ip routing eigrp
3 ip routing eigrp3 ip routing eigrp
3 ip routing eigrp
 
Secure BGP and Operational Report of Bangladesh
Secure BGP and Operational Report of BangladeshSecure BGP and Operational Report of Bangladesh
Secure BGP and Operational Report of Bangladesh
 
3 ip routing bgp-updated
3 ip routing bgp-updated3 ip routing bgp-updated
3 ip routing bgp-updated
 
3 ip routing part b
3 ip routing part b3 ip routing part b
3 ip routing part b
 
3 ip routing pbr bfd -v2
3 ip routing   pbr bfd -v23 ip routing   pbr bfd -v2
3 ip routing pbr bfd -v2
 
Comment by JCB Please center this on the pag.docx
Comment by JCB Please center this on the pag.docxComment by JCB Please center this on the pag.docx
Comment by JCB Please center this on the pag.docx
 
Dynamische Routingprotokolle Aufzucht und Pflege - BGP
Dynamische Routingprotokolle Aufzucht und Pflege - BGPDynamische Routingprotokolle Aufzucht und Pflege - BGP
Dynamische Routingprotokolle Aufzucht und Pflege - BGP
 

Bigbgp

  • 1. Intro to BGP All-Day Tutorial Avi Freedman [email_address]
  • 2.
  • 3.
  • 4.
  • 6.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13. Multihoming Without BGP - How it Works
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 23.
  • 24.
  • 26.
  • 28.
  • 29. BGP AND ASNs AS 4969 AS 5000 AS 6461 AS 701 AS 12001
  • 30.
  • 31.
  • 32.
  • 33. CISCO DIAGRAM - RIB FIB ETC
  • 34. Basic BGP Concepts - The BGP Route and Route Attributes
  • 35.
  • 36.
  • 37.
  • 38. Next Hop Self AS701 AS3561 AS3847 A B C D AS1 198.32.184.19 198.32.184.116 198.32.184.42 198.32.184.56
  • 39.
  • 40.
  • 41.
  • 42.
  • 43.
  • 44.
  • 45.
  • 46.
  • 47.
  • 48.
  • 49.
  • 51.
  • 52. iBGP AS 3847 When BGP speakers in the same AS form a BGP connection for the purpose of exchanging routing information, they are said to be running IBGP or internal BGP. IBGP speakers are usually fully-meshed. B A c
  • 53. eBGP (1) AS 3561 AS 3847 When BGP speakers in different ASs form a BGP connection for the purpose of exchanging routing information, they are said to be running EBGP or external BGP. EBGP peers are usually directly connected. B A
  • 54. eBGP (2) AS 2033 AS 4200 AS 7007 AS 2041
  • 55. iBGP and eBGP Diagram AS 7007 XP AS 1239 AS 6079 AS 701 AS 4006
  • 56.
  • 57.
  • 58. Logical view of 16 routers, fully meshed
  • 59.
  • 60.
  • 61.
  • 62.
  • 63. Basic BGP Concepts Inserting Routes into BGP
  • 64.
  • 65.
  • 66.
  • 67.
  • 69.
  • 70.
  • 71.
  • 72.
  • 73. Filtering BGP Routes - BGP Policy Control
  • 74.
  • 75.
  • 76. Distribute List (2) router bgp 3847 neighbor 207.240.8.246 remote-as 8130 neighbor 207.240.8.246 distribute-list 127 in neighbor 207.240.8.246 distribute-list 101 out access-list 127 permit ip host 207.19.74.0 host 255.255.255.0 access-list 127 permit ip host 208.198.100.0 host 255.255.252.0 access-list 127 permit ip host 208.204.80.0 host 255.255.252.0 access-list 127 permit ip host 208.212.249.0 host 255.255.255.0 access-list 127 permit ip host 207.240.120.0 host 255.255.255.0 access-list 127 permit ip host 208.220.144.0 host 255.255.248.0 access-list 127 permit ip host 208.225.192.0 host 255.255.240.0 access-list 127 deny ip any any ! explicit deny if not specified
  • 77. Distribute List (3) access-list 10 deny ip 10.0.0.0 0.255.255.255 access-list 10 deny ip 127.0.0.0 0.255.255.255 access-list 10 deny ip 128.0.0.0 0.0.255.255 access-list 10 deny ip 172.16.0.0 0.15.255.255 access-list 10 deny ip 191.255.0.0 0.0.255.255 access-list 10 deny ip 192.0.2.0 0.0.0.255 access-list 10 deny ip 192.168.0.0 0.0.255.255 access-list 10 deny ip 223.255.255.0 0.0.0.255 access-list 10 deny ip 224.0.0.0 31.255.255.255 access-list 10 deny ip 207.240.0.0 0.0.3.255 access-list 10 permit ip any A sanity filter like this keeps your table neat and prevents you from advertising crud to your peers.
  • 78.
  • 79.
  • 80.
  • 81.
  • 82. Applying AS Path Filtering 3847 6201 D A C B E 701 F 6202 G The following configuration could be used on router B to accept routes from AS6201 & 6202 and deny all others. ip as-path access-list 10 permit ^6201$ ip as-path access-list 10 permit ^6201_6202$ ip as-path access-list 10 deny .*
  • 83.
  • 84.
  • 85.
  • 86.
  • 87.
  • 88.
  • 90.
  • 91.
  • 92.  
  • 94.
  • 95.
  • 96.
  • 97.
  • 98.
  • 99. Multihoming with BGP An Introduction
  • 100.
  • 101.
  • 102.
  • 103.
  • 104.
  • 105. Multihoming - Minimal BGP (for cheap routers)
  • 106.
  • 107.
  • 108.
  • 109.
  • 110.
  • 111.
  • 112.
  • 113. Multihoming with BGP - Taking Customer Routes (an intermediate solution)
  • 114.
  • 115.
  • 116.
  • 117.
  • 118. Multihoming with BGP - Taking Full Routes
  • 119.
  • 120.
  • 121.
  • 122. Logistics of becoming Multihomed
  • 123.
  • 124. Multihoming to the same Provider
  • 125.
  • 126. The Network Grows - Supporting BGP Customers
  • 127.
  • 128.
  • 129.
  • 130. Hot Potato vs. Hop-by-Hop Routing
  • 131.
  • 132.
  • 133.
  • 134.
  • 135. TUNING INBOUND BGP ANNOUNCEMENTS
  • 136.
  • 137.
  • 138.
  • 139.
  • 140.
  • 141.
  • 142.
  • 143. TUNING OUTBOUND BGP ANNOUNCEMENTS
  • 144.
  • 145.
  • 146.
  • 147.
  • 148.
  • 149. PEERING WITH OTHER ISPS
  • 150.
  • 152.
  • 153. Next-Hop-Self Issues: Bad XP AS 701 192.41.177.241 AS 4969 192.41.177.87 AS 6666 192.41.177.4 10.10.10.0/24 6666 192.41.177.4 Prefix AS-Path Next-hop AS 6666 says to AS 4969: AS 4969 says to AS 701: Prefix AS-Path Next-hop 10.10.10.0/24 4969 6666 192.41.177.4
  • 154. Next-Hop-Self Issues: Better XP AS 701 192.41.177.241 AS 4969 192.41.177.87 AS 6666 192.41.177.4 10.10.10.0/24 6666 192.41.177.4 Prefix AS-Path Next-hop AS 6666 says to AS 4969: AS 4969 says to AS 701: Prefix AS-Path Next-hop 10.10.10.0/24 4969 6666 192.41.177.87
  • 157.
  • 158.
  • 159.
  • 160. BGP Dampening BGP dampening is used to minimize instability caused by route flapping and oscillation over the network. To accomplish this, values are defined to identify badly behaved routes. Genuity currently uses Cisco's default values which basically say 'flap 3 times in 15 minutes and your damped': half-life 15 minutes penalty 1000 suppress-value 2000 reuse-value 750 But in time it can become a bit more complex. Each time a route flaps it gets a penalty (1000). If the cumulative penalty is greater than the suppress-value (2000, so 3 flaps), the advertisement of the route will be suppressed. The penalty will be exponentially decayed based on the half-life . Once the penalty decreases below the predefined reuse-value , the advertisement will be unsuppressed. The default maximum suppress time is 4 times the half-life . This ensures that if a route flaps a lot in a very short period but quickly becomes stable it's only suppressed for a maximum of 1 hour. Route flap dampening is not applied to routes originated from the AS in which the router resides.
  • 162.
  • 163.
  • 165.
  • 166.
  • 169.
  • 170. Logical View of full 16-router Mesh (kudos to danny@genuity)
  • 171. Confederations C C C C C C C C C C C C C AS 1239 AS 701 AS 4969 AS 64512 AS 64513 AS 64514
  • 172.
  • 173. SCALING WITH ROUTE REFLECTORS
  • 174.
  • 176.