20101 The Data Link Layer Chapter 3. 20102 Design Issues Controls communication between 2 machines directly connected by “wire”-like link Services Provided.

Slides:



Advertisements
Similar presentations
Chapter 3 The Data Link Layer.
Advertisements

The Data Link Layer Chapter 3. Data Link Layer Design Issues Services Provided to the Network Layer Framing Error Control Flow Control.
CIS 725 Data Link Layer. Physical Layer Figure 3-1 B. Forouzan, TCP/IP Protocol Suite.
Data Link Control We want to minimize the amount of error correcting and detecting we need to do.
5/15/2015© 2008 Raymond P. Jefferis IIILect The Data Link Layer.
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.
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.
The Data Link Layer Chapter 3. Position of the data-link layer.
The OSI Reference Model
Circuit Switching (a) Circuit switching. (b) Packet switching.
CMPE 150 – Winter 2009 Lecture 6 January 22, 2009 P.E. Mantey.
CSC 450/550 Part 2: The Data Link Layer. CSC 450/550 Summary Part A Functions (1)Functions of the data link layer (2)Framing (3)Error control (3.1) Error.
The Data Link Layer Chapter 3. Data Link Layer Design Issues Services Provided to the Network Layer Framing Error Control Flow Control.
Adapted from Tanenbaum's Slides for Computer Networking, 4e The Data Link Layer Chapter 3.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Chapter 11 Data Link Control Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction.
The Data Link Layer Chapter 3. Data Link Layer Design Issues a) Services Provided to the Network Layer b) Framing c) Error Control d) Flow Control.
TOBB ETÜ ELE46/ELE563 Communications Networks Lecture 01 May 6, 2014 Fall 2011 Tuesday 10:30 – 12:20 (310) Thursday 15:30 – 17:20 (372) İsrafil Bahçeci.
TCP1 Transmission Control Protocol (TCP). TCP2 Outline Transmission Control Protocol.
Chi-Cheng Lin, Winona State University CS 313 Introduction to Computer Networking & Telecommunication Data Link Layer Part I – Designing Issues and Elementary.
Chapter 3 THE DATA LINK LAYER
CEN 4500 Data Communications Instructor: S. Masoud Sadjadi sadjadi At cs Dot fiu Dot edu Chapter 3: The Data Link.
ICOM 6115©Manuel Rodriguez-Martinez ICOM 6115 – Computer Networks and the WWW Manuel Rodriguez-Martinez, Ph.D. Lecture 14.
جلسه هشتم شبکه های کامپیوتری به نــــــــــــام خدا.
Chapt 3 Data Link Layer1 Data Link Layer Functions –Provides services to network layer Well-defined interface –Framing –Flow control – between adjacent.
Review:. Chapter 3: The Data Link Layer –achieve reliable, efficient communication between two physically connected machines. –Example problems to be.
THE DATA LINK LAYER Chapter 3 1. H YBRID M ODEL The hybrid reference model to be used in this book. 2.
Data Link Layer : Services, Framing, Error Detection and Correction2.
The Data Link Layer Goal –As reliable as possible, efficient communication Point-to-Point –single connection –bits arrive in order sent Not necessarily.
The data link layer. Data Link Layer Design Issues Services Provided to the Network Layer Framing Error Control Flow Control.
The Data Link Layer. Functions of the Data Link Layer Provide service interface to the network layer Dealing with transmission errors Error detection.
The Data Link Layer. Functions of the Data Link Layer Provide service interface to the network layer Frame delineation Dealing with transmission errors.
Chapter 3 The Data Link Layer (60 % practical part)
The Data Link Layer Chapter 3 10/28/2015www.noteshit.com1.
1 Chapter Six - Errors, Error Detection, and Error Control Chapter Six.
The Data Link Layer Chapter 3 1/21/2016www.ishuchita.com1.
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011 The Data Link Layer Chapter 3.
Data Link Layer. Data link layer The communication between two machines that can directly communicate with each other. Basic property – If bit A is sent.
Data Link Layer. Link Layer The data unit to be transmited at the link layer is called a frame. Why link layer? How can it know where a frame begins and.
1 The Data Link Layer A. S. Tanenbaum Computer Networks W. Stallings Data and Computer Communications Chapter 3.
NET 222: COMMUNICATIONS AND NETWORKS FUNDAMENTALS ( NET 222: COMMUNICATIONS AND NETWORKS FUNDAMENTALS (PRACTICAL PART) Tutorial 4 : Chapter 7 Data & computer.
Data Link Layer.
Chapter 3: The Data Link Layer –to achieve reliable, efficient communication between two physically connected machines. –Design issues: services interface.
Powerpoint Templates Data Communication Muhammad Waseem Iqbal Lec # 15.
The Data Link Layer RIS 251 Dr. ir. S.S. Msanjila.
Computer Communication & Networks
Chapter 3 The Data Link Layer.
The Data Link Layer.
Part III Datalink Layer 10.
Data Link Layer Objective: to achieve reliable and efficient communication between 2 adjacent machines Data link layer design issues services provided.
Data Link Layer.
Data link layer (LLC).
Chap. 4 Data link layer 2.
Instructor Mazhar Hussain
Data Link Layer What does it do?
Flow Control.
Chapter 3 – Part 1 The Data Link Layer.
Data Link Layer: Data Link Control
Overview Jaringan Komputer (2)
Chapter 3 The Data Link Layer.
CS412 Introduction to Computer Networking & Telecommunication
Data Link Layer (cont’d)
The Data Link Layer Chapter
Data Link Layer (cont’d)
The Transport Layer Reliability
Data Link Control (DLC) Services
Error detection: Outline
Data Link Layer. Position of the data-link layer.
Presentation transcript:

20101 The Data Link Layer Chapter 3

20102 Design Issues Controls communication between 2 machines directly connected by “wire”-like link Services Provided to the Network Layer Framing: frame as an unit for physical layer to send in one go Error Control Flow Control, not sending faster than can be received

20103 Services Provided to Network Layer Unacknowledged connectionless service. no recovering of lost or corrupted frame when the error rate is very low real-time traffic, like speech or video Acknowledged connectionless service. returns information a frame has safely arrived. time-out, resend, frames received twice unreliable channels, such as wireless systems. Acknowledged connection-oriented service. established connection before any data is sent. provides the network layer with a reliable bit stream.

20104 Framing, character count Time gaps between frames are not suitable times are variable in networks received gaps can be smaller or larger Need to be combined with other methods

20105 Framing, flag bytes (a) A frame delimited by flag bytes. (b) Four examples of byte sequences before and after stuffing.

20106 Framing, bit stuffing Flag is 6 “1” bits After 5 “1”’s a “0” is added

20107 Error-Detecting Codes, CRC Cyclic redundancy Checks related to polynomial theories usually implemented in hardware using 16 of 32 bit generators -detect burst errors fewer than r+1 bits -any odd number of bit errors -up to an certain even number of errors

20108 Error-Correcting Codes Use of a Hamming code, adding extra bits, to correct errors. Error-correcting codes used in the early days, noisy lines Later lines and electronics got better: error-detection and resend Now used for wireless communication and high speed ethernet

20109 Protocols ACK (acknowledgements) for correct frames possible NACK for lost or corrupted frames (piggybacked) Pipelining error correction by resend of lost or corrupted frames Flow control

Stop and Wait Protocols A Simplex Protocol for a Noisy Channel sender waits for an ack for each send frame frames may be damaged or lost, same for acks no nacks for lost or error frames might be used to increase the data rate sender uses a timer and re-sends frame a 1-bit frame number (0 and 1) is needed for data and ack frames, to separate a re-send frame from the original one also called: alternating bit protocol

Pipelining Sender needs to buffer a send frame until its ack has arrived the buffer is a sliding window on all frames in the stream last packet bit arrives, send ACK senderreceiver RTT last bit transmitted, t = L / R first packet bit arrives ACK arrives, send next packet, t = RTT + L / R

Go Back N receiver has no buffer it can only accept (and send to its higher layer) a correct frame with the next expected sequence number sends an ack for that sequence number, this implies that all previous frames have arrived otherwise it discards the frame and either sends nothing back or an ack for the last accepted frame or a nack for the next frame receiver timer to send ack (or nack) in separate frame do not wait too long for return frame to piggyback the ack or nack

Go Back N, sender buffer for a number of already send but not yet acked frames a timer for the oldest frame in the buffer resend in case of time-out, an ack for an already acked frame or a nack in case of a resend: all next already send frames must be resend more than 1 bit for sequence numbers are needed: Nr_Buf <= Max_Seq+1

Selective Repeat also receiver buffers frames: can store out-of-order correct frames only 1 frame has to be resend in case of error or lost nacks are usually used for error or lost frames just makes it faster Nr_Buf <= (Max_Seq+1)/2 (0…Max_Seq) sender needs timer of each send frame receiver timer to send ack (or nack) in separate frame do not wait too long for return frame to piggyback the ack or nack

Selective Repeat buffers

Go Back N vs Selective Repeat

Protocol Verification Modeling needed Finite State Machine Models Petri Net Models Formal verification Uppaal PVS