Professional Documents
Culture Documents
Inter-Domain Routing
• Routing hierarchy
• Internet structure
3
Routing Hierarchies
4
Areas
5
Routing Hierarchy
Area-Border Backbone Areas
Router
Lower-level Areas
1 2
2.2
1.1 2.1
2.2.2
1.2 2.2.1
1.2.1
1.2.2
3
3.1 3.2
7
Path Sub-optimality
• Can result in sub-optimal paths
1 2
2.1 2.2
1.1
1.2 2.2.1
1.2.1
start
end
3.2.1
3
8
Outline
• Routing hierarchy
• Internet structure
9
A Logical View of the Internet?
• After looking a
RIP/OSPF descriptions
• End-hosts connected to
routers R
• Routers exchange
R R R
messages to determine
connectivity R
• NOT TRUE!
10
Internet’s Area Hierarchy
11
AS Numbers (ASNs)
1 2
2.1 IGP 2.2
IGP EGP
1.1
1.2 2.2.1
EGP
EGP
3 EGP
4.1 4.2
EGP IGP
4
IGP
5 3.2
3.1
IGP
5.1 5.2
13
A Logical View of the Internet?
• RIP/OSPF not very
scalable area
hierarchies ISP ISP
14
A Logical View of the Internet
• Tier 1 ISP
• “Default-free” with global
reachability info
Tier 3
• Tier 2 ISP
• Regional or country-wide Tier 2
• Local Provider
Tier 1 Tier 1
Tier 2
15
Transit vs. Peering
Transit ($)
ISP Z Peering
ISP X
Transit ($) Transit ($$) Transit ($$)
16
Policy Impact
• “Valley-free” routing
• Number links as (+1, 0, -1) for provider, peer and
customer
• In any path should only see sequence of +1, followed
by at most one 0, followed by sequence of -1
• WHY?
• Consider the economics of the situation
17
Outline
• Routing hierarchy
• Internet structure
18
Choices
19
Solution: Distance Vector with
Path
• Each routing update carries the entire path
• Loops are detected as follows:
• When AS gets route check if AS already in path
• If yes, reject route
• If no, add self and (possibly) advertise route further
• Advantage:
• Metrics are local - AS chooses path, protocol ensures
no loops
20
Interconnecting BGP Peers
21
Hop-by-hop Model
22
Policy with BGP
23
Examples of BGP Policies
24
BGP Messages
• Open
• Announces AS ID
• Determines hold timer – interval between keep_alive or
update messages, zero interval implies no keep_alive
• Keep_alive
• Sent periodically (but before hold timer expires) to
peers to ensure connectivity.
• Sent in place of an UPDATE message
• Notification
• Used for error notification
• TCP connection is closed immediately after notification
25
BGP UPDATE Message
26
Path Selection Criteria
27
LOCAL PREF
R5
AS 200
R1 R2
AS 100 AS 300
28
LOCAL PREF – Common Uses
29
AS_PATH
AS 200 AS 100
170.10.0.0/16 180.10.0.0/16
AS 300
30
Multi-Exit Discriminator (MED)
31
MED
180.10.0.0
MED = 50
R1 R2
AS 10 AS 40
180.10.0.0
180.10.0.0
MED = 120
R3 MED = 200 R4
AS 30
32
MED
• MED is typically used in provider/subscriber scenarios
• It can lead to unfairness if used between ISP because it
may force one ISP to carry more traffic:
SF
ISP1
ISP2 NY
• ISP1 ignores MED from ISP2
• ISP2 obeys MED from ISP1
• ISP2 ends up carrying traffic most of the way
33
Decision Process
34
Outline
• Routing hierarchy
• Internet structure
35
Internal vs. External BGP
R1 E-BGP
AS1 R3 R4 AS2
R2
36
Internal BGP (I-BGP)
37
Internal BGP (I-BGP)
• R3 can tell R1 and R2 prefixes from R4
• R3 can tell R4 prefixes from R1 and R2
• R3 cannot tell R2 prefixes from R1
R1
E-BGP
AS1 R3 R4 AS2
R2
I-BGP
38
Important Concepts
39
Next Lecture: Multicast & DNS
40