Data Link Layer Flow Control.

Slides:



Advertisements
Similar presentations
Network Operations & administration CS 4592 Lecture 15 Instructor: Ibrahim Tariq.
Advertisements

EE 4272Spring, 2003 Chapter 7 Data Link Control Objectives: Effective & reliable data communication between two directly connected transmitting-receiving.
Assume that a file is transferred from a node A to a node B. The file has been fragmented in 5 frames. Frame 0 is corrupted, the ACK of frame 1 is corrupted,
EIE325: Telecommunication TechnologiesMaciej J. Ogorza ł ek, PolyU, EIE Telecommunication Technologies Week 8 Flow Control Error Control.
William Stallings Data and Computer Communications 7th Edition
Flow control Connection management TCP, UDP
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.
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 (Selected slides used for lectures at Bina Nusantara University) Error Control.
Link-Level Flow and Error Control
TCP: flow and congestion control. Flow Control Flow Control is a technique for speed-matching of transmitter and receiver. Flow control ensures that a.
15 - Winter 2006 ECE ECE 766 Computer Interfacing and Protocols 1 Data Link Control Physical layer is only responsible for data transmission Data link.
CS 4396 Computer Networks Lab
Data Link Control Protocols
ARQ Mechanisms Rudra Dutta ECE/CSC Fall 2010, Section 001, 601.
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.
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 Transport Layer Lecture 10 Imran Ahmed University of Management & Technology.
1 TCP III - Error Control TCP Error Control. 2 ARQ Error Control Two types of errors: –Lost packets –Damaged packets Most Error Control techniques are.
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.
1 TCP - Part II Relates to Lab 5. This is an extended module that covers TCP data transport, and flow control, congestion control, and error control in.
TCP - Part II Relates to Lab 5. This is an extended module that covers TCP data transport, and flow control, congestion control, and error control in TCP.
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 11 Martin van Bommel CSCI 465 Data Communications & Networks 1.
CSE331: Introduction to Networks and Security Lecture 4 Fall 2002.
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.
NET 222: COMMUNICATIONS AND NETWORKS FUNDAMENTALS ( NET 222: COMMUNICATIONS AND NETWORKS FUNDAMENTALS (PRACTICAL PART) Tutorial 4 : Chapter 7 Data & computer.
Data Link Layer.
Chapter 3: The Data Link Layer –to achieve reliable, efficient communication between two physically connected machines. –Design issues: services interface.
PROTOCOL BASICS. 2 Introduction In chapter 3: Circuits and techniques can be employed to transmit a frame of information between 2 DTEs Error detection.
Powerpoint Templates Data Communication Muhammad Waseem Iqbal Lec # 15.
Data Link Control Protocols  need layer of logic above Physical  to manage exchange of data over a link frame synchronization frame synchronization flow.
Computer Communication & Networks
2.10 Flow and Error Control Before that ...
MODULE I NETWORKING CONCEPTS.
Reliable Transmission
Chapter 9: Data Link Control
Data Link Layer - 3 Dr. Sanjay P. Ahuja, Ph.D.
Part III Datalink Layer 10.
Chapter 11 Data Link Control
Chapter 23 Introduction To Transport Layer
Data link layer (LLC).
Chap. 4 Data link layer 2.
Instructor Mazhar Hussain
Data Link Layer What does it do?
Flow Control.
Data Link Layer: Data Link Control
Chapter 10 Data Link Control
Rivier College CS575: Advanced LANs Chapter 6: Logical Link Control
Flow and Error Control.
Overview Jaringan Komputer (2)
Chapter 5 Peer-to-Peer Protocols and Data Link Layer
Data Link Layer (cont’d)
CS4470 Computer Networking Protocols
Data Link Layer (cont’d)
TCP III - Error Control TCP Error Control.
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:

Data Link Layer Flow Control

Flow Control Flow Control is a technique for speed-matching of transmitter and receiver. Flow control ensures that a transmitting station does not overflow a receiving station with data We will discuss two protocols for flow control: Stop-and-Wait Sliding Window For the time being, we assume that we have a perfect channel (no errors) Copyright by Jorg Liebeherr 98,99

Stop-and-Wait Flow Control Simplest form of flow control In Stop-and-Wait flow control, the receiver indicates its readiness to receive data for each frame Operations: 1. Sender: Transmit a single frame 2. Receiver: Transmit acknowledgment (ACK) 3. Goto 1. Copyright by Jorg Liebeherr 98,99

Analysis of Stop-and-Wait Efficiency = ? Copyright by Jorg Liebeherr 98,99

Sliding Window Flow Control Major Drawback of Stop-and-Wait Flow Control: Only one frame can be in transmission at a time This leads to inefficiency if propagation delay is much longer than the transmission delay Sliding Window Flow Control Allows transmission of multiple frames Assigns each frame a k-bit sequence number Range of sequence number is [0..2k-1], i.e., frames are counted modulo 2k Copyright by Jorg Liebeherr 98,99

Operation of Sliding Window Sending Window: At any instant, the sender is permitted to send frames with sequence numbers in a certain range (the sending window) Copyright by Jorg Liebeherr 98,99

Operation of Sliding Window Receiving Window: The receiver maintains a receiving window corresponding to the sequence numbers of frames that are accepted Copyright by Jorg Liebeherr 98,99

Operation of Sliding Window How is “flow control” achieved? Receiver can control the size of the sending window By limiting the size of the sending window data flow from sender to receiver can be limited Interpretation of ACK N message: Receiver acknowledges all packets until (but not including) sequence number N Copyright by Jorg Liebeherr 98,99

Example 3 Copyright by Jorg Liebeherr 98,99

Example Continued 4 4 Copyright by Jorg Liebeherr 98,99

Analysis of Sliding Windows Copyright by Jorg Liebeherr 98,99

Analysis of Sliding Windows If the window size is sufficiently large the sender can continuously transmit packets: W  2a+1: Sender can transmit continuously W < 2a+1: Sender can transmit W frames every 2a+1 time units Copyright by Jorg Liebeherr 98,99

ARQ Error Control Types of errors: Lost frames, damaged frames Most Error Control techniques are based on (1) Error Detection Scheme (e.g., Parity checks, CRC), and (2) Retransmission Scheme Error control schemes that involve error detection and retransmission of lost or corrupted frames are referred to as Automatic Repeat Request (ARQ) error control Copyright by Jorg Liebeherr 98,99

ARQ Schemes The most common ARQ retransmission schemes: Stop-and-Wait ARQ Go-Back-N ARQ Selective Repeat ARQ The protocol for sending ACKs in all ARQ protocols are based on the sliding window flow control scheme Copyright by Jorg Liebeherr 98,99

Stop-and-Wait ARQ Stop-and-Wait ARQ is an addition to the Stop-and- Wait flow control protocol: Frames have 1-bit sequence numbers (SN = 0 or 1) Receiver sends an ACK (1-SN) if frame SN is correctly received Sender waits for an ACK (1-SN) before transmitting the next frame with sequence number 1-SN If sender does not receive anything before a timeout value expires, it retransmits frame SN Copyright by Jorg Liebeherr 98,99

Stop-and-Wait ARQ Lost Frame A B Timeout Frame 1 ACK 0 Frame 0 ACK 1 Copyright by Jorg Liebeherr 98,99

Stop-and-Wait ARQ Lost ACK A B Timeout Frame 1 ACK 0 Frame 0 Frame 0 Copyright by Jorg Liebeherr 98,99

Go-Back-N ARQ Go-Back-N uses the sliding window flow control protocol. If no errors occur the operations are identical to Sliding Window Copyright by Jorg Liebeherr 98,99

Go-Back-N ARQ Operations: A station may send multiple frames as allowed by the window size Receiver sends a NAK i if frame i is in error. After that, the receiver discards all incoming frames until the frame in error was correctly retransmitted If sender receives a NAK i it will retransmit frame i and all packets i+1, i+2,... which have been sent, but not been acknowledged Copyright by Jorg Liebeherr 98,99

Frames 4,5,6 are retransmitted Go-Back-N ARQ Lost Frame Frames 4,5,6 are retransmitted A B Frame 0 Frame 1 Frame 2 ACK 3 Frame 3 Frame 4 Frame 5 NAK 4 Frame 6 Frame 4 Frame 5 ACK 6 Frame 6 Frames 5 and 6 are discarded Copyright by Jorg Liebeherr 98,99

Go-Back-N ARQ Lost ACK A B Timeout Frames 0-4 are retransmitted Frames 0- 4 are discarded Copyright by Jorg Liebeherr 98,99

Selective-Repeat ARQ Similar to Go-Back-N ARQ. However, the sender only retransmits frames for which a NAK is received Advantage over Go-Back-N: Fewer Retransmissions. Disadvantages: More complexity at sender and receiver Each frame must be acknowledged individually (no cumulative acknowledgements) Receiver may receive frames out of sequence Copyright by Jorg Liebeherr 98,99

only Frame 4 is retransmitted Selective-Repeat ARQ Lost Frame only Frame 4 is retransmitted A B Frame 0 Frame 1 ACK 1 ACK 2 Frame 2 ACK 3 Frame 3 Frame 4 ACK 4 Frame 5 ACK 6, NAK 4 Frame 6 ACK 7 Frame 4 ACK 5 Frame 7 ACK 0 ACK 1 Frame 0 Frames 5 and 6 are buffered Copyright by Jorg Liebeherr 98,99

Example of Selective-Repeat ARQ Receiver must keep track of `holes’ in the sequence of delivered frames Sender must maintain one timer per outstanding packet Copyright by Jorg Liebeherr 98,99