Hamming Code Rachel Ah Chuen. Basic concepts Networks must be able to transfer data from one device to another with complete accuracy. Data can be corrupted.

Slides:



Advertisements
Similar presentations
Mahdi Barhoush Mohammad Hanaysheh
Advertisements

parity bit is 1: data should have an odd number of 1's
Error Control Code.
10.1 Chapter 10 Error Detection and Correction Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
NETWORKING CONCEPTS. ERROR DETECTION Error occures when a bit is altered between transmission& reception ie. Binary 1 is transmitted but received is binary.
PART III DATA LINK LAYER. Position of the Data-Link Layer.
ECOM 4314 Data Communications Fall September, 2010.
DIGITAL COMMUNICATION Coding
EEE377 Lecture Notes1 EEE436 DIGITAL COMMUNICATION Coding En. Mohd Nazri Mahmud MPhil (Cambridge, UK) BEng (Essex, UK) Room 2.14.
Error detection and correction
Error Detection and Correction Rizwan Rehman Centre for Computer Studies Dibrugarh University.
Hamming Code A Hamming code is a linear error-correcting code named after its inventor, Richard Hamming. Hamming codes can detect up to two bit errors,
exercise in the previous class (1)
Hamming Codes 11/17/04. History In the late 1940’s Richard Hamming recognized that the further evolution of computers required greater reliability, in.
Chapter 10 Error Detection and Correction
Shashank Srivastava Motilal Nehru National Institute Of Technology, Allahabad Error Detection and Correction : Data Link Layer.
USING THE MATLAB COMMUNICATIONS TOOLBOX TO LOOK AT CYCLIC CODING Wm. Hugh Blanton East Tennessee State University
1 Kyung Hee University Data Link Layer PART III. 2 Kyung Hee University Position of the data-link layer.
PART III DATA LINK LAYER. Position of the Data-Link Layer.
British Computer Society
© 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.
Error Control Code. Widely used in many areas, like communications, DVD, data storage… In communications, because of noise, you can never be sure that.
The Data Link Layer Goal –As reliable as possible, efficient communication Point-to-Point –single connection –bits arrive in order sent Not necessarily.
Data Communications, Kwangwoon University10-1 Part 3 Data Link Layer Chapter 10 Error Detection and Correction Chapter 11 Data Link Control Chapter 12.
Data and Computer Communications by William Stallings Eighth Edition Digital Data Communications Techniques Digital Data Communications Techniques Click.
Practical Session 10 Error Detecting and Correcting Codes.
Error Control Code. Widely used in many areas, like communications, DVD, data storage… In communications, because of noise, you can never be sure that.
§6 Linear Codes § 6.1 Classification of error control system § 6.2 Channel coding conception § 6.3 The generator and parity-check matrices § 6.5 Hamming.
DIGITAL COMMUNICATIONS Linear Block Codes
ADVANTAGE of GENERATOR MATRIX:
Information Theory Linear Block Codes Jalal Al Roumy.
Authentication protocol providing user anonymity and untraceability in wireless mobile communication systems Computer Networks Volume: 44, Issue: 2, February.
Computer Communication & Networks Lecture 9 Datalink Layer: Error Detection Waleed Ejaz
Error Detection.
10.1 Chapter 10 Error Detection and Correction Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
The parity bits of linear block codes are linear combination of the message. Therefore, we can represent the encoder by a linear system described by matrices.
Error Detection. Data can be corrupted during transmission. Some applications require that errors be detected and corrected. An error-detecting code can.
Error Detection and Correction – Hamming Code
Some Computation Problems in Coding Theory
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
Data Communications and Networking
Error-Detecting and Error-Correcting Codes
Sense making in linear algebra Lee Peng Yee Bangkok
Error Detection & Correction  Data can be corrupted during transmission.  For reliable transmission, errors must be detected and corrected.  Error detection.
Hamming Distance & Hamming Code
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.
Hamming (4,7) Code Binary Linear Codes Hamming Distance Weight of BLC
Richard Cleve DC 2117 Introduction to Quantum Information Processing QIC 710 / CS 667 / PH 767 / CO 681 / AM 871 Lecture (2011)
Data Link Layer 1. 2 Single-bit error 3 Multiple-bit error 4.
Practical Session 10 Computer Architecture and Assembly Language.
II. Linear Block Codes. © Tallal Elshabrawy 2 Digital Communication Systems Source of Information User of Information Source Encoder Channel Encoder Modulator.
ECE 442 COMMUNICATION SYSTEM DESIGN LECTURE 10. LINEAR BLOCK CODES Husheng Li Dept. of EECS The University of Tennessee.
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.
Error Detection and Correction
Data Link Layer.
Error Detection and Correction
Subject Name: COMPUTER NETWORKS-1
Part III Datalink Layer 10.
II. Linear Block Codes.
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
II. Linear Block Codes.
Error Detection and Correction
Error Detection and Correction
Types of Errors Data transmission suffers unpredictable changes because of interference The interference can change the shape of the signal Single-bit.
Data Link Layer. Position of the data-link layer.
Presentation transcript:

