Link State Routing Jean-Yves Le Boudec Fall 2009 1.

Slides:



Advertisements
Similar presentations
Network Layer Delivery Forwarding and Routing
Advertisements

Unicast and Multicast Routing:
OSPF 1.
Intradomain Routing Computer Networking I Nick Feamster Spring 2010.
Jennifer Rexford Princeton University MW 11:00am-12:20pm Logically-Centralized Control COS 597E: Software Defined Networking.
Chapter 1: Introduction to Scaling Networks
McGraw-Hill © The McGraw-Hill Companies, Inc., 2004 Chapter 22 Network Layer: Delivery, Forwarding, and Routing Copyright © The McGraw-Hill Companies,
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Distance Vector Routing Protocols Routing Protocols and Concepts –
IPv6 Routing.
 Two types  Distance Vector ◦ Examples:  RIP v1 and RIPv2 (Routing Information Protocol)  IGRP (Interior Gateway Routing Protocol)  Link State ◦
Connecting LANs, Backbone Networks, and Virtual LANs
© 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.
The Destination Sequenced Distance Vector (DSDV) protocol
Introduction to OSPF.
Computer Networks with Internet Technology William Stallings
Courtesy: Nick McKeown, Stanford
Nov 11, 2004CS573: Network Protocols and Standards1 IP Routing: OSPF Network Protocols and Standards Autumn
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 22 Introduction to Computer Networks.
RD-CSY3021 Comparing Routing Protocols. RD-CSY3021 Criteria used to compare routing protocols includes  Time to convergence  Proprietary/open standards.
1 Relates to Lab 4. This module covers link state routing and the Open Shortest Path First (OSPF) routing protocol. Dynamic Routing Protocols II OSPF.
Internet Networking Spring 2002
1 ECE453 – Introduction to Computer Networks Lecture 10 – Network Layer (Routing II)
Objectives After completing this chapter you will be able to: Describe hierarchical routing in OSPF Describe the 3 protocols in OSPF, the Hello, Exchange.
OSPF Interior Gateway Routing. Introduction:  Intra ‐ domain routing: inside an AS, org.  Also called interior gateway protocol.  Early protocols used.
1 Relates to Lab 4. This module covers link state routing and the Open Shortest Path First (OSPF) routing protocol. Dynamic Routing Protocols II OSPF.
© Janice Regan, CMPT 128, CMPT 371 Data Communications and Networking Routing in the Internet Internal Routing Protocols.
Delivery, Forwarding and
Open Shortest Path First (OSPF) -Sheela Anand -Kalyani Ravi -Saroja Gadde.
1 CS 4396 Computer Networks Lab Dynamic Routing Protocols - II OSPF.
1 Routing Protocols. 2 Distributed Routing Protocols Rtrs exchange control info Use it to calculate forwarding table Two basic types –distance vector.
Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes.
1 Introducing Routing 1. Dynamic routing - information is learned from other routers, and routing protocols adjust routes automatically. 2. Static routing.
Routing protocols Basic Routing Routing Information Protocol (RIP) Open Shortest Path First (OSPF)
TCOM 515 Lecture 2. Lecture 2 Objectives Dynamic Routing Distance Vector Routing Link State Routing Interior vs Exterior RIP - Routing Information Protocol.
Network Architecture and Design
Network Layer4-1 Chapter 4: Network Layer r 4. 1 Introduction r 4.2 Virtual circuit and datagram networks r 4.3 What’s inside a router r 4.4 IP: Internet.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 11 Unicast Routing Protocols.
Routing in the Internet The Global Internet consists of Autonomous Systems (AS) interconnected with eachother: Stub AS: small corporation Multihomed AS:
Introduction to OSPF Nishal Goburdhan. Routing and Forwarding Routing is not the same as Forwarding Routing is the building of maps Each routing protocol.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 3 v3.0 Module 2 Single-Area OSPF.
1 Module 4: Implementing OSPF. 2 Lessons OSPF OSPF Areas and Hierarchical Routing OSPF Operation OSPF Routing Tables Designing an OSPF Network.
Link State Routing NETE0521 Presented by Dr.Apichan Kanjanavapastit.
TCOM 509 – Internet Protocols (TCP/IP) Lecture 06_a Routing Protocols: RIP, OSPF, BGP Instructor: Dr. Li-Chuan Chen Date: 10/06/2003 Based in part upon.
Routing and Routing Protocols
TCOM 515 Lecture 2. Lecture 2 Objectives Dynamic Routing Distance Vectore Routing Link State Routing Interior vs Exterior RIP - Routing Information Protocol.
Interior Gateway Protocols (RIP, OSPF) continued….
Dynamic Routing Protocols II OSPF
4: Network Layer4b-1 OSPF (Open Shortest Path First) r “open”: publicly available r Uses Link State algorithm m LS packet dissemination m Topology map.
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.
1 Chapter 4: Internetworking (IP Routing) Dr. Rocky K. C. Chang 16 March 2004.
Single Area OSPF Module 2, Review How routing information is maintained Link-state routers apply the Dijkstra shortest path first algorithm against.
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.
1 Relates to Lab 4. This module covers link state routing and the Open Shortest Path First (OSPF) routing protocol. Dynamic Routing Protocols II OSPF.
ROURING ALGORITHM: LINK STATE
Dynamic Routing Protocols II OSPF
Link State Routing protocol
CMPT 371 Data Communications and Networking Routing in the Internet
CSE390 – Advanced Computer Networks
OSPF (Open Shortest Path First)
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization All routers are identical Network is flat. Not true in Practice Hierarchical.
Dynamic Routing Protocols part2
Intra-Domain Routing Jacob Strauss September 14, 2006.
(How the routers’ tables are filled in)
Dynamic Routing Protocols II OSPF
CS 4700 / CS 5700 Network Fundamentals
Dynamic Routing and OSPF
Brad Karp UCL Computer Science
Dynamic Routing Protocols part3 B
Computer Networks Protocols
Presentation transcript:

