Modems Key Learning Points • Fundamentals of modulation and demodulation • Frequency Domain Representation • Time Domain Representation •M-ary Modulation and Bandwidth Efficiency • BER vs.

Download Report

Transcript Modems Key Learning Points • Fundamentals of modulation and demodulation • Frequency Domain Representation • Time Domain Representation •M-ary Modulation and Bandwidth Efficiency • BER vs.

Modems
Key Learning Points
• Fundamentals of modulation and demodulation
• Frequency Domain Representation
• Time Domain Representation
•M-ary Modulation and Bandwidth Efficiency
• BER vs bit/second
8/16/2002
1
2.5 Public Carrier Circuits
for Limited Geographic Span: use privately owned resources
• e.g. Local Area Network, Routers, Hubs
for Larger Geographic Span:
• Line of Sight (LOS) uwave
• satellite links
• public carriers (e.g. Sprint, MCI, …)
- analog PSTN using modems
- digital leased lines: T1, T3, ISDN
8/16/2002
2
2.5.1: Analog PSTN Circuit
• designed for analog voice transmission (mixed audio
frequencies )
• Bandwidth ranges  400-3000Hz
- DC power supply  will not pass low frequency signals
(1111… or 0000…)
- 2 voltage levels for different signals won’t work
(0 output for 1111… or 0000…)
8/16/2002
3
Binary Data Transmission over PSTN Requires Modem
Modulator: Convert binary data into from compatible with
PSTN at transmitter
Demodulator: Convert signal back, recover data at receiver
2 options for conventional PSTN modem connection:
1. short-term switched path: dialing & setting up ~
phone call
2. leased line: bypass normal switching equipment
(switch exchanges)
- set-up on long-term basis
- economical only if utilization is high
- operating characteristics accurately quantified 
higher signal rates
8/16/2002
4
Modulation: three general types which can be combined
(i) Amplitude Shift Key,
(ii) Frequency Shift Key,
(iii) Phase Shift Key
binary data requires at least 2 signal levels
• as binary data keys between 1 and 0
• signal shifts between 2 levels
different methods require different amounts of BW
8/16/2002
5
(1) carrier signal: vc(t) = cos wct
(assume unity amplitude)
• carrier frequency, fc: (Hz) or wc = 2fc (rads)
• fc selected within PSTN Bandwidth (1000Hz-2000Hz)
(2) binary data signal, vd(t)
fundamental frequency of data signal: w0 = 2f0
 mathematically modulation is vc(t) vd(t)
8/16/2002
6
1. Amplitude Shift Key (ASK) Principal of Operation:
- amplitude of audio tone (fc) switched between 2 levels
- bit rate of transmitted binary signal determines switching rate &
bandwidth
- binary data is effectively carried by carrier signal
unipolar periodic data signal given by:
vd(t) =
1 2
1
1

  cos w0t  cos 3w0t  cos 5w0t  ...
2 
3
5

modulated signal given by
vASK(t) = vc(t) vd(t)
8/16/2002
7
vASK(t) = vc(t) vd(t)
1
2
1

= coswct   coswct cosw0t  coswct cos3w0t  ....
2

3

=
1
1
cos wct  cos( wc  w0 )t  cos( wc  w0 )t
2

1
cos( wc  3w0 )t  cos( wc  3w0 )t

3
1
cos( wc  5w0 )t  cos( wc  5w0 )t...

5
*2cosA cosB = cos(A-B) + cos(A+B)
8/16/2002
8
1
1  1
cos wct  
cos(wc  (2i  1)w0 )t
vASK(t) =
2
 i 02i  1
