Part 11 : Interdomain routing with BGP

Olivier Bonaventure
Olivier BonaventureProfessor at Université catholique de Louvain (UCL) and co-founder at Tessares
Week 11
Interdomain routing with BGP
Agenda
• Interdomain routing
• BGP basics
• BGP convergence
• Local Area Networks
Limitations of local-pref
• In theory
• Each domain is free to define its order of
preference for the routes learned from external
peers
• How to reach 2001:db8:1/48 from AS3 and
AS1
AS3 AS4
Preferred paths for AS4
1. AS3:AS1
2. AS1
Preferred paths for AS3
1. AS4:AS1
2. AS1
2001:db8:1/48
• AS1 sends its UPDATE messages ...
AS1
AS3 AS4
2001:db8:1/48
Preferred paths for AS3
1. AS4:AS1
2. AS1
UPDATE
lP: 2001:db8:1/48
lASPath: AS1
Routing table for AS3
2001:db8:1/48 ASPath: AS1 (best)
Preferred paths for AS4
1. AS3:AS1
2. AS1
UPDATE
lP: 2001:db8:1/48
lASPath: AS1
Routing table for AS4
2001:db8:1/48 ASPath: AS1 (best)
Limitations of local-pref
• First possibility
• AS3 sends its UPDATE first...
AS1
AS3 AS4
Preferred paths for AS3
1. AS4:AS1
2. AS1
2001:db8:1/48
Routing table for AS3
2001:db8:1/48 ASPath: AS1 (best) UPDATE
lP: 2001:db8:1/48
lASPath: AS3:AS1
Preferred paths for AS4
1. AS3:AS1
2. AS1
Routing table for AS4
2001:db8:1/48 ASPath: AS1
2001:db8:1/48 ASPath:AS3:AS1 (best)
• Stable route assignment
Limitations of local-pref
• AS4 sends its UPDATE first...
AS1
AS3 AS4
l2001:db8:1/48
Preferred paths for AS4
1. AS3:AS1
2. AS1
Routing table for AS4
2001:db8:1/48 ASPath: AS1 (bes
Preferred paths for AS3
1. AS4:AS1
2. AS1
UPDATE
lPrefix: 2001:db8:1/48
lASPath: AS4:AS1
Routing table for AS3
2001:db8:1/48 ASPath: AS1
2001:db8:1/48 ASPath: AS4:AS1 (best)
• Another (but different) stable route assignment
Limitations of local-pref
• AS3 and AS4 send their UPDATE together...
AS1
AS3 AS4
Preferred paths for AS3
1. AS4:AS1
2. AS1
2001:db8:1/48
UPDATE
lP: 2001:db8:1/48
lASPath: AS3:AS1
Preferred paths for AS4
1. AS3:AS1
2. AS1
UPDATE
lP: 2001:db8:1/48
ASPath: AS4:AS1
• AS3 prefers indirect path -> withdraw
• AS4 prefers indirect path -> withdraw
Limitations of local-pref
• AS3 and AS4 send their UPDATE together...
AS1
AS3 AS4
Preferred paths for AS3
1. AS4:AS1
2. AS1
2001:db8:1/48
Preferred paths for AS4
1. AS3:AS1
2. AS1
WITHDRAW
lP: 2001:db8:1/48
• AS3 : indirect route is not available anymore
• AS3 will reannounce its direct route...
WITHDRAW
lP: 2001:db8:1/48
• AS4 : indirect route is not available anymore
• AS4 will reannounce its direct route...
Limitations of local-pref
More limitations
local pref
• Unfortunately, interdomain routing may not
converge at all in some cases...
• How to reach a destination inside AS0 in this
case ?
AS1
AS3 AS4
Preferred paths for AS3
1. AS4:AS0
2. other paths
AS0
Preferred paths for AS4
1. AS1:AS0
2. other paths
Preferred paths for AS1
1. AS3:AS0
2. other paths
Simple example
AS1
AS2
AS3
$ Customer-provider
Shared-cost
$
• AS1 announces one prefix, p
• What is the BGP routing table on AS2 ?
• What is the BGP routing table on AS3 ?
Simple example
• AS1 announces one prefix, p
AS1
AS2
AS3
AS5
$ Customer-provider
Shared-cost
$
$
AS4
$
AS4 BGP
p via AS1
p via AS1
AS4 BGP
p via AS1
p via AS2:AS1
p via AS3:AS2:AS1
AS4 BGP
p via AS1
p via AS3:AS2:AS
Simple example
• AS1 announces one prefix, p
AS1
AS2
AS3
AS5
$ Customer-provider
Shared-cost
$
$
AS4
$
$
$
p via AS1 p via AS2:AS1
p via AS3:AS2:AS1
p via AS2:AS1
p via AS1
p via AS4:AS3:AS2:AS1
Simple example
• AS1 announces one prefix, p
• link AS1-AS2 fails
AS1
AS2
AS3
AS5
$ Customer-provider
Shared-cost
$
$
AS4
$
$
$
AS2 BGP
p via AS1
AS3 BGP
p via AS2:AS1
AS4 BGP
p via AS1
p via AS2:AS1
p via AS3:AS2:AS
Withdraw(p)
Withdraw(p)
Withdraw(p)
Withdraw(p)
Simple example
• AS1 announces one prefix, p
• AS2-AS4 fails
AS1
AS2
AS3
AS5
$ Customer-provider
Shared-cost
$
$
AS4
$
$
AS2 BGP
p via AS1
AS3 BGP
p via AS2:AS1
AS4 BGP
p via AS1
p via AS2:AS1
p via AS3:AS2:AS
Simple example
• AS1 announces one prefix, p
• AS3-AS4 is initially down and then comes up
AS1
AS2
AS3
$ Customer-provider
Shared-cost
$
$
AS4
$
AS5
$
AS4 BGP
p via AS1
p via AS2:AS1
p via AS3:AS2:AS1
local-pref and
economical
relationships
• In practice, local-pref is often combined
with filters to enforce economical
relationships
AS1
Prov1 Prov2
Peer1
Peer2
Peer3
Peer4
Cust1 Cust2
$ Customer-provider
$
Shared-cost
$
$ $
Local-pref values used by AS1
> 1000 for the routes received from a Customer
500 – 999 for the routes learned from a Peer
< 500 for the routes learned from a Provider
local-pref
• Which path will be used by AS1 to reach AS5 ?
• and how will AS5 reach AS1 ?
AS1
AS4
AS2
AS3
AS5
$ Customer-provider
Shared-cost
$
$
$
$
$
AS8
$
AS6
AS7
$
$
Internet paths are often asymmetrical
Internet 1990s
• NSFNet
• American backbone
• AUP : no commercial traffic
• Some regional networks
• US regions
• national networks in
Europe
• Universities/research labs
• connected to regional
networks or directly to
Internet early 2000s
• Tier-1 ISPs
• Dozen transit ISPs shared-
cost
• Uunet, Level3, OTIP, ...
• Tier-2 ISPs
• Regional/ National ISPs
• Tier-3 ISPs
• Smaller ISPs, Entreprise
Networks, Content providers
• Customers of T2 or T1 ISPs
• shared-cost with other T3
Today’s Internet
• Hyper Giants
• google, microsoft,
yahoo, amazon, ...
• google peers 70%
ISPs
• Tier-1 ISPs
• Tier-2 ISPs
• Tier-3 ISPs
• Many peerings at IXPs
Craig Labovitz), Scott Iekel-Johnson, Danny McPherson, Jon Oberheide, Farnam Jahanian,
Internet Inter-Domain Traffic, SIGCOMM 2010
Internet size (#AS)
Source: http://bgp.potaroo.net
BGP IPv6 routing
tables
Source: http://bgp.potaroo.net
BGP : IPv4 routing
tables
Source: http://bgp.potaroo.net
AS7007 incident
RIPE RIS
https://stat.ripe.net/widget/looking-
glass#w.resource=2001:6a8::/32
https://stat.ripe.net/AS2611#tabId=at-a-glance
https://stat.ripe.net/2001:6A8::/32#tabId=routing
Youtube and Pakistan
http://www.ripe.net/internet-
coordination/news/industry-
developments/youtube-hijacking-a-ripe-
ncc-ris-case-study
Agenda
• Interdomain routing
• Local Area Networks
• Ethernet
• WiFi
1 of 27

Recommended

BGP Advanced topics by
BGP Advanced topicsBGP Advanced topics
BGP Advanced topicsOlivier Bonaventure
1.3K views78 slides
11 bgp-ethernet by
11 bgp-ethernet11 bgp-ethernet
11 bgp-ethernetOlivier Bonaventure
1.5K views59 slides
IPv6 Entreprise Multihoming by
IPv6 Entreprise MultihomingIPv6 Entreprise Multihoming
IPv6 Entreprise MultihomingOlivier Bonaventure
259 views23 slides
16 coms 525 tcpip - routing protocols -all by
16    coms 525 tcpip - routing protocols -all16    coms 525 tcpip - routing protocols -all
16 coms 525 tcpip - routing protocols -allPalanivel Kuppusamy
36 views80 slides
Innovation is back in the transport and network layers by
Innovation is back in the transport and network layersInnovation is back in the transport and network layers
Innovation is back in the transport and network layersOlivier Bonaventure
1.1K views53 slides
BIRD Routing Daemon by
BIRD Routing DaemonBIRD Routing Daemon
BIRD Routing DaemonAPNIC
8K views29 slides

More Related Content

What's hot

0-RTT TCP converters by
0-RTT TCP converters0-RTT TCP converters
0-RTT TCP convertersOlivier Bonaventure
332 views20 slides
10 routing-bgp by
10 routing-bgp10 routing-bgp
10 routing-bgpOlivier Bonaventure
2.1K views49 slides
IPv6 Segment Routing : an end-to-end solution ? by
IPv6 Segment Routing : an end-to-end solution ?IPv6 Segment Routing : an end-to-end solution ?
IPv6 Segment Routing : an end-to-end solution ?Olivier Bonaventure
459 views31 slides
BGP by
BGPBGP
BGPAnıl Alibeyoğlu
7.3K views74 slides
BGP Techniques for Network Operators by
BGP Techniques for Network OperatorsBGP Techniques for Network Operators
BGP Techniques for Network OperatorsAPNIC
5.6K views208 slides
SEGMENT Routing by
SEGMENT RoutingSEGMENT Routing
SEGMENT RoutingBangladesh Network Operators Group
575 views46 slides

What's hot(20)

BGP Techniques for Network Operators by APNIC
BGP Techniques for Network OperatorsBGP Techniques for Network Operators
BGP Techniques for Network Operators
APNIC5.6K views
Bgp For Presentation by Alp isik
Bgp For PresentationBgp For Presentation
Bgp For Presentation
Alp isik1.7K views
An Overview of Border Gateway Protocol (BGP) by Jasim Alam
An Overview of Border Gateway Protocol (BGP)An Overview of Border Gateway Protocol (BGP)
An Overview of Border Gateway Protocol (BGP)
Jasim Alam4.1K views
Equinix IP Address Renumbering in Singapore and Sydney by APNIC
Equinix IP Address Renumbering in Singapore and SydneyEquinix IP Address Renumbering in Singapore and Sydney
Equinix IP Address Renumbering in Singapore and Sydney
APNIC603 views
Troubleshooting BGP by APNIC
Troubleshooting BGPTroubleshooting BGP
Troubleshooting BGP
APNIC3.2K views
PLNOG15: BGP New Advanced Features - Piotr Wojciechowski by PROIDEA
PLNOG15: BGP New Advanced Features - Piotr WojciechowskiPLNOG15: BGP New Advanced Features - Piotr Wojciechowski
PLNOG15: BGP New Advanced Features - Piotr Wojciechowski
PROIDEA183 views
Using BGP To Manage Dual Internet Connections by Rowell Dionicio
Using BGP To Manage Dual Internet ConnectionsUsing BGP To Manage Dual Internet Connections
Using BGP To Manage Dual Internet Connections
Rowell Dionicio31.2K views

Similar to Part 11 : Interdomain routing with BGP

Part 10 : Routing in IP networks and interdomain routing with BGP by
Part 10 : Routing in IP networks and interdomain routing with BGPPart 10 : Routing in IP networks and interdomain routing with BGP
Part 10 : Routing in IP networks and interdomain routing with BGPOlivier Bonaventure
150 views82 slides
PLNOG 7: Pierre Francois - BGP Add-Paths by
PLNOG 7: Pierre Francois - BGP Add-PathsPLNOG 7: Pierre Francois - BGP Add-Paths
PLNOG 7: Pierre Francois - BGP Add-PathsPROIDEA
88 views54 slides
Internet Routing Registry and RPKI Tutorial, by Nurul Islam Roman [APNIC 38] by
Internet Routing Registry and RPKI Tutorial, by Nurul Islam Roman [APNIC 38]Internet Routing Registry and RPKI Tutorial, by Nurul Islam Roman [APNIC 38]
Internet Routing Registry and RPKI Tutorial, by Nurul Islam Roman [APNIC 38]APNIC
1.7K views81 slides
Wrou01 by
Wrou01Wrou01
Wrou01tanawan44
629 views292 slides
ISP Border Definition by
ISP Border DefinitionISP Border Definition
ISP Border DefinitionQrator Labs
324 views38 slides
AusNOG 2023: RPKI and whois updates by
AusNOG 2023: RPKI and whois updatesAusNOG 2023: RPKI and whois updates
AusNOG 2023: RPKI and whois updatesAPNIC
566 views39 slides

Similar to Part 11 : Interdomain routing with BGP(20)

Part 10 : Routing in IP networks and interdomain routing with BGP by Olivier Bonaventure
Part 10 : Routing in IP networks and interdomain routing with BGPPart 10 : Routing in IP networks and interdomain routing with BGP
Part 10 : Routing in IP networks and interdomain routing with BGP
PLNOG 7: Pierre Francois - BGP Add-Paths by PROIDEA
PLNOG 7: Pierre Francois - BGP Add-PathsPLNOG 7: Pierre Francois - BGP Add-Paths
PLNOG 7: Pierre Francois - BGP Add-Paths
PROIDEA88 views
Internet Routing Registry and RPKI Tutorial, by Nurul Islam Roman [APNIC 38] by APNIC
Internet Routing Registry and RPKI Tutorial, by Nurul Islam Roman [APNIC 38]Internet Routing Registry and RPKI Tutorial, by Nurul Islam Roman [APNIC 38]
Internet Routing Registry and RPKI Tutorial, by Nurul Islam Roman [APNIC 38]
APNIC1.7K views
ISP Border Definition by Qrator Labs
ISP Border DefinitionISP Border Definition
ISP Border Definition
Qrator Labs324 views
AusNOG 2023: RPKI and whois updates by APNIC
AusNOG 2023: RPKI and whois updatesAusNOG 2023: RPKI and whois updates
AusNOG 2023: RPKI and whois updates
APNIC566 views
Detecting Autonomous Systems Relationships by HLL
Detecting Autonomous Systems RelationshipsDetecting Autonomous Systems Relationships
Detecting Autonomous Systems Relationships
HLL452 views
Prefix Filtering Design Issues and Best Practise by Nurul Islam by MyNOG
Prefix Filtering Design Issues and Best Practise by Nurul IslamPrefix Filtering Design Issues and Best Practise by Nurul Islam
Prefix Filtering Design Issues and Best Practise by Nurul Islam
MyNOG1.1K views
Routing Security Workshop by RIPE NCC
Routing Security WorkshopRouting Security Workshop
Routing Security Workshop
RIPE NCC958 views
Computer network (14) by NYversity
Computer network (14)Computer network (14)
Computer network (14)
NYversity249 views
Internet Routing Registry Tutorial, by Nurul Islam Roman [APRICOT 2015] by APNIC
Internet Routing Registry Tutorial, by Nurul Islam Roman [APRICOT 2015]Internet Routing Registry Tutorial, by Nurul Islam Roman [APRICOT 2015]
Internet Routing Registry Tutorial, by Nurul Islam Roman [APRICOT 2015]
APNIC2.5K views
IRR Tutorial and RPKI Demo by APNIC
IRR Tutorial and RPKI DemoIRR Tutorial and RPKI Demo
IRR Tutorial and RPKI Demo
APNIC2.4K views
Interautonomous System PLS VPN Advanced Concepts by Brozaa
Interautonomous System PLS VPN Advanced ConceptsInterautonomous System PLS VPN Advanced Concepts
Interautonomous System PLS VPN Advanced Concepts
Brozaa272 views
4th ICANN APAC-TWNIC Engagement Forum and 39th TWNIC OPM: RPKI Updates - RSCs... by APNIC
4th ICANN APAC-TWNIC Engagement Forum and 39th TWNIC OPM: RPKI Updates - RSCs...4th ICANN APAC-TWNIC Engagement Forum and 39th TWNIC OPM: RPKI Updates - RSCs...
4th ICANN APAC-TWNIC Engagement Forum and 39th TWNIC OPM: RPKI Updates - RSCs...
APNIC211 views
16 bgp by TCT
16 bgp16 bgp
16 bgp
TCT846 views
BGP Route Stability by HLL
BGP Route StabilityBGP Route Stability
BGP Route Stability
HLL570 views
E rou01 routing_basics by tanawan44
E rou01 routing_basicsE rou01 routing_basics
E rou01 routing_basics
tanawan44489 views

More from Olivier Bonaventure

Part3-reliable.pptx by
Part3-reliable.pptxPart3-reliable.pptx
Part3-reliable.pptxOlivier Bonaventure
10 views55 slides
Part10-router.pptx by
Part10-router.pptxPart10-router.pptx
Part10-router.pptxOlivier Bonaventure
10 views24 slides
Part1-Intro-Apps.pptx by
Part1-Intro-Apps.pptxPart1-Intro-Apps.pptx
Part1-Intro-Apps.pptxOlivier Bonaventure
21 views112 slides
Part9-congestion.pptx by
Part9-congestion.pptxPart9-congestion.pptx
Part9-congestion.pptxOlivier Bonaventure
13 views56 slides
Part2-Apps-Security.pptx by
Part2-Apps-Security.pptxPart2-Apps-Security.pptx
Part2-Apps-Security.pptxOlivier Bonaventure
14 views94 slides
Part11-lan.pptx by
Part11-lan.pptxPart11-lan.pptx
Part11-lan.pptxOlivier Bonaventure
8 views89 slides

More from Olivier Bonaventure(20)

A personal journey towards more reproducible networking research by Olivier Bonaventure
A personal journey towards more reproducible networking researchA personal journey towards more reproducible networking research
A personal journey towards more reproducible networking research

Recently uploaded

PORTFOLIO 1 (Bret Michael Pepito).pdf by
PORTFOLIO 1 (Bret Michael Pepito).pdfPORTFOLIO 1 (Bret Michael Pepito).pdf
PORTFOLIO 1 (Bret Michael Pepito).pdfbrejess0410
8 views6 slides
information by
informationinformation
informationkhelgishekhar
9 views4 slides
WEB 2.O TOOLS: Empowering education.pptx by
WEB 2.O TOOLS: Empowering education.pptxWEB 2.O TOOLS: Empowering education.pptx
WEB 2.O TOOLS: Empowering education.pptxnarmadhamanohar21
16 views16 slides
UiPath Document Understanding_Day 3.pptx by
UiPath Document Understanding_Day 3.pptxUiPath Document Understanding_Day 3.pptx
UiPath Document Understanding_Day 3.pptxUiPathCommunity
105 views25 slides
IETF 118: Starlink Protocol Performance by
IETF 118: Starlink Protocol PerformanceIETF 118: Starlink Protocol Performance
IETF 118: Starlink Protocol PerformanceAPNIC
297 views22 slides
Building trust in our information ecosystem: who do we trust in an emergency by
Building trust in our information ecosystem: who do we trust in an emergencyBuilding trust in our information ecosystem: who do we trust in an emergency
Building trust in our information ecosystem: who do we trust in an emergencyTina Purnat
100 views18 slides

Recently uploaded(10)

PORTFOLIO 1 (Bret Michael Pepito).pdf by brejess0410
PORTFOLIO 1 (Bret Michael Pepito).pdfPORTFOLIO 1 (Bret Michael Pepito).pdf
PORTFOLIO 1 (Bret Michael Pepito).pdf
brejess04108 views
UiPath Document Understanding_Day 3.pptx by UiPathCommunity
UiPath Document Understanding_Day 3.pptxUiPath Document Understanding_Day 3.pptx
UiPath Document Understanding_Day 3.pptx
UiPathCommunity105 views
IETF 118: Starlink Protocol Performance by APNIC
IETF 118: Starlink Protocol PerformanceIETF 118: Starlink Protocol Performance
IETF 118: Starlink Protocol Performance
APNIC297 views
Building trust in our information ecosystem: who do we trust in an emergency by Tina Purnat
Building trust in our information ecosystem: who do we trust in an emergencyBuilding trust in our information ecosystem: who do we trust in an emergency
Building trust in our information ecosystem: who do we trust in an emergency
Tina Purnat100 views
How to think like a threat actor for Kubernetes.pptx by LibbySchulze1
How to think like a threat actor for Kubernetes.pptxHow to think like a threat actor for Kubernetes.pptx
How to think like a threat actor for Kubernetes.pptx
LibbySchulze15 views
Marketing and Community Building in Web3 by Federico Ast
Marketing and Community Building in Web3Marketing and Community Building in Web3
Marketing and Community Building in Web3
Federico Ast12 views

Part 11 : Interdomain routing with BGP

  • 2. Agenda • Interdomain routing • BGP basics • BGP convergence • Local Area Networks
  • 3. Limitations of local-pref • In theory • Each domain is free to define its order of preference for the routes learned from external peers • How to reach 2001:db8:1/48 from AS3 and AS1 AS3 AS4 Preferred paths for AS4 1. AS3:AS1 2. AS1 Preferred paths for AS3 1. AS4:AS1 2. AS1 2001:db8:1/48
  • 4. • AS1 sends its UPDATE messages ... AS1 AS3 AS4 2001:db8:1/48 Preferred paths for AS3 1. AS4:AS1 2. AS1 UPDATE lP: 2001:db8:1/48 lASPath: AS1 Routing table for AS3 2001:db8:1/48 ASPath: AS1 (best) Preferred paths for AS4 1. AS3:AS1 2. AS1 UPDATE lP: 2001:db8:1/48 lASPath: AS1 Routing table for AS4 2001:db8:1/48 ASPath: AS1 (best) Limitations of local-pref
  • 5. • First possibility • AS3 sends its UPDATE first... AS1 AS3 AS4 Preferred paths for AS3 1. AS4:AS1 2. AS1 2001:db8:1/48 Routing table for AS3 2001:db8:1/48 ASPath: AS1 (best) UPDATE lP: 2001:db8:1/48 lASPath: AS3:AS1 Preferred paths for AS4 1. AS3:AS1 2. AS1 Routing table for AS4 2001:db8:1/48 ASPath: AS1 2001:db8:1/48 ASPath:AS3:AS1 (best) • Stable route assignment Limitations of local-pref
  • 6. • AS4 sends its UPDATE first... AS1 AS3 AS4 l2001:db8:1/48 Preferred paths for AS4 1. AS3:AS1 2. AS1 Routing table for AS4 2001:db8:1/48 ASPath: AS1 (bes Preferred paths for AS3 1. AS4:AS1 2. AS1 UPDATE lPrefix: 2001:db8:1/48 lASPath: AS4:AS1 Routing table for AS3 2001:db8:1/48 ASPath: AS1 2001:db8:1/48 ASPath: AS4:AS1 (best) • Another (but different) stable route assignment Limitations of local-pref
  • 7. • AS3 and AS4 send their UPDATE together... AS1 AS3 AS4 Preferred paths for AS3 1. AS4:AS1 2. AS1 2001:db8:1/48 UPDATE lP: 2001:db8:1/48 lASPath: AS3:AS1 Preferred paths for AS4 1. AS3:AS1 2. AS1 UPDATE lP: 2001:db8:1/48 ASPath: AS4:AS1 • AS3 prefers indirect path -> withdraw • AS4 prefers indirect path -> withdraw Limitations of local-pref
  • 8. • AS3 and AS4 send their UPDATE together... AS1 AS3 AS4 Preferred paths for AS3 1. AS4:AS1 2. AS1 2001:db8:1/48 Preferred paths for AS4 1. AS3:AS1 2. AS1 WITHDRAW lP: 2001:db8:1/48 • AS3 : indirect route is not available anymore • AS3 will reannounce its direct route... WITHDRAW lP: 2001:db8:1/48 • AS4 : indirect route is not available anymore • AS4 will reannounce its direct route... Limitations of local-pref
  • 9. More limitations local pref • Unfortunately, interdomain routing may not converge at all in some cases... • How to reach a destination inside AS0 in this case ? AS1 AS3 AS4 Preferred paths for AS3 1. AS4:AS0 2. other paths AS0 Preferred paths for AS4 1. AS1:AS0 2. other paths Preferred paths for AS1 1. AS3:AS0 2. other paths
  • 10. Simple example AS1 AS2 AS3 $ Customer-provider Shared-cost $ • AS1 announces one prefix, p • What is the BGP routing table on AS2 ? • What is the BGP routing table on AS3 ?
  • 11. Simple example • AS1 announces one prefix, p AS1 AS2 AS3 AS5 $ Customer-provider Shared-cost $ $ AS4 $ AS4 BGP p via AS1 p via AS1 AS4 BGP p via AS1 p via AS2:AS1 p via AS3:AS2:AS1 AS4 BGP p via AS1 p via AS3:AS2:AS
  • 12. Simple example • AS1 announces one prefix, p AS1 AS2 AS3 AS5 $ Customer-provider Shared-cost $ $ AS4 $ $ $ p via AS1 p via AS2:AS1 p via AS3:AS2:AS1 p via AS2:AS1 p via AS1 p via AS4:AS3:AS2:AS1
  • 13. Simple example • AS1 announces one prefix, p • link AS1-AS2 fails AS1 AS2 AS3 AS5 $ Customer-provider Shared-cost $ $ AS4 $ $ $ AS2 BGP p via AS1 AS3 BGP p via AS2:AS1 AS4 BGP p via AS1 p via AS2:AS1 p via AS3:AS2:AS Withdraw(p) Withdraw(p) Withdraw(p) Withdraw(p)
  • 14. Simple example • AS1 announces one prefix, p • AS2-AS4 fails AS1 AS2 AS3 AS5 $ Customer-provider Shared-cost $ $ AS4 $ $ AS2 BGP p via AS1 AS3 BGP p via AS2:AS1 AS4 BGP p via AS1 p via AS2:AS1 p via AS3:AS2:AS
  • 15. Simple example • AS1 announces one prefix, p • AS3-AS4 is initially down and then comes up AS1 AS2 AS3 $ Customer-provider Shared-cost $ $ AS4 $ AS5 $ AS4 BGP p via AS1 p via AS2:AS1 p via AS3:AS2:AS1
  • 16. local-pref and economical relationships • In practice, local-pref is often combined with filters to enforce economical relationships AS1 Prov1 Prov2 Peer1 Peer2 Peer3 Peer4 Cust1 Cust2 $ Customer-provider $ Shared-cost $ $ $ Local-pref values used by AS1 > 1000 for the routes received from a Customer 500 – 999 for the routes learned from a Peer < 500 for the routes learned from a Provider
  • 17. local-pref • Which path will be used by AS1 to reach AS5 ? • and how will AS5 reach AS1 ? AS1 AS4 AS2 AS3 AS5 $ Customer-provider Shared-cost $ $ $ $ $ AS8 $ AS6 AS7 $ $ Internet paths are often asymmetrical
  • 18. Internet 1990s • NSFNet • American backbone • AUP : no commercial traffic • Some regional networks • US regions • national networks in Europe • Universities/research labs • connected to regional networks or directly to
  • 19. Internet early 2000s • Tier-1 ISPs • Dozen transit ISPs shared- cost • Uunet, Level3, OTIP, ... • Tier-2 ISPs • Regional/ National ISPs • Tier-3 ISPs • Smaller ISPs, Entreprise Networks, Content providers • Customers of T2 or T1 ISPs • shared-cost with other T3
  • 20. Today’s Internet • Hyper Giants • google, microsoft, yahoo, amazon, ... • google peers 70% ISPs • Tier-1 ISPs • Tier-2 ISPs • Tier-3 ISPs • Many peerings at IXPs Craig Labovitz), Scott Iekel-Johnson, Danny McPherson, Jon Oberheide, Farnam Jahanian, Internet Inter-Domain Traffic, SIGCOMM 2010
  • 21. Internet size (#AS) Source: http://bgp.potaroo.net
  • 22. BGP IPv6 routing tables Source: http://bgp.potaroo.net
  • 23. BGP : IPv4 routing tables Source: http://bgp.potaroo.net
  • 27. Agenda • Interdomain routing • Local Area Networks • Ethernet • WiFi

Editor's Notes

  1. In practice, the exchange of BGP UPDATE messages will cease due to the utilization of timers by BGP routers and the routing will stabilize on one of the two stable route assignments.
  2. Due to the utilization of the local-pref attribute, some paths on the Internet are longer than their optimum length, see : Lixin Gao and Feng Wang , The Extent of AS Path Inflation by Routing Policies, GlobalInternet 2002
  3. Due to the utilization of the local-pref attribute, some paths on the Internet are longer than their optimum length, see : Lixin Gao and Feng Wang , The Extent of AS Path Inflation by Routing Policies, GlobalInternet 2002
  4. Due to the utilization of the local-pref attribute, some paths on the Internet are longer than their optimum length, see : Lixin Gao and Feng Wang , The Extent of AS Path Inflation by Routing Policies, GlobalInternet 2002
  5. Due to the utilization of the local-pref attribute, some paths on the Internet are longer than their optimum length, see : Lixin Gao and Feng Wang , The Extent of AS Path Inflation by Routing Policies, GlobalInternet 2002
  6. Due to the utilization of the local-pref attribute, some paths on the Internet are longer than their optimum length, see : Lixin Gao and Feng Wang , The Extent of AS Path Inflation by Routing Policies, GlobalInternet 2002
  7. Due to the utilization of the local-pref attribute, some paths on the Internet are longer than their optimum length, see : Lixin Gao and Feng Wang , The Extent of AS Path Inflation by Routing Policies, GlobalInternet 2002
  8. This local-pref settings corresponds to the economical relationships between the various ASes. Since AS1 is paid to carry packets towards Cust1 and Cust2, it will select a route towards those networks whenever possible. Since AS1 does not need to pay to carry packets towards Peer1-4, AS1 will select a route towards those networks whenever possible. AS1 will only utilize the routes receive from its providers when there is no other choice. It is shown in the following papers that this way of utilizing the local-pref attribute leads to stable BGP routes : Lixin Gao, Timothy G. Griffin, and Jennifer Rexford, "Inherently safe backup routing with BGP," Proc. IEEE INFOCOM, April 2001 Lixin Gao and Jennifer Rexford, "Stable Internet routing without global coordination," IEEE/ACM Transactions on Networking, December 2001, pp. 681-692 The RPSL policy of AS1 could be as follows : RPSL policy for AS1 aut-num: AS1 import: from Cust1 action set localpref=200; accept Cust1 from Cust2 action set localpref=200; accept Cust2 from Peer1 action set localpref=150; accept Peer1 from Peer2 action set localpref=160; accept Peer2 from Peer3 action set localpref=170; accept Peer3 from Peer4 action set localpref=180; accept Peer4 from Prov1 action set localpref=100; accept ANY from Prov2 action set localpref=100; accept ANY
  9. Due to the utilization of the local-pref attribute, some paths on the Internet are longer than their optimum length, see : Lixin Gao and Feng Wang , The Extent of AS Path Inflation by Routing Policies, GlobalInternet 2002
  10. See : L. Subramanian, S. Agarwal, J. Rexford, and RH Katz. Characterizing the Internet hierarchy from multiple vantage points. In IEEE INFOCOM, 2002