Distance Vector and Link State Routing. 110113062. Pragyaditya Das.

Slides:



Advertisements
Similar presentations
Network Layer – Routing 2 Dr. Sanjay P. Ahuja, Ph.D. Fidelity National Financial Distinguished Professor of CIS School of Computing, UNF.
Advertisements

Computer Networks with Internet Technology William Stallings
Courtesy: Nick McKeown, Stanford
© 2007 Cisco Systems, Inc. All rights reserved.ICND2 v1.0—3-1 Medium-Sized Routed Network Construction Reviewing Routing Operations.
1 LINK STATE PROTOCOLS (contents) Disadvantages of the distance vector protocols Link state protocols Why is a link state protocol better?
Distance-Vector and Path-Vector Routing Sections , 4.3.2, COS 461: Computer Networks Spring 2011 Mike Freedman
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 22 Introduction to Computer Networks.
Distance-Vector Routing COS 461: Computer Networks Spring 2010 (MW 3:00-4:20 in COS 105) Michael Freedman
Network Layer Design Isues Store-and-Forward Packet Switching Services Provided to the Transport Layer The service should be independent of the router.
Link-State Routing Reading: Sections 4.2 and COS 461: Computer Networks Spring 2011 Mike Freedman
1 Computer Networks Routing Algorithms. 2 IP Packet Delivery Two Processes are required to accomplish IP packet delivery: –Routing discovering and selecting.
Routing Protocol Pertemuan 21 Matakuliah: H0484/Jaringan Komputer Tahun: 2007.
EE 122: Intra-domain routing Ion Stoica September 30, 2002 (* this presentation is based on the on-line slides of J. Kurose & K. Rose)
ROUTING ON THE INTERNET COSC Aug-15. Routing Protocols  routers receive and forward packets  make decisions based on knowledge of topology.
Delivery, Forwarding and
Distance Vector Routing Protocols Distance Vector Routing.
Routing Algorithms (Ch5 of Computer Network by A. Tanenbaum)
Link State Routing Protocol W.lilakiatsakun. Introduction (1) Link-state routing protocols are also known as shortest path first protocols and built around.
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.
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.
Lecture Week 10 Link-State Routing Protocols. Objectives Describe the basic features & concepts of link-state routing protocols. List the benefits and.
1 Pertemuan 20 Teknik Routing Matakuliah: H0174/Jaringan Komputer Tahun: 2006 Versi: 1/0.
1 Computer Communication & Networks Lecture 22 Network Layer: Delivery, Forwarding, Routing (contd.)
Review: routing algorithms. –Choose the appropriate paths. –Routing algorithms Flooding Shortest path routing (example). –Dijkstra algorithm. –Bellman-Ford.
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.
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.
Link-state routing  each node knows network topology and cost of each link  quasi-centralized: each router periodically broadcasts costs of attached.
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.
Interior Gateway Protocol. Introduction An IGP (Interior Gateway Protocol) is a protocol for exchanging routing information between gateways (hosts with.
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.
Static versus Dynamic Routes Static Route Uses a protocol route that a network administrators enters into the router Static Route Uses a protocol route.
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.
Spring 2006CS 3321 Intradomain Routing Outline Algorithms Scalability.
Cisco Systems Networking Academy S2 C 11 Routing Basics.
1 Computer Communication & Networks Lecture 21 Network Layer: Delivery, Forwarding, Routing Waleed.
TELE202 Lecture 6 Routing in WAN 1 Lecturer Dr Z. Huang Overview ¥Last Lecture »Packet switching in Wide Area Networks »Source: chapter 10 ¥This Lecture.
Internet Routing r Routing algorithms m Link state m Distance Vector m Hierarchical routing r Routing protocols m RIP m OSPF m BGP.
Interior Gateway Protocols (RIP, OSPF) continued….
Stainov - DataComMET CS TC5353 THE NETWORK LAYER 5.2 ROUTING ALGORITHMS - adaptive Distance Vector Routing (Bellman-Ford, Ford-Fulkenson). It was used.
1 Version 3.1 Module 6 Routed & Routing Protocols.
Routing Protocols Brandon Wagner.
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.
Spring Routing: Part I Section 4.2 Outline Algorithms Scalability.
Distance Vector Routing
CS 6401 Intra-domain Routing Outline Introduction to Routing Distance Vector Algorithm.
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.
+ Dynamic Routing Protocols 2 nd semester
Instructor Materials Chapter 5: Dynamic Routing
Routing Protocols and Concepts
COMP 3270 Computer Networks
Link-State Routing Protocols
Dynamic Routing Protocols part2
What is a router? A router is a device that connects multiple computers together. Not to be confused with a switch Routers transmit packets of data across.
Intra-Domain Routing Jacob Strauss September 14, 2006.
Routing: Distance Vector Algorithm
Chapter 5: Dynamic Routing
CS 3700 Networks and Distributed Systems
Link-State Routing Protocols
RFC 1058 & RFC 2453 Routing Information Protocol
COS 561: Advanced Computer Networks
CS 3700 Networks and Distributed Systems
Link-State Routing Protocols
Communication Networks
EE 122: Intra-domain routing: Distance Vector
Data Communication: Routing algorithms
Presentation transcript:

Distance Vector and Link State Routing Pragyaditya Das.

Distance Vector Routing Algorithm. This is one of the two major class of intra domain routing algorithms. The other one is Link State Routing. Distance-vector routing protocols use the Bellman–Ford algorithm, Ford–Fulkerson algorithm, or DUAL FSM (in the case of Cisco Systems' protocols) to calculate paths. Definition : A distance vector routing algorithm operates by having each router maintain a table (i.e., a vector) giving the best known distance to each destination and which link to use to get there. These tables are updated by exchanging information with the neighbours. Eventually, every router knows the best link to reach each destination.

It was the original ARPANET routing algorithm and was also used in the Internet under the name RIP(Routing Information Protocol). The router is assumed to know the ‘‘distance’’ to each of its neighbours. If the metric is hops, the distance is just one hop. If the metric is propagation delay, the router can measure it directly with special ECHO packets that the receiver just timestamps and sends back as fast as it can.

Some theory about the Bellman–Ford algorithm. Bellman-Ford algorithm is used to find the shortest path from a single source vertex to all other vertices of the structure in a graph. The graph used is a Weighted Digraph (Basically a Weighted Directed Graph). It is slower than Dijkstra’s Algorithm, but more versatile (Can handle weights with negative weights too). Also called Bellman–Ford–Moore algorithm because Edward F. Moore also published the same algorithm in 1957.

An example :

The cost of immediate nodes:

The “?” are filled with the cheapest path values.

In practice, each node's forwarding table consists of a set of triples of the form: ( Destination, Cost,

The Count-to-Infinity Problem. Networks using distance-vector routing are susceptible to loops and issues with count to infinity. Problems can happen with your routing protocol when a link or a router fails. Basically, unreachable nodes in divided network.

Initially. Without the breakage between R2 and R3. After first iteration. It happens because R2, R3 is no longer connected, so R2 "thinks" it can redirect packages to R3 through R1, which has a path of 2 - so it will get a path of weight 3.

This will continue forever. This is the count-to-infinity problem. Tanenbaum says : Good news travels quickly, bad news travels slowly.

Link State Routing. Distance vector routing was used in the ARPANET until 1979, when it was replaced by link state routing. The primary problem that caused its demise was that the algorithm often took too long to converge after the network topology changed (due to the count-to-infinity problem). Consequently, it was replaced by an entirely new algorithm, now called link state routing. Variants of link state routing called IS-IS and OSPF are the routing algorithms that are most widely used inside large networks and the Internet today. open shortest path first (OSPF) and intermediate system to intermediate system (IS-IS).

This contrasts with distance-vector, which work by having each node share its routing table with its neighbours. In a link-state protocol the only information passed between nodes is connectivity related. Each router must do the following things to make it work: 1. Discover its neighbours and learn their network addresses. 2. Set the distance or cost metric to each of its neighbours. 3. Construct a packet telling all it has just learned. 4. Send this packet to and receive packets from all other routers. 5. Compute the shortest path to every other router. In effect, the complete topology is distributed to every router. Then Dijkstra’s algorithm can be run at each router to find the shortest path to every other router.

Proceeds in two phases: Nodes flood topology in the form of link state packets. Each node computes its own forwarding table by any shortest path finding algorithm.

Phase 1: Topology Flooding. Courtesy : University Of Coursera.

Phase 2 : Route Computation. Courtesy : University Of Coursera

One important terminology: Forwarding Table: This says about the next node in your journey towards the destination node.

Updating after Changes Link Failure and Node Failure: In this case, we remove the old/failed node and flood the Link State Packet and re-compute routes. Nodes adjacent to the failed node will notice the change. There are certain problems we encounter: 1. Detection Delay : Delay in detection of failure, information sent into a Black Hole. 2. Some routers will know about the disruptions before other, causing inconsistency. Tackle this problems: 1. Faster Flooding. 2. Smaller HELLO timers. 3. Faster processors on routers.

THANK YOU