Error Detect and Correct
Error Detect and Correct
Error Detection
and
Correction
10.1
Note
10.2
10-1 INTRODUCTION
10.3
Figure 10.1 Single-bit error
10.4
Figure 10.2 Burst error of length 8
10.5
Figure 10.3 The structure of encoder and decoder
10.6
10-2 BLOCK CODING
10.7
10.8
Table 10.1 A code for error detection (Example 10.2)
10.9
Let’s add more redundant bits to see if we can correct error.
10.10
10-4 CYCLIC CODES
10.12
Cyclic Redundancy Checksum
The message (with the remainder) is transmitted to the
receiver.
The receiver divides the message and remainder by the same
generating polynomial.
If a remainder not equal to zero results, there was an error
during transmission.
If a remainder of zero results, there was no error during
transmission.
10.13
More Formally
10.14
More Formally
10.15
10.16
Common CRC Polynomials
10.17
CRC Example
10.18
10-5 CHECKSUM
10.19
Example 10.18
10.20
Example 10.19
10.21
Example 10.20
Solution
The number 21 in binary is 10101 (it needs five bits). We
can wrap the leftmost bit and add it to the four rightmost
bits. We have (0101 + 1) = 0110 or 6.
10.22
Example 10.21
Solution
In one’s complement arithmetic, the negative or
complement of a number is found by inverting all bits.
Positive 6 is 0110; negative 6 is 1001. If we consider only
unsigned numbers, this is 9. In other words, the
complement of 6 is 9. Another way to find the complement
of a number in one’s complement arithmetic is to subtract
the number from 2n − 1 (16 − 1 in this case).
10.23
Example 10.22
10.25
Figure 10.24 Example 10.22
1 1 1 1
1 0 0 0 0
10.26
Note
Sender site:
1. The message is divided into 16-bit words.
2. The value of the checksum word is set to 0.
3. All words including the checksum are
added using one’s complement addition.
4. The sum is complemented and becomes the
checksum.
5. The checksum is sent with the data.
10.27
Note
Receiver site:
1. The message (including checksum) is
divided into 16-bit words.
2. All words are added using one’s
complement addition.
3. The sum is complemented and becomes the
new checksum.
4. If the value of checksum is 0, the message
is accepted; otherwise, it is rejected.
10.28
Example 10.23
F F
F F F F
10.30
Error Correcting Codes
or
Forward Error Correction (FEC)
10.32
Redundancy bits calculation
10.33
Example of redundancy bit calculation
10.34
Error detection using Hamming code
10.35
Review Questions
10.36