The Data Link Layer Goal –As reliable as possible, efficient communication Point-to-Point –single connection –bits arrive in order sent Not necessarily.

Slides:



Advertisements
Similar presentations
Local Area Networks by R.S. Chang, Dept. CSIE, NDHU 1 Chapter 3 The Data Link Layer user A user B reliable transmission over unreliable physical link.
Advertisements

5-1 Data Link Layer l Objective: to achieve reliable and efficient communication between 2 adjacent machines l Data link layer design issues n services.
Synchronous Links/Networks Modems are asynchronous - penalized by start bits and stop bits on each character (and dead time) Synchronous Networks recover.
The Data Link Layer Chapter 3. Data Link Layer Design Issues Services Provided to the Network Layer Framing Error Control Flow Control.
I N THE N AME OF G OD C OMPUTER N ETWORKS C HAPTER 3: T HE D ATA L INK L AYER Dr. Shahriar Bijani Shahed University March 2014.
1 Lecture #12: Data Link Layer. Error Control. C o n t e n t s l Services Provided by DLL l DLL data structures l Error Control Mechanisms –Error correcting.
EEC-484/584 Computer Networks
EEC-484/584 Computer Networks Lecture 6 Wenbing Zhao
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 10 Introduction to Computer Networks.
EEC-484/584 Computer Networks Lecture 12 Wenbing Zhao Cleveland State University
CSC 3352 Computer Communications Chapter 3&41 The Link Layer Has 2 main Components The Data Link Layer Medium Access Control (MAC) Examples:SLIP, PPP,
The Data Link Layer Chapter 3. Position of the data-link layer.
The OSI Reference Model
Transmission Characteristics 1. Introduction (Information Interchange codes) 2. Asynchronous and Synchronous Transmissions 3. Error detection (bit errors)
EEC-484/584 Computer Networks Lecture 7 Wenbing Zhao (Part of the slides are based on materials supplied by Dr. Louise Moser at UCSB and.
20101 The Data Link Layer Chapter Design Issues Controls communication between 2 machines directly connected by “wire”-like link Services Provided.
Adapted from Tanenbaum's Slides for Computer Networking, 4e The Data Link Layer Chapter 3.
EEC-484/584 Computer Networks Lecture 7 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
Data Link Layer RAHUL DEVA.
CS 640: Introduction to Computer Networks Aditya Akella Lecture 5 - Encoding and Data Link Basics.
Data and Computer Communications. The Data Link Layer.
1 Kyung Hee University Data Link Layer PART III. 2 Kyung Hee University Position of the data-link layer.
Data Link Layer - 1 Dr. Sanjay P. Ahuja, Ph.D. Fidelity National Financial Distinguished Professor of CIS School of Computing, UNF.
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.
© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. 1 Communication Reliability Asst. Prof. Chaiporn Jaikaeo, Ph.D.
CIT 307 Online Data Communications Error Detection Module 11 Kevin Siminski, Instructor.
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
جلسه هشتم شبکه های کامپیوتری به نــــــــــــام خدا.
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. Data Link Layer Design Issues Services Provided to the Network Layer Framing Error Control Flow Control.
Data Link Layer : Services, Framing, Error Detection and Correction2.
CS 453 Computer Networks Lecture 9 Layer 2 – Data Link Layer.
The Data Link Layer. Functions of the Data Link Layer Provide service interface to the network layer Dealing with transmission errors Error detection.
Chapter 3 The Data Link Layer (60 % practical part)
UNIT-II Computer Network Data Link Layer. Data Link Layer Prepared by - ROHIT KOSHTA Data Link Layer is second layer of OSI reference model and is placed.
ECE453 – Introduction to Computer Networks Lecture 4 – Data Link Layer (I)
Lecture 3-2: Coding and Error Control (Cont.) ECE
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Data Link Layer PART III.
COMPUTER NETWORKS Ms. Mrinmoyee Mukherjee Assistant Professor St. Francis Institute of Technology, Mount Poinsur, S.V.P Road, Borivli (west), Mumbai
CHAPTER 3: DATA LINK CONTROL Flow control, Error detection – two dimensional parity checks, Internet checksum, CRC, Error control, Transmission efficiency.
Data Link Layer. Data Link Layer Topics to Cover Error Detection and Correction Data Link Control and Protocols Multiple Access Local Area Networks Wireless.
Wireless and Mobile Networks (ELEC6219) Session 3: Theories of Data Communications. Data Link Layer. Adriana Wilde and Jeff Reeve 22 January 2015.
Data Communications and Networking
Transmission Errors Error Detection and Correction.
COMPUTER NETWORKS. Unit -2 Continue... Physical Layer Connection –Oriented Networks : X.25 Relay Frames Types of cables Co-axial Fiber optics Twisted.
Network Layer4-1 Chapter 5: The Data Link Layer Our goals: r understand principles behind data link layer services: m error detection, correction m sharing.
Data Link Layer 1. 2 Single-bit error 3 Multiple-bit error 4.
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011 The Data Link Layer Chapter 3.
1 The Data Link Layer A. S. Tanenbaum Computer Networks W. Stallings Data and Computer Communications Chapter 3.
The Data Link Layer Chapter 3. Data Link Layer Design Issues Services Provided to the Network Layer Framing Error Control Flow Control.
Chapter 3: The Data Link Layer –to achieve reliable, efficient communication between two physically connected machines. –Design issues: services interface.
24/11/1013-Datalink1 The Data Link Layer Role Services Functions –Framing –Encapsulation –Addressing –Connection Control –Ordered Delivery –Flow Control.
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).
Chapter 3 The Data Link Layer
Data Link Layer What does it do?
Chapter 3 The Data Link Layer.
CS412 Introduction to Computer Networking & Telecommunication
Chapter 7 Error Detection and Correction
Data Link Layer Objective: to achieve reliable and efficient communication between 2 adjacent machines Data link layer design issues services provided.
Data Link Layer Objective: to achieve reliable and efficient communication between 2 adjacent machines Data link layer design issues services provided.
EEC-484/584 Computer Networks
UNIT-II The Data Link Layer.
Types of Errors Data transmission suffers unpredictable changes because of interference The interference can change the shape of the signal Single-bit.
Data Link Layer. Position of the data-link layer.
Presentation transcript:

