Professional Documents
Culture Documents
Spring 2007
Section 4 (Ch.4):
Channel Coding and Error Control
Prof. Leszek Lilien
Department of Computer Science
Western Michigan University
Slides based on publishers slides for 1st and 2nd edition of:
Introduction to Wireless and Mobile Systems by Agrawal & Zeng
2003, 2006, Dharma P. Agrawal and Qing-An Zeng. All rights reserved.
Some original slides were modified by L. Lilien, who strived to make such modifications clearly
visible. Some slides were added by L. Lilien, and are 2006-2007 by Leszek T. Lilien.
Requests to use L. Liliens slides for non-profit purposes will be gladly granted upon a written
request.
1
Chapter 4
Copyright 2003, Dharma P. Agrawal and Qing-An Zeng. All rights reserved (Modified by LTL) 2
Outline
We skip some sections in this Chapter
You have to use it on your own if needed (e.g., for your project)
Introduction
Linear Block Codes
Cyclic Codes
Cyclic Redundancy Check (CRC)
Convolutional Codes
Interleaver
Information Capacity Theorem
Turbo Codes
ARQ (Automatic Repeat Request) Techniques
Stop-and-wait ARQ
Go-back-N ARQ
Selective-repeat ARQ
Copyright 2003, Dharma P. Agrawal and Qing-An Zeng. All rights reserved 3
4.1. Introduction
Why need channel coding for radio communication?
Why need error control for radio communication?
Severe transmission problems
Multipath fading
E.g., reflections / diffractions / scattering in cellular wireless
communications
Low S/N (signal-to-noise) ratio
In satellite communications due to:
Limited xmitting power for forward channels
(downlink )
Limited satellite energy resources
2007 by
Copyright Leszek T. Lilien
2003, Dharma P. Agrawal and Qing-An Zeng. All rights reserved 4
4.1. Introduction cont. 1
2007 by
Copyright Leszek T. Lilien
2003, Dharma P. Agrawal and Qing-An Zeng. All rights reserved 5
4.1. Introduction cont. 2
Channel
Information
received Source Channel
Channel
Demodulation Receiver
decoding decoding
decoding
Copyright 2003, Dharma P. Agrawal and Qing-An Zeng. All rights reserved 6
4.1. Introduction cont. 3
2007 by
Copyright Leszek T. Lilien
2003, Dharma P. Agrawal and Qing-An Zeng. All rights reserved 7
Error Correction (EC)
Copyright 2003, Dharma P. Agrawal and Qing-An Zeng. All rights reserved (Modified by LTL) 8
4.2. Linear Block Codes
Information is divided into blocks of length k
r parity bits or check bits are added to each block
Total length: n = k + r
Code rate:
R = k/n = k/(k + r)
Decoder looks for code word closest to received vector
Received vector = code vector + error vector
Tradeoffs between
Efficiency
Reliability
Encoding/decoding complexity
Copyright 2003, Dharma P. Agrawal and Qing-An Zeng. All rights reserved 9
*** SKIP *** 4.3. Cyclic Codes (are Block Codes)
Copyright 2003, Dharma P. Agrawal and Qing-An Zeng. All rights reserved 10
4.4. Cyclic Redundancy Check (CRC)
Cyclic redundancy code (CRC) is an error-checking code.
Xmitter appends an extra n-bit sequence to every frame
Called Frame Check Sequence (FCS)
Copyright 2003, Dharma P. Agrawal and Qing-An Zeng. All rights reserved 11
Most Common CRC Polynomials
CRC-16 1+x2+x15+x16 16
CRC-CCITT 1+x5+x12+x16 16
CRC-32 | (see text) | 32
(used by DoD) | |
Copyright 2003, Dharma P. Agrawal and Qing-An Zeng. All rights reserved (Modified by LTL) 12
4.5. Convolutional Codes
Among most commonly used channel codes
E.g., in GSM and IS-95
Encoding of information stream rather than information blocks
Output (encoded bits) depends not only on current input bits but
Copyright 2003, Dharma P. Agrawal and Qing-An Zeng. All rights reserved (Modified by LTL) 13
4.6. Interleaver
Interleaving is heavily used in wireless communication for
protection against burst errors
Recall:
Burst error a contiguous sequence of symbols, received over a data
transmission channel, such that:
(a) the first symbol and the last symbol are in error, and
(b) there exists no contiguous subsequence of m correctly received
symbols within the error burst
The last symbol in a burst and the first symbol in the following burst
are separated by m correct bits or more
The length of a burst of errors in a frame is defined as the number
2007 by
Copyright Leszek T. Lilien
2003, Dharma P. Agrawal and Qing-An Zeng. All rights reserved 14
Concept of Interleaver
Copyright 2003, Dharma P. Agrawal and Qing-An Zeng. All rights reserved 15
How Interleaver Works An Example
soft-decision decoder
Turbo codes proposed for
Low-power applications
Copyright 2003, Dharma P. Agrawal and Qing-An Zeng. All rights reserved 17
*** SKIP *** Information Capacity Theorem
(Shannon Limit)
The information capacity (or channel capacity) C of a
continuous channel with bandwidth B Hertz can be
perturbed by additive Gaussian white noise of power
spectral density N0/2, provided bandwidth B satisfies
P
C B log 2 1 bits / sec ond
N0 B
where: P is the average transmitted power P = EbRb (for an
ideal system, Rb = C).
Eb is the transmitted energy per bit,
Rb is transmission rate.
Copyright 2003, Dharma P. Agrawal and Qing-An Zeng. All rights reserved 18
*** SKIP *** Shannon Limit
Rb/B
20
Region for which Rb>C
10
Capacity boundary Rb=C
0.1
Copyright 2003, Dharma P. Agrawal and Qing-An Zeng. All rights reserved 19
***SKIP*** Turbo Codes: Encoder
Data X
X
Source
Convolutional Encoder
1 Y1
Interleaving Y
(Y1, Y2)
Convolutional Encoder Y2
2
X: Information
Yi: Redundancy Information
Copyright 2003, Dharma P. Agrawal and Qing-An Zeng. All rights reserved 20
***SKIP*** Turbo Codes: Decoder
De-interleaving
Convolutional
Y1 Interleaver
Decoder 1
X Interleaving Convolutional
Decoder 2 De-interleaving
Y2
X
X: Decoded Information
Copyright 2003, Dharma P. Agrawal and Qing-An Zeng. All rights reserved 21
4.8. Automatic Repeat Request (ARQ)
[LTL] Sometimes CC can detect but cant correct errors
Must ask for retransmission
Can use Automatic Repeat Request (ARQ)
D sends (positive) acknowledgement ACK if received packets correct
If D detects error it cant correct, D sends negative acknowledge-
ment NAK this requests retransmission
Transmit Transmit
Encoder Modulation Demodulation Decoder
Controller Controller
Acknowledge
(ACK or NAK)
Copyright 2003, Dharma P. Agrawal and Qing-An Zeng. All rights reserved 22
The End of Section 4
Copyright 2003, Dharma P. Agrawal and Qing-An Zeng. All rights reserved 23