Lect5-Error Detection Correction
Lect5-Error Detection Correction
Binary Division
in a
CRC Generator
Binary Division
in a
CRC Checker
• 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
• Standard polynomials
• Checksum
~ used by the higher layer protocols
~ is based on the concept of redundancy(VRC,
LRC, CRC ….)
• Checksum Generator
Detection(cont’d)
• To create the checksum the sender does the
following:
• The unit is divided into K sections, each of n bits.
• Section 1 and 2 are added together using one’s
complement.
• Section 3 is added to the result of the previous step.
• Section 4 is added to the result of the previous step.
• The process repeats until section k is added to the result
of the previous step.
• The final result is complemented to make the checksum.
• data unit and checksum
Original data : 10101001 00111001
10101001
00111001
--------------
11100010 Sum
00011101 Checksum
10101001 00111001 00011101
• Example ( at a receiver)
Received data : 10101001 00111001 00011101
10101001
00111001
00011101
---------------
11111111 Sum
00000000 Complement
Error Correction
~ can be handled in two ways