Chapt 3 Data Link Layer1 Data Link Layer Functions –Provides services to network layer Well-defined interface –Framing –Flow control – between adjacent.

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.
CH. 7 Data Link Control. Requirements & Objectives of Data Link Control Frame Synchronization Flow Control Error Control Addressing Control and Data on.
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.
C) All rights reserved by Professor Wen-Tsuen Chen1 Chapter 3 The Data link Layer ä For reliable, efficient communication between two adjacent machines.
Chapter 3: The Datalink Layer CS 455/555. Topics to be covered Design Issues Error detection and correction Elementary datalink protocols Sliding window.
The Data Link Layer Chapter 3. Data Link Layer Design Issues Services Provided to the Network Layer Framing Error Control Flow Control.
Go-Back-N Improve Stop-and-Wait by not waiting!
Data and Computer Communications Updated: 2/9/2009.
8-Reliability and Channel Coding Dr. John P. Abraham Professor UTPA.
The Data Link Layer Framing Error Control Flow Control
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.
1 Data Link Layer Lesson 6 NETS2150/ Position of the data-link layer McGraw-Hill © The McGraw-Hill Companies, Inc., 2004.
The Data Link Layer Chapter 3. Position of the data-link layer.
The OSI Reference Model
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.
Chapter 9: Data Link Control Business Data Communications, 4e.
CMPE 150 – Winter 2009 Lecture 6 January 22, 2009 P.E. Mantey.
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.
Data Link Layer We have now discussed the prevalent shared channel technologies  Ethernet/IEEE  Wireless LANs (802.11) We have now covered chapters.
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.
Chapter 3 THE DATA LINK LAYER
جلسه هشتم شبکه های کامپیوتری به نــــــــــــام خدا.
Computer Networks Chapter 11 – Data Link Control and Protocols.
Review:. Chapter 3: The Data Link Layer –achieve reliable, efficient communication between two physically connected machines. –Example problems to be.
Chapter 5 Peer-to-Peer Protocols and Data Link Layer PART I: Peer-to-Peer Protocols ARQ Protocols and Reliable Data Transfer Flow Control.
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.
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. 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)
Computer Networks Module 3: Data Link Layer (Framing) Dr. Vikram Shete St. Francis Institute of Technology.
EEC4113 Data Communication & Multimedia System Chapter 5: Error Control by Muhazam Mustapha, October 2011.
CS3505: DATA LINK LAYER. data link layer  phys. layer subject to errors; not reliable; and only moves information as bits, which alone are not meaningful.
Data Link Layer: Data Link Control : Data Communication and Computer Networks Asst. Prof. Chaiporn Jaikaeo, Ph.D.
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.
1 The Data Link Layer A. S. Tanenbaum Computer Networks W. Stallings Data and Computer Communications Chapter 3.
11.1 Chapter 11 Data Link Control Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Chapter 9: Data Link Control Business Data Communications, 4e.
Chapter 3: The Data Link Layer –to achieve reliable, efficient communication between two physically connected machines. –Design issues: services interface.
The Data Link Layer RIS 251 Dr. ir. S.S. Msanjila.
24/11/1013-Datalink1 The Data Link Layer Role Services Functions –Framing –Encapsulation –Addressing –Connection Control –Ordered Delivery –Flow Control.
Chapter 3 The Data Link Layer.
Chapter 9: Data Link Control
Data Link Layer 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).
Chap. 4 Data link layer 2.
Data Link Layer What does it do?
CIS 321 Data Communications & Networking
ECE453 – Introduction to Computer Networks
Rivier College CS575: Advanced LANs Chapter 6: Logical Link Control
Overview Jaringan Komputer (2)
CS412 Introduction to Computer Networking & Telecommunication
Chapter 5 Peer-to-Peer Protocols and Data 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 Objective: to achieve reliable and efficient communication between 2 adjacent machines Data link layer design issues services provided.
UNIT-II The Data Link Layer.
Chapter 5 Peer-to-Peer Protocols and Data Link Layer
Lecture 4 Peer-to-Peer Protocols and Data Link Layer
Chapter 9: Data Link Control
Data Link Layer. Position of the data-link layer.
Presentation transcript:

Chapt 3 Data Link Layer1 Data Link Layer Functions –Provides services to network layer Well-defined interface –Framing –Flow control – between adjacent machines –Error control –between adjacent machines The last two functions are provided for wireless LANs & in transport layer between host machines Other layers may also contain error & flow control –Modems today include error control

