Chapter 12. Routing and Routing Protocols 12-1

Similar documents
Lecture 4 Wide Area Networks - Routing

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

Data and Computer Communications. Chapter 12 Routing in Switched Networks

Alternate Routing Diagram

BLM6196 COMPUTER NETWORKS AND COMMUNICATION PROTOCOLS

William Stallings Data and Computer Communications. Chapter 10 Packet Switching

Routing in packet-switching networks

Routing Strategies. Fixed Routing. Fixed Flooding Random Adaptive

Lecture (08, 09) Routing in Switched Networks

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

ETSF05/ETSF10 Internet Protocols. Routing on the Internet

ETSF05/ETSF10 Internet Protocols Routing on the Internet

Routing in Switched Data Networks

Fairness Example: high priority for nearby stations Optimality Efficiency overhead

Routing in Switched Networks

Computer Networks. Wenzhong Li. Nanjing University

Routing Algorithms. CS158a Chris Pollett Apr 4, 2007.

5.2 Routing Algorithms

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

ROUTING IN SWITCHED NETWORKS

Course Routing Classification Properties Routing Protocols 1/39

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

ECE 333: Introduction to Communication Networks Fall 2001

Routing. Advanced Computer Networks: Routing 1

C13b: Routing Problem and Algorithms

Module 8. Routing. Version 2 ECE, IIT Kharagpur

Routing in a network

Routing, Routing Algorithms & Protocols

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

UNIT 2 ROUTING ALGORITHMS

CHAPTER 9: PACKET SWITCHING N/W & CONGESTION CONTROL

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

The Network Layer. Network Layer Design Objectives

CS644 Advanced Networks

Multiplexing From one channel to multiple channels

CIS 632 / EEC 687 Mobile Computing

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

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

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

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

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

Distributed Routing. EECS 228 Abhay Parekh

Solution to Question 1: ``Quickies'' (25 points, 15 minutes)

Routing. Information Networks p.1/35

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

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

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

Computer Networks. Routing Algorithms

ECE 435 Network Engineering Lecture 11

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

Course 6. Internetworking Routing 1/33

How Routing Algorithms Work

ICMP, ARP, RARP, IGMP

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

Network Layer: Routing

Lecture on Computer Networks

Routing Algorithms : Fundamentals of Computer Networks Bill Nace

Redes de Computadores. Shortest Paths in Networks

Data Communication Networks Final

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

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

CSC 401 Data and Computer Communications Networks

Telecommunication Protocols Laboratory Course. Lecture 3

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

COM-208: Computer Networks - Homework 6

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

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

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

Lecture 13: Link-state Routing. CSE 123: Computer Networks Alex C. Snoeren

Wide area networks: packet switching and congestion

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

Internetworking Terms. Internet Structure. Internet Structure. Chapter 15&16 Internetworking. Internetwork Structure & Terms

Routing, Routers, Switching Fabrics

CSEP 561 Routing. David Wetherall

DATA COMMUNICATOIN NETWORKING

ECE 435 Network Engineering Lecture 11

CSC 4900 Computer Networks: Routing Algorithms

EITF25 Internet Routing. Jens A Andersson

Lecture 4. The Network Layer (cont d)

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

Unit 2 Packet Switching Networks - II

Lecture 15: Measurement Studies on Internet Routing

Network Layer, Part 2 Routing. Terminology

CMPE 150: Introduction to Computer Networks

Exercise 3. RIP and OSPF

Intra-domain Routing

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

Routing. Outline. Algorithms Scalability

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

LS Example 5 3 C 5 A 1 D

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

II. Principles of Computer Communications Network and Transport Layer

Missing Pieces of the Puzzle

Routing Metric. ARPANET Routing Algorithms. Problem with D-SPF. Advanced Computer Networks

Helsinki University of Technology Telecommunications Laboratory. OSPF Routing Protocol Licenciate course seminar paper

Chapter 4 Network Layer. Network Layer 4-1

Why dynamic route? (1)

Lecture 12: Link-state Routing. Lecture 12 Overview. Router Tasks. CSE 123: Computer Networks Chris Kanich. Routing overview

CHAPTER 4: ROUTING DYNAMIC. Routing & Switching

Youki Kadobayashi NAIST

Transcription:

Chapter 12 Routing and Routing Protocols 12-1

Routing in Circuit Switched Network Many connections will need paths through more than one switch Need to find a route Efficiency Resilience Public telephone switches are a tree structure Static routing uses the same approach all the time Dynamic routing allows for changes in routing depending on traffic 12-2

