Routing: Distance Vector Algorithm. Networking CS 3470, Section 1

Similar documents
Lecture 8: Routing I Distance-vector Algorithms. CSE 123: Computer Networks Stefan Savage

Lecture 13: Distance-vector Routing. Lecture 13 Overview. Bellman-Ford Algorithm. d u (z) = min{c(u,v) + d v (z), c(u,w) + d w (z)}

COMP 631: COMPUTER NETWORKS. Internet Routing. Jasleen Kaur. Fall Forwarding vs. Routing: Local vs. Distributed

CS Computer Networks 1: Routing Algorithms

Distance Vector Routing Protocols. Routing Protocols and Concepts Ola Lundh

Routing Protocols (RIP, OSPF, BGP)

6.263 Data Communication Networks

Based on Computer Networking, 4 th Edition by Kurose and Ross

Introduction to LAN/WAN. Network Layer

Route Discovery Protocols

6.02 Practice Problems: Routing

CS335 Sample Questions for Exam #2

Chapter 4. Distance Vector Routing Protocols

Dynamic Routing Protocols II OSPF. Distance Vector vs. Link State Routing

Internet Control Message Protocol (ICMP)

Exterior Gateway Protocols (BGP)

WAN Wide Area Networks. Packet Switch Operation. Packet Switches. COMP476 Networked Computer Systems. WANs are made of store and forward switches.

Routing in packet-switching networks

Outline. Internet Routing. Alleviating the Problem. DV Algorithm. Routing Information Protocol (RIP) Link State Routing. Routing algorithms

Lecture 12: Link-state Routing"

Lecture 2.1 : The Distributed Bellman-Ford Algorithm. Lecture 2.2 : The Destination Sequenced Distance Vector (DSDV) protocol

Internet Firewall CSIS Packet Filtering. Internet Firewall. Examples. Spring 2011 CSIS net15 1. Routers can implement packet filtering

Talk Announcement CSC Lecture 5 Intra-Domain Routing Protocols. Administrivia. This Time

Link-State Routing Protocols

Administrative Distance

Routing Protocols. Interconnected ASes. Hierarchical Routing. Hierarchical Routing

CSE331: Introduction to Networks and Security. Lecture 8 Fall 2006

Question 1. [7 points] Consider the following scenario and assume host H s routing table is the one given below:

Computer Networks. Main Functions

Outline. EE 122: Interdomain Routing Protocol (BGP) BGP Routing. Internet is more complicated... Ion Stoica TAs: Junda Liu, DK Moon, David Zats

Advanced Networking Routing: RIP, OSPF, Hierarchical routing, BGP

Graph Theory Topics in Computer Networking

College 5, Routing, Internet. Host A. Host B. The Network Layer: functions

Lecture 18: Border Gateway Protocol"

O /27 [110/129] via , 00:00:05, Serial0/0/1

Routing with OSPF. Introduction

Table of Contents. Cisco How Does Load Balancing Work?

TORA : Temporally Ordered Routing Algorithm

Simulation of Heuristic Usage for Load Balancing In Routing Efficiency

CS 457 Lecture 19 Global Internet - BGP. Fall 2011

Router and Routing Basics

New York University Computer Science Department Courant Institute of Mathematical Sciences

value in arriving packet s header routing algorithm local forwarding table header value output link

Datagram-based network layer: forwarding; routing. Additional function of VCbased network layer: call setup.

Chapter 10 Link-State Routing Protocols

Module 7. Routing and Congestion Control. Version 2 CSE IIT, Kharagpur

IP Multicasting. Applications with multiple receivers

Multihoming and Multi-path Routing. CS 7260 Nick Feamster January

OSPF Routing Protocol

CSC458 Lecture 6. Homework #1 Grades. Inter-domain Routing IP Addressing. Administrivia. Midterm will Cover Following Topics

A REPORT ON ANALYSIS OF OSPF ROUTING PROTOCOL NORTH CAROLINA STATE UNIVERSITY

Route Optimization. rek Petr Grygarek, VSB-TU Ostrava, Routed and Switched Networks 1

The Internet: A Remarkable Story. Inside the Net: A Different Story. Networks are Hard to Manage. Software Defined Networking Concepts

