Search code examples
network-programmingcrcerror-detection

What is CRC? And how does it help in error detection?


What is CRC? And how does it help in error detection?


Solution

  • CRC stands for Cyclic Redundancy Check. it helps in error detection.. It consists of the following

    b(x)-> transmitted code word
    q(x)-> quotient
    i(x)-> information polynomial
    r(x)-> remainder polynomial
    g(x)-> generated polynomial
    
    step 1: x^(n-k) * i(x)
    
    step 2: r(x) = (x^(n-k) * i(x))%g(x)
    
    step 3: b(x) = (x^(n-k) * i(x)) XOR with r(x) 
            which results in a transmitted code word.
    
    this b(x) is send to the reciever end from the sender and if u divide the 
    transmitted code word i.e. b(x) with g(x) and if the remainder 
    i.e. r(x) is equal to 0 at the reciever end then there is no error 
    otherwise there is an error in the transmitted code word during the 
    transmission from sender to reciever.
    
    In this way it is helpful in error detection.