EE 4272Spring, 2003 Chapter 10 Packet Switching Packet Switching Principles  Switching Techniques  Packet Size  Comparison of Circuit Switching & Packet.

Slides:



Advertisements
Similar presentations
CSE 413: Computer Networks
Advertisements

Ch. 12 Routing in Switched Networks
Switching Techniques In large networks there might be multiple paths linking sender and receiver. Information may be switched as it travels through various.
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.
1 Introduction to Network Layer Lesson 09 NETS2150/2850 School of Information Technologies.
Ch. 12 Routing in Switched Networks Routing in Packet Switched Networks Routing Algorithm Requirements –Correctness –Simplicity –Robustness--the.
Data and Computer Communications
20.1 Chapter 20 Network Layer: Internet Protocol Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
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.
Routing Basics What’s going on the back … Faisal Karim Shaikh DEWSNet Group Dependable Embedded Wired/Wireless Networks.
Module 3.4: Switching Circuit Switching Packet Switching K. Salah.
1 Routing Lesson 10 NETS2150/2850 School of Information Technologies.
Semester Copyright USM EEE442 Computer Networks The Data Link / Network Layer Functions: Switching En. Mohd Nazri Mahmud MPhil (Cambridge, UK)
Computer Networks The Data Link / Network Layer Functions: Routing
Data Communications Packet Switching.
Teknik Routing Pertemuan 20 Matakuliah: H0484/Jaringan Komputer Tahun: 2007.
William Stallings Data and Computer Communications 7th Edition
Telecommunication Technologies
Chapter 10 Introduction to Wide Area Networks Data Communications and Computer Networks: A Business User’s Approach.
Packet Switching EE3900 Data Communications and LANs Packet Switching Slide 1.
1 Computer Networks Switching Technologies. 2 Switched Network Long distance transmission typically done over a network of switched nodes End devices.
Switching Techniques Student: Blidaru Catalina Elena.
Data Communications and Networking
Data Communications & Computer Networks
Communication Networks
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.
Chapter 2 – X.25, Frame Relay & ATM. Switched Network Stations are not connected together necessarily by a single link Stations are typically far apart.
Data and Computer Communications Chapter 10 – Circuit Switching and Packet Switching (Wide Area Networks)
TELE202 Lecture 5 Packet switching in WAN 1 Lecturer Dr Z. Huang Overview ¥Last Lectures »C programming »Source: ¥This Lecture »Packet switching in Wide.
Sami Al-wakeel 1 Data Transmission and Computer Networks The Switching Networks.
1 Packet Switching Around 1970, research began on a new form of architecture for long distance communications: Packet Switching.
Switching Techniques Dr. Sanjay P. Ahuja, Ph.D. Fidelity National Financial Distinguished Professor of CIS School of Computing, UNF.
Switching breaks up large collision domains into smaller ones Collision domain is a network segment with two or more devices sharing the same Introduction.
 Circuit Switching  Packet Switching  Message Switching WCB/McGraw-Hill  The McGraw-Hill Companies, Inc., 1998.
Data and Computer Communications Circuit Switching and Packet Switching.
Computer Networks with Internet Technology William Stallings
20.1 Chapter 20 Network Layer: Internet Protocol Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
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.
CSCI 465 D ata Communications and Networks Lecture 14 Martin van Bommel CSCI 465 Data Communications & Networks 1.
DATA COMMUNICATION (ELA…) CIRCUIT SWITCHING AND PACKET SWITCHING 1.
Data Communications and Networking Chapter 11 Routing in Switched Networks References: Book Chapters 12.1, 12.3 Data and Computer Communications, 8th edition.
Packet switching network Data is divided into packets. Transfer of information as payload in data packets Packets undergo random delays & possible loss.
EEC4113 Data Communication & Multimedia System Chapter 7: Network Layer by Muhazam Mustapha, October 2011.
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.
Lecture # 03 Switching Course Instructor: Engr. Sana Ziafat.
William Stallings Data and Computer Communications 7th Edition
Teknik Routing Pertemuan 10 Matakuliah: H0524/Jaringan Komputer Tahun: 2009.
Computer Communication & Networks Lecture # 03 Circuit Switching, Packet Switching Nadeem Majeed Choudhary
Data Communication Networks Lec 13 and 14. Network Core- Packet Switching.
1587: COMMUNICATION SYSTEMS 1 Wide Area Networks Dr. George Loukas University of Greenwich,
Data and Computer Communications 8 th and 9 th Edition by William Stallings Chapter 10 – Circuit Switching and Packet Switching.
Data and Computer Communications Chapter 7 Circuit Switching and Packet Switching.
Data and Computer Communications Eighth Edition by William Stallings Lecture slides by Lawrie Brown Chapter 10 – Circuit Switching and Packet Switching.
1 Packet Switching. 2 Introduction zPacket Switching refers to protocols in which messages are divided into packets before they are sent. Each packet.
Data and Computer Communications Ninth Edition by William Stallings Chapter 10 – Circuit Switching and Packet Switching Data and Computer Communications,
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Muhammad Waseem Iqbal Lecture # 20 Data Communication.
William Stallings Data and Computer Communications
Packet Switching Datagram Approach Virtual Circuit Approach
#2 Switching Techniques
Network Layer – Routing 1
Switching Techniques In large networks there might be multiple paths linking sender and receiver. Information may be switched as it travels through various.
Chapter 20 Network Layer: Internet Protocol
Packet Switching Around 1970, research began on a new form of architecture for long distance communications: Packet Switching.
Data and Computer Communications
Data Communication Networks
Switching Techniques.
Presentation transcript:

