Data Link Layer: Data Link Control

Slides:



Advertisements
Similar presentations
Network Operations & administration CS 4592 Lecture 15 Instructor: Ibrahim Tariq.
Advertisements

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.
William Stallings Data and Computer Communications 7th Edition
Data Link Control We want to minimize the amount of error correcting and detecting we need to do.
Chapter 11 Data Link Control
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.
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 Layer RAHUL DEVA.
Unit IV Data Link Control: Data link layer is the second layer in ISO OSI model. The two main functions of DLL are Data link control which deals with the.
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.
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.
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.
1 Transport Layer Lecture 10 Imran Ahmed University of Management & Technology.
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.
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.
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.
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.
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.
Powerpoint Templates Data Communication Muhammad Waseem Iqbal Lec # 15.
Computer Communication & Networks
2.10 Flow and Error Control Before that ...
Reliable Transmission
Chapter 9: Data Link Control
Data Link Layer Flow Control.
Data Link Layer - 3 Dr. Sanjay P. Ahuja, Ph.D.
Part III Datalink Layer 10.
Chapter 11 Data Link Control
Net 221D : Computer Networks Fundamentals
B. R. Chandavarkar CSE Dept., NITK Surathkal
Data link layer (LLC).
Chapter 11 Data Link Control
Chapter 11 Data Link Control
Chap. 4 Data link layer 2.
Instructor Mazhar Hussain
Data Link Layer What does it do?
Chapter 3 Data Link Layer.
CIS 321 Data Communications & Networking
Subject Name: Computer Communication Networks Subject Code: 10EC71
Flow Control.
Chapter 3 – Part 1 The Data Link Layer.
Chapter 10 Data Link Control
Rivier College CS575: Advanced LANs Chapter 6: Logical Link Control
Flow and Error Control.
Overview Jaringan Komputer (2)
CS412 Introduction to Computer Networking & Telecommunication
Chapter 5 Peer-to-Peer Protocols and Data Link Layer
Chapter 11 Data Link Control and Protocols.
Data Link Layer (cont’d)
CS4470 Computer Networking Protocols
Kendali Data Link dan Protokol
Chapter 11 Data Link Control
Data Link Layer (cont’d)
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
data link Control layer (DLC) – ARQ protocols
Presentation transcript:

Data Link Layer: Data Link Control

Outline Framing Data Link Control Protocols Byte vs. bit oriented protocols Data Link Control Flow control Error control Protocols

Framing Process of wrapping data with certain info before sending out A frame typically consists of Flag: indication for start and end of a frame Header: source/destination addresses, as well as other control information Data from the upper layer Trailer: error detection/correction code

Byte vs. Bit Oriented Framing in byte-oriented protocols Framing in bit-oriented protocols

Byte Stuffing Process of adding extra byte whenever there is an escape or a flag character in the data

Bit Stuffing Process of adding extra bit to ensure flag sequence does not appear in the data 01111110

Flow Control and Error Control A set of procedures that tells the sender how much data can be sent before waiting for acknowledgment Error control Includes both error detection and correction Allows receiver to inform sender of lost or duplicate frames Mostly based on Automatic Repeat Request (ARQ)

Data Link Protocols

Protocols for Noiseless Channel Assuming channel is error free Not realistic… No need for error control

"Simplest" Mechanism Assuming Noiseless channel Unlimited buffer and speed for the receiver

"Simplest": Flow Diagram

Stop-and-Wait Mechanism Still noiseless channel Receiver has limited buffer Requires flow control Sender sends one frame at a time and wait for an acknowledgment

Stop-and-Wait: Overview

Stop-and-Wait: Flow Diagram

Noisy Channel Realistic Mechanisms: Error can and will happen Require error control Mechanisms: Stop-and-Wait ARQ Go-Back-N ARQ Selective Repeat ARQ

Stop-and-Wait ARQ Sender keeps a copy of sent frame until successful delivery is ensured Receiver responds with an ack when it successfully receives a frame Both data and ack frames must be numbered When sender does not receive an ack within certain time, it assumes frame is lost, then retransmits the same frame.

Stop-and-Wait ARQ

Flow Diagram: Normal Operation Sender Receiver S = 0 R = 0 Frame 0 Deliver ACK 1 R = 1 S = 1 Frame 1 Deliver ACK 0 R = 0 Time Time

 Thinking Corner Why data frames need to be numbered?

Flow Diagram: Lost Frame Sender Receiver S = 0 R = 0 Frame 0 Deliver ACK 1 R = 1 S = 1 Frame 1 Timeout Frame 1 Deliver ACK 0 R = 0 Time Time

Frame 0 expected; discard Flow Diagram: Lost ACK Sender Receiver S = 0 R = 0 Frame 0 Deliver ACK 1 R = 1 S = 1 Frame 1 Timeout Deliver ACK 0 R = 0 S = 1 Frame 1 Frame 0 expected; discard ACK 0 R = 0 S = 0 Time Time

 Thinking Corner Why ACK frames need to be numbered?

Flow Diagram: Delayed ACK Sender Receiver S = 0 R = 0 Frame 0 Timeout Deliver ACK 1 R = 1 Frame 0 Frame 0 expected; discard S = 1 ACK 1 Frame 1 Timeout R = 1 Frame 1 Deliver ACK 0 R = 0 S = 0

Flow diagram

Bidirectional Transmission Data are transferred both ways ACK are "piggybacked" with data frames

Go-Back-N ARQ Allows multiple frames to be sent before waiting for ACK These frames must be numbered differently Frame numbers are called Sequence numbers Frames must be received in the correct order If a frame is lost, the lost frame and all of the following frames must be retransmitted

Sequence Numbers Frame header contains m bits for sequence number That allows up to 2m different frame numbers How big should m be?

Sending Window Sending more than one frame at once requires sender to buffer multiple frames Known as "sending window" Any of these frames in the window can be lost

"Sliding" Window Once the first frames in the window is ACKed ACKed frames are removed from the buffer More frames are transmitted Result: The window slides to the right

Receiving Window Receiver expects one frame at a time

Send window for Go-Back-N ARQ

Receive window for Go-Back-N ARQ

Go-Back-N: Window Sizes For m-bit sequence numbers Send window size: at most 2m-1  Up to 2m-1 frames can be sent without ACK Receive window size: 1  Frames must be received in order

Go-Back-N: Normal Operation

Go-Back-N: Lost Frame ACKs are cumulative

 Thinking Corner Stop-and-Wait is a special case of Go-Back-N. What is the send window size in Stop-and-Wait?

Selective Repeat ARQ Go-Back-N always discards out-of-order frames Losing one frame may result in retransmission of multiple frames Very inefficient in noisy link Selective Repeat ARQ allows frames to be received out of order Therefore, receive window > 1

Send Window

Receive Window

Negative ACK Used by receiver to indicate missing frame

Multiple Access Mechanisms

ALOHA Protocol

Collision in CSMA B C

Persistence Methods What a station does when channel is idle or busy

Persistence Methods

CSMA/CD: Flow Diagram