0131_09F7/c21 Link-state protocols SPF algo. 2 Henk Smit jan1999 Summary The basic ideas of link-state protocols Dijkstra’s Shortest Path First algorithm.

Slides:



Advertisements
Similar presentations
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Link-State Routing Protocols Routing Protocols and Concepts – Chapter.
Advertisements

Routing Protocol.
1 LINK STATE PROTOCOLS (contents) Disadvantages of the distance vector protocols Link state protocols Why is a link state protocol better?
TDC365 Spring 2001John Kristoff - DePaul University1 Interconnection Technologies Routing I.
Routing and Routing Protocols
Routing and Routing Protocols
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Link-State Routing Protocols Routing Protocols and Concepts – Chapter.
1 Computer Networks Routing Algorithms. 2 IP Packet Delivery Two Processes are required to accomplish IP packet delivery: –Routing discovering and selecting.
Delivery, Forwarding and
Each computer and router interface maintains an ARP table for Layer 2 communication The ARP table is only effective for the broadcast domain (or LAN)
Link State Routing Protocol W.lilakiatsakun. Introduction (1) Link-state routing protocols are also known as shortest path first protocols and built around.
Open Shortest Path First (OSPF) -Sheela Anand -Kalyani Ravi -Saroja Gadde.
Routing Concepts Warren Toomey GCIT. Introduction Switches need to know the link address and location of every station. Doesn't scale well, e.g. to several.
1 11-Sep-15 S Ward Abingdon and Witney College Link State CCNA Exploration Semester 2 Chapter 10.
Routing and Routing Protocols Dynamic Routing Overview.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Link-State Routing Protocols Routing Protocols and Concepts – Chapter.
Link-State Routing Protocols
Link State Routing Protocols Last Update Copyright Kenneth M. Chipps Ph.D.
Lecture Week 10 Link-State Routing Protocols. Objectives Describe the basic features & concepts of link-state routing protocols. List the benefits and.
Chapter 7: Routing Dynamically
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 7: Routing Dynamically Routing Protocols.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 14 Routing Protocols RIP, OSPF, BGP.
University of the Western Cape Chapter 11: Routing Aleksandar Radovanovic.
Routing/Routed Protocols. Remember: A Routed Protocol – defines logical addressing. Most notable example on the test – IP A Routing Protocol – fills the.
1 Introducing Routing 1. Dynamic routing - information is learned from other routers, and routing protocols adjust routes automatically. 2. Static routing.
M.Menelaou CCNA2 ROUTING. M.Menelaou ROUTING Routing is the process that a router uses to forward packets toward the destination network. A router makes.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Link-State Routing Protocols Routing Protocols and Concepts – Chapter 10.
Network Architecture and Design
Page 110/27/2015 A router ‘knows’ only of networks attached to it directly – unless you configure a static route or use routing protocols Routing protocols.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 3 v3.0 Module 2 Single-Area OSPF.
Link State Routing NETE0521 Presented by Dr.Apichan Kanjanavapastit.
Cisco Systems Networking Academy S2 C 11 Routing Basics.
Copyright 2003 CCNA 3 Chapter 3 Single-Area OSPF By Your Name.
Lecture #3 OSPF Asst.Prof. Dr.Anan Phonphoem Department of Computer Engineering, Faculty of Engineering, Kasetsart University, Bangkok, Thailand.
1 Computer Communication & Networks Lecture 21 Network Layer: Delivery, Forwarding, Routing Waleed.
Networking and internetworking devices. Repeater.
Routing Networks and Protocols Prepared by: TGK First Prepared on: Last Modified on: Quality checked by: Copyright 2009 Asia Pacific Institute of Information.
Open Shortest Path First (OSPF)
Routing protocols. 1.Introduction A routing protocol is the communication used between routers. A routing protocol allows routers to share information.
Routing Protocols Brandon Wagner.
Ch 22. Routing Direct and Indirect Delivery.
Spring 2000CS 4611 Routing Outline Algorithms Scalability.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Link-State Routing Protocols Routing Protocols and Concepts – Chapter 10.
CS440 Computer Networks 1 Link State Routing and OSPF Neil Tang 10/31/2008.
Spring Routing: Part I Section 4.2 Outline Algorithms Scalability.
Chapter 11 Routing. Objectives Routing BasicsRouting Basics Why Routing Protocols are NecessaryWhy Routing Protocols are Necessary Distance-Vector RoutingDistance-Vector.
Cisco 2 - Routers Perrine modified by Brierley Page 13/21/2016 Chapter 4 Module 6 Routing & Routing Protocols.
Routing Semester 2, Chapter 11. Routing Routing Basics Distance Vector Routing Link-State Routing Comparisons of Routing Protocols.
CSE 421 Computer Networks. Network Layer 4-2 Chapter 4: Network Layer r 4. 1 Introduction r 4.2 Virtual circuit and datagram networks r 4.3 What’s inside.
Routing and Routing Protocols CCNA 2 v3 – Module 6.
+ Dynamic Routing Protocols 2 nd semester
ROURING ALGORITHM: LINK STATE
Instructor Materials Chapter 5: Dynamic Routing
BGP 1. BGP Overview 2. Multihoming 3. Configuring BGP.
Link State Routing protocol
Routing Protocols and Concepts
Link-State Routing Protocols
Dynamic Routing Protocols part2
Intra-Domain Routing Jacob Strauss September 14, 2006.
Chapter 5: Dynamic Routing
Dynamic Interior Routing Information Mechanisms
Chapter 5: Dynamic Routing
Link state routing In link state routing, if each node in the domain has the entire topology of the domain list of nodes and links, how they are connected.
Routing in Packet Networks Shortest Path Routing
Link-State Routing Protocols
Dynamic Routing and OSPF
Link-State Routing Protocols
Communication Networks
Dynamic Routing Protocols part3 B
OSPF Protocol.
Presentation transcript:

