banner



How To Find Crc Code

Error Detection in Computer Networks-

Error detection is a technique that is used to bank check if any fault occurred in the data during the manual.

Some popular error detection methods are-

  1. Single Parity Check
  2. Circadian Redundancy Cheque (CRC)
  3. Checksum

In this commodity, we volition discuss most Cyclic Redundancy Check (CRC).

Cyclic Redundancy Check-

  • Cyclic Redundancy Check (CRC) is an error detection method.
  • Information technology is based on binary division.

CRC Generator-

  • CRC generator is an algebraic polynomial represented as a flake pattern.
  • Fleck pattern is obtained from the CRC generator using the following rule-

The power of each term gives the position of the chip and the coefficient gives the value of the bit.

Example-

Consider the CRC generator is x7 + tenhalf dozen + x4 + x3 + x + i.

The corresponding binary design is obtained equally-

Thus, for the given CRC generator, the corresponding binary design is 11011011.

Properties Of CRC Generator-

The algebraic polynomial called as a CRC generator should have at least the post-obit properties-

Dominion-01:

  • It should not be divisible by x.
  • This condition guarantees that all the burst errors of length equal to the length of polynomial are detected.

Rule-02:

  • It should be divisible by x+ane.
  • This condition guarantees that all the outburst errors affecting an odd number of $.25 are detected.

Important Notes-

If the CRC generator is called according to the above rules, and so-

  • CRC can detect all unmarried-bit errors
  • CRC tin detect all double-flake errors provided the divisor contains at least three logic ane's.
  • CRC can detect any odd number of errors provided the divisor is a factor of x+1.
  • CRC tin can discover all burst error of length less than the degree of the polynomial.
  • CRC can observe most of the larger outburst errors with a high probability.

Steps Involved-

Error detection using CRC technique involves the following steps-

Step-01: Adding Of CRC At Sender Side-

At sender side,

  • A string of n 0's is appended to the data unit to be transmitted.
  • Here, n is i less than the number of bits in CRC generator.
  • Binary division is performed of the resultant string with the CRC generator.
  • Afterwards division, the remainder so obtained is called equally CRC.
  • It may be noted that CRC as well consists of n bits.

Step-02: Appending CRC To Information Unit-

At sender side,

  • The CRC is obtained after the binary division.
  • The cord of due north 0'southward appended to the information unit before is replaced by the CRC residuum.

Stride-03: Transmission To Receiver-

  • The newly formed code discussion (Original data + CRC) is transmitted to the receiver.

Step-04: Checking at Receiver Side-

At receiver side,

  • The transmitted lawmaking word is received.
  • The received code word is divided with the aforementioned CRC generator.
  • On division, the remainder so obtained is checked.

The following ii cases are possible-

Case-01: Remainder = 0

If the remainder is zero,

  • Receiver assumes that no error occurred in the data during the transmission.
  • Receiver accepts the data.

Case-02: Remainder ≠ 0

If the residual is non-zero,

  • Receiver assumes that some fault occurred in the data during the manual.
  • Receiver rejects the data and asks the sender for retransmission.

Also Read- Parity Bank check

Practice PROBLEMS BASED ON Cyclic REDUNDANCY CHECK (CRC)-

Problem-01:

A bit stream 1101011011 is transmitted using the standard CRC method. The generator polynomial is x4+ten+1. What is the actual fleck string transmitted?

Solution-

  • The generator polynomial G(x) = x4 + x + 1 is encoded equally 10011.
  • Clearly, the generator polynomial consists of 5 $.25.
  • And so, a string of 4 zeroes is appended to the flake stream to be transmitted.
  • The resulting flake stream is 11010110110000.

Now, the binary division is performed as-

From here, CRC = 1110.

Now,

  • The code discussion to be transmitted is obtained by replacing the concluding 4 zeroes of 11010110110000 with the CRC.
  • Thus, the lawmaking word transmitted to the receiver = 11010110111110.

Problem-02:

A bit stream 10011101 is transmitted using the standard CRC method. The generator polynomial is ten3+ane.

  1. What is the actual bit string transmitted?
  2. Suppose the third chip from the left is inverted during transmission. How will receiver detect this mistake?

Solution-

Part-01:

  • The generator polynomial G(x) = xiii + ane is encoded as 1001.
  • Clearly, the generator polynomial consists of 4 bits.
  • So, a string of 3 zeroes is appended to the scrap stream to be transmitted.
  • The resulting fleck stream is 10011101000.

Now, the binary partitioning is performed as-

From hither, CRC = 100.

Now,

  • The code word to exist transmitted is obtained by replacing the final 3 zeroes of 10011101000 with the CRC.
  • Thus, the lawmaking discussion transmitted to the receiver = 10011101100.

Office-02:

According to the question,

  • Third fleck from the left gets inverted during transmission.
  • And so, the bit stream received by the receiver = 10111101100.

At present,

  • Receiver receives the flake stream = 10111101100.
  • Receiver performs the binary partition with the same generator polynomial as-

From hither,

  • The residuum obtained on division is a not-zilch value.
  • This indicates to the receiver that an error occurred in the information during the manual.
  • Therefore, receiver rejects the data and asks the sender for retransmission.

To watch video solution, click hither.

To gain better understanding most Cyclic Redundancy Check,

Watch this Video Lecture

Next Article- Checksum

Get more notes and other study material of Computer Networks.

Watch video lectures by visiting our YouTube channel LearnVidFun.

Summary

Cyclic Redundancy Check | CRC | Example

Commodity Name

Circadian Redundancy Bank check | CRC | Example

Clarification

CRC or Cyclic Redundancy Bank check in computer networks is an mistake detection method. CRC Generator is used to generate CRC. Example of Cyclic Redundancy Check. CRC or Cyclic Redundancy Check is based on binary division.

Author

Akshay Singhal

Publisher Name

Gate Vidyalay

Publisher Logo

Source: https://www.gatevidyalay.com/cyclic-redundancy-check-crc-error-detection/

Posted by: woodringfecky1951.blogspot.com

0 Response to "How To Find Crc Code"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel