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.

Slides:



Advertisements
Similar presentations
CH. 7 Data Link Control. Requirements & Objectives of Data Link Control Frame Synchronization Flow Control Error Control Addressing Control and Data on.
Advertisements

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
EIE325: Telecommunication TechnologiesMaciej J. Ogorza ł ek, PolyU, EIE Telecommunication Technologies Week 8 Flow Control Error Control.
William Stallings Data and Computer Communications 7th Edition
Data and Computer Communications Updated: 2/9/2009.
Department of Electronic Engineering City University of Hong Kong EE3900 Computer Networks Data Link Control Slide 1 Data Link Control Chapter 7.
Spring 2002CS 4611 Outline Encoding Framing Error Detection Sliding Window Algorithm Point-to-Point Links.
Chapter 7 – Data Link Control Protocols
PART III DATA LINK LAYER. Position of the Data-Link Layer.
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 12 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.
Long distance communication Multiplexing  Allow multiple signals to travel through one medium  Types Frequency division multiplexing Synchronous time.
1 Outline Encoding Framing Error Detection Sliding Window Algorithm Point-to-Point Links.
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.
Spring 2003CS 4611 Outline Encoding Framing Error Detection Sliding Window Algorithm Point-to-Point Links.
Semester Copyright USM EEE442 Computer Networks The Data Link / Network Layer Functions: Flow Control and Error Control En. Mohd Nazri Mahmud.
CS352- Link Layer Dept. of Computer Science Rutgers University.
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.
Error Detection and Reliable Transmission EECS 122: Lecture 24 Department of Electrical Engineering and Computer Sciences University of California Berkeley.
18-Aug-154/598N: Computer Networks Overview Direct link networks –Error detection - Section 2.4 –Reliable transmission - Section 2.5.
CS3502: Data and Computer Networks DATA LINK LAYER - 2 WB version.
Data Link Control Protocols
Data Link Control Protocols Dr. Muazzam A. Khan. Flow Control Ensuring the sending entity does not overwhelm the receiving entity —Preventing buffer overflow.
Aegis School of Telecommunication Chapter 7 Data Link Control Protocols Telecom Systems I by Dr. M. G. Sharma, Phd.
William Stallings Data and Computer Communications 7th Edition
Data Link Layer We have now discussed the prevalent shared channel technologies  Ethernet/IEEE  Wireless LANs (802.11) We have now covered chapters.
CS3502: Data and Computer Networks DATA LINK LAYER - 1.
Data and Computer Communications Tenth Edition by William Stallings Data and Computer Communications, Tenth Edition by William Stallings, (c) Pearson Education.
PART III DATA LINK LAYER. Position of the Data-Link Layer.
Chi-Cheng Lin, Winona State University CS 313 Introduction to Computer Networking & Telecommunication Data Link Layer Part I – Designing Issues and Elementary.
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.
جلسه هشتم شبکه های کامپیوتری به نــــــــــــام خدا.
Chapt 3 Data Link Layer1 Data Link Layer Functions –Provides services to network layer Well-defined interface –Framing –Flow control – between adjacent.
THE DATA LINK LAYER Chapter 3 1. H YBRID M ODEL The hybrid reference model to be used in this book. 2.
Data and Computer Communications Chapter 6 – Digital Data Communications Techniques.
ECE453 – Introduction to Computer Networks Lecture 4 – Data Link Layer (I)
EEC4113 Data Communication & Multimedia System Chapter 5: Error Control by Muhazam Mustapha, October 2011.
1 Message Delineation Identify the start and end of messages by: Identify the start and end of messages by:
1 CS4550: Computer Networks II Review Data Link Layer.
Data Link and Flow Control Networks and Protocols Prepared by: TGK First Prepared on: Last Modified on: Quality checked by: Copyright 2009 Asia Pacific.
Eighth Edition by William Stallings Chapter 7 – Data Link Control Protocols Data Link Control Protocols need layer of logic above Physical to manage exchange.
CIS : Data Link Control. Flow Control Ensuring the sending entity does not overwhelm the receiving entity —Preventing buffer overflow Transmission.
Wireless and Mobile Networks (ELEC6219) Session 4: Efficiency of a link. Data Link Protocols. Adriana Wilde and Jeff Reeve 22 January 2015.
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.
Data and Computer Communications Data Link Control Protocols.
1 The Data Link Layer A. S. Tanenbaum Computer Networks W. Stallings Data and Computer Communications Chapter 3.
Chapter 9: Data Link Control Business Data Communications, 4e.
Data Link Layer.
Coding and Error Control
Simple Parity Check The simplest form of error detection is the parity check used with ASCII codes, originally on asynchronous modem links Each 7 bit ASCII.
Chapter 9: Data Link Control
Data Link Layer Flow Control.
Data Link Layer.
Data Link Layer What does it do?
Rivier College CS575: Advanced LANs Chapter 6: Logical Link Control
Business Data Communications
CS412 Introduction to Computer Networking & Telecommunication
Point-to-Point Links Outline Encoding Framing Error Detection
Error detection: Outline
Chapter 9: Data Link Control
Data Link Layer. Position of the data-link layer.
Presentation transcript:

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. DL layer adds these, and combines bits into frames, or messages.  purpose of DL: transform unreliable physical bit stream into reliable data communications link...  PHY + DL = DATA COMMUNICATIONS  MAC layer (media access control) - takes place of DL layer in LANs (together with LLC)

