Distance-Vector Routing: Distributed B-F (cont.)

Similar documents
What is Routing? EE 122: Shortest Path Routing. Example. Internet Routing. Ion Stoica TAs: Junda Liu, DK Moon, David Zats

Review: Routing in Packet Networks Shortest Path Algorithms: Dijkstra s & Bellman-Ford. Routing: Issues

Routers & Routing : Computer Networking. Binary Search on Ranges. Speeding up Prefix Match - Alternatives

EE 122: Intra-domain routing

CSE/EE 461 Distance Vector Routing

IP Forwarding Computer Networking. Graph Model. Routes from Node A. Lecture 11: Intra-Domain Routing

Advanced Computer Networks

IP Forwarding Computer Networking. Routes from Node A. Graph Model. Lecture 10: Intra-Domain Routing

ÉCOLE POLYTECHNIQUE FÉDÉRALE DE LAUSANNE! 1. Link state flooding topology information finding the shortest paths (Dijkstra)

CSCE 463/612 Networks and Distributed Processing Spring 2018

Intra-domain Routing

Third Generation Routers

The Problem: Finding Paths Spring 2011 Lecture #19. Forwarding. Shortest Path Routing

Distance vector and RIP

COMP 631: NETWORKED & DISTRIBUTED SYSTEMS 9/6/16 COMP 631: NETWORKED & DISTRIBUTED SYSTEMS. Internet Routing. Jasleen Kaur.

CS 457 Networking and the Internet. What is Routing. Forwarding versus Routing 9/27/16. Fall 2016 Indrajit Ray. A famous quotation from RFC 791

Determining IP Routes. 2000, Cisco Systems, Inc. 9-1

Computer Networks. Routing Algorithms

DSDV: Proactive. Distance Vector (Basic idea) Distance Vector. Distance Vector Algorithm: Tables 12/13/2016

Initialization: Loop until all nodes in N

Routing. 9: Intro to Routing Algorithms. Routing. Roadmap. Routing Algorithm classification: Static or Dynamic?

Distance Vector Routing

Distance Vector Routing Protocols

06/02/ Local & Metropolitan Area Networks. Overview. Routing algorithm ACOE322. Lecture 6 Routing

Chapter 7 Routing Protocols

Let s focus on clarifying questions. More Routing. Logic Refresher. Warning. Short Summary of Course. 10 Years from Now.

WAN Technology and Routing

CS 43: Computer Networks. 23: Routing Algorithms November 14, 2018

Network service model. Network service model. Network Layer (part 1) Virtual circuits. By the end of this lecture, you should be able to.

Basic Idea. Routing. Example. Routing by the Network

Routing in a network

Routing by the Network

Last time. Transitioning to IPv6. Routing. Tunneling. Gateways. Graph abstraction. Link-state routing. Distance-vector routing. Dijkstra's Algorithm

C13b: Routing Problem and Algorithms

4/25/12. The Problem: Distributed Methods for Finding Paths in Networks Spring 2012 Lecture #20. Forwarding. Shortest Path Routing

Overview. Problem: Find lowest cost path between two nodes Factors static: topology dynamic: load

Fairness Example: high priority for nearby stations Optimality Efficiency overhead

Destination Sequenced Distance. [Perkins94] CSE 6811 : Lecture 6

Network Layer (Routing)

COMP 3331/9331: Computer Networks and Applications

ETSF05/ETSF10 Internet Protocols Routing on the Internet

ICS 351: Today's plan. netmask exercises network and subnetwork design dynamic routing RIP distance-vector routing

2008 NDP Lectures 7 th Semester

CS 457 Networking and the Internet. Shortest-Path Problem. Dijkstra s Shortest-Path Algorithm 9/29/16. Fall 2016

Chapter 12. Routing and Routing Protocols 12-1

Routing. Effect of Routing in Flow Control. Relevant Graph Terms. Effect of Routing Path on Flow Control. Effect of Routing Path on Flow Control

COMP/ELEC 429/556 Introduction to Computer Networks

More on Network Routing and Internet Protocol

Routing Algorithm Classification. A Link-State Routing Algorithm

ETSF05/ETSF10 Internet Protocols. Routing on the Internet

Introduction to Intra-Domain Routing

Chapter 22 Network Layer: Delivery, Forwarding, and Routing 22.1

Lecture 13: Routing in multihop wireless networks. Mythili Vutukuru CS 653 Spring 2014 March 3, Monday

ECE 333: Introduction to Communication Networks Fall 2001

Address Translation. Map IP addresses into physical addresses destination host next hop router

