Data can change on the journey.
When data is transmitted, a bit can sometimes change from 0 to 1, or from 1 to 0.
Error detection checks the received data and spots when something looks wrong.
↓
Received: 10111010
Understand how parity bits help computers spot transmission errors by counting the number of 1s in binary data.
When data is transmitted, a bit can sometimes change from 0 to 1, or from 1 to 0.
Error detection checks the received data and spots when something looks wrong.
A parity check uses an extra bit called a parity bit.
The parity bit is chosen so the total number of 1s matches the agreed rule: even parity or odd parity.
Imagine agreeing that every money bag must contain an even number of gold coins.
Before sending the bag, you add one extra coin if needed. The receiver counts again. If the count is wrong, something has changed.
With even parity, the total number of 1s must be even.
With odd parity, the total number of 1s must be odd.
The parity bit is not a label saying “even” or “odd”.
It is just a 0 or 1 added to make the total number of 1s match the agreed parity rule.
Parity is useful, but it has limits.
If two bits change, the total number of 1s may still look correct, so the error may not be detected.
Parity checks detect possible transmission errors by counting the number of 1s.
Even parity means the total number of 1s must be even. Odd parity means the total number of 1s must be odd.
The sender adds a parity bit. The receiver counts again after transmission.
Now that you understand parity, the next lesson looks at other error detection methods, including checksum, echo check and ARQ.