Wireless Networks: Error Detecting and Correcting Techniques
Wireless Networks: Error Detecting and Correcting Techniques
1
Coping with Transmission Errors
2
Error Detection Process
Transmitter
► For a given frame, an error-detecting code (check bits) is
calculated from data bits
► Check bits are appended to data bits
Receiver
► Separates incoming frame into data bits and check bits
► Calculates check bits from received data bits
► Compares calculated check bits against received check bits
► Detected error occurs if mismatch
3
Error Detection
Transmitter Receiver
5
Examples of parity bit check
6
Two-dimensional parity checks
Generalization of 1-bit
D bits are divided into i rows and j columns.
Receiver can not only detect but correct as well using row, 7
column indices
Example of 2D Odd parity check
1110010101111010
Let i = 4, j = 4
8
Cyclic Redundancy Check (CRC)
Transmitter Algorithm
► For a k-bit block, ► Generator: Transmitter
transmitter generates an and receiver agree on an
(n-k)-bit frame check
r + 1 bit pattern P.
sequence (FCS)
► Resulting frame of n bits ► Transmitter chooses r
is exactly divisible by additional bits to append
predetermined number with k data bits.
Receiver ► Which is remainder of d /
► Divides incoming frame P.
by predetermined number ► Receiver: if remainder of
► If no remainder, assumes D / P is 0 , success
no error otherwise error
9
CRC using Modulo 2 Arithmetic
10
CRC using Modulo 2 Arithmetic
n k
T 2 DR
11
CRC using Modulo 2 Arithmetic
T 2nk D R 2nk D R
P P P P
Substituting,
T R R RR
Q Q Q
P P P P
12
CRC Example
101011
P
1001 101110000
1001
1010
1001
1100 D
1001
`P(X) = X3 + 1 1010
1001
011
R
T = 10111011
13
CRC using Polynomials
X n k D X R X
Q X
P X P X
T X X n k D X R X
14
CRC using Polynomials
15
Wireless Transmission Errors
16
Block Error Correction Codes
Transmitter
► Forward error correction (FEC) encoder maps each
k-bit block into an n-bit block codeword
► Codeword is transmitted; analog for wireless
transmission
Receiver
► Incoming signal is demodulated
► Block passed through an FEC decoder
17
18
FEC Decoder Outcomes
No errors present
► Codeword produced by decoder matches original
codeword
Decoder detects and corrects bit errors
Decoder detects but cannot correct bit errors;
reports uncorrectable error
Decoder detects no bit errors, though errors
are present
19
Block Code Principles
20
Block Codes
21
Example of Block code
Let k = 2, n = 5
Data block Codeword
00 00000
01 00111
10 11001
11 11110
22