TCP/IP Networking. Part 3: Forwarding and Routing

ECE 158A: Lecture 5. Fall 2015

Routing Protocols and the IP Layer

Routing in packet-switching networks

RIP Configuration. RIP Overview. Operation of RIP. Introduction. RIP routing table. RIP timers

VI. ROUTING. - "routing protocol" nodes exchange information to ensure consistent understanding of paths

Routing Algorithms : Fundamentals of Computer Networks Bill Nace

Internet Architecture. Network Layer Overview. Fundamental Network Layer Function. Protocol Layering and Data. Computer Networks 9/23/2009

Announcements. CS 5565 Network Architecture and Protocols. Project 2B. Project 2B. Project 2B: Under the hood. Routing Algorithms

Network Protocols. Routing. TDC375 Autumn 03/04 John Kristoff - DePaul University 1

Computer Networks II. RIP Routing Information Protocol. Dipartimento di Informatica e Sistemistica

(Refer Slide Time: 01:08 to 01:25min)

Routing in Ad-hoc Networks

Routing, Routing Algorithms & Protocols

Computer Networking. Intra-Domain Routing. RIP (Routing Information Protocol) & OSPF (Open Shortest Path First)

Discussion 8: Link State Routing. CSE 123: Computer Networks Marti Motoyama & Chris Kanich

Announcement. Project 2 extended to 2/20 midnight Project 3 available this weekend Homework 3 available today, will put it online

CSCD 330 Network Programming Spring 2018

CEN445 Network Protocols and Algorithms. Chapter 2. Routing Algorithms. Dr. Ridha Ouni

CSCD 330 Network Programming Spring 2017

ICMP, ARP, RARP, IGMP

CSE 461 Routing. Routing. Focus: Distance-vector and link-state Shortest path routing Key properties of schemes

Computer Networks. Wenzhong Li. Nanjing University

CHAPTER 9: PACKET SWITCHING N/W & CONGESTION CONTROL

Why dynamic route? (1)

Lecture 4 Wide Area Networks - Routing

Routing. Routing. Overview. Overview. Routing vs. Forwarding. Why Routing

Chapter 4 Network Layer. Network Layer 4-1

Routing Algorithms. CS158a Chris Pollett Apr 4, 2007.

CHAPTER 4: ROUTING DYNAMIC. Routing & Switching

Introduction to Local and Wide Area Networks

CS118 Discussion Week 7. Taqi

SEMESTER 2 Chapter 4 Distance Vector Routing Protocols V 4.0 RIP, IGRP, EIGRP

DATA COMMUNICATOIN NETWORKING

Routing Unicast routing protocols

Ad Hoc Routing. Ad-hoc Routing. Problems Using DV or LS. DSR Concepts. DSR Components. Proposed Protocols

More Routing. EE122 Fall 2012 Scott Shenker

ROUTING AND FORWARDING

LECTURE 9. Ad hoc Networks and Routing

Internetworking - We are heterogeneity to our network (variable network technologies, bandwidth, MTU, latency, etc. etc.)

Internet Protocol: Routing Algorithms. Srinidhi Varadarajan

Routing. Jens A Andersson Communication Systems

ECE 435 Network Engineering Lecture 11

The most simple way to accelerate a Router is at 9.8 m/sec/sec.

Network Routing. Packet Routing, Routing Algorithms, Routers, Router Architecture

Transcription:

istance-vector Routing: istributed - (cont.) xample [ istributed ellman-ord lgorithm ] ssume each node i maintains an entry (R(i,x), L(i,x)), where R(i,x) is the next node along the current shortest path and L(i,x) is the current minimum cost from node i to the destination x. If the next node is not defined, we set R(i,x) to. iteration iteration xecution of the ellman-ord algorithm for destination node Initially all nodes, other than the destination node, are at infinite cost (distance) to node. Iteration : Node informs its neighbours it is distance 0 from itself, with a timestamp. Iteration : Node finds that it is connected to node with cost. Node finds that it is connected to node at a cost of. Nodes and update their entries and inform their neighbours.

istance-vector Routing: istributed - (cont.) Iteration : Node finds that it can reach node via node with cost. Node finds that it can reach node via node with cost 6. Node finds it has paths via nodes and with costs and respectively, and it selects the path via node. Nodes,, and update their entries and inform their neighbours. Iteration : Node finds that it can reach node via node,, and with distance 6,, and 6 respectively, and it selects the path via node. Node changes its entry to (,) and informs its neighbours. Iteration : Nodes,, and process the new entry from node but do not find any new shortest paths. The algorithm has converged. routing-table entries for only Iteration Node (,, -) (,, -) (,, ) (,, ) (,, ) Node (,, -) (,, -) (, 6, ) (,, ) (,, ) Node (,, -) (,, ) (,, ) (,, ) (,, ) Node (,, -) (,, -) (,, ) (,, ) (,, ) Node (,, -) (,, ) (,, ) (,, ) (,, ) When a node running the V algorithm detects a change in its distance table, it updates its neighbours.

