Chap. 4 Data link layer 2.

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.
1 Pertemuan 15 Layer Data Link Matakuliah: H0174/Jaringan Komputer Tahun: 2006 Versi: 1/0.
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 Eighth Edition by William Stallings Lecture slides by Lawrie Brown Chapter 7 – Data Link Control Protocols.
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 7 – Data Link Control Protocols
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.
1 Data Link Layer Lesson 6 NETS2150/ Position of the data-link layer McGraw-Hill © The McGraw-Hill Companies, Inc., 2004.
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.
EE 4272Spring, 2003 Chapter 7 Data Link Control Objectives: Effective & reliable data communication between two directly connected transmitting-receiving.
Network Technology CSE Network Technology CSE3020 Week 6.
Data and Computer Communications Eighth & Ninth Edition by William Stallings Chapter 7 – Data Link Control Protocols.
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 Tenth Edition by William Stallings Data and Computer Communications, Tenth Edition by William Stallings, (c) Pearson Education.
Chapter 3 THE DATA LINK LAYER
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
Data Link and Flow Control Networks and Protocols Prepared by: TGK First Prepared on: Last Modified on: Quality checked by: Copyright 2009 Asia Pacific.
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.
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.
William Stallings Data and Computer Communications Chapter 7 Data Link Control.
PROTOCOL BASICS. 2 Introduction In chapter 3: Circuits and techniques can be employed to transmit a frame of information between 2 DTEs Error detection.
1 Wireless Networks Lecture 5 Error Detecting and Correcting Techniques (Part II) Dr. Ghalib A. Shah.
Data Link Control Protocols  need layer of logic above Physical  to manage exchange of data over a link frame synchronization frame synchronization flow.
Coding and Error Control
Computer Communication & Networks
Chapter 3 The Data Link Layer.
Chapter 9: Data Link Control
The Data Link Layer Supplementery Slides
Data Link Layer Flow Control.
Part III Datalink Layer 10.
Data Link Layer.
Data link layer (LLC).
Instructor Mazhar Hussain
Data Link Layer What does it do?
Data Link Layer: Data Link Control
Chapter 14: Data Link Control
Rivier College CS575: Advanced LANs Chapter 6: Logical Link Control
Flow and Error Control.
Chapter 5 Peer-to-Peer Protocols and Data Link Layer
Chapter 7 Error Detection and Correction
Chapter 14: Data Link Control
Chapter 14: Data Link Control
Chapter 14: Data Link Control
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
Data Link Layer. Position of the data-link layer.
Presentation transcript:

Chap. 4 Data link layer 2

Connection control Connection control defines reliable transmission between two adjacent nodes three step Connection establishment Frame transmission Connection termination

Connection-oriented service or connection mode Connectionless service or connectionless mode

acknowledged service unacknowledged service

Flow control Flow control Ensuring the transmitter does not overwhelm capability of receiver preventing buffer overflow host controller protocol controller transmit buffer and receive buffer

Stop-and-wait flow control 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 Flow Control 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 2k

Error detection Error detection Additional bits added by transmitter for error detection code FCS (frame check sequence)

Parity bit 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 ex ASCII code

Cyclic Redundancy Check For data of k bits, transmitter generates FCS(frame check sequence) of n-k bits Transmit frame of n bits which is exactly divisible by some number (modulo 2 operation) Receive divides frame by that number modulo 2 operation exclusive-OR operation : 1^1 = 0, 1^0 = 1 Equation T : frame of n bits D : data of k bits F : FCS of n-k bits P : divisor of n-k+1 bits

Divisor Denoted using polynomial P=11001 => P(X)=X4+X3+1 CRC-16 : CAN P(X)=X16+X15+X2+1 CRC-32 : IEEE 802.3 Example Transmitter ASCII data of ‘a’ Odd parity bit Divisor of P(X)=X4+X3+1 Receiver Frame is divided by divisor If remainder is not 0, error is occurred

Error control Error control If error is detected after error detection procedure, error recovery process is started Sequence number is used for error recovery Type of error lost frame : if frames are out of sequence damaged frame : if error is detected after receiving

Stop-and-wait ARQ ARQ (automatic repeat request) Procedure for error recovery Source transmits single frame Wait for ACK If received frame damaged, discard it Transmitter has timeout If no ACK within timeout, retransmit

If ACK is damaged, transmitter will not recognize 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 Transmitter must go back and retransmit that frame and all subsequent frames

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 login in transmitter