Link State Routing Jean-Yves Le Boudec Fall

Contents 1. Link state flooding topology information finding the shortest paths (Dijkstra) 2. Hierarchical routing with areas 3. OSPF database modelling neighbor discovery - Hello protocol database synchronization link state updates examples 2

1. Link State Routing Principle of link state routing each router keeps a topology database of whole network link state updates flooded, or multicast to all network routers compute their routing tables based on topology often uses Dijkstra’s shortest path algorithm Used in OSPF (Open Shortest Path First), IS-IS (similar to OSPF)and PNNI (ATM routing protocol) 3

(a) Topology Database Synchronization Neighbouring nodes synchronize before starting any relationship Hello protocol; keep alive initial synchronization of database description of all links (no information yet) Once synchronized, a node accepts link state advertisements contain a sequence number, stored with record in the database only messages with new sequence number are accepted accepted messages are flooded to all neighbours sequence number prevents anomalies (loops or blackholes) 4

Example network 5 n1 A B n6 D E n4 n3 C n5 n2 F n7  Each router knows directly connected networks

Initial routing tables 6 net type n1 Ether n2 P-to-P A n1 A B n6 D E n4 n3 C n5 n2 F n7 net type n6 Ether n5 P-to-P D net type n6 Ether n7 Ether E net type n1 Ether n7 Ether F net type n1 Ether n4 P-to-P n5 P-to-P C net type n3 Ether n2 P-to-P n4 P-to-P B

After Flooding 7 rtr net cost A n1 10 A n2 100 B n3 10 B n2 100 B n4 100 C n1 10 C n4 100 C n5 100 D n6 10 D n5 100 E n6 10 E n7 10 F n1 10 F n7 10 A n1 10 A n2 100 B n3 10 B n2 100 B n4 100 C n1 10 C n4 100 C n5 100 D n6 10 D n5 100 E n6 10 E n7 10 F n1 10 F n7 10  The local metric information is flooded to all routers  After convergence, all routers have the same information n1 A B n6 D E n4 n3 C n5 n2 F n7

