Data Link Layer (cont’d)

Slides:



Advertisements
Similar presentations
Chapter 3 The Data Link Layer.
Advertisements

Data Link Layer Protocols Flow Control in Data Link Layer.
Data Link Layer (cont’d)
The Data Link Layer Chapter 3. Data Link Layer Design Issues Services Provided to the Network Layer Framing Error Control Flow Control.
Network Operations & administration CS 4592 Lecture 15 Instructor: Ibrahim Tariq.
Data Link Control We want to minimize the amount of error correcting and detecting we need to do.
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.
ELEN 602 Lecture 5 Review of last lecture –Error Detection -- parity/CRC etc. Automatic Retransmission Request (ARQ) Reading: Chap
Data Link Layer as a Reliable Data Transport Protocol Computer Networks Computer Networks Term B10.
Data Link Layer Review Advanced Computer Networks.
Chapter 7 – Data Link Control Protocols
Networks: Data Link Layer1 Data Link Layer. Networks: Data Link Layer2 Data Link Layer Provides a well-defined service interface to the network layer.
Networks: Data Link Layer1 Data Link Layer. Networks: Data Link Layer2 Data Link Layer Provides a well-defined service interface to the network layer.
Computer Networks: Data Link Layer 1 Data Link Layer.
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 12 Introduction to Computer Networks.
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 13 Introduction to Computer Networks.
20101 The Data Link Layer Chapter Design Issues Controls communication between 2 machines directly connected by “wire”-like link Services Provided.
1 Reliable Data Transfer. 2 r Problem: Reliability  Want an abstraction of a reliable link even though packets can be corrupted or get lost r Solution:
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
ARQ Mechanisms Rudra Dutta ECE/CSC Fall 2010, Section 001, 601.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Chapter 11 Data Link Control Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction.
Chi-Cheng Lin, Winona State University CS 313 Introduction to Computer Networking & Telecommunication Data Link Layer Part I – Designing Issues and Elementary.
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.
Error/Flow Control Modeling (ARQ Modeling). Modeling of Go Back N.
The Data Link Layer Chapter 3 10/28/2015www.noteshit.com1.
Data Link and Flow Control Networks and Protocols Prepared by: TGK First Prepared on: Last Modified on: Quality checked by: Copyright 2009 Asia Pacific.
Computer Networks Lecture 3: Data Link - part II Based on slides from D. Choffnes Northeastern U. and P. Gill from StonyBrook University Revised Autumn.
Eighth Edition by William Stallings Chapter 7 – Data Link Control Protocols Data Link Control Protocols need layer of logic above Physical to manage exchange.
The Data Link Layer Chapter 3 1/21/2016www.ishuchita.com1.
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.
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 LINK CONTROL. DATA LINK LAYER RESPONSIBILTIES  FRAMING  ERROR CONTROL  FLOW CONTROL.
Data Link Layer as a Reliable Data Transport Protocol Advanced Computer Networks Advanced Computer Networks Term D11.
NET 222: COMMUNICATIONS AND NETWORKS FUNDAMENTALS ( NET 222: COMMUNICATIONS AND NETWORKS FUNDAMENTALS (PRACTICAL PART) Tutorial 4 : Chapter 7 Data & computer.
Chapter 3: The Data Link Layer –to achieve reliable, efficient communication between two physically connected machines. –Design issues: services interface.
Computer Communication & Networks
2.10 Flow and Error Control Before that ...
Reliable Transmission
Data Link Layer Flow Control.
Data Link Layer - 3 Dr. Sanjay P. Ahuja, Ph.D.
March 21, 2001 Recall we have talked about the Sliding Window Protocol for Flow Control Review this protocol A window of size I can contain at most I.
Part III Datalink Layer 10.
UNIT 4 Data Link Control Line Discipline Flow Control Error Control
Chap. 4 Data link layer 2.
Instructor Mazhar Hussain
3.2 Data Link Layer : Error & Flow Control
Data Link Layer What does it do?
CIS 321 Data Communications & Networking
Flow Control.
Chapter 3 – Part 1 The Data Link Layer.
Data Link Layer: Data Link Control
Rivier College CS575: Advanced LANs Chapter 6: Logical Link Control
Flow and Error Control.
Overview Jaringan Komputer (2)
Data Link Layer as a Reliable Data Transport Protocol
CS412 Introduction to Computer Networking & Telecommunication
Chapter 5 Peer-to-Peer Protocols and Data Link Layer
Data Link Layer (cont’d)
Advanced Computer Networks
DATA COMMUNICATION Lecture-38.
Chapter 5 Peer-to-Peer Protocols and Data Link Layer
Lecture 4 Peer-to-Peer Protocols and Data Link Layer
Presentation transcript:

Data Link Layer (cont’d) Elementary data link protocols an unrestricted simplex protocol simplex error-free channel infinitely high processing capability of the receiver 1 2 3 4 5 6 7 8 9 ... 1 2 3 4 5 6 7 8 9

Data Link Layer (cont’d) Elementary data link protocols (cont’d) a simplex stop-and-wait protocol simplex error-free channel at most one outstanding frame at a time ACK’s are used (automatic repeat request, ARQ) 1 2 3 ACK ACK ACK

Data Link Layer (cont’d) Elementary data link protocols (cont’d) a simplex protocol for a noisy channel simplex frames may be lost or damaged ACK and time-out mechanism are used sequence numbers are used to avoid duplicates 1 time-out 1 1 1 2 ACK ACK duplicate Example 1 Example 2

Data Link Layer (cont’d) Sliding window protocols bidirectional piggybacking is used frames may be lost or damaged ACK and time-out mechanism are used sequence numbers are used

Data Link Layer (cont’d) Sliding window protocols (cont’d) sending window (SW): a set of sequence numbers for frames sent out but not yet ack’ed receiving window (RW): a set of sequence numbers for frames the receiver is permitted to accept Fig. 3-12, p.204

Data Link Layer (cont’d) Sliding window protocols (cont’d) one-bit sliding window protocols one bit for sequence numbers (0 and 1) max. SW size = max. RW size =1 stop-and-wait protocol Fig. 3-14, p. 207

Data Link Layer (cont’d) Sliding window protocols (cont’d) a protocol using go-back-n pipelining is used (multiple outstanding frames) single resequencing buffer (RW size = 1) only the in-sequence frame is accepted by the receiver SW size is Max_Seq

Data Link Layer (cont’d) Sliding window protocols (cont’d) a protocol using go-back-n (cont’d) effect of receiver buffer size Fig. 3-15, p. 208

Data Link Layer (cont’d) Sliding window protocols (cont’d) a protocol using go-back-n (cont’d) SW size is Max_Seq example with Max_Seq = 7 and SW size = 8 but not 7 The sender sends frames 0 through 7. The piggybacked ACK’s for frames 0 through 7 are lost. The sender resends frames 0 through 7 after time-out. The receiver accepts duplicate frames 0 through 7.

Data Link Layer (cont’d) Sliding window protocols (cont’d) a protocol using selective repeat the same as go-back-n except that the receiving buffer size > 1 [= (Max_Seq+1)/2] max. SW size = (Max_Seq+1)/2 NAK’s are used when frame errors or out-of-sequence frames are detected to request the retrans. of such frames Fig. 3-19, p. 218

Data Link Layer (cont’d) Sliding window protocols (cont’d) remarks NAK’s can also be used in go-back-n protocols NAK’s can speed up retransmissions typically SW size + RW size = Max_Seq + 1 the above three sliding window protocols differ among themselves in terms of efficiency, complexity and buffer requirement

Data Link Layer (cont’d) Protocol specification and verification finite state machines for protocol modeling components of a finite state machine states (including one particular initial state) transitions (event driven) reachability analysis for protocol correctiveness incompleteness deadlock extraneous transition

Data Link Layer (cont’d) Protocol specification and verification (cont’d) example 2 states for the sender and the receiver respectively 4 states for the channel (sending 0, 1, ACK frame or idle) 10 system states [(000) as initial] & 9 kinds of transitions (Fig. 3-20, p. 221)