Data Communications – Parity Checks & Reed-Solomon Error Control
Error Detection Technique – Parity Checks
• Purpose: Spot single-bit errors in a binary data unit by appending one extra control bit (the parity bit).
• Variants
– Even parity → total number of s (data + parity) is even.
– Odd parity → total number of s is odd.
• How it works (WhatsApp texting analogy)
– Sender counts the s in each data block.
– Even-parity rule example
• Data (three s → odd) → add parity → (four s → even).
– Odd-parity rule example
• Same data → add parity → (still three s → odd).
• Mathematical basis
– Even:
– Odd:
– Implemented with XOR (mod-2) hardware ops.
• Detection capability & limitation
– Detects every single-bit flip.
– Fails when an even number of bits flip (parity appears correct).
– Cannot identify which bit is wrong nor perform correction.
• Typical applications
– RAM parity modules.
– UART / serial ports.
– Low-power IoT sensors.
– Legacy / ultra-cheap embedded gear.
Error Correction Technique – Reed-Solomon Codes
• Purpose: Forward error correction (FEC); can locate & correct multiple corrupted or missing symbols (bytes) within a block.
• Operates over Galois Field (commonly → byte symbols).
• Encoding pipeline
- Divide data into symbols; view them as coefficients of polynomial .
- Choose generator , = primitive element of the field.
- Compute parity polynomial: .
- Append the parity symbols ⇒ codeword length .
• Error-correction bound (Singleton): symbol errors are correctable.
• Decoding steps - Syndrome evaluation .
- Solve key equation (Berlekamp–Massey / Euclidean) → error-locator polynomial.
- Find roots via Chien search → error positions.
- Forney algorithm → error magnitudes.
- Correct the received symbols.
• Computational cost ≈ (software) or accelerated in hardware/FPGAs.
• Everyday analogies / use cases
– QR codes: read even if damaged.
– CD/DVD pits scratched.
– Satellite & deep-space bursts.
– 5G physical layer blocks.
• Key trade-offs
– More redundancy (higher bandwidth) and heavier math than parity; in return, multiple-error resilience.
Demonstration – Parity Check Python Outline
• Process
- Count s → create parity bit.
- Transmit block (optionally flip a designated bit).
- Receiver separates parity bit, recomputes expected parity, compares.
- Reports PASS/FAIL.
• Simulated outputs
– Success:
• Raw → add parity → .
• Receiver counts even s → “PASSED”.
– Error demo:
• Bit-flip position 3: received (five s).
• Parity mismatch → “FAILED – request retransmission”.
Demonstration – Reed-Solomon Code Python Outline
• Setup
– Choose 10 parity symbols (can correct up to 5 corrupted bytes).
• Workflow
- Encode message "Your Raffles student ID: BIT_B123F − Assignment submission" → 67-byte codeword.
- Simulate 5 random byte corruptions (e.g., "RaffLAAAAAudent").
- RS decoder recovers original payload.
- Boolean flag confirms exact match (True).
Effectiveness Analysis
• Parity Check
– Computational load: per block.
– Redundancy: 1 bit.
– Strengths: simplicity, negligible latency, perfect for single-bit noise.
– Weaknesses: undetected even-bit errors, no correction.
• Reed-Solomon
– Load: (FFT-style) to (classic decode).
– Redundancy: symbols.
– Strengths: burst-error & erasure repair, high integrity, field-proven.
– Weaknesses: heavy math, extra bandwidth, decode latency.
• Comparison snapshot
– Accuracy: Parity → detect only; RS → detect & correct symbols.
– Speed: Parity ≫ RS.
– Applicability: Parity → RAM, UART, IoT; RS → 5G, optical media, QR, satellites.
Security Technologies Comparison (non-error-control context)
• VPN
– Pros: encrypts path, hides IP.
– Cons: added latency.
– Fit: secure Wi-Fi, remote work.
• Peer-to-Peer
– Pros: decentralized, scalable.
– Cons: attack surface, audit difficulty.
– Fit: file sharing, dApps.
• Blockchain
– Pros: immutable ledger.
– Cons: energy, slow throughput.
– Fit: smart contracts, DeFi.
• Security Protocols (TLS/SSL, SSH, IPsec)
– Pros: mature crypto suites.
– Cons: misconfiguration, outdated versions, CA trust issues.
– Fit: web, cloud, IoT secure channels.
Recommendations
• IoT Sensors → Parity + VPN
– Rationale: minimal CPU overhead + encrypted tunnel.
• Satellite Links → Reed-Solomon + AES
– Need robust FEC for noisy channel & confidentiality.
• Modern 5G / Cloud / QR → RS inside TLS(AES)
– Combine integrity & confidentiality.
• Legacy Devices → Parity + AES-128
– Lightweight cipher & simple detection.
• Decentralised Storage → Blockchain hashing (SHA-256) + RS
– Hash ensures tamper-evidence; RS keeps data recoverable.
Summary
• Parity checks remain indispensable for rapid, low-cost single‐error detection, yet falter on multiple flips and offer no correction.
• Reed-Solomon codes, grounded in finite-field algebra, introduce redundancy to correct up to symbol errors and handle bursts—but at the expense of compute and bandwidth.
• System designers must balance error-rate expectations, resource budget and security to pick Parity, RS, or a hybrid scheme; recommendations above map optimal pairings.
Case Study – Live Sports Streaming
• Problem: packet loss → freeze/pixelation during championship climax.
• Baseline: Parity bits detect small glitches → quick retransmit, but choke under heavy burst errors.
• Solution: Layer RS over critical I-frames; parity for non-critical ancillary data.
– Dynamic redundancy: 30% (Level H) during peak (e.g., Super Bowl); 15% (Level M) off-peak.
– Hardware acceleration (GPU / FPGA) trims RS latency; AI forecasts congestion & autoscale redundancy.
• Result: viewers see smooth play, minor startup lag acceptable.
References
- Wikipedia – Parity bit (2025-03-04).
- Wikiversity – Reed–Solomon codes for coders.
- Filiba, T. – Reed-Solomon Codec blog.
- NVIDIA Developer Blog – GPU acceleration articles.
- Bitmovin (2023-10-16) – GPU Cloud Video Encoding.
- Wikipedia – Virtual-private-network (2025-06-13).
- Wikipedia – Peer-to-peer (2025-05-24).
- Wikipedia – Blockchain (2025-06-23).
- Wikipedia – Transport Layer Security (2025-06-30).
- Xiphera – Security Protocols overview (2024-07-16).