1 Comnet 2006 Communication Networks Recitation 8 ARQ Protocols & Performance.

Slides:



Advertisements
Similar presentations
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 14 Introduction to Computer Networks.
Advertisements

Network Operations & administration CS 4592 Lecture 15 Instructor: Ibrahim Tariq.
EE 4272Spring, 2003 Chapter 7 Data Link Control Objectives: Effective & reliable data communication between two directly connected transmitting-receiving.
1 Pertemuan 15 Layer Data Link Matakuliah: H0174/Jaringan Komputer Tahun: 2006 Versi: 1/0.
EIE325: Telecommunication TechnologiesMaciej J. Ogorza ł ek, PolyU, EIE Telecommunication Technologies Week 8 Flow Control Error Control.
William Stallings Data and Computer Communications 7th Edition
Go-Back-N Improve Stop-and-Wait by not waiting!
Data and Computer Communications Updated: 2/9/2009.
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.
Data Link Control Protocols Data link control protocol Provides a layer of control between systems on a transmission medium referred to as data link. DLC.
William Stallings Data and Computer Communications 7 th Edition Chapter 7 Data Link Control Protocols.
Chapter 9: Data Link Control Business Data Communications, 4e.
William Stallings Data and Computer Communications 7 th Edition (Selected slides used for lectures at Bina Nusantara University) Error Control.
1 Netcomm 2005 Communication Networks Recitation 8.
Data Communications Data Link Control. What Is Data Link Control? The Data Link layer of a model typically has the following responsibilities: 1. Creates.
EE 4272Spring, 2003 Chapter 7 Data Link Control Objectives: Effective & reliable data communication between two directly connected transmitting-receiving.
Link-Level Flow and Error Control
Principles of Reliable Data Transfer. Reliable Delivery Making sure that the packets sent by the sender are correctly and reliably received by the receiver.
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 and Computer Communications Eighth & Ninth Edition by William Stallings Chapter 7 – Data Link Control Protocols.
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.
William Stallings Data and Computer Communications 7th Edition
Data and Computer Communications Ninth Edition by William Stallings Chapter 7 – Data Link Control Protocols Data and Computer Communications, Ninth Edition.
Data and Computer Communications Tenth Edition by William Stallings Data and Computer Communications, Tenth Edition by William Stallings, (c) Pearson Education.
Chapter 3 THE DATA LINK LAYER
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.
THE DATA LINK LAYER Chapter 3 1. H YBRID M ODEL The hybrid reference model to be used in this book. 2.
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.
CIS : Data Link Control. Flow Control Ensuring the sending entity does not overwhelm the receiving entity —Preventing buffer overflow Transmission.
Transport Layer: Sliding Window Reliability
Lecture Focus: Data Communications and Networking  Data Link Layer  Data Link Control Lecture 22 CSCS 311.
11.1 Flow and Error Control Flow Control Error Control.
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.
1 Flow&Error Control R. Supakorn. 2 Flow Control Flow control refers to a set of procedure used to restrict the amount of data that the sender can send.
CSCI 465 D ata Communications and Networks Lecture 11 Martin van Bommel CSCI 465 Data Communications & Networks 1.
Chi-Cheng Lin, Winona State University CS412 Introduction to Computer Networking & Telecommunication Data Link Layer Part II – Sliding Window Protocols.
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.
Chapter 9: Data Link Control Business Data Communications, 4e.
NET 222: COMMUNICATIONS AND NETWORKS FUNDAMENTALS ( NET 222: COMMUNICATIONS AND NETWORKS FUNDAMENTALS (PRACTICAL PART) Tutorial 4 : Chapter 7 Data & computer.
Data and Computer Communications Data Link Control Protocols.
William Stallings Data and Computer Communications Chapter 7 Data Link Control.
Chapter 3: The Data Link Layer –to achieve reliable, efficient communication between two physically connected machines. –Design issues: services interface.
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
Chapter 3 The Data Link Layer.
MODULE I NETWORKING CONCEPTS.
Chapter 9: Data Link Control
Data Link Layer Flow Control.
Data Communications and Networking Pipelined reliable data transfer
Chap. 4 Data link layer 2.
Instructor Mazhar Hussain
Data Link Layer What does it do?
Flow Control.
Flow and Error Control.
Overview Jaringan Komputer (2)
William Stallings Data and Computer Communications
Chapter 9: Data Link Control
Presentation transcript:

1 Comnet 2006 Communication Networks Recitation 8 ARQ Protocols & Performance

2 Comnet 2006 Error Control Automatic Repeat Request (ARQ) Automatic Repeat Request (ARQ) – Error detection – Acknowledgement (ACK) – Retransmission after timeout – Negative acknowledgement (NACK) DATA ACK NACK t tran t prop

3 Comnet 2006 Pipelining Acknowldegement arrives every msec Packet arrives every msec Network performance 100%

4 Comnet 2006 Sliding Window Flow Control Allow multiple frames to be in transitAllow multiple frames to be in transit Receiver may have a buffer W longReceiver may have a buffer W long Transmitter can send up to W frames without ACKTransmitter can send up to W frames without ACK Each frame is numberedEach frame is numbered ACK includes number of frameACK includes number of frame Sequence number bounded by k bitsSequence number bounded by k bits –frames are numbered modulo 2 k

5 Comnet 2006 Sliding Window …. Sender Perspective Window of frames that may be transmitted Frames already acknowledged Frame sequence numbers Last frame acknowledged Window shrinks from trailing edge as frames are acknowledged Window expands from leading edge as ACKs received Last frame acknowledged Window shrinks from trailing edge as frames are received Window expands from leading edge as ACKs are sent Window of frames that may be transmitted …. Receiver Perspective Frames already received

6 Comnet 2006 Sliding Window: Example … F …. F0 F1 F … ACK 2 F4 F5 F … ACK ….

7 Comnet 2006 Sliding Window Enhancements Receiver can acknowledge frames without permitting further transmissionReceiver can acknowledge frames without permitting further transmission If duplex, use piggybackingIf duplex, use piggybacking –If no data to send, use ack frame –If data but no acknowledgement to send, send last acknowledgement number again, or have ACK valid flag (TCP)

8 Comnet 2006 Go Back N Based on sliding windowBased on sliding window If no error, ACK as usual with frame sequence numberIf no error, ACK as usual with frame sequence number Use window to control number of outstanding framesUse window to control number of outstanding frames If error, reply with rejectionIf error, reply with rejection –Discard that frame and all future frames until error frame received correctly –Transmitter must go back and retransmit that frame and all subsequent frames

9 Comnet 2006 Go-Back-N: Example Time 01 EDDDDDD Timeout Interval Frames discarded by data link layer Error ACK 0 ACK 2 ACK 3 ACK 4ACK 5 ACK 6 ACK 7 ACK 1

10 Comnet 2006 Selective Repeat Only rejected frames are retransmittedOnly rejected frames are retransmitted Subsequent frames are accepted by the receiver and bufferedSubsequent frames are accepted by the receiver and buffered Minimizes retransmissionMinimizes retransmission Receiver must maintain large enough bufferReceiver must maintain large enough buffer More complex login in senderMore complex login in sender

11 Comnet 2006 Selective Repeat Example E 3452 Transmitter (Primary) Receiver (Secondary) ACK 0 ACK 1 ACK 3 ACK 4 ACK 5ACK 2 Buffered by receiver Error Frames 2-5 released

12 Comnet 2006 Selective Repeat: Window Size Sequence Number space >= 2 Window Size Sequence Number space >= 2 Window Size TIMEOUT ACK

13 Comnet 2006 Performance: Notation TRANS = Frame transmission time PROP = Link propagation delay a = PROP/TRANS Probability of Frame error in Sender-Receiver direction is P<<1 Probability of Frame error in Receiver-Sender direction is 0 W = Number of frames per window Nr: average number of transmissions of an original frame

14 Comnet 2006 TRANS = Frame transmission time PROP = Link propagation delay a = PROP/TRANS Probability of Frame error in Sender-Receiver direction is P<<1 Probability of Frame error in Receiver-Sender direction is 0 Number of frames per window = W. Simplifying assumption: Use NACKs Performance: Notation

15 Comnet 2006 Performance: No Errors Frames transmitted = 2a + 1 if W > 2a + 1Frames transmitted = 2a + 1 if W > 2a + 1 = W otherwise = W otherwise W >= 2a + 1W >= 2a + 1 Link is always utilized (U = 1)Link is always utilized (U = 1) W < 2a + 1W < 2a + 1 U = W/(2a + 1)U = W/(2a + 1)

16 Comnet 2006 Performance: Unreliable Link Selective Repeat Number of retransmissions:Number of retransmissions: N r =  i P i-1 (1-P)=1/(1-P) U = (1 – P) if (W > 1 +2a) W (1 – P) / (1 + 2a) if (W <= 1 +2a)

17 Comnet 2006 Performance: Unreliable Link G-Back-N Number of frames retransmitted:Number of frames retransmitted: 1+2a If (W > 1 +2a) W if (W <= 1 +2a) U = (1 – P)/(1 + 2aP)if (W > 1 +2a) W (1 – P) / [(1 + 2a) (1-P+WP)]if (W <= 1 +2a)