(b) Topology graph 8  Arrows routers-to-nets with a given metric except P-to-P, stub, and external networks  From nets to routers, metric = 0 A B C D F E n1 100 n6 n7 n external network 54 0 stub network point to point link broadcast network external network

(b) Path Computation Performed locally, based on topology database Computes one or several best paths to every destination from this node Best Path = shortest for OSPF OSPF uses Dijkstra’s shortest path the best known algorithm for centralized operation Paths are computed independently at every node synchronization of databases guarantees absence of persistent loops every node computes a shortest path tree rooted at self 9

Simplified graph 10  Only arrows with metrics between routers  Every node executes the shortest path computation on the graph – same graph, but different sources A B C D F E

Dijkstra’s Shortest Path Algorithm The nodes are 0...N and the algorithm computes best paths from node 0 c(i,j) is the cost of (i,j), pred(i) is the predecessor of node i on the tree M being built m(j) is the distance from node 0 to node j. as Bellman-Ford, works for any min-plus algebra 11 m(0) = 0; M = {0}; for k=1 to N { find (i0, j0) that minimizes m(i) + c(i,j), with i in M, j not in M m(j0) = m(i0) + c(i0, j0) pred(j0) = i0 M = M  {j0} } m(0) = 0; M = {0}; for k=1 to N { find (i0, j0) that minimizes m(i) + c(i,j), with i in M, j not in M m(j0) = m(i0) + c(i0, j0) pred(j0) = i0 M = M  {j0} }

Example: Dijkstra at A 12 A B C D F E init: M = { A } step 1: i0=A j0=C m(C)=10 M = {A, C} m(A)=0 m(C)=10

Example: Dijkstra at A 13 A B C D F E i0=A j0=F m(F)=10 M = {A,C,F} m(A)=0 m(C)=10 m(F)=10

Example: Dijkstra at A 14 A B C D F E i0=F j0=E m(E)=20 M = {A,C,F,E} m(A)=0 m(C)=10 m(F)=10 m(F)=20

Example: Dijkstra at A 15 A B C D F E i0=E j0=D m(D)=40 M = {A,C,F,E,D} m(A)=0 m(C)=10 m(F)=10 m(E)=20 m(D)=30

Example: Dijkstra at A 16 A B C D F E i0=A j0=B m(B)=100 M = {A,C,F,E,D,B} m(A)=0 m(C)=10 m(F)=10 m(E)=20 m(D)=30 m(B)=100

Routing table of A 17 net next n1 direct n2 direct n3 B n4 C n5 C n6 F n7 F A n1 A B n6 D E n4 n3 C n5 n2 F n7

Test Your Understanding Q1: Run Dijkstra at C Q2: What are the routing tables at C solution 18

LS: Summary All nodes compute their own topology database represents the whole network strongly synchronized All nodes compute their best path tree to all destinations Routing tables are built from the tree used for next hop routing only LS versus DV LS avoids convergence problems of DV supports flexible cost definitions; can be used for routing ATM connections LS is much more complex 19

2. Divide large networks Why divide large networks? Cost of computing routing tables update when topology changes SPF algorithm n routers, k links complexity O(n*k) size of DB, update messages grows with the network size Use hierarchical routing to limit the scope of updates and computational overhead divide the network into several areas independent route computing in each area inject aggregated information on routes into other areas We explain hierarchical routing the OSPF way IS-IS does things a bit differently 20

Hierarchical Routing A large OSPF domain can be configured into areas one backbone area (area 0) non backbone areas (areas numbered other than 0) All inter-area traffic goes through area 0 strict hierarchy Inside one area: link state routing as seen earlier one topology database per area 21 area 0 B1 X3 X1 X4 A1 area 2area 1 X1 X3X4 B2 A2

