Professional Documents
Culture Documents
Modulation (OFDM)
• OFDM diagram
• Inter Symbol Interference
• Packet detection and synchronization
• Related works
Motivation
• Signal over wireless channel
y[n] = Hx[n]
• Work only for narrow-band channels, but
not for wide-band channels
e.g., 20 MHz for 802.11
20MHz
frequency
2.45GHz (Central frequency)
Capacity = BW * log(1+SNR)
OFDM is a special OFDMcase isofaFrequency
special caseDivision Multiplex
of Frequency (FDM).
Division MultiplexAs an(F
Basic Concept of OFDM
(a) is like water flowisout likeofwater
a faucet,
(b) in contrast
flow out the in
of a faucet, OFDM signal
contrast is like sig
the OFDM as
(a) water comes in(b)onewaterbigcomes
streamin and
one cannot be sub-divided.
big stream and cannot beOFDM showO
sub-divided.
Fig. 1little
– (a) streams.
Wide-band channellittle
A Regular-FDM streams.
single Multiple
carrier narrow-band
– A whole channels
bunch of water coming all in one strea
Fig. 1 – (a)Orthogonal-FDM – Same
A Regular-FDM single amount
carrier of water
– A whole bunchcoming
of waterfrom a lot
coming allof
insmall streams.
one stream. (b)
Orthogonal-FDM – Same amount of water coming from a lot of small streams.
Think about what the advantage might be of one over the other? One obvious one is tha
Think about what the advantage might be of one over the other? One obvious one is that if I put
my thumb over the faucet hole, I can stop the water flow but I cannot do the same for th
my thumb over the faucet hole, I can stop the water flow but I cannot do the same for the shower.
So both
So although although
do theboth
samedo the they
thing, samerespond
thing, differently
they respond differently to interference.
to interference.
(a) (b)
(a) (b)
Fig. 1 – (a) A Regular-FDM single carrier – A whole bunch o
Fig. 1 – (a) A Regular-FDM single –carrier
Orthogonal-FDM – A whole
Same amount bunch
of water of water
coming fromcomin
a lot
Orthogonal-FDM – Same amount of water coming from a lot of small strea
Think about what the advantage might be of one over the o
Fig. 2 – All cargo on one truck vs. splitting the shipment into more than one.
Fig. 2Think about
– All cargo onwhat
one my thethumb
truck advantage
vs. splitting might
the
over the behole,
shipment
faucet ofinto
one over
Imore
can than
stopthethe
other?
one.waterOne
flowob
bu
Another way tomy see thumb over isthe
this intuitively to faucet
So although
use hole,
bothIofdo
the analogy can stop
the
making thething,
same water
a shipment flow
viathey but I cannot
respond
a truck. do
differentl
Another way tohire
see athis
big intuitively is to of
use the analogy of making acarry
shipment via a truc
We have two So although
options, one both do the
truck or asame
bunch thing,
smaller they
ones.respond
Both differently
methods the to interfere
exact sameWe have of
amount two options,
data. But in one
case hire
of anaaccident,
big truckonly
or a1/4bunch ofon
of data smaller ones.trucking
the OFDM Both methods car
exact same amount of data. But in case of an accident, only 1/4 of data on the OFDM tr
will suffer.
Send a sample using
will suffer. Send samples concurrently using
the entire band multiple orthogonal sub-channels
Copyright 2004 Charan Langton www.complextoreal.com
Why OFDM is better? t
t
1
0
0
f 1
0
1
0
0
1
1
0
0
0
1
…........
f
Wide-‐band
Narrow-‐band
f
Figure 9: Frequency Division Multiplexing
Frequency division multiplexing
f
…
Data
c10:
Figure oded
in
frequency
Sub-carriers in OFDMdomain
TransformaNon
to
Nme
domain:
Channel
frequency
each
frequency
is
a
sine
wave
Symbol: 8 periods of f0 response
Channel frequency
In
Nme,
all
added
up
efrequency
sub-carriers domain
are orthogonal, i.e. they do not interfere
Transformation to timewith each
domain: response
each frequency is a sine wave
N/2 1 Decode
each
subcarrier
k p
t in time, all added up.
= e j2 N
t j2
e N = 0 (p ⇥= k) (6) separately
receive
t= N/2 FFT
al e⇥ciency without causing interference between the sub-carriers.
Decode each frequency
ram bin separately
n input - a stream of Dtime bits. Suppose we have nfft sub-carriers.
Time
d omain
s ignal
fft = nsym symbols, where each symbol hasFrequency
fsignal
nfft bits.domain
Here we
dnfft
the stream is numbers
complex serializedto
and output.
produce theAsymbol.
basic outline of this
The bits are
d the OFDM
stream is Transmitter and
serialized and output. Receiver
A basic outline of this
k=−N 2
Time-domain Frequency-domain
N 2−1
1
X[k] = ∑
N t=N 2
x(t)e − j 2 π kt N
FFT
Decode: time-domain samples à frequency-domain sample
N 2−1
Fig. 8 – Sub-carrier 1 and the bits it is modulating (the first column of Table I) bin1
Carrier 2 - The next carrier is of frequency 2 Hz. It is the next orthogonal/harmonic to frequency
of the first carrier of 1 Hz. Now take the bits in the second column, marked c2, 1, 1, -1, 1, 1, -1
and modulate this carrier with these bits as shown in Fig.
Fig. 8 – Sub-carrier 1 and the bits it is modulating (the first column of Table I)
Carrier 2 - The next carrier is of frequency 2 Hz. It is the next orthogonal/harmonic to frequency
Fig.
of the9 first
– Sub-carrier
carrier of21and
Hz.the
Nowbitstake
thatthe
it isbits
modulating (the 2nd
in the second column
column, of Table
marked c2, I)1, 1, -1, 1, 1, -1
symbol1
1
1
-‐1
-‐1
and modulate this carrier with these bits as shown in Fig. bin2
Carrier 3 – Carrier 3 frequency is equal to 3 Hz and fourth carrier has a frequency of 4 Hz. The
symbol2
1
1
1
-‐1
third carrier is modulated with -1, 1, 1, -1, -1, 1 and the fourth with -1, -1, -1, -1, -1, -1, 1 from
Table I.
symbol3
1
-‐1
-‐1
-‐1
symbol4
-‐1
1
-‐1
-‐1
Fig. 9 – Sub-carrier 2 and the bits that it is modulating (the 2nd column of Table I)
symbol5
-‐1
1
1
-‐1
Carrier 3 – Carrier 3 frequency is equal to 3 Hz and fourth carrier has a frequency of 4 Hz. The
symbol6
-‐1
-‐1
1
1
bin3
third carrier is modulated with -1, 1, 1, -1, -1, 1 and the fourth with -1, -1, -1, -1, -1, -1, 1 from
Table I.
Fig. 9 – Sub-carrier 2 and the bits that it is modulating (the 2nd column of Table I)
Carrier 3 – Carrier 3 frequency is equal to 3 Hz and fourth carrier has a frequency of 4 Hz. The
third carrier is modulated with -1, 1, 1, -1, -1, 1 and the fourth with -1, -1, -1, -1, -1, -1, 1 from
Table I.
bin4
Fig. 10 – Sub-carrier 3 and 4 and the bits that they modulating (the 3rd and 4th columns of Table I)
If the path from the transmitter to the receiver either has reflections or obstructions
Multi-Path Effect
fading effects. In this case, the signal reaches the receiver from many different rou
copy of the original. Each of these rays has a slightly different delay and slightly d
The time delays result in phase shifts which added to main signal component (assu
one.) causes the signal to be degraded.
Faded path
0 Reflected multipath
1 k
k Secondary path gain
0
1 k Secondary path delay
k
Fig. 19 – Reflected signals arrive at a delayed time period and interfere with the main line of sight
signal, if there is one. In pure Raleigh fading, we have no Kmain
1 signal, all components are reflected.
hc (t ) k (t k)
In fading, the reflected signals that are delayed add to the
y(t) = h(0)x(t) + h(1)x(t −1) + h(2)x(t − 2) + k 0main signal and cause either gains in
Frequency
selecNve
Fig. 20 – (a) The fading:
signal we want to send andO nly
the some
channel sub-‐carriers
frequency get
a(b)
response are well matched. ffected
A
fading channel has frequencies that do not allow anything to pass. Data is lost sporadically. (c) With
OFDM, where we have many little sub-carriers, only a small sub-set of the data is lost due to fading.
Symbol 1 Symbol 2
Increase distance from car in front to avoid splash. The reach of splash is same as
Inter Symbol Interference (ISI)
Fig. of
spread 21a–signal.
fading,
noise
Delay Fig.
the front
and affect
spread
22aisshows
thesymbol
like the
theundesired
similarly
beginning of the throws
splash
symbol and
a splash
next symbol
you might
its splash.
backwards
as shown
get from the
In composite, car sa
these
which we wish to
in (b).
• One simple
To mitigatesolution
this noise at theto
front avoid
of the symbol, this
we willismovetoour symbol further
region
Fig. of
21 delay
– The spread as shown
PSK symbol below.
and its A little
delayed bit of blank space has been added
version.
introduce (a) a
symbolsThetoguard-band
catch the
delayed, delay spread.
attenuated signal and (b) composite interference.
To mitigate this noise at the front of the symbol, we will move our symbol furth
region of delay spread as shown below. A little bit of blank space has been adde
symbols to catch the delay spread.
Fig 22Guard
– Movebthe
and
symbol back so the arriving delayed signal peters out in the gray r
interference to the next symbol!
Cyclic Prefix (CP)
• However, we don’t know the delay spread
exactly
The hardware doesn’t allow blank space because it needs
to send out signals continuously
In
802.11,
Portion added in CP:data
=
1:4
the front
• Because
Fig. of
24 –the
If weusage ofsymbol
move the FFT, back
the and
signal is periodic
just put in convenient filler
have a continuous signal but one that can get corrupted and we don’t
anyway before demodulating.
FFT(
)
Slide the symbol to start at the edge of the delay spread time and th
=
exp(-‐2jπΔ f)*FFT(
)
copy ofvwhat
delayed
ersion
turns out to be tail end of theoriginal
symbol. signal
• Delay1.inWethe
wanttime domain
the start corresponds
of the symbol to delay spread zon
to be out of the
2. We start the signal at the new boundary such that the actual sym
rotation
zone.
in the frequency domain
• Can still obtain the correct signal in the frequency
We will
domain bybe extending the symbol
compensating so it is 1.25 times as long, to do t
this rotation
symbol and glue it in the front. In reality, the symbol source is cont
Cyclic Prefix (CP)
Fig. 24undecodable
– Ifdecodable
we move the symbol back and just put in convenient filler
have a continuous signal but one that can get corrupted and we don’t
anyway before demodulating.
Slide the symbol to start at the edge of the delay spread time and th
copy of what turns out to be tail end of the symbol.
OFDM Diagram
Transmitter
Modulation
Insert
S/P IFFT P/S D/A
CP
channel
+
noise
De-mod
remove
P/S FFT S/P A/D
CP
Receiver
Orthogonal Frequency Division Multiplex (OFDM) Tutorial
Unoccupied Subcarriers
An Bn
Mn=An/Bn threshold
preamble preamble
An Bn
threshold
DAC (Tx)
ADC (Rx)
frx
ADC
(Rx)
rn=sn*ej2πfΔnT
rn+N=sn+N*ej2πfΔ(n+N)T
s s
sn
Sn+N
L
n=1
L
rr
n n+N = sn e s n+N e n=1
− j 2 π fΔ NTs * L
=e ssn n+N =e − j 2 π fΔ NTs
∑s n
2
− j 2 π fΔ NTs 2 n=1
=e sn 1
fΔ = ∠z
2π NTs
Sampling Frequency Offset (SFO)
DAC (Tx)
ADC (Rx)
tΔ
• The transmitter and receiver may sample the
signal at slightly different offset
Rotate the signal
• Yi=HiXi * ej2πtΔiNs/Nfft
• All subcarriers experience the same sampling
delay, but have different frequencies
Sample Rotation due to SFO
Symbol 3
x
x
x
x
Q
x
xx
x
Symbol
2
Symbol
1
x
x
x
x
x
θ
x
x
x
x
x
x
x
x
x
x
x
I
x
xx
x
x
xx
x
2πtΔNs/Nn
(SFO)
1
Change in phase between Tx and Rx ader CFO correcNon
Change in phase between Tx and Rx ader CFO correcNon
Q
Symbol 2
x
x
x
x
x
θ
x
x
x
x
Symbol
1
x
x
x
x
x
x
x
I
Ader
correcNon
Nondata-aided Phase Tracking
Q
Symbol
1
x
x
x
x
x
θ
x
x
x
x
x
x
x
x
x
x
x
I
OFDM Diagram
Transmitter
Modulation
Insert
S/P IFFT P/S D/A
CP
channel
+ noise
Correct CFO
Phase track
De-mod
remove
P/S FFT S/P A/D
CP
Receiver