Hamming Code Rachel Ah Chuen

Basic concepts Networks must be able to transfer data from one device to another with complete accuracy. Data can be corrupted during transmission. For reliable communication, errors must be detected and corrected.

Types of Errors

Single - bit error

 Single bit errors are the least likely type of errors in serial data transmission because the noise must have a very short duration which is very rare.  However this kind of errors can happen in parallel transmission. Single-bit error

Burst error

 The term burst error means that two or more bits in the data unit have changed from 1 to 0 or from 0 to 1.  Burst errors does not necessarily mean that the errors occur in consecutive bits.  The length of the burst is measured from the first corrupted bit to the last corrupted bit. Burst error

Hamming Code  In the late 1940 ’ s Richard Hamming recognized that the further evolution of computers required greater reliability, in particular the ability to not only detect errors, but correct them.  His search for error-correcting codes led to the Hamming Codes, and the extended Hamming Codes, 1-error correcting and 2-error detecting codes.

Definitions  For linear codes, encoding is a linear transformation c that maps a message m to a codeword c(m).  Block codes means all codewords c(m) have the same length, which we denote as n.  Let k be the length of information bits that we encode. Then there are n-k redundancy bits in each codeword, called parity check bits, which are left for error correction.  (n, k) specify the parameters (codeword length and parity check bit length) for a block code.

Hamming Distance  The Hamming distance, d_H is the number of bits that have to be changed to get from one bit pattern to another.  Example: c1=( ) & c2=( ) have a hamming distance of 2  What about c1 = (101101) and c2 = (100110)?

Minimum Hamming Distance  Let d to be the minimum Hamming distance between any two distinct codewords of a code C as  A code with minimum distance d between codewords can detect d-1 errors and can correct (d-1)/2 errors.

Hamming weight  w(S) defined as the sum of its non-zero entries  A linear code is completely defined by all the codewords for messages of weight 1.

Hamming Code  The Hamming code is a single error correction linear block code with (n, k) = (2 m -1, 2 m -1-m)  where m = n k is the number of check bits in the codeword.  The simplest non-trivial code is for m = 3, which is the (7,4) Hamming code.  Generator matrix  Where S is k x (n k)

Hamming code  Suppose our matrix G generates a single error correcting code. Then there are no code words of weight 1 or 2, and the parity check portion S of G must satisfy the following 2 conditions:

(7,4) Hamming Code

 For every generator matrix g=[ I S], there is a parity check matrix H defined by

Example  received string r = ( )

Parity Errors  The class of Hamming single error correcting codes is noteworthy because they are particularly efficient in the use of parity bits.  The (7,4) Hamming code uses 3 parity bits to protect 4 data bits;

(15,11) code

Parity Computation  (7,4) code  Computations by receiver  Steps

Combination of syndrome bits  Appropriate corrective action for each combination of the syndrome bits