William Stallings Data and Computer Communications

Slides:



Advertisements
Similar presentations
Ch. 12 Routing in Switched Networks
Advertisements

Ch. 12 Routing in Switched Networks Routing in Packet Switched Networks Routing Algorithm Requirements –Correctness –Simplicity –Robustness--the.
Data and Computer Communications Eighth Edition by William Stallings Lecture slides by Lawrie Brown Chapter 12 – Routing in Switched Networks.
Data and Computer Communications
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 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.
Routing Strategies Fixed Routing
1 Routing Lesson 10 NETS2150/2850 School of Information Technologies.
EE 4272Spring, 2003 Chapter 10 Packet Switching Packet Switching Principles  Switching Techniques  Packet Size  Comparison of Circuit Switching & Packet.
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
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.
1 Chapter 10 Introduction to Metropolitan Area Networks and Wide Area Networks Data Communications and Computer Networks: A Business User’s Approach.
William Stallings Data and Computer Communications 7th Edition (Selected slides used for lectures at Bina Nusantara University) Routing.
Data Communications and Networking
Data Communications & Computer 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.
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.
 Circuit Switching  Packet Switching  Message Switching WCB/McGraw-Hill  The McGraw-Hill Companies, Inc., 1998.
Chi-Cheng Lin, Winona State University CS 313 Introduction to Computer Networking & Telecommunication Chapter 5 Network Layer.
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.
Data Communications and Networking Chapter 11 Routing in Switched Networks References: Book Chapters 12.1, 12.3 Data and Computer Communications, 8th edition.
Advance Computer Networks Lecture#08 Instructor: Engr. Muhammad Mateen Yaqoob.
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.
Routing Networks and Protocols Prepared by: TGK First Prepared on: Last Modified on: Quality checked by: Copyright 2009 Asia Pacific Institute of Information.
William Stallings Data and Computer Communications 7th Edition
Teknik Routing Pertemuan 10 Matakuliah: H0524/Jaringan Komputer Tahun: 2009.
Data Communication Networks Lec 13 and 14. Network Core- 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.
Network Layer Routing Networks: Routing.
Network Layer COMPUTER NETWORKS Networking Standards (Network LAYER)
Packet Switching Networks & Frame Relay
Unit 1:Frame Relay.
Packet Switching Datagram Approach Virtual Circuit Approach
#2 Switching Techniques
Network Layer.
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.
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
Chapter 4 Frame Relay Chapter 4 Frame Relay.
Computer Networks The Data Link / Network Layer Functions: Routing
Shortest Path Algorithm
Packet Switching Around 1970, research began on a new form of architecture for long distance communications: Packet Switching.
CDA 6505 Network Architecture and Client/Server Computing
Data and Computer Communications
ECE453 – Introduction to Computer Networks
Data Communication Networks
PRESENTATION COMPUTER NETWORKS
Switching Techniques.
Network Layer Routing Networks: Routing.
Chapter 10. Packet Switching
Shortest Path Algorithm
Presentation transcript:

William Stallings Data and Computer Communications Chapter 10 Packet Switching

Why Packet Switching? Using circuit switching for data Inefficient Resources dedicated to a particular connection Much of the time a data connection is idle Data rate is fixed Both ends must operate at the same rate Limits the utility of high-speed workstations

Use of Packets

Advantages Line efficiency Data rate conversion 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

Switching Technique Station breaks long message into packets Packets are received, stored briefly (buffered) and past on to the next node on the network Store and forward Packets handled in two ways Datagram Virtual circuit

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

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

Virtual Circuits vs. Datagram 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

Packet Size

Circuit vs. Packet Switching

Routing Finding a path through network nodes from source to destination Characteristics of routing strategies Correctness Robustness Stability Fairness Optimality Effieciency (overhead for routing processing)

Performance Criteria Criteria used for selection of route Minimum hop number of links simplest minimize the use of network resources used for routing decision Least cost minimize the total link cost minimize delay maximize throughput minimize the monetary cost more complex algorithms