vASK(t) consists of original data signal vd(t)
• translated in frequency by wc (wc ± w0, wc ± 3w0, wc ± 5w0) …
• DC component translated to sinusoidal component at wc
• 2 frequency components for fundamental & each harmonic
- frequency components are equally space on either side of fc
- spectral components are known as sidebands
- each bandpass component at ½ power of original baseband
sidebands
8/16/2002
9
+V
0
1
0
1
0
1
0
digital signal
carrier signal
ASK – time domain
6f0
2f0
signal
power
fc–3f0
8/16/2002
fc–f0 fc fc+f0
ASK – frequency domain
fc+3f0
f
10
Recall from discussion of Limited Bandwidth:
• higher channel bandwidth  received signal is closer to
transmitted
• given data rate = R, minimum channel bandwidth for satisfactory
performance in the worst case
- f0 of “101010…” (shortest period  highest f0)
- f0 = ½ R
8/16/2002
11
• minimum channel bandwidth for ASK
- to receive only f0  bandwidth, B = 2f0 = R
- to receive f0 and 3rd Harmonic  bandwitdh = 6f0 = 3R,
• component at carrier frequency is present in received signal,
contains no information (inefficient)
- Nyquist: maximum achievable data rate for ideal channel
C = 2 B
Alternatively, let B = 2f0  max data rate R = B =22f0
• both primary sidebands used to compute minimum BW
• either contains required signal, f0
8/16/2002
12
Single Side Band (SSB)
• use band pass filter on transmitter  lower required bandwidth to
B = f0 (Nyquist rate)
- limit pass band
- remove lower sidebands: (fc - f0)
e.g. limit pass band to fc + (fc + 5f0)
• primary sideband signal power cut in ½ relative to vc (t )
- reduces Signal to Noise Ration  increases BER
SSB-ASK
power
passband
filter
fc–5f0 … fc–f0 fc fc+f0
8/16/2002
….
filter
fc+5f0
f
13
Demodulation: Recover transmitted Signal – at receiver
• assume ideal channel - no noise, distortion, attenuation
• practically, problem is more difficult
 received signal = vASK(t)
1
1
vASK(t) = cos wct 
2

1


cos(
w

w
)
t

cos(
w

3
w
)
t

...


c
0
c
0
3


receiver multiplies vASK(t) by vc (t)  vd(t)  v2c(t)
1
1
1

 cos wct cos wct  cos wct cos(wc  w0 )t  cos wct cos(wc  3w0 )t  ...
2

3

1
1
 cos(0)t  cos(2wc )t  
4
2
8/16/2002
cos w0 t  cos(2wc  w0 )t




1
1
 cos 3w t  cos(2w  3w )t...
0
c
0


3
 3

14
collecting terms yields:
1
1   2 cos(2i  1)w0 t cos2wc  (2i  1)w0 t 
 cos(0)t  cos(2wc )t  



4
2 i 0
2i  1
2i  1

Produces 2 versions of received signal
• each at ½ original power
• both with data contained in sidebands
• one is centered at 2fc (high frequency component )
• other is at baseband (fc - fc) = 0
8/16/2002
15
Select baseband signal with Low Pass filter:
• Low pass filter output = bandwidth limited version of vd(t)
• pass only 0, f0 3f0, (assume 3rd harmonic used )
filter all components < 3f0
1
1   2 cos(2i  1)w0 t cos2wc  (2i  1)w0 t 
 cos(0)t  cos(2wc )t  



4
2 i 0
2i  1
2i  1

hi frequency components
completely filtered
Recovered Signal =
8/16/2002
1 1
1
 cos w0  
cos 3w0 
4 
3
16
Original Data Signal
vd(t) =
1 2
1
1

  cos w0t  cos 3w0t  cos 5w0t  ...
2 
3
5

Modulated Signal
1
1  1
cos wct  
cos(wc  (2i  1)w0 )t
vASK(t) =
2
 i 02i  1
Demodulated Signal
1
1   2 cos(2i  1)w0 t cos2wc  (2i  1)w0 t 
 cos(0)t  cos(2wc )t  



4
2 i 0
2i  1
2i  1

Recovered Signal after low pass filtering, fcutoff = 3fn
1 1
1
1

  cosw0   cos3w0   ...  cosnw0 
4 
3
n

