CSE 461: Link State Routing. Link State Routing  Same assumptions/goals, but different idea than DV:  Tell all routers the topology and have each compute.

Slides:



Advertisements
Similar presentations
CSCI-1680 Network Layer: Intra-domain Routing Based partly on lecture notes by David Mazières, Phil Levis, John Jannotti Rodrigo Fonseca.
Advertisements

CSE 561 – Bridging and Routing David Wetherall Spring 2000.
Courtesy: Nick McKeown, Stanford
1 LINK STATE PROTOCOLS (contents) Disadvantages of the distance vector protocols Link state protocols Why is a link state protocol better?
Routing - I Important concepts: link state based routing, distance vector based routing.
CSE331: Introduction to Networks and Security Lecture 9 Fall 2002.
Routing So how does the network layer do its business?
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 22 Introduction to Computer Networks.
Chapter 4 Distance Vector Problems, and Link-State Routing Professor Rick Han University of Colorado at Boulder
Spring Routing & Switching Umar Kalim Dept. of Communication Systems Engineering 17/04/2007.
1 ELEN 602 Lecture 19 Routing. 2 Overview Forwarding vs Routing –forwarding: to select an output port based on destination address and routing table –routing:
15-744: Computer Networking L-5 Intra-Domain Routing.
Routing.
CSE 461: Distance Vector Routing. Next Topic  Focus  How do we calculate routes for packets?  Routing is a network layer function  Routing Algorithms.
1 Computer Networks Routing Algorithms. 2 IP Packet Delivery Two Processes are required to accomplish IP packet delivery: –Routing discovering and selecting.
EE 122: Intra-domain routing Ion Stoica September 30, 2002 (* this presentation is based on the on-line slides of J. Kurose & K. Rose)
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.
Delivery, Forwarding and
Routing Algorithms (Ch5 of Computer Network by A. Tanenbaum)
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 CS 4396 Computer Networks Lab Dynamic Routing Protocols - II OSPF.
1 Pertemuan 20 Teknik Routing Matakuliah: H0174/Jaringan Komputer Tahun: 2006 Versi: 1/0.
Network Layer r Introduction r Datagram networks r IP: Internet Protocol m Datagram format m IPv4 addressing m ICMP r What’s inside a router r Routing.
Spring 2008CS 3321 Intradomain Routing Outline Algorithms Scalability.
Packet-Switching Networks Routing in Packet Networks.
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.
1. 2 Anatomy of an IP Packet IP packets consist of the data from upper layers plus an IP header. The IP header consists of the following:
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 11 Unicast Routing Protocols.
Static versus Dynamic Routes Static Route Uses a protocol route that a network administrators enters into the router Static Route Uses a protocol route.
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 Module 4: Implementing OSPF. 2 Lessons OSPF OSPF Areas and Hierarchical Routing OSPF Operation OSPF Routing Tables Designing an OSPF Network.
The Network Layer.
Routing 2 CS457 Fall 2010.
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.
Lecture 17 November 8Intra-domain routing November 13Internet routing 1 November 15Internet routing 2 November 20End-to-end protocols 1 November 22End-to-end.
Spring 2006CS 3321 Intradomain Routing Outline Algorithms Scalability.
1 Computer Communication & Networks Lecture 21 Network Layer: Delivery, Forwarding, Routing Waleed.
1 Version 3.1 Module 6 Routed & Routing Protocols.
1 7-Jan-16 S Ward Abingdon and Witney College Dynamic Routing CCNA Exploration Semester 2 Chapter 3.
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.
© 2002, Cisco Systems, Inc. All rights reserved..
Computer Networks22-1 Network Layer Delivery, Forwarding, and Routing.
Spring 2000CS 4611 Routing Outline Algorithms Scalability.
1 Chapter 4: Internetworking (IP Routing) Dr. Rocky K. C. Chang 16 March 2004.
CS440 Computer Networks 1 Link State Routing and OSPF Neil Tang 10/31/2008.
Spring Routing: Part I Section 4.2 Outline Algorithms Scalability.
Network Layer (2). Review Physical layer: move bits between physically connected stations Data link layer: move frames between physically connected stations.
CS 6401 Intra-domain Routing Outline Introduction to Routing Distance Vector Algorithm.
Distance Vector and Link State Routing Pragyaditya Das.
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.
Chapter 7 Packet-Switching Networks Shortest Path Routing.
Routing and Routing Protocols CCNA 2 v3 – Module 6.
IP tutorial - #2 Routing KAIST Dept. of CS NC Lab.
Introduction to Dynamic Routing Protocol
Computer Networks Routing Algorithms.
Instructor Materials Chapter 5: Dynamic Routing
Intra-Domain Routing Jacob Strauss September 14, 2006.
Routing.
Chapter 5: Dynamic Routing
Routing in Packet Networks Shortest Path Routing
CS 3700 Networks and Distributed Systems
Link-State Routing Protocols
Intradomain Routing Outline Introduction to Routing
ECE453 – Introduction to Computer Networks
CS 3700 Networks and Distributed Systems
Computer Networking Lecture 10: Intra-Domain Routing
Link-State Routing Protocols
Routing.
CSE 461: Link State Routing
Presentation transcript:

