Error Detection & Correction Laboratory

ECE 422 - Data Communication & Computer Networks Lab, ECE Department, Masinde Muliro University of Science & Technology

Theoretical Background

1. Error Detection vs. Correction

  • Detection: Identifies that errors have occurred (Parity, CRC)
  • Correction: Identifies and fixes errors (Hamming, Convolutional)
Redundancy Ratio = (n-k)/k × 100%

2. Types of Errors

  • Single Bit Error: Only one bit in a data unit is changed
  • Burst Error: Two or more consecutive bits are changed
  • Random Error: Bits changed randomly throughout the data

3. Coding Techniques Overview

Block Codes

k-bit message → n-bit codeword. Memoryless encoding.

Examples: Hamming, Reed-Solomon, BCH

Convolutional Codes

Uses memory (shift registers). Current output depends on past inputs.

Used in: 3G, 4G, WiFi, Deep Space

Cyclic Codes

Subset of linear block codes with cyclic property.

Examples: CRC, BCH codes

4. Key Parameters

(n,k)
Code Parameters
n=block length, k=message
dmin
Minimum Hamming Distance
t
Error Correction Capability
t = ⌊(dmin-1)/2⌋
R=k/n
Code Rate

Interactive Simulations

Single & Double Parity Check

Detect single-bit errors using even/odd parity

Detection Only Simple

Data Input (7 bits)

2D Parity Matrix (Optional)

2D parity can detect and correct single-bit errors by checking row and column parity simultaneously.