Digi Comm Over Fading Channels
Digi Comm Over Fading Channels
Digital Communication
Via Multipath Fading Channel
Zhiwei Zeng
Instructor: Dr. Russell
November 2000
Abstract
Multipath fading is a common phenomenon in wireless signal transmission. When a
signal is transmitted over a radio channel, it is subject to reflection, refraction and
diffraction. The communication environment changes quickly and thus introduces more
complexities and uncertainties to the channel response. This simulator offers a better
understanding of this phenomenon. In order to observe the effects of multipath fading
channel on the transmitted signal, a whole digital communication system simulator was
developed. Three kinds of digital communication systems: baseband transmission via
additive white Gaussian noise (AWGN) channel, passband transmission via single
AWGN channel, and passband transmission via multipath fading channel, are simulated.
Contents
1 Introduction
1
2
3
3
3
4
6
6
6
7
8
8
9
10
10
11
12
13
14
15
15
16
17
18
20
22
22
23
Reference
24
II
1. Introduction
This report describes a simulator for digital communication systems. Three kinds of
digital communication systems: baseband transmission via additive white Gaussian noise
(AWGN) channel, passband transmission via single AWGN channel, and passband
transmission via multipath fading channel, are simulated, as shown in Figure 1. Passband
transmission via multipath fading channel is emphasized.
Multipath fading is a common phenomenon in wireless signal transmission. When a
signal is transmitted over a radio channel, it is subject to reflection, refraction and
diffraction. Especially in the urban and suburban areas where cellular phones are most
often used, the communication environment changes quickly and thus introduces more
complexities and uncertainties to the channel response. This simulator offers a better
understanding of this phenomenon.
In order to observe the effects of multipath fading channel on the transmitted signal, a
whole digital communication system simulator was developed. For simplicity, complex
techniques, such as multiplexing and spread spectrum communication, were not
simulated. Analyses of the performances of the systems are not given. Section 2 briefly
describes baseband transmission via AWGN channel. Section 3 briefly presents passband
transmission via single AWGN channel. Passband transmission via multipath fading
channel is described in detail in Section 4.
S a m p le d s ig na l
-1
-1
-2
-2
-3
-3
0
0. 2
0. 4
0. 6
0. 8
1. 2
1. 4
1. 6
1. 8
2
x 10
0. 2
0. 4
0. 6
0. 8
1. 2
1. 4
1. 6
-3
1. 8
2
x 10
-3
2.2 Sampling
Figure 3 is an analog signal. To be transmitted via a digital communication system,
the signal must be discretized both in time and amplitude. A sampler is to discretize the
analog signal in the time domain. According to the Nyquist sampling theorem, in order to
restore the signal at the receiving site, the sampling frequency should be at least twice of
that of the maximum signal frequency. Figure 4 shows a sampled signal (discrete signal)
with the sampling frequency 50 times of the signal frequency.
2.3 Waveform encoding and decoding
Waveform encoding converts a source signal into a digital code using a quantization
method. The waveform coded signal is represented by a set of integers {1, 2, , N},
where N is finite. Waveform decoding recovers the original information signal sequence
using the waveform-coded signal. This simulator supports four waveform-coding
schemes.
2.3.1 Pulse Code Modulation (PCM)
PCM is the simplest and oldest waveform-coding scheme. PCM is a process that
assigns a signal value to inputs that are within a specified range. Inputs that fall in a
different range of values are assigned a different signal value. The input signal is in effect
digitized by scalar quantization, as show in Figure 5. If the quantizer performs uniform
quantization, the PCM is called uniform PCM, as Figure 5.
As long as the statistics of the input signal are close to the uniform distribution,
uniform PCM works fine. However, in coding of certain signals such as speech, the input
distribution is far from being uniformly distributed. For a speech waveform, in particular,
there exists a higher probability for smaller amplitudes and lower probability for large
amplitudes. Therefore, it makes sense to design a quantizer with more quantization
regions at lower amplitudes and less quantization regions at larger amplitudes. The
resulting quantizer will be a non-uniform quantizer having quantization regions of
various sizes.
S ig nal a ft er wa veform dec o ding
3
-1
-2
-3
0
0. 2
0. 4
0. 6
0. 8
1. 2
1. 4
1. 6
1. 8
2
x 10
-3
The usual method for performing non-uniform quantization is to first pass the
samples through a nonlinear element that compresses the large amplitudes (reduces
dynamic range of the signal) and then perform a uniform quantization on the output. At
the receiving end, the inverse (expansion) of this nonlinear operation is applied to obtain
the sampled value. This technique is called companding (compressing-expanding). There
are two types of companders that are widely used for speech coding: A-law compander
and -law compander. Figures 6 and 7 are the characteristics of A-law compander and law compander, respectively. Figures 8 and 9 are the recovered signal using A-law
compander and -law compander, respectively. Except for the discussion of the
waveform schemes in this subsection, the following results are based on PCM with
uniform quantization.
2.3.2 Simple DPCM
When a band-limited random process is sampled at the Nyquist rate or faster, the
sampled values are usually correlated random variables. This means that the previous
samples give some information about the next sample, and this information can be
employed to improve the performance of the PCM system. In the simplest form of
-1
-1
-2
-2
-3
-3
0
0. 2
0. 4
0. 6
0. 8
1. 2
1. 4
1. 6
1. 8
2
x 10
-3
0. 2
0. 4
0. 6
0. 8
1. 2
1. 4
1. 6
1. 8
2
x 10
-3
(b) Decoder
(a) Encoder
-1
-2
-3
-4
0
0. 2
0. 4
0. 6
0. 8
1. 2
1. 4
1. 6
1. 8
2
x 10
-3
(a) Encoder
(b) Decoder
p
i =1
minimize the mean-squared error between the sample Xn and its predicted value.
Figure 12 shows a block diagram of a general DPCM system. Because we are using a
p-step predictor, we are using more information in predicting Xn and, therefore, the range
of variations of Yn will be less. This in turn means that even lower bit rates are possible
here. Differential PCM systems find wide applications in speech and image compression.
Figure 13 shows the recovered signal using second-order and 4-bit DPCM.
2.3.4 Delta Modulation
Delta modulation (M) is a simplified version of the simple DPCM scheme. In M
the quantizer is a 1-bit (2-level) quantizer with magnitudes . Figure 14 shows the
recovered signal using M. From Figure 14, we see that when the input signal changes
dramatically, the quantized signal cant follow the input signal. This phenomenon is
called overloading. Many schemes have been developed to solve this problem.
2.4 Error control coding
Error-control coding techniques are used to detect and/or correct errors that occur in the
message transmission in a digital communication system. The transmitting side of the
error-control coding adds redundant bits or symbols to the original information signal
sequence. The receiving side of the error-control coding uses these redundant bits of
symbols to detect and/or correct the errors that occurred during transmission. The
S ig nal a ft er wa veform dec o ding
3
2
2
1
1
-1
-1
-2
-2
-3
-4
-3
0
0. 2
0. 4
0. 6
0. 8
1. 2
1. 4
1. 6
1. 8
2
x 10
0. 2
0. 4
0. 6
0. 8
1. 2
-3
1. 4
1. 6
1. 8
2
x 10
-3
Fig 14 M
transmission coding process is known as encoding, and the receiving coding process is
known as decoding.
2.4.1 Block codes
There are two major classes in error-control code: block and convolutional. In block
coding, successive blocks of K information (message) symbols are formed. The coding
algorithm then transforms each block into a codeword consisting of N symbols where
N>K. This structure is called an (N, K) code. The ratio K/N is called the code rate. A key
point is that each codeword is formed independently from other codewords. This
simulator supports three block-coding schemes: Hamming code, cyclic code, and BCH
code.
Figure 15 shows the corrupted signal via an AWGN with variance 0.02 without errorcontrol coding. Figures 16 through 18 are the signals via the same channel in Figure 15
using Hamming code, cyclic code, and BCH code, respectively, with N=7, K=4. In Figure
15, the bit error rate is 0.015. The bit error rates in Figures 16 through 18 are 0s.
S ig nal a ft er wa veform dec o ding
-1
-1
-2
-2
-3
-3
0
0. 2
0. 4
0. 6
0. 8
1. 2
1. 4
1. 6
1. 8
2
x 10
0. 2
0. 4
0. 6
0. 8
1. 2
1. 4
1. 6
1. 8
-3
2
x 10
-3
-1
-1
-2
-2
-3
-3
0
0. 2
0. 4
0. 6
0. 8
1. 2
1. 4
1. 6
1. 8
2
x 10
0. 2
0. 4
0. 6
0. 8
1. 2
1. 4
1. 6
1. 8
-3
2
x 10
-3
-1
-2
-3
0
0. 2
0. 4
0. 6
0. 8
1. 2
1. 4
1. 6
1. 8
2
x 10
-3
2
6
1. 5
1. 5
0. 5
0. 5
-0 .5
-0 .5
-1
-1
-1 .5
-1 .5
-2
-2
3. 1
3. 2
3. 3
3. 4
3. 5
3. 6
3. 7
x 10
3. 1
-4
3. 2
3. 3
3. 4
3. 5
3. 6
3. 7
x 10
-4
1
1
0. 8
0. 6
0. 5
0. 4
am plitu de
am plitu de
0. 2
0
-0 .2
-0 .5
-0 .4
-0 .6
-1
-0 .8
-1
1
1. 5
2. 5
tim e (s e c ond )
3. 5
x 10
-6
1. 5
2. 5
tim e (s e c ond )
3. 5
x 10
-6
21 and 22 show the raise cosine filtered signals form RZ2 signaling and Miller codes,
respectively.
2.7 Eye pattern
An eye-pattern plot is a simple and convenient tool to study the effects of intersymbol interference (ISI) and other channel impairments for digital transmission. The
received signal is plotted against time. When the x-axis time limit is reached, the signal
goes back to the beginning of the time point. Thus the plots overlay each other. In the
optimal condition, the decision point is at the widest eye opening point. Figures 23 and
24 are the eye patterns of the output of the baseband filtering and the signal corrupted by
the AWGN channel, whose variance is 0.01.
S ig nal c orrupt ed by t he A W G N
1. 5
1. 5
0. 5
0. 5
-0 .5
-0 .5
-1
-1
-1 .5
-1 .5
-2
-2
3. 1
3. 2
3. 3
3. 4
3. 5
3. 6
3. 7
x 10
62
64
66
68
70
72
74
-4
detector is optimum when the signal has no memory. When the transmitted signal has
memory, the optimum detector is a maximum-likelihood (ML) sequence detector, which
bases its decisions on observation of a sequence of received signals over successive
signal intervals. Although this simulator does not provide ML sequence detector, it has
been shown that a detector based on the MAP criterion and one that is based on the ML
criterion make the same decisions as long as the a priori probabilities are all equal. Figure
27 is the signal, corresponding to that in Figure 22, corrupted by the AWGN channel.
Figure 28 is the decisions made by the optimum receiver.
2.9 Lowpass filtering
In order to recover the analog signal from the output of the waveform decoder, a
lowpass filter is needed. This simulator provides a butterworth filter with the order and
digital cutoff frequency specified by the user. Figure 29 shows the lowpass filtered signal,
11
Re s to red s ign al
4
O rig in al s ign al
Re s to red s ign al
3
-1
-2
-3
0
0. 2
0. 4
0. 6
0. 8
1. 2
1. 4
1. 6
1. 8
2
x 10
-3
1
90 00
0. 8
80 00
0. 6
70 00
0. 4
0. 2
60 00
50 00
-0 .2
40 00
-0 .4
30 00
-0 .6
20 00
-0 .8
10 00
-1
-1
-0 .8
-0 .6
-0 .4
-0 .2
0
0. 2
In-phas e c o m p onen t
0. 4
0. 6
0. 8
0
1. 3095
90 00
90 00
80 00
80 00
70 00
70 00
60 00
60 00
50 00
50 00
40 00
40 00
30 00
30 00
20 00
20 00
10 00
10 00
1. 311
1. 311 5
1. 312
1. 311 5
1. 310 5
1. 311
10 000
1. 31
1. 310 5
x 10
0
1. 3095
1. 31
1. 312
x 10
0
1. 3095
1. 31
1. 310 5
1. 311
1. 311 5
1. 312
x 10
Q A S K Co ns t alla tion
F S K c o ns t ellation
1. 5
2
1
1. 5
0. 5
0
1
-0 .5
0. 5
-1
-1 .5
-1 .5
-1
-0 .5
0. 5
1. 5
0
-1
3.3 M-FSK
M-ary frequency shift keying (FSK) modulation modulates a digital signal by
changing the frequency of the output signal depending on the value of the input signal.
The M-FSK modulation divides into two parts: mapping and analog modulation. The
mapping process maps the input symbol into the value of the frequency shift from the
carrier frequency, and the analog modulation is analog frequency modulation (FM). If the
carrier frequency is Fc, and the tone space f (the frequency separation between two
consecutive frequencies in the modulated signal), then the frequency range of a
modulated signal is in the range [Fc, Fc+(M-1) f]. Figure 38 shows the constellation of
4-FSK.
The demodulation process of the M-FSK uses a length-M vector signal where the
frequency of the ith element in the vector signal matches the modulated signal when the
input symbol is i. The demodulation process computes the correlation values between the
signal array and the received signal and, after calculating the maximum correlation value,
decides what symbol was most likely transmitted. There are two different methods to
compute the correlation value: the coherent and noncoherent method, as shown in Figures
39 and 40, respectively. Using the coherent method, you must know the phase
information of the modulated signal from the receiving side where phase-locked loops are
used. The noncoherent method does not require phase information; it recovers the phase
of the modulated signal during the demodulation. However, the noncoherent
demodulation method is more computationally complex than the coherent demodulation
method.
3.4 M-PSK
The M-ary phase shift keying (PSK) modulation modulates a signal by changing the
phase values in the modulated output signal. The M-PSK modulation divides into two
parts: mapping and analog phase modulation (PM). M-PSK distinguishes between the
15
digital messages by setting different initial phase shifts in the modulation. The digital
input signals to a M-PSK modulator are in the range [0, M-1]. The phase shift for input
digit i is 2i/M. The structure of the demodulator for M-PSK is similar to that of M-FSK.
The demodulation process calculates the correlation value between the input signal and a
vector of carrier frequency sinusoidal signal. Each sinusoidal signal in the vector has its
phase set to a possible result from the signal set. Figure 41 shows the constellation of 4PSK. Figure 42 is part of the modulated signal using 4-PSK. We can see phase change in
Figure 42.
0. 5
-0 .5
-1
-1 .5
0
0. 2
0. 4
0. 6
0. 8
1. 2
A S K /P S K C ons tellation
x 10
-5
vehicles, and hills or refracted by different atmospheric layers. Theses components travel
in different paths and merge at the receiver. Figure 44 illustrates this phenomenon. Each
path has a different physical length. Thus, signals on each path suffer different
transmission delays due to the finite propagation velocity. The superposition of these
signals at the receiver results in destructive of constructive interference, depending on the
relative delays involved. The fact that the environment changes as time passes leads to
signal variation. This is called time variant. Signals are also influenced by the motion of a
terminal. A short distance movement can cause an apparent change in the propagation
paths and in turn the strength of the received signals.
(1)
where s(t) is the transmitted signal, n (t ) is the attenuation factor for the signal received
on the nth path and n (t ) is the propagation delay for the nth path. s(t) can be expressed as
s (t ) = Re s l (t )e j 2f c t
(2)
where sl(t) is the equivalent lowpass transmitted signal. Substitute (2) into (1) yields the
result
x(t ) = Re n (t )e j 2f c n (t )s l (t n (t )) e j 2f ct
(3)
(4)
It follows that the equivalent lowpass channel is described by the time-variant impulse
response
c( ; t ) = n (t )e j 2f c n (t ) ( n (t ))
(5)
n
c( ; t ) represents the response of the channel at time t due to an impulse applied at time t.
When there are a large number of signal propagation paths, the central limit theorem
can be applied. Thus c( ; t ) can be modeled as a complex-valued Gaussian random
process. The envelope c( ; t ) at any instant t is Rayleigh-distributed, as shown in Figure
45. In this case the channel is said to be a Rayleigh fading channel. In the event that there
are fixed scatterers or signal reflectors in the medium, in addition to randomly moving
18
6000
5000
4500
5000
4000
3500
4000
3000
3000
2500
2000
2000
1500
1000
1000
500
0
0
0
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
0.2
0.4
0.6
0.8
1.2
1.4
scatterers, c( ; t ) can no longer be modeled as having zero mean. In this case, the
envelope c( ; t ) has a Rice distribution, as shown in Figure 46, and the channel is said to
be a Ricean fading channel.
Assuming that c(;t) is wide-sense-stationary (WSS), we can define the
autocorrelation function of c(;t) as
1
c ( 1 , 2 ; t ) = E c * ( 1 ; t )c ( 2 ; t + t )
(6)
2
where * means conjugation. In most radio transmission media, the attenuation and phase
shift of the channel associated with path delay 1 is uncorrelated with the attenuation and
phase shift associated with path delay 2. This is usually called uncorrelated scattering.
Under this assumption, we have
c ( 1 , 2 ; t ) = c ( 1 ; t ) ( 1 2 )
(7)
(8)
C (f ; t ) = C ( f 1 , f 2 ; t ) =
{ c ( ; t )}
(9)
19
C (f ) =
{ c ( )}
(10)
As a result of the Fourier transform relationship between C(f) and c(), the reciprocal
of the multipath spread is a measure of the coherent bandwidth (f)c of the channel. That
is,
(f )c
1
Tm
(11)
If (f)c is small in comparison to the bandwidth of the transmitted signal, the channel is
said to be frequency-selective. In this case, the signal is severely distorted by the channel.
On the other hand, if (f)c is large in comparison with the bandwidth of the transmitted
signal, the channel is said to be frequency-nonselective.
Define the Fourier transform of C(f;t) with respective to the variable t to be the
function SC(f;). With f set to zero, the relation becomes
S C ( ) = C (0; t )e j 2t dt
(12)
The function SC() is a power spectrum that gives the signal intensity as a function of the
Doppler frequency . Hence, we call SC() the Doppler spectrum of the channel. The
range of values of over which SC() is essentially nonzero is called the Doppler spread
Bd of the channel. Due to the Fourier transform relationship between SC() and C(t), the
reciprocal of Bd is a measure of the coherence time (t)c of the channel. That is,
(t )c
1
Bd
(13)
If the coherence time is larger than the symbol period, the channel is said to be a slowfading channel. On the other hand, if the coherence time is smaller than the symbol
period, the channel is a fast fading channel.
The scattering function of the channel is defined as
S ( ; ) =
C (f ; t )e j 2t e j 2f dtdf
(14)
The relationships among the functions C(f;t), c(;t), C(f;), and s(;) are
summarized in Figure 47.
4.3 Channel model for multipath fading channel
We may view the channel response in (5) as the sum of a number of vectors
(phasors), each of which has a time-variant amplitude n(t) and phase n(t). In general, it
takes large dynamic changes in the physical medium to cause a large change in {n(t)}.
On the other hand, the phase { n(t)} change by 2 or more radians with relatively small
20
Fig 47 Relationships among the channel correlation functions and power spectra
changes of the medium characteristics. {n(t)} is expected to be in an unpredictable
(random) manner. Thus c(;t) can be modeled as a complex-valued Gaussian random
process using the central limit theorem.
This simulator simulates a slow-fading frequency-selective channel. A general model
for a time-variant slow-fading frequency-selective channel is illustrated in Figure 48. The
channel model consists of a tapped delay line with uniformly spaced taps. The tap
spacing between adjacent taps is 1/W, where W is the bandwidth of the signal transmitted
through the channel. The tap coefficients, denoted as c n (t ) = n (t )e j n (t ) , are usually
modeled as complex-valued Gaussian random processes that are mutually uncorrelated.
The length of the delay line corresponds to the multipath spread. That is,
Tm =
L
W
(15)
where L represents the maximum number of possible multipath signal components. Using
the simulator, the user can specify the means and variances of the possible channels or
use the default values.
21
rl (t ) = c k (t )s li (t k W ) + z (t )
k =1
= v i (t ) + z (t ),
0 t T,
i = 1, 2
(16)
where z(t) is a complex-valued zero-mean AWGN process. Assume that the channel
tap weights are known. Then the optimum receiver consists of two filters matched to v1(t)
22
m = 1, 2
(17)
23
1.5
2
Input of t he m ultipath c hannel
O ut put of the m ult ipath c hannel
1
0
0.5
-1
55
60
65
70
75
80
85
90
95
100
90
95
100
0
O ut put of the R A K E dem odulater
2
-0.5
1
-1
-1.5
-1
0
0.5
1.5
2.5
3.5
4.5
5
x 10
55
60
65
70
75
80
85
-6
Reference:
1. J. G. Proakis, Digital Communications, McGraw Hill, 1995;
2. L. W. Couch, Digital and Analog Communication Systems, Prentice Hall,
1997;
3. Z. Y. Shen, et al, Principals of Communication Systems, Xidian Univ. Press,
1997;
4. J. H. Schiller, Mobile Communications, Addison-wesley, 2000;
5. X. M. Kong, A Simulator for Time-varying Multipath Fading Channels, Master
thesis, 2000.
24