DCN Module II
DCN Module II
Module – II
Syllabus:
Data and signals, Analog Signals, Digital Signals - Transmission Impairments, Data Rate Limits: Channel
Capacity, Nyquist Bit Rate, Shannon Capacity, Performance parameters - Bandwidth, Throughput, Delay
& Jitter.
Digital-To-Digital Conversion: Line Coding Schemes: Unipolar, Polar, Bipolar - Block Coding,
Scrambling, Analog-To-Digital Conversion: Pulse Code Modulation, Delta Modulation - Digital-To-
Analog Conversion: ASK, FSK, PSK.
DATA COMMUNICATION
• Data Communication is a process of exchanging data or information
• In case of computer networks this exchange is done between two devices over a
transmission medium.
• This process involves a communication system which is made up of hardware and
software. The hardware part involves the sender and receiver devices and the
intermediate devices through which the data passes. The software part involves certain
rules which specify what is to be communicated, how it is to be communicated and
when. It is also called as a Protocol.
1|Page
IT Department, TIST
IT203 Data Communication: Module II 2021
4. Jitter: It is the variation in the packet arrival time. Uneven Jitter may affect the
timeliness of data being transmitted
2|Page
IT Department, TIST
IT203 Data Communication: Module II 2021
Communication model
Two devices communicate with each other by sending and receiving data. The data can
flow between the two devices in the following ways.
1. Simplex
2. Half Duplex
3. Full Duplex
(1) Simplex
In Simplex, communication is unidirectional
Only one of the devices sends the data and the other one only receives the data.
Example: in the above diagram: a CPU sends data while a monitor only receives data.
In half duplex both the stations can transmit as well as receive but not at the same time.
When one device is sending other can only receive and vice-versa (as shown in figure
above.)
Example: A walkie-talkie.
3|Page
IT Department, TIST
IT203 Data Communication: Module II 2021
Example: mobile phones
Review Questions: -
1. Differentiate between data & information. What are the different forms in
which data can be represented?
2. What are the characteristics of data communication?
3. What are the components of a data communication system?
4|Page
IT Department, TIST
IT203 Data Communication: Module II 2021
ANALOG SIGNAL
An analog signal has infinitely many levels of intensity over a period of time.
As the wave moves from value A to value B, it passes through and includes
an infinite number of values along its path as it can be seen in the figure
below.
A simple analog signal is a sine wave that cannot be further decomposed
into simpler signals.
5|Page
IT Department, TIST
IT203 Data Communication: Module II 2021
A sine wave is characterized by three parameters:
1. Peak Amplitude
2. Frequency
3. Phase
(1) Frequency
Frequency refers to the number of cycles completed by the wave in one second.
Period refers to the time taken by the wave to complete one second.
6|Page
IT Department, TIST
IT203 Data Communication: Module II 2021
(2) Phase
Phase describes the position of the waveform with respect to time (specifically
relative to time 0).
Phase indicates the forward or backward shift of the waveform from the axis
It is measured in degrees or radian
The figure above shows the sine waves with same amplitude and frequency but
different phases
7|Page
IT Department, TIST
IT203 Data Communication: Module II 2021
Example1. A wave has a frequency of 100hz. Its period(T) is given by T = 1/ F = 1/ 100 = 0.01
sec Example2. A wave completes its one cycle in 0.25 seconds. Its frequency is given by F = 1 /
T = 1 / 0.25 = 4 Hz.
WAVELENGTH
The wavelength of a signal refers to the relationship between frequency (or period) and
propagation speed of the wave through a medium. The wavelength is the distance a signal travels
in one period. It is given by
Wavelength = Propagation Speed X Period
OR
Wavelength =Propagation Speed X (1/ Frequency )
8|Page
IT Department, TIST
IT203 Data Communication: Module II 2021
9|Page
IT Department, TIST
IT203 Data Communication: Module II 2021
decomposition gives a combination of sine waves with continuous frequencies.
For data communication a simple sine wave is not useful, what is used is a
composite signal which is a combination of many simple sine waves.
According to French Mathematician, Jean Baptist, any composite signal is a
combination of simple sine waves with different amplitudes and frequencies
and phases.
Composite signals can be periodic or non-periodic.
A periodic composite signal can be decomposed into a series of signals
with discrete frequencies.
A non-periodic signal when decomposed gives a combination of sine waves
with continuous frequencies.
10 | P a g e
IT Department, TIST
IT203 Data Communication: Module II 2021
DIGITAL SIGNAL
Information can also be explained in the form of a digital signal.
A digital signal is a signal that has discrete values.
The signal will have value that is not continuous.
Voltage Level
11 | P a g e
IT Department, TIST
IT203 Data Communication: Module II 2021
Example: Consider a digital Signal with four levels, how many bits are required
per level?
Answer: Number of bits per level = Log2L = Log24 = 2 Hence, 2 bits are required
per level for a signal with four levels.
Bit Rate
It is the number of bits transmitted in one second.
It is expressed as bits per second (bps).
Baud Rate
It is the rate of Signal Speed, i.e the rate at which the signal changes.
A digital signal with two levels ‘0‘ & ‘1‘ will have the same baud rate and bit rate & bit rate.
The diagram below shows three signal of period (T) 1 second
a) Signal with a bit rate of 8 bits/ sec and baud rate of 8 baud/sec
b) Signal with a bit rate of 16 bits/ sec and baud rate of 8 baud/sec
c) Signal with a bit rate of 16 bits/ sec and baud rate of 4 baud/sec
12 | P a g e
IT Department, TIST
IT203 Data Communication: Module II 2021
TYPES OF CHANNELS
Each composite signal has a lowest possible (minimum) frequency and a highest
possible (maximum) frequency. From the point of view of transmission, there are two types
of channels:
a) Low pass Channel
Baseband Transmission
The signal is transmitted without making any change to it (ie. Without modulation)
In baseband transmission, the bandwidth of the signal to be transmitted has to be less
13 | P a g e
IT Department, TIST
IT203 Data Communication: Module II 2021
than the bandwidth of the channel.
Ex. Consider a Baseband channel with lower frequency 0Hz and higher frequency
100Hz, hence its bandwidth is 100 (Bandwidth is calculated by getting the difference
between the highest and lowest frequency).
We can easily transmit a signal with frequency below 100Hz, such a channel whose
bandwidth is more than the bandwidth of the signal is called Wideband channel
Logically a signal with frequency say 120Hz will be blocked resulting in loss of
information, such a channel whose bandwidth is less than the bandwidth of the signal is
called Narrowband channel
14 | P a g e
IT Department, TIST
IT203 Data Communication: Module II 2021
REVIEW QUESTIONS
15 | P a g e
IT Department, TIST
IT203 Data Communication: Module II 2021
ATTENUATION
➢ Attenuation results in loss of energy. When a signal travels through a medium, it loses
some of its energy in overcoming the resistance of the medium.
➢ The electrical energy in the signal may be converted to heat.
➢ To compensate for this loss, amplifiers are used to amplify the signal.
➢ Figure below shows the effect of attenuation and amplification.
16 | P a g e
IT Department, TIST
IT203 Data Communication: Module II 2021
The decibel (dB) measures the relative strengths of two signals or one signal at two different points.
Note that the decibel is negative if a signal is attenuated and positive if a signal is amplified.
Variables PI and P2 are the powers of a signal at points 1 and 2, respectively
Example 1: Suppose a signal travels through a transmission medium and its power is reduced to
one-half. This means that P2 = ~ PI' In this case, the attenuation (loss of power) can be calculated
as
Example 2
A signal travels through an amplifier, and its power is increased 10 times. This means that
P2=1OP1 In this case, the amplification (gain of power) can be calculated as
DISTORTION
Distortion means that the signal changes its form or shape. Distortion can occur in a composite signal
made of different frequencies. Each signal component has its own propagation speed (see the next
section) through a medium and, therefore, its own delay in arriving at the final destination.
Differences in delay may create a difference in phase if the delay is not exactly the same as the
period duration. In other words, signal components at the receiver have phases different from what
they had at the sender. The shape of the composite signal is therefore not the same. Figure below
17 | P a g e
IT Department, TIST
IT203 Data Communication: Module II 2021
shows the effect of distortion on a composite signal.
Distortion changes the shape of the signal as shown below
NOISE
Noise is another cause of impairment. Several types of noise, such as thermal noise, induced noise,
crosstalk, and impulse noise, may corrupt the signal. Thermal noise is the random motion of
electrons in a wire which creates an extra signal not originally sent by the transmitter. Induced noise
comes from sources such as motors and appliances. These devices act as a sending antenna, and
the transmission medium acts as the receiving antenna. Crosstalk is the effect of one wire on the
other. One wire acts as ascending antenna and the other as the receiving antenna. Impulse noise is a
spike (a signal with high energy in a very short time) that comes from power lines, lightning, and so
on.
➢ Noise is any unwanted signal that is mixed or combined with the original signal during
transmission.
➢ Due to noise the original signal is altered and signal received is not same as the one sent.
18 | P a g e
IT Department, TIST
IT203 Data Communication: Module II 2021
REVIEW QUESTIONS
19 | P a g e
IT Department, TIST
IT203 Data Communication: Module II 2021
The maximum rate at which data can be transmitted over a communication channel under
given conditions is referred as the channel capacity.
Four important parameters are related in the evaluation of channel capacity.
➢ Data rate: The rate at which data can be transmitted. Measured in bits per second
➢ Bandwidth: The bandwidth of the transmitted signal. Measured in cycles per second
(Hz).
➢ Noise: The average level of unwanted signals over communication path. Expressed as the
ratio between signal and noise.
➢ Error rate: The rate at which error can occur.
b) A Noisy Channel
➢ A realistic channel that has some noise.
➢ The Shannon Capacity formulated by Claude Shannon gives the bit rate for a
Noisy Channel
20 | P a g e
IT Department, TIST
IT203 Data Communication: Module II 2021
Where,
Example What is the maximum bit rate of a noiseless channel with a bandwidth of 5000 Hz
transmitting a signal with two signal levels.
Solution: The bit rate for a noiseless channel according to Nyquist Bit rate can be calculated as
follows: BitRate = 2 x Bandwidth x Log2 L = 2 x 5000 x log2 2 =10000 bps
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
Bit Rate =2 x 3000 x log2 2 =6000 bps
Shannon Capacity
The Channel capacity (in cycles per second) is given by Shannon’s theorem. The Shannon
Capacity defines the theoretical maximum bit rate for a noisy channel
21 | P a g e
IT Department, TIST
IT203 Data Communication: Module II 2021
Where,
Here the SNR ratio assumes only white noise (thermal noise) where as other noise like impulse
noise, attenuation noise and delay noise are not taken into account. Hence the actual value of channel
capacity differs from the estimated value
Shannon Capacity for calculating the maximum bit rate for a noisy channel does not consider the
number of levels of the signals being transmitted as done in the Nyquist bit rate.
Example: Calculate the bit rate for a noisy channel with SNR 300 and bandwidth of 3000Hz
Solution: The bit rate for a noisy channel according to Shannon Capacity can be calculated as
follows: Capacity=bandwidth X log2 (1 +SNR) = 3000 x log2 (1 + 300) = 3000 x log2 ( 301) =
3000 x 8.23 = 24,690bps
REVIEW QUESTIONS
22 | P a g e
IT Department, TIST
IT203 Data Communication: Module II 2021
• Bandwidth
• Throughput
• Latency (Delay)
• Bandwidth – Delay Product
• Jitter
Bandwidth
Bandwidth is characterized as the measure of data or information that can be transmitted in a
fixed measure of time. The term can be used in two different contexts with two distinctive estimating
values. In the case of digital devices, the bandwidth is measured in bits per second(bps) or bytes per
second. In the case of analogue devices, the bandwidth is measured in cycles per second, or Hertz (Hz).
“Bandwidth” means “Capacity” and “Speed” means “Transfer rate”.
Bandwidth in Hertz: It is the range of frequencies contained in a composite signal or the range of
frequencies a channel can pass. For example, let us consider the bandwidth of a subscriber telephone
line as 4 kHz.
Bandwidth in Bits per Seconds: It refers to the number of bits per second that a channel, a link, or
rather a network can transmit. For example, we can say the bandwidth of a Fast Ethernet network is a
maximum of 100 Mbps, which means that the network can send 100 Mbps of data.
Relationship
There is an explicit relationship between the bandwidth in hertz and bandwidth in bits per seconds.
Basically, an increase in bandwidth in hertz means an increase in bandwidth in bits per second. The
relationship depends on whether we have baseband transmission or transmission with modulation.
23 | P a g e
IT Department, TIST
IT203 Data Communication: Module II 2021
Throughput
Throughput is the number of messages successfully transmitted per unit time. It is controlled by
available bandwidth, the available signal-to-noise ratio and hardware limitations. The terms
‘throughput’ and ‘bandwidth’ are often thought of as the same, yet they are different. Bandwidth is the
potential measurement of a link, whereas throughput is an actual measurement of how fast we can send
data.
Throughput is a measure of how fast we can actually send data through a network. It is usually
measured in the unit of bits per second(bps), which has evolved to bytes per second(Bps), kilobytes
per second(KBps), megabytes per second(MBps) and gigabytes per second(GBps). For example, we
may have a link with a bandwidth of 1 Mbps, but the devices connected to the end of the link may
handle only 200 kbps. This means that we cannot send more than 200 kbps through this link.
Latency (Delay)
The latency or delay defines how long it takes for an entire message to completely arrive at the
destination from the time the first bit is sent out from the source. We can say that latency is made of
four components: propagation time, transmission time, queuing time and processing delay.
Latency =propagation time +transmission time +queuing time + processing delay
Propagation Time
Propagation time measures the time required for a bit to travel from the source to the destination. The
propagation time is calculated by dividing the distance by the propagation speed.
Propagation time = Distance /Propagation speed
The propagation speed of electromagnetic signals depends on the medium and on the frequency of
the signal. For example, in a vacuum, light is propagated with a speed of 3x108mfs. It is lower in air;
it is much lower in cable.
24 | P a g e
IT Department, TIST
IT203 Data Communication: Module II 2021
Transmission time
In data communications we don't send just 1 bit, we send a message. The first bit may take a time equal
to the propagation time to reach its destination; the last bit also may take the same amount of time.
However, there is a time between the first bit leaving the sender and the last bit arriving at the receiver.
The first bit leaves earlier and arrives earlier; the last bit leaves later and arrives later. The time required
for transmission of a message depends on the size of the message and the bandwidth of the channel.
Transmission time =Message size / Bandwidth
Queuing Time
The third component in latency is the queuing time, the time needed for each intermediate or end device
to hold the message before it can be processed. The queuing time is not a fixed factor; it changes with
the load imposed on the network. When there is heavy traffic on the network, the queuing time
increases. An intermediate device, such as a router, queues the arrived messages and processes them
one by one. If there are many messages, each message will have to wait.
Bandwidth – Delay Product
Bandwidth and delay are two performance measurements of a link.
The bandwidth-delay product defines the number of buts that can fill the links
Case 1: Assume a link is of bandwidth 1bps and the delay of the link is 5s. Let us find the bandwidth-
delay product in this case. From the image, we can say that this product 1 x 5 is the maximum number
of bits that can fill the link. There can be close to 5 bits at any time on the link.
25 | P a g e
IT Department, TIST
IT203 Data Communication: Module II 2021
Case 2: Assume a link is of bandwidth 3bps. From the image, we can say that there can be a maximum
of 3 x 5 = 15 bits on the line. The reason is that, at each second, there are 3 bits on the line and the
duration of each bit is 0.33s.
For both examples, the product of bandwidth and delay is the number of bits that can fill the link. This
estimation is significant in the event that we have to send data in bursts and wait for the
acknowledgement of each burst before sending the following one. To utilize the maximum ability of
the link, we have to make the size of our burst twice the product of bandwidth and delay. Also, we
need to fill up the full-duplex channel. The sender ought to send a burst of data of (2*bandwidth*delay)
bits. The sender at that point waits for the receiver’s acknowledgement for part of the burst before
sending another burst.
The amount: 2*bandwidth*delay is the number of bits that can be in transition at any time.
Jitter
Another performance issue that is related to delay is jitter. Jitter is a problem if different packets of
data encounter different delays and the application using the data at the receiver site is time- sensitive
(audio and video data, for example). If the delay for the first packet is 20 ms, for the second is 45 ms,
and for the third is 40 ms, then the real-time application that uses the packets endures jitter.
26 | P a g e
IT Department, TIST
IT203 Data Communication – Module II 2021
“A band limited signal can be reconstructed exactly if it is sampled at a rate at least twice
the maximum frequency component in it.”
The Nyquist sampling theorem provides a prescription for the nominal sampling interval
required to avoid aliasing. It may be stated simply as follows:
“The sampling frequency should be at least twice the highest frequency contained in
the signal.”
Or in mathematical terms: fs ≥ 2 fc
Where fs is the sampling frequency (how often samples are taken per unit of time or space), and
fc is the highest frequency contained in the signal.
IT Department, TIST 27 | P a g e
IT203 Data Communication – Module II 2021
INTRODUCTION TO SIGNAL ENCODING
Data can be analog or digital, so can be the signal that represents it.
Signal encoding is the conversion from analog/digital data to analog / digital signal.
SYNCHRONIZATION
In order to receive the signals correctly, the receivers bit intervals must correspond exactly to
the senders bit intervals.
The clock frequency of the transmitter and receiver should be the same.
If the clock frequency at the receiver is slower or faster than the bit intervals are not matched
and the received signal is different than the transmitted one.
IT Department, TIST 28 | P a g e
IT203 Data Communication – Module II 2021
In the above figure, the receiver clock frequency is twice that of the transmitter frequency.
Hence the received data is totally different than the transmitted one
To avoid this, receiver and transmitter clocks have to be synchronized.
To achieve this the transmitted digital signal should include timing information which forces
synchronization
IT Department, TIST 29 | P a g e
IT203 Data Communication – Module II 2021
DIGITAL DATA TO DIGITAL SIGNAL
Data can be either digital or analog. We also said that signals that represent data can also
be digital or analog. In this section, we can represent digital data by using digital signals.
Line Coding/Encoding
➢ It is the process of converting Digital data into digital signal. In other words, it is
converting of binary data (i.e. A sequence of bits) into digital signal (i.e. a sequence of
discrete, discontinuous voltage pulses)
➢ Line coding is the process of converting digital data to digital signals.
➢ Data are, 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.
IT Department, TIST 30 | P a g e
IT203 Data Communication – Module II 2021
Characteristics of Line Codes
In part a of the figure, one data element is carried by one signal element (r = 1). In part b of the figure, we
need two signal elements (two transitions) to carry each data element (r = 1/2 ), In part c of the figure, a
signal element carries two data elements (r = 2).
Finally, in part d, a group of 4 bits is being carried by a group of three signal elements (r = 4/3)
IT Department, TIST 31 | P a g e
IT203 Data Communication – Module II 2021
Where, N is the data rate (in bps); c is the case factor, which varies for each case; S is the number of
signal elements; and r is the previously defined factor.
Bandwidth: the digital signal that carries information is non periodic. We also showed that the
bandwidth of a non-periodic signal is continuous with an infinite range. However, most digital signals
we encounter in real life have a bandwidth with finite values. In other words, the bandwidth is
theoretically infinite, but many of the components have such small amplitude that they can be ignored.
The effective bandwidth is finite.
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 0s 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.
IT Department, TIST 32 | P a g e
IT203 Data Communication – Module II 2021
DC Components: When the voltage level in a digital signal is constant for a while, The spectrum creates
very low frequencies (results of Fourier analysis). These frequencies around zero, called DC (direct-
current) components, present of this component are problems for a system that cannot pass low
frequencies or a system that uses electrical coupling (via a transformer). For example, a telephone line
cannot pass frequencies below 200 Hz. For these systems, we need a scheme with no DC component.
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. If the
receiver's clock is out of synchronization, these points can reset the clock. In a figure shows the situation
in which the receiver has shorter bit duration. The sender sends 10110001, while the receiver receives
110111000011.
Built-in Error Detection: It is desirable to have a built-in error-detecting capability in the generated
code to detect some of or all the errors that occurred during transmission. Some encoding schemes have
this capability to some extent.
Immunity to Noise and Interference: Another desirable code characteristic is a code I that is immune
to noise and other interferences. Some encoding schemes have this capability.
Complexity: A complex scheme is more costly to implement than a simple one. For example, a scheme
that uses four signal levels is more difficult to interpret than one that uses only two levels.
IT Department, TIST 33 | P a g e
IT203 Data Communication – Module II 2021
UNIPOLAR
All signal levels are either above or below the time axis.
NRZ - Non Return to Zero scheme is an example of this code. The signal level does not
return to zero during a symbol transmission.
IT Department, TIST 34 | P a g e
IT203 Data Communication – Module II 2021
POLAR
NRZ-voltages are on both sides of the time axis.
Polar NRZ scheme can be implemented with two voltages. E.g. +V for 1 and -V for 0.
Non-Return-to-Zero (NRZ) In polar NRZ encoding, we use two levels of voltage amplitude. We
can have two versions of polar NRZ: NRZ-L and NRZ-I.
The figure also shows the value of r, the average baud rate, and the bandwidth. In the first variation,
NRZ-L (NRZ-Level), the level of the voltage determines the value of the bit. In the second
variation, NRZ-I (NRZ-Invert), the change or lack of change in the level of the voltage determines
the value of the bit. If there is no change, the bit is 0; if there is a change, the bit is 1.
In NRZ-L the level of the voltage determines the value of the bit. In NRZ-I the inversion or the lack
of inversion determines the value of the bit.
NRZ-L and NRZ-J both have an average signal rate ofNI2 Bd.
NRZ-L and NRZ-J both have a DC component problem.
IT Department, TIST 35 | P a g e
IT203 Data Communication – Module II 2021
IT Department, TIST 36 | P a g e
IT203 Data Communication – Module II 2021
Polar – RZ
The Return to Zero (RZ) scheme uses three voltage values. +, 0, -.
Each symbol has a transition in the middle. Either from high to zero or from low to zero
More complex as it uses three voltage level. It has no error detection capability
IT Department, TIST 37 | P a g e
IT203 Data Communication – Module II 2021
IT Department, TIST 38 | P a g e
IT203 Data Communication – Module II 2021
Every symbol has a level transition in the middle. But the level at the beginning of the
symbol is determined by the symbol value. One symbol causes a level change the other
does not.
The minimum bandwidth of Manchester and differential Manchester is 2 times that of
NRZ.
In bipolar encoding, we use three levels: positive, zero, and negative.
IT Department, TIST 39 | P a g e
IT203 Data Communication – Module II 2021
40 | P a g e
IT Department, TIST
IT203 Data Communication – Module II 2021
REVIEW QUESTIONS
1. Explain the different ways of converting data to signal and vice versa.
2. Explain in detail what is signal encoding
3. Write short note on NRZ-L, NRZ-I, AMI and Manchester encoding
4. Differentiate between NRZ-L, NRZ-I, AMI, Manchester and Differential
Manchester encoding
41 | P a g e
IT Department, TIST
IT203 Data Communication – Module II 2021
Block Coding
Block coding can give us this redundancy and improve the performance of line coding. In general, block
coding changes a block of m bits into a block of n bits, where n is larger than m. Block coding is referred
to as an mB/nB encoding technique. The slash in block encoding (for example, 4B/5B) distinguishes
block encoding from multilevel encoding (for example, 8B6T), which is written without a slash. Block
coding normally involves three steps: division, substitution, and combination. In the division step, a
sequence of bits is divided into groups of m 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. The procedure for block coding is given below.
It normally involves three steps: division, substitution, and combination. In the division step,a sequence
of bits is divided into groups of m-bits. In the substitution step, we substitute an m-bit group for an n-bit
group. Finally, the n-bit groups are combined together to form a stream which has more bits than the
original bits.
42 | P a g e
IT Department, TIST
IT203 Data Communication – Module II 2021
At the receiver, the NRZ-I encoded digital signal is first decoded into a stream of bits and then decoded
again to remove the redundancy bits.
Drawback – Though 4B/5B encoding solves the problem of synchronization,it increases the signal rate of
[Link],it does not solve the DC component problem of NRZ-L.
43 | P a g e
IT Department, TIST
IT203 Data Communication – Module II 2021
A group of 8 bits can have 2^8 different combinations while a group of 10 bits can have 2^10 different
combinations. This means that there are 2^10-2^8=768 redundant groups that are not used for 8B/10B
encoding and can be used for error detection and disparity check.
Thus, this technique is better than 4B/5B because of better error-checking capability and better
synchronization.
44 | P a g e
IT Department, TIST
IT203 Data Communication – Module II 2021
Scrambling
Scrambling is a technique that does not increase the number of bits and does provide synchronization.
Problem with technique like Bipolar AMI(Alternate Mark Inversion) is that continuous sequence of zero’s
create synchronization problems one solution to this is Scrambling.
45 | P a g e
IT Department, TIST
IT203 Data Communication – Module II 2021
Note – Both figures (left and right one) are correct, depending upon last non-zero voltage signal of previous
data sequence (i.e., sequence before current data sequence “100000000”).
HDB3(High-densitybipolar3-zero) –In this technique four consecutive zero-level voltages are replaced
with a sequence “000V” or “B00V”.
Rules for using these sequences:
• If the number of nonzero pulses after the last substitution is odd, the substitution pattern will be
“000V”, this helps maintaining total number of nonzero pulses even.
• If the number of nonzero pulses after the last substitution is even, the substitution pattern will be
“B00V”. Hence even number of nonzero pulses is maintained again.
Explanation – After representing first two 1’s of data we encounter four consecutive [Link] our last
substitutions were two 1’s(thus number of non-zero pulses is even).So,we substitute four zeros with “B00V”.
46 | P a g e
IT Department, TIST
IT203 Data Communication – Module II 2021
Encoding analog data into digital signals - PCM, DM
Assume, we have an analog signal such as one created by a microphone or camera. A digital signal
is superior to an analog signal. The tendency today is to change an analog signal to digital data. In
this section we describe two techniques, pulse code modulation and delta modulation. After the
digital data are created (digitization), we can use one of the techniques to convert the digital data
to a digital signal.
PCM is a general scheme for transmitting analog data in a digital and binary way,
independent of the complexity of the analog waveform. With PCM all forms of analog data
like video, voice, music and telemetry can be transferred.
To obtain PCM from an analog waveform at the source (transmitter), the analog signal
amplitude is sampled at regular time intervals. The sampling rate (number of samples per
second), is several times the maximum frequency of the analog waveform. The amplitude of
the analog signal at each sample is rounded off to the nearest binary level (quantization).
The number of levels is always a power of 2 (4, 8, 16, 32, 64, ...). These numbers can be
represented by two, three, four, five, six or more binary digits (bits) respectively.
At the destination (receiver), a pulse code demodulator converts the binary numbers back into
pulses having the same quantum levels as those in the modulator. These pulses are further
processed to restore the original analog waveform.
47 | P a g e
IT Department, TIST
IT203 Data Communication – Module II 2021
Sampling
• We convert the continuous time signal (analog) into the discrete time signal (digital).
• Pulses from the analog-signal are sampled every Ts sec where Ts is the sample-interval or period.
• The inverse of the sampling-interval is called the sampling-frequency (or sampling-rate).
• This method is sometimes referred to as PAM (pulse amplitude modulation).
• Sampling-frequency is given by
fs = 1/Ts
• Three sampling methods are:
1) Ideal Sampling: This method is difficult to implement.
2) Natural Sampling
A high-speed switch is turned ON for only the small period of time when the sampling occurs.
The result is a sequence of samples that retains the shape of the analog-signal.
3) Flat Top Sampling
The most common sampling method is sample and hold. Sample and hold method create flat-top
samples.
48 | P a g e
IT Department, TIST
IT203 Data Communication – Module II 2021
Sampling Rate
• According to Nyquist theorem,
“The sampling-rate must be at least 2 times the highest frequency, not the bandwidth“.
i) If the analog-signal is low-pass, the bandwidth and the highest frequency are the same value
ii) If the analog-signal is bandpass, the bandwidth value is lower than the value
of the maximum frequency
49 | P a g e
IT Department, TIST
IT203 Data Communication – Module II 2021
Quantization
• The sampled-signal is quantized.
• Result of sampling is a set of pulses with amplitude-values b/w max & min amplitudes of the signal.
Four steps in quantization:
1) We assume that the original analog-signal has amplitudes between Vmin & Vmax.
2) We divide the range into L zones, each of height Δ(delta).
• In the chart ,
1) First row is normalized-PAM-value for each sample.
2) Second row is normalized-quantized-value for each sample.
50 | P a g e
IT Department, TIST
IT203 Data Communication – Module II 2021
3) Third row is normalized error (which is diff. b/w normalized PAM value & quantized values).
4) Fourth row is quantization code for each sample.
5) Fifth row is the encoded words (which are the final products of the conversion).
Quantization Level
• Let L = number of levels.
• The choice of L depends on
→ range of the amplitudes of the analog-signal and
→ how accurately we need to recover the signal.
• If the signal has only 2 amplitude values, we need only 2 quantization-levels.
If the signal (like voice) has many amplitude values, we need more quantization-levels.
• In audio digitizing, L is normally chosen to be 256. In video digitizing, L is normally thousands.
• Choosing lower values of L increases the quantization-error.
Quantization Error
• Quantization-error is the difference b/w normalized PAM value & quantized values
• Quantization is an approximation process.
• The input values to the quantizer are the real values.
The output values from the quantizer are the approximated values.
• The output values are chosen to be the middle value in the zone.
• If the input value is also at the middle of the zone, Then, there is no error.
Otherwise, there is an error.
• Companding means reducing the instantaneous voltage amplitude for large values.
51 | P a g e
IT Department, TIST
IT203 Data Communication – Module II 2021
Expanding means increasing the instantaneous voltage amplitude for small values.
• It has been proved that non-uniform quantization effectively reduces the SNRdB of quantization.
Encoding
• The quantized values are encoded as n-bit code word.
• In the previous example,
A quantized value 2 is encoded as 010.
A quantized value 5 is encoded as 101.
• Relationship between number of quantization-levels (L) & number of bits (n) is given by n=log2L or
2n=L
• The bit-rate is given by:
PCM decoder
52 | P a g e
IT Department, TIST
IT203 Data Communication – Module II 2021
In ideal sampling, pulses from the analog signal are sampled. This is an ideal sampling
method and cannot be easily implemented.
In natural sampling, a high-speed switch is turned on for only the small period of time when
the sampling occurs. The result is a sequence of samples that retains the shape of the analog
signal.
The most common sampling method, called sample and hold, however, creates flat-top
samples by using a circuit.
The simplest is delta modulation. PCM finds the value of the signal amplitude for each
sample; DM finds the change from the previous sample.
Note that there are no code words here; bits are sent one after another.
53 | P a g e
IT Department, TIST
IT203 Data Communication – Module II 2021
Modulator
The modulator is used at the sender site to create a stream of bits from an analog signal.
The process records the small positive or negative changes, called delta δ. If the delta is
positive, the process records a I; if it is negative, the process records a 0. However, the process
needs a base against which the analog signal is compared.
The modulator builds a second signal that resembles a staircase. Finding the change is then
reduced to comparing the input signal with the gradually made staircase signal.
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 O. The output of the comparator, however, also makes the
staircase itself. If the next bit is I, the staircase maker moves the last point of the staircase signal
δ up; it the next bit is 0, it moves it δ down. Note that we need a delay unit to hold the staircase
function for a period between two comparisons.
54 | P a g e
IT Department, TIST
IT203 Data Communication – Module II 2021
Demodulator
The 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
A better performance can be achieved if the value of 0 is not fixed. In adaptive delta modulation,
the value of 0 changes according to the amplitude of the analog signal.
Quantization Error
It is obvious that DM is not perfect. Quantization error is always introduced in the process. The
quantization error of DM, however, is much less than that for PCM.
55 | P a g e
IT Department, TIST
IT203 Data Communication – Module II 2021
56 | P a g e
IT Department, TIST
IT203 Data Communication – Module II 2021
Digital modulation is used to convert digital data to analog signal.
It can be accomplished in the following ways:
1. ASK
2. FSK
3. PSK
4. QAM
Carrier Signal
The value of d is between 0 and 1. This means that the bandwidth can be expressed as shown,
where 5 is the signal rate and the B is the bandwidth.
57 | P a g e
IT Department, TIST
IT203 Data Communication – Module II 2021
Example
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 =I?
Solution
The middle of the bandwidth is located at 250 kHz. This means that our carrier frequency can be atfe =250
kHz. We can use the formula for bandwidth to find the bit rate (with d =1 and r =1).
Example
We have an available bandwidth of 100 kHz which spans from 200 to 300 kHz. What should be
the carrier frequency and the bit rate if we modulated our data by using FSK with d =1?
Solution
This problem is similar to Example 5.3, but we are modulating by using FSK. The midpoint of
the band is at 250 kHz. We choose 2Δf to be 50 kHz; this means
58 | P a g e
IT Department, TIST
IT203 Data Communication – Module II 2021
PHASE SHIFT KEYING (PSK)
Phase shift keying (PSK) is a method of transmitting and receiving digital signals in which
the phase of a transmitted signal is varied to convey information.
Both amplitude and frequency remain constant as the phase changes.
The simplest from of PSK has only two phases, 0 and 1.
If the phase of the wave does not change, then the signal state stays the same (low or high).
If the phase of the wave changes by 180 degrees, that is, if the phase reverses, then the signal
state changes (from low to high or from high to low)
59 | P a g e
IT Department, TIST
IT203 Data Communication – Module II 2021
Quadrature PSK (QPSK)
The simplicity of BPSK enticed designers to use 2 bits at a time in each signal element, thereby
decreasing the baud rate and eventually the required bandwidth. The scheme is called quadrature PSK or
QPSK because it uses two separate BPSK modulations; one is in-phase, the other quadrature (out-of-
phase).
Example
Find the bandwidth for a signal transmitting at 12 Mbps for QPSK. The value of d =O.
Solution
For QPSK, 2 bits is carried by one signal element. This means that r =2. So the signal rate (baud rate) is
S =N x (lIr) =6 Mbaud. With a value of d =0, we have B =S =6 MHz.
60 | P a g e
IT Department, TIST
IT203 Data Communication – Module II 2021
QAM
The concept of Quadrature Amplitude Modulation (QAM) involves use of two carriers, one for
phase and the other for quadrature, with different amplitude levels for each carrier.
It is a combination of ASK & PSK.
The above Figure (a) shows the simplest 4-QAM scheme (four different signal element types) using a
unipolar NRZ signal to modulate each carrier. This is the same mechanism we used for ASK (OOK). Part
b shows another 4-QAM using polar NRZ, but this is exactly the same as QPSK. Part c shows another
QAM-4 in which we used a signal with two positive levels to modulate each of the two carriers. Finally,
Figure (d) shows a 16-QAM constellation of a signal with eight levels, four positive and four negative.
The minimum bandwidth required for QAM transmission is the same as that required for ASK and PSK
transmission. QAM has the same advantages as PSK over ASK.
61 | P a g e
IT Department, TIST
IT203 Data Communication – Module II 2021
REVIEW QUESTIONS
62 | P a g e
IT Department, TIST
IT 203 Data Communication – Module II 2021
63
IT Department, TIST
IT 203 Data Communication – Module II 2021
GUIDED MEDIA
➢ Guided Transmission media uses a cabling system that guides the data signals
along a specific path
➢ Guided media also known as Bounded media, which are those that provide a
conduit from one device to another, include twisted-pair cable, coaxial cable,
and fiber-optic cable.
➢ Out of these twisted-pair cable, coaxial cable transport signals in the form of
electric signals and fiber-optic cable transport signals in the form of light.
➢ Types:
1. Twisted-Pair Cable
i. Unshielded Twisted Pair Cable (UTP)
ii. Shielded Twisted Pair Cable (STP)
2. Coaxial Cable
3. Fiber-Optic Cable
64
IT Department, TIST
IT 203 Data Communication – Module II 2021
➢ Each pair would consist of a wire used for the +ve data signal and a wire
used for the —ve data signal. Any noise that appears on +ve/—ve wire of the
pair would occur on the other wire.
➢ Because the wires are opposite polarities, they are 180 degrees out of phase
(180 degree phases or definition of opposite polarity) when the noise appears
on both wires, it cancels or nulls itself out at the receiving used.
➢ Twisted pair cables are most effectively used in a system that uses a balanced
line method of transmission.
Unshielded Twisted Pair Cable (UTP)& Shielded Twisted Pair Cable (STP)
(UTP)
(STP)
Cables with the shield are called shielded twisted pair and commonly abbreviated STP.
Cables without a shield are called unshielded twisted pair or UTP.
Twisting the wires together results in characteristics impedance for the cable.
UTP or unshielded twisted pair cable is used on Ethernet
UTP cables are used for Ethernet cabling where 4 twisted pair cables (a total of 8 wires are
used)
65
IT Department, TIST
IT 203 Data Communication – Module II 2021
66 | P a g e
IT Department, TIST
IT 203 Data Communication – Module II 2021
Optical fiber consists of thin glass fiber that can carry information at frequencies
in the visible light spectrum.
The typical optical fiber consists of a very narrow strand of glass called the cladding.
A typical core diameter is 62.5 microns.
Typically cladding has a diameter of 125 minors. Coating the cladding is a
protective coating consisting of plastic, it is called the jacket.
The device generating the message has it in electromagnetic form (electrical signal);
this has to be converted into light (i.e. optical signal) to send it on optic fiber cable.
The process of converting light to electric signal is done on the receiving side.
Advantages:
1. Small size and light weight: The size of the optical fibers is very small. Therefore a
large number of optical fibers can fit into a cable of small diameter.
2. Easy availability and low cost: The material used for the manufacturing of optical
fibers is “Silica glass”. This material is easily available. So the optical fibers cost lower
than the cables with metallic conductors.
3. No electrical or electromagnetic interference: Since the transmission takes place in
the form of light rays the signal is not affected due to any electrical or electromagnetic
Interference.
4. Large Bandwidth: As the light rays have a very high frequency in GHz range, the
bandwidth of the optical fiber is extremely large.
5. Other advantages: - No cross talk inside the optical fiber cable. Signal can be sent up
to 100 times faster.
67 | P a g e
IT Department, TIST
IT 203 Data Communication – Module II 2021
2. Using mode i.e. various paths light rays usually take to pass through the cable. Figure
depicts fiber optic cable cross section. As shown all the fiber optic cable consists of two
main layers. They are core(inner most) and cladding.
68 | P a g e
IT Department, TIST
IT 203 Data Communication – Module II 2021
In Single mode light takes single path through the fiber core. Step index means sharp step
in the index of refraction between core and cladding interface. This indicates that in step
index, core and cladding have their own constant index of refractions N1 and N2
respectively. The step index cable cross section is depicted in the figure
69 | P a g e
IT Department, TIST
IT 203 Data Communication – Module II 2021
In multimode light follows multiple paths through the fiber core. In graded index, index
of refraction is not constant but vary smoothly across the diameter of the core. Index of
refraction is increasing as one goes near the center while decreasing near outer core edges.
Index of refraction is maximum at the center of the core. Index of refraction is constant
for cladding part of the fiber.
Based on above, there are three types of fiber optic cable.
• multimode step index
• single mode step index
• multimode graded index
Multimode step index fiber cable is widely used due to benefits of large size. It is easier
to make and hence less expensive. It is used for shorter distances at very low pulse
frequencies. The figure-3 above depicts graded index cable cross section.
70 | P a g e
IT Department, TIST
IT 203 Data Communication – Module II 2021
71 | P a g e
IT Department, TIST
IT 203 Data Communication – Module II 2021
72 | P a g e
IT Department, TIST
IT 203 Data Communication – Module II 2021
73 | P a g e
IT Department, TIST
IT 203 Data Communication – Module II 2021
RADIO WAVES:
MICROWAVES
➢ Electromagnetic waves having frequencies between 1 and 300 GHz are called microwaves.
➢ Microwaves are unidirectional; when an antenna transmits microwaves they can
be narrowly focused. This means that the sending and receiving antennas need to
be aligned. The unidirectional property has an obvious advantage. A pair of
antennas can be aligned without interfering with another pair of aligned antennas.
➢ Microwaves propagation is line-of-sight. Since the towers with the mounted
antennas needs to be in direct sight of each other, towers that are far apart need to
be very tall, the curvature of the earth as well as other blocking obstacles do not
74 | P a g e
IT Department, TIST
IT 203 Data Communication – Module II 2021
allow two short towers to communicate using microwaves, Repeaters are often
needed for long distance communication very high frequency microwaves cannot
penetrate walls.
➢ Parabolic dish antenna and horn antenna are used for this means of transmission
INFRARED
➢ Infrared signals with frequencies ranges from 300 GHz to 400 GHz can be
used for short range communication.
➢ Infrared signals, having high frequencies, cannot penetrate walls. This helps to
prevent interference between one system and another. Infrared Transmission in
one room cannot be affected by the infrared transmission in another room.
➢ Infrared band, has an excellent potential for data transmission. Transfer digital
data is possible with a high speed with a very high frequency. There are number
of computer devices which are used to send the data through infrared medium e.g.
keyboard mice, PCs and printers. There are some manufacturers provide a special
part called the IrDA port that allows a wireless keyboard to communicate with a
PC
75 | P a g e
IT Department, TIST
COMPARISON BETWEEN TWISTED PAIR CABLE, CO-AXIAL CABLE AND
OPTICAL FIBER
IT Department, TIST 76 | P a g e