The Data Link Layer Goal –As reliable as possible, efficient communication Point-to-Point –single connection –bits arrive in order sent Not necessarily reliable (unreliable)

Data Link Layer Problems Errors occur Finite data rate Propagation delays –Time required for signal to travel from source to destination

Data Link Functions Well-defined interface to the network layer Grouping the bits of the physical layer into frames Handling transmission errors Regulating the rate of data flow

Services Provided to the Data Link Layer Unacknowledged connectionless Acknowledged connectionless Acknowledged connection-oriented

Unacknowledged Connectionless Frames are independent No acknowledgment No connection Lost frames are not detected –may be detected in higher level layers Best when error rates are low Good when late data is not useful –speech, video Most LANs use this service

Acknowledged Connectionless (More Reliable) Each frame individually acknowledged Unacknowledged frames are eventually resent Good for unreliable channels –wireless for example

Acknowledged Connection-oriented Service Connection is established Each frame is numbered Every frame sent is guaranteed to be received eventually Frames guaranteed to arrive in correct order Provides a reliable bit stream

Framing Bit streams from physical layer are unreliable We would like to check for errors Sending a relatively small frame of bits, combined with some kind of data redundancy, allows us to provide some error checking

Methods that Break the Bitstream into Frames Character count Starting and ending characters with character stuffing Starting and ending flags with bit stuffing Physical layer coding violations

Big Problem: –How do we recover if we get out of sync? Character Count 5 T h i s 9 M e s s a g e 2 S Frames are prefixed by chars/frame ASCII 5 84 count What happens if we lose this character?

Start and End Characters with Character Stuffing Special ASCII characters signal start and end of frame DLEData Link Escape (ASCII = 16) STXStart of text (ASCII = 2) DLEData Link Escape (ASCII = 16) ETXEnd of text (ASCII = 3) But what if these flags occur in the data? –Use two DLE characters to send one data DLE

Examples of Char Stuffing DLE STX T H I S M DLE ETX X Y DLE STX DLE ETX 5 DLE STX X Y DLE DLE STX DLE DLE ETX 5 DLE ETX TSH IM

Start and End Flags With Bit Stuffing Choose a bit sequence for start/end flag Example: Every time you see five 1’s in sequence in the data, stuff a zero into the stream

Final Framing Method - Physical Layer Coding Violations Start/End flag consists of sequence that is illegal in the data Example: 10 is 1 01 is 0 00 or 11 could be used as flags

Error Control Error Control provides feedback about the success of data transmission –frames may arrive correctly (receiver sends ack) –frames may arrive corrupted (receiver sends negative ack) –frames may be lost (no ack is ever received) acks may be lost (no ack is ever received) No error control in unacknowledged connectionless service

Flow Control What happens if the sender can send data faster than the receiver can handle it? –Receiver buffers overflow –Data is lost or requires retransmission Solution: Flow control –Receiver specifies the number of frames that may be transmitted (no more than can be held in its buffers). The sender cannot send more data until the receiver grants permission.

Error Detection and Correction Error rates are relatively low on digital networks and LAN’s Error rates are high on analog twisted pairs and wireless communication When errors occur, they tend to occur in bursts –More data blocks are correct –Errors are harder to detect

Definitions Error-correcting Codes –Codes that contain enough redundant information to correct errors Error-detecting Codes –Codes that contain enough redundant information to detect errors

Parity - a simple error detection mechanism The number of “1” bits in a fixed length bit sequence is either always even (even parity) or always odd (odd parity) Example (even parity, length = 8) parity bit Any single bit errors are detected Any even number of bit errors is not detected Any odd number of bit errors is detected

Hamming Distance Frame codeword contains n = m + r total bits –where m is number of message bits r is number of redundant bits Hamming Distance –The number of bit positions in which two codewords differ Hamming Distance of Complete Code –The minimum Hamming Distance between codewords Hamming distance = 6

Hamming Distance To detect d errors you need a Hamming distance (for the complete code) of d+1 To correct d errors you need a Hamming distance (for the complete code) of 2d+1

Error Correcting Codes Consider an encoding scheme where these are the only valid codewords The Hamming distance of the complete code is 5 We can correct d-bit errors where 2d+1 = 5 We can detect d-bit errors where d+1 = with two errors (with < 3 errors must be 0) with three errors could be with three errors or with two errors.