E RROR D ETECTION A ND C ORRECTION C ODES Error Detection Code (Parity bit) Error Correction Code ( Hamming Code)

Slides:



Advertisements
Similar presentations
Even/odd parity (1) Computers can sometimes make errors when they transmit data. Even/odd parity: is basic method for detecting if an odd number of bits.
Advertisements

STATISTIC & INFORMATION THEORY (CSNB134) MODULE 12 ERROR DETECTION & CORRECTION.
Hamming Code.
Dr. Shahriar Bijani Shahed University March 2014
Parity Generator and Checker
Chapter 6 Errors, Error Detection, and Error Control.
Parity. 2 Datasheets TTL:  CMOS: 
Quantum Error Correction SOURCES: Michele Mosca Daniel Gottesman Richard Spillman Andrew Landahl.
The Voting Game How do we overcome transmission errors?
1 Chapter Six - Errors, Error Detection, and Error Control Chapter Six.
Practical Session 11 Codes. Hamming Distance General case: The distance between two code words is the amount of 1-bit changes required to reach from one.
Data Communications Chapter 7 Error Detection. Despite the best prevention techniques, errors may still happen. To detect an error, something extra has.
Chapter 6 Errors, Error Detection, and Error Control
Unit 1 Protocols Learning Objectives: Understand the need to detect and correct errors in data transmission.
Error Detection/Correction Section 1.7 Section 3.9 Bonus Material: Hamming Code.
Error Detection and Correction.  Corrupted files  Attachments that won’t open  Files that won’t download  Videos that won’t play Errors occur when.
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.
Digital Logic Chapter 2 Number Conversions Digital Systems by Tocci.
1 Kyung Hee University Data Link Layer PART III. 2 Kyung Hee University Position of the data-link layer.
Error Detection and Correction
Information Coding in noisy channel error protection:-- improve tolerance of errors error detection: --- indicate occurrence of errors. Source.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Data Link Layer PART III.
© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. 1 Communication Reliability Asst. Prof. Chaiporn Jaikaeo, Ph.D.
CIT 307 Online Data Communications Error Detection Module 11 Kevin Siminski, Instructor.
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
Practical Session 10 Error Detecting and Correcting Codes.
Unit 5 Lecture 2 Error Control Error Detection & Error Correction.
Data Integrity © Prof. Aiman Hanna Department of Computer Science Concordia University Montreal, Canada.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Data Link Layer PART III.
1 Chapter Six - Errors, Error Detection, and Error Control Chapter Six.
Communication Systems 3.1) Characteristics of a Communication System.
Data Communications & Computer Networks, Second Edition1 Chapter 6 Errors, Error Detection, and Error Control.
Computer S y stems ( ) ~ 31 ~Data Communications: © P.L y ons 2004 Text usually unsuitable for RLE only contains repeated space chars D ata C ompression.
VLSI AND INTELLIGENT SYTEMS LABORATORY 12 Bit Hamming Code Error Detector/Corrector December 2nd, 2003 Department of Electrical and Computer Engineering.
Computer Communication & Networks Lecture 9 Datalink Layer: Error Detection Waleed Ejaz
ERROR DETECTING AND CORRECTING CODES -BY R.W. HAMMING PRESENTED BY- BALAKRISHNA DHARMANA.
1 © Unitec New Zealand CRC calculation and Hammings code.
CS 111 – Sept. 13 Error detection Error correction Review/practice chapter 1 questions Commitment: –Please read sections 2.1 and 2.2.
Data Link Layer. Data Link Layer Topics to Cover Error Detection and Correction Data Link Control and Protocols Multiple Access Local Area Networks Wireless.
1 Kyung Hee University Error Detection and Correction.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Data Link Layer PART III.
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.
Data Transmission and Networks Transmission error checking & correcting.
Combinational Logic Design
10.1 Types of Errors 10.2 Detection 10.3 Error Correction.
Hamming Codes The Hamming Code is a Forward Error-correcting Code (FEC) that uses redundant bits to correct a single bit error For 4 bit codes, 3 redundant.
ERROR DETECTION AND CORRECTION
Cyclic Redundancy Check (CRC)
ERROR CORRECTING CODES
OCR AS Level F451: Data transmission
Representing characters
Even/odd parity (1) Computers can sometimes make errors when they transmit data. Even/odd parity: is basic method for detecting if an odd number of bits.
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.

