Data Link Control We want to minimize the amount of error correcting and detecting we need to do.

Slides:



Advertisements
Similar presentations
Sliding window protocols:  Window: subset of consecutive frames  only frames in window can be sent.
Advertisements

Network Operations & administration CS 4592 Lecture 15 Instructor: Ibrahim Tariq.
11-1 FRAMING The data link layer needs to pack bits into frames, so that each frame is distinguishable from another. Our postal system practices a type.
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,
Chapter 11 Data Link Control
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.
11.1 Chapter 11 Data Link Control Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Chapter 7 – Data Link Control Protocols
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 13 Introduction to Computer Networks.
The Data Link Layer Chapter 3. Position of the data-link layer.
Chapter 9: Data Link Control Business Data Communications, 4e.
20101 The Data Link Layer Chapter Design Issues Controls communication between 2 machines directly connected by “wire”-like link Services Provided.
11.1 Chapter 11 Data Link Control Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
NETWORKING CONCEPTS. DATA LINK LAYER Data Link Control main functions of the data link layer are Data link control media access control. Data link control.
Link-Level Flow and Error Control
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 Protocols
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Chapter 11 Data Link Control Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction.
11.1 Chapter 11 Data Link Control Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Chapter 11: Flow Control – can occur at layer 2 (data link) and at layer 4 (transport)  You saw the need in the most recent assignment.  Data packets.
11.1 Chapter 11 Data Link Control Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
1 Kyung Hee University Chapter 11 Data Link Control.
Data Link Layer We have now discussed the prevalent shared channel technologies  Ethernet/IEEE  Wireless LANs (802.11) We have now covered chapters.
11.1 Chapter 11 Data Link Control Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Data Link Control and Protocols.
ICOM 6115©Manuel Rodriguez-Martinez ICOM 6115 – Computer Networks and the WWW Manuel Rodriguez-Martinez, Ph.D. Lecture 14.
11.1 Chapter 11 Data Link Control Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Chapter 5 Peer-to-Peer Protocols and Data Link Layer PART I: Peer-to-Peer Protocols ARQ Protocols and Reliable Data Transfer Flow Control.
Computer Networks Module 3: Data Link Layer (Framing) Dr. Vikram Shete St. Francis Institute of Technology.
Chapter 11 Data Link Control
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.
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.
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.
Chapter 11 Data Link Control.
Data Link Layer. Link Layer The data unit to be transmited at the link layer is called a frame. Why link layer? How can it know where a frame begins and.
Part III. Data Link Layer Chapter 11. Data Link Control COMP 3270 Computer Networks Computing Science Thompson Rivers University.
DATA LINK CONTROL. DATA LINK LAYER RESPONSIBILTIES  FRAMING  ERROR CONTROL  FLOW CONTROL.
11.1 Chapter 11 Data Link Control Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
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 Link Layer.
Data Link Control. The two main functions of the data link layer are data link control and media access control. The first, data link control, deals with.
Powerpoint Templates Data Communication Muhammad Waseem Iqbal Lec # 15.
Computer Communication & Networks
2.10 Flow and Error Control Before that ...
Chapter 9: Data Link Control
Data Link Layer Flow Control.
Part III Datalink Layer 10.
Chapter 11 Data Link Control
UNIT 4 Data Link Control Line Discipline Flow Control Error Control
Chapter 11 Data Link Control
Instructor Mazhar Hussain
Data Link Layer What does it do?
CIS 321 Data Communications & Networking
Flow Control.
Data Link Layer: Data Link Control
Flow and Error Control.
Overview Jaringan Komputer (2)
Data Link Layer (cont’d)
Chapter 11 Data Link Control
Data Link Layer (cont’d)
Chapter 9: Data Link Control
Presentation transcript:

Data Link Control We want to minimize the amount of error correcting and detecting we need to do

Framing The primary purpose of the data link layer is to ensure data moves from one end of a link to the other accurately. One issue is how to separate different information being sent over the link. The way this is done is through framing. Framing adds addresses for the sender and receiver to facilitate communication between mutiple devices sharing a physical link. It also provides a way of dividing up large transmissions to reduce the quantity of material that needs to be resent in case of an error.

Two types of framing Fixed-size: Pretty self explanatory –Wastes resources if we are sending lots of half- empty frames. Variable-size: –Frames can be sized to match data segments, so no wasted resources –More overhead to mark beginning and end of frame.

Character-oriented framing: –Frame length is in multiples of bytes. –Headers and trailers also in multiples of bytes. –Use special 1 byte flags at beginning and end of frame. –Fine if all you’re sending is text, but if you’re sending other data, some might match the flag. –Byte stuffing inserts a special byte (usually ESC) into the data section before a byte that matches the flag.

Bit-oriented framing: –Mostly use pattern as the flag. –If that pattern appears in the data segment, we use bit stuffing to insert an extra 0 after an sequence that looks like

Data rate control What if the two ends of a given link cannot communicate at the same speed? Flow control is the process by which the sender and receiver negotiate how much data can be sent before the receiver needs to send an acknowledgement. Error control is the process by which the receiver informs the sender about lost/damaged frames and arranges to have those frames resent.

Protocols These negotiations are not left entirely up to the devices on either side of a link. Rather, they agree on a system to decide these things. This system is called a protocol.

Noiseless channels If we can presume the channel is noiseless (which we never can), the protocols are very simple: –Simplest protocol has no flow or error control. Event driven Frames are simply sent and assumed to be received and processsed –Stop-and-Wait has maximal flow control; no error control Sender sends a frame Sender won’t send another frame until it receives an ACK from the receiver.

Noisy channels Of course, most channels are noisy, so we need to have some level of error control. –Stop-and-Wait Automatic Repeat Request (ARQ) If a damaged frame arrives at the receiver, no ACK is sent. If a certain time passes without receiving an ACK, the frame is re-sent. In order to know which frames are being sent, frames need to be numbered.

Go-Back-N ARQ –Stop-and-wait is inefficient. The link spends a lot of time idle. –Pipelining is where we start a new task before a previous task is done. So the sender can start sending further frames before receiving an ACK about one already sent. –A sliding window is the range of frames (sequence numbers) that the sender and receiver are concerned with. For the sender, the window is frames sent for which it hasn’t received an ACK and the frames that it is waiting to send.

–For the receiver the window is always 1 frame - the next one it is expecting to receive. –When the receiver gets a frame, it sends an ACK and moves its window over one. –If the frame is damaged, no ACK is sent and the window doesn’t move. –Frames that aren’t in the window that arrive are discarded. –After the minimal time to wait for an ACK passes, the sender resends all the already sent frames in its window.

Selective Repeat ARQ –Go-Back-N is inefficient in that lots of otherwise valid frames get discarded because the receiver’s window only has size 1. –Why not make the receiver’s window the same size as the sender’s window? –The primary restriction is that the start of the sender’s window must always be the earliest non-ACKed frame. –If a frame is lost, it is re-sent after the timer expires. –If a frame is corrupted, the receiver sends a NAK to the sender, and the frame is resent.

Piggybacking All of the protocols we’ve just discussed apply specifically to communication in one direction. Most communication, of course, is bi- directional. Piggybacking is the process by which ACK and NAK signals are attached to normal data frames that are sent back and forth, to maximize the amount of data being sent.