Routing Basics What’s going on the back … Faisal Karim Shaikh DEWSNet Group Dependable Embedded Wired/Wireless Networks.

Slides:



Advertisements
Similar presentations
Ch. 12 Routing in Switched Networks
Advertisements

1 Routing Protocols I. 2 Routing Recall: There are two parts to routing IP packets: 1. How to pass a packet from an input interface to the output interface.
Interior Routing Protocols Chapter 11: Routing in IP
Ch. 12 Routing in Switched Networks Routing in Packet Switched Networks Routing Algorithm Requirements –Correctness –Simplicity –Robustness--the.
Data and Computer Communications Eighth Edition by William Stallings Lecture slides by Lawrie Brown Chapter 12 – Routing in Switched Networks.
Data and Computer Communications
Network Layer – Routing 2 Dr. Sanjay P. Ahuja, Ph.D. Fidelity National Financial Distinguished Professor of CIS School of Computing, UNF.
William Stallings Data and Computer Communications 7 th Edition Chapter 12 Routing.
Data and Computer Communications Ninth Edition by William Stallings Chapter 12 – Routing in Switched Data Networks Data and Computer Communications, Ninth.
What is “Routing”? Routing algorithm that part of the network layer responsible for deciding on which output line to transmit an incoming packet Adaptive.
What is “Routing”? Routing algorithm that part of the network layer responsible for deciding on which output line to transmit an incoming packet Adaptive.
Routing Strategies Fixed Routing
1 Routing Lesson 10 NETS2150/2850 School of Information Technologies.
EE 4272Spring, 2003 Chapter 10 Packet Switching Packet Switching Principles  Switching Techniques  Packet Size  Comparison of Circuit Switching & Packet.
Computer Networks The Data Link / Network Layer Functions: Routing
Data Communications Packet Switching.
Teknik Routing Pertemuan 20 Matakuliah: H0484/Jaringan Komputer Tahun: 2007.
Network Layer Design Isues Store-and-Forward Packet Switching Services Provided to the Transport Layer The service should be independent of the router.
Data Communication and Networks Lecture 7 Networks: Part 2 Routing Algorithms October 27, 2005.
Packet Switching EE3900 Data Communications and LANs Packet Switching Slide 1.
Routing Protocol Pertemuan 21 Matakuliah: H0484/Jaringan Komputer Tahun: 2007.
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 21 Introduction to Computer Networks.
EECC694 - Shaaban #1 lec #7 Spring The OSI Reference Model Network Layer.
The Internet: Packet Switching and Other Big Ideas Ian Foster.
William Stallings Data and Computer Communications 7th Edition (Selected slides used for lectures at Bina Nusantara University) Routing.
ROUTING ON THE INTERNET COSC Aug-15. Routing Protocols  routers receive and forward packets  make decisions based on knowledge of topology.
Data Communications & Computer Networks
Distributed Quality-of-Service Routing of Best Constrained Shortest Paths. Abdelhamid MELLOUK, Said HOCEINI, Farid BAGUENINE, Mustapha CHEURFA Computers.
Routing Algorithms (Ch5 of Computer Network by A. Tanenbaum)
SAvPS – úvod Genči 2009 (bsaed on Tanenbaum’s slides.
1 Pertemuan 20 Teknik Routing Matakuliah: H0174/Jaringan Komputer Tahun: 2006 Versi: 1/0.
Chapter 12 Routing in Switched Networks. Routing in Packet Switched Network  key design issue for (packet) switched networks  select route across network.
Computer Networks with Internet Technology William Stallings Chapter 11 Interior Routing Protocols.
Distance Vector Routing 박주호. Introduction.  Modern computer Network generally use Dynamic routing algorithms rather than The.
Packet-Switching Networks Routing in Packet Networks.
TCP Traffic and Congestion Control in ATM Networks
Network and Communications Ju Wang Chapter 5 Routing Algorithm Adopted from Choi’s notes Virginia Commonwealth University.
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.
EEC-484/584 Computer Networks Lecture 9 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
CIS Routing in IP. Introduction Routers forward IP datagrams from one router to another on path from source to destination Router must have idea.
Chi-Cheng Lin, Winona State University CS 313 Introduction to Computer Networking & Telecommunication Chapter 5 Network Layer.
Data and Computer Communications Ninth Edition by William Stallings Unit 12 – Routing in Switched Data Networks Data and Computer Communications, Ninth.
CSCI 465 D ata Communications and Networks Lecture 15 Martin van Bommel CSCI 465 Data Communications & Networks 1.
Data Communications and Networking Chapter 11 Routing in Switched Networks References: Book Chapters 12.1, 12.3 Data and Computer Communications, 8th edition.
Advance Computer Networks Lecture#08 Instructor: Engr. Muhammad Mateen Yaqoob.
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.
Routing Networks and Protocols Prepared by: TGK First Prepared on: Last Modified on: Quality checked by: Copyright 2009 Asia Pacific Institute of Information.
Stainov - DataComMET CS TC5353 THE NETWORK LAYER 5.2 ROUTING ALGORITHMS - adaptive Distance Vector Routing (Bellman-Ford, Ford-Fulkenson). It was used.
William Stallings Data and Computer Communications 7th Edition
Teknik Routing Pertemuan 10 Matakuliah: H0524/Jaringan Komputer Tahun: 2009.
Computer Networks with Internet Technology William Stallings Chapter 11 Interior Routing Protocols.
Shortest Path Algorithm
Spring 2000CS 4611 Routing Outline Algorithms Scalability.
Spring Routing: Part I Section 4.2 Outline Algorithms Scalability.
Distance Vector Routing
Data and Computer Communications Tenth Edition by William Stallings Data and Computer Communications, Tenth Edition by William Stallings, (c) Pearson Education.
6/12/2016© 2010 Raymond P. Jefferis IIILect The Network Layer.
ROUTING ON THE INTERNET COSC Jun-16. Routing Protocols  routers receive and forward packets  make decisions based on knowledge of topology.
William Stallings Data and Computer Communications
Network Layer COMPUTER NETWORKS Networking Standards (Network LAYER)
Dijkstra’s shortest path Algorithm
Network Layer.
Network Layer – Routing 1
Shortest Path Algorithm
Packet Switching Around 1970, research began on a new form of architecture for long distance communications: Packet Switching.
Data and Computer Communications
ECE453 – Introduction to Computer Networks
Shortest Path Algorithm
CSCI 465 Data Communications and Networks Lecture 16
Presentation transcript:

Routing Basics What’s going on the back … Faisal Karim Shaikh DEWSNet Group Dependable Embedded Wired/Wireless Networks

Local Area Networks 2  Main function of Network Layer is –???????  In most cases packet requires multiple hops to make journey.  The algorithms that chooses the routes is major area of Network layer design.

Local Area Networks 3 Properties for desirable Routing Algorithms  Correctness  Simplicity  Robustness  Stability  Fairness  Optimality

Local Area Networks 4 Performance Criteria  used for selection of route  simplest is “minimum hop”  can be generalized as “least cost”

Local Area Networks 5 Decision Time and Place  time  packet or virtual circuit basis  fixed or dynamically changing  place  distributed - made by each node  centralized  source

Local Area Networks 6 Network Information Source and Update Timing  routing decisions usually based on knowledge of network (not always)  distributed routing using local knowledge, info from adjacent nodes, info from all nodes on a potential routeusing local knowledge, info from adjacent nodes, info from all nodes on a potential route  central routing collect info from all nodescollect info from all nodes  issue of update timing  when is network info held by nodes updated  fixed - never updated  adaptive - regular updates

Local Area Networks 7 Major Classes  Nonadaptive Algorithms. Not based on measurement or estimate of current traffic and topology. The choice of route is computed in advance. called as Static Routing/Fixed Routing.  Adaptive Algorithms. Change routing decisions to reflect change in topology, and traffic as well. They differ in where they get their information, and what metric is used for optimization.

Local Area Networks 8  Nonadaptive Algorithms.  Direct delivery  Indirect delivery  Static routing  Default routing  Adaptive Algorithms  Distance vector routing  Link state routing

Local Area Networks 9 Shortest Path Routing  The idea is to build graph of subnet Where each node rep: router and each arc communication link.  There are many ways of measuring path length Number of hops. Geographical distance. Transmission delay. Mean queuing. Note: In general, the label on arcs could be computed as function of distance, average traffic, measured delay and other factors.

Local Area Networks 10 A D H F CB E G Dijkstra Algorithm

Local Area Networks 11 A D ( ,-) F ( ,-) C( ,-)B(2,A) E ( ,-) G (6,A) H ( ,-)

Local Area Networks 12 A D ( ,-) F ( ,-) C(9,B)B(2,A) E (4,B) G (6,A) H ( ,-)

Local Area Networks 13 A D ( ,-) F (6,E) C(9,B)B(2,A) E (4,B) G (5,E) H ( ,-)

Local Area Networks 14 A D ( ,-) F (6,E) C(9,B)B(2,A) E (4,B) G (5,E) H (9,G)

Local Area Networks 15 A D ( ,-) F (6,E) C(9,B)B(2,A) E (4,B) G (5,E) H (8,F)

Local Area Networks 16 Bellman-Ford Algorithm ???

Local Area Networks 17 Dijkstra’s Algorithm Definitions  Find shortest paths from given source node to all other nodes, by developing paths in order of increasing path length  N =set of nodes in the network  s =source node  T =set of nodes so far incorporated by the algorithm  w(i, j) =link cost from node i to node j  w(i, i) = 0  w(i, j) =  if the two nodes are not directly connected  w(i, j)  0 if the two nodes are directly connected  L(n) = cost of least-cost path from node s to node n currently known  At termination, L(n) is cost of least-cost path from s to n

Local Area Networks 18 Dijkstra’s Algorithm Method  Step 1 [Initialization]  T = {s} Set of nodes so far incorporated consists of only source node  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  If latter term is minimum, path from s to n is path from s to x concatenated with edge from x to n  Algorithm terminates when all nodes have been added to T

Local Area Networks 19 Dijkstra’s Algorithm Notes  At termination, value L(x) associated with each node x is cost (length) of least-cost path from s to x.  In addition, T defines least-cost path from s to each other node  One iteration of steps 2 and 3 adds one new node to T  Defines least cost path from s tothat node

Local Area Networks 20 Example of Dijkstra’s Algorithm

Local Area Networks 21 Results of Example Dijkstra’s Algorithm Ite rat ion TL(2)PathL(3)PathL(4)PathL(5)PathL(6 ) Path 1{1}21– –4  -  - 2{1,4}21– –421-4–5  - 3{1, 2, 4}21– –421-4–5  - 4{1, 2, 4, 5} 21– –311–421-4– –6 5{1, 2, 3, 4, 5} 21– –311–421-4– –6 6{1, 2, 3, 4, 5, 6} –

Local Area Networks 22 Bellman-Ford Algorithm Definitions  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  s =source node  w(i, j) = link cost from node i to node j  w(i, i) = 0  w(i, j) =  if the two nodes are not directly connected  w(i, j)  0 if the two nodes are directly connected  h =maximum number of links in path at current stage of the algorithm  L h (n) = cost of least-cost path from s to n under constraint of no more than h links

Local Area Networks 23 Bellman-Ford Algorithm Method  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 achieves minimum  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

Local Area Networks 24 Bellman-Ford Algorithm Notes  For each iteration of step 2 with h=K and for each destination node n, algorithm compares paths from s to n of length K=1 with path from previous iteration  If previous path shorter it is retained  Otherwise new path is defined

Local Area Networks 25 Example of Bellman-Ford Algorithm

Local Area Networks 26 Results of Bellman-Ford Example hL h (2)PathL h (3)PathL h (4)PathL h (5)PathL h (6)Path 0  -  -  -  -   - 

Local Area Networks 27 Comparison  Results from two algorithms agree  Information gathered  Bellman-Ford Calculation for node n involves knowledge of link cost to all neighboring nodes plus total cost to each neighbor from sCalculation for node n involves knowledge of link cost to all neighboring nodes plus total cost to each neighbor from s Each node can maintain set of costs and paths for every other nodeEach node can maintain set of costs and paths for every other node Can exchange information with direct neighborsCan exchange information with direct neighbors Can update costs and paths based on information from neighbors and knowledge of link costsCan update costs and paths based on information from neighbors and knowledge of link costs  Dijkstra Each node needs complete topologyEach node needs complete topology Must know link costs of all links in networkMust know link costs of all links in network Must exchange information with all other nodesMust exchange information with all other nodes

Local Area Networks 28 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

Local Area Networks 29 Flooding Example

Local Area Networks 30 Properties of Flooding  all possible routes are tried  very robust  at least one packet will have taken minimum hop count route  can be used to set up virtual circuit  all nodes are visited  useful to distribute information (eg. routing)  disadvantage is high traffic load generated

Local Area Networks 31 Flow Based Routing  The previous algorithms do not consider load. A D H F CB E G

Local Area Networks 32 Flow Based Routing (cont…)  In some networks the mean data flow b/w pair of nodes is stable and predictable.  Under these conditions, where average traffic b/w i and j is known in advance, and constant in time, it is possible to analyze flows.

Local Area Networks 33 Flow Based Routing (cont…)  Basic idea behind analysis is For a given line ifFor a given line if –Capacity –And average flow are known –It is possible to compute mean packet delay on that line by queuing theory.  The routing problem than reduces to finding the routing algorithm that produces minimum average delay for subnet.

Local Area Networks 34 Flow Based Routing (cont…)  Certain info must be known in advance. Subnet topology.Subnet topology. Traffic matrix F i,jTraffic matrix F i,j Line Capacity Matrix C i,jLine Capacity Matrix C i,j Tentative Routing algorithm must be chosen.Tentative Routing algorithm must be chosen.

Local Area Networks 35 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

Local Area Networks 36 Dynamic Routing Algorithms  Distance Vector Routing  Link State Routing

Local Area Networks 37 Distance Vector Routing  Also called as Distributed Bellman-Ford Algorithm.Distributed Bellman-Ford Algorithm. Ford-Fulkerson Algorithm.Ford-Fulkerson Algorithm.  It operates by maintaining a table(vector),  Giving best known distance to destination.  Which line to use to get there.  These vectors are updated by exchanging information with neighbors.

Local Area Networks 38  Each router maintain the routing table indexed by, and containing one entry for each router in subnet.  Entry contain two parts:  The preferred outgoing line.  The estimate of metric to that destination.  The router is assumed to know the “distance” to each of its neighbors.  Example from Wikipedia …

Local Area Networks 39 Count-to-Infinity problem  Distance Vector routing works in theory.  It has serious drawbacks.  It reacts rapidly to good news.  But leisurely to bad news.  Example ???

Local Area Networks 40 Link State Routing ????