Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011 The Data Link Layer Chapter 3.

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.
Functions of the Data Link Layer Provide service interface to the network layer Dealing with transmission errors Regulating data flow Slow receivers not.
The Data Link Layer Chapter 3.
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.
EEC-484/584 Computer Networks Lecture 6 Wenbing Zhao
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
Circuit Switching (a) Circuit switching. (b) Packet switching.
1 Link Layer & Network Layer Some slides are from lectures by Nick Mckeown, Ion Stoica, Frans Kaashoek, Hari Balakrishnan, and Sam Madden Prof. Dina Katabi.
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.
The Data Link Layer Chapter 3. Data Link Layer Design Issues Services Provided to the Network Layer Framing Error Control Flow Control.
Unit 1 Protocols Learning Objectives: Understand the need to detect and correct errors in data transmission.
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.
NETWORKING CONCEPTS. DATA LINK LAYER Data Link Control main functions of the data link layer are Data link control media access control. Data link control.
CS 640: Introduction to Computer Networks Aditya Akella Lecture 5 - Encoding and Data Link Basics.
Data and Computer Communications. 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.
Chi-Cheng Lin, Winona State University CS 313 Introduction to Computer Networking & Telecommunication Data Link Layer Part I – Designing Issues and Elementary.
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.
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 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 Chapter 3 10/28/2015www.noteshit.com1.
ICOM 6115©Manuel Rodriguez-Martinez ICOM 6115 – Computer Networks and the WWW Manuel Rodriguez-Martinez, Ph.D. Lecture 13.
ECE453 – Introduction to Computer Networks Lecture 4 – Data Link Layer (I)
Chapter 9 Hardware Addressing and Frame Type Identification 1.Delivering and sending packets 2.Hardware addressing: specifying a destination 3. Broadcasting.
Wireless and Mobile Networks (ELEC6219) Session 3: Theories of Data Communications. Data Link Layer. Adriana Wilde and Jeff Reeve 22 January 2015.
The Data Link Layer Chapter 3 CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 Data Link Layer Design Issues Error.
The Data Link Layer Chapter 3 1/21/2016www.ishuchita.com1.
Protocol Layering Chapter 11.
COMPUTER NETWORKS. Unit -2 Continue... Physical Layer Connection –Oriented Networks : X.25 Relay Frames Types of cables Co-axial Fiber optics Twisted.
The Data Link Layer Chapter 3 CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 Data Link Layer Design Issues Error.
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011 The Data Link Layer Chapter 3.
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.
NET 221D : COMPUTER NETWORKS FUNDAMENTALS LECTURE 4: DATA LINK LAYER Behrouz A. Forouzan” Data communications and Networking 1.
Net 221D:Computer Networks Fundamentals
Computer Networks NYUS FCSIT Spring 2008 Igor TRAJKOVSKI, Ph.D. Associate Professor
Network Models. 2.1 what is the Protocol? A protocol defines the rules that both the sender and receiver and all intermediate devices need to follow,
Network Models. 2.1 what is the Protocol? A protocol defines the rules that both the sender and receiver and all intermediate devices need to follow,
The Data Link Layer RIS 251 Dr. ir. S.S. Msanjila.
CS4470 Computer Networking Protocols
Net 221D : Computer Networks Fundamentals
Data Link Layer.
Cyclic Redundancy Check (CRC)
Chapter 3 The Data Link Layer
Data Link Layer What does it do?
Chapter 3 – Part 1 The Data Link Layer.
Overview Jaringan Komputer (2)
Net 221D : Computer Networks Fundamentals
Chapter 3 The Data Link Layer.
CS412 Introduction to Computer Networking & Telecommunication
Communication Networks NETW 501
The Data Link Layer Chapter
EEC-484/584 Computer Networks
UNIT-II The Data Link Layer.
Data Link Layer. Position of the data-link layer.
Presentation transcript:

Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011 The Data Link Layer Chapter 3

Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011 Data Link Layer Design Issues Network layer services Framing Error control Flow control

Data Link Layer:intrdotion Why need data link layer: Two machines are connected by a communication channel that acts conceptually like a wire (e.g., telephone line, coaxial cable, or wireless channel). Essential property of a channel : bits are delivered in exactly the same order in which they are sent.

Data Link Layer For ideal channel (no distortion, unlimited bandwidth and no delay) the job of data link layer would be trivial. However, limited bandwidth, distortions and delay makes this job very difficult.

Data Link Layer Design Issues Physical layer delivers bits of information to and from data link layer. The functions of Data Link Layer are: 1.Providing a well-defined service interface to the network layer. 2.Dealing with transmission errors. 3.Regulating the flow of data so that slow receivers are not swamped by fast senders. Data Link layer – Takes the packets from Physical layer, and – Encapsulates them into frames

Data Link Layer Design Issues Each frame has a – frame header – Payload field : a field for holding the packet, and – frame trailer. Frame Management is what Data Link Layer does.

Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011 Packets and Frames Relationship between packets and frames.

Framing Stream of data bits provided to data link layer is not guaranteed to be without errors. Errors could be: – Number of received bits does not match number of transmitted bits (deletion or insertion) – Bit Value It is up to data link layer to correct the errors if necessary.

Framing Transmission of the data link layer starts with breaking up the bit stream – into discrete frames – Computation of a checksum for each frame, and – Include the checksum into the frame before it is transmitted. Receiver computes its checksum error for a receiving frame and if it is different from the checksum that is being transmitted will have to deal with the error. Framing is more difficult than one could think!

Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011 Framing Methods 1.Byte count. 2.Flag bytes with byte stuffing. 3.Flag bits with bit stuffing.

Byte Count Framing Method It uses a field in the header to specify the number of bytes in the frame. Trouble with this algorithm is that when the count is incorrectly received the destination will get out of synch with transmission. – Destination may be able to detect that the frame is in error but it does not have a means (in this algorithm) how to correct it.

Flag Bytes with Byte Staffing Framing Method This methods gets around the boundary detection of the frame by having each appended by the frame start and frame end special bytes. If they are the same (beginning and ending byte in the frame) they are called flag byte..

Flag Bits with Bit Stuffing Framing Method This methods achieves the same thing as Byte Stuffing method by using Bits (1) instead of Bytes (8 Bits)..

Error Control After solving the marking of the frame with start and end the data link layer has to handle eventual errors in transmission or detection. – Ensuring that all frames are delivered to the network layer at the destination and in proper order.

Error Detection and Correction Two basic strategies to deal with errors: 1.Include enough redundant information to enable the receiver to deduce what the transmitted data must have been. Error correcting codes. 2.Include only enough redundancy to allow the receiver to deduce that an error has occurred (but not which error). Error detecting codes.

Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011 Error Detection & Correction Code (1) 1.Hamming codes. 2.Binary convolutional codes. 3.Reed-Solomon codes. 4.Low-Density Parity Check codes.

Error Detection & Correction Code All the codes presented in previous slide add redundancy to the information that is being sent. A frame consists of – m data bits (message) and – r redundant bits (check).

Error Detection & Correction Code Hamming codes Example Transmitted: Received: XOR operation gives number of bits that are different. XOR: