Chapter_5_v8.0_r
Chapter_5_v8.0_r
introduction
routing protocols
link state
distance vector
intra-ISP routing: OSPF
routing among ISPs: BGP
Internet Control Message
Protocol
introduction
routing protocols
link state
distance vector
intra-ISP routing: OSPF
routing among ISPs: BGP
Internet Control Message
Protocol
Global\centralized:
computes the least-cost path between a source and destination using complete, global knowledge
about the network (connectivity & link costs)
all routers have complete topology & link cost info
Called “link state” algorithms
Ex: Dijkstra Algorithm
Local\Decentralized:
No node has complete information about the costs of all network links.
router knows physically-connected neighbors. “Neighbors link costs”
iterative process of computation: exchange of info with neighbors and compute new least cost paths.
Called “distance vector” algorithms
Network Layer: 5-8
Comparison of LS and DV
algorithms
LS algorithm DV algorithm
Requires global information. each node talks to only its directly
each node needs to communicate connected neighbors,
with all other nodes (via it provides its neighbors with least
broadcast), cost estimates from itself to all the
it tells them only the costs of its nodes (that it knows about) in the
directly connected links. network
If n routers, O(n2) messages Convergence time may be long
broadcast
introduction
routing protocols
intra-ISP routing: OSPF
routing among ISPs: BGP
Internet Control Message
Protocol
intra-AS
3c
routing3a inter-AS routing intra-AS
2c
3b 2a routing
2b
1c
AS3 intra-AS
1a routing 1b AS2
1d
AS1
introduction
routing protocols
intra-ISP routing: OSPF
routing among ISPs: BGP
Internet Control Message
Protocol
2a 2c
∂
1b 3b
2d
1a 1c ∂
3a 3c
AS 2
1d 3d
AS 1 eBGP connectivity AS 3
logical iBGP connectivity
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: 5-21
BGP path advertisement (more)
AS 3 3b
AS 1 1b AS3,X 3a 3c
AS3,X
AS3,X
1a 1c AS 2 3d X
2b
AS3,X
1d AS3, X
AS2,AS3,X 2a 2c
2d
introduction
routing protocols
intra-ISP routing: OSPF
routing among ISPs: BGP
Internet Control Message
Protocol
3 probes