Chapter 2 Error-Detecting Codes. Outline 2.1 Why Error-Detecting Codes? 2.2 Simple Parity Checks 2.3 Error-Detecting Codes 2.4 Independent Errors: White.

Slides:



Advertisements
Similar presentations
Noise, Information Theory, and Entropy (cont.) CS414 – Spring 2007 By Karrie Karahalios, Roger Cheng, Brian Bailey.
Advertisements

Computer Interfacing and Protocols
Computer Networking Error Control Coding
Error-Correcting Codes
NETWORKING CONCEPTS. ERROR DETECTION Error occures when a bit is altered between transmission& reception ie. Binary 1 is transmitted but received is binary.
Chapter 3: Channel Coding (part 1)
PART III DATA LINK LAYER. Position of the Data-Link Layer.
The Data Link Layer Chapter 3. Position of the data-link layer.
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.
Chapter 2 Parity checks Simple codes Modular arithmetic.
1 Chapter 1 Introduction. 2 Outline 1.1 A Very Abstract Summary 1.2 History 1.3 Model of the Signaling System 1.4 Information Source 1.5 Encoding a Source.
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.
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.
Session 11: Coding Theory II
Lecture 10: Error Control Coding I Chapter 8 – Coding and Error Control From: Wireless Communications and Networks by William Stallings, Prentice Hall,
Topic 2 – Introduction to Computer Codes. Computer Codes A code is a systematic use of a given set of symbols for representing information. As an example,
Chapters 16 & 17 Sarah Cameron 18 March  Review of Modular Arithmetic  Identification Numbers ZIP Codes Bar Codes  Binary Codes  Encryption.
Information Coding in noisy channel error protection:-- improve tolerance of errors error detection: --- indicate occurrence of errors. Source.
CS151 Introduction to Digital Design
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.
Chapter 1: Digital Computers and Information Illustration at beginning of each Chapter Base 10 Binary Base 2 Octal Base 8 Hex bas
Data and Computer Communications
MIMO continued and Error Correction Code. 2 by 2 MIMO Now consider we have two transmitting antennas and two receiving antennas. A simple scheme called.
Data and Computer Communications Chapter 6 – Digital Data Communications Techniques.
Data and Computer Communications by William Stallings Eighth Edition Digital Data Communications Techniques Digital Data Communications Techniques Click.
Introduction to Coding Theory. p2. Outline [1] Introduction [2] Basic assumptions [3] Correcting and detecting error patterns [4] Information rate [5]
Unit 5 Lecture 2 Error Control Error Detection & Error Correction.
Error Detection and Correction
PREPARED BY: ENGR. JO-ANN C. VIÑAS
1 Rectangular Codes Triplication codes: m 1 m 2 m 3 m 1 m 1 m 1 m 2 m 2 m 2 m 3 m 3 m 3 Repeated 3 times At receiving end, a majority vote is taken.
Barcodes! Felipe Voloch These notes and the barcode program are available at /barcode.html.
DIGITAL COMMUNICATIONS Linear Block Codes
Chapter 31 INTRODUCTION TO ALGEBRAIC CODING THEORY.
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.
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.
1 Block Coding Messages are made up of k bits. Transmitted packets have n bits, n > k: k-data bits and r-redundant bits. n = k + r.
Error Detection and Correction
Assoc. Prof. Dr. Ahmet Turan ÖZCERİT.  The necessity and advantages of coding  The variety of coding systems You will learn: 2.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 PART III: DATA LINK LAYER ERROR DETECTION AND CORRECTION 7.1 Chapter 10.
1/30/ :20 PM1 Chapter 6 ─ Digital Data Communication Techniques CSE 3213 Fall 2011.
Winter 2007CS244a Handout 141 CS244a: An Introduction to Computer Networks Handout 14: Error Detection and Correction Nick McKeown Professor of Electrical.
1 Kyung Hee University Error Detection and Correction.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Data Link Layer PART III.
ECE 101 An Introduction to Information Technology Information Coding.
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.
Hamming (4,7) Code Binary Linear Codes Hamming Distance Weight of BLC
Part III: Data Link Layer Error Detection and Correction
Error Detecting and Error Correcting Codes
Chi-Cheng Lin, Winona State University CS412 Introduction to Computer Networking & Telecommunication Error Correction/Detection.
ERROR DETECTION AND CORRECTION Chapter 8 Data Communications & Networking ERROR DETECTION AND CORRECTION Chapter 8 First Semester 2007/2008.
Modulo-2 Digital coding uses modulo-2 arithmetic where addition becomes the following operations: 0+0= =0 0+1= =1 It performs the.
Error Detection and Correction
DATA COMMUNICATION AND NETWORKINGS
Advanced Computer Networks
CIS 321 Data Communications & Networking
Packetizing Error Detection
Packetizing Error Detection
Packetizing Error Detection
Reliability and Channel Coding
Types of Errors Data transmission suffers unpredictable changes because of interference The interference can change the shape of the signal Single-bit.
Presentation transcript:

