Skip to main content

Dataword vs codeword; error coding techniques

Short answer

A dataword is the k-bit original message; a codeword is the n-bit encoded block with n−k redundant bits, e.g., 1011 → 1011100 in (7,4) Hamming code. Key error techniques: parity (UART), checksum (IP), CRC (Ethernet), Hamming (ECC RAM), Reed-Solomon (CD/DVD), convolutional (GSM), Turbo/LDPC (4G/5G).

Define Dataword and Codeword with suitable example. List the error detection and correction coding techniques with their application case.

Dataword and codeword

  • Dataword: the original block of k message bits before encoding.
  • Codeword: the n-bit block (n > k) produced by the encoder, containing the dataword plus n − k redundant bits.

Example: in a (7,4) Hamming code, the dataword 1011 becomes the codeword 1011100. In a simple even-parity code, dataword 1011 becomes codeword 10111 (parity bit 1).

Error detection and correction techniques and applications

TechniqueCapabilityApplication
Parity check (simple, 2D)Detects odd errors (2D can correct one)UART serial links, memory
ChecksumDetects errorsIP, TCP, UDP headers
CRCDetects burst errorsEthernet, HDLC, USB, Wi-Fi
Hamming codeCorrects 1 bitECC memory (RAM)
Reed-SolomonCorrects burst errorsCD/DVD, QR codes, satellite
Convolutional code (Viterbi)Corrects random errorsGSM, deep-space, Wi-Fi
Turbo / LDPCNear Shannon limit3G/4G/5G, DVB-S2
ARQ (retransmission)Detect + resendTCP, data link layer

✓ Answer checked by Claude Sonnet 5.5

All Data Communication chapter 8 questions →