Professional Documents
Culture Documents
Network Layer:
The Control Plane
(Part 2/3)
3c
3a 2c
3b 2a
AS3 2b
1c AS2
1a 1b AS1
1d
3c
3a 2c
3b 2a
AS3 2b
1c AS2
1a 1b AS1
1d ▪ forwarding table
configured by both intra-
and inter-AS routing
Intra-AS Inter-AS algorithm
Routing
algorithm
Routing
algorithm • intra-AS routing
determine entries for
Forwarding
table
destinations within AS
• inter-AS & intra-AS
determine entries for
external destinations
Network Layer: Control Plane 5-6
Inter-AS tasks
▪ suppose router in AS1 AS1 must:
receives datagram 1. learn which destinations
destined outside of AS1: are reachable through
• router should forward AS2, which through AS3
packet to gateway 2. propagate this
router, but which one? reachability info to all
routers in AS1
job of inter-AS routing!
3c
3a
3b
AS3 2c other
1c 2a networks
other 1a 2b
networks 1b AS2
AS1 1d
Backbone area
area
border
routers
area 3
internal
routers
area 1
area 2
AS 1
Network Layer: Control Plane 5-15
Hierarchical OSPF
▪ two-level hierarchy: local area, backbone area.
• link-state advertisements only in area
• each node has detailed area topology; only know
direction (shortest path) to networks in other areas.
▪ area border routers: “summarize” distances to networks
in own area, advertise to other Area Border routers.
Responsible for routing packets outside the area.
▪ backbone routers: route traffic between the other areas in
AS.
▪ boundary routers: connect to other AS’es.
• eBGP (external BGP): obtain subnet reachability information from neighboring ASes
2b
2a ∂
2c
1b 3b
2d
1a 1c ∂
3a 3c
AS 2
1d 3d
AS 1 AS 3
eBGP connectivity
iBGP connectivity
1c
gateway routers run both eBGP and iBGP protocols
Network Layer: Control Plane 5-19
BGP basics
▪ BGP session: two BGP routers (“peers”) exchange BGP messages over
semi-permanent TCP connection:
• advertising paths to different destination network prefixes (BGP is
a “path vector” protocol)→Path is sequence of ASs
▪ when AS3 gateway router 3a advertises path AS3,X to AS2 gateway
router 2c:
• AS3 promises to AS2 it will forward datagrams towards X
AS 3 3b
AS 1 1b
3a 3c
1a 1c
AS 2 2b 3d X
1d
BGP advertisement:
2a 2c AS3, X
2d
Network Layer: Control Plane 5-20
Path attributes and BGP routes
▪ advertised “route” includes BGP attributes
• prefix + attributes = “route” (‘Prefix’ is destination)
▪ two important attributes:
• AS-PATH: list of ASes through which prefix advertisement has
passed
• NEXT-HOP: indicates specific internal-AS router to next-hop AS
▪ Policy-based routing:
• gateway receiving route advertisement uses import policy to
accept/decline path (e.g., never route through AS Y).
• AS policy also determines whether to advertise path to other
neighboring ASes
2d
▪ AS2 router 2c receives path advertisement AS3,X (via eBGP) from AS3
router 3a
▪ Based on AS2 policy, AS2 router 2c accepts path AS3,X, propagates
(via iBGP) to all AS2 routers
▪ Based on AS2 policy, AS2 router 2a advertises (via eBGP) path AS2,
AS3, X to AS1 router 1c
Network Layer: Control Plane 5-23
BGP path advertisement
AS3 3b
AS1 1b
3a 3c
1a 1c
AS2 2b 3d X
1d AS3,X
AS2,AS3,X
2a 2c
2d
AS3 3b
AS1 1b
1
3a 3c
1a 2 1c
local link
1
AS2 2b 3d X
interfaces 2
1d AS3,X
(input/output AS2,AS3,X
ports) 2a 2c
at 1a, 1d physical link
2d
AS3 3b
AS1 1b
1
3a 3c
1a 2 1c
AS2 2b 3d X
1d
2a 2c
2d
AS3 3b
AS1 1b
3a 3c
1a 1c
AS2 2b 3d X
1d 112
AS3,X
152
AS1,AS3,X 2a 263 2c
201
OSPF link weights
2d
AS3 3b
AS1 1b
3a 3c
1a 1c
AS2 2b 3d X
1d 112
AS3,X
152
AS1,AS3,X 2a 263 2c
201
OSPF link weights
2d
Suppose an ISP (domain or AS) only wants to route traffic to/from its customer
networks (does not want to carry transit traffic between other ISPs)
Suppose an ISP (domain or AS) only wants to route traffic to/from its
customer networks (does not want to carry transit traffic between other ISPs)
▪ A advertises path Aw to B and to C
▪ B chooses not to advertise BAw to C:
▪ B gets no “revenue” for routing CBAw, since none of C, A, w are B’s
customers
▪ C does not learn about CBAw path
▪ C will route CAw (not using B) to get to w
Network Layer: Control Plane 5-32
Why different Intra-, Inter-AS routing ?
policy:
▪ inter-AS: admin wants control over how its traffic routed, who
routes through its net.
• interdomain routing mainly deals with economical issues
▪ intra-AS: single admin, so no policy decisions needed.
• usually prefers some routes over others based on their
technical merits (e.g. prefer route with the minimum number
of hops, prefer route with the minimum delay, prefer high
bandwidth routes over low bandwidth ones, etc)
scale:
▪ hierarchical routing saves table size, reduced update traffic
performance:
▪ intra-AS: can focus on performance
▪ inter-AS: policy may dominate over performance