Error Detection Topics : Parity Check
![Imej](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmQb32zba71CW3gm1_FCmfai6kpoasVIiqwwIMY6ySDmP6RKfr3qR5KYxT5DC5PPJgBWXYT_PJ83meYnOh2e65dLFyQ9XheC1WYP2w_VNWFAglRM0vliRWzD1wE2tdXheS_Vfr2MSp23-vOMmp8Yv75fYrM3QuQhBoUWOReJgRCz2VCrctUPFlX6moxc5e/w640-h214/2.png)
How can the simple parity bit detect a damaged data unit? The simple parity bit can detect a damaged data unit by ensuring that the total number of bits set to 1 (or sometimes 0, depending on the parity system) in the data unit, including the parity bit itself, is either even or odd. Here's how it works: Adding Parity Bit : Before transmission, a parity bit is added to the data unit. This parity bit is calculated based on the current state of the data unit. If using even parity, the parity bit is set so that the total number of 1-bits in the data unit (including the parity bit) is even. If using odd parity, the parity bit is set so that the total number of 1-bits in the data unit (including the parity bit) is odd. Transmission : The data unit, along with the parity bit, is transmitted. Reception : Upon reception, the receiving system recalculates the parity of the received data unit, including the received parity bit. Error Detection : If the recalculated parity doesn't matc