istance-vector Routing: istributed - (cont.) xample [ lgorithm reaction to link failure ] algorithm may react very slowly to a link failure! or example, consider the following topology, with node as the destination. Update routing-table entries for only, at,, before break Node Node Node (,,) (,,) (,,) Suppose after the algorithm stabilizes, link (,) breaks. Recompute the minimum cost from each node to the destination node (node ). Update packets bounce back and fourth between and / until the minimum cost is (or very large, in practice). t that point the algorithm realizes that node is unreachable. updates for only Update Node Node Node count to infinity problem!!! solution: stop when cost = 6 (, ) (, ) (, ) (, ) (, ) (, 7) (, ) (, ) (, ) (, ) (, 6) (, 6) (, ) (, ) (, ) (, ) (, 7)

istance-vector Routing: istributed - (cont.) xample [ lgorithm reaction to link failure ] Suppose that after the algorithm stabilizes for the network from the previous example, the link connecting node and node breaks. ompute the minimum cost from each node to destination node (), assuming that each node immediately recomputes its cost after detecting changes and broadcasts its routing updates to its neighbours. Update : s soon as node detects that link (,) breaks, recomputes the minimum cost to through one of its neighbours. The calculation indicates that the new shortest path is through node at cost. Node sends the new routing update to its neighbours, and. (NOT: at this point does not realize that the shortest path that node advertised happens to go through, so a loop has been created.)

istance-vector Routing: istributed - (cont.) Update : Node finds its shortest path is still through, but the cost has increased to 7. Node finds its shortest path is through with a cost of. Node transmits its routing update to nodes,, and, and node transmits its routing update to nodes,,, and. Update : Node finds its shortest path is still through. Node finds its shortest path is still through but the cost has increased to 6. Node finds its shortest path is still through but the cost has increased to 7. Nodes and find their shortest paths have not changed. Node transmits its update to,, and, while transmits its update to and. Update : Node finds its shortest path is through either or with a cost of 9. Suppose that chooses node. Nodes and do not change their shortest paths. Update : None of the nodes finds a new shorter path. The algorithm has converged. entries for only Update break Node (, ) (, ) (7, ) (7, ) (9, ) (9, ) Node (, ) (, ) (, ) (6, ) (6, ) (6, ) Node (, ) (, ) (7, ) (7, ) (7, ) Node (, ) (, ) (, ) (, ) (, ) (, ) Node (, ) (, ) (, ) (, ) (, ) (, )

istance-vector Routing: istributed - (cont.) 6 ount to Infinity Problem slow convergence to a change in topology could be partially avoided using split horizon and split horizon with poisoned reverse Split Horizon minimum cost to a given destination should NOT be sent to a neighbour if neighbour is next node along the shortest path xample [ split horizon ] should not advertise any route to for which is the next hop. Split Horizon works by suppressing information!!!

istance-vector Routing: istributed - (cont.) 7 Split Horizon with a node sends the minimum cost to all its neighbours; Poison Reverse but, the minimum cost to a given destination is set to infinity (=6, in practice) if the neighbours is the next node along the shortest path if two routers have routes pointing at each other, advertising reverse routes with a metric of =6 breaks the loop immediately xample [ poisoned reverse ]

Routing lgorithms omparison (cont.) 8 Link State vs. istance Vector size of (update) routing info communication overhead convergence speed space requirements computational complexity per one destination computational robustness security / fault tolerance Link State small, contains only neighbours link costs flood to all nodes overhead O(N*), where N = # of nodes, = # of edges do NOT need to recalculate LSP s before forwarding faster maintains entire topology in a link database O(N*K) if each of N routers has K neighbours O(N*(N-)/)=O(N ) each router computes paths on its own no error propagation false/corrupt LSPs can be flooded to all routers istance Vector potentially long distance vectors send distance vectors only to neighbours O(N*K) if each of N routers has K neighbours takes a while to propagate changes to rest of network maintains only neighbours states O(K) distance vectors O(N*K*iameter) routers compute paths collectively errors propagate false/corrupt LSPs can be flooded to all routers