Data Link and Flow Control Networks and Protocols Prepared by: TGK First Prepared on: Last Modified on: Quality checked by: Copyright 2009 Asia Pacific.

Slides:



Advertisements
Similar presentations
William Stallings Data and Computer Communications 7th Edition
Advertisements

EE 4272Spring, 2003 Chapter 7 Data Link Control Objectives: Effective & reliable data communication between two directly connected transmitting-receiving.
EIE325: Telecommunication TechnologiesMaciej J. Ogorza ł ek, PolyU, EIE Telecommunication Technologies Week 8 Flow Control Error Control.
William Stallings Data and Computer Communications 7th Edition
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.
Chapter 6 Errors, Error Detection, and Error Control.
Chapter 7 – Data Link Control Protocols
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.
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.
William Stallings Data and Computer Communications 7 th Edition Chapter 7 Data Link Control Protocols.
1 Comnet 2006 Communication Networks Recitation 8 ARQ Protocols & Performance.
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.
William Stallings Data and Computer Communications 7 th Edition (Selected slides used for lectures at Bina Nusantara University) Error Control.
Chapter 6 Errors, Error Detection, and Error Control
Semester Copyright USM EEE442 Computer Networks The Data Link / Network Layer Functions: Flow Control and Error Control En. Mohd Nazri Mahmud.
1 Netcomm 2005 Communication Networks Recitation 8.
EE 4272Spring, 2003 Chapter 7 Data Link Control Objectives: Effective & reliable data communication between two directly connected transmitting-receiving.
Lect11.ppt - 03/15/05 CDA 6505 Network Architecture and Client/Server Computing Lecture 11 Link-Level Flow and Error Control by Zornitza Genova Prodanoff.
Link-Level Flow and Error Control
D ATA L INK L AYER By Dr. Nawaporn Wisitpongphan.
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.
William Stallings Data and Computer Communications 7th Edition
Data and Computer Communications Ninth Edition by William Stallings Chapter 7 – Data Link Control Protocols Data and Computer Communications, Ninth Edition.
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
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.
THE DATA LINK LAYER Chapter 3 1. H YBRID M ODEL The hybrid reference model to be used in this book. 2.
Lecture 3-2: Coding and Error Control (Cont.) ECE
1 Chapter Six - Errors, Error Detection, and Error Control Chapter Six.
Data Communications & Computer Networks, Second Edition1 Chapter 6 Errors, Error Detection, and Error 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.
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.
Telecommunications & Networking Lesson 3. ISO Open System Interconnect (OSI) Application Presentation Session Transport Network Data Link Physical Application.
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.
DATA LINK CONTROL. DATA LINK LAYER RESPONSIBILTIES  FRAMING  ERROR CONTROL  FLOW CONTROL.
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.
William Stallings Data and Computer Communications Chapter 7 Data Link Control.
1 Wireless Networks Lecture 5 Error Detecting and Correcting Techniques (Part II) Dr. Ghalib A. Shah.
Coding and Error Control
Chapter 3 The Data Link Layer.
MODULE I NETWORKING CONCEPTS.
Chapter 9: Data Link Control
The Data Link Layer Supplementery Slides
Data Link Layer Flow Control.
Data link layer (LLC).
Chap. 4 Data link layer 2.
Instructor Mazhar Hussain
Data Link Layer What does it do?
Flow Control.
Flow and Error Control.
Overview Jaringan Komputer (2)
Chapter 5 Peer-to-Peer Protocols and Data Link Layer
Chapter 5 Peer-to-Peer Protocols and Data Link Layer
Lecture 4 Peer-to-Peer Protocols and Data Link Layer
William Stallings Data and Computer Communications
Chapter 9: Data Link Control
Presentation transcript:

Data Link and Flow Control Networks and Protocols Prepared by: TGK First Prepared on: Last Modified on: Quality checked by: Copyright 2009 Asia Pacific Institute of Information Technology

Networks and Protocols Data Link and Flow Control Slide 2 of 27 Topic & Structure of the lesson Overview of Data Link Control and Flow Control Mechanisms Flow Control Techniques Error Detection Techniques Error Control Techniques

Networks and Protocols Data Link and Flow Control Slide 3 of 27 Learning Outcomes At the end of this module, YOU should be able to: Discuss Asynchronous and Synchronous communications Discuss Stop-and-Wait and Sliding Windows flow-control techniques Discuss the Parity check and Cyclic Redundancy Check approaches for error detection Discuss error control techniques of Automatic Repeat Request - Stop-and-Wait, Sliding Window and Selective Reject

Networks and Protocols Data Link and Flow Control Slide 4 of 27 Key Terms you must be able to use If you have mastered this topic, you should be able to use the following terms correctly in your assignments and exams: Flow Control Error Detection Error Control

Networks and Protocols Data Link and Flow Control Slide 5 of 27 Main Teaching Points SYNC characters START and STOP Bits ACK status Sliding Windows ODD and EVEN parity Automatic Repeat Request Stop-and-Wait ARQ Sliding Window Selective Reject