Cisco CCNP Optimizing Converged Cisco Networks (ONT)

GregSowell.com. Mikrotik Routing

- IGRP - IGRP v1.22 Aaron Balchunas

How To Understand Bg

Inter-domain Routing. Outline. Border Gateway Protocol

Data Networks Project 2: Design Document for Intra-Domain Routing Protocols

Routing Protocols OSPF CHAPTER. The following topics describe supported routing protocols. Topics include OSPF, page 9-1 IS-IS Protocol, page 9-3

Answer: that dprop equals dtrans. seconds. a) d prop. b) d trans

EE627 Lecture 22. Multihoming Route Control Devices

Understanding Route Redistribution & Filtering

IP Routing Configuring RIP, OSPF, BGP, and PBR

RIP: Routing Information Protocol

CS 5480/6480: Computer Networks Spring 2012 Homework 4 Solutions Due by 1:25 PM on April 11 th 2012

A Comparison Study of Qos Using Different Routing Algorithms In Mobile Ad Hoc Networks

Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Dr. Phạm Trần Vũ

BGP overview BGP operations BGP messages BGP decision algorithm BGP states

Administra0via. STP lab due Wednesday (in BE 301a!), 5/15 BGP quiz Thursday (remember required reading), 5/16

Wide Area Networks. Learning Objectives. LAN and WAN. School of Business Eastern Illinois University. (Week 11, Thursday 3/22/2007)

Introduction to Metropolitan Area Networks and Wide Area Networks

Introduction to TCP/IP

Advanced Routing. FortiOS Handbook v3 for FortiOS 4.0 MR3

A Review And Evaluations Of Shortest Path Algorithms

Using the Border Gateway Protocol for Interdomain Routing

Inter-Domain Routing: Stability, Policies, and Incentives

The Quality of Internet Service: AT&T s Global IP Network Performance Measurements

How To Solve The Count To Infinity Problem In A Network (Networking) With A Loop Free Distance Vector Routing (Dns) Protocol

Routing and Packet Forwarding

IP Routing Configuring Static Routes

Scalable Source Routing

Final Exam. Route Computation: One reason why link state routing is preferable to distance vector style routing.

Inter-domain Routing Basics. Border Gateway Protocol. Inter-domain Routing Basics. Inter-domain Routing Basics. Exterior routing protocols created to:

BGP Best Path Selection Algorithm

Social Media Mining. Graph Essentials

Computer Networks II Master degree in Computer Engineering Exam session: 11/02/2009 Teacher: Emiliano Trevisani. Student Identification number

Ausgewählte Kapitel der Rechnernetze

Assignment #3 Routing and Network Analysis. CIS3210 Computer Networks. University of Guelph

RIP: Routing Information Protocol

Configuring RIP. Overview. Routing Update Process CHAPTER

