Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
DATA COMMUNICATIONS
Maheen Islam
Encoding Techniques
Digital data, digital signal
Analog data, digital signal
Digital data, analog signal
Analog data, analog signal
Digital Data, Digital Signal
Digital to digital encoding is the representation of
digital information by a digital signal.
Digital signal
Sequence of discrete, discontinuous voltage pulses
Each pulse is a signal element
Signal Spectrum
Lack of high frequencies reduces required bandwidth
Lack of dc component is desirable
Clocking
To determine the beginning and end of each bit position
Synchronizing transmitter and receiver
External clock
Error detection
Can be built in to signal encoding
Signal interference and noise immunity
Some codes are better than others in the presence of
noise
Cost and complexity
Higher signal rate (& thus data rate) lead to higher
costs
Some codes require signal rate greater than data rate
Types of Digital to Digital Encoding
Unipolar
Unipolar
All signal elements have same sign (positive or negative)
Uses only one level of voltage
Polar
One logic state represented by positive voltage the
other by negative voltage
Polar encoding uses two levels (positive and
negative) of amplitude
Types of Polar Encoding
Nonreturn to Zero-Level (NRZ-L)
Two different voltages for 0 and 1 bits
Voltage constant during bit interval
no transition I.e. no return to zero voltage
More often, negative voltage for one value and
positive for the other
+ve = the bit is 0,-ve=1 bit
The signal is dependent upon the state of the bit
Nonreturn to Zero Inverted (NRZ-I)
Cons
Presence of dc component
Lack of synchronization capability
Biphase
Manchester
Transition in middle of each bit period
Midbit Transition serves as clock and data
Low to high represents binary one
High to low represents binary zero
Used by IEEE 802.3 Ethernet LAN
Differential Manchester
Midbit transition is clocking only
The bit representation is shown by the inversion/noninversion
at the beginning of the bit
Transition at start of a bit period represents zero
No transition at start of a bit period represents one
Note: this is a differential encoding scheme
Used by IEEE 802.5 token ring LAN
Manchester and Diff. Manchester Encoding
Disadvantages
At least one transition per bit time
May have as many as twice
Max modulation rate is twice than for NRZ
The bandwidth is greater required
Biphase Pros
Synchronization on mid bit transition (self clocking)
No dc component
Error detection
Absence of expected transition can be used to detect errors
Class Task
For the bit stream of 0100110100 draw the
waveform for Manchester and Differential
Manchester.
Manchester Encoding
Differential Manchester Encoding
Bipolar
Disadvantages
•A long string of 0s in case of bipolar AMI and long string of 1s in
case of Pseudoternary is still a problem.
•Receiver of multilevel binary signal requires to distinguish
between three levels of signaling instead of just two in NRZ.
Class Task
For the bit stream of 01001110 draw the
waveform for Bipolar AMI. Assume the most recent
preceding 1 bit has a negative voltage.
Solution
B8ZS
Commonly used in North America
Bipolar With 8 Zeros Substitution
Based on bipolar-AMI
Provides synchronization of long strings of 0s.
Difference is whenever eight or more consecutive 0s are encountered
The solution is: to force artificial signal changes within the 0 string,
violations.
Anytime eight 0s occur in succession, this introduces changes in the
pattern based on the polarity of the previous 1
If previous 1 is +ve, 8 0s : 0 0 0 + - 0 - +
When receiver finds 2 consecutive + ve charges surrounding 3
0s,then the pattern is violation, not an error.
If previous 1 is -ve, 8 0s : 0 0 0 - + 0 + -
The pattern of violations is the same but with inverted polarities.
B8ZS Encoding
Example
Using B8ZS, encode the bit stream
10000000000100. Assume that the polarity of the
first 1 is positive .
Class Task
Using B8ZS, encode the bit stream
10100000000010. Assume that the polarity of
the first 1 is negative .
HDB3
High Density Bipolar 3 Zeros
Europe and Japan
Based on bipolar-AMI
The problem of synchronizing strings of consecutive 0s
is solved differently.
Changes into the bipolar-AMI pattern every time four
consecutive 0s are encountered.
The pattern of violation is based on the polarity of
the previous 1 bit
Unlike B8ZS,HDB3 looks at the number of 1s that have
occurred in the bit stream since the last substitution
Rules
When the number of 1s since the last substitution is
odd: the violation is in the place of the fourth
consecutive 0
If the polarity of the previous bit was +ve, the violation is +ve.
When the number of 1s since the last substitution is
even: the violation is in the places of both the first
and 4th consecutive 0s
If the polarity of the previous bit was +ve, both violations are
-ve.
If the polarity of the previous bit was -ve, both violations are
+ve.
HDB3 Encoding
Example
Using HDB3, encode the bit stream
10000000000100.Assume that the number of 1s so far
is odd and the first 1 is positive.
Digital Data, Analog Signal
Public telephone system
300Hz to 3400Hz
Use modem (modulator-demodulator)
Carrier
Phase
coherent
Differential PSK
Types of modulation
Amplitude
Frequency
Phase
Analog
Modulation
Techniques
Amplitude Modulation
Frequency Modulation
Phase Modulation
Required Reading
Stallings chapter 5