Error Detection and Correctionv1.1
Error Detection and Correctionv1.1
integers 0 to 11.
In Modulo N system, if number is > N, it
will divided by N and the remainder is the
result.
If N is negative, it will change to positive
value.
1/8/2022 ITT 300 15
1/9/2022 ITT 300 16
1/9/2022 ITT 300 17
Modular Arithmetic
Adding
0+0=0 , 0+1=1, 1+0=1, 1+1 = 0
Subtraction
0-0=0, 0-1=1, 1-0=1, 1-1=0
10.21
Error Detection
How errors can be detected by using
block coding? If 2 conditions are met:-
The receiver has a list of valid codewords.
The original codeword has changed to
invalid one.
Error detection code can detect only types
of errors for which it is designed; other
types of errors remain undetected.
10.23
Example 10.2
10.24
Example 10.2 (continued)
10.25
Table 10.1 A code for error detection (Example 10.2)
10.26
Error Correction
It is more difficult than error detection
Error detection, the receiver needs to know
only the received codeword is invalid
But, in error correction the receiver need to
find (guess) the original codeword sent
In other words, we need more redundant
bits for error correction than error
detection
10.29
Minimum Hamming distance
Although the hamming distance is being used
for error detection and correction
It measurement that used for designing a
code is minimum hamming distance
Minimum hamming distance (dmin) is the
smallest hamming distance all possible
pairs in a set of words.
10.32
Example 10.6
Solution
We first find all the Hamming distances.
10.33
Minimum distance for error
detection
In the Hamming distance able to detect error as s
error,
The minimum distance between the valid codes
must be s +1
To guarantee the detection of up to s error in all
cases, the minimum Hamming distance in a block
Parity Cyclic
Redundancy Checksum
Check Check (CRC)
codeword EVEN
SYNDROME 0 = when the number of 1s in
codeword is EVEN
SYNDROME 1 = when the number of 1s in
codeword is ODD
1/8/2022 ITT 300 42
Example 1
10.49
10.6 Two-dimensional parity
1/8/2022 ITT 300 50
Figure 10.11 Two-dimensional parity-check code
10.51
Figure 10.11 Two-dimensional parity-check code
10.52
Example 4
10.57
Figure 10.15 Division in CRC encoder
10.58
Cyclic Redundancy Check (CRC)
Characteristics Descriptions
Encoder Take dataword and augmented with n – k number
of 0s . Then divide the augmented dataword by
divisor.
Decoder Same as division process as the encoder. The
remainder of division is syndrome.
If syndrome 0 = no errors, dataword is ACCEPTED
Otherwise it will be discarded
Divisor The divisor has n – k +1 bits which predefined or
all 0s.
10.63
Polynomials
How the cyclic code can be analyzed?
By using Polynomial
A pattern of 0s and 1s represented in polynomial with
coeffiecient of 0 and 1
10.10 A polynomial
10.66
Polynomial
Degree of polynomial is the highest power in the
polynomial
Eg:- The highest degree of polynomial is 7.
10.70
Table 10.1 Standard polynomials
Name Polynomial Application
10.12 Checksum
1/8/2022 ITT 300 74
Checksum
Checksum 00011101
The pattern sent is 10101001 00111001 00011101
n = 2m -1
The Min. n=k+1
dmin = 3 NA NA
Hamming Code dmin = 2
Network and
Data link and
Implementation Data link layer Data link Transport
transport layer
layer
Category of
network
LAN LAN LANs and WANs LAN