9. Error Detection and Correction
9. Error Detection and Correction
10.2
Introduction
10.7
Figure 10.2 Burst error of length 8
10.10
Forward error correction analogy
• Analogy: A Magic Letter with Extra Copies
• Imagine you are sending a letter to your friend, but you are worried
that some words might get smudged or lost on the way.
• To solve this, you write extra copies of each important word in the
letter. So even if one or two words get smudged, your friend can still
guess the missing words correctly by looking at the extra copies.
• This is exactly what FEC does! In computers and networks, when data
is sent, some extra information is added so that if anything gets lost
or changed, the receiver can correct it without asking again.
Simple analogy (retransmission)
10.28
Note
The Hamming distance between two words is the number of differences between
corresponding bits.
10.30
• The Hamming distance between two words is the number of
differences between corresponding bits.
Example 10.4
10.32
Note
The minimum Hamming distance is the smallest Hamming distance between
all possible pairs in a set of words.
10.33
Table 10.1 A code for error detection (Example 10.2)
10.34
Example 10.5
10.35
Table 10.2 A code for error correction (Example 10.3)
10.36
Example 10.6
Solution
We first find all the Hamming distances.
10.37
Error detection techniques
Note
10.55
Figure 10.11 Two-dimensional parity-check code
10.56
Figure 10.11 Two-dimensional parity-check code
10.57
Figure 10.12 The structure of the encoder and decoder for a Hamming code
10.58
Table 10.5 Logical decision made by the correction logic analyzer
10.60
Example