Networks and Protocols Data Link and Flow Control Slide 6 of 27 Overview of Data Link Control and Flow Control Mechanisms Synchronous Communications Receiver clock operates in synchronism with the received signal The clocking signal is embedded into the transmitted bit stream and subsequently extracted by the receiver (SYN characters) Asynchronous Communications The receiver’s clock runs asynchronously with respect to incoming signal A Byte is framed by a START and STOP bit

Networks and Protocols Data Link and Flow Control Slide 7 of 27 The START bit changes the signal to Non-Idle state, this warns receiver a byte is arriving Eight (8) data bits follow The STOP bit follows the data bits and returns the signal to the Idle state Overview of Data Link Control and Flow Control Mechanisms

Networks and Protocols Data Link and Flow Control Slide 8 of 27 Flow Control Techniques Stop-and-Wait Source transmits frame Destination receives frame and replies with acknowledgement Source waits for ACK before sending next frame Destination can stop flow by not send ACK Works well for a few large frames Sliding Windows Allow multiple frames to be in transit Receiver has buffer of W long/length Transmitter can send up to W frames without ACK

Networks and Protocols Data Link and Flow Control Slide 9 of 27 Allow multiple frames to be in transit Receiver has buffer W long Transmitter can send up to W frames without ACK Each frame is numbered ACK includes number of next frame expected Sequence number bounded by size of field (k) –Frames are numbered modulo 2 k Following figure shows the sliding-windows technique operation: Flow Control Techniques

Networks and Protocols Data Link and Flow Control Slide 10 of 27 Flow Control Techniques

Networks and Protocols Data Link and Flow Control Slide 11 of 27 Sliding Windows Enhancements Receiver can acknowledge frames without permitting further transmission (Receive Not Ready) Must send a normal acknowledge to resume If duplex, use piggybacking  If no data to send, use acknowledgement frame  If data but no acknowledgement to send, send last acknowledgement number again, or have ACK valid flag (TCP) Flow Control Techniques

Networks and Protocols Data Link and Flow Control Error Detection Techniques Parity Check Additional bits added by transmitter for error detection code Parity Value of parity bit is such that character has even (even parity) or odd (odd parity) number of ones Even number of bit errors goes undetected Example : Odd parity Check  (data will be accepted)  (reject because single bit error)

Networks and Protocols Data Link and Flow Control Slide 13 of 27 Disadvantage:  (data will be accepted) but the message has burst error Cyclic Redundancy Check For a block of k bits transmitter generates n bit sequence Transmit k+n bits which is exactly divisible by some number Receive divides frame by that number If no remainder, assume no error Error Detection Techniques

Networks and Protocols Data Link and Flow Control Slide 14 of 27 Error Control Techniques Automatic Repeat Request Detection and correction of errors Lost frames Damaged frames Features: Positive acknowledgment Retransmission after timeout Negative acknowledgement and retransmission Techniques adopted: Stop and Wait ARQ Sliding window Selective reject (selective retransmission)

Networks and Protocols Data Link and Flow Control Error Control Techniques Stop and Wait ARQ Source transmits single frame Wait for ACK If received frame damaged, discard it Transmitter has timeout If no ACK within timeout, retransmit

Networks and Protocols Data Link and Flow Control Slide 16 of 27 If ACK damaged transmitter will not recognize it Transmitter will retransmit Receive gets two copies of frame Use ACK0 and ACK1 Go-Back-N ARQ Based on sliding window If no error, ACK as usual with next frame expected Use window to control number of outstanding frames If error, reply with rejection Discard that frame and all future frames until error frame received correctly Error Control Techniques

Networks and Protocols Data Link and Flow Control Slide 17 of 27 Transmitter must go back and retransmit that frame and all subsequent frames Go-Back-N ARQ - Damaged Frame Receiver detects error in frame i Receiver sends rejection-i Transmitter gets rejection-i Transmitter retransmits frame i and all subsequent Go-Back-N ARQ - Lost Frame Frame i lost Transmitter sends i+1 Receiver gets frame i+1 out of sequence Error Control Techniques

Networks and Protocols Data Link and Flow Control Slide 18 of 27 Error Control Techniques Receiver send reject i Transmitter goes back to frame i and retransmits Selective Reject ARQ Also called selective retransmission Only rejected frames are retransmitted Subsequent frames are accepted by the receiver and buffered Minimizes retransmission Receiver must maintain large enough buffer More complex logic in transmitter

Networks and Protocols Data Link and Flow Control Slide 19 of 27 Quick Review Question

Networks and Protocols Data Link and Flow Control Slide 20 of 27 Follow Up Assignment

Networks and Protocols Data Link and Flow Control Slide 21 of 27 Summary of Main Teaching Points

Networks and Protocols Data Link and Flow Control Slide 22 of 27 Q & A Question and Answer Session

Networks and Protocols Data Link and Flow Control Slide 23 of 27 Topic and Structure of next session Routing Routing characteristics Routing strategies Routing algorithms Next Session