0131_09F7/c21 Link-state protocols SPF algo

2 Henk Smit jan1999 Summary The basic ideas of link-state protocols Dijkstra’s Shortest Path First algorithm

3 Henk Smit jan1999 Summary The basic ideas of link-state protocols Dijkstra’s Shortest Path First algorithm

4 Henk Smit jan1999 The basic idea In a link-state protocol, the network can be viewed as a jigsaw puzzle Each piece of the puzzle holds one router Each router creates a packet which represents its own jigsaw piece These packets are flooded everywhere Use SPF to put the pieces together

5 Henk Smit jan1999 About link-state protocols The jigsaw puzzle LSP for routerA LSP for routerB LSP for routerC LSP for routerD to B to E to D to C to A to D to C to B LSP for routerE to A to B to A to E

6 Henk Smit jan1999 Link-state protocols Each router keeps track of its own state Send and receive hellos to detect neighbors Keep track of IP and CLNS addresses interface IP prefixes maybe inter-area or redistributed prefixes Each router builds one linkstate packet (LSP) with all own local information OSPF builds multiple LSAs for inter-area/externals

7 Henk Smit jan1999 Link-state protocols All routers exchange copies of all LSPs via a reliable flooding mechanism Each router stores all LSPs in a database separate from the routing table all routers should have exactly the same LSPDB New LSPs sent only when there’s a change and additionally periodic refreshes new LSP will overwrite the old LSP – no partial updates

8 Henk Smit jan1999 Link-state protocols By executing Dijkstra’s SPF algorithm, each router ‘composes the jigsaw puzzle’. the topology is calculated as a shortest-path-tree each router is the root of the SPT it has calculated From the SPT the RIBs are calculated No routing loops will occur because all routers have an identical LSPDB all info in the LSPDB comes directly from the source –Distance Vector protocols are based on hear-say

9 Henk Smit jan1999 Each router has the same LSPDB RouterA’s LSPDB RouterB’s LSPDB RouterC’s LSPDB RouterE’s LSPDB RouterD’s LSPDB lspA lspB lspC lspD lspE lspA lspB lspC lspD lspE lspA lspB lspC lspD lspE lspA lspB lspC lspD lspE lspA lspB lspC lspD lspE

10 Henk Smit jan1999 Summary The basic ideas of link-state protocols Dijkstra’s Shortest Path First algorithm Pseudonodes and Network LSAs Flooding Scaling link-state protocols by using areas inter-area routing is IS-IS

11 Henk Smit jan1999 Shortest Path First algorithm Also called Dijkstra’s algorithm The goal is to find the topology in the form of a shortest path tree (SPT) From the SPT we build routing tables Complexity is independent from position of computing router in the network makes LS protocols less useful for hub-and-spoke use distance-vector with default routes and filters

12 Henk Smit jan1999 Shortest Path First algorithm SPF complexity is O(n log n) Theoretical complexity depends on sorting ISIS uses quick array sort –causes link metric limitation of 63 CPU usage in real life depends on other stuff number of links is important number of IP routes, stability of adjacencies, etc flooding is probably more important for scaling