data link layer : functions  framing and frame synchronization  error control  flow control  addressing  link management

data link layer : framing  bits must be grouped into frames ( messages)  frames marked by synchronous transmission: starts, ends with a special flag pattern  groups bits into fields, subgroups; two main types are data and control bits.  several types of control bits; some for  error detection and/or correction  addressing  flow control  other control type information

data link layer : error control  3 basic techniques  parity checking  simple and easy, but not very effective  CRC - cyclic redundancy check  more complex, but very effective and efficient  Hamming code  limited error correction; based on complex combinations of parity checks

data link layer : parity checking  to a group of data bits add a single extra bit, known as the parity bit. This bit is chosen to make the total number of 1s in the group even (or odd). Called even (odd) parity checking.  example: data bits ; add parity bit 1 --->

data link layer : parity checking  what is the problem with simple parity checking as described? (show how to fool it) X X X P  LRC - double parity checks improve this X X X X P P P P P P  show how to fool this error check  improves error probability by factor of

data link layer : error probabilities let P B = Prob [single bit error]; then (1 - P B ) = Prob [no error] for group of N bits, define P 1 : Prob[no errors] P 2 : Prob{ undetected error] P 3 : Prob[detected error] By definition, P 1 + P 2 + P 3 = 1

data link layer : error probabilities  frame probabilities, parity checking  given a frame, sent as a sequence of words/bytes, each with a parity check. What are P 1, P 2, and P 3 ?  N B = no.bits/word; N C = no.words/frame. P 1 = P 2 = P 3 =

error checking : CRC  stronger error check needed  idea: insert a group of bits in the frame, which serve as as more powerful check.  added bits ( frame check sequence, FCS ) cause the resulting frame to be exactly divisible by a predetermined number.  modulo-2 arithmetic used; binary addition with no carries  examples

error checking : CRC  CRC summary  all single and double bit errors  all odd numbers of errors  all burst errors smaller than n  most larger burst errors  If error detected, frame is retransmitted; does NOT correct error.  both CRC and parity checking widely used; CRC used in many network protocols, in addition to data link layer, including most LANs.  CRC can be implemented efficiently in hardware... computation done bit by bit

error checking : CRC implementation  shift register, XOR gates  1 XOR gate for each “1” in pattern P, minus 1.  (n-1) 1-bit shift registers  example : show logic circuit for P

error checking : Hamming code  correct a single bit error  detect multiple errors  extended parity checking; ie, redundant parity bits Idea: parity bits appear in positions corresponding to the nodes of a binary tree; data bits appear in positions corresponding to the leafs. If a bit is in error, the other bits “point” to it by their related positions in the tree.

error checking : Hamming code  each parity bit appears in a position corresponding to a power of 2: n = 0,1,2,4,8,16,...  bits checked by parity bit in position n are: 1. itself 2. continue for next n bits (including itself) 3. off (don’t check) next n bits 4. on (check) the next n bits and continue to end of message. Example: for the data , show Hamming coded mesage.

error checking Summary, error correction:  more complex codes correct multiple errors  require more redundancy, overhead. Also more time... so not widely used in communications.  do have a place in longer distance communications -- eg, deep space, etc. In fact could be critical to long distance ( time ) communications

DL layer : flow and error control  purpose : control flow of data from sender S to receiver R, so R is not overwhelmed nor kept idle  secondary purpose also used to avoid swamping the network or link with traffic.  technique : send control information between S and R, synchronizing on buffer space, transmission rates, etc.  protocols:  stop-and-wait, alternating bit  sliding window

data link layer : stop-and -wait protocol send 1 frame, then stop, and wait for an acknowledgment before sending the next. R X data ack data

data link layer : stop and wait protocols  what is the efficiency of this S&W protocol? i.e., of the total time spent, how much is actually spent sending the data?  variables t D, time spent transmitting the data t prop, propagation delay t proc, processing time t ack, time spent transmitting the ack. U, utilization or efficiency of the protocol

DL layer : stop and wait  finite state machine specification of the protocol  assuming no channel errors  reachability analysis of the protocol  what happens if a message is lost?

DL : stop and wait  to tolerate losses, must add timeouts (TO) and retransmissions  data loss  ack loss  finite state machine specification  timeout and retransmission  reachability analysis

DL : stop and wait  what is the efficiency of the stop and wait protocol? (what % of time actually Xmitting data)  assuming no channel losses  with channel losses  what happens if ack is lost? (what problem does this cause for the receiver?)  what is the obvious solution?

DL : alternating bit protocol  add a number to data frames, to uniquely identify; enable repeated messages to be safely discarded  CFSM specification, AB protocol  reachability analysis  efficiency

protocol specification  protocols are algorithms, critical to network operation; these are/will be standardized, and must be clearly specified, without ambiguity, so that  implementations by different vendors will be the same, and  protocol can be thoroughly analyzed (checked for errors)  communicating finite state machines (CFSM) - a very often used tool for protocol specification

link utilization of AB protocol satellite link earth

sliding window protocol suppose w = 63: what if d61 lost? d0 d1 d62

HDLC: high level data link control  ISO standard for a data link protocol  other DL standards exist, but are very similiar; e.g., PPP  HDLC combines various functions of the DL layer - flow control, error control, sequencing, framing, etc. - into a single protocol standard  HDLC standard is broad, covering several different cases

HDLC  frame types and formats  I-frame (info/data)  S-frame (supervisory)  U-frame (data)