Lecture 4 Wide Area Networks - Routing

Similar documents
Chapter 12. Routing and Routing Protocols 12-1

Data and Computer Communications. Chapter 12 Routing in Switched Networks

William Stallings Data and Computer Communications 7 th Edition. Chapter 12 Routing

Alternate Routing Diagram

BLM6196 COMPUTER NETWORKS AND COMMUNICATION PROTOCOLS

William Stallings Data and Computer Communications. Chapter 10 Packet Switching

Routing in packet-switching networks

This Lecture. BUS Computer Facilities Network Management. Switching Network. Simple Switching Network

Routing Strategies. Fixed Routing. Fixed Flooding Random Adaptive

Lecture (08, 09) Routing in Switched Networks

ETSF05/ETSF10 Internet Protocols Routing on the Internet

Routing in Switched Data Networks

ETSF05/ETSF10 Internet Protocols. Routing on the Internet

Routing in Switched Networks

Computer Networks. Wenzhong Li. Nanjing University

Fairness Example: high priority for nearby stations Optimality Efficiency overhead

Routing Algorithms. CS158a Chris Pollett Apr 4, 2007.

5.2 Routing Algorithms

Routing. 4. Mar INF-3190: Switching and Routing

ROUTING IN SWITCHED NETWORKS

ECE 333: Introduction to Communication Networks Fall 2001

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

Course Routing Classification Properties Routing Protocols 1/39

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

Routing. Advanced Computer Networks: Routing 1

Redes de Computadores. Shortest Paths in Networks

UNIT 2 ROUTING ALGORITHMS

Module 8. Routing. Version 2 ECE, IIT Kharagpur

C13b: Routing Problem and Algorithms

CS644 Advanced Networks

Lecture 4 Wide Area Networks - Congestion in Data Networks

CSC 401 Data and Computer Communications Networks

Multiplexing From one channel to multiple channels

Chapter 5 (Week 9) The Network Layer ANDREW S. TANENBAUM COMPUTER NETWORKS FOURTH EDITION PP BLM431 Computer Networks Dr.

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

CSC 4900 Computer Networks: Routing Algorithms

Routing, Routing Algorithms & Protocols

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

CHAPTER 9: PACKET SWITCHING N/W & CONGESTION CONTROL

Routing. Information Networks p.1/35

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

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

6.02 Fall 2014! Lecture #21. Failures in routing Routing loops Counting to infinity

DATA COMMUNICATOIN NETWORKING

Routing Algorithms : Fundamentals of Computer Networks Bill Nace

Outline. Routing. Introduction to Wide Area Routing. Classification of Routing Algorithms. Introduction. Broadcasting and Multicasting

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

Telecommunication Protocols Laboratory Course. Lecture 3

Chapter 4: Network Layer, partb

The Network Layer. Network Layer Design Objectives

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

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

5.1 introduction 5.5 The SDN control 5.2 routing protocols plane. Control Message 5.3 intra-as routing in Protocol the Internet

Packet Switching. Raj Jain. Professor of CIS. The Ohio State University

Lecture 4. The Network Layer (cont d)

Missing Pieces of the Puzzle

ECE 435 Network Engineering Lecture 11

Layer 3: Network Layer. 9. Mar INF-3190: Switching and Routing

CMPE 150/L : Introduction to Computer Networks. Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 13

List of groups known at each router. Router gets those using IGMP. And where they are in use Where members are located. Enhancement to OSPF

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

CS 5114 Network Programming Languages Control Plane. Nate Foster Cornell University Spring 2013

EITF25 Internet Routing. Jens A Andersson

Lecture on Computer Networks

Routing Protocols. The routers in an internet are responsible for receiving and. forwarding IP datagrams through the interconnected set of

CMPE 150: Introduction to Computer Networks

Reinforcement learning algorithms for non-stationary environments. Devika Subramanian Rice University

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

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

EE 122: Intra-domain routing

LS Example 5 3 C 5 A 1 D

Introduction to Internet Routing

Network Layer: Routing

CSCE 463/612 Networks and Distributed Processing Spring 2018

CS4450. Computer Networks: Architecture and Protocols. Lecture 11 Rou+ng: Deep Dive. Spring 2018 Rachit Agarwal

How Routing Algorithms Work

Lecture 1 Overview - Data Communications, Data Networks, and the Internet

Lecture 9. Network Layer (cont d) Network Layer 1-1

CIS 632 / EEC 687 Mobile Computing

Routing Basics. What is Routing? Routing Components. Path Determination CHAPTER

To contain/reduce broadcast traffic, we need to reduce the size of the network (i.e., LAN).

ICMP, ARP, RARP, IGMP

Routing in a network

Unit 2 Packet Switching Networks - II

We will discuss about three different static routing algorithms 1. Shortest Path Routing 2. Flooding 3. Flow Based Routing

Course 6. Internetworking Routing 1/33

IP Routing. Bharat S. Chaudhari International Institute of Information Technology Pune, India

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

Chapter 4 Network Layer. Network Layer 4-1

A Fuzzy System for Adaptive Network Routing

Interplay between routing, forwarding

CSCD 330 Network Programming Spring 2018

ECE 435 Network Engineering Lecture 11

Distance Vector Routing

CSCD 330 Network Programming Spring 2017

Data Communication Networks Final

Link-State Routing OSPF

Youki Kadobayashi NAIST

Routing Outline. EECS 122, Lecture 15

From Routing to Traffic Engineering

Transcription:

DATA AND COMPUTER COMMUNICATIONS Lecture 4 Wide Area Networks - Routing Mei Yang Based on Lecture slides by William Stallings 1 ROUTING IN PACKET SWITCHED NETWORK key design issue for (packet) switched networks select route across network between end nodes characteristics required: correctness simplicity robustness stability fairness optimality efficiency CpE400/ECG600 Fall 2013 1

PERFORMANCE CRITERIA used for selection of route simplest is minimum hop can be generalized as least cost because least cost is more flexible it is more common than minimum hop EXAMPLE OF PACKET SWITCHED NETWORK CpE400/ECG600 Fall 2013 2

DECISION TIME AND PLACE decision time packet or virtual circuit basis fixed or dynamically changing decision place distributed - made by each node more complex, but more robust centralized made by a designated node source made by source station NETWORK INFORMATION SOURCE AND UPDATE TIMING routing decisions usually based on knowledge of network, traffic load, and link cost distributed routing using local knowledge, information from adjacent nodes, information from all nodes on a potential route central routing collect information from all nodes issue of update timing depends on routing strategy fixed - never updated adaptive - regular updates CpE400/ECG600 Fall 2013 3

ROUTING STRATEGIES -FIXED ROUTING use a single permanent route for each source to destination pair determined using a least cost algorithm route is fixed at least until a change in network topology hence cannot respond to traffic changes advantage is simplicity disadvantage is lack of flexibility FIXED ROUTING TABLES CpE400/ECG600 Fall 2013 4

ROUTING STRATEGIES -FLOODING packet sent by node to every neighbor eventually multiple copies arrive at destination no network info required each packet is uniquely numbered so duplicates can be discarded need some way to limit incessant retransmission nodes can remember packets already forwarded to keep network load in bounds or include a hop count in packets FLOODING EXAMPLE CpE400/ECG600 Fall 2013 5

PROPERTIES OF FLOODING all possible routes are tried highly robust can be used to send emergency messages at least one packet will have taken minimum hop route nodes directly or indirectly connected to source are visited Disadvantages: high traffic load generated security concerns ROUTING STRATEGIES -RANDOM ROUTING simplicity of flooding with much less load node selects one outgoing path for retransmission of incoming packet selection can be random or round robin a refinement is to select outgoing path based on probability calculation no network info needed but a random route is typically neither least cost nor minimum hop CpE400/ECG600 Fall 2013 6

ROUTING STRATEGIES -ADAPTIVE ROUTING used by almost all packet switching networks routing decisions change as conditions on the network change due to failure or congestion requires info about network disadvantages: decisions more complex tradeoff between quality of network info and overhead reacting too quickly can cause oscillation reacting too slowly means info may be irrelevant ADAPTIVE ROUTING -ADVANTAGES improved performance aid congestion control but since is a complex system, may not realize theoretical benefits cf. outages on many packet-switched nets CpE400/ECG600 Fall 2013 7

CLASSIFICATION OF ADAPTIVE ROUTING STRATEGIES on the basis of information source local (isolated) route to outgoing link with shortest queue can include bias for each destination rarely used - does not make use of available information adjacent nodes takes advantage of delay and outage information distributed or centralized all nodes like adjacent ISOLATED ADAPTIVE ROUTING CpE400/ECG600 Fall 2013 8

ARPANET ROUTING STRATEGIES 1ST GENERATION designed in 1969 distributed adaptive using estimated delay queue length used as estimate of delay using Bellman-Ford algorithm node exchanges delay vector with neighbors update routing table based on incoming info problems: doesn't consider line speed, just queue length queue length not a good measurement of delay responds slowly to congestion ARPANET ROUTING STRATEGIES 2ND GENERATION designed in 1979 distributed adaptive using measured delay using timestamps of arrival, departure & ACK times recomputes average delays every 10secs any changes are flooded to all other nodes recompute routing using Dijkstra s algorithm good under light and medium loads under heavy loads, little correlation between reported delays and those experienced CpE400/ECG600 Fall 2013 9

OSCILLATION ARPANET ROUTING STRATEGIES 3RD GENERATION designed in 1987 link cost calculations changed to damp routing oscillations and reduce routing overhead measure average delay over last 10 secs and transform into link utilization estimate normalize this based on current value and previous results set link cost as function of average utilization CpE400/ECG600 Fall 2013 10

