Chi-Cheng Lin, Winona State University CS 313 Introduction to Computer Networking & Telecommunication Chapter 5 Network Layer.

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.
Network Layer – Routing 2 Dr. Sanjay P. Ahuja, Ph.D. Fidelity National Financial Distinguished Professor of CIS School of Computing, UNF.
COS 461 Fall 1997 Routing COS 461 Fall 1997 Typical Structure.
1 The Network Layer Chapter 5. 2 Network Layer Design Isues Store-and-Forward Packet Switching Services Provided to the Transport Layer Implementation.
Routing Basics What’s going on the back … Faisal Karim Shaikh DEWSNet Group Dependable Embedded Wired/Wireless Networks.
What is “Routing”? Routing algorithm that part of the network layer responsible for deciding on which output line to transmit an incoming packet Adaptive.
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.
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.
Network Layer Design Isues Store-and-Forward Packet Switching Services Provided to the Transport Layer Implementation of Connectionless Service Implementation.
Extending Networks. Three Levels of Extension Physical Layer –Repeaters Link Layer –Bridges –Switches Network –Routers: “Connecting networks”
CS335 Networking & Network Administration Tuesday, April 20, 2010.
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.
Computer Networks Layering and Routing Dina Katabi
Data Communications & Computer Networks
CS 453 Computer Networks Lecture 24 IP Routing. See…
Routing Algorithms (Ch5 of Computer Network by A. Tanenbaum)
SAvPS – úvod Genči 2009 (bsaed on Tanenbaum’s slides.
Packet-Switching Networks Routing in Packet Networks.
Chi-Cheng Lin, Winona State University CS412 Introduction to Computer Networking & Telecommunication Chapter 5 Network Layer.
Leon-Garcia & Widjaja: Communication Networks Copyright ©2000 The McGraw Hill Companies CS490 Chapter 7b, Leon-Garcia Packet Switching 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.
CS 350 Chapter-9,10. Implementation of Connectionless Service Routing within a datagram network ISP’s equipment A’s table (initially) A’s table (later)
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.
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.
THE NETWORK LAYER.
Stainov - DataComMET CS TC5353 THE NETWORK LAYER 5.2 ROUTING ALGORITHMS - adaptive Distance Vector Routing (Bellman-Ford, Ford-Fulkenson). It was used.
Routing Algorithms and IP Addressing Routing Algorithms must be ▪ Correctness ▪ Simplicity ▪ Robustness ▪ Stability ▪ Fairness ▪ Optimality.
Network Layer Chapter 5 CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 Design Issues Routing Algorithms Congestion.
Distance Vector Routing
6/12/2016© 2010 Raymond P. Jefferis IIILect The Network Layer.
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.
William Stallings Data and Computer Communications
Network Layer COMPUTER NETWORKS Networking Standards (Network LAYER)
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.
Kuliah 5 ROUTING.
EEC-484/584 Computer Networks
ECE453 – Introduction to Computer Networks
The Network Layer Network Layer Design Issues:
EEC-484/584 Computer Networks
Network Layer Routing Networks: Routing.
Delivery, Forwarding, and Routing
Computer network technology
Data Communication: Routing algorithms
Network Layer Routing.
Presentation transcript:

Chi-Cheng Lin, Winona State University CS 313 Introduction to Computer Networking & Telecommunication Chapter 5 Network Layer

2 Topics l Design Issues l Routing Algorithms l Congestion Control l Internetworking

Network Layer Design Issues Concern: How to get packets from source to destination Issues Store-and-forward packet switching Services provided to transport layer Implementation of connectionless service Implementation of connection-oriented service Comparison of virtual-circuit and datagram networks 3

4 Store-and-Forward Packet Switching l The environment of the network layer protocols ISP’s equipment

5 Services Provided to Transport Layer l Designing goals  Independent of subnet technology  Transport layer shielded from number, type, and topology of subnets  Uniform network address numbering  Even across LANs and WANs l Two Types of Services  Connectionless, e.g., IP  Connection-oriented, e.g., ATM

6 Implementation of Connectionless Service l Routing within a diagram subnet ISP’s equipment A’s table (initially) A’s table (later) C’s Table E’s Table

7 Implementation of Connection-Oriented Service l Routing within a virtual-circuit subnet. ISP’s equipment A’s table C’s Table E’s Table

8 Implementation of Connection-Oriented Service l Routing within a virtual-circuit subnet.

9 Comparison of Virtual-Circuit and Datagram Subnets

10 Routing Algorithms l Network layer software l Deciding which output line an incoming packet should be transmitted to  Datagram: made for each packet  VC: made for new VC setup

11 Routing Algorithms l Desirable Properties  Correctness  Simplicity  Robustness  Stability  Fairness  Optimality

12 Routing Algorithms - Optimality l What to optimize?  Minimizing mean packet delay  Maximizing total network throughput  Problem  The above two are in conflicts (see next slide) l Compromise  Minimizing number of hops a packet must take from source to destination

Fairness vs. Efficiency Network with a conflict between fairness and efficiency.

14 Classes of Routing Algorithm l Two major classes  Non-adaptive  Adaptive

15 Two Major Classes of Routing Algorithm l Adaptive  Algorithms differ in  where to get information, e.g.,  Locally  From adjacent routers  From all routers  when to change routes, e.g.,  Every T sec  When the load changes  When the topology changes  what metric used for optimization, e.g.,  Distance  Number of hops  Estimated transit time

16 Routing Algorithms to be Studied l Static (i.e., nonadaptive) routing  Shortest path routing  Flooding l Dynamic (i.e., adaptive) routing  Distance vector routing  Link state routing

17 Optimality Principle l If router J is on the optimal path from router I to router K, then the optimal path from J to K also falls along the same route. l Proof? I K J L

18 Sink Tree l Direct consequence of optimality principle l Network graph  Node/vertice: router  Edge: link l The set of optimal routes from all sources to a given destination form a tree rooted at the destination l Might not be unique l Goal of routing algorithms  Discover and use the sink tree for all routers

19 Sink Tree l Example  Distance metric: number of hops NetworkSink tree

20 Shortest Path Algorithm l Given a pair of routers, find the shortest path between them l Network graph  Node/vertice: router  Edge: link  Labels of edges  Function of factors  Weighting function changed for different criteria

21 Dijkstra's Algorithm l Each node labeled with  (distance from source, best known path)  Initially  distance: infinity  best known path: unknown  Label might change to reflect better paths l Node is either tentative or permanent  Initially tentative  As a path from source to that node discovered, label becomes permanent and never gets changed

22 First six steps to compute shortest path from A to D

23 Dijkstra's Algorithm l How do we find the path? l The algorithm given in the book works from destination to source  Why?

24 Flooding l Every incoming packet is sent out on every outgoing line except for the input line l Problem  Large number of packets are generated l Solutions  Hop counter  Avoiding duplicates  Selective flooding

25 Flooding - Conclusion l Optimal  Shortest path is always chosen  No other algorithm can produce a shorter delay l Robust l Easy to set up  Only need to know its neighbors l Not practical in most applications l Useful in some applications  Military application: robustness  Wireless networks  Metric of other routing algorithms

26 Distance Vector Routing l Table in each router  Giving  Best known distance to each destination  Which line to use to get there  Indexed by each router  Each entry contains two parts  Preferred outgoing line to use for that destination  Estimate of "distance" to go there  Best known distance to each destination  Updated by exchanging information with neighbors

27 Distance Vector Routing l Router  Knows "distance" to each neighbor  Sends list to each neighbor every T msec  Receives lists from neighbors every T msec  If neighbor X knows  Distance from X to I is X I, and  Distance from the router to X is m then delay from router to I via X is (X I + m)  Performs calculation for each neighbor to find the best  Old table not used in calculation

28 A network. Input from A, I, H, K, and the new routing table for J.

29 Distance Vector Routing l Count-to-Infinity Problem  Good news spread fast, bad news leisurely  Infinity has to be defined

30 Link State Routing l A router 1.Discovers its neighbors and learn their network addresses - HELLO 2.Measures the delay or cost to each neighbor - ECHO 3.Constructs a packet telling all it has just learned – link state packet 4.Sends this packet to all other routers – flooding w/ duplicate avoidance 5.Computes the shortest path to every other router – Dijkstra’s algorithm

31 Link State Routing l In effect  Complete topology and all delays are experimentally measured and distributed to every router  Construct network topology from link state packets  Dijkstra's algorithm is applied to find the shortest path

Building Link State Packets (a) A network. (b) The link state packets for this network.

33 Hierarchical Routing l Problem  Network size grows  Routing tables grow l Solution  Hierarchical routing l Idea  Routers are divided into "regions"  Router knows detail about routing within its region  Router knows nothing about internal structure of other region

34 Path length from 1A to 5C?