13 Henk Smit jan1999 Shortest Path First algorithm We maintain three lists (or sets) Unknown list all nodes start on this list TENTative list all nodes we are currently examining also called candidate list PATHS list all nodes to which we have calculated final paths also called known list

14 Henk Smit jan1999 Shortest Path First algorithm We execute N steps typically N is the number of nodes in the network At each step we move one node to PATHS During the first step we move ourself to PATHS During the next steps we find the node that has the shortest path amongst all nodes on TENT, and move it from TENT to PATHS At each step we find all neighbors reachable from that node and move them to the TENT list

15 Henk Smit jan1999 Shortest Path First algorithm Special actions after each step we clean up the TENT list if a node is directly connected to us, search the first-hop info in the adjacency database if a node is not directly connected to us, copy the first-hop info from the parent(s) for each node on TENT, maintain the cost to get there from the root, and the first-hop info if parallel paths, maintain multiple first-hops

16 Henk Smit jan1999 A network rtrW RtrR rtrD rtrC rtrA rtrB rtrQ rtrS rtrK rtrF rtrZ

17 Henk Smit jan1999 The link-state database LSP K IS: 4 S IS: 2 F LSP S IS: 4 Q IS: 5 W IS: 4 K LSP W IS: 3 R IS: 3 A IS: 12 F IS: 5 S IS: 2 Q LSP R IS: 3 D IS: 7 A IS: 3 W IS: 2 B IS: 12 F LSP B IS: 2 C IS: 2 R IS: 5 F LSP D IS: 3 A IS: 8 C IS: 3 R IS: 4 A LSP F IS: 5 B IS: 12 R IS: 5 B IS: 12 W IS: 2 K LSP A IS: 3 D IS: 4 D IS: 7 R IS: 3 W IS: 5 Q LSP Q IS: 5 A IS: 2 W IS: 4 S LSP Z IS: 3 C IS: 3 D LSP C IS: 2 B IS: 8 D

18 Henk Smit jan1999 The adjacency database NeighborInterfaceCost rtrDserial03 rtrDserial14 rtrRserial27 rtrWserial33 rtrQserial45 rtrQserial55

19 Henk Smit jan1999 Shortest Path First example Initial situation TENT:empty PATHS:empty Unknown:A B C D F K Q R S W Z

20 Henk Smit jan1999 Shortest Path First example First iteration Move ourself (rtrA) to PATHS Move neighbors of rtrA to TENT find first-hop info in adjacency database TENT: D cost 3 via S0, R cost 7 via S2, W cost 3 via S3, Q cost 5 via S4 or S5 PATHS:A Unknown:B C F K S Z

21 Henk Smit jan1999 PATHS and TENT rtrW RtrR rtrD rtrC rtrA rtrB rtrQ rtrS rtrK rtrF rtrZ

22 Henk Smit jan1999 Shortest Path First example Second iteration Move rtrD to PATHS Move neighbors of rtrD to TENT rtrC and rtrR, found better path to rtrR, ignore rtrA TENT: W cost 3 via S3, Q cost 5 via S4/S5, C cost 11 via S0, R cost 6 via S0 PATHS:A, D cost 3 via S0 Unknown:B F K S Z

23 Henk Smit jan1999 PATHS and TENT rtrW RtrR rtrD rtrC rtrA rtrB rtrQ rtrS rtrK rtrF rtrZ

24 Henk Smit jan1999 Shortest Path First example Third iteration Move rtrW to PATHS, neighbors of rtrW to TENT F and S, found more equal-cost paths to R and Q TENT: Q cost 5 via S4/S5/S3, C cost 11 via S0, R cost 6 via S0/S3, S cost 8 via S3, F cost 15 via S3 PATHS:A, D cost 3 via S0, W cost 3 via S3 Unknown:B K Z

25 Henk Smit jan1999 PATHS and TENT rtrW RtrR rtrD rtrC rtrA rtrB rtrQ rtrS rtrK rtrF rtrZ

26 Henk Smit jan1999 Shortest Path First example Fourth iteration Move rtrQ to PATHS, neighbors of rtrQ to TENT found worse path (9 vs 8) to S. A W already known TENT: C cost 11 via S0, R cost 6 via S0/S3, S cost 8 via S3, F cost 15 via S3 PATHS:A, D cost 3 via S0, W cost 3 via S3, Q cost 5 via S4/S5/S3 Unknown:B K Z

