Data Link Layer - 1 Dr. Sanjay P. Ahuja, Ph.D. Fidelity National Financial Distinguished Professor of CIS School of Computing, UNF.

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
EE 4272Spring, 2003 Chapter 7 Data Link Control Objectives: Effective & reliable data communication between two directly connected transmitting-receiving.
Lecture 12 Layer 2 – Data Link Layer Protocols
Introduction to Information Technologies
The Data Link Layer Chapter 3. Data Link Layer Design Issues Services Provided to the Network Layer Framing Error Control Flow Control.
Reliability & Channel Coding
Data and Computer Communications Eighth Edition by William Stallings Lecture slides by Lawrie Brown Chapter 6 – Digital Data Communications Techniques.
EEC-484/584 Computer Networks Lecture 6 Wenbing Zhao
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 12 Introduction to Computer Networks.
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.
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.
Data Communications Chapter 7 Error Detection. Despite the best prevention techniques, errors may still happen. To detect an error, something extra has.
Chapter 2 : Direct Link Networks (Continued). So far... Modulation and Encoding Link layer protocols Error Detection -- Parity Check.
William Stallings Data and Computer Communications 7 th Edition (Selected slides used for lectures at Bina Nusantara University) Error Control.
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.
Error Detection and Reliable Transmission EECS 122: Lecture 24 Department of Electrical Engineering and Computer Sciences University of California Berkeley.
Chapter 10 Error Detection and Correction
Rutvi Shah1 ERROR CORRECTION & ERROR DETECTION Rutvi Shah2 Data can be corrupted during transmission. For reliable communication, errors must be detected.
Data link layer: services
Data Communications and Networking
Data and Computer Communications. The Data Link Layer.
CS3502: Data and Computer Networks DATA LINK LAYER - 1.
1 Data Link Layer Lecture 20 Imran Ahmed University of Management & Technology.
Chi-Cheng Lin, Winona State University CS 313 Introduction to Computer Networking & Telecommunication Data Link Layer Part I – Designing Issues and Elementary.
Data and Computer Communications
Part 2: Packet Transmission Packets, frames Local area networks (LANs) Wide area networks (LANs) Hardware addresses Bridges and switches Routing and protocols.
ICOM 6115©Manuel Rodriguez-Martinez ICOM 6115 – Computer Networks and the WWW Manuel Rodriguez-Martinez, Ph.D. Lecture 14.
Lecture 6: Framing and Error Detection-Data Link Layer Functions
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.
Chapter 3 The Data Link Layer (60 % practical part)
Data and Computer Communications by William Stallings Eighth Edition Digital Data Communications Techniques Digital Data Communications Techniques Click.
ECE453 – Introduction to Computer Networks Lecture 4 – Data Link Layer (I)
Lecture 3-2: Coding and Error Control (Cont.) ECE
COSC 3213: Computer Networks I Instructor: Dr. Amir Asif Department of Computer Science York University Section M Topics: 1. Error Detection Techniques:
Layer Two Data Link Layer Collects bits from layer 1 and organizes into frames Passes bits that make up frames to layer 1 for transmission Concerned with.
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
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.
CSCI 465 D ata Communications and Networks Lecture 9 Martin van Bommel CSCI 465 Data Communications & Networks 1.
1 © Unitec New Zealand CRC calculation and Hammings code.
Error Detection.
1 Error Detection and Correction Martin Weiss. Slide 2 Objectives of this Meeting u Describe the major error detection techniques u Describe forward error.
Error Correction and Flow Control Martin Weiss. Slide 2 Objectives of this Meeting u Describe different flow control techniques u Describe the major error.
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. 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.
Coding and Error Control
CS4470 Computer Networking Protocols
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.
Part III. Data Link Layer
CIS 321 Data Communications & Networking
Chap. 4 Data link layer 2.
Data Link Layer What does it do?
Net 221D : Computer Networks Fundamentals
CS412 Introduction to Computer Networking & Telecommunication
Basic concepts Networks must be able to transfer data from one device to another with complete accuracy. Data can be corrupted during transmission. For.
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.
COMPUTER NETWORKS CS610 Lecture-5 Hammad Khalid Khan.
Error Detection and Correction
UNIT-II The Data Link Layer.
Data Link Layer. Position of the data-link layer.
Presentation transcript:

Data Link Layer - 1 Dr. Sanjay P. Ahuja, Ph.D. Fidelity National Financial Distinguished Professor of CIS School of Computing, UNF

