Download presentation
Presentation is loading. Please wait.
Published byMagdalen Brooks Modified over 9 years ago
1
Error Detection
2
Data can be corrupted during transmission. Some applications require that errors be detected and corrected. An error-detecting code can detect only the types of errors for which it is designed; other types of errors may remain undetected. Types of Errors Redundancy Detection Versus Correction Forward Error Correction Versus Retransmission Coding Topics discussed in this section:
3
Single-bit error In a single-bit error, only 1 bit in the data unit has changed.
4
Burst error of length 8 A burst error means that 2 or more bits in the data unit have changed.
5
Error Detection Two main methods of Error Correction –Forward Error Correction (FEC) – adding redundancy bits –Retransmission – resending of data FEC is used when the potential error is small. Redundancy in FEC is achieved by means of Coding, means adding control bits to data. Block codes and Convolutional Codes. Only simple Block code will be discussed The ability to detect an error and the ability to correct an error is two different thing. Determined by the min Hamming Distance, d min
6
To detect or correct errors, we need to send extra (redundant) bits with data.
7
Using XOR logic of two single bits or two words
8
BLOCK CODING In block coding, we divide our message into blocks, each of k bits, called datawords. We add r redundant bits to each block to make the length n = k + r. The resulting n-bit blocks are called codewords. Error Detection Error Correction Hamming Distance Minimum Hamming Distance Topics discussed in this section:
9
Figure 10.5 Datawords and codewords in block coding
10
Process of error detection in block coding
11
A code for error detection; k =2, n=3 A code for error correction; k=2, n=5
12
The Hamming distance d between two words is the number of differences between corresponding bits. Find the Hamming distance between two pairs of words. 1. The Hamming distance d(000, 011) is 2 because 2. The Hamming distance d(10101, 11110) is 3 because
13
The minimum Hamming distance d min is the smallest Hamming distance between all possible pairs in a set of codewords. d min = 2 d min = 3
14
To guarantee the detection of up to s errors in all cases, the minimum Hamming distance in a block code must be d min = s + 1. s is the number of detectable error If d min = 2, then s = 1 If d min = 3, then s = 2 Detectable Error (s)
15
To guarantee correction of up to t errors in all cases, the minimum Hamming distance in a block code must be d min = 2t + 1. t is the number of correctable error Correctable Error (t) If d min = 2, then s = 1, but t = ½ ~ 0 means able to detect upto 1 error but cannot correct any If d min = 3, then s = 2, but t = 1 means able to detect upto 2 errors but can only correct 1
16
Another example of block code using Simple parity-check code C(5, 4) A simple parity-check code can detect an odd number of errors.
17
Encoder and decoder for simple parity-check code
18
An example of block code using Hamming code C(7, 4)
19
The structure of the encoder and decoder for a Hamming code
20
10-4 CYCLIC CODES Cyclic codes are special linear block codes with one extra property. In a cyclic code, if a codeword is cyclically shifted (rotated), the result is another codeword. Cyclic Redundancy Check Hardware Implementation Polynomials Cyclic Code Analysis Advantages of Cyclic Codes Other Cyclic Codes Topics discussed in this section:
21
Table 10.6 A CRC code with C(7, 4) Divisor determine the outcome of the codeword, which is pre-agreed between sender and receiver
22
CRC encoder and decoder
23
Division in CRC encoder
24
Figure 10.16 Division in the CRC decoder for two cases
25
Figure 10.19 The CRC encoder design using shift registers Divisor = 1011
26
Simulation and implementation CRC encoder using shift register
27
General design of encoder and decoder of a CRC code
28
Figure 10.21 A polynomial to represent a binary word
29
Figure 10.22 CRC division using polynomials Divisor = 1011 Augmented Dataword = 1001000 CRC Codeword = 1001110
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.