Communication Networks NETW 501

Slides:



Advertisements
Similar presentations
Data link control. Data Link Control –Flow Control how much data may sent –Error Control How can error be detected and corrected.
Advertisements

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.
ELEN 602 Lecture 5 Review of last lecture –Error Detection -- parity/CRC etc. Automatic Retransmission Request (ARQ) Reading: Chap
Data Link Layer Review Advanced Computer Networks.
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.
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.
CS 4396 Computer Networks Lab
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Chapter 11 Data Link Control Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction.
Data Link Layer We have now discussed the prevalent shared channel technologies  Ethernet/IEEE  Wireless LANs (802.11) We have now covered chapters.
Chi-Cheng Lin, Winona State University CS 313 Introduction to Computer Networking & Telecommunication Data Link Layer Part I – Designing Issues and Elementary.
ICOM 6115©Manuel Rodriguez-Martinez ICOM 6115 – Computer Networks and the WWW Manuel Rodriguez-Martinez, Ph.D. Lecture 14.
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.
1 TCP III - Error Control TCP Error Control. 2 ARQ Error Control Two types of errors: –Lost packets –Damaged packets Most Error Control techniques are.
COSC 3213: Computer Networks I Instructor: Dr. Amir Asif Department of Computer Science York University Section M Topics: 1. Error Detection Techniques:
Computer Networks Lecture 3: Data Link - part II Based on slides from D. Choffnes Northeastern U. and P. Gill from StonyBrook University Revised Autumn.
Error/Flow Control Modeling (ARQ Modeling). © Tallal Elshabrawy 2 Data Link Layer  Data Link Layer provides a service for Network Layer (transfer of.
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.
© 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.
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.
COMMUNICATION NETWORKS NETW 501 TUTORIAL 9 Presented by: Eng. Hana Hesham Eng. Mohamed Atef.
DATA LINK CONTROL. DATA LINK LAYER RESPONSIBILTIES  FRAMING  ERROR CONTROL  FLOW CONTROL.
Data Link Layer.
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
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.
Data link layer (LLC).
Data Communications and Networking Pipelined reliable data transfer
CMPT 371 Data Communications and Networking
Instructor Mazhar Hussain
Data Link Layer What does it do?
CIS 321 Data Communications & Networking
Flow Control.
Communication Networks NETW 501
Data Link Layer: Data Link Control
Overview Jaringan Komputer (2)
Communication Networks NETW 501
Communication Networks NETW 501
Data Link Layer as a Reliable Data Transport Protocol
Communication Networks NETW 501
CS412 Introduction to Computer Networking & Telecommunication
Chapter 5 Peer-to-Peer Protocols and Data Link Layer
Data Link Layer (cont’d)
Communication Networks NETW 501
Communication Networks NETW 501
Communication Networks NETW 501
CS4470 Computer Networking Protocols
Communication Networks NETW 501
Advanced Computer Networks
DATA COMMUNICATION Lecture-38.
Getting Connected (Chapter 2 Part 3)
Data Link Layer (cont’d)
TCP III - Error Control TCP Error Control.
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:

Communication Networks NETW 501 Lecture 7 Data Link Layer: Error Control & Flow Control Course Instructor: Dr.-Ing. Maggie Mashaly maggie.ezzat@guc.edu.eg C3.220

Data Link Layer Network LLC MAC Physical Data Link Layer provides a service for Network Layer (transfer of data from the network layer of a sender to the network layer of a receiver) Data Link Layer uses the Physical Layer to transmit bits of Data Link Frames over the physical medium LLC MAC Network Physical

Bit errors in Communication Systems At the physical layer, bit errors are inevitable to occur with small but non zero probability, example: Bit error probability in the order of 10-6 for systems using copper wires Bit error probability in the order of 10-9 for modern optical fiber systems High bit error probability in the order of 10-3 for wireless transmission systems Some services are tolerant to relatively high bit error rates such as digital speech transmission Some applications must experience error-free communications such as electronic funds transfer

Error Control Error Control is a system to deal with errors that occur due to disturbances on the physical channel. Components of an error control system: Error Correction and Detection Acknowledgement (ACK) & Non- Acknowledgement Control Messages (NAK) Timers Frame Sequencing Sender Receiver Data Frame No Errors Detection/ Correction ACK Frame is Good 1 Errors Timer 1 Detection/ Correction 1 No Errors 1 Detection/ Correction ACK Frame is Good

Error Control Mechanisms Forward Error Correction (FEC) Detection of erroneous frames or packets Processing of received frame bits in attempt to correct the errors Automatic Retransmission reQuest (ARQ) Retransmission of erroneous frames with the hope that no errors would occur in the next attempt

(Error Control & Flow Control ) Automatic Repeat reQuest (ARQ) protocols Purpose: To ensure a sequence of information packets is delivered in order and without errors or duplications despite transmission errors & losses (Error Control & Flow Control ) We will look at: Stop-and-Wait ARQ Go-Back N ARQ Selective Repeat ARQ

Stop and Wait Protocol

Stop-and–Wait ARQ Stop after Transmitting a Packet Wait for an Acknowledgement H : Header CRC : Cyclic Redundancy Check (Error Detection)

Importance of Sequence Numbers Sender Receiver Sender Receiver Frame 0 Frame 0 ACK ACK Frame 1 Frame 1 ACK Timeout Timeout Frame 1 Frame 1 ACK ACK Frame 2 Frame 2 In Scenario B, the receiver accepts Frame 1 Twice If the frame number is not included in the header, how could the receiver distinguish whether or not it has received Frame 1 correctly? THEREFORE: IT IS ESSENTIAL TO INCLUDE THE FRAME SEQUENCE NUMBER IN THE HEADER

BY INCLUDING THE SEQUENCE NUMBER IN THE ACK Sequence Numbers in ACK Frames The sender may mistakenly interpret ACK as it assumes that the second ACK was for Frame 1 How Could the Sender Know which Frame does an ACK correspond to? BY INCLUDING THE SEQUENCE NUMBER IN THE ACK Sender Receiver ACK Frame 0 Frame 1 Frame 2 C Timeout

Stop–and–Wait ARQ Operation Machine A Machine B Physical Channel First Packet-Bit enters Channels First Packet-Bit arrives at B Last Packet-Bit enters Channels Last Packet-Bit arrives at B Channel is Idle Processing Time for Error Detection Last ACK-Bit Arrives at A The Channel Idle Time (Wait for ACK) is an Inefficiency because the channel is not used

t0=Total Time to Transmit 1 Frame Stop–and–Wait ARQ Efficiency Machine A Machine B Physical Channel t0=2tprop+2tproc+tf+ta t0=2tprop+2tproc+Lf/R+La/R tprop tf=Lf/R t0=Total Time to Transmit 1 Frame tproc ta=La/R tprop tprop Propagation Time tproc Processing Time tf Frame Transmission Time ta ACK Transmission Time Lf No. of Bits/Frame La No. of Bits/ACK tproc

Effective Transmission Rate Transmission Efficiency Error-Free Channel Effective Transmission Rate Headers and CRC Effect of Header Effect of ACK Effect of Delay Bandwidth Product Transmission Efficiency

The Expected Efficiency Noisy Channel Pf is the probability of Frame Error If k Transmissions are Required The Efficiency is The Expected Efficiency

References NETW 501 Lectures slides by Assoc. Prof. Tallal El-Shabrawy “Communication Networks 2nd Edition”, A. Leon-Garcia and I. Widjaja, McGraw Hill, 2013 “Computer Networks 4th Edition”, A. S. Tanenbaum, Pearson International