8/16/2002
17
Ideal ASK Modulation – Frequency Domain
vd(t)
f0
3f0
f
vASK(t)
fc–3f0 fc–f0 fc fc+f0 fc+3f0
f
demodulated
f0
3f0
2 fc–3f0 2fc–f0 2fc 2fc+f0 2 fc+3f0
filtered and recovered
f0
8/16/2002
3f0
18
vASK (t)
vd(t)
PSTN
cos(wct)
vd‘(t)
cos(w’ct)
Fantasy: Received Signal = ½ power of Transmitted Signal
More Practically
• if attenuation is included  10-30dB attenuation common
• if noise is included  received power > noise floor (SNR)
• if distortion is included  must use equalizers, match filter, etc
• if carriers aren’t synchronized  phase noise wc(t)-w’c(t) = (t)
• receiver must synchronize sampling interval to recover signal
8/16/2002
19
ASK is simple to implement, not used in early, low rate modems
- PSTN long haul switching & transmission systems were analog
- voice & data signals transmitted & switched as analog signals
- ASK sensitive to resulting variable signal attenuation
More recently PSTN long haul switching & transmission systems
are digital
- source signal is analog only to local exchange
- converted digital signal retains form thru-out network
- significant improvement in electrical characteristics of PSTN
ckts
ASK & PSK used to in higher rate modems
8/16/2002
20
ie: Estimate BW to transmit f0 & 3f0 using ASK for data
rates: (without SSB)
baseband
data-rate
300bps 1200bps 4800bps
component
f0
150Hz
600Hz
2400Hz
3f0
450Hz
1800Hz
7200Hz
bandpass
data-rate
300bps 1200bps 4800bps
Required BW
300Hz
1200Hz
4800Hz
2 f0
900Hz
3600Hz 14400Hz
6f0
8/16/2002
21
2. Frequency Shift Key (FSK): used in early low rate modems
Principal of Operation
• use 2 fixed amplitude carrier signals, vc1 (t), vc2 (t) to avoid reliance
on amplitude variance
• 2 carrier frequencies fc1 , fc2 frequency shift: fs = fc2 - fc1
• modulation is equivalent to summing 2 ASK modulators
- one carrier uses original data signal, vd(t)
- other carrier uses compliment of data signal, v’d(t)
- 2 data signals: vd(t) and vd’(t) = 1- vd(t)
vFSK(t) = vc1(t) vd(t) + vc2(t) vd’(t)
= cos(wc1t) vd(t) + cos(wc2t) vd’(t)
8/16/2002
22
1
0
1
0
1
0
data vd(t)
carrier vc1(t)
+V
-V
0
+V
1
0
1
0
1
inverted data v’d(t)
carrier vc2(t)
-V
8/16/2002
23
FSK – time domain
1
1
1 2


(cos
w
t

cos
3
w
t

cos
5
w
t

...)
vFSK(t) = cos wc1t 

0
0
0
3
5
2 

+ cos wc2t  1  2 (cos w0t  1 cos 3w0t  1 cos 5w0t  ...)
3
5
2 

8/16/2002
24
signal power
FSK – frequency domain
6f01
2f01
6f02
2f02
fc1–3f01 fc1–f01 fc1 fc1+f01 fc1+3f01
fc2–3f02 fc2–f02 fc2 fc2+f02 fc2+3f02
frequency shift: fs = fc2 – fc1
1
1
1
vFSK(t)  cos wc1t  cos(wc1  w0 )t  cos(wc1  3w0 )t  ...
2

3

1
1
1

 cos wc 2t  cos(wc 2  w0 )t  cos(wc 2  3w0 )t...
2

3

8/16/2002
25
FSK bandwidth requirements
• fc1 modulates ‘1’ and fc2 modulates ‘0’
- minimum bandwidth for each carrier is ½ R
- highest fundamental freq component of each carrier  ½ of ASK
• assume just f0 component received (no harmonics)
- let fs = fc2-fc1  total bandwidth for FSK is 2f0-FSK + fs
- since f0-FSK  ½ f0-ASK  total BW  f0-ASK + fs
- with 3rd harmonic: 6f0 ASK+ fs
8/16/2002
26
• choice of fs is significant - naïve choice vs efficient choice
• spectrum of simple FSK vs CPFSK techniques
- Sunde FSK
- MSK
Attn
(dB)
fc1
8/16/2002
fc2
0
Sunde FSK
-10
MSK
-20
-30
-40 -3 -2 -1 0 1 2 3
frequency = 1/Tb
27
Implementation of FSK
simple FSK system with phase jumps
cos w1t
input data phase jumps
switch
cos w2t
continuous phase FSK (CPFSK) with VCO based oscillator
input data VCO
cos wct
8/16/2002
28
ie: EIA for Bell 103, ITU-T for V.21 - FSK modems, full-duplex links
• f0 = 75 Hz  R = 150 bps
• 2f0 = 150 Hz  R = 300 bps
• fs = 200Hz, separation between primary sidebands = 50Hz
space = binary 0,
mark = binary 1
DTE
8/16/2002
modem
modem
modulator
‘0’ = 1070 Hz
‘1’ = 1270 Hz
demodulator
‘0’ = 1070 Hz
‘1’ = 1270 Hz
demodulator
’0’ = 2025 Hz
‘1’= 2225 Hz
modulator
’0’ = 2025 Hz
’1’ = 2225 Hz
DTE
29
3. PSK: phase shifts in carrier encode bits in data stream
• carrier frequency & amplitude are constant (constant envelope)
i. phase coherent PSK: 2 fixed carriers 180° phase shift
represents ‘1’ or ‘0’
• One signal is simply inverse of other
• Disadvantage: requires reference carrier signal at receiver
- received phase signal is compared to local reference carrier
- more complex demodulation circuitry
phase coherent
‘1’
‘0’
8/16/2002
30
ii. differential PSK: phase shift at each bit transition
• irrespective of whether ‘111…’ or ‘000…’ transmitted
90° phase shift relative to current signal  next bit = ‘0’
270° phase shift relative to current signal  next bit = ‘1’
• demodulation: determine magnitude of each phase shift (not
absolute value)
differential
90° = ‘0’
270° = ‘1’’
8/16/2002
31
PSK Bandwidth requirement: represent data in bi-polar form
• negative signal level results in 180° phase change in carrier
• assume unity amplitude, fundamental freq = w0
vc(t) = cos wct
vd(t) =
4V
1
1
(cos w0 t  cos 3w0 t  cos 5w0 t  ...)