Costing of Routes

Decision Time and Place Routing decision time Datagram (no virtual circuit) for each packet Virtual circuit when the virtual circuit is established route may change dynamically depending on current conditions

Decision Time and Place Routing decision place Which nodes are responsible for routing decision? Distributed routing each node decides the next one most common Centralized routing designated central node (e.g. network control center) not so robust since loss of this node may block the whole network Source routing routing decision is made by the originating station

Network Information Source and Update Timing Routing decisions usually (not always) are based on knowledge of network (e.g. traffic load and link costs) like flooding Distributed routing Nodes use local knowledge cost of each outgoing link May collect info from adjacent nodes May collect info from all nodes on a potential route Central routing Collect info from all nodes

Network Information Source and Update Timing When is network info updated? No information used (fixed, flooding) no updates Local information used only update is continuous Other nodes’ info used regular updates to adapt the route changing conditions Tradeoff between good adaptive routing and efficiency

Key Routing Strategies Fixed Flooding Random Adaptive

Fixed Routing Single, permanent route for each source to destination pair Determine routes using a least cost algorithm (Bellman-Ford, Dijkstra - appendix 10A) Route fixed, unless there is a change in network topology link costs should be static (e.g. cannot be current traffic or load) Simple, works well with reliable and stable load networks Disadvantage: lack of flexibility

Fixed Routing Tables

Flooding No network info required Packet sent by node to every neighbor Incoming packets retransmitted on every link except incoming link Eventually a number of copies will arrive at destination Each packet is uniquely numbered so duplicates can be discarded at destination

Flooding Example

Flooding Precautions against unlimited grow in circulation Nodes can remember packets already forwarded to keep network load in bounds Include a hop count in packets. Set to a maximum value (e.g. diameter of the network) Decrease one at each hop Discard when 0

Properties of Flooding All possible routes are tried Very robust can be used for emergency messaging At least one packet will use minimum hop count route Can be used to set up virtual circuit All nodes are visited Useful to distribute information (e.g. routing info)

Random Routing Node selects one outgoing path for retransmission of incoming packet Selection is at random equally likely all outgoing links are utilized in long-run can select outgoing path based on a probability e.g. probability based on data rate good traffic distribution No network info needed Route is typically not least cost nor minimum hop

Adaptive Routing Used by almost all packet switching networks Routing decisions change as conditions on the network change Failure Congestion Requires network info exchanged among nodes

Adaptive Routing - Drawbacks Decisions more complex Processing burden Tradeoff between quality of network info and overhead Overreaction may cause oscillations

Adaptive Routing - Advantages Robustness Improved performance Aid congestion control adaptive routing balances the loads

Classification Based on information sources Local rarely used Adjacent nodes All nodes Route to outgoing link with shortest queue length Good for load balancing, but may not be good for optimal routing Can include bias for each destination (a value for negative preferrence) outgoing link is determined by minimizing queue length plus bias

Isolated Adaptive Routing

ARPANET Routing Strategies First Generation 1969 Distributed, adaptive Bellman-Ford algorithm Node exchanges delay vector with neighbors (every 128 ms) Update routing tables based on incoming info Doesn't consider line speed, just queue length (delay) Queueing delay is not the whole delay

ARPANET Routing Strategies Second Generation 1979 distributed, adaptive uses “measured” delay as performance criterion computes delay every 10 secs informs all others (using flooding) if there is a significant change After all nodes change their routing tables, the routing tables may become obsolete causes oscillations (under heavy loads) result: not all routes can get the best path under heavy loads

ARPANET Routing Strategies Third Generation 1987 Link cost calculations changed Measure average delay over last 10 seconds, Transformed into link utilization Normalized based on current value and previous results Resulting estimated link utilization is then transformed into delay

Bellman-Ford Algorithm Minimum cost paths Iterative find the shortest paths from a source to all possible destinations using only link then using max. two links by adding appropriate links to the paths of step 1 then using max. 3 links on top of paths with two links so on .. until no improvement is gained by adding more links See example on board