M3Data and Computer Communication- Module 3Notes
M3Data and Computer Communication- Module 3Notes
Module III
Syllabus
Signal Encoding techniques - Digital Data Digital Signals: NRZ, Multilevel binary, Biphase –
Digital Data Analog Signals : ASK, FSK, PSK - Analog Data Digital Signals: Sampling
theorem, PCM, Delta Modulation - Analog Data Analog Signals: AM, FM, PM.
●
Pulse rate:
o also termed as signal rate / baud rate / modulation rate
o Defined as Number of signals or pulses per second.
o BitRate=PulseRate* log2L
Where L number of data levels.
o PulseRate=1/PulseDuration
Baseline Wandering :
In decoding a digital signal, the receiver calculates a running average of the received
signal power. This average is called the baseline. The incoming signal power is evaluated
against this baseline to determine the value of the data element. A long string of Os or 1s can
cause a drift in the baseline (baseline wandering) and make it difficult for the receiver to
decode correctly. A good line coding scheme needs to prevent baseline wandering.
DC Components :
When the voltage level in a digital signal is constant for a while, the spectrum creates
very low frequencies. These frequencies around zero, called DC (direct-current) components,
present problems for a system that cannot pass low frequencies or a system that uses electrical
coupling
Self-synchronization:
To correctly interpret the signals received from the sender, the receiver's bit intervals must
correspond exactly to the sender's bit intervals. If the receiver clock is faster or slower, the bit
intervals are not matched and the receiver might misinterpret the signals. A self-synchronizing
digital signal includes timing information in the data being transmitted. This can be achieved if
there are transitions in the signal that alert the receiver to the beginning, middle, or end of the
pulse.
Q Calculate the pulse rate and bit rate if the Signal has 2 data levels with a pulse duration of
1 ms.
(Ans: 1000 pulses/s,1000bps)
Line coding
Line coding is the process of converting digital data to digital signals. We assume that data,
in the form of text, numbers, graphical images, audio, or video, are stored in computer
memory as sequences of bits .Line coding converts a sequence of bits to a digital signal. At
the sender, digital data are encoded into a digital signal; at the receiver, the digital data are
recreated by decoding the digital signal.
Biphase schemes
● Manchester Encoding
o has transition in middle of each bit period
o low to high ( i.e negative to positive voltage) represents one
o high to low (positive to negative) represents zero
● Differential Manchester Encoding
o If bit is 0,there is transition
o If bit is 1,there is no transition
Block coding :
Block coding normally involves three steps: division, substitution, and combination.
In the division step, a sequence of bits is divided into groups ofm bits. For example, in 4B/5B
encoding, the original bit sequence is divided into 4-bit groups. The heart of block coding
is the substitution step. In this step, we substitute an m-bit group for an n-bit group.For
example, in 4B/5B encoding we substitute a 4-bit code for a 5-bit group. Finally, the n-bit
groups are combined together to form a stream. The new stream has more bits than the
original bits.
In 4B/5B, the 5-bit output that replaces the 4-bit input has no more than one leading zero (left bit)
and no more than two trailing zeros (right bits). So when different groups are combined to make a
new sequence, there are never more than three consecutive bits
The eight binary/ten binary (8B/10B) encoding is similar to 4B/5B encoding except that a
group of 8 bits of data is now substituted by a 10-bit code. It provides greater error detection
capability than 4B/5B. The 8B/10B block coding is actually a combination of 5B/6B and
3B/4B encoding.
Scrambling techniques:
A long sequence of 0s upsets the synchronization. If we can find a way to avoid a long
sequence of 0s in the original stream, we can use bipolar AMI for long distances. We are
looking for a technique that does not increase the number of bits and does provide
synchronization.Scrambling techniques substitute long zero-level pulses with a combination
of other levels to provide synchronization.
Two common scrambling techniques are B8ZS and HDB3.
B8ZS
● In general BnZS scheme: where n consecutive zeroes are replaced by a specific
pattern.
● In B8ZS : Eight consecutive zeroes replaced by sequence 000VB0VB, where “V “
means violates AMI rule .i.e same polarity as the polarity of previous non zero pulse,
“B“ means according to AMI rule .i.e opposite polarity to the previous non zero pulse
HDB3
● Four consecutive level 0 voltages are replaced with 000V or B00V
● 2 different substitutions to maintain even number of non zero pulses
● Rules :
o If the number of non zero pulses after last substitution is odd, substitute with
000V
o If the number of non zero pulses after last substitution is even, substitute with
B00V
Other Schemes
● 2B1Q:
o uses 4 voltage levels, each pulse represent 2 bits
o Multi Level Scheme
In Analog Data To Digital Signal Transmission , analog signal such as one created by a
microphone or camera are converted to digital data. After the digital data are created
(digitization), digital to digital encoding schemes are used to convert the digital data to a
digital signal.
Digitization is conversion of analog data into digital data. The analog to digital
conversion is done using a codec (coder-decoder) . The two techniques used are pulse code
modulation and delta modulation.
Pulse Code Modulation (PCM)
Each PAM sample is approximated by being quantized in to 16 levels; each sample then
represented by 4 bits. PCM starts with a continuous-time, continuous-amplitude (analog)
signal , from which a digital signal is produced. On reception, the process is reversed to
reproduce the analog signal.By quantizing the PAM pulse, the original signal is now only
approximated and cannot be recovered exactly. This effect is known as quantizing error or
quantizing noise .
Delta Modulation
● With delta modulation, an analog input is approximated by a staircase function that
moves up or down by one quantization level (δ) at each sampling interval (Ts). The
behavior of staircase function is binary: At each sampling time, the function moves up
or down a constant amount δ. 1 is generated if the staircase function is to go up
during the next interval; and 0 is generated otherwise.
The modulator is used at the sender site to create a stream of bits from an
analog signal.The modulator builds a staircase signal against which the analog signal
is compared. The process records the small positive or negative changes, called delta
δ. If the delta is positive, the process records a 1; if it is negative, the process records a
0. The modulator, at each sampling interval, compares the value of the analog signal
with the last value of the staircase signal.If the amplitude of the analog signal is
larger, the next bit in the digital data is 1; otherwise, it is 0. The output of the
comparator, however, also makes the staircase itself.
Demodulator takes the digital data and, using the staircase maker and the
delay unit, creates the analog signal.The created analog signal, however, needs to pass
through a low-pass filter for smoothing.
Adaptive DM : the value of δ is not fixed; it changes according to the amplitude of the
analog signal.
Advantages of DM over PCM
● Quantization error is much less than that for PCM
● Less complex in implementation when compared to PCM
Q Describe any two modulation techniques used in codecs.
Hint: Analog to digital: Pulse Code Modulation (PCM) & Delta modulation
Q Analyse PCM & DM for encoding analog signals that represent digital data?
Bandwidth :
● B=(1+d) * S
▪ Where B is Bandwidth ,S is signal rate
▪ d is value between 0 and 1 ;depends on modulation & filtering process
Q We have an available bandwidth of 100 kHz which spans from 200 to 300 kHz. What are
the carrier frequency and the bit rate if we modulated our data by using ASK with d
=1.(taking r=1)
B=(1+d) * S…..... (eqn 1)
S=N * (1/r)… .......... (eqn 2)
from eqn 1: 100=(1+1)*S
therefore S= 50 Baud
from eqn 2: 50=N*(1/1)
therefore N=50Kbps
Binary Frequency Shift Keying
● Frequency of the modulated signal is constant for the duration of one signal element
but changes for the next signal element if element changes.
● 2 binary values represented by 2 different frequencies
● Resulting signal:
● Bandwidth of BFSK
o B=(1+d)*S + 2∆f
▪ Where B is Bandwidth ,S is signal rate
▪ d is value between 0 and 1
▪ 2∆f is the difference between 2 frequencies
Analog-to-analog conversion
Analog-to-analog conversion, or analog modulation, is the representation of analog
information by an analog signal. Analog-to-analog conversion can be accomplished in three
ways: amplitude modulation (AM), frequency modulation (FM), and phase modulation (PM).
Amplitude Modulation
In AM transmission, the carrier signal is modulated so that its amplitude varies with the
changing amplitudes of the modulating signal. The frequency and phase of the carrier
remain the same; only the amplitude changes to follow variations in the information
The total bandwIdth required for AM can be determined from the bandwidth of the audio signal:
BAM =2B.
Frequency Modulation
In FM transmission, the frequency of the carrier signal is modulated to follow the
changing voltage level (amplitude) of the modulating signal. The peak amplitude and phase
of the carrier signal remain constant, but as the amplitude of the information signal
changes, the frequency of the carrier changes correspondingly.The total bandwidth required
for FM can be determined from the bandwidth of the audio signal:
BFM =2(1 + β)B.
Phase Modulation
In PM transmission, the phase of the carrier signal is modulated to follow the changing
voltage level (amplitude) of the modulating signal. The peak amplitude and frequency
of the carrier signal remain constant, but as the amplitude of the information signal
changes, the phase of the carrier changes correspondingly. It can proved mathematically
that PM is the same as FM with one difference. In FM, the instantaneous change in the carrier
frequency is proportional to the amplitude of the modulating signal; in PM the instantaneous
change in the carrier frequency is proportional to the derivative of the amplitude of the
modulating signal.
1. Find the Bandwidth for a signal transmitting at 12 Mbps for QPSK. The value of
d=0.
2. Encode the given bit stream using NRZ-I. 100010001111
3. With a neat Sketch discuss the various steps involved in PCM.
4. Given the bit pattern 101110001. Encode the stream using BFSK and QPSK.
5. Explain the analog modulation techniques briefly.
6. Give the significance of delta modulation over pulse code modulation during the
process of transforming analog data in to digital signal
7. Show the equivalent analog sine-wave pattern of the bit string 00110101 using
amplitude shift keying, frequency shift keying andphase shift keying
8. For the bit stream 11000110010,sketch the wave form for each of the code of
NRZ-I.NRZ-L, Bipolar-AMI, Pseudoternary, Manchester, Differential Manchester.
9. Explain the modulation technique used in Asymmetric Digital Subscriber Line
(ADSL) and cable modems
10. State Sampling theorem. With help of suitable diagrams, explain the process of
transforming analog data in to digital signal using Pulse Code Modulation technique.