Chapter 2 Error-Detecting Codes

Outline 2.1 Why Error-Detecting Codes? 2.2 Simple Parity Checks 2.3 Error-Detecting Codes 2.4 Independent Errors: White Noise 2.5 Retransmission of Message 2.6 Simple Burst Error-Detecting Codes 2.7 Weighted Codes 2.8 Review of Modular Arithmetic 2.9 ISBN Book Numbers

2.1 Why Error-Detecting Codes? senderreceiver channel memory (channel) writeread We require very reliable transmission through the channel, whether it be through space when signaling from here to there (transmission), or through time when signaling from now to then (storage). Experience shows that it is not easy to build equipment that is highly reliable.

If repetition is possible, then it is frequently sufficient merely to detect the presence of an error. It is possible to catch error only if there are some restrictions on what is a proper message. The problem is to keep these restrictions on the possible messages down to ones that are simple. EncodeDecode feedback (only detected)

2.2 Simple Parity Checks (n-1) message + nth parity-check position m 1 m 2 ... m n-1 p even-parity check: decide p to make the number of 1’s in the message even odd-parity check: decide p to make the number of 1’s in the message odd A single error or odd number of errors can be detected. A double error cannot be detected. Nor can any even number of errors be detected.

Assumption –(1)The probability of an error in any one binary position is a definite number p. –(2)Error in different positions are independent. Then –The probability of a single error is –The probability of a double error is Optimal length of message to be checked depends on both the reliability desired.

Parity count circuit EvenOdd

2.3 Error-Detecting Codes a long message is n -1 digits + 1 digit n digits Redundancy: the number of binary digits actually used divided by the minimum necessary. The excess redundancy is 1 / (n - 1). –For low redundancy use long message. –For high reliability use short messages

2.4 Independent Errors: White Noise White Noise –(1) an equal probability p of an error in each position. –(2) an independence of error in different positions. Burst error –Errors occur in successive position.

For white noise: no error : (1 – p) n 1 error : np(1 - p) n -1 2 error : even number of errors: The probability of no errors is the first term (m=0)of the series.

2.5 Retransmission of Message

2.6 Simple Burst Error-Detecting Codes Assumed that any burst length k was. (0 ≤ k ≤ L) k L

2.7 Weighted Codes People have a tendency to interchange adjacent digits of number; for example, 67 becomes 76 or 667 becomes 677. How to overcome these human errors, and we can detect easily. A rather frequent situation is to have an alphabet, plus space, plus the 10 decimal digits as the complete set of symbols to be used. This amounts to =37 symbols in the sending message.

We weight the symbols with weights 1, 2, 3,... beginning with the check digit of the message. m 1 m 2 m 3 . . w 1 =1 w 2 =2 w 3 =3 . .. We reduce the sum modulo 37 so that a check symbol can selected that will make the sum 0 modulo 37.

If there are interchanged digits, their sums will different from original sums. If the interchanged digits are the kth and (k+1)st

How to compute the weighted sums

2.8 Review of Modular Arithmetic XORAND

2.9 ISBN Book Numbers 0 – 1321 – 2571 – 4 W = Choose mod m = 11 (It can not be 10, because it is not prime. Below is reason.)