CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 11 Introduction to Computer Networks.

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

10.1 Chapter 10 Error Detection and Correction Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
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.
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.
Reliability & Channel Coding
Chapter 6 Errors, Error Detection, and Error Control.
Transmission Errors Error Detection and Correction
EEC-484/584 Computer Networks
EEC-484/584 Computer Networks Lecture 6 Wenbing Zhao
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 10 Introduction to Computer Networks.
1 Chapter Six - Errors, Error Detection, and Error Control Chapter Six.
PART III DATA LINK LAYER. Position of the Data-Link Layer.
EEC-484/584 Computer Networks Lecture 8 Wenbing Zhao (Part of the slides are based on materials supplied by Dr. Louise Moser at UCSB and.
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.
CMPE 150 – Winter 2009 Lecture 6 January 22, 2009 P.E. Mantey.
Network Data Organizational Communications and Technologies Prithvi N. Rao Carnegie Mellon University Web:
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.
Transmission Errors Error Detection and Correction
Channel Coding and Error Control
Data Link Layer - 1 Dr. Sanjay P. Ahuja, Ph.D. Fidelity National Financial Distinguished Professor of CIS School of Computing, UNF.
PART III DATA LINK LAYER. Position of the Data-Link Layer.
© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. 1 Communication Reliability Asst. Prof. Chaiporn Jaikaeo, Ph.D.
Part 2: Packet Transmission Packets, frames Local area networks (LANs) Wide area networks (LANs) Hardware addresses Bridges and switches Routing and protocols.
10.1 Chapter 10 Error Detection and Correction Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
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
Data Link Layer. Data Link Layer Design Issues Services Provided to the Network Layer Framing Error Control Flow Control.
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)
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.
Computer Communication & Networks Lecture 9 Datalink Layer: Error Detection Waleed Ejaz
CHAPTER 3: DATA LINK CONTROL Flow control, Error detection – two dimensional parity checks, Internet checksum, CRC, Error control, Transmission efficiency.
1 © Unitec New Zealand CRC calculation and Hammings code.
Error Detection.
10.1 Chapter 10 Error Detection and Correction Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
10.1 Chapter 10 Error Detection and Correction Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Review.
10.1 Chapter 10 Error Detection and Correction Data can be corrupted during transmission. Some applications require that errors be detected and.
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
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 PART III: DATA LINK LAYER ERROR DETECTION AND CORRECTION 7.1 Chapter 10.
Winter 2007CS244a Handout 141 CS244a: An Introduction to Computer Networks Handout 14: Error Detection and Correction Nick McKeown Professor of Electrical.
Transmission Errors Error Detection and Correction.
10.1 Chapter 10 Error Detection and Correction Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
10.1 Chapter 10 Error Detection and Correction Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
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.
Part III: Data Link Layer Error Detection and Correction
ERROR DETECTION AND CORRECTION Chapter 8 Data Communications & Networking ERROR DETECTION AND CORRECTION Chapter 8 First Semester 2007/2008.
The Data Link Layer Chapter 3. Data Link Layer Design Issues Services Provided to the Network Layer Framing Error Control Flow Control.
Introduction to Information Technologies
Data Link Layer Objective: to achieve reliable and efficient communication between 2 adjacent machines Data link layer design issues services provided.
Advanced Computer Networks
CIS 321 Data Communications & Networking
Data Link Layer What does it do?
EEC-484/584 Computer Networks
Computer Networks Bhushan Trivedi, Director, MCA Programme, at the GLS Institute of Computer Technology, Ahmadabad.
Introduction to Information Technologies
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.
Protocols and the TCP/IP Suite
EEC-484/584 Computer Networks
COMPUTER NETWORKS CS610 Lecture-5 Hammad Khalid Khan.
Presentation transcript:

CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 11 Introduction to Computer Networks

CMPE 150- Introduction to Computer Networks 2 Announcements No labs this week! –Except for make-up sessions. Homework 2 is up. –Due Graded homework 1 is back. Midterm on

CMPE 150- Introduction to Computer Networks 3 Last Class Started DLL (layer 2). –Functionality. –Error control. –Flow control. Framing. –Different approaches. –Counters. –Flag byte. Byte stuffing. Bit stuffing.

CMPE 150- Introduction to Computer Networks 4 Reading Assignment Tanenbaum Chapter 3.

CMPE 150- Introduction to Computer Networks 5 Today Layer 2 (cont’d)

CMPE 150- Introduction to Computer Networks 6 Error Control

CMPE 150- Introduction to Computer Networks 7 Error Control Reliable delivery. –Hop-by-hop! Detecting errors. Detecting and correcting errors.

