Network and Communications Ju Wang Chapter 5 Routing Algorithm Adopted from Choi’s notes Virginia Commonwealth University.

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.
Ch. 12 Routing in Switched Networks Routing in Packet Switched Networks Routing Algorithm Requirements –Correctness –Simplicity –Robustness--the.
4/12/2015© 2009 Raymond P. Jefferis IIILect Internet Protocol - Continued.
Introduction 1 Lecture 22 Network Layer (Broadcast and Multicast) slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer Science.
1 The Network Layer Chapter 5. 2 Network Layer Design Isues Store-and-Forward Packet Switching Services Provided to the Transport Layer Implementation.
UNIT-IV Computer Network Network Layer. Network Layer Prepared by - ROHIT KOSHTA In the seven-layer OSI model of computer networking, the network layer.
Networks: Routing1 Network Layer Routing. Networks: Routing2 Network Layer Concerned with getting packets from source to destination Network layer must.
EEC-484/584 Computer Networks Lecture 9 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 22 Introduction to Computer Networks.
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 23 Introduction to Computer Networks.
Summary The Problem The Dijkstra’s Shortest Path Algorithm
Networks: Routing1 Network Layer Routing. Networks: Routing2 Network Layer Concerned with getting packets from source to destination. The network layer.
Network Layer Design Isues Store-and-Forward Packet Switching Services Provided to the Transport Layer The service should be independent of the router.
Chapter 10 Introduction to Wide Area Networks Data Communications and Computer Networks: A Business User’s Approach.
EEC-484/584 Computer Networks Lecture 9 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
EEC-484/584 Computer Networks Lecture 9 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 21 Introduction to Computer Networks.
EEC-484/584 Computer Networks Lecture 9 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
EECC694 - Shaaban #1 lec #7 Spring The OSI Reference Model Network Layer.
Networks: Routing1 Network Layer Routing. Networks: Routing2 Network Layer Concerned with getting packets from source to destination. The network layer.
Network Layer Goals: understand principles behind network layer services: –routing (path selection) –dealing with scale –how a router works –advanced topics:
Routing Algorithms (Ch5 of Computer Network by A. Tanenbaum)
SAvPS – úvod Genči 2009 (bsaed on Tanenbaum’s slides.
Review: routing algorithms. –Choose the appropriate paths. –Routing algorithms Flooding Shortest path routing (example). –Dijkstra algorithm. –Bellman-Ford.
Network Layer introduction 4.2 virtual circuit and datagram networks 4.3 what’s inside a router 4.4 IP: Internet Protocol  datagram format  IPv4.
WAN technologies and routing Packet switches and store and forward Hierarchical addresses, routing and routing tables Routing table computation Example.
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.
Chi-Cheng Lin, Winona State University CS 313 Introduction to Computer Networking & Telecommunication Chapter 5 Network Layer.
CIS 725 Network Layer. This layer provides communication between any two nodes Uniform addressing scheme independent of the network technology Network.
The Network Layer & Routing
The Network Layer.
Data Communications and Networking Chapter 11 Routing in Switched Networks References: Book Chapters 12.1, 12.3 Data and Computer Communications, 8th edition.
Transport Layer3-1 Network Layer Every man dies. Not every man really lives.
Routing Algorithms and IP Addressing Routing Algorithms must be ▪ Correctness ▪ Simplicity ▪ Robustness ▪ Stability ▪ Fairness ▪ Optimality.
Network Layer (2). Review Physical layer: move bits between physically connected stations Data link layer: move frames between physically connected stations.
CSE 421 Computer Networks. Network Layer 4-2 Chapter 4: Network Layer r 4. 1 Introduction r 4.2 Virtual circuit and datagram networks r 4.3 What’s inside.
Chapter 5 Network Layer.
Assignment 1  Chapter 1:  Question 11  Question 13  Question 14  Question 33  Question 34  Chapter 2:  Question 6  Question 39  Chapter 3: 
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011 The Network Layer Chapter
The Network Layer UNIT-4 snistforum.com. Network Layer Design Issues Store-and-Forward Packet Switching Services Provided to the Transport Layer Implementation.
The Network Layer Chapter 5 Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education- Prentice Hall, 2011.
Network Layer Routing Networks: Routing.
Network Layer COMPUTER NETWORKS Networking Standards (Network LAYER)
Network Layer.
Routing Jennifer Rexford.
Network Layer.
Network Layer – Routing 1
EEC-484/584 Computer Networks
THE NETWORK LAYER.
Chapter 5 The Network Layer.
Intra-Domain Routing Jacob Strauss September 14, 2006.
Network Layer Functions
EEC-484/584 Computer Networks
Kuliah 5 ROUTING.
EEC-484/584 Computer Networks
Link-State Routing Protocols
EEC-484/584 Computer Networks
ECE453 – Introduction to Computer Networks
The Network Layer Network Layer Design Issues:
PRESENTATION COMPUTER NETWORKS
EEC-484/584 Computer Networks
Network Layer Routing Networks: Routing.
Delivery, Forwarding, and Routing
Network Layer (contd.) Routing
COMPUTER NETWORKS CS610 Lecture-16 Hammad Khalid Khan.
Computer network technology
Network Layer.
Network Layer Routing.
Presentation transcript:

Network and Communications Ju Wang Chapter 5 Routing Algorithm Adopted from Choi’s notes Virginia Commonwealth University

Design Issues Store-and Forward packet Switching Services Provided to the Transport layer Implementation of Connectionless Service Implementation of Connection oriented Service Comparison of Virtual Circuit and Datagram Subnet Store and Forward Packet Switching

Design Issues Services Provided to the Transport Layer Goals Independent on the router technology Router information shielding(number, type and topology) Global and uniform network address

Datagram Switching

Implementation of Connection Oriented Service Virtual circuit subnet Every packet carry virtual circuit id and follows same route Label switching (virtual circuit)

Design Issues Comparison of Virtual Circuits and Datagram subnet

Routing Algorithms Routing algorithm is desirable if… Correctness, simplicity, robustness, stability,fairness, optimality NL Goal: Routing packets from the source to destination Algorithm and data structure ? Decision per packets Why? Best route What about VC? Session routing

Correctness? Simplicity Stability Need to converge to equilibrium Fairness and optimality? Contradictory goals Robustness To topology and traffic change What to optimize? Mean packet delay? Network throughput? Minimize the number of hop

Routing Algorithms Principle of optimality If J is on the optimal path from I to K, then the optimal path from J to K also falls along the same route Proof: So what? Sink tree No cycles guarantee the bounded-hop delivery in real life?

Routing Algorithms Shortest path Routing

Routing Algorithms Flooding Send packet to every outgoing line except the one it arrives – duplicated redundant packet - hop count

Routing Algorithms Distance Vector Routing (Bellman Ford) Problem? Table giving the best known distance to each destination and line to use

Count to Infinity problem

Routing Algorithms Link State Routing Each router must do the following: 1.Discover its neighbors, learn their network address. 2.Measure the delay or cost to each of its neighbors. 3.Construct a packet telling all it has just learned. 4.Send this packet to all other routers. 5.Compute the shortest path to every other router Computing the New Route using Dijkstra

Building Link State Packets

Routing Algorithms Hierarchical Routing Save space! At the cost of path length (1A to 5C)

Routing Algorithms Broadcasting, Multicasting Spanning tree Given –Graph G = (V,E) –Edge weights w: w(e) is weight for edge e. Find a spanning tree T which has minimum weight, i.e., minimum spanning tree Recall, a spanning tree is a subgraph that is a tree that includes all the nodes.

Examples Min Spanning Tree = 37 Spanning Tree = 42

Kruskal’s Algorithm: Basic Idea Start with a collection of subtrees Actually, each node is a subtree Find the lightest edge joining two subtrees Keep doing this until there is a single subtree

Kruskal’s Algorithm: Basic Idea

Prim’s Algorithm: Basic Idea Start with a single subtree of ONE node Grow this subtree by adding the lightest edge coming out of it. Keep doing this until the subtree is a spanning tree.

Prim’s Algorithm: Basic Idea