DATA COMMUNICATION Lecture-35.

Slides:



Advertisements
Similar presentations
10.1 Chapter 10 Error Detection and Correction Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Advertisements

Chapter 10 Error Detection and Correction
PART III DATA LINK LAYER. Position of the Data-Link Layer.
Error Detection and Correction
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.
Shashank Srivastava Motilal Nehru National Institute Of Technology, Allahabad Error Detection and Correction : Data Link Layer.
Chapter 6 Multiplexingand Error Detection/Correction 1/60 By Dr.Sukchatri P.
1 Kyung Hee University Data Link Layer PART III. 2 Kyung Hee University Position of the data-link layer.
1 Data Link Layer Lecture 20 Imran Ahmed University of Management & Technology.
PART III DATA LINK LAYER. Position of the Data-Link Layer.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Data Link Layer PART III.
British Computer Society
CIT 307 Online Data Communications Error Detection Module 11 Kevin Siminski, Instructor.
Data and Computer Communications
10.1 Chapter 10 Error Detection and Correction Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Data Link Layer: Error Detection and Correction
Unit 5 Lecture 2 Error Control Error Detection & Error Correction.
COSC 3213: Computer Networks I Instructor: Dr. Amir Asif Department of Computer Science York University Section M Topics: 1. Error Detection Techniques:
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Data Link Layer PART III.
Error Detection and Correction
Overview All data can be corrupted, for reliable communications we must be able to detect and correct errors implemented at the data link and transport.
Lecture 5 Checksum. 10.2CHECKSUM Checksum is an error-detecting technique that can be applied to a message of any length. In the Internet, the checksum.
Computer Communication & Networks Lecture 9 Datalink Layer: Error Detection Waleed Ejaz
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.
Computer Communication & Networks Lecture 10 Datalink Layer: Error Correction Waleed Ejaz
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.
1 Kyung Hee University Error Detection and Correction.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Data Link Layer PART III.
10.1 Chapter 10 Error Detection and Correction Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Data Link Layer 1. 2 Single-bit error 3 Multiple-bit error 4.
ERROR DETECTION AND CORRECTION Chapter 8 Data Communications & Networking ERROR DETECTION AND CORRECTION Chapter 8 First Semester 2007/2008.
10.1 Types of Errors 10.2 Detection 10.3 Error Correction.
Computer Network Lab. 1 9 장 Error Detection and Correction 9.1 Types of Errors 9.2 Detection 9.3 Error Correction 9.4 요약.
1 Kyung Hee University Prof. Choong Seon HONG Error Detection and Correction.
CS4470 Computer Networking Protocols
Error Detection and Correction
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.
9장 Error Detection and Correction
Error Detection and Correction
ERROR DETECTION AND CORRECTION
Data Link Layer.
Error Detection and Correction
Many to one/one to many Types of multiplexing Telephone system
Subject Name: COMPUTER NETWORKS-1
Error Detection and Correction
CIS 321 Data Communications & Networking
Part III Datalink Layer 10.
Data Link Layer.
Error Detection Bit Error Rate(BER): It is the ratio of number Ne of errors appearing over a certain time interval t to the number Nt of 1 and 0 pulses.
PART III Data Link Layer.
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
Chapter 9 Error Detection and Correction
DATA COMMUNICATION Lecture-33.
Protocols and the TCP/IP Suite
Chapter 9 Error Detection and Correction
Error Detection and Correction
Error Detection and Correction
Error Detection and Correction
Error Detection and Correction
DATA COMMUNICATION Lecture-34.
DATA COMMUNICATION Lecture-36.
Data Link Layer. Position of the data-link layer.
Chapter 10 Error Detection and Correction
Presentation transcript:

DATA COMMUNICATION Lecture-35

Recap of Lecture 34 Types of Redundancy Checks Longitudinal Redundancy Check (LRC) Cyclic Redundancy Check (CRC)

Overview of Lecture 35 Checksum Single-Bit Error Correction Hamming Code

Modulo-2 Division in a CRC Generator

Modulo-2 Division in a CRC Checker

One’s Complement Finding one’s complement Invert every 1 to 0 and 0 to 1 A and –A are one’s complement of each other +A = 1010  -A = 0101 +0 = 0000  -0 = 1111

Checksum Error detection method used by the higher layers The unit is divided into k sections, each of n bits All sections are added and complemented to get the checksum, using one’s complement arithmetic

Checksum

Performance of Checksum Detects all errors involving an odd number of bits Detects most errors involving an even number of bits One pattern remains elusive

Example 9.7 Suppose a block of 16 bits need to be sent: 10101001 00111001 10101001 00111001 ---------------- 11100010 Sum 00011101 Checksum Sent pattern: 10101001 00111001 00011101 checksum

Example 9.8 Examples of no error and a burst error Segment 1 10101001 Segment1 10101111 Segment 2 00111001 Segment2 11111001 Checksum 00011101 Checksum 00011101 ----------------- ---------------- Sum 11111111 Sum 11000110 Complement 00000000 Complement 00111001

Performance of Checksum Error is invisible if a bit inversion is balanced by an opposite bit inversion in the corresponding digit of another segment Segment1 10111101 Segment2 00101001 Checksum 00011001 ---------------------- Sum 11111111  The error is undetected

Single-Bit Error Correction Error correction requires more redundancy bits than error detection One additional bit can detect single-bit errors Parity bit in VRC One bit for two states: error or no error

Single-Bit Error Correction To correct the error, more bits are required Error correction locates the invalid bit or bits 8 states for 7-bit data: no error, error in bit 1, and so on Looks like three bits of redundancy is adequate What if an error occurs in the redundancy bits?

Redundancy Bits (r) r must be able to indicate at least m+r+1 states m+r+1 states must be discoverable by r bits Therefore, 2r  m+r+1 If m=7, r=4 as 24  7+4+1

Redundancy Bits

Summary Checksum Single-Bit Error Correction Hamming Code

Suggested Reading Section 9.6, 9.7, “Data Communications and Networking” 2nd Edition by Behrouz A. Forouzan