ECE453 – Introduction to Computer Networks Lecture 4 – Data Link Layer (I)

Slides:



Advertisements
Similar presentations
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.
Advertisements

Computer Interfacing and Protocols
10.1 Chapter 10 Error Detection and Correction Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Lecture 12 Layer 2 – Data Link Layer Protocols
The Data Link Layer Chapter 3. Data Link Layer Design Issues Services Provided to the Network Layer Framing Error Control Flow Control.
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.
Transmission Errors Error Detection and Correction
EEC-484/584 Computer Networks
Error Detection and Correction
EEC-484/584 Computer Networks Lecture 7 Wenbing Zhao
EEC-484/584 Computer Networks Lecture 6 Wenbing Zhao
Transmission Errors1 Error Detection and Correction.
The Data Link Layer Chapter 3. Position of the data-link layer.
The OSI Reference Model
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 11 Introduction to Computer Networks.
EEC-484/584 Computer Networks Lecture 13 Wenbing Zhao
Circuit Switching (a) Circuit switching. (b) Packet switching.
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.
7/2/2015Errors1 Transmission errors are a way of life. In the digital world an error means that a bit value is flipped. An error can be isolated to a single.
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.
Error Detection and Reliable Transmission EECS 122: Lecture 24 Department of Electrical Engineering and Computer Sciences University of California Berkeley.
EEC-484/584 Computer Networks Lecture 7 Wenbing Zhao
Data Link Layer - 1 Dr. Sanjay P. Ahuja, Ph.D. Fidelity National Financial Distinguished Professor of CIS School of Computing, UNF.
CS3502: Data and Computer Networks DATA LINK LAYER - 1.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Data Link Layer PART III.
Error Coding Transmission process may introduce errors into a message.  Single bit errors versus burst errors Detection:  Requires a convention that.
ICOM 6115©Manuel Rodriguez-Martinez ICOM 6115 – Computer Networks and the WWW Manuel Rodriguez-Martinez, Ph.D. Lecture 14.
جلسه هشتم شبکه های کامپیوتری به نــــــــــــام خدا.
Data Link Layer: Error Detection and Correction
Lecture 6: Framing and Error Detection-Data Link Layer Functions
4: DataLink Layer1 Chapter 4: The Data Link Layer Our goals: r understand principles behind data link layer services: m error detection, correction m sharing.
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.
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. 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.
Computer Networks Lecture 2: Data Link Based on slides from D. Choffnes Northeastern U. and P. Gill from StonyBrook University Revised Autumn 2015 by S.
Computer Communication & Networks Lecture 9 Datalink Layer: Error Detection Waleed Ejaz
Error Detection.
10.1 Chapter 10 Error Detection and Correction Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Review.
Error Detection. Data can be corrupted during transmission. Some applications require that errors be detected and corrected. An error-detecting code can.
Data Link Layer. Data Link Layer Topics to Cover Error Detection and Correction Data Link Control and Protocols Multiple Access Local Area Networks Wireless.
Error Detection and Correction
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.
Chi-Cheng Lin, Winona State University CS412 Introduction to Computer Networking & Telecommunication Error Correction/Detection.
1 University of Calgary CS 441 Part 3 The Data Link Layer 3.1 Framing & Error Control 3.2 Error & Flow Control.
Computer Networks NYUS FCSIT Spring 2008 Igor TRAJKOVSKI, Ph.D. Associate Professor
Physical Link Layer.
Data Link Layer Objective: to achieve reliable and efficient communication between 2 adjacent machines Data link layer design issues services provided.
Data Link Layer.
Part III. Data Link Layer
Data Link Layer What does it do?
Chapter 3 – Part 1 The Data Link Layer.
Chapter 3 The Data Link Layer.
EEC-484/584 Computer Networks
Computer Networks Bhushan Trivedi, Director, MCA Programme, at the GLS Institute of Computer Technology, Ahmadabad.
Data Link Layer Objective: to achieve reliable and efficient communication between 2 adjacent machines Data link layer design issues services provided.
Transmission Errors 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.
Protocols and the TCP/IP Suite
EEC-484/584 Computer Networks
Error Detection and Correction
Transmission Errors Error Detection and Correction
UNIT-II The Data Link Layer.
Data Link Layer. Position of the data-link layer.
Chapter 10 Error Detection and Correction
Presentation transcript:

ECE453 – Introduction to Computer Networks Lecture 4 – Data Link Layer (I)

Design Issues Provide a well-defined service interface Group bits (PHY) into frames (DL) Deal with transmission errors Regulate the flow of frames

phys. link Link Layer: Setting the Context two physically connected devices: host-router, router-router, host-host unit of data: frame Protocols implemented in “adapter” application transport network link physical network link physical M M M M H t H t H n H t H n H l M H t H n H l frame data link protocol adapter card

Link Layer – The Logical & Physical Flows

Framing Character count Flag bytes with byte stuffing Starting and ending flags with bit stuffing

Framing – Byte Stuffing Tightly tied to the used of 8-bit characters

Framing – Bit Stuffing Flag pattern: Sender stuff: add 0 after Receiver destuff: delete 0 after 11111

Error Detection and Correction1 Use redundancy Error detection and retransmission  Over low error rate media Error correction  Over high error rate media

The Hamming Distance Codewords (n bits): message (m bits) + check bits (r bits) Complete list of codewords? Hamming distance: the number of positions in which two codewords differ Hamming distance of the complete code: two codewords with the minimum Hamming distance To detect d errors, Hamming distance of the code: (d+1) To correct d errors, Hamming distance of the code: (2d+1)

Parity Bit Even parity Odd parity A code with a single parity bit has a Hamming distance of ??? It can be used to detect ??? errors

Example The code has a Hamming distance of ??? It can detect ??? errors It can correct ??? errors ArrivalOriginal

The Hamming Code Theorem: Given a code with m message bits and r check bits (n=m+r) which allows all single errors to be corrected, the lower limit on r is (m+r+1)<=2 r Hamming code (the bits that are power of 2 are check bits, others are message bits, each check bit forces the parity of some collection of bits, including itself) Can only correct single bit error

Example - Hamming Code

How to Correct Burst Errors Uses kr check bits to make blocks of km data bits immune to a single burst error of length k or less

Error Detecting Code - I x x x x x x x o o o o o

Error-Detecting Codes Polynomial code (CRC – Cyclic Redundancy Check) Generator polynomial G(x) Message polynomial M(x) Method: append a checksum of r bits to the end of M(x) such that the appended polynomial T(x) is divisible by G(x) Q(x) … R(x) = x r M(x)/G(x) T(x) = x r M(x) + R(x)

More on Polynomial Code Single error detection? Double error detection? No polynomial with an odd number of terms is divisible by x+1 A polynomial code with r check bits will detect all burst errors of length <=r Burst error: at least the first and the last bits of a bit stream are wrong Hardware implementation: shifted register circuit International standard of G(x) X 32 +x 26 +X 23 +X 22 +X 16 +X 12 +X 11 +X 10 +X 8 +X 7 +X 5 +X 4 +X 2 +X 1 +1