ARPANET DELAY METRICS LEAST COST ALGORITHMS basis for routing decisions minimize hop with each link cost 1 have link value inversely proportional to capacity defines cost of path between two nodes as sum of costs of links traversed network of nodes connected by bidirectional links link has a cost in each direction for each pair of nodes, find path with least cost link costs in different directions may be different alternatives: Dijkstra or Bellman-Ford algorithms CpE400/ECG600 Fall 2013 11

LEAST COST ALGORITHMS basis for routing decisions can minimize hop with each link cost 1 or have link value inversely proportional to capacity defines cost of path between two nodes as sum of costs of links traversed in network of nodes connected by bi-directional links where each link has a cost in each direction for each pair of nodes, find path with least cost nb. link costs in different directions may be different alternatives: Dijkstra or Bellman-Ford algorithms DIJKSTRA S ALGORITHM finds shortest paths from given source node s to all other nodes by developing paths in order of increasing path length algorithm runs in stages (next slide) each time adding node with next shortest path algorithm terminates when all nodes processed by algorithm (in set T) CpE400/ECG600 Fall 2013 12

DIJKSTRA S ALGORITHM METHOD Step 1 [Initialization] T = {s} Set of nodes so far incorporated L(n) = w(s, n) for n s initial path costs to neighboring nodes are simply link costs Step 2 [Get Next Node] find neighboring node not in T with least-cost path from s incorporate node into T also incorporate the edge that is incident on that node and a node in T that contributes to the path Step 3 [Update Least-Cost Paths] L(n) = min[l(n), L(x) + w(x, n)] for all n T f latter term is minimum, path from s to n is path from s to x concatenated with edge from x to n DIJKSTRA S ALGORITHM EXAMPLE CpE400/ECG600 Fall 2013 13

DIJKSTRA S ALGORITHM EXAMPLE Iter T L(2) Path L(3) Path L(4) Path L(5) Path L(6) Path 1 {1} 2 1 2 5 1-3 1 1 4 - - 2 {1,4} 2 1 2 4 1-4-3 1 1 4 2 1-4 5-3 {1, 2, 4} 2 1 2 4 1-4-3 1 1 4 2 1-4 5-4 {1, 2, 4, 5} 5 {1, 2, 3, 4, 5} 6 {1, 2, 3, 4, 5, 6} 2 1 2 3 1-4-5 3 1 1 4 2 1-4 5 4 1-4-5 6 2 1 2 3 1-4-5 3 1 1 4 2 1-4 5 4 1-4-5 6 2 1-2 3 1-4-5-3 1 1-4 2 1-4 5 4 1-4-5-6 BELLMAN-FORD ALGORITHM find shortest paths from given node subject to constraint that paths contain at most one link find the shortest paths with a constraint of paths of at most two links and so on CpE400/ECG600 Fall 2013 14

BELLMAN-FORD ALGORITHM step 1 [Initialization] L 0 (n) =, for all n s L h (s) = 0, for all h step 2 [Update] for each successive h 0 for each n s, compute: L h+1 (n)= min j[l h (j)+w(j,n)] connect n with predecessor node j that gives min eliminate any connection of n with different predecessor node formed during an earlier iteration path from s to n terminates with link from j to n EXAMPLE OF BELLMAN-FORD ALGORITHM CpE400/ECG600 Fall 2013 15

RESULTS OF BELLMAN-FORD EXAMPLE h L h (2) Path L h (3) Path L h (4) Path L h (5) Path L h (6) Path 0 - - - - - 1 2 1-2 5 1-3 1 1-4 - - 2 2 1-2 4 1-4-3 1 1-4 2 1-4-5 10 1-3-6 3 2 1-2 3 1-4-5-3 1 1-4 2 1-4-5 4 1-4-5-6 4 2 1-2 3 1-4-5-3 1 1-4 2 1-4-5 4 1-4-5-6 COMPARISON results from two algorithms agree Bellman-Ford calculation for node n needs link cost to neighbouring nodes plus total cost to each neighbour from s each node can maintain set of costs and paths for every other node can exchange information with direct neighbors can update costs and paths based on information from neighbors and knowledge of link costs Dijkstra each node needs complete topology must know link costs of all links in network must exchange information with all other nodes CpE400/ECG600 Fall 2013 16

EVALUATION dependent on processing time of algorithms amount of informatio n required from other nodes if link costs depend on traffic, which depends on routes chosen, may have feedback instability implementatio both converge n specific under static topology and costs if link costs change, algorithms attempt to catch up both converg e to same solution SUMMARY routing in packet-switched networks routing strategies fixed, flooding, random,adaptive ARPAnet examples least-cost algorithms Dijkstra, Bellman-Ford CpE400/ECG600 Fall 2013 17