1 / 16

Dijkstra

Dijkstra. Agenda. Algorithm Review Example Concepts. Dijkstra. Shortest Path First (SPF) Algorithm. Link state database Created with Link State Packets (LSPs) from each router TENT database Tentative triples (ID, path cost, direction). Dijkstra (SPF Cont.). PATH database

Download Presentation

Dijkstra

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Dijkstra Agenda • Algorithm Review • Example • Concepts

  2. Dijkstra Shortest Path First (SPF) Algorithm • Link state database • Created with Link State Packets (LSPs) from each router • TENT database • Tentative triples (ID, path cost, direction)

  3. Dijkstra (SPF Cont.) • PATH database • Best path triples (ID, path cost, direction) • Forwarding database • AKA the routing table

  4. Dijkstra (SPF Cont.) • All routers exchange Link State Packets (LSPs) • Each starts with itself as root • Tent is built from LSPs • Path is created by examining and comparing Tent triples • Once Path is final, the forwarding table is populated

  5. 4 • 1 • 4 • C • B • A • 2 • 2 • D • 1 • E • F • 2 • 2 • G Dijkstra Example: • Router IDs are alphabetic • Costs are numeric • Lowest cost best

  6. 4 • 1 • 4 • C • B • A • 2 • 2 • D • 1 • E • F • 2 • 2 • G LSP Data G A B C D E F B/4 G/2 A/4 C/1 B/1 D/4 E/2 C/4 E/1 C/2 D/1 F/2 E/2 G/2 A/2 F/2

  7. B • (0) • A • C • (4) • (1) Dijkstra Example (Cont.) • As an example, start with B • A and C costs are Tent

  8. B • G • A • C Dijkstra Example (Cont.) • Now fill in A • G is Tent • BA is now in Path • (0) • (4) • (1) • (6)

  9. B • D • C • E • G • A • C Dijkstra Example (Cont.) • Now fill in C • D and E are Tent • BC is now in Path • (0) • (4) • (1) • (5) • (3) • (6)

  10. B • D • C • E • G • A • C Dijkstra Example (Cont.) • Now fill in D • D and E are still Tent • DC does not provide better path • (0) • X • (4) • (1) • (5) • (3) • (6)

  11. B • C • D • E • F • G • A • C Dijkstra Example (Cont.) • Now fill in E • F is Tent • CD is removed • ED and CE are in path • (0) • (4) • (1) • (4) • (3) • (6) • (5)

  12. B • C • D • E • F • G • A • C Dijkstra Example (Cont.) • Now fill in F • G is Tent • EF is in path • (0) • (4) • (1) • (4) • (3) • X • (6) • (5)

  13. B • C • D • E • F • G • A • C Dijkstra Example (Cont.) • Now fill in G • FG is removed • AG is in path • (0) • (4) • (1) • (4) • (3) • (6) • (5)

  14. Dijkstra Concepts • SPF is simple :-) • However: • How did each router receive the LSPs? • What happens if a change occurs? • How do we handle other kinds of routers?

  15. Dijkstra Concepts (Cont.) • How? • We create a protocol • What does it do? • Creates and maintains the Path Database • Populates the forwarding table

  16. Dijkstra Protocols • CLNS/DECnet Phase 5 • IS-IS • OSPF • NLSP

More Related