5-Chapter - 5 Signal Encoding
5-Chapter - 5 Signal Encoding
William Stallings
Data and Computer
Communications
Ed.10 Chapter 5
Signal Encoding
Lec 5
4/25/2023
Encoding Techniques
2
Based on/from William Stalling’s Data & Computer Communications
2
INWK 6111 Lec 5 Chapter 5 4/25/2023
A Digital signal
consists of discrete, discontinuous
voltage pulses
each pulse is a signal element
binary data is encoded into signal
elements
3
Based on/from William Stalling’s Data & Computer Communications
4
Based on/from William Stalling’s Data & Computer Communications
4
INWK 6111 Lec 5 Chapter 5 4/25/2023
5
Based on/from William Stalling’s Data & Computer Communications
6
INWK 6111 Lec 5 Chapter 5 4/25/2023
Encoding Schemes
Comparison of Encoding
Schemes : 1
8
Based on/from William Stalling’s Data & Computer Communications
8
INWK 6111 Lec 5 Chapter 5 4/25/2023
Comparison of Encoding
Schemes : 2 Signal Spectrum
9
Based on/from William Stalling’s Data & Computer Communications
Comparison of Encoding
Schemes : 3
Clocking
Is required for synchronizing the
transmitter and the receiver
An external clock may be
required- however this is
expensive
Synchronization mechanisms
based on the transmitted signal
are cost effective
10
Based on/from William Stalling’s Data & Computer Communications
10
INWK 6111 Lec 5 Chapter 5 4/25/2023
Comparison of Encoding
Schemes : 4
Error detection
Can be built into the signal encoding
See Chapter 7 for Data Link Control error
techniques
Signal interference and noise
immunity
Some codes are better than others
and this is measured by their Bit Error
Rate (BER)
11
Based on/from William Stalling’s Data & Computer Communications
11
Comparison of Encoding
Schemes : 5
12
Based on/from William Stalling’s Data & Computer Communications
12
INWK 6111 Lec 5 Chapter 5 4/25/2023
NRZ-Level (NRZ-L)
NRZ-Invert-on-ones (NRZ-I)
13
Based on/from William Stalling’s Data & Computer Communications
13
Non-return to Zero: 2
NRZ-L : 1
14
Based on/from William Stalling’s Data & Computer Communications
14
INWK 6111 Lec 5 Chapter 5 4/25/2023
Nonreturn to Zero: 3
NRZ-L : 2
15
Based on/from William Stalling’s Data & Computer Communications
15
Nonreturn to Zero : 4
Nonreturn to Zero Inverted : 1
16
Based on/from William Stalling’s Data & Computer Communications
16
INWK 6111 Lec 5 Chapter 5 4/25/2023
Nonreturn to Zero: 5
Nonreturn to Zero Inverted : 2
A transition (low to high or high to low)
denotes a binary 1
No transition denotes a binary 0
This is an example of differential encoding
17
Based on/from William Stalling’s Data & Computer Communications
17
Nonreturn to Zero: 6
NRZ-I : Differential Encoding
18
Based on/from William Stalling’s Data & Computer Communications
18
INWK 6111 Lec 5 Chapter 5 4/25/2023
Nonreturn to Zero: 7
Signal Spectrum NRZ
High DC Component
19
Based on/from William Stalling’s Data & Computer Communications
19
Nonreturn to Zero: 8
NRZ pros and cons
Pros
it is easy to engineer
it makes good use of bandwidth
Cons
it has a dc component
it lacks synchronization
capability if strings of “0” are
sent
Used for magnetic recording
Not often used for signal
transmission
20
Based on/from William Stalling’s Data & Computer Communications
20
INWK 6111 Lec 5 Chapter 5 4/25/2023
Multilevel Binary : 1
Use more than two levels
Opposite levels
Opposite levels
See following slides
21
Based on/from William Stalling’s Data & Computer Communications
21
Multilevel Binary :2
Bipolar-AMI
22
Based on/from William Stalling’s Data & Computer Communications
22
INWK 6111 Lec 5 Chapter 5 4/25/2023
Multilevel Binary : 3
Pseudoternary
A binary one is represented by the
absence of a line signal
A binary zero is represented by
alternating positive and negative
pulses
It has no advantage or disadvantage
over bipolar-AMI
23
Based on/from William Stalling’s Data & Computer Communications
23
Multilevel Binary : 4
Trade Off for Multilevel Binary
Not as efficient as NRZ where each signal
element can only represent one bit as here
the code has the potential (unrealized) to
hold more than one bit
In a 3 level system a signal element could
represent log23 = 1.58 bits
The receiver must distinguish between three
levels
(+A, -A, 0)
It requires approx. 3dB more signal power than
a two-valued signal for the same probability of
bit error (See Figure 5.4)
Pseudoternary is used in ISDN
24
Based on/from William Stalling’s Data & Computer Communications
24
INWK 6111 Lec 5 Chapter 5 4/25/2023
Multilevel Binary : 5
Signal Spectrum
No DC Component
Reasonable Bandwidth
25
Based on/from William Stalling’s Data & Computer Communications
25
Biphase : 1
Manchester
Used by IEEE 802.3
A transition occurs in the middle of each bit period
A transition serves as both clock and data
Low to high represents a binary one
High to low represents a binary zero
26
Based on/from William Stalling’s Data & Computer Communications
26
INWK 6111 Lec 5 Chapter 5 4/25/2023
Biphase : 2
Differential Manchester
Used by IEEE 802.5
A mid-bit transition is clocking only
A transition at the start of a bit period
represents a binary zero
No transition at the start of a bit period
represents a binary one
Note: this is a differential encoding
scheme
27
Based on/from William Stalling’s Data & Computer Communications
27
BiPhase : 4
Signal Spectrum
No DC component
28
Based on/from William Stalling’s Data & Computer Communications
28
INWK 6111 Lec 5 Chapter 5 4/25/2023
Biphase : 3
Pros and Cons : 1
Pros
Has synchronization on a mid bit
transition (self clocking)
Has no dc component
Has error detection
Absence of an expected mid-bit transition
29
Based on/from William Stalling’s Data & Computer Communications
29
Biphase : 3
Pros and Cons : 2
Cons
It has at least one transition per bit
time and possibly two
The maximum modulation rate is
twice that of NRZ (see next slide)
It has a wide bandwidth
30
Based on/from William Stalling’s Data & Computer Communications
30
INWK 6111 Lec 5 Chapter 5 4/25/2023
Modulation Rate
One signal
element per
bit time
2 signal
elements per
bit time
31
Based on/from William Stalling’s Data & Computer Communications
31
Differential
Multilevel Binary
Biphase
32
Based on/from William Stalling’s Data & Computer Communications
32
INWK 6111 Lec 5 Chapter 5 4/25/2023
Scrambling techniques: 1
Coding schemes to remove
constant voltages (thus enabling
synchronization)
Bipolar with 8-zeros substitution
B8ZS
High Density Bipolar-3 zeros
HDB3
33
Based on/from William Stalling’s Data & Computer Communications
33
Scrambling techniques: 2
Use scrambling to replace sequences
that would produce constant voltage
A filling sequence must
produce enough transitions to synchronize
be recognized by the receiver and be
replaced by the original sequence
be the same length as the original signal
34
Based on/from William Stalling’s Data & Computer Communications
34
INWK 6111 Lec 5 Chapter 5 4/25/2023
Scrambling techniques : 3
35
Based on/from William Stalling’s Data & Computer Communications
35
Scrambling techniques : 4
B8ZS : 1
Based on Bipolar-Alternate Mark Inversion
If an octet of all zeros is present,
and the last voltage pulse preceding it was positive,
encode as 000+-0-+ (Note 000VB0VB)
and last voltage pulse preceding it was negative,
encode as 000-+0+- (Note (000VB0VB)
V- violation - + 0+-
of alternating 1’s
36
Based on/from William Stalling’s Data & Computer Communications
36
INWK 6111 Lec 5 Chapter 5 4/25/2023
Scrambling techniques : 5
B8ZS : 2
37
Scrambling techniques : 6
High Density Bipolar 3 Zeros
HDB3
Based on bipolar-AMI
String of four zeros changed with one
pulse for an odd # pulses or two pulses
for an even # pulses since last
substitution (V causes voltage on line)
even even
38
INWK 6111 Lec 5 Chapter 5 4/25/2023
Scrambling techniques : 7
B8ZS and HDB3
39
Based on/from William Stalling’s Data & Computer Communications
39
Problem 5.5/5.9
Apply the encoding of Q5.5 to the binary pattern am of 5.9
and sketch the result.
b0 = 0 : bm = (am + bm-1) mod 2
cm = bm – bm-1
am = 0 1 0 0 1 0 1 0 1 1 for m= 0 to 9
40
Based on/from William Stalling’s Data & Computer Communications
40
INWK 6111 Lec 5 Chapter 5 4/25/2023
THE END
Do problems
41
Based on/from William Stalling’s Data & Computer Communications
41