Introduction Deals with algorithms used to achieve a reliable, efficient communication between two adjacent machines, i.e. connected by a point-to-point link. The Data Link Layer provides a service to the Network Layer Limitations to consider: Errors in bit transmission Channels have only a finite data rate Machines have a finite processing speed Functions of the Data Link Layer: Framing (how to group bits of the physical layer into frames) Error Control Flow Control

Framing Data Link layer accepts packets from the network layer, and encapsulates them into frames that it sends using the physical layer; reception is the opposite process.

Service Possibilities Unacknowledged connectionless service Frame is sent with no connection / error recovery Ethernet is example Acknowledged connectionless service Frame is sent with retransmissions if needed Example is Acknowledged connection-oriented service Connection is set up; rare

Framing – Byte Count Frame begins with a count of the number of bytes in it. Simple, but difficult to resynchronize after an error

Framing – Start and End Flags with Bit Stuffing This allows frames to contain an arbitrary number of bits. Each frames begins and ends with a special flag, Whenever the sender’s data link layer encounters 5 consecutive 1’s in the data, it automatically stuffs a 0 bit into the outgoing bit stream. This is called bit stuffing. When the receiver sees 5 consecutive 1’s followed by a 0, it automatically de- stuffs the 0 bit. Example: Original Data Stream: Data on the line:

Error Control Deals with determining that an error has occurred and correcting errors. Requires errors to be detected at the receiver Typically retransmit the unacknowledged frames after timer expires on sending side Timer protects against lost acknowledgements

Error Control – Parity Bit A parity bit is appended to the end of each word in the frame. The value of this bit is selected so that the word has an even number of 1’s (even parity) or an odd number of 1’s (odd parity). Consider letter G in ASCII: For odd parity: For even parity: At the receiving end it is checked if the number of 1’s is still odd (for odd parity, else an error is said to have occurred. Drawback: If any two bits (or an even number of bits) are in error, then this mechanism fails to detect an error. So success rate in catching errors is only 50% Example if G with odd parity is received as: (2 nd and 3 rd bits are in error)

Error Control – Longitudinal Redundancy Check (LRC) To improve on the 1 st mechanism, a second set of parity are used. The frame is viewed as a block of characters arranged in 2D. To each character is appended a parity bit, as in the 1 st mechanism. In addition, a parity bit is generated for each bit position across all characters (vertically). So an additional character is generated. If two bits are in error in a character, this is detected. But some patterns still go undetected. E.g. if bits 1 and 3 are in error in both char 1 and char 5. Success rate in detecting errors is about 75%.

Error Control – Cyclic Redundancy Check (CRC) Procedure: 1.Given a k-bit frame or message, the transmitter generates an n-bit sequence, known as the Frame Check Sequence (FCS), so that the resulting frame, consisting of k+n bits, is exactly divisible by some predetermined number. 2.The receiver then divides the incoming frame by the same number and, if there is no remainder, assumes there was no error.

Error Control – Cyclic Redundancy Check (CRC) Define: T = (k + n) bit frame to be transmitted, with n<k M = k-bit message, the first k-bits of T F = n-bit FCS, the last n-bits of T P = pattern of (n+1) bits; this is the predetermined divisor (Note: the FCS or remainder is always 1 bit less than the divisor, P)

Error Control – Cyclic Redundancy Check (CRC) Example: Message, M = (10 bits) Pattern P (divisor) = (6 bits) FCS, Remainder (R) = to be calculated (5 bits) The message is multiplied by 2 5 (to shift it 5 bits to the left and padded with 0s): This product is now divided by P.

Error Control – Cyclic Redundancy Check (CRC) Remainder, R (FCS) = since remainder has to have 5 bits. The transmitted message then is The receiver divides the message it receives by the same divisor, P, and if the remainder is 0, it assumes there were no errors during transmission.

Error Control – Cyclic Redundancy Check (CRC) We can turn a message into a polynomial (with bits as coefficients) simply by using the bits as coefficients, so message M= becomes: M(x)=1 ⋅ x ⋅ x ⋅ x ⋅ x ⋅ x ⋅ x ⋅ x+ 1 = x 7 + x 6 +x 5 +x+1 The CRC-polynomial P= similarly becomes P(x)=x 5 +x 4 +x+1. Notice how the exponents of x simply act as place holders in the sense that the bit in position i is simply the coefficient of the power x i. Standard P(x) used are: