E&CE 418: Tutorial-10 Instructor: Prof. Xuemin (Sherman) Shen

Slides:



Advertisements
Similar presentations
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.
Advertisements

E&CE 418: Tutorial-4 Instructor: Prof. Xuemin (Sherman) Shen
DIJKSTRA’s Algorithm. Definition fwd search Find the shortest paths from a given SOURCE node to ALL other nodes, by developing the paths in order of increasing.
Data and Computer Communications Ninth Edition by William Stallings Chapter 12 – Routing in Switched Data Networks Data and Computer Communications, Ninth.
Chapter 5 Routing Algorithm in Networks. How are message routed from origin to destination? 1) Circuit-Switching → telephone net. Dedicated bandwidth.
LSRP: Local Stabilization in Shortest Path Routing Hongwei Zhang and Anish Arora Presented by Aviv Zohar.
1 Dijkstra's Shortest Path Algorithm Find shortest path from s to t. s 3 t
1 Dijkstra's Shortest Path Algorithm Find shortest path from s to t. s 3 t
DAST 2005 Tirgul 12 (and more) sample questions. DAST 2005 Q.We’ve seen that solving the shortest paths problem requires O(VE) time using the Belman-Ford.
1 Routing Algorithms. 2 Outline zBellaman-Ford Algorithm zDijkstra Algorithm.
On Generating All Shortest Paths and Minimal Cut-sets By: Beth Hayden, Daniel MacDonald July 20, 2005 Advisor: Dr. Endre Boros, RUTCOR.
Network Flow Models Chapter 7.
E&CE 418: Tutorial-6 Instructor: Prof. Xuemin (Sherman) Shen
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 21 Introduction to Computer Networks.
Assignment 4. (Due on Dec 2. 2:30 p.m.) This time, Prof. Yao and I can explain the questions, but we will NOT tell you how to solve the problems. Question.
Introduction to Management Science
CECS 474 Computer Network Interoperability WAN Technologies & Routing
Time-Constrained Flooding A.Mehta and E. Wagner. Time-Constrained Flooding: Problem Definition ●Devise an algorithm that provides a subgraph containing.
7-1 Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Network Flow Models Chapter 7.
Shortest Route, Minimal Spanning Tree and Maximal Flow Models
Using Dijkstra’s Algorithm to Find a Shortest Path from a to z 1.
Shortest Path Algorithm This is called “Dijkstra’s Algorithm” …pronounced “Dirk-stra”
1 TCOM 5143 Telecommunications Analysis, Planning and Design Lecture 6 Network Design and Graph Theory: part 2 Shortest Path trees and Tours.
Review: routing algorithms. –Choose the appropriate paths. –Routing algorithms Flooding Shortest path routing (example). –Dijkstra algorithm. –Bellman-Ford.
Network and Communications Ju Wang Chapter 5 Routing Algorithm Adopted from Choi’s notes Virginia Commonwealth University.
Maximum Lifetime Routing in Wireless Sensor Networks by Collins Adetu Nicole Powell Course: EEL 5784 Instructor: Dr. Ming Yu.
1 Routing Table  The seven fields Mask: for finding (sub)network address of the destination l Host-specific routing: (/32) l Default routing:
CIS 725 Network Layer. This layer provides communication between any two nodes Uniform addressing scheme independent of the network technology Network.
CS 453 Computer Networks Lecture 18 Introduction to Layer 3 Network Layer.
Stevenson and Ozgur First Edition Introduction to Management Science with Spreadsheets McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies,
Network Layer4-1 Distance Vector: link cost changes Link cost changes: r node detects local link cost change r updates distance table (line 15) r if cost.
Minimal Spanning Tree Problems in What is a minimal spanning tree An MST is a tree (set of edges) that connects all nodes in a graph, using.
Networking and internetworking devices. Repeater.
Routing Networks and Protocols Prepared by: TGK First Prepared on: Last Modified on: Quality checked by: Copyright 2009 Asia Pacific Institute of Information.
A* Path Finding Ref: A-star tutorial.
A Framework for Reliable Routing in Mobile Ad Hoc Networks Zhenqiang Ye Srikanth V. Krishnamurthy Satish K. Tripathi.
Ch 22. Routing Direct and Indirect Delivery.
Decision Maths 1 Shortest path algorithm Dijkstra’s Algorithm A V Ali :
18-WAN Technologies and Dynamic routing Dr. John P. Abraham Professor UTPA.
Network Layer (2). Review Physical layer: move bits between physically connected stations Data link layer: move frames between physically connected stations.
Dijkstra animation. Dijksta’s Algorithm (Shortest Path Between 2 Nodes) 2 Phases:initialization;iteration Initialization: 1. Included:(Boolean) 2. Distance:(Weight)
Distance Vector Routing
Distance Vector and Link State Routing Pragyaditya Das.
6/12/2016© 2010 Raymond P. Jefferis IIILect The Network Layer.
E&CE 358: Tutorial-4 Instructor: Prof. Xuemin (Sherman) Shen TA: Miao Wang 1.
ECE 544 Protocol Design Project 2016 Michael Sherman Murtadha Aldeer Leonard T. Park.
Graphs – Part III CS 367 – Introduction to Data Structures.
1 Most important algorithms! Routing Algorithms Properties Shortest Path Routing Flooding Distance Vector Routing Link State routing Hierarchical routing.
(How the routers’ tables are filled in)
Shortest Path from G to C Using Dijkstra’s Algorithm
Dijkstra’s shortest path Algorithm
Network Flow Problems – Shortest Path Problem
COMP 3270 Computer Networks
TODAY’S TENTATIVE AGENDA
Network Layer.
THE NETWORK LAYER.
18-WAN Technologies and Dynamic routing
(How the routers’ tables are filled in)
Disjoint Path Routing Algorithms
MATS Quantitative Methods Dr Huw Owens
Routing Algorithms Problems
Communication Networks
Advanced Computer Networks
Dijkstra’s Algorithm for Shortest Paths
and 6.855J Dijkstra’s Algorithm
Communication Networks
Implementation of Dijkstra’s Algorithm
Shortest Path Solutions
Dijkstra Algorithm examples
OSPF Protocol.
Presentation transcript:

E&CE 418: Tutorial-10 Instructor: Prof. Xuemin (Sherman) Shen TA: Ning Zhang Email: n35zhang@uwaterloo.ca Office Hours: Tue. 1:00pm - 3:00pm or by appointment

Problem 1

Problem 1

Problem 2 The number shown in the following figure is the probability of the link failing during the lifetime of a virtual circuit from node A to node B. It is assumed that links fail independently of each other. (a) Find the most reliable path from A to B, i.e., the path for which the probability that all links stay intact during the virtual circuit’s lifetime is maximal. (b) Find the second most reliable path from A to B which does not share any link belonging to the path found in (a).

The Bellman-Ford algorithm: Label each node i with (di, j) where di is the distance from node i to the destination node through the neighboring node j. Initialization: label node i with (di0,.) where Shortest distance labeling of all nodes: for each successive run h > 0, determine j which minimizes dih+1=d(i,j)+djh, and update label at each node i with (dih+1,j). Repeat step 3 until no change of any di occurs.

(b) Find the second most reliable path from A to B which does not share any link belonging to the path found in (a). The second most reliable path from A to B that does not share any link belonging to the shortest path can be found by: first remove all links passing by the shortest path from the diagram, then find the shortest path from the residue diagram. The residue diagram is as follows:

From the table, we can the second shortest path is A → 5 → 3 → 2 → B.

Problem 4

Problem 4

Problem 4

Problem 4

Problem 3

Thanks !