L21 Slides
L21 Slides
Link-State Routing
• Advertisement step
– Send information about its links to its neighbors (aka link
state advertisement or LSA):
6.02 Spring 2012 Lecture 21, Slide #1 6.02 Spring 2012 Lecture 21, Slide #2
6 7 8
(0) (6) (8)
E
A
6 C
2 F
0 2
4 (10)
B 5 D G
6 7 E 8
• Periodically originate LSA 0 2
• LSA travels each link in each direction B D G
– Don’t bother with figuring out which link LSA came from 5
(6) (13) (16)
• Termination: each node rebroadcasts LSA exactly once (11) (12)
– Use sequence number to determine if new, save latest seq (10)
• Multiple opportunities for each node to hear any given LSA
– Time required: number of links to cross network
6.02 Spring 2012 Lecture 21, Slide #3 6.02 Spring 2012 Lecture 21, Slide #4
1
4/30/12
6.02 Spring 2012 Lecture 21, Slide #5 6.02 Spring 2012 Lecture 21, Slide #6
2
4/30/12
E: l1; cost=2; path=[CE] E: l1; cost=1; path=[E] • The network layer implements the “glue” that
[CE] achieves connectivity
A l1 l3
C l1 To reach E, come this way
– Does addressing, forwarding, and routing
[ACE] path = [E]
l2 l2 [CE]
[ACE] l2 • Forwarding entails a routing table lookup; the
[CE] E E: Self
[BDE] [DE] l1 table is built using routing protocol
l2 [DE]
[BDE] l1 To reach E, come this way • DV protocol: distributes route computation;
l1 l3
B D l2 path = [E] each node advertises its best routes to
[DE]
E: l2; cost=2; path=[DE] E: l2; cost=1; path=[E] neighbors
– Path-vector: include path, not just cost, in
• For each advertisement, run integration step advertisement to avoid “count-to-infinity”
– E.g., pick shortest, cheapest, quickest, etc.
• LS protocol: distributes (floods) neighbor
• Ignore advertisements with own address in path vector information; centralizes route computation
– Avoids routing loops that count to infinity using shortest-path algorithm
6.02 Spring 2012 Lecture 21, Slide #11 6.02 Spring 2012 Lecture 21, Slide #12