Error Detection and Correction
Error Detection and Correction
and Correction
• Types of Errors
• Detection
• Correction
Basic concepts
Networks must be able to transfer data from
one device to another with complete accuracy.
Data can be corrupted during transmission.
For reliable communication, errors must be
detected and corrected.
Error detection and correction
are implemented either at the data link
layer or the transport layer of the OSI
model.
Types of Errors
Note
• In Single parity check, a parity bit is added to every data unit so that the total
number of 1s is even or odd.
Additional Bit added(PARITY BIT)
11010011 1
Information(1 byte – 8 bits)
18
Parity Check
A parity bit is added to every data unit so that the total number of
1s(including the parity bit) becomes even for even-parity check or odd
for odd-parity check
Simple parity check
How is the even parity bit generated?
Total number of ‘1’s should be even.
• If the number of bits are already even, the parity bit will be ‘0’.
20
How is the odd parity bit generated?
Total number of ‘1’s should be odd.
• If the number of bits are already odd, the parity bit will be ‘0’.
21
Detection -examples
Example 1
When the receiver checks the parity bits, some of the bits do not
follow the even-parity rule and the whole block is discarded.
10100011 10001001 11011101 11100111 10101010
Detection(cont’d)
• CRC(Cyclic Redundancy Check)
~ is based on binary division.
• CRC generator
~ uses modular-2 division.
Binary Division
in a
CRC Generator
Binary Division
in a
CRC Checker
Detection(cont’d)
• Polynomials
– CRC generator(divisor) is most often
represented not as a string of 1s and 0s, but as
an algebraic polynomial.
• A polynomial representing a divisor
Detection(cont’d)
• Standard polynomials
Vertical Redundancy Check
VRC
Performance