Principles Routing method used in the higher level: distance vector no problem with loops - one backbone area Mapping of higher level nodes to lower level nodes area border routers (inter-area routers) belong to both areas Inter-level routing information summary link state advertisements (LSA) from other areas are injected into the local topology databases 22

Example Assume networks n1 and n2 become visible at time 0. Show the topology databases at all routers solution 23 area 0 B1 X4 X1 X3 A1 area 2area 1 X2 X6X5 B2 A2 n1 n

Hints All routers in area 2 propagate the existence of n1 and n2, directly attached to B1 (resp. B2). Draw the topology database in area 2. Area border routers X4 and X6 belong to area 2, thus they can compute their distances to n1 and n2 Area border routers X4 and X6 inject their distances to n1 and n2 into the area 0 topology database (item 3 of the principle). The corresponding summary link state record is propagated to all routers of area 0. Draw now the topology database in area 0. All routers in area 0 can now compute their distance to n1 and n2, using their distances to X4 and X6, and using the principle of distance vector (item 1 of the principle). Do the computation for X3 and X5. Area border routers X3 and X5 inject their distances to n1 and n2 into the area 1 topology database (item 3 of the principle). Draw now the topology database in area 1. 24

Comments Distance vector computation causes none of the RIP problems strict hierarchy: no loop between areas External and summary LSA for all reachable networks are present in all topology databases of all areas most LSAs are external can be avoided in configuring some areas as terminal: use default entry to the backbone Area partitions require specific support partition of non-backbone area is handled by having the area 0 topology database keep a map of all area connected components partition of backbone cannot be repaired; it must be avoided; can be handled by backup virtual area 0 links through non backbone area 25

*Example of issue : partitioned backbone No connectivity between areas via backbone There is a route through Area 2 Virtual link X4 and X6 configure a virtual link through Area 2 virtual link entered into the database, metric = sum of links 26 area 0 B1 X4 X1 X3 A1 area 2area 1 X2 X6X5 B2 A2 n1 n  6 6  6

3. The OSPF Protocol OSPF (Open Shortest Path First) IETF standard for internal routing used in large networks (ISPs) Link State protocol + Hierarchical 27

*OSPF Components On top of IP (protocol type = 89) Multicast all routers of a link all designated and backup routers Sub-protocols Hello to identify neighbors, elect a designated and a backup router Database description to diffuse the topology between adjacent routers Link State to request, update, and ack the information on a link (LSA - Link State Advertisement) 28

*TOS and metric TOS mapping of 4 IP TOS bits to a decimal integer 0 - normal service 2 - minimize monetary cost 4 - maximize reliability 8 - maximize throughput 16 - minimize delay Metric time to send 100 Mb over the interface C = 10 8 /bandwidth 1 if greater than 100 Mb/s can be configured by administrator 29

*OSPF - summary OSPF vs. RIP much more complex, but presents many advantages no count to infinity no limit on the number of hops (OSPF topologies limited by Network and Router LSA size (max 64KB) to O(5000) links) less signaling traffic (LS Update every 30 min) advanced metric large networks - hierarchical routing most of the traffic when change in topology but periodic Hello messages in RIP: periodic routing information traffic drawback difficult to configure 30

Solutions 31

Test Your Understanding Q1: Run Dijkstra at C A: (final step) Q2: What are the routing tables at C 32 A B C D F E m(F)=10 m(C)=0 m(A)=10 m(F)=20 m(D)=30 m(B)=100

Test Your Understanding Q2: What are the routing tables at C A: 33 net next n1 direct n2 A n3 B n4 direct n5 direct n6 F n7 F C n1 A B n6 D E n4 n3 C n5 n2 F n7 back

Solution 34 area 0 B1 X4 X1 X3 A1 area 2area 1 X2 X6X5 B2 A2 n1 n n1 n2 area 2 topology database area 0 topology database n1, d=10 n2, d=16 n1, d=16 n2, d=10 n1, d=28 n2, d=22 n1, d=22 n2, d=16 10 area 1 topology database back