Chapter 10 Data Link Control

Slides:



Advertisements
Similar presentations
CH. 7 Data Link Control. Requirements & Objectives of Data Link Control Frame Synchronization Flow Control Error Control Addressing Control and Data on.
Advertisements

Network Operations & administration CS 4592 Lecture 15 Instructor: Ibrahim Tariq.
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.
ICSA341 Data Communications and Computer Networks 1 Data Link Control •General principles.
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.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Chapter 11 Data Link Control and Protocols.
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.
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.
1 10 장. 데이터 링크 제어 (Data Link Control) 10.1 Line Discipline 10.2 흐름 제어 (Flow Control) 10.3 에러 제어 (Error Control) 10.4 요약.
Error Checking continued. Network Layers in Action Each layer in the OSI Model will add header information that pertains to that specific protocol. On.
Link-Level Flow and Error Control
D ATA L INK L AYER By Dr. Nawaporn Wisitpongphan.
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 Line Discipline Flow Control Error Control.
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
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 Tenth Edition by William Stallings Data and Computer Communications, Tenth Edition by William Stallings, (c) Pearson Education.
Chapter 3 THE DATA LINK LAYER
1 Transport Layer Lecture 10 Imran Ahmed University of Management & Technology.
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.
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.
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.
COSC 3213: Computer Networks I Instructor: Dr. Amir Asif Department of Computer Science York University Section M Topics: 1.Flow Control and ARQ Protocols.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 5 Data Link Layer.
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.
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.
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
2.10 Flow and Error Control Before that ...
MODULE I NETWORKING CONCEPTS.
Chapter 9: Data Link Control
Chapter 11 Data Link Control and Protocols
Data Link Layer Flow Control.
Data Link Layer - 3 Dr. Sanjay P. Ahuja, Ph.D.
Part III Datalink Layer 10.
Data link layer (LLC).
Instructor Mazhar Hussain
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
Flow control refers to a set of procedures used to restrict the amount of data that the sender can send before waiting for acknowledgment. Error control.
DATA COMMUNICATION Lecture-38.
CSE 313 Data Communication
DATA COMMUNICATION Lecture-37.
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:

Chapter 10 Data Link Control Line Discipline Flow Control Error Control

Application Presentation Data Link Layer Session Transport Line discipline Network Flow Control Data Link Error Control Physical

Data Link Control Line Discipline Flow Control Error Control Who should send now ? How much data may be sent ? How can error be corrected

Line Discipline Oversee the establishment of links. Determine who should send. Makes sure that no device will transmit until the intended receiver is ready.

Line discipline ENQ / ACK Poll / Select

Enquiry/Acknowledgement (ENQ/ACK) Used in peer-to-peer communication. Coordinates which device may start and whether or not the receiver is ready and enabled.

How it works Initiator transmits an ENQ frame. Receiver answers either with an ACK frame if it is ready or a NAK frame if it is not. If neither ACK nor NAK is received within a certain time limit, the initiator sends a replacement. After three attempts have failed, it disconnects and retries again at another time.

If the response is ACK, the sender starts sending its data and the receiver responds to each successful reception by ACK frame. When finished, the sender sends an EOT frame

ENQ/ACK

Multipoint Discipline

Poll/Select All exchanges must be made through the primary device. The primary is always the initiator of a session. Secondary stations are not allowed to transmit data unless asked. Polling: The primary wants to receive data, it asks the secondary stations if they have anything to send.

Selecting: The primary wants to send data, it asks the target secondary to get ready to receive. Each secondary device has a unique address. If the transmission is from a secondary, the address indicates the originator.

Select

Poll

Flow Control A set of procedures that tells the sender how much data it can transmit before it must wait for an acknowledgement from the receiver. Two issues: The flow of data must not be allowed to overwhelm the receiver. As frames come in, they are acknowledged, either frame by frame or several frames at a time. If a frame arrives damaged, the receiver sends an error message (NAK) frame.

Flow control Stop and wait Sliding window Send one frame at time Send several frames at a time

Stop and Wait

Stop and Wait The sender sends one frame and waits for an acknowledgement before sending the next frame. Advantage: simplicity. Disadvantage: inefficiency especially if the distance between the sender and the transmitter is long.

Sliding Window Several frames can be in transit at a time. Window is a buffer with a maximum size of n-1. The window size provides an upper limit on the number of frames that can be transmitted before requiring an ACK. Frames are numbered modulo n.

Window

the right frame by frame, several frames at a time Sender Sliding Window This wall moves to the right frame by frame, when a frame is sent This wall moves to the right the size of several frames at a time when ACK is received

Receiver Sliding Window This wall moves to the right frame by frame, when a frame is received This wall moves to the right the size of several frames at a time when ACK is sent

Sliding Window Example Data 0 Data 1 ACK 2 Data 2 ACK 3 Data 3 Data 4 Data 5 ACK 6

Sender Data 0 Data 1 ACK 2 Data 2 ACK 3 Data 3 Data 4 Data 5 ACK 6

Receiver Data 0 Data 1 ACK 2 Data 2 ACK 3 Data 3 Data 4 Data 5 ACK 6

Error Control Error control is based on Automatic Repeat Request (ARQ), which means retransmission of data in three cases: damaged frames, lost frames, and lost acknowledgement .

Error control Stop-and-wait ARQ Sliding window ARQ Go-back-n Selective-reject

Stop-and-Wait ARQ Four features are added to the basic algorithm: The sending device keeps a copy of the last frame transmitted until it receives and ACK. Both data frames and ACK frames are numbered alternatively 0 and 1. A data i frame is acknowledged by ACKi frame.

If an error is discovered in a data frame, A NAK frame is returned to tell the transmitter to retransmit the last frame sent. The sending device is equipped with a timer. If an expected ACK is not received within a certain time, the sender retransmits the last frame.

Damaged Frame

Lost Frame

Lost ACK

Sliding Window ARQ Three functions are needed to extend the algorithm: The sending device keeps copies of all transmitted frames until they have been acknowledged. The receiver transmits NAK frames which carry the number of the damaged frames. The sending device is equipped with a timer to handle lost acknowledgements.

Go-Back-n ARQ If one frame is lost or damaged, all frames sent since the last frame acknowledged are retransmitted. NAK i tells the transmitter that all frames received before data i have arrived intact. It also indicates that data i has arrived damaged.

Go-Back-n Damaged Frame

Go-back-n Lost Frame

Go-back-n Lost ACK

Selective-Reject ARQ - Only the specific damaged or lost frame is retransmitted. It needs the following functions: The receiving device must contain a sorting logic to reorder out of sequence frames. The sender must contain a searching mechanism to select the requested frame.

A buffer in the transmitter must keep all previously received frames on hold until they are sorted. ACK numbers refer to the frame received. Maximum window size is (n+1)/2.

Selective Reject