1 FIT1005 Topic 6 - Data Link Layer Reference: Chapter 7 -Stallings.

Slides:



Advertisements
Similar presentations
William Stallings Data and Computer Communications 7th Edition
Advertisements

EE 4272Spring, 2003 Chapter 7 Data Link Control Objectives: Effective & reliable data communication between two directly connected transmitting-receiving.
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 Eighth Edition by William Stallings Lecture slides by Lawrie Brown Chapter 7 – Data Link Control Protocols.
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.
8-Reliability and Channel Coding Dr. John P. Abraham Professor UTPA.
Chapter 7 – Data Link Control Protocols
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 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.
Chapter 9: Data Link Control Business Data Communications, 4e.
Chapter 6: Errors, Error Detection, and Error Control
William Stallings Data and Computer Communications 7 th Edition (Selected slides used for lectures at Bina Nusantara University) Error Control.
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
Data and Computer Communications Eighth & Ninth Edition by William Stallings Chapter 7 – Data Link Control Protocols.
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.
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
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.
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.
Lecture 3-2: Coding and Error Control (Cont.) ECE
1 Chapter Six - Errors, Error Detection, and Error Control Chapter Six.
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.
CIS : Data Link Control. Flow Control Ensuring the sending entity does not overwhelm the receiving entity —Preventing buffer overflow Transmission.
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.
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.
NETWORKING CONCEPTS. STOP AND WAIT FLOW CONTROL simplest form of flow control, After the destination entity receives the frame, it indicates its willingness.
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.
Coding and Error Control
MODULE I NETWORKING CONCEPTS.
Chapter 9: Data Link Control
William Stallings Data and Computer Communications 7th Edition
Data Link Layer Flow Control.
Data Link Layer - 3 Dr. Sanjay P. Ahuja, Ph.D.
Part III Datalink Layer 10.
Data and Computer Communications
Data link layer (LLC).
Chap. 4 Data link layer 2.
Instructor Mazhar Hussain
MODULE I NETWORKING CONCEPTS.
Flow Control.
Chapter 10 Data Link Control
Flow and Error Control.
Chapter 9: Data Link Control
Presentation transcript:

1 FIT1005 Topic 6 - Data Link Layer Reference: Chapter 7 -Stallings

2 Introduction Material discussed so far was concerned with sending signals over a transmission link For effective digital data communications, much more is needed to control and manage the exchange –That is, concerns over sending data over a data communications link To achieve the necessary control, a layer of logic is added above the physical interfacing –This logic is referred to as data link control or a data link control protocol

3 Introduction Contd. When a data link control protocol is used, the transmission medium between systems is referred to as a data link For effective data communication between two directly connected transmitting-receiving stations the following requirements need to be addressed: –Frame synchronisation The beginning and end of each frame must be recognisable –Flow control The sending station must not send frames at a rate faster than the receiving station can absorb

4 Introduction Contd. –Error control Bit errors introduced by the transmission system should be corrected –Addressing On a multipoint line, such as a LAN, the identity of the two stations involved in a transmission must be specified –Control and data on the same link The receiver must be able to distinguish control information from the data being transmitted –Link Management The initiation, maintenance, and termination of a sustained data exchange need to be addressed

5 Flow Control Flow control is a technique for assuring that a transmitting entity does not overwhelm a receiving entity with data The receiving entity typically allocates a data buffer of some maximum length for a transfer When data are received, the receiver must do a certain amount of processing before passing them to the higher layer In the absence of flow control, the receivers buffer may fill up and over flow

6 Flow Control Contd.

7 The data are sent in a sequence of frames, with each frame containing a portion of data and some control information The time it takes for a station to emit all of the bits of a frame onto the medium is the transmission time –This is proportional to the length of the frame The propagation time is the time it takes for a bit to traverse the link between the source and destination

8 Flow Control Contd. The simplest form of flow control is known as stop-and- wait flow control –A source entity transmits a frame –After the destination entity receives the frame, it indicates its willingness to accept another frame by sending back an acknowledgment to the frame just received –The source must wait until it receives the acknowledgment before sending the next frame The destination thus can stop the flow of data simply by withholding acknowledgment

9 Flow Control Contd. The stop-and-wait procedure works fine, but can hardly be improved upon when a message is sent in a few large frames However, breaking up a large block of data into a smaller number of frames is often the case for the following reasons: –The buffer size of the receiver may be limited –The longer the transmission, the more likely that there will be an error, necessitating retransmission of the entire frame –On a shared medium, such as a LAN, it is usually desirable not to permit one station to occupy the medium for an extended period

10 Flow Control Contd. With the use of multiple frames for a single message, stop-and-wait procedure may be inadequate The essence of the problem is that only one frame at a time can be in transit In situations where the bit length of the link is greater than the frame length, serious inefficiencies result

11 Flow Control Contd.

