Network Routing.

Slides:



Advertisements
Similar presentations
Bellman-Ford algorithm
Advertisements

Traffic assignment.
Problem solving with graph search
Single Source Shortest Paths
4/12/2015© 2009 Raymond P. Jefferis IIILect Internet Protocol - Continued.
Outline  Recap Network components & basic mechanisms Routing Flow control  Continue Basic queueing analysis Construct routing table.
CSE 390B: Graph Algorithms Based on CSE 373 slides by Jessica Miller, Ruth Anderson 1.
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.
Shortest paths in edge-weighted digraph Krasin Georgiev Technical University of Sofia g.krasin at gmail com Assistant Professor.
Internet Engineering Czesław Smutnicki Discrete Mathematics – Graphs and Algorithms.
Michael Ghoorchian. Edsger W. Dijkstra ( ) Dutch Computer Scientist Received Turing Award for contribution to developing programming languages.
CS171 Introduction to Computer Science II Graphs Strike Back.
Graphs By JJ Shepherd. Introduction Graphs are simply trees with looser restrictions – You can have cycles Historically hard to deal with in computers.
Management Science 461 Lecture 2b – Shortest Paths September 16, 2008.
D IJKSTRA ' S ALGORITHM By Laksman Veeravagu and Luis Barrera Edited by: Manuela Caicedo, Francisco Morales, Rafael Feliciano, and Carlos Jimenez.
CSC 331: Algorithm Analysis Paths in Graphs. The DFS algorithm we gave is recursive. DFS generates a search tree showing paths from one vertex to all.
1.End to end arguments in system design (1981) 2.Tussles in cyberspace: Defining Tomorrow’s Internet (2005) Nick McKeown CS244 Lecture 3 Architecture and.
CSCI 3160 Design and Analysis of Algorithms Tutorial 2 Chengyu Lin.
A NALYZING AN O FFENDER ’ S J OURNEY TO C RIME U SING A C RIMINAL M OVEMENT M ODEL Presenters Andre Norton Karen Lancaster-Ellis.
Semester 10 Time sure flies.. PotW Solution One possible solution is to randomly search the grid: o At each point in your search, look at the (up to four)
Shortest Paths and Dijkstra's Algorithm CS 110: Data Structures and Algorithms First Semester,
Graph II MST, Shortest Path. Graph Terminology Node (vertex) Edge (arc) Directed graph, undirected graph Degree, in-degree, out-degree Subgraph Simple.
Routing Protocols and the IP Layer CS244A Review Session 2/01/08 Ben Nham Derived from slides by: Paul Tarjan Martin Casado Ari Greenberg.
GPS Navigation and Data Structures By Michael Cabassol and Augie Hill.
May 5, 2015Applied Discrete Mathematics Week 13: Boolean Algebra 1 Dijkstra’s Algorithm procedure Dijkstra(G: weighted connected simple graph with vertices.
Using Dijkstra’s Algorithm to Find a Shortest Path from a to z 1.
Chapter 9 – Graphs A graph G=(V,E) – vertices and edges
Dijkstras Algorithm Named after its discoverer, Dutch computer scientist Edsger Dijkstra, is an algorithm that solves the single-source shortest path problem.
WAN technologies and routing Packet switches and store and forward Hierarchical addresses, routing and routing tables Routing table computation Example.
CSC-305 Design and Analysis of AlgorithmsBS(CS) -6 Fall-2014CSC-305 Design and Analysis of AlgorithmsBS(CS) -6 Fall-2014 Design and Analysis of Algorithms.
D IJKSTRA ' S ALGORITHM. S INGLE -S OURCE S HORTEST P ATH P ROBLEM Single-Source Shortest Path Problem - The problem of finding shortest paths from a.
Kruskal’s and Dijkstra’s Algorithm.  Kruskal's algorithm is an algorithm in graph theory that finds a minimum spanning tree for a connected weighted.
Shortest Path Graph Theory Basics Anil Kishore.
Most of contents are provided by the website Graph Essentials TJTSD66: Advanced Topics in Social Media.
Michael Walker. From Maps to Graphs  Make Intersections Vertices  Make Roads Edges  Result is Weighted Directed Graph  Weights: Speed Limit Length.
Data Structures & Algorithms Shortest Paths Richard Newman based on book by R. Sedgewick and slides by S. Sahni.
Decision Maths 1 Shortest path algorithm Dijkstra’s Algorithm A V Ali :
Chapter 20: Graphs. Objectives In this chapter, you will: – Learn about graphs – Become familiar with the basic terminology of graph theory – Discover.
Dijkstra animation. Dijksta’s Algorithm (Shortest Path Between 2 Nodes) 2 Phases:initialization;iteration Initialization: 1. Included:(Boolean) 2. Distance:(Weight)
Solving problems by searching Uninformed search algorithms Discussion Class CS 171 Friday, October, 2nd (Please read lecture topic material before and.
Spanning Trees Dijkstra (Unit 10) SOL: DM.2 Classwork worksheet Homework (day 70) Worksheet Quiz next block.
CSE 373: Data Structures and Algorithms Lecture 21: Graphs V 1.
Routing algorithms. D(v): the cost from the source node to destination that has currently the least cost. p(v): previous node along current least.
By Laksman Veeravagu and Luis Barrera
Shortest Path Problems
Shortest Path from G to C Using Dijkstra’s Algorithm
Some applications of graph theory
CS 457 – Lecture 12 Routing Spring 2012.
Shortest Path Problems
I206: Lecture 15: Graphs Marti Hearst Spring 2012.
Graph Algorithm.
Graphs Chapter 11 Objectives Upon completion you will be able to:
A* Path Finding Ref: A-star tutorial.
CSE 373: Data Structures and Algorithms
Shortest Path Problems
Shortest Path Algorithms
Case study: Strava + Waze
Directed Graph Algorithms
Advanced Computer Networks
CSE 373: Data Structures and Algorithms
CSE 373: Data Structures and Algorithms
Shortest Path Algorithm for Weighted Non-negative Undirected Graphs
CE 221 Data Structures and Algorithms
CSE 373 Data Structures and Algorithms
Dijkstra's Shortest Path Algorithm
CE 221 Data Structures and Algorithms
COMPUTER NETWORKS CS610 Lecture-16 Hammad Khalid Khan.
Graphs: Shortest path and mst
Graph Algorithm.
OSPF Protocol.
Presentation transcript:

Network Routing

Network Routing In order to quickly transfer data between two computers on a network (LAN or WAN) a path must be taken This involves a packet of information jumping from one computer to the next until it reaches it’s destination It is very beneficial for efficiency and speed to have the route (and essentially the path of computers) computed ahead of time.

Network Routing Think of going on a trip Florida You would probably want your path to be thought out before you left Finding the shortest distance when traveling from city to city is a very similar task to network routing. Similar algorithms are employed in each case.

Network Routing Dijkstra’s Algorithm is one of these algorithms It is considered a greedy algorithm because it takes the shortest distance after each computer/city/node This algorithm runs in polynomial time That is within a reasonable time to compute using current technology Mathematically it is of the order Θ|V|log|E| Very fast

Walk through – Dijkstra’s Algorithm function Dijkstra(Graph, source): for each vertex v in Graph: // Initializations dist[v] := infinity // Unknown distance function from source to v previous[v] := undefined dist[source] := 0 // Distance from source to source Q := copy(Graph) // All nodes in the graph are unoptimized - thus are in Q while Q is not empty: // The main loop u := extract_min(Q) // Remove and return best vertex from nodes in two given // we would use a path finding algorithm on the new graph, //such as depth-first search. for each neighbor v of u: // where v has not yet been considered alt = dist[u] + length(u, v) if alt < dist[v] // Relax (u,v) dist[v] := alt previous[v] := u return previous[]

Dijkstra’s Applet