DD
DD
2
In data communications, we
commonly use periodic analog signals
and aperiodic digital signals.
Note:
3
Simple Analog Signals: Sine Waves
s(t) = A.sin(2ft+)
A: peak amplitude
f: frequency, t: time, : phase
4
Units of Frequency and Periods
Period Equivalent Frequency Equivalent
5
Nanoseconds (ns) 109 s gigahertz (GHz) 109 Hz
6
7
Frequency is the rate of change with
respect to time. Change in a short span
of time means high frequency. Change
over a long span of time means low
frequency.
8
Note:
9
Phase
10
Sine Wave: Examples
11
Sine Wave: One more example
12
Note:
13
Frequency Domain
14
15
Use of Sine Waves
A power company sends a single sine wave with
frequency 60Hz to distribute electric energy to
houses and businesses
We can use a single sine wave to send an alarm to
a security center
But single sine waves are useless in data
communications. WHY?
Think about phone conversation
16
Composite Analog Signals
Note:
18
Fourier Transformation
s(t)=A sin(2f t+ ) + A sin(2f t+ ) + A sin(2f t+ ) +
1 1 1 2 2 1 3 3 3
19
Combination of Single Sine Waves
20
Frequency Spectrum
The description of a signal using the frequency domain and
containing all its sine-wave components is called the frequency
spectrum of that signal
21
Signal Over Transmission Medium
22
Bandwidth of Transmission Medium
Note:
23
Analog Bandwidth
24
Analog Bandwidth: Example 1
25
Analog Bandwidth: Example 2
26
27
Analog Bandwidth: Example 3
A signal has a spectrum with frequencies between 1000
and 2000 Hz (bandwidth of 1000 Hz). A medium can pass
frequencies from 3000 to 4000 Hz (a bandwidth of 1000
Hz).
28
Digital Signals
29
30
Digital Signal = Composite Analog Signal
Imagination: A digital signal can be considered as
a composite analog signal with an infinite number
of frequencies (using Fourier transformation).
Thus: the bandwidth of a digital signal is infinite
31
32
Bandwidth Requirement: Example
Every second 6 bits are generated by the computer
E.g., 000000, 111111, 010110, 000011, etc.
How to simulate these signals
Using a single-frequency analog signal?
Using a multi-frequency analog signal?
33
Example: Using One Harmonic
36
37
Medium Bandwidth Requirement
Bit Harmonic Harmonics Harmonics Harmonics
Rate 1 1, 3 1, 3, 5 1, 3, 5, 7
38
B = n/2+3n/2+5n/2+...
The more harmonics, the better quality, the higher bandwidth required
39
Digital Bandwidth
Note:
40
41
I am so Confused ?!?!?!!!
B > n/2 => n < 2B => digital bandwidth must
be smaller than 2B BUT:
42
Use Digital or Analog Signal?
e.g., cables in LAN
There are two types of links: low-pass link and band-pass link
43
Note:
44
45
Digital vs. Analog
Digitals advantage:
Digital design less expensive and more reliable
Greater dynamic range and error detection and
recovery by the use of coding
46
47
Baseband vs. Broadband Signals
Baseband signal: frequency spectrum extends
from 0 to some maximum frequency (similar to
low-pass channels property)
Broadband signal: frequency spectrum belongs to
a range between a min freq and a max freq
(similar to band-pass channels property)
48
49
Data Rate Limits
How fast can we send data (in bps) over a link?
The answer depends on
Bandwidth available
Levels of signals we can use
50
Signal Levels
2
51
52
Noiseless Channel: Nyquist Bitrate
bitRate = 2 Bandwidth log2L
L: the number of signal levels used to represent data
Bandwidth: analog channel bandwidth
Example: Consider a noiseless channel with a bandwidth
of 3000 Hz transmitting a signal with two signal levels.
The maximum bit rate can be calculated as
53
54
Noisy Channel: Shannon Capacity
channelCapacity = Bandwidth log2(1+SNR)
SNR: signal to noise ratio statistical ratio of the
signal power and noise power
Bandwidth: analog channel bandwidth
55
56
More Example
We have a channel with a 1 MHz bandwidth. The SNR
for this channel is 63; what is the appropriate bit rate and
signal level?
57
Transmission Impairment
58
Attenuation
59
60
Attenuation: Example
Imagine a signal travels through a transmission medium
and its power is reduced to half. This means that P2 = 1/2
P1. In this case, the attenuation (loss of power) can be
calculated as
61
Why do We Use dB?
dB = 3 + 7 3 = +1
62
Distortion
63
Noise
64
Throughput
65
Propagation Time
66
Wavelength
67
68
Common Wavelengths
Band Approximate Center Wavelength (m)
Broadcast AM ~ 300
1000 Khz
69
Satellite ~ 10 Ghz 0.03
Fact: Reception heard on FM radio is more sensible to mobility
than that on AM radio
70
71
Dielectric Constant
Ability of a material to resist Wavelength = (1 / freq) *
the formation of an electric (Lightspeed / sqrt(dielectic))
field within it
Material Dielectric constant
Free space 1.0
Air 1.0006
Metallic conductors 1.2-1.6
Rubbers 3.0
Glass 7.5
72
73
Exercise
Consider an electromagnetic wave moving in a
metallic conductor with a dielectric constant of
1.15
What is the propagation speed of this metallic
conductor?
How much longer would it take the wave to travel
1000 miles than the same wave traveling in free space?
74
Radio Frequency Bands
Band name Frequency, Wavelength Example uses
75
SHF 330 GHz, 100 mm 10 mm microwave devices, mobile phones, wireless
LAN
EHF 30300 GHz, 10 mm 1 mm Next frontier for communications
76
Power Radiation
d Ptransmitter
Ptransmit = 4d2 * Preceive
Preceiver
77
78
Modulation Techniques
Digital to Analog Modulation
Modulation Devices
Analog to Analog Modulation
Analog to Digital Modulation
79
Digital to Analog Modulation
80
81
Carrier Signal
Sender
Produce a high-frequency signal that acts as a basis for
the information signal => carrier signal
Modulate the carrier signal to reflect the digital
information. The information signal is called the
modulating signal
Receiver
Tune in the carrier frequency to receive
82
Digital-Analog Modulation Schemes
83
Amplitude Shift Keying (ASK)
Only amplitude is varied to represent binary 1 or 0
84
Amplitude-Shift Keying
One binary digit represented by presence of carrier, at
constant amplitude
Other binary digit represented by absence of carrier
s(t)= Acos0(2fct)binary binary 10
86
where the carrier signal is Acos(2fct)
87
88
Bit rate is the number of bits per second
- More important in speaking of computer efficiency
Note:
89
90
Baud Rate Example
An analog signal carries 4 bits in each signal unit. If 1000
signal units are sent per second, find the baud rate and the
bit rate
Baud rate = 1000 bauds per second (baud/s)
Bit rate = 1000 x 4 = 4000 bps
91
92
ASK (2)
Disadvantage
Highly susceptible to noise interference because ASK relies on
amplitude to differentiate between 1 and 0
Need a great gap between amplitude values so that noise can be detected and
removed
93
ASK: Bandwidth Requirement
94
ASK: Example
Given a bandwidth of 10,000 Hz (1000 to 11,000 Hz),
draw the full-duplex ASK diagram of the system. Find the
carriers and the bandwidths in each direction. Assume
there is no gap between the bands in the two directions.
95
Frequency Shift Keying (FSK)
Only frequency is varied to represent binary 1 or 0
96
Two binary digits represented by two different
frequencies near the carrier frequency
()
where f1 and f2 are offset from carrier frequency fc by equal but opposite
amounts
Multiple Frequency-Shift Keying
(MFSK)
More than two frequencies are used
More bandwidth efficient but more susceptible to
error
si ( t )= Acos2fit 1 i M
f i = f c + (2i 1 M)f d
f c = the carrier frequency
f d = the difference frequency
M = number of different signal elements = 2 L
L = number of bits per signal element
MFSK
One signal element encodes L bits
Element interval = T =LT seconds
s
where T is the bit period (data rate = 1/T)
Total bandwidth required 2Mf
d
Minimum frequency separation required 2f =1/T
d s
111
FSK vs. ASK
FSK
Less susceptible to error
On voice-grade lines, up to 1200bps
Commonly used for high-freq (3-30 Mhz) radio
112
Phase Shift Keying (PSK)
Only phase is varied to represent 1 or 0
113
4-PSK
114
Constellation (or Phase-State) Diagram
115
PSK: Baud Rate and Bandwidth
118
119
PSK: Drawback
Why not combine PSK and ASK: x variations in
phase with y variations in amplitude result in xy
variations => increase bit rate
120
Quadrature Amplitude Modulation
A combination of ASK and PSK: both phase and amplitude varied
#amplitude shifts << #phase shifts
Lower susceptible to noise than ASK, higher bit rate than PSK
121
8-QAM
122
16-QAM
123
Example: QAM Modulator
124
QAM: Bandwidth
Bandwidth requirement is the same as in ASK and PSK
125
126
QAM: BitRate vs. Baud Rate
Modulation Units Bits/Baud Baud rate Bit Rate
127
Modem Standards
Modem = Modulator/Demodulator
Telephone modem:
128
Telephone Line Bandwidth
129
V.32 Modem
Use 32-QAM
Data is divided into 4-bit sections, each adding a redundant bit to
form a 5-bit => reduce value density => reduce noise interference
(how?)
baud rate = 2400 (why?)
130
V.32bis Modem
131
132
V.34bis Modem
960-point constellation => bit rate = 28,800 bps
1664-point constellation => bit rate = 33,600 bps
133
Traditional Modems
134
56K Modem: V.90
Max: 33Kbps
Max: 56Kbps
8000 samples/s, 8 bits/sample,
7bits per data => 56Kbps
135
136
56K Modem: V.92
Similar to V.90
Modem can adjust speed
If noise allows => upload max 48 Kbps, download still
56 Kbps
137
Analog to Analog Modulation
Representation of analog information by an analog signal
Why do we need it? Analog is already analog!!!
Because we may have to use a band-pass channel
Think about radio
Schemes
Amplitude modulation (AM)
Frequency modulation (FM)
Phase modulation (PM)
138
Amplitude Modulation: AM
Carrier signal is
modulated so that its
amplitude varies with the
changing amplitudes of
the modulating signal
139
140
Example: AM
Let x(t) = cos(2fmt)
Derive an express for s(t)
Answer:
s(t) = cos(2fct) +
(na/2)cos(2(fcfm)t) +
(na/2)cos(2(fc+fm)t)
141
AM: Bandwidth
142
AM Band Allocation
143
Frequency Modulation: FM
144
FM: Bandwidth
145
FM Band Allocation
146
147
Phase Modulation: PM
Only phase is varied to reflect the change of
amplitude in modulating signal
Require simpler hardware than FM
Use in some systems as an alternative to FM
148
149
Analog Data to Digital Signal
Once analog data have been converted to digital
signals, the digital data:
can be transmitted using NRZ-L
can be encoded as a digital signal using a code other
than NRZ-L
can be converted to an analog signal, using previously
discussed techniques
Pulse Code Modulation
Based on the sampling theorem
Each analog sample is assigned a binary code
Analog samples are referred to as pulse amplitude
modulation (PAM) samples
Feed signal into a channel encoder Digit sequence is used
To produce analog signal with narrow bandwidth to demodulate the
around some center frequency
spread spectrum signal
Modulation using a sequence of digits
Spreading code or spreading sequence Signal is fed into a
Generated by pseudonoise, or pseudo-random channel decoder to
number generator recover data
Purpose: to increase bandwidth of signal to be
transmitted
Why Waste of Spectrum?
Immunity from various kinds of noise and
multipath distortion
Can be used for hiding and encrypting signals
Several users can independently use the same
higher bandwidth with very little interference
Frequency Hopping Spread Spectrum
(FHSS)
Invented by actress Hedy Lamarr at age 26
Signal is broadcast over seemingly random
series of radio frequencies
Signal hops from freq to freq at fixed
intervals
Hedy Lamarr
(1913-2000)
Frequency Hopping Spread Spectrum
(FHSS)
Channel sequence dictated by spreading code
Receiver, hopping between frequencies in
synchronization with transmitter, picks up message
Eavesdroppers hear only unintelligible blips
IEEE 802.11
Attempts to jam signal on one frequency 300-ms interval
succeed only at knocking out a few bits
FHSS Using MFSK
MFSK signal is translated to a new frequency every Tc
seconds by modulating the MFSK signal with the FHSS
carrier signal
For data rate of R:
duration of a bit: T = 1/R seconds
duration of signal element: Ts = LT seconds