12 Flow Control Contd. Efficiency of stop-and-wait procedure can be greatly improved by allowing multiple frames to be in transit at the same time An operation referred to as sliding-window flow control is used, for flow control, with such improvements Let us assume that two stations, A and B, are connected via a full-duplex link –Station B allocates buffer space for W frames Thus B can accept W frames, and A is allowed to send W frames without waiting for any acknowledgment

13 Flow Control Contd. –To keep track of which frames have been acknowledged, each is labelled with a sequence number –B acknowledges a frame by sending an acknowledgment that includes the sequence number of the next frame expected –This acknowledgment also implicitly announces that B is prepared to receive the next W frames, beginning with the number specified –This scheme can also be used to acknowledge multiple frames B could receive frames 2,3, and 4, but withhold acknowledgment until frame 4 has arrived

14 Flow Control Contd. Because the sequence number to be used occupies a field in the frame, it is clearly of bounded size –For example, for a 3-bit field, the sequence number can range from 0 to 7 Accordingly, frames are numbered modulo 8, that is, after sequence number 7, the next number is 0 –In general, for a k bit field the range of sequence numbers is through 2 k – 1 and frames are numbered modulo 2 k

15 Flow Control Contd.

16 Flow Control Contd.

17 Flow Control Contd. In addition to the currently described approaches, most protocols also allow a station to cut off the flow of frames from the other side –This is done by sending a Receive Not Ready (RNR) message, which acknowledges former frames but forbids transfer of future frames If two stations exchange data, unlike what we have discussed so far, each need to maintain two windows –One for transmit and one for receive, and each side need to send the data and acknowledgment to the other

18 Flow Control Contd. To provide efficient support for this requirement, a feature known as piggybacking is typically used –Each data frame includes a field that holds the sequence number of that frame plus a field that holds sequence number used for acknowledgment –Thus, if a station has both, data and acknowledgment to send, it sends both together in one frame, saving communication capacity –If a station has only an acknowledgment, it only sends an acknowledgment frame such as RR

19 Error Control Error control refers to mechanisms to detect and correct errors that occur in transmission of frames There is possibility of two types of error: –Lost frame A frame fails to arrive at the other side A noise burst may damage a frame to the extent that the receiver is not aware that a frame has been transmitted –Damaged frame A recognisable frame arrives, but some of the bits are in error

20 Error Control Contd. The most common techniques for error control are based on some or all of the following: –Error detection –Positive acknowledgment –Retransmission after time-out –Negative acknowledgment and retransmission Collectively, these mechanisms are referred to as automatic repeat request (ARQ)

21 Error Control Contd. The effect of ARQ is to turn an unreliable data link into a reliable one The following ARQ versions have been standardised: –Stop-and-Wait ARQ Based on stop-and-wait flow control technique discussed earlier The source station transmits a single frame and then must await an acknowledgment (ACK) No other data frames can be sent until the destination station’s reply arrives at the source station Two sorts of errors could occur:

22 Error Control Contd. –The frame that arrives at the destination could be damaged »The receiver detects this using an error-detection technique and discards the frame »To account for this possibility, the source station is equipped with a timer »When the acknowledgment is not received before times out, the same frame is sent again »It requires that the transmitter maintain a copy of the transmitted frame until an acknowledgment is received –The second sort of error is a damaged acknowledgment »There will be a time out at the source and the same frame will be resent

23 Error Control Contd. »The destination therefore accepts two copies of the same frame as if they were separate »To avoid this problem, frames are alternatively labelled with 0 or 1, and positive acknowledgments are of the form ACK0 and ACK1 The principal advantage of stop-and-wait ARQ is its simplicity Its principal disadvantage is that stop-and-wait is an inefficient mechanism

24 Error Control Contd. Stop-and-Wait ARQ

25 Error Control Contd. –Go-back-N ARQ This is the most commonly used form of error control based on sliding-window flow control If the destination station detects an error in a frame, it may send a negative acknowledgment (REJ=reject) for that frame –The destination frame will discard that frame and all future incoming frames until the frame in error is correctly received –Thus, the source station, when it receives a REJ, must retransmit the frame in error plus all succeeding frames that were transmitted in the interim

26 Error Control Contd.

27 Error Control Contd. –Selective-Reject ARQ The only frames retransmitted are those that receive a negative acknowledgment, in this case called SREJ, or those that time out This ARQ appear to be more efficient than go-back-N, as it minimises the amount of retransmission On the other hand, the receiver must maintain a buffer large enough to save post-SREJ frames until the frame in error is retransmitted –Must also contain logic for reinserting that frame in the proper sequence –The transmitter must also require more complex logic to be able to send a frame out of sequence

28 Error Control Contd. Because of above complications, select-reject ARQ is much less widely used than go-back-N ARQ The Select-reject ARQ is a useful choice for a satellite link because of the long propagation delay involved

29 Error Control Contd.