Chapt 3 Data Link Layer2 Services to network layer Unacknowledged connectionless service –Wired LANs use this because they have low error rate If frame must be corrected, transport layer will handle it Multimedia is better lost than late –We assume all frames are sent on same path for LANs Acknowledged connectionless service –If no ack is received, frame is resent Cheaper to correct at lower layer for unreliable media Acknowledged connection-oriented service –Connection established; state maintained

Chapt 3 Data Link Layer3 Framing –Frame delimiting Stop (0)/start (1) bits Beginning delimiter + character count Starting and ending characters –Character (byte) stuffing –Start (STX ) and end (ETX) flags for delimiting –ESC stuffed if encountered internally Starting and ending flags – delimiter with bit stuffing after 5 internal 1s Code violations

Error Detecting Codes Parity bits – perhaps one bit for each byte –Odd/ even parity –Detects only an odd number of incorrect bits –Not appropriate for burst errors Arrange data by columns –Compute parity bits at the end of each column –Detects errors perhaps.95% of the time (depending on channel) Chapt 3 Data Link Layer4

5 Error Detecting Codes (cont.) Backward Error Control (BEC) –Burst and random errors assumed CRC (cyclic redundancy code) »e.g., CRC-CCITT (16 bits) Example p.214 » by –Sender must resend incorrect frame Does receiver send NAK and/or does sender time-out and resend –Timer needed because NAK may be lost –Is this appropriate for multimedia applications? Delay! –At what layer and for what applications is BEC used?

Chapt 3 Data Link Layer6 Error Control Forward Error Control (FEC) –Enough redundancy is transmitted to correct errors that occur Codewords and Hamming distance Applications – ATM header, military use, space exploration, cellular phones –Note that ATM is defined for fiber, typically one bit errors, FEC is more appropriate P. 213

Chapt 3 Data Link Layer7 Flow control Stop sender from flooding receiver- frames may be lost If ack is part of protocol, frame can be discarded –Sender will time-out and resend –But this will cause additional traffic –Sender and Receiver agree to buffer size Option negotiation –Receiver sends signal for more frames May be after each frame or after group of frames

Chapt 3 Data Link Layer8 Flow control (cont.) ARQ –Window size of 1 (stop and wait) –Sender sends a frame and waits for receiver’s acknowledgement Error and flow control are integrated Frame and ack must be numbered 0 or 1 (1 bit sequence number) –Time-out and resend if ack is not received

Chapt 3 Data Link Layer9 Utilization of the channel This is a percentage, always less than 1 –U = good stuff / total stuff –We compute in terms of time U = transmission time of frame transmission time of (frame + ack) + 2T p –Increasing window size can increase utilization

Efficiency of Stop and Wait Assume use of stop and wait flow control for GEOs; 36 *10 6 meters high with transmission rate of 100Mbps; frame size of 1000 bits T x = 1000 bits /1000Mbps = 1 millionth of a sec. T p = 36 *10 6 meters/ 3 * 10 8 meters/sec =12/100 sec uplink and downlink propagation is.024 sec. Utilization of channel = T x = = 1 T x +2T p Chapt 3 Data Link Layer10

Chapt 3 Data Link Layer11 Flow control (cont.) For greater efficiency, allow multiple frames on the channel at the same time (fill the pipe) ARQ go back N –Windows size > 1 Sender size 2 bits in sequence number - 1 Receiver – window size of 1 ARQ selective reject –Window sizes of sender and receiver sum to –2 bits in sequence number

Chapt 3 Data Link Layer12 Sample Protocol - HDLC Framing – bit stuffing CRC Control field –Information frames Sequence Number Acknowledgment number –Supervisory frames for REJ, RR, RNR –Unnumbered frames

Chapt 3 Data Link Layer13 Sample Protocol – PPP Based on HDLC –RFC 1661,1662,1663 –Used for user-to-ISP, router-to-router –No address or control field may be necessary Can be left off –Character stuffing instead of bit stuffing –Protocol field to work with different protocols –Control field of (unnumbered)

Chapt 3 Data Link Layer14 Frame Relay & ATM Developed for fiber –Connection oriented –no ARQ –ATM dropped error control (except forward error control on header) and flow control – basically no data link coverage