Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

So in layman terms, can you explain cyclic redundancy

Thread Tools
 
Search this Thread
 
Old 28 April 2006, 10:37 AM
  #1  
Gridlock Mikey
Scooby Regular
Thread Starter
 
Gridlock Mikey's Avatar
 
Join Date: Jan 2001
Location: http://www.facebook.com
Posts: 15,233
Likes: 0
Received 0 Likes on 0 Posts
Talking So in layman terms, can you explain cyclic redundancy

I've tried to work this out(As I do) and here is my take on it.

The PC tries to read a file but something is wrong with it. By default it tries to read it again (Cyclic? maybe?) eventally after say 1000 attempts, it moves on to the next task assuming it doesn't need that file or maybe the programme will run without that particular file (redundancy?)

How did I do? PC's PAH!! Easy
Old 28 April 2006, 10:40 AM
  #2  
bob269
Scooby Regular
 
bob269's Avatar
 
Join Date: Mar 2003
Posts: 2,654
Likes: 0
Received 1 Like on 1 Post
Default

A CRC "checksum" is the remainder of a binary division with no bit carry (XOR used instead of subtraction), of the message bit stream, by a predefined (short) bit stream of length n, which represent the coefficients of a polynomial. Before the division, n zeros are appended to the message stream.

CRCs are based on division in the ring of polynomials over the finite field GF(2) (the integers modulo 2). In simpler terms, this is the set of polynomials where each coefficient is either zero or one, and arithmetic operations wrap around.

For example:


Two becomes zero because addition of coefficients is performed modulo 2. Multiplication is similar:



We can also divide polynomials mod 2 and find the quotient and remainder. For example, suppose we're dividing x3 + x2 + x by x + 1. We would find that
(x3 + x2 + x) / (x + 1) = (x2 + 1) − 1 / (x + 1) In other words,
(x3 + x2 + x) = (x2 + 1)(x + 1) − 1 The division yields a quotient of x2 + 1 with a remainder of -1, which, since it is odd, has a last bit of 1.

Any string of bits can be interpreted as the coefficients of a polynomial of this sort, and to find the CRC, we divide by another fixed polynomial, after first multiplying by xn where n is the degree of the fixed polynomial. The coefficients of the remainder polynomial are the CRC.

In the above equations, x2 + x + 1 represents the original message bits 111, x + 1 acts as the key, and the remainder 1 (equivalently, x0) is the CRC. The degree of the key is 1, so we first multiplied the message by x1 to get x3 + x2 + x.

In general form:
M(x) * xn = Q(x) * K(x) + R(x) Here M(x) is the original message polynomial. K(x) is the key polynomial, with degree n. The bits of M(x) * xn are the original message with n zeros added at the end. R(x) is the remainder polynomial, which is the CRC 'checksum'. In communication, the sender attaches the n bits of R after the original message bits of M and sends them out (in place of the zeros). The receiver takes M and R and checks whether M(x) * xn − R(x) is divisible by K(x). If it is, then the receiver assumes the received message bits are correct. Note that M(x) * xn − R(x) is exactly the string of bits the sender sent; this string is called the codeword.

CRCs are often referred to as "checksums," but such designations are not strictly accurate since, technically, a checksum would be calculated through addition, and not through division as is the case with CRCs.

Closely related to CRCs are error-correcting codes, which allow the correct message to be reconstructed in the face of transmission errors. These codes are based on closely related mathematical principles.

Old 28 April 2006, 10:47 AM
  #3  
Gridlock Mikey
Scooby Regular
Thread Starter
 
Gridlock Mikey's Avatar
 
Join Date: Jan 2001
Location: http://www.facebook.com
Posts: 15,233
Likes: 0
Received 0 Likes on 0 Posts
Default

Not once are the words Cyclic or redundancy mentioned in that self righteous twaddle

Thanks for trying to explain though
Old 28 April 2006, 11:04 AM
  #4  
bob269
Scooby Regular
 
bob269's Avatar
 
Join Date: Mar 2003
Posts: 2,654
Likes: 0
Received 1 Like on 1 Post
Default

Originally Posted by Gridlock Mikey
Not once are the words Cyclic or redundancy mentioned in that self righteous twaddle

Thanks for trying to explain though
CRC - Cyclic Redundancy Check
Old 28 April 2006, 11:05 AM
  #5  
RB5-Black
Scooby Regular
 
RB5-Black's Avatar
 
Join Date: May 2002
Location: Dunfermline,Fife Xbox/PS3 Gamertag: RB5black
Posts: 4,746
Likes: 0
Received 0 Likes on 0 Posts
Default

A cyclic redundancy check (CRC) is a type of hash function used to produce a checksum - which is a small, fixed number of bits - against a block of data, such as a packet of network traffic or a block of a computer file. The checksum is used to detect errors after transmission or storage. A CRC is computed and appended before transmission or storage, and verified afterwards by recipient to confirm that no changes occurred on transit. CRCs are popular because they are simple to implement in binary hardware, are easy to analyze mathematically, and are particularly good at detecting common errors caused by noise in transmission channels.
Old 28 April 2006, 11:06 AM
  #6  
bob269
Scooby Regular
 
bob269's Avatar
 
Join Date: Mar 2003
Posts: 2,654
Likes: 0
Received 1 Like on 1 Post
Default

Originally Posted by RB5-Black
A cyclic redundancy check (CRC) is a type of....
Thats the top bit of the page I forgot to paste
Old 28 April 2006, 11:12 AM
  #7  
Hanslow
Scooby Regular
 
Hanslow's Avatar
 
Join Date: Mar 2001
Location: Derbyshire
Posts: 4,496
Likes: 0
Received 0 Likes on 0 Posts
Default

PMSL @ bob

bob, this is Mike we're dealing with here.....

Mike, it's an error checking code to validate that the data in the block on the disk, run through some algorithm, generates the same value pre and post transfer. Or something like that....
Old 28 April 2006, 11:15 AM
  #8  
bob269
Scooby Regular
 
bob269's Avatar
 
Join Date: Mar 2003
Posts: 2,654
Likes: 0
Received 1 Like on 1 Post
Default



Basically if your file says its got a CRC error then it's fooked, chuck it in the bin
Old 28 April 2006, 09:17 PM
  #9  
jbryant
Scooby Regular
 
jbryant's Avatar
 
Join Date: Feb 2000
Posts: 1,082
Likes: 0
Received 0 Likes on 0 Posts
Thumbs up

Originally Posted by bob269


Basically if your file says its got a CRC error then it's fooked, chuck it in the bin
Best one yet
Old 28 April 2006, 09:24 PM
  #10  
jpor
Scooby Regular
iTrader: (1)
 
jpor's Avatar
 
Join Date: Sep 2003
Posts: 3,109
Likes: 0
Received 0 Likes on 0 Posts
Default

Heres some More
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
JimBowen
ICE
5
02 July 2023 01:54 PM
scoobhunter722
ScoobyNet General
52
20 October 2015 04:32 PM
Tidgy
Computer & Technology Related
33
18 October 2015 09:59 AM
ALi-B
Other Marques
18
28 September 2015 08:29 PM
jonc
Non Scooby Related
18
23 September 2015 10:57 PM



Quick Reply: So in layman terms, can you explain cyclic redundancy



All times are GMT +1. The time now is 08:36 AM.