Tutorial5 PDF
Tutorial5 PDF
Tutorial5 PDF
Tutorial 5- Week 11 – 12 TELE4353 Mobile and Satellite 1 Tutorial 5- Week 11 – 12 TELE4353 Mobile and Satellite 2
Communication Systems Communication Systems
a(t)
r(t) = m(t) ⋅ a(t) + n(t)
d (t) = r(t) ⋅ a (t) = m (t) + a (t)n (t)
Tutorial 5- Week 11 – 12 TELE4353 Mobile and Satellite 5 Tutorial 5- Week 11 – 12 TELE4353 Mobile and Satellite 6
Communication Systems Communication Systems
How does DS CDMA work? DS CDMA in Time and Frequency
• Each user has its own PN code which is Frequency Domain
Time Domain
orthogonal (near-orthogonal) to all other PN
codes. m(t) – Message 1 1 1
-1 -1
• The receiver needs to know the code used by the
transmitter.
a(t) – Spreading Code
• The power of other users at a receiver determines
the noise floor after signal dispreading and
demodulation. p(t) – Spread Signal
Tutorial 5- Week 11 – 12 TELE4353 Mobile and Satellite 7 Tutorial 5- Week 11 – 12 TELE4353 Mobile and Satellite 8
Communication Systems Communication Systems
M(
M( ) 2
= N0Bm
P - signal power
Ba
Bm Bm G=
P( ) =M( ) ⊗A( ) Bm
) = F{ a(t) } P
A(
P( ) Bm
since Ba >> Bm P
SNRa =
Ba Bp ≈ Ba Ba G 2
M( )
P( ) = F{p(t) }
Bm Ba P N0 = k T P
G= SNRm =
2
Ba
Bm Bm
Tutorial 5- Week 11 – 12 TELE4353 Mobile and Satellite 9 Tutorial 5- Week 11 – 12 TELE4353 Mobile and Satellite 10
Communication Systems Communication Systems
P( )
P
• The signals that we are dealing with have
AWGN
limited power P.
ω
• Effective noise power before spreading or
D(
Tutorial 5- Week 11 – 12 TELE4353 Mobile and Satellite 11 Tutorial 5- Week 11 – 12 TELE4353 Mobile and Satellite 12
Communication Systems Communication Systems
Solution to part 1, cont’d Two SS Signals
M 1 (ω ) M 2 (ω )
P P P
• The SNR before spreading is SNRm =
N 0 Bm ω ω
Bm Bm
P
• The SNR after spreading is SNRa =
N 0 Ba P1 (ω ) P2 (ω )
N0 = k T ω
SNRm Ba SNRm
= =G SNRa =
SNRa Bm G Ba
~
M 1 (ω )
SNRm = 17dB P AWGN
SNRa = 17dB − 10 log(200) = −6dB
G = 200 Signal Interference N0 = k T ω
Bm Ba 2B a
Tutorial 5- Week 11 – 12 TELE4353 Mobile and Satellite 13 Tutorial 5- Week 11 – 12 TELE4353 Mobile and Satellite 14
Communication Systems Communication Systems
Tutorial 5- Week 11 – 12 TELE4353 Mobile and Satellite 15 Tutorial 5- Week 11 – 12 TELE4353 Mobile and Satellite 16
Communication Systems Communication Systems
K SS Signals
k Signals in Noise M1(
) M2 (
) Mk (
)
P P P
•••
r(t) = m1(t)a1(t) + m2 (t)a2 (t) + ⋅ ⋅ ⋅ + mk (t)ak (t) + n(t)
N0 = k T
Interference
Again we want to find output SNRo; -> BER
Bm Ba 2Ba
Tutorial 5- Week 11 – 12 TELE4353 Mobile and Satellite 17 Tutorial 5- Week 11 – 12 TELE4353 Mobile and Satellite 18
Communication Systems Communication Systems
Output Signal to Noise Ratio Solution to part 2 of Q1
P SNRm
Signal power - >P SNRK = =
(k -1)P (k -1)
2
+ 1+ SNRm
-> 2 G G
Noise power
SNRm = 17 dB = 50.11
(k - 1)P
Effective interference power ->
G K = 31 SNRK = 5.89 = 7.7 dB
(k - 1)P
-> 2+
Tutorial 5- Week 11 – 12 TELE4353 Mobile and Satellite 21 Tutorial 5- Week 11 – 12 TELE4353 Mobile and Satellite 22
Communication Systems Communication Systems
Generator Sequences
Convolutional Encoder
Here n=2, k=1 and m=2. (2,1,2) convolutional code is specified
by the following sequences:
vl(1) v(1)
Input
g (1) = (1 0 1 ),
Path 1
v g ( 2 ) = (1 1 1 ).
Cl
C l-1 C l-2 Output
The input sequence is: c.
c vl(2)
v(2) The output sequence is:
Path 2
Tutorial 5- Week 11 – 12 TELE4353 Mobile and Satellite 23 Tutorial 5- Week 11 – 12 TELE4353 Mobile and Satellite 24
Communication Systems Communication Systems
Example of possible outputs
State Diagram
cl /vl(1) vl(2)
cl = 1 Each state is of the cl−1 cl−2 cl cl−1
form (Cl-1,Cl-2) 0 / 00
cl − 1 = 0 vl(1) = 1, vl(2) = 1,
00
vl(1) = cl ⊕ cl − 2 cl −2 = 0 0 / 11 1 / 11
vl(2) = cl ⊕ cl −1 ⊕ cl − 2 There are four states:
1 / 00
cl = 1 (0,0), (0,1), (1,1) and (1,0). 01 10
0 / 01
cl − 1 = 1 v(1)
l = 1, v
(2)
l =0 0 / 10 11
1 / 10
cl − 2 = 0
1 / 01
Tutorial 5- Week 11 – 12 TELE4353 Mobile and Satellite 25 Tutorial 5- Week 11 – 12 TELE4353 Mobile and Satellite 26
Communication Systems Communication Systems
1/01
10 10
0
11
0/
11 11 11
01
10
00 1/
1/
0/
10
10 10 10 10 10
1
01 01
1/1
0/
01
0/ 00
11
1/
1
1/1
01 01 01 01 01 0 /1
0/00 1
00 00
0/00 0/00 0/00 0/00 0/00 0/00 0/00
00 00 00 00 00 00 00 00
Tutorial 5- Week 11 – 12 TELE4353 Mobile and Satellite 27 Tutorial 5- Week 11 – 12 TELE4353 Mobile and Satellite 28
Communication Systems Communication Systems
d=1
• If the input sequence has a length L bits, the input can take v 2 = (11, 01), d (v2 , r ) = 1
1
1/1
01
1
that can be taken, and we have to search among these 2L d=2 v1 = (00, 00), d ( v1 , r ) = 2
0/00 0/00
paths to find the closest to what we have received. 00 00 00
• Viterbi algorithm is an efficient way to find the closest path.
r= 10 01
Its complexity grows linearly with L.
Tutorial 5- Week 11 – 12 TELE4353 Mobile and Satellite 29 Tutorial 5- Week 11 – 12 TELE4353 Mobile and Satellite 30
Communication Systems Communication Systems
Decoding, stage 3 Decoding, stage 4
d=3 d=2
3 3 d=3 d=3 3 3 d=2 d=2
3 3 3 3
01 01
11 11 11 11 11 11 11 11 11 11 11 11
11 11 11 11
0/1
0/1
10 2 d=1 10 1
d=3
2 2 d=1 1 1 d=3
0
2 d=1 1 d=3
10 10 10 10 10 10 10 10 10 10
10 10 10 10
00 00
0/
0/
1/ 1/
01
01
1 1 d=3 3 3 d=2 d=2
1 1 3 3
01 01 01 01 01 01 01 01 01
01 01 01
1
1
0/ 0/
1/1
1/1
11 11
2 2 d=2 2 2 d=3
2 2 2 2
00 00 00 00 00 00
0/00
00
00 00 00
0/00
00 00 00 11 11 11
00 11
Tutorial 5- Week 11 – 12 TELE4353 Mobile and Satellite 31 Tutorial 5- Week 11 – 12 TELE4353 Mobile and Satellite 32
Communication Systems Communication Systems
0/1
10 3
d=3 10 3
d=3
3 3 d=3 3 3 d=3
0
0
3 d=3 3 d=3
10 10 10 10 10 10 10 10 10 10
10 10 10 10
00 00
0/
0/
1/ 1/
01
01
2 2 d=3 d=3 3 3 d=3 d=3
2 2 3 3
01 01 01 01 01 01 01 01
01 01 01 01
1
0/ 0/
1/1
1/1
11 11
3 3 d=3 3 3 d=3
3 3 3 3
00 00 00 0/00 00 00 00 0/00
00 00 00 00
01 01 01 11 11 11
01 11
Tutorial 5- Week 11 – 12 TELE4353 Mobile and Satellite 33 Tutorial 5- Week 11 – 12 TELE4353 Mobile and Satellite 34
Communication Systems Communication Systems
Decoding, stage 7
Decoding stage 1-7
d=4 d=4
3 3 d=4 d=4
3 3
01
11 11 11 11 11 11 1
11 11 11 11
0/1
3
10 3
d=3 11 11 11 11
3 d=3
0
3 d=3 1 0
10 10 10 10 10 10 10 10
10 10 10 10 10
00 10
0/
1/
01
3 3 d=4 d=4 0
3 3 1
01 01 01 01 1
01 01 01
1
0/ 01 01
1/1
11 01 01 01
3 3 d=3 0
3 3
00 00 00 0/00
00 00 00
00 00 00 00 00 00
00
11 11 11 11
11 r= 01 01 00 11 01 11
Tutorial 5- Week 11 – 12 TELE4353 Mobile and Satellite 35 Tutorial 5- Week 11 – 12 TELE4353 Mobile and Satellite 36
Communication Systems Communication Systems