Alternate Routing Possible routes between end offices predefined Originating switch selects appropriate route Routes listed in preference order Different sets of routes may be used at different times 12-3

Routing in Packet Switched Network The primary function of a packet-switching network is to accept packets from a source station and deliver them to a destination. Routing function must be performed. Requirements for routing: Correctness Simplicity Robustness Stability Fairness Optimality Efficiency 12-4

Elements of Routing Techniques 12-5

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

Performance Criteria Suppose we want to find the route from 1 to 6. The selection of the route is based on some performance criterion. Minimum hop Least cost 12-8

Routing Strategies Fixed Flooding Random Adaptive 12-9

Fixed Routing Single permanent route for each source to destination pair Determine routes using a least cost algorithm Route fixed, at least until a change in network topology 12-10

Flooding No network info required Packet sent by node to every neighbor Incoming packets retransmitted on every link except incoming link Eventually a number of copies will arrive at destination Each packet is uniquely numbered so duplicates can be discarded Nodes can remember packets already forwarded to keep network load in bounds Can include a hop count in packets 12-11

Properties of Flooding All possible routes are tried Very robust At least one packet will have taken minimum hop count route All nodes are visited Useful to distribute information (e.g. routing) 12-12

Random Routing Node selects one outgoing path for retransmission of incoming packet Selection can be random or round robin Can select outgoing path based on probability calculation No network info needed Route is typically not least cost nor minimum hop 12-13

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 information about network Disadvantages: decisions more complex tradeoff between quality of network information and overhead reacting too quickly can cause oscillation reacting too slowly means information may be irrelevant

Adaptive Routing Advantages improved performance aid in congestion control *These benefits depend on the soundness of the design and nature of the load.

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

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 bi-directional 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

Dijkstra s Algorithm finds shortest paths from given source nodes to all other nodes develop paths in order of increasing path length algorithm runs in stages each time adding node with next shortest path algorithm terminates when all nodes have been added to T

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 find neighboring node not in T with least-cost path from s Step 2 [Get Next Node] 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 if 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

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} 2 1 2 3 1-4-5 3 1 1 4 2 1-4 5 4 1-4-5 6 5 {1, 2, 3, 4, 5} 2 1 2 3 1-4-5 3 1 1 4 2 1-4 5 4 1-4-5 6 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

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

Bellman-Ford Algorithm

Example of Bellman-Ford Algorithm

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 Bellman-Ford calculation for node n needs link cost to neighboring nodes plus total cost to each neighbor 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

ARPANET Routing Strategies 1st Generation distributed adaptive using estimated delay queue length used as estimate of delay version of Bellman-Ford algorithm node exchanges delay vector with neighbors update routing table based on incoming information doesn't consider line speed, just queue length and responds slowly to congestion

12-29

ARPANET Routing Strategies 2nd Generation distributed adaptive using delay criterion using timestamps of arrival, departure & ACK times re-computes average delays every 10 seconds any changes are flooded to all other nodes re-computes routing using Dijkstra s algorithm good under light and medium loads under heavy loads, little correlation between reported delays and those experienced

Cost in Link State Routing Winter 2013 SEG3155/CEG3185 12-31

Link State Packet Winter 2013 SEG3155/CEG3185 12-32

Flooding of A s LSP Winter 2013 SEG3155/CEG3185 12-33

Link State Database Winter 2013 SEG3155/CEG3185 12-34

Dijkstra Algorithm Winter 2013 SEG3155/CEG3185 12-35

Cost in Dijkstra Algorithm Winter 2013 SEG3155/CEG3185 12-36

12-37

12-38

Shortest Path Calculation Winter 2013 SEG3155/CEG3185 12-39

Routing Table for Router A Winter 2013 SEG3155/CEG3185 12-40

Oscillation

ARPANET Routing Strategies 3rd Generation link cost calculation changed damp routing oscillations reduce routing overhead measure average delay over last 10 seconds and transform into link utilization estimate normalize this based on current value and previous results set link cost as function of average utilization

ARPANET Delay Metrics

Evaluation dependent on processing time of algorithms amount of information required from other nodes if link costs depend on traffic, which depends on routes chosen, may have feedback instability implementation specific if link costs change, algorithms attempt to catch up both converge under static topology and costs both converge to same solution

Summary routing in packet-switched networks routing strategies fixed, flooding, random, adaptive ARPANET examples least-cost algorithms Dijkstra, Bellman-Ford