3
5
vPSK(t) = vd(t)vc(t)
4
1
1

vPSK(t) = coswct cosw0t  coswct cos3w0t  coswct cos5w0t  ...

3
5


2 
1
1
  cos( w c  w 0 ) t  cos( w c  3 w 0 ) t  cos( w c  5 w 0 ) t  ... 
 
3
5

8/16/2002
32
signal
power
6f0
2f0
fc–3f0 fc–f0
8/16/2002
fc fc+f0
fc+3f0 f
33
PSK BW Requirements
- same bandwidth as ASK, no carrier component, coswct at wc
- assume 10101… w/ only f0 to be received  min BW = 2 f0
-absence of carrier component means more power to sidebands
- sidebands contain data  more resilient to noise than FSK, ASK
with band pass filter on transmitter band limit transmitted
signal to  fc
• achieve nyquist rate for minimum bandwidth required ½ R = f0
(~ ASK)
• no component at wc  all received power in data carrying
signal, fc ± f0, …
8/16/2002
34
Phase Diagram
• 2 axis: in-phase, I & quadrature, Q
• represents carrier as vector, length = amplitude
• vector rotates CCW around axis  angular frequency, w
- ‘1’ represented as vector in phase with carrier
- ‘0’ represented as vector 180° out of phase with carrier
Q (quadrature)
180 = 0
8/16/2002
0 =1
I (in-phase)
35
4. Multilevel Modulation
• Advanced modulation techniques  higher bit rates
- multi-level signaling
- mix of basic schemes (PSK, ASK)
- more complex (cost), higher bit error rate
• Used in all digital PSTN (switching & transmission)
Multi-Level Signal (use amplitude, phase, or frequency)
• use n signal levels  each signal represents log2n data bits
- 4 signal levels  2 bits/signal element
- 8 signal levels  3 bits/signal element
- 16 signal levels  4 bits/signal element
8/16/2002
36
QPSK (4-PSK):
• 4 signals (0°, 90°, 180°, 270°)  2 bits/signal
Q (quadrature)
90o = 00
180o= 00
0o = 11
I (in-phase)
270o = 10
8/16/2002
37
QAM – (quad amplitude modulation) Combine ASK & PSK
• QAM-16 levels per signal element  4-bits per symbol
- 12 phase levels
- 4 amplitudes levels
- different amplitude associated with adjacent phases
- 48 total signal levels  possible bits/symbol = 5
2(t)
1(t)
8/16/2002
38
using 16 of 48 possible signals makes recovery less prone to errors
- same amplitude levels have large phase variation
- same phase angles have large amplitude variation
- extra bit can be used for forward error correction
practical limits to M-level signalling:
• more phase/amplitude levels  difference between unique signal
symbols is reduced
• increases impact of channel impairments (noise distortion,
attenuation
• scheme’s robustness  depends on proximity of adjacent points in
constellation
• complexity rises  cost, risk, rate of failures rise
8/16/2002
39
reduce error rate:
 maximize distance between adjacent points
 grey coding – adjacent symbols differ by 1 bit
 offset phase angles for adjacent amplitude
Q (quadrature)
90o = 001
135o = 111
180o=
8 signals  3 bits/signal
45o = 011
0o = 010
100
I (in-phase)
300o= 110
225o =101
270o = 111
received signal region  bit error likely
received signal region  bit error unlikely
8/16/2002
40
All modulation schemes scramble & descramble
• reduces probability that consecutive bits in sequence are in
adjacent bit positions
- at transmitter: bit stream scrambled using pseudo random
sequence
- at receiver: bit stream descrambled  restore bit stream
- used in V.29 modems (fax machines @ 9600 bps)
8/16/2002
41
trellis–code modulation (TCM) - another redundancy scheme
- use all 32 amplitude –phase alternatives
- resulting 5 bit symbols contain only 4 data bits
- 5th bit generated using convolutional encoder, used for error
correction
• at transmitter: each 4-bit set in source stream converted to 5 bits
• at receiver: most likely 4 data bits determined
- with no bit errors  correct 4 bit set collected
- with bit errors  some probability that correct 4 bits selected
used in
V.32 for rates up to 14.4kbps
V.34 fast modems rates up to 19.2k, 24k, & 28k
8/16/2002
42
different types of PSTN Modems
type
bell 103
bell 202
V.22
V.26
V.27
V.29
V.32
V.33
V.34
V.90
8/16/2002
bps
0-300
1200
1200/600
2400
4.8002400
9600
9600
14.4k
33.6k
56k
modulation
FSK
FSK
QPSK/FSK
QPSK
8DQPSK/QDPSK
16-APK
32 QAM 16QAM
32 QAM
>1024 QAM
>1024 QAM
protocol
async
async
synch/async
sync
sync
sync
sync
svnc
sync
sync
43
2.5.1a. Cable Modems (CM)
• Connection speed  3-50 Mbit/s
• Distance can be 100 km or more
• Master-Slave Topology (CATV is traditionally simplex)
• CATV networks are Hybrid Fibre-Coax (HFC) networks
- fiber-optic cables from the Head-End to locations near the
subscriber
- the signal is converted to coaxial cables to subscriber premises.
• CMTS: Cable Modem Termination System
- connects cable TV network to data network
- CMTS can drive  1-2000 simultaneous CMs on 1 TV
channel
8/16/2002
44
CMTS (head)
Upstream Demodulator
QPSK/16-QAM
carrier freq. 5-65MHz
BW: 2MHz
Data Rate: 3Mbps
Downstream Modulator
64 QAM/256QAM
carrier freq: 65-850MHz
BW: 6-8MHz
Data Rate: 27-56Mbps
8/16/2002
Cable Modem 4
Cable Modem 3
Cable Modem 2
Cable Modem 1
Upstream Modulator
QPSK/16-QAM
carrier freq: 5-65ZMHz
BW: 2MHz
Data Rate: 3Mbps
Downstream Demodulator
64 QAM/256QAM
carrier freq: 65-850MHz
BW: 6-8MHz
Data Rate: 27-56Mbps
45
OSI
Higher Layers
DOCSIS
(Data Over Cable Service Interface Specification)
Applications
Transport Layer TCP/UDP
Network Layer
DOCSIS Control Messages
IP
Data Link Layer IEEE 802.2
Upstream
Physical Layer
8/16/2002
TDMA
5 - 42 MHz
QPSK/16-QAM
Downstream
TDMA
42 - 850 MHz
64/256-QAM
ITU-T J.83 Annex B
46
2.5.1.b Digital Subscriber Line (DSL) – up to 52Mbps over
traditional phone lines
• uses carrier frequencies between 25KHz .. 1MHz
• always on – no need to dial Internet Service Provider (ISP)
• dedicated connections (not shared with your neighbors)
• voice & data over a single line
more expensive, additional hardware required
• special DSL modem at your computer
• DSL Multiplexer (DSLAM) at central office
- separates voice/data streams
- sends voice stream to phone company & data stream to ISP
limited availability
• connection speed is dependent on distance from phone company
• data rate is lowered to reduce distortion
• DSL link must be within 2 miles of central office
8/16/2002
47