1 Netcomm 2005 Communication Networks Recitation 8.

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.
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
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.
1 Comnet 2006 Communication Networks Recitation 8 ARQ Protocols & Performance.
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.
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.
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
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.
CS3502: Data and Computer Networks DATA LINK LAYER - 2 WB version.
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.
Data Link Layer: Data Link Control : Data Communication and Computer Networks Asst. Prof. Chaiporn Jaikaeo, Ph.D.
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.
Lecture Focus: Data Communications and Networking  Data Link Layer  Data Link Control Lecture 22 CSCS 311.
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.
PROTOCOL BASICS. 2 Introduction In chapter 3: Circuits and techniques can be employed to transmit a frame of information between 2 DTEs Error detection.
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 Netcomm 2005 Communication Networks Recitation 8

2 Netcomm 2005 Important השיעור (הרצאה) הבא ( ) יערך בבניין נפתלי, חדר 004, בקומת הכניסה, ימינה בסוף המסדרוןהשיעור (הרצאה) הבא ( ) יערך בבניין נפתלי, חדר 004, בקומת הכניסה, ימינה בסוף המסדרון בתרגול הבא ( ) אני לא אהיהבתרגול הבא ( ) אני לא אהיה ישי יעביר תרגול חלופיישי יעביר תרגול חלופי

3 Netcomm 2005 ARQ Protocols & Performance

4 Netcomm 2005 Pipelining Acknowldegement arrives every msec Packet arrives every msec Network performance 100%

5 Netcomm 2005 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

6 Netcomm 2005 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

7 Netcomm 2005 Sliding Window: Example … F … F0 F1 F … ACK 2 F4 F5 F … ACK 3

8 Netcomm 2005 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

9 Netcomm 2005 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)

10 Netcomm 2005 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

11 Netcomm 2005 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

12 Netcomm 2005 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

13 Netcomm 2005 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

14 Netcomm 2005 Selective Repeat: Window Size Sequence Number space >= 2 Window Size Sequence Number space >= 2 Window Size TIMEOUT ACK

15 Netcomm 2005 Frame transmission time TRANS Link propagation delay is PROP a = PROP/TRANS Probability of Frame error in Sender-Receiver direction is P<<1 Probability of Frame error in Receiver-Sender direction is 0 N r : average number of transmissions of an original frame Simplifying assumption: Use NACKs Performance: Notation

16 Netcomm 2005 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)

17 Netcomm 2005 Performance: Unreliable Link GBNGBN –U = (1 – P)/(1 + 2aP) if W > 2a + 1 = W (1 – P)/[(2a + 1)(1 – P + WP)] otherwise = W (1 – P)/[(2a + 1)(1 – P + WP)] otherwise SRSR –Nr = 1 / (1 – P) –U = (1 – P) if (W >> 1 +2a) <= W (1 – P) / (1 + 2a) if (W <= 1 +2a) <= W (1 – P) / (1 + 2a) if (W <= 1 +2a)