Analysis of QoS Routing Approach and the starvation`s evaluation in LAN

- Routing Information Protocol -

Configuring a Gateway of Last Resort Using IP Commands

Multiprotocol Label Switching (MPLS)

Search Heuristics for Load Balancing in IP-networks

CS551 External v.s. Internal BGP

APNIC elearning: BGP Attributes

Fast Re-Route in IP/MPLS networks using Ericsson s IP Operating System

Ethernet (LAN switching)

Transcription:

Routing: Distance Vector Algorithm Networking CS 3470, Section

Review So how is routing different from forwarding?

Routing Network as a Graph 5 A 2 B D 2 3 3 C E 5 2 F The basic problem of routing is to find the lowest-cost path between any two nodes Where the cost of a path equals the sum of the costs of all the edges that make up the path

Routing Routing protocols need to be both dynamic and distributed Deal with node and link failures, changing link costs, and scalability 4

Distributed Routing Algorithms Two standard distributed routing algorithms Link state routing Distance vector routing What link state routing protocol did we discuss last time? 5

Link State vs Distance Vector Both assume that The address of each neighbor is known The cost of reaching each neighbor is known Both find global information By exchanging routing info among neighbors Differ in info exchanged and route computation LS: tells every other node its distance to neighbors DV: tells neighbors its distance to every other node 6

Distance Vector Routing A router tells neighbors its distance to every router Communication between neighbors only Each router maintains a distance table A row for each possible destination A column for each neighbor D X (Y,Z) : distance from X to Y via Z 7

Distance Vector Routing Given a distance table we can find the shortest distance to a destination i.e., the smallest value in the row corresponding to the destination. A list of <destination, shortest distance> tuples is called a distance vector Current least cost to each destination Exchanged between neighbors Based on Bellman-Ford algorithm Computes shortest paths 8

Distance Table: Example Distance table at router E E D () cost to destination via A B D A 7 B 8 C 2 A B 7 4 8 5 5 E 2 D C 6 9 4 D 4 2 If E were to advertise its distance vector, it would send <A,>,<B,5>,<C,4>,<D,2> 9

Distance Table to Routing Table E D () cost to destination via A B D Outgoing link to use, cost A 4 5 A A, B 7 8 5 B D,5 C 6 9 4 C D,4 D 4 2 D D,2 Distance table Routing table 0

Distance Vector Routing Algorithm Now the real question How do we compute this distance table? That s where we use Bellman-Ford algorithm.

Distance Vector Routing Algorithm iterative: continues until no nodes exchange info. self-terminating: no signal to stop asynchronous: nodes need not exchange info/iterate in lock step! distributed: each node talks only with directly-attached neighbors Distance Table data structure each node has its own row for each possible destination column for each directly-attached neighbor to node example: in node X, for dest. Y via neighbor Z: X D (Y,Z) = = distance from X to Y, via Z as next hop Z c(x,z) + min {D (Y,w)} w 2

Distance Vector Routing: Overview Iterative, asynchronous: each iteration caused by: local link cost change message from neighbor: its least cost path change from neighbor Distributed: each node notifies neighbors only when its least cost path to any destination changes neighbors then notify their neighbors if necessary Each node: wait for (change in local link cost or msg from neighbor) recompute distance table if least cost path to any dest has changed, notify neighbors 3

Distance Vector Algorithm: Example X 2 Y 7 Z X D (Y,Z) Z = c(x,z) + min {D (Y,w)} w = 7+ = 8 X D (Z,Y) Y = c(x,y) + min {D (Z,w)} w = 2+ = 3 4

Distance Vector Algorithm: Example X 2 Y 7 Z 5

Distance Vector Algorithm: Example X 2 Y 7 Z 6

Convergence of DV Routing router detects local link cost change updates distance table if cost change in least cost path, notify neighbors X 4 Y 50 Z good news travels fast algorithm terminates 7

Problems with DV Routing Link cost changes: good news travels fast bad news travels slow count to infinity problem! 60 X 4 Y 50 Z algorithm continues on! 8

Fixes to Count-to-Infinity Problem Split horizon A router never advertises the cost of a destination to a neighbor If this neighbor is the next hop to that destination Split horizon with poisonous reverse If X routes traffic to Z via Y, then X tells Y that its distance to Z is infinity Instead of not telling anything at all Accelerates convergence 9

Split Horizon with Poisoned Reverse If Z routes through Y to get to X : Y Z tells Y its (Z s) distance to X is infinite (so 4 Y won t route to X via Z) X Z 60 50 algorithm terminates 20

Count-to-Infinity Problem X Y Z W What happens when the link Y to Z goes down? All three routers X, Y, and W together count to infinity. Split horizon solution works only when two routers are involved in a loop. 2

Count-to-Infinity Problem X Y Z To completely eliminate the problem, a router some how need to figure out the complete path to a destination. Obvious solution is to pass on the path information along with the distance vector. W This path vector approach is used in BGP. 22

Link State vs Distance Vector Tells everyone about neighbors Controlled flooding to exchange link state Dijkstra s algorithm Each router computes its own table May have oscillations Tells neighbors about everyone Exchanges distance vectors with neighbors Bellman-Ford algorithm Each router s table is used by others May have routing loops 23

RIP RIP == Routing Information Protocol RIP is a distance vector implementation 0 8 6 3 Command Version Must be zero Family of net Address of net Address of net (network_address, distance) pairs Instead of advertising costs to the next router, RIP advertises the cost to the next network. Distance to net Family of net 2 Address of net 2 Address of net 2 Distance to net 2