CSC 311 Chapter Eight FLOW CONTROL TECHNIQUES. CSC 311 Chapter Eight How do we manage the large amount of data on the network? How do we react to a damaged.

Slides:



Advertisements
Similar presentations
EE 4272Spring, 2003 Chapter 7 Data Link Control Objectives: Effective & reliable data communication between two directly connected transmitting-receiving.
Advertisements

24-1 Chapter 24. Congestion Control and Quality of Service (part 1) 23.1 Data Traffic 23.2 Congestion 23.3 Congestion Control 23.4 Two Examples.
EIE325: Telecommunication TechnologiesMaciej J. Ogorza ł ek, PolyU, EIE Telecommunication Technologies Week 8 Flow Control Error Control.
William Stallings Data and Computer Communications 7th Edition
Data Link Control We want to minimize the amount of error correcting and detecting we need to do.
Chapter 11 Data Link Control
Data and Computer Communications Updated: 2/9/2009.
Data link control. Data Link Control –Flow Control how much data may sent –Error Control How can error be detected and corrected.
Flow and Error Control. Flow Control Flow control coordinates the amount of data that can be sent before receiving acknowledgement It is one of the most.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Chapter 11 Data Link Control and Protocols.
Chapter 7 – Data Link Control Protocols
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 13 Introduction to Computer Networks.
William Stallings Data and Computer Communications 7 th Edition Chapter 7 Data Link Control Protocols.
1 K. Salah Module 4.0: Data Link Layer The Logical Link Control (LLC) sublayer –Framing –Flow Control –Error Control The Media Access Control (MAC) sublayer.
EE 4272Spring, 2003 Chapter 7 Data Link Control Objectives: Effective & reliable data communication between two directly connected transmitting-receiving.
Error Checking continued. Network Layers in Action Each layer in the OSI Model will add header information that pertains to that specific protocol. On.
Lect11.ppt - 03/15/05 CDA 6505 Network Architecture and Client/Server Computing Lecture 11 Link-Level Flow and Error Control by Zornitza Genova Prodanoff.
Link-Level Flow and Error Control
15 - Winter 2006 ECE ECE 766 Computer Interfacing and Protocols 1 Data Link Control Physical layer is only responsible for data transmission Data link.
Data Link Control Protocols
Data Link Control Protocols Dr. Muazzam A. Khan. Flow Control Ensuring the sending entity does not overwhelm the receiving entity —Preventing buffer overflow.
Aegis School of Telecommunication Chapter 7 Data Link Control Protocols Telecom Systems I by Dr. M. G. Sharma, Phd.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Chapter 11 Data Link Control Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction.
11.1 Chapter 11 Data Link Control Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Chapter 11: Flow Control – can occur at layer 2 (data link) and at layer 4 (transport)  You saw the need in the most recent assignment.  Data packets.
Data Link Layer We have now discussed the prevalent shared channel technologies  Ethernet/IEEE  Wireless LANs (802.11) We have now covered chapters.
Chapter 5 Peer-to-Peer Protocols and Data Link Layer PART I: Peer-to-Peer Protocols ARQ Protocols and Reliable Data Transfer Flow Control.
1 Kyung Hee University Data Link Protocols. 2 Kyung Hee University 11 장 Data Link Control and Protocols 11.1 Flow and Error Control 11.2 Stop-and-Wait.
Data Link Layer - 2 Dr. Sanjay P. Ahuja, Ph.D. Fidelity National Financial Distinguished Professor of CIS School of Computing, UNF.
Data Link and Flow Control Networks and Protocols Prepared by: TGK First Prepared on: Last Modified on: Quality checked by: Copyright 2009 Asia Pacific.
Eighth Edition by William Stallings Chapter 7 – Data Link Control Protocols Data Link Control Protocols need layer of logic above Physical to manage exchange.
Chapter 3: Channel Coding (part 3). Automatic repeat request (ARQ) protocols ▫Used in combination with error detection/correction ▫Block of data with.
11.1 Flow and Error Control Flow Control Error Control.
1 FIT1005 Topic 6 - Data Link Layer Reference: Chapter 7 -Stallings.
Data Link Layer Flow and Error Control. Flow Control Flow Control Flow Control Specifies the amount of data can be transmitted by sender before receiving.
CSCI 465 D ata Communications and Networks Lecture 10 Martin van Bommel CSCI 465 Data Communications & Networks 1.
© Janice Regan, CMPT 128, CMPT 371 Data Communications and Networking Principles of reliable data transfer 0.
Telecommunications & Networking Lesson 3. ISO Open System Interconnect (OSI) Application Presentation Session Transport Network Data Link Physical Application.
CSCI 465 D ata Communications and Networks Lecture 11 Martin van Bommel CSCI 465 Data Communications & Networks 1.
Chapter 11 Data Link Control and Protocols Flow and Error Control Flow Control Error Control.
Chi-Cheng Lin, Winona State University CS412 Introduction to Computer Networking & Telecommunication Data Link Layer Part II – Sliding Window Protocols.
1 The utopia protocol  Unrealistic assumptions: –processing time ignored –infinite buffer space available –simplex: data transmitted in one direction.
Data and Computer Communications Data Link Control Protocols.
1 The Data Link Layer A. S. Tanenbaum Computer Networks W. Stallings Data and Computer Communications Chapter 3.
DATA LINK CONTROL. DATA LINK LAYER RESPONSIBILTIES  FRAMING  ERROR CONTROL  FLOW CONTROL.
Computer Networking Lecture 16 – Reliable Transport.
NET 222: COMMUNICATIONS AND NETWORKS FUNDAMENTALS ( NET 222: COMMUNICATIONS AND NETWORKS FUNDAMENTALS (PRACTICAL PART) Tutorial 4 : Chapter 7 Data & computer.
Data Link Layer.
Computer Communication & Networks
2.10 Flow and Error Control Before that ...
Chapter 9: Data Link Control
Data Link Layer Flow Control.
Data Link Layer - 3 Dr. Sanjay P. Ahuja, Ph.D.
March 21, 2001 Recall we have talked about the Sliding Window Protocol for Flow Control Review this protocol A window of size I can contain at most I.
Part III Datalink Layer 10.
UNIT 4 Data Link Control Line Discipline Flow Control Error Control
Chapter 23 Introduction To Transport Layer
Instructor Mazhar Hussain
Data Link Layer What does it do?
CIS 321 Data Communications & Networking
Flow Control.
Data Link Layer: Data Link Control
Flow and Error Control.
Chapter 5 Peer-to-Peer Protocols and Data Link Layer
DATA COMMUNICATION Lecture-38.
Chapter 5 Peer-to-Peer Protocols and Data Link Layer
Lecture 4 Peer-to-Peer Protocols and Data Link Layer
Chapter 9: Data Link Control
Error Checking continued
Presentation transcript:

CSC 311 Chapter Eight FLOW CONTROL TECHNIQUES

CSC 311 Chapter Eight How do we manage the large amount of data on the network? How do we react to a damaged transmission? How do we ensure that messages are correctly delivered? How can we transmit multiple frames efficiently? How can we reconcile computers that operate at dramatically different speeds? These are issues that relate to error control and flow control. We have previously examined how to detect errors, how do we handle the errors that we detect? How do we prevent devices from being overwhelmed with data?

CSC 311 Chapter Eight We have learned how to detect errors, what action should we take to correct errors? One common technique is to request a retransmission of lost or damaged frames. There are a number of protocols that operate in this fashion, generally called “automatic repeat request” of ARQ. ERROR CONTROL

CSC 311 Chapter Eight FLOW CONTROL Flow control defines the way in which many frames are sent and tracked and how the stations do error control. There are a number of different flow control protocols ranging from simple to complex. Simple techniques might involve sending a single frame at a time or no flow control at all, unrestricted..send all frames whenever you wish. More complicated protocols try to strike a balance between unrestricted and overly restricted.

CSC 311 Chapter Eight Basic Flow Control …. Signaling Sender sends data as long as receiver is able to receive it. Sender will send until receiver says stop and will not start again, until notified by receiver that it is OK to do so.

CSC 311 Chapter Eight X-ON/ X-OFF Rather than use separate lines to signal, the signals can be embedded in the data. The figure shown below assumes full duplex communication which means there is no distinction between a sender and a receiver. In this instance, A is becoming overloaded with data from B, B is not having a similar problem with data from A. After receiving the X-OFF from A, B will stop sending data to A but A can still send data to B. B will resume only after A sends and X-ON. Because of the time required for the X-OFF message to propagate through the system, A will continue to receive data from B for a short period of time.

CSC 311 Chapter Eight FRAME ORIENTED PROTOCOLS Protocols such as X-ON/X-OFF are byte oriented, typical of asynchronous communication. Frame oriented, synchronous communications require a more sophisticated management technique. We will be looking at transmission of frames of whatever type and size supported by the underlying protocol architecture.

CSC 311 Chapter Eight FRAME ORIENTED FLOW CONTOL PROTOCOLS UNRESTRICTED STOP AND WAIT SLIDING WINDOW GO BACK N SELECTIVE REPEAT

CSC 311 Chapter Eight UNRESTRICTED FLOW CONTROL PROTOCOL Assumes receiver has unlimited capability to receive frames or that unlimited buffering capacity is available. It assumes that every frame will arrive without damage and in the order sent. No error checking is done and no checking is done for lost or delayed frames.

CSC 311 Chapter Eight STOP AND WAIT PROTOCOL Simple to implement. Sender sends a single frame and waits for an acknowledgement before sending another. Essentially, it sends a single frame and “stops and waits” for a response from the receiver before sending another. It is simple, but slow. Not effective in high traffic environments and not practicable in many situations. Though only a single frame is ever in transit, the frames are still numbered. Frames are numbered alternately, 0 or 1. This is necessary to avoid confusion and ensure correctness of the protocol. After receiving a frame number 0, for example, the receiver will return an ACK1, which indicates to the sender that frame 0 was received correctly, without errors, and that the receiver now expects a frame numbered 1.

CSC 311 Chapter Eight What might go wrong? Note: the author is not entirely correct!! Frame could be damaged. Frame could be lost. Positive acknowledgement could be lost Negative acknowledgement could be lost Protocol must, (AND DOES!!!) handle this. Author does not point out that, upon sending a frame, the sender starts a timer. If this timer times out, sender will resend the frame.

CSC 311 Chapter Eight When is STOP AND WAIT not suitable. When traffic is heavy because, it does not make good utilization of network capacity When propagation time is much larger than transmission time. Transmission time is the time required to put the message on the network. Propagation time is time required to traverse the network. Stop and Wait would be terrible for satellite communication. Propagation time is approx seconds each way. Total.5s Consider a network capable of sending 100Mbps and a frame size of bits. It would take 1 ten thousandth of a second to put the frame on the network, it would take one-half second for the frame to arrive and the ACK to get back to sender. So, in this instance, in one second only 20,000 bits would be sent on a network capable of sending 100,000,000 bits per second or a utilization of 0.02%

CSC 311 Chapter Eight