CSE 461: Link State Routing

Link State Routing  Same assumptions/goals, but different idea than DV:  Tell all routers the topology and have each compute best paths  Two phases: 1.Topology dissemination (flooding) -New News travels fast. -Old News should eventually be forgotten 2.Shortest-path calculation (Dijkstra’s algorithm) - nlogn

 Each router maintains link state database and periodically sends link state packets (LSPs) to neighbor  LSPs contain [router, neighbors, costs]  Each router forwards LSPs not already in its database on all ports except where received  Each LSP will travel over the same link at most once in each direction  Flooding is fast, and can be made reliable with acknowledgments Flooding

Example  LSP generated by X at T=0 XA CBD XA CBD XA CBD XA CBD T=0T=1 T=2T=3

Complications  When link/router fails need to remove old data. How?  LSPs carry sequence numbers to determine new data  Send a new LSP with cost infinity to signal a link down  What happens if the network is partitioned and heals?  Different LS databases must be synchronized

Shortest Paths: Dijkstra’s Algorithm  N: Set of all nodes  M: Set of nodes for which we think we have a shortest path  s: The node executing the algorithm  L(i,j): cost of edge (i,j) (inf if no edge connects)  C(i): Cost of the path from s to i.  Two phases:  Initialize C(n) according to received link states  Compute shortest path to all nodes from s Link costs are symmetric

The Algorithm // Initialization M = {s} // M is the set of all nodes considered so far. For each n in N - {s} C(n) = L(s,n) // Find Shortest paths Forever { Unconsidered = N-M If Unconsidered == {} break M = M + {w} such that C(w) is the smallest in Unconsidered For each n in Unconsidered C(n) = MIN(C(n), C(w) + L(w,n)) }

Open Shortest Path First (OSPF)  Most widely-used Link State protocol today  Basic link state algorithms plus many features:  Authentication of routing messages  Extra hierarchy: partition into routing areas Only bordering routers send link state information to another area –Reduces chatter. –Border router “summarizes” network costs within an area by making it appear as though it is directly connected to all interior routers Load balancing

Distance Vector Message Complexity N: number of nodes in the system M: number of links D: diameter of network (longest shortest path)  Size of each update:  Number of updates sent in one iteration:  Number of iterations for convergence:  Total message cost:  Number of messages:  Incremental cost per iteration:

Link State Message Complexity  Each link state update size: d(i) where d(i) is degree of node i  Number of messages per broadcast:  Bytes per link state update broadcast:  Total messages across all link state updates:  Total bytes across all link state updates:

Distance Vector vs. Link State  When would you choose one over the other?

Why have two protocols?  DV: “Tell your neighbors about the world.”  Easy to get confused  Simple but limited, costly and slow Number of hops might be limited Periodic broadcasts of large tables Slow convergence due to ripples and hold down  LS: “Tell the world about your neighbors.”  Harder to get confused  More expensive sometimes As many hops as you want Faster convergence (instantaneous update of link state changes) Able to impose global policies in a globally consistent way –load balancing

Cost Metrics  How should we choose cost?  To get high bandwidth, low delay or low loss?  Do they depend on the load?  Static Metrics  Hopcount is easy but treats OC3 (155 Mbps) and T1 (1.5 Mbps)  Can tweak result with manually assigned costs  Dynamic Metrics  Depend on load; try to avoid hotspots (congestion)  But can lead to oscillations (damping needed)

 Based on load and link  Variation limited (3:1) and change damped  Capacity dominates at low load; we only try to move traffic if high load 225 New metric (routing units) %50%75%100% 9.6-Kbps satellite link 9.6-Kbps terrestrial link 56-Kbps satellite link 56-Kbps terrestrial link Utilization Revised ARPANET Cost Metric

Key Concepts  Routing uses global knowledge; forwarding is local  Many different algorithms address the routing problem  We have looked at two classes: DV (RIP) and LS (OSPF)  Challenges:  Handling failures/changes  Defining “best” paths  Scaling to millions of users

Dijkstra Example – After the flood The Unconsidered. The Considered **

Dijkstra Example – Post Initialization ** inf The Unconsidered. The Considered

Considering a Node inf The Unconsidered.The ConsideredThe Under Consideration (w). Cost updates of 8,14, and 7

Pushing out the horizon The Unconsidered.The ConsideredThe Under Consideration (w). Cost updates of 13

Next Phase The Unconsidered.The ConsideredThe Under Consideration (w). Cost updates of 9

Considering the last node The Unconsidered.The ConsideredThe Under Consideration (w).

Dijkstra Example – Done