Dhanushiya. R I YEAR BSc COMPUTER TECHNOLOGY.  Error is a condition when the output information does not match with the input information. During transmission,
EEC4113 Data Communication & Multimedia System Chapter 5: Error Control by Muhazam Mustapha, August 2010.
Packetizing Error Detection
Packetizing Error Detection
Chapter 7 Error Detection and Correction
EET107/3 DIGITAL ELECTRONICS 1
Packetizing Error Detection
DATA COMMUNICATION Lecture-33.
COMPUTER NETWORKS CS610 Lecture-5 Hammad Khalid Khan.
Reliability and Channel Coding
Error Detection and Correction
Error Detection and Correction
Presentation transcript:

E RROR D ETECTION A ND C ORRECTION C ODES Error Detection Code (Parity bit) Error Correction Code ( Hamming Code)

E RRORS While transferring information from one storage media to another, error may occur due to uneven magnetic surface or due to noise or failure. For Example: if transmitter sends 8-bit data But receiver receives 8-bit as due to some noise or some other failure Transmitter Receiver Error

H OW TO DETECT THIS TYPES OF ERRORS ? For detecting such type of errors, we use the method of Parity in which an extra bit known as parity bit or parity check bit is added with the information/word. Now, we can send information or word either using ODD parity or EVEN parity. For ODD parity, the parity bit is so choosen that the total number of 1’s in each information or word is always odd, including the parity bit. And for EVEN parity, the parity bit is so choosen that the total number of 1’s in each information or word is always even, including the parity bit.

O DD /E VEN P ARITY BITS Information/WordOdd Parity (O P )Even Parity (E P )

U SE OF P ARITY B IT In previous example receiver do not know about the error. Because there is no mechanism by which the receiver detect the error. So what is the solution? By using parity bit receiver can easily detect the error (one bit error).

P REVIOUS E XAMPLE WITH P ARITY B IT Suppose we are using ODD Parity System. In order to generate parity bit we have to count the number of 1’s present in the information at transmitting end Transmitter Receiver Error We have 5 Ones (1’s) No of 1’s

P REVIOUS E XAMPLE WITH P ARITY B IT As we are using ODD Parity Bit System, and we have 5 ones (1’s) in the information so the Parity bit is? Answer: 0 The information word with Parity Bit Information/word Parity Bit Information/Word with Parity Bit

S END THIS WORD TO THE RECEIVER Suppose at receiving end the word is received as Now the complete situation is like Transmitter Receiver Error

I NFORMATION AT RECEIVING END How to detect the error at Receiving End? Again count the number of ones (1’s) at Receiving End. As we are using ODD Parity Bit system so according to that we have odd number of 1’s. That means the data at receiving end is not correct Information at Receiving End We Have 4 Ones (1’s) Information at Receiving End No of 1’s

E RROR D ETECTION Now we know that there is some error in the information/word at receiving end. But what is the error and on which bit? How we can detect? By using Hamming codes.

E RROR C ORRECTION C ODE By the use of Parity Bit we can just detect that, the information/word at receiving end is not correct. Because it is Error Detection Code. So the error detection code simple detect either the information/word at receiving end is correct or not. But it can’t correct the information/word. For this we need Error Correction Code. Hamming Code is one of the wall-known error correction Code.

H AMMING C ODE Three Steps Before Transmission. 1. Determine the number of Parity Bits to be added to the given message bits. 2. Determine the position of parity bits. 3. Determine the position checked by the Parity bits.