im10 05 routing - tu berlin · title: im10_05_routing author: liebscher.britta created date:...
TRANSCRIPT
![Page 1: im10 05 routing - TU Berlin · Title: im10_05_routing Author: liebscher.britta Created Date: 5/10/2010 6:15:50 PM](https://reader034.vdocuments.us/reader034/viewer/2022052007/601af211330e7246d32e3e0c/html5/thumbnails/1.jpg)
Active and passive measurements:
networks
Prof. Anja Feldmann, Ph.D.
Dr. Steve Uhlig
![Page 2: im10 05 routing - TU Berlin · Title: im10_05_routing Author: liebscher.britta Created Date: 5/10/2010 6:15:50 PM](https://reader034.vdocuments.us/reader034/viewer/2022052007/601af211330e7246d32e3e0c/html5/thumbnails/2.jpg)
2
Outline
● Organization of Internet routing
● Types of domains
● Intra- and inter-domain routing
● Intra-domain routing
● Inter-domain routing
● Organization of the Internet
![Page 3: im10 05 routing - TU Berlin · Title: im10_05_routing Author: liebscher.britta Created Date: 5/10/2010 6:15:50 PM](https://reader034.vdocuments.us/reader034/viewer/2022052007/601af211330e7246d32e3e0c/html5/thumbnails/3.jpg)
3
A map of the Internet in 2000
![Page 4: im10 05 routing - TU Berlin · Title: im10_05_routing Author: liebscher.britta Created Date: 5/10/2010 6:15:50 PM](https://reader034.vdocuments.us/reader034/viewer/2022052007/601af211330e7246d32e3e0c/html5/thumbnails/4.jpg)
4
Organization of Internet Routing
● More than 30,000 autonomous routing domains:
A domain is a set of routers, links, hosts and local area
networks under the same administrative control
● Domains size: from one to millions of hosts
● Interconnections between domains are complex
![Page 5: im10 05 routing - TU Berlin · Title: im10_05_routing Author: liebscher.britta Created Date: 5/10/2010 6:15:50 PM](https://reader034.vdocuments.us/reader034/viewer/2022052007/601af211330e7246d32e3e0c/html5/thumbnails/5.jpg)
5
Outline
● Organization of Internet routing
● Types of domains
● Intra- and inter-domain routing
● Intra-domain routing
● Inter-domain routing
● Organization of the Internet
![Page 6: im10 05 routing - TU Berlin · Title: im10_05_routing Author: liebscher.britta Created Date: 5/10/2010 6:15:50 PM](https://reader034.vdocuments.us/reader034/viewer/2022052007/601af211330e7246d32e3e0c/html5/thumbnails/6.jpg)
6
Types of domains: transit
● Transit domains:
A transit domain allows external domains to use its
own infrastructure to send packets to other domains
● Implicit hierarchy of transit domains according to
“size”
● Examples: AT&T, UUNet, Level3, Opentransit,
KPN,...
● 15% of all ASs
![Page 7: im10 05 routing - TU Berlin · Title: im10_05_routing Author: liebscher.britta Created Date: 5/10/2010 6:15:50 PM](https://reader034.vdocuments.us/reader034/viewer/2022052007/601af211330e7246d32e3e0c/html5/thumbnails/7.jpg)
7
Tier-1: UUNET
![Page 8: im10 05 routing - TU Berlin · Title: im10_05_routing Author: liebscher.britta Created Date: 5/10/2010 6:15:50 PM](https://reader034.vdocuments.us/reader034/viewer/2022052007/601af211330e7246d32e3e0c/html5/thumbnails/8.jpg)
8
Tier-2: GEANT
![Page 9: im10 05 routing - TU Berlin · Title: im10_05_routing Author: liebscher.britta Created Date: 5/10/2010 6:15:50 PM](https://reader034.vdocuments.us/reader034/viewer/2022052007/601af211330e7246d32e3e0c/html5/thumbnails/9.jpg)
9
Types of domains: stub
● Stub domains:
A stub domain does not allow external domains to
use its infrastructure to send packets to other domains
● A stub is connected to at least one transit domain
● Content stub domains: Yahoo, Google, MSN, BBC,...
● Access stub domains: ISPs providing Internet access via
CATV, DSL,...
● 85% of all ASs
![Page 10: im10 05 routing - TU Berlin · Title: im10_05_routing Author: liebscher.britta Created Date: 5/10/2010 6:15:50 PM](https://reader034.vdocuments.us/reader034/viewer/2022052007/601af211330e7246d32e3e0c/html5/thumbnails/10.jpg)
10
Stub: SURFNET
![Page 11: im10 05 routing - TU Berlin · Title: im10_05_routing Author: liebscher.britta Created Date: 5/10/2010 6:15:50 PM](https://reader034.vdocuments.us/reader034/viewer/2022052007/601af211330e7246d32e3e0c/html5/thumbnails/11.jpg)
11
BELNET
![Page 12: im10 05 routing - TU Berlin · Title: im10_05_routing Author: liebscher.britta Created Date: 5/10/2010 6:15:50 PM](https://reader034.vdocuments.us/reader034/viewer/2022052007/601af211330e7246d32e3e0c/html5/thumbnails/12.jpg)
12
Outline
● Organization of Internet routing
● Types of domains
● Intra- and inter-domain routing
● Intra-domain routing
● Inter-domain routing
● Organization of the Internet
![Page 13: im10 05 routing - TU Berlin · Title: im10_05_routing Author: liebscher.britta Created Date: 5/10/2010 6:15:50 PM](https://reader034.vdocuments.us/reader034/viewer/2022052007/601af211330e7246d32e3e0c/html5/thumbnails/13.jpg)
13
Intra- and inter-domain routing
● Interior Gateway Protocol (IGP):
� Routing of IP packets inside each domain
� Only knows topology of its domain
● Exterior Gateway Protocol (EGP):
� Routing of IP packets between domains
� Each domain is considered as an atomic structure
![Page 14: im10 05 routing - TU Berlin · Title: im10_05_routing Author: liebscher.britta Created Date: 5/10/2010 6:15:50 PM](https://reader034.vdocuments.us/reader034/viewer/2022052007/601af211330e7246d32e3e0c/html5/thumbnails/14.jpg)
14
Intra- and inter-domain routing
AS 5
AS 1
AS 2 AS 3
AS 4
AS 6Inter-domain linkIntra-domain link
![Page 15: im10 05 routing - TU Berlin · Title: im10_05_routing Author: liebscher.britta Created Date: 5/10/2010 6:15:50 PM](https://reader034.vdocuments.us/reader034/viewer/2022052007/601af211330e7246d32e3e0c/html5/thumbnails/15.jpg)
15
Advertizing a prefix
AS 5
AS 1
AS 2 AS 3
AS 4
AS 6Inter-domain linkIntra-domain link
p
p
![Page 16: im10 05 routing - TU Berlin · Title: im10_05_routing Author: liebscher.britta Created Date: 5/10/2010 6:15:50 PM](https://reader034.vdocuments.us/reader034/viewer/2022052007/601af211330e7246d32e3e0c/html5/thumbnails/16.jpg)
16
Traffic paths
AS 5
AS 1
AS 2 AS 3
AS 4
AS 6Traffic pathInter-domain linkIntra-domain link
![Page 17: im10 05 routing - TU Berlin · Title: im10_05_routing Author: liebscher.britta Created Date: 5/10/2010 6:15:50 PM](https://reader034.vdocuments.us/reader034/viewer/2022052007/601af211330e7246d32e3e0c/html5/thumbnails/17.jpg)
17
BGP is not shortest-paths!
AS 5
AS 1
AS 2 AS 3
AS 4
AS 6AS pathInter-AS edge
Effect of policy
![Page 18: im10 05 routing - TU Berlin · Title: im10_05_routing Author: liebscher.britta Created Date: 5/10/2010 6:15:50 PM](https://reader034.vdocuments.us/reader034/viewer/2022052007/601af211330e7246d32e3e0c/html5/thumbnails/18.jpg)
18
Outline
● Organization of Internet routing
● Types of domains
● Intra- and inter-domain routing
● Intra-domain routing
● Inter-domain routing
● Organization of the Internet
![Page 19: im10 05 routing - TU Berlin · Title: im10_05_routing Author: liebscher.britta Created Date: 5/10/2010 6:15:50 PM](https://reader034.vdocuments.us/reader034/viewer/2022052007/601af211330e7246d32e3e0c/html5/thumbnails/19.jpg)
19
Intra-domain routing
● Goal: allow routers to transmit IP packets along the
best path towards their destination
● best usually means the shortest path
● Allow to find alternate routes in case of failures
● Behavior: all routers exchange routing information
● Each domain router can obtain routing information for the whole
domain
● The network operator or the routing protocol selects the cost of each
link
![Page 20: im10 05 routing - TU Berlin · Title: im10_05_routing Author: liebscher.britta Created Date: 5/10/2010 6:15:50 PM](https://reader034.vdocuments.us/reader034/viewer/2022052007/601af211330e7246d32e3e0c/html5/thumbnails/20.jpg)
20
Types of IGPs
● Static routing: only useful in very small domains
● Distance vector routing:
● Routing Information Protocol (RIP)
● Still widely used in small domains despite its limitations
● Link-state routing:
● Open Shortest Path First (OSPF): widely used in enterprise
networks
● Intermediate System- Intermediate-System (IS-IS): widely
used by ISPs
![Page 21: im10 05 routing - TU Berlin · Title: im10_05_routing Author: liebscher.britta Created Date: 5/10/2010 6:15:50 PM](https://reader034.vdocuments.us/reader034/viewer/2022052007/601af211330e7246d32e3e0c/html5/thumbnails/21.jpg)
21
Distance-vector routing
● Each router sends periodically a distance vector
containing, for each known prefix :
1. The IP prefix
2. The distance between itself and the destination
● The distance vector is a summary of the router's
routing table
● Each router receives its neighbor's distance vectors and
builds its routing table based on those vectors
![Page 22: im10 05 routing - TU Berlin · Title: im10_05_routing Author: liebscher.britta Created Date: 5/10/2010 6:15:50 PM](https://reader034.vdocuments.us/reader034/viewer/2022052007/601af211330e7246d32e3e0c/html5/thumbnails/22.jpg)
22
Link-state routing
● Each router builds link state packets
containing its local topology
● Link state packets are created at regular intervals and
when the local topology changes
● Link state packets are reliably flooded to all
routers inside the domain
● Each router knows the complete domain
topology by maintaining a LSP database
![Page 23: im10 05 routing - TU Berlin · Title: im10_05_routing Author: liebscher.britta Created Date: 5/10/2010 6:15:50 PM](https://reader034.vdocuments.us/reader034/viewer/2022052007/601af211330e7246d32e3e0c/html5/thumbnails/23.jpg)
23
Outline
● Organization of Internet routing
● Types of domains
● Intra- and inter-domain routing
● Intra-domain routing
● Inter-domain routing
● Organization of the Internet
![Page 24: im10 05 routing - TU Berlin · Title: im10_05_routing Author: liebscher.britta Created Date: 5/10/2010 6:15:50 PM](https://reader034.vdocuments.us/reader034/viewer/2022052007/601af211330e7246d32e3e0c/html5/thumbnails/24.jpg)
24
Inter-domain routing
● Goal: allow to transmit IP packets along the
best path towards their destination
● From an interdomain viewpoint, best path often means
cheapest path
● Behavior:
● Each domain specifies inside its routing policy the domains
for which it agrees to provide a transit service and the
method it uses to select the best path to reach each
destination
● Each router of the domain chooses its best path according to
the routing policies, and advertises them to its neighboring
routers
![Page 25: im10 05 routing - TU Berlin · Title: im10_05_routing Author: liebscher.britta Created Date: 5/10/2010 6:15:50 PM](https://reader034.vdocuments.us/reader034/viewer/2022052007/601af211330e7246d32e3e0c/html5/thumbnails/25.jpg)
25
Inter-domain routes redistribution
● Between domains (eBGP):
● Goal: propagate external reachability to neighbors
● Implementation: private peerings, public interconnection
points
● Inside a domain (iBGP):
● Goal: propagate the routes learned from neighbors to the
routers inside the domain
● Implementation: full-mesh between BGP routers, route-
reflection, or confederations
![Page 26: im10 05 routing - TU Berlin · Title: im10_05_routing Author: liebscher.britta Created Date: 5/10/2010 6:15:50 PM](https://reader034.vdocuments.us/reader034/viewer/2022052007/601af211330e7246d32e3e0c/html5/thumbnails/26.jpg)
26
Conceptual operation of a BGP router
BGP Loc-RIB
Peer[1]
Peer[N]
Import filterAttributemanipulation
Peer[1]
Peer[N]
Export filterAttributemanipulation
BGP Routing Information BaseContains all the acceptable routes learned from all Peers + internal routes● BGP decision process selects the best route towards each destination
BGP Msgs from Peer[1]
BGP Msgs from Peer[N]
Import filter(Peer[i])Determines which BGP Msgsare acceptable from Peer[i]
Export filter(Peer[i])Determines which routes can be sent to Peer[i]
One bestroute to eachdestination
All acceptable
routes
BGP Decision Process
BGP Adj-RIB-In
BGP Adj-RIB-Out
BGP Msgs to Peer[N]
BGP Msgs to Peer[1]
![Page 27: im10 05 routing - TU Berlin · Title: im10_05_routing Author: liebscher.britta Created Date: 5/10/2010 6:15:50 PM](https://reader034.vdocuments.us/reader034/viewer/2022052007/601af211330e7246d32e3e0c/html5/thumbnails/27.jpg)
27
Conceptual operation of a BGP router
![Page 28: im10 05 routing - TU Berlin · Title: im10_05_routing Author: liebscher.britta Created Date: 5/10/2010 6:15:50 PM](https://reader034.vdocuments.us/reader034/viewer/2022052007/601af211330e7246d32e3e0c/html5/thumbnails/28.jpg)
28
Path selection in a domain
![Page 29: im10 05 routing - TU Berlin · Title: im10_05_routing Author: liebscher.britta Created Date: 5/10/2010 6:15:50 PM](https://reader034.vdocuments.us/reader034/viewer/2022052007/601af211330e7246d32e3e0c/html5/thumbnails/29.jpg)
29
Routing policies
● BGP allows each domain to define its own routing
policy
● Some policies are common:
● customer-provider peering
● Customer C buys Internet connectivity from provider P
● shared-cost peering
● Domains x and y agree to exchange packets by using
a direct link or through an interconnection point
![Page 30: im10 05 routing - TU Berlin · Title: im10_05_routing Author: liebscher.britta Created Date: 5/10/2010 6:15:50 PM](https://reader034.vdocuments.us/reader034/viewer/2022052007/601af211330e7246d32e3e0c/html5/thumbnails/30.jpg)
30
Routing policies
● Routing policies implement business relationships
between domains
● The routing policy of a domain is implemented via the
route filtering mechanism on BGP routers:
● Inbound filtering: Upon reception of a route from a peer, a BGP router
decides whether the route is acceptable, and if so whether to change
some of its attributes.
● Outbound filtering: Before sending its best route towards a destination, a
BGP router decides which peers should receive this route and whether to
change some of its attributes before sending it.
![Page 31: im10 05 routing - TU Berlin · Title: im10_05_routing Author: liebscher.britta Created Date: 5/10/2010 6:15:50 PM](https://reader034.vdocuments.us/reader034/viewer/2022052007/601af211330e7246d32e3e0c/html5/thumbnails/31.jpg)
31
$
$
$$$
Customer-provider peering
Customer Provider
AS2AS1
AS3 AS4
AS7
● Customer sends to its provider its internal routes and the routes learned
from its own customers => Provider will advertise those routes to the
entire Internet to allow anyone to reach the Customer
● Provider sends to its customers all known routes => Customer will be able
to reach anyone on the Internet
![Page 32: im10 05 routing - TU Berlin · Title: im10_05_routing Author: liebscher.britta Created Date: 5/10/2010 6:15:50 PM](https://reader034.vdocuments.us/reader034/viewer/2022052007/601af211330e7246d32e3e0c/html5/thumbnails/32.jpg)
32
$
$$$
Shared-cost peering
Customer Provider
AS2AS1
AS3 AS4
● Peer X sends to Peer Y its internal routes and the routes learned from its own customers
● Peer Y will use shared link to reach Peer X and Peer X's customers
● Peer X's providers are not reachable via the shared link
● Peer Y sends to Peer X its internal routes and the routes learned from its own customers
● Peer X will use shared link to reach Peer Y and Peer Y's customers
● Peer Y's providers are not reachable via the shared link
Shared cost
$AS7
![Page 33: im10 05 routing - TU Berlin · Title: im10_05_routing Author: liebscher.britta Created Date: 5/10/2010 6:15:50 PM](https://reader034.vdocuments.us/reader034/viewer/2022052007/601af211330e7246d32e3e0c/html5/thumbnails/33.jpg)
33
• Relationships between ASs stem from their mutual interest:
• if interest is not balanced, customer-provider will typically arise
• if balanced interest, peer-peer or other partial agreement will arise
• As long as business relationships remain so important, the interdomain routing protocol does not matter so much, i.e. technical changes in BGP should not affect interdomain routing so much
Business relationships and BGP
![Page 34: im10 05 routing - TU Berlin · Title: im10_05_routing Author: liebscher.britta Created Date: 5/10/2010 6:15:50 PM](https://reader034.vdocuments.us/reader034/viewer/2022052007/601af211330e7246d32e3e0c/html5/thumbnails/34.jpg)
34
Classical iBGP
• iBGP full-mesh:
• connect all routers
• each router knows all the best routes of all other routers
• Redistribution rules:
• Redistribute best route to all peers except the one from which the route was received
• Do not redistribute a best route if it was learned from an iBGP peer (iBGP peers must have learned this route directly from the concerned peer)
![Page 35: im10 05 routing - TU Berlin · Title: im10_05_routing Author: liebscher.britta Created Date: 5/10/2010 6:15:50 PM](https://reader034.vdocuments.us/reader034/viewer/2022052007/601af211330e7246d32e3e0c/html5/thumbnails/35.jpg)
35
iBGP full-mesh: path selection
![Page 36: im10 05 routing - TU Berlin · Title: im10_05_routing Author: liebscher.britta Created Date: 5/10/2010 6:15:50 PM](https://reader034.vdocuments.us/reader034/viewer/2022052007/601af211330e7246d32e3e0c/html5/thumbnails/36.jpg)
36
Route-reflection
• When ASs become large (hundred of routers), full-mesh does not scale ⇒ route-reflection
• 2 types of route-reflector peers: client and non-client [RFC2796]• Implicit hierarchy:
• clients are “down”
• non-clients are either “peer” or “up”
• Redistribution rules:
• Best route received from client or eBGP peer ⇒ redistribute to clients and non-client peers (down, peer and up)
• Best route received from non-client peer ⇒ redistribute to clients only (down only)
• iBGP graph is generally not a forest ⇒ prevent looping of routes (cluster-ID)
![Page 37: im10 05 routing - TU Berlin · Title: im10_05_routing Author: liebscher.britta Created Date: 5/10/2010 6:15:50 PM](https://reader034.vdocuments.us/reader034/viewer/2022052007/601af211330e7246d32e3e0c/html5/thumbnails/37.jpg)
37
Route-reflection: path selection
![Page 38: im10 05 routing - TU Berlin · Title: im10_05_routing Author: liebscher.britta Created Date: 5/10/2010 6:15:50 PM](https://reader034.vdocuments.us/reader034/viewer/2022052007/601af211330e7246d32e3e0c/html5/thumbnails/38.jpg)
38
iBGP and loss of path diversity
AS 4
BR1
BR2 BR3
RR
AS 1AS 2
AS 3
p
pp
pBR 1
best
pBR 2
best
BR4
BR5
BR6
pRR
best
pRR
bestpRR
best
pRR
best
iBGP sessioneBGP session
route propagation
![Page 39: im10 05 routing - TU Berlin · Title: im10_05_routing Author: liebscher.britta Created Date: 5/10/2010 6:15:50 PM](https://reader034.vdocuments.us/reader034/viewer/2022052007/601af211330e7246d32e3e0c/html5/thumbnails/39.jpg)
39
iBGP: summary● iBGP full-mesh:
− Pro’s: full visibility of external routes, small convergence time
− Con: N*(N-1)/2 iBGP sessions
● Route-reflection:
− Pro: # iBGP sessions ~ # physical links
− Con’s: opaqueness of best route selection, slow convergence, route
oscillations
For more details:
A. Basu, C. Ong, A. Rasala, B. Shepherd, and G. Wilfong. Route oscillations in iBGP with
route Reflection. ACM SIGCOMM 2002.
T. Griffin and G. Wilfong. On the correctness of iBGP configuration. ACM SIGCOMM
2002.
![Page 40: im10 05 routing - TU Berlin · Title: im10_05_routing Author: liebscher.britta Created Date: 5/10/2010 6:15:50 PM](https://reader034.vdocuments.us/reader034/viewer/2022052007/601af211330e7246d32e3e0c/html5/thumbnails/40.jpg)
40
Outline
● Organization of Internet routing
● Types of domains
● Intra- and inter-domain routing
● Intra-domain routing
● Inter-domain routing
● Organization of the Internet
![Page 41: im10 05 routing - TU Berlin · Title: im10_05_routing Author: liebscher.britta Created Date: 5/10/2010 6:15:50 PM](https://reader034.vdocuments.us/reader034/viewer/2022052007/601af211330e7246d32e3e0c/html5/thumbnails/41.jpg)
41
Internet hierarchical structure
• Tier-1 ISPs
• About 20 large ISPs
• Provide transit service
• Tier-2 ISPs
• Regional or National ISPs
• Customers of T1 ISP(s)
• Providers of T3 ISP(s)
• Tier-3 ISPs
• Smaller ISPs, Corporate Networks,
Content providers
• Customers of T2 or T1 ISPs