EE 4272Spring, 2003 Chapter 10 Packet Switching Packet Switching Principles  Switching Techniques  Packet Size  Comparison of Circuit Switching & Packet Switching Routing  Least-Cost Routing Algorithms  Dijkstra’s Algorithm  Bellman-Ford Algorithm  Routing Strategies

EE 4272Spring, 2003 Principles Circuit switching designed for voice  Resources dedicated to a particular call  Much of the time a data connection is idle  Data rate is fixed: Both ends must operate at the same rate  Not efficient Packet Switching: suit better for data network application

EE 4272Spring, 2003 Basic Operation of Packet Switching Data transmitted in small packets  Maximum Size 1000 Bytes  Longer messages split into series of packets  Each packet contains a portion of user data plus some control info Control info: Routing (addressing) info Packets are received, stored briefly (buffered) and passed on to the next node  Store-and-forward

EE 4272Spring, 2003 Advantages Line efficiency  Single node to node link can be shared by many packets over time  Packets queued and transmitted as fast as possible Data rate conversion  Each station connects to the local node at its own speed  Nodes buffer data if required to equalize rates Packets are accepted even when network is busy  Delivery may slow down Priorities can be used

EE 4272Spring, 2003 Switching Technique Host breaks long message into packets Packets sent one at a time to the network Packets handled in two ways  Datagram  Virtual circuit

EE 4272Spring, 2003 Datagram Each packet treated independently Packets can take any practical route Packets may arrive out of order Packets may go missing Up to receiver to re-order packets and recover from missing packets

EE 4272Spring, 2003 Virtual Circuit Preplanned route established before any packets sent Call request and call accept packets establish connection (handshake) Each packet contains a virtual circuit identifier instead of destination address No routing decisions required for each packet Clear request to drop circuit Not a dedicated path though!

EE 4272Spring, 2003 X.25: Use of Virtual Circuits

EE 4272Spring, 2003 Virtual Circuits vs. Datagram Virtual circuits  Network can provide sequencing and error control  Packets are forwarded more quickly  No routing decisions to make  Less reliable  Loss of a node looses all circuits through that node Datagram  No call setup phase  Better if few packets  More flexible  Routing can be used to avoid congested parts of the network

EE 4272Spring, 2003 Packet Size Store-and-forward cut-through

EE 4272Spring, 2003 Circuit vs. Packet Switching Performance  Propagation delay  Transmission time  Node delay Reading Assignment: P312: table 10.1 (E.g., switch setup connection) (E.g., packet waiting in buffer)

EE 4272Spring, 2003 Routing in Packet Switching Networks Complex, crucial aspect of packet switched networks Characteristics required  Correctness  Simplicity  Robustness  Stability  Fairness  Optimality  Efficiency

EE 4272Spring, 2003 Performance Criteria Used for selection of route: e.g. Minimum hop Least cost (appendix 10A)  Dijkstra’s Algorithm  Bellman-Ford Algorithm Costing of Routes

EE 4272Spring, 2003 Dijkstra’s Algorithm A greedy algorithm finding shortest paths from source node to all other nodes Define: N: set of nodes in the network S: source node T: set of nodes so far incorporated in the algorithm W(i,j): link cost from node i to node j; W(i,i)=0; w(i,j)=  for two none directly connected nodes w(i,j) =c L(n): least cost path from node s to node n that is currently known to the algorithm. At the end, this is the final least cost path

EE 4272Spring, 2003 Dijkstra’s Algorithm (Con’t) Step 1: Initialization T = {s} : at initial stage, only source node included L(n) = w(i,j) for all n  s Step 2: Find the neighboring node x not in T that has the least-cost path from source node s and include that node into T, i.e., add node x to set T Step 3: Update least-cost paths due to node x included L(n) = min [L(n), L(x) +w(x,n)] Step 4: algorithm terminates when all nodes included in T, otherwise, go back to step 2

EE 4272Spring, 2003 Dijkstra’s Algorithm (con’t) Source node

EE 4272Spring, 2003 Example for Dijkstra’s Algorithm Iteration TL(2) PathL(3) PathL(4) PathL(5) PathL(6) Path 1{1} 2{1,4} 3{1,2,4} 4{1,2,4,5} 5{1,2,3,4,5} 6{1,2,3,4,5,6} 2 1    4   4  5   4  2 1  4  5  4 1  4  5  6

EE 4272Spring, 2003 Bellman-Ford Algorithm Idea: Find the shortest paths from a given source node subject to the constraint that the paths contain at most one link; then find the shortest paths with a constraint of at most two links, and so on. Algorithm terminates when the increase of the maximum link number brings no improvement. Define: S: source node W(i,j): link cost from node i to node j; W(i,i)=0; w(i,j)=  for two none directly connected nodes w(i,j) =c L h (n): least cost path from node s to node n under the constraint of no more than h links

EE 4272Spring, 2003 Bellman-Ford Algorithm Algorithm: Step 1: Initialization L 0 (n) = , for all n  s L h (s) = 0, for all h Step 1: Update when L h+1 (n) less than L h (n) For each successive h  0: For each n  s, compute L h+1 (n) = min [ L h (j) + w(j,n)] for all predecessor node j Step 3: Terminate when increase of h brings no improvement

EE 4272Spring, 2003 Bellman-Ford Algorithm

EE 4272Spring, 2003 Network Information Source and Update Timing Routing decisions usually based on knowledge of network (not always) Distributed routing  Nodes use local knowledge  May collect info from adjacent nodes  May collect info from all nodes on a potential route Central routing: Collect info from all nodes Update timing  When network info nodes updated  Fixed - never updated  Adaptive - regular updates

EE 4272Spring, 2003 Routing Strategies Fixed Flooding Random Adaptive Reading Assignment: p318 – pp329