CMPE 150- Introduction to Computer Networks 8 Acknowledgments Special control info (in the case of the DLL, control frame) acknowledging receipt of data. Positive and negative ACKs. –ACKs. –NACKs. Are ACKs sufficient?

CMPE 150- Introduction to Computer Networks 9 Reliable Delivery Timers. Retransmission. Duplicate detection.

CMPE 150- Introduction to Computer Networks 10 Flow Control Handles mismatch between sender’s and receiver’s speed. –Receiver’s buffer limitation. Feedback-based flow control. –Explicit permission from receiver. Rate-based flow control. –Implicit mechanism for limiting sending rate. DLL typically uses feedback-based flow control.

CMPE 150- Introduction to Computer Networks 11 Error Detection and Correction Add control information to the original data being transmitted. Error detection: enough info to detect error. –Need retransmissions. Error correction: enough info to detect and correct error. –A.k.a., forward error correction (FEC).

CMPE 150- Introduction to Computer Networks 12 Why? Error detection versus error correction. Cost-efficiency? –Environment. –Application.

CMPE 150- Introduction to Computer Networks 13 What’s an error? Frame = m data bits + r bits for error control. –n = m + r. Given the original frame f and the received frame f’, how many corresponding bits differ? –Hamming distance (Hamming, 1950).

CMPE 150- Introduction to Computer Networks 14 Hamming Distance: Examples

CMPE 150- Introduction to Computer Networks 15 Hamming Distance If f and f’ are Hamming distance of d apart, there needs to be d single-bit errors to convert f to f’. Error detecting/correcting properties of a code depend on the code’s Hamming distance. –To detect d errors, need code with Hamming distance d+1. Need d+1 single-bit errors to change a valid f to a valid f’. If receiver sees invalid f’, it knows an error occurred.

CMPE 150- Introduction to Computer Networks 16 Parity Bit Simple error detecting code. Even- or odd parity. Example: –Transmit –Add parity bit (even parity) or (odd parity). Code with single parity bit has Hamming distance of 2! –Any single bit error produces frame with wrong parity.

CMPE 150- Introduction to Computer Networks 17 Error Correcting Codes To correct d errors, need 2d+1distance code. –Code words are 2d+1 apart. –With d changes, original frame is closer than any other valid frame.

CMPE 150- Introduction to Computer Networks 18 Error Correction: Example Suppose code with 4 valid words: , , , –Hamming distance is 5. –Possible to correct double errors. –Example: If arrives at receiver, receiver assumes original must have been –But if triple error changes into , not able to correct it properly.

CMPE 150- Introduction to Computer Networks 19 Hamming Code Bits in positions that are power of 2 are check bits. The rest are data bits. Each check bit used in parity (even or odd) computation of collection of bits. –Example: check bit in position 11, checks for bits in positions, 11 = Similarly, bit 11 is checked by bits 1, 2, and 8.

CMPE 150- Introduction to Computer Networks 20 Hamming Code: Example 7-bit. Hamming codes can only correct single errors..

CMPE 150- Introduction to Computer Networks 21 Error Detecting Codes Typically used in reliable media. Examples: parity bit, polynomial codes (a.k.a., CRC, or Cyclic redundancy Check).

CMPE 150- Introduction to Computer Networks 22 Polynomial Codes Treat bit strings as representations of polynomials with coefficients 1’s and 0’s. K-bit frame is coefficient list of polynomial with k terms (and degree k-1), from x k-1 to x 0. –Highest-order bit is coefficient of x k-1, etc. –Example: represents x 5 + x 4 +x 0. Generator polynomial G(x). –Agreed upon by sender and receiver.

CMPE 150- Introduction to Computer Networks 23 CRC Checksum appended to frame being transmitted. –Resulting polynomial divisible by G(x). When receiver gets checksummed frame, it divides it by G(x). –If remainder, then error!

CMPE 150- Introduction to Computer Networks 24 Cyclic Redunancy Check At Transmitter, with M = , compute 2 r M= with G = T = 2 r M + R [note G starts and ends with “1” ]  R = Transmit T=

CMPE 150- Introduction to Computer Networks 25 Cyclic Redundancy Check At the Receiver, compute: Note remainder = 0  no errors detected

CMPE 150- Introduction to Computer Networks 26 CRC Performance Errors go through undetected only if divisible by G(x) With “suitably chosen” G(x) CRC code detects all single-bit errors. And more…

CMPE 150- Introduction to Computer Networks 27 More on CRC