27 Henk Smit jan1999 PATHS and TENT rtrW RtrR rtrD rtrC rtrA rtrB rtrQ rtrS rtrK rtrF rtrZ

28 Henk Smit jan1999 Shortest Path First example Fifth iteration Move rtrR to PATHS, neighbors of rtrR to TENT new path to B, worse to F. A D W already known TENT: C cost 11 via S0, S cost 8 via S3, F cost 15 via S3, B cost 8 via S0/S3 PATHS:A, D cost 3 via S0, W cost 3 via S3, Q cost 5 via S4/S5/S3, R cost 6 via S0/S3 Unknown:K Z

29 Henk Smit jan1999 PATHS and TENT rtrW RtrR rtrD rtrC rtrA rtrB rtrQ rtrS rtrK rtrF rtrZ

30 Henk Smit jan1999 Shortest Path First example Sixth iteration Move rtrS to PATHS, neighbors of rtrS to TENT new path to K. Q W already known TENT: C cost 11 via S0, F cost 15 via S3, B cost 8 via S0/S3, K cost 12 via S3 PATHS:A, D cost 3 via S0, W cost 3 via S3, Q cost 5 via S4/S5/S3, R cost 6 via S0/S3, S cost 8 via S3 Unknown:Z

31 Henk Smit jan1999 PATHS and TENT rtrW RtrR rtrD rtrC rtrA rtrB rtrQ rtrS rtrK rtrF rtrZ

32 Henk Smit jan1999 Shortest Path First example Seventh iteration Move rtrB to PATHS, neighbors of rtrB to TENT better paths to C (10 vs 11) and F (13 vs 15) TENT: C cost 10 via S0/S3, F cost 13 via S0/S3, K cost 12 via S3 PATHS:A, D cost 3 via S0, W cost 3 via S3, Q cost 5 via S4/S5/S3, R cost 6 via S0/S3, S cost 8 via S3, B cost 8 via S0/S3 Unknown:Z

33 Henk Smit jan1999 PATHS and TENT rtrW RtrR rtrD rtrC rtrA rtrB rtrQ rtrS rtrK rtrF rtrZ

34 Henk Smit jan1999 Shortest Path First example Eigth iteration Move rtrC to PATHS, neighbors of rtrC to TENT B and D already known TENT: F cost 13 via S0/S3, K cost 12 via S3 PATHS:A, D cost 3 via S0, W cost 3 via S3, Q cost 5 via S4/S5/S3, R cost 6 via S0/S3, S cost 8 via S3, B cost 8 via S0/S3, C cost 10 via S0/S3 Unknown:Z

35 Henk Smit jan1999 PATHS and TENT rtrW RtrR rtrD rtrC rtrA rtrB rtrQ rtrS rtrK rtrF rtrZ

36 Henk Smit jan1999 Shortest Path First example Ninth iteration Move rtrK to PATHS, neighbors of rtrK to TENT found worse path to F (14 vs 13), S already known TENT: F cost 13 via S0/S3 PATHS:A, D cost 3 via S0, W cost 3 via S3, Q cost 5 via S4/S5/S3, R cost 6 via S0/S3, S cost 8 via S3, B cost 8 via S0/S3, C cost 10 via S0/S3, K cost 12 via S3 Unknown:Z

37 Henk Smit jan1999 PATHS and TENT rtrW RtrR rtrD rtrC rtrA rtrB rtrQ rtrS rtrK rtrF rtrZ

38 Henk Smit jan1999 Shortest Path First example Tenth iteration Move rtrF to PATHS, neighbors of rtrK to TENT all neighbors already known, no changes to TENT TENT: empty PATHS:A, D cost 3 via S0, W cost 3 via S3, Q cost 5 via S4/S5/S3, R cost 6 via S0/S3, S cost 8 via S3, B cost 8 via S0/S3, C cost 10 via S0/S3, K cost 12 via S3, F cost 13 via S0/S3 Unknown:Z

39 Henk Smit jan1999 PATHS and TENT rtrW RtrR rtrD rtrC rtrA rtrB rtrQ rtrS rtrK rtrF rtrZ

40 Henk Smit jan1999 Shortest Path First example Done ! iteration stops because TENT is empty we obviously didn’t find a path to Z we can now calculate routing tables result:D cost 3 via S0, W cost 3 via S3, Q cost 5 via S4/S5/S3, R cost 6 via S0/S3, S cost 8 via S3, B cost 8 via S0/S3, C cost 10 via S0/S3, K cost 12 via S3, F cost 13 via S0/S3