0% found this document useful (0 votes)
73 views12 pages

Cyclic Redundancy Check

The document discusses error detection in digital signals using cyclic redundancy checks (CRC). It explains that binary signals can become contaminated with noise during transmission, causing bit errors. CRC is described as an error detection technique that uses polynomial arithmetic with binary coefficients to generate a redundant checksum appended to messages. The sender and receiver agree on a generator polynomial to use in CRC calculation. During transmission, the receiver uses the same polynomial to calculate CRC and check for errors by comparing to the received checksum.

Uploaded by

40 Tanmay Jadhav
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
73 views12 pages

Cyclic Redundancy Check

The document discusses error detection in digital signals using cyclic redundancy checks (CRC). It explains that binary signals can become contaminated with noise during transmission, causing bit errors. CRC is described as an error detection technique that uses polynomial arithmetic with binary coefficients to generate a redundant checksum appended to messages. The sender and receiver agree on a generator polynomial to use in CRC calculation. During transmission, the receiver uses the same polynomial to calculate CRC and check for errors by comparing to the received checksum.

Uploaded by

40 Tanmay Jadhav
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 12

1

2
Basics before error detection …

Binary Signal Contamination by noise:


 When transmission of digital signals takes place between two
systems such as computers as shown in Figure, the signal get
contaminated due to the addition of "Noise" to it.
 The noise can introduce an error in the binary bits travelling from
one system to the other .
 That means a 0 may change to 1 or a 1 may change to 0. These
error can become a serious threat to the accuracy of the digital
system . (Fig. Noise contaminates the binary signal)

 Therefore it is necessary to detect and correct the errors.


3
4

Parity Check :
 If two bits are transposed (change places) then the computer
could be fooled into thinking the data is correct and not

WHY CRC ?? corrupted.


 If two random bits change state then the system could also be
fooled.

Checksum Error Detection:


 it is insensitive to the order of the blocks (bytes) in the data
word (message). If the order is changed, the checksum value
will be the same and the change will not be detected.
& These problems are resolved in CRC .
5
Cyclic Redundancy Check (CRC)

 CRC is an error detection code which is included in each transmitted codeword and used by the
error in the received codeword.
 This is a type of polynomial code in which a bit string is represented in the form of polynomials
with coefficients of 0 and 1 only.
 Polynomial arithmetic uses a modulo-2 arithmetic i.e. addition and subtraction are identical to
EXOR.
 For CRC code the sender and receiver should agree upon a generator polynomial G(x).
 A codeword can be generated for a given data word (message) polynomial M(x) with the help of
long division.
 This technique is more powerful than the parity check and checksum error detection.
6
Procedure of error detection

 CRC works on the principle of binary division. A sequence of redundant bits called CRC or CRC
remainder is appended at the end of the message. We will call this word as appended message
word .
 The appended word thus obtained becomes exactly divisible by the generator word corresponding
to G (x).
 The sender appends the CRC to the message word to form a codeword.
 At the receiver, this codeword is divided by the same generator word which corresponds to G (x).
 There is no error if the remainder of this division is zero.
 But a non-zero remainder indicates presence of errors in the received code word.
 Such an erroneous codeword is then rejected.
Append a train n 0s to STEPS TO
the message word
where n is 1 less than DETECT ERROR
the number of bit in
the pre decided • Step 1 USING CYCLIC
divisor. If the divisor
is 5 bit long then we REDUNDANCY
have to append 4 zero
to message. CHECK (CRC)
Divide the newly
generated data unit
in step 1 by the • Step 2
divisor (generator).
This is a binary
division.

The remainder
obtained after the • Step 3
divisor in step 2 is
the n bit CRC

This CRC will replace


the n 0s append to the
data unit in step 1, to • Step 4
get the codeword to
transmitted.

7
8
LET’S GO THROUGH THE EXAMPLE
Q. 1 A bit stream 1101011011 is transmitted using the standard CRC method. The generator polynomial is x 4+x+1.
What is the actual bit string transmitted?

Solution-
 The generator polynomial G(x) = x4 + x + 1 is encoded as 10011.
 Clearly, the generator polynomial consists of 5 bits.
 So, a string of 4 zeroes is appended to the bit stream to be transmitted.
 The resulting bit stream is 11010110110000.
 Now, the binary division is performed as …

9
From here, CRC = 1110.
Now,

• The code word to be transmitted is


obtained by replacing the last 4 zeroes of
11010110110000 with the CRC.

• Thus, the code word transmitted to the


receiver = 11010110111110.

10
REFERENCES

Official website of Wikipedia


1 https://en.wikipedia.org/

Stackoverflow
2 https://www.stackoverflow.com/

The Tutorial Point


3 https://www.tutorialspoint.com/index.html

Computer Networking| Eighth Edition


4 By Pearson 11
11
Thank You !

12

You might also like