Signal Encoding PDF
Signal Encoding PDF
Signal Encoding PDF
Computer Networks
Lecture 5
Signal Encoding Techniques
Fall 2007
Agenda
Encoding Techniques
There are a number of transmission options
available today, depending on the encoding
technique
There are four possible combinations of
encoding techniques
Digital data, digital signal
Digital data, analog signal
Analog data, digital signal
Analog data, analog signal
Digital Data
Digital Signals
Terms (1)
Unipolar
All signal elements have same sign, i.e. all positive or
all negative
Polar
One logic state represented by positive voltage the
other by negative voltage
Data rate
Rate of data transmission in bits per second
Terms (2)
Modulation rate
Rate at which the signal level changes
Modulation rate is measured in baud = signal
elements per second
Interpreting Signals
Receiver needs to know
Timing of bits - when they start and end
Signal levels
Encoding Schemes
considerations (1)
Signal Spectrum
Lack of high frequencies reduces required bandwidth
Lack of dc component also desirable since it allows ac
coupling via transformer, providing electrical isolation
Concentrate tx power in the middle of tx bandwidth
Clocking
Synchronizing transmitter and receiver
External clock
Sync mechanism based on tx signal with suitable
encoding
9
Encoding Schemes
considerations (2)
Error detection
Can be built in to signal encoding
10
Encoding Schemes
11
1
+V
0 Volts
12
Example:
0
0
+V
0 Volts
-V 13
1
+V
0 Volts
-V 14
0V
0V
15
Differential Encoding
Data represented by changes rather than levels
Benefits
More reliable detection of transition in the presence
of noise rather than to compare a value to a
threshold level
In complex transmission layouts it is easy to loose
sense of polarity of the signal
16
Disadvantages
DC component
Lack of synchronization capability
Multilevel Binary
Uses more than two levels
Bipolar-AMI (Alternate Mark Inversion)
zero represented by no line signal
one represented by positive or negative pulse
Binary 1 pulses alternate in polarity
Pseudoternary
Binary 1 is represented by absence of line signal
Binary 0 is represented by alternating positive
and negative pulses
No advantage or disadvantage over bipolar-AMI
No loss of sync if a long string of zeros (ones still a
problem)
19
0V
0V
20
10
Disadvantages of Multilevel
Binary
Not as efficient as NRZ
Each signal element only represents one bit
The line signal may take on one of 3 levels
Each signal element, which could represent log23 = 1.58 bits
bears only one bit of information
Biphase
Another set of coding techniques that
overcomes NRZ limitations
Biphase
Manchester
Differential Manchester
22
11
Manchester Encoding
0V
Differential Manchester
Encoding
0V
12
Disadvantages
At least one transition per bit time and possibly two
Maximum modulation rate is twice as that of NRZ
Requires more bandwidth
25
Tb
D=
R
R
=
L log2 M
where
D = modulation rate in baud
R = Data rate in bps
M = number of different signal elements = 2L
L = number of bits per signal element
26
13
Digital Data
Analog Signals
28
14
PSTN
network
Server
Modem
Access Router
29
Modulation techniques
We will examine three basic modulation
techniques
Amplitude Shift Keying (ASK)
Frequency Shift Keying (FSK)
Phase Shift Keying (PSK)
30
15
Modulation Techniques
31
s(t) = A cos(2fct)
s(t) = 0
binary 1
binary 0
16
Multiple FSK
where, fi=fc+(2i-1-M)fd
fc = carrier frequency
fd = difference frequency
M = number of different signal elements = 2L
L = number of bits per signal element
34
17
1170 Hz
2125 Hz
35
binary 1
binary 0
18
DPSK
38
19
QPSK equation
Each signal element represents
than one
s(t)=A cos(2fct+/4)
s(t)=A cos(2fct+3/4)
s(t)=A cos(2fct-3/4)
s(t)=A cos(2fct-/4)
39
Quadrature Amplitude
Modulation
QAM used on asymmetric digital subscriber line (ADSL)
and some wireless standards
Combination of ASK and PSK
Can also be considered a logical extension of QPSK
Send two different signals simultaneously on same
carrier frequency
Use two copies of carrier, one shifted by 90 with respect to the
other
Each carrier is ASK modulated
Two independent signals over same medium
At the receiver the two signals are demodulated and combined
to produce the original binary signal
40
20
QAM Levels
Two-level ASK
Each of two streams in one of two states
Four state system
Essentially QPSK
Required Reading
Stallings chapter 5
42
21
Home Exercises
43
Review Questions
List and briefly define important factors that can be used
in evaluating or comparing the various digital-to-digital
encoding techniques
What is differential encoding?
Contrast all digital encoding schemes listed in this
lecture (NRZL, NRZI, Bipolar AMI, Pseudoternary,
Manchester, Differential Manchester), outlining their
advantages and disadvantages
Define the modulation rate and write an expression
which relates it with the bit rate.
Explain the difference between ASK, FSK and PSK
modulation techniques
What is the difference between Binary PSK, DPSK and
QPSK?
44
22
Exercises (1)
1. For the bit stream 01001110, sketch the
waveforms for the following codes
a)
b)
c)
d)
e)
f)
NRZ-L
NRZI
Bipolar-AMI
Pseudoternary
Manchester
Differential Manchester
Assume that:
the most recent preceding 1 bit (AMI) has a negative voltage
the most recent preceding 0 bit (pseudoternary) has a negative
voltage.
45
Exercises (2)
2.
10
46
23