Cyclic redundancy check

How do we know if a message is corrupted during transmission?

Image: PeterPan23 at English Wikipedia, Public domain, via Wikimedia Commons

Cyclic redundancy check

How do we know if a message is corrupted during transmission?

Imagine sending a secret letter through the mail. If the letter arrives with some pages missing or torn, you'd know something went wrong during delivery.

Think of a secret letter as a sequence of numbers. Before sending, we add extra numbers that help us check if any pages are missing or torn upon arrival. These extra numbers are calculated using a special method that looks at all the numbers in the sequence.

Example

Suppose the original message is 12345, and we add extra numbers (let's call them "check numbers") to get a new sequence: 12345 + 678 = 13073. When we check the message upon arrival, we use the same method to see if the check numbers match. If they don't, we know some pages are missing or torn.

Remember this

The extra numbers, called a cyclic redundancy check (CRC), help us detect if any pages (or bits of data) are missing or torn (corrupted) during transmission.

Related concepts

Swipe through 100 ML concepts daily

Open Pocket Polymath