CH 2 (Data Communication Principles)
CH 2 (Data Communication Principles)
The successful transmission of data depends principally on two factors: the quality of the signal being
transmitted and the characteristics of the transmission medium.
Data transmission occurs between transmitter and receiver over some transmission medium.
Transmission media may be classified as guided or unguided. In both cases, communication is in the
form of electromagnetic waves. With guided media, the waves are guided along a physical path;
examples of guided media are twisted pair, coaxial cable, and optical fiber. Unguided media, also called
wireless, provide a means for transmitting electromagnetic waves but do not guide them; examples are
propagation through air, vacuum, and seawater.
Transmission Terminology:
simplex
one direction
Signals are transmitted in only one direction; one station is transmitter and the other is
receiver.
• e.g. television
half duplex
either direction, but only one way at a time
both stations may transmit, but only one at a time
• e.g. police radio (Walky-talky)
full duplex
both directions at the same time
both stations may transmit simultaneously, and the medium is carrying signals in both
directions at the same time
• e.g. telephone
Signal: A signal can be defined as a function of one or more variables in time or frequency, which
conveys information on the nature generally about the state or behavior of a physical phenomenon. The
signal is the response of a system. E.g. Speech signal as a function of time
The signal is a function of time, but it can also be expressed as a function of frequency; that is, the signal
consists of components of different frequencies. It turns out that the frequency domain view of a signal
is more important to an understanding of data transmission than a time domain view.
Analog signal
• the signal intensity varies in a smooth fashion over time
• Continuous time signals
• Examples like (naturally occurring) music and voice
Digital signal
• the signal intensity maintains a constant level for some period of time and then
abruptly changes to another constant level
• Discrete time signals that are in the form of either 1 or 0
• Common Format
• High immunity to interference
• Increased functional bandwidth
• Easier and efficient to multiplex several digital signals
• Storage relatively easier and inexpensive
• Increased system complexity
Periodic signal
• pattern repeated over time (Above Digital signal is periodic)
Aperiodic signal
• pattern not repeated over time (Above analog signal is Aperiodic)
Er. Nabendra Shrestha College of Applied Business
BIM II Semester
Data Communication and Computer Networks
Chapter 2: Data Communication Principles
The sine wave is the fundamental periodic signal. The general sine wave can be written as:
s(t) = A sin(2πft + )
A general sine wave can be represented by three parameters:
Peak amplitude (A) –
the maximum value or strength of the signal over time; typically measured in volts
is the height of the wave above or below a given reference point
Frequency (f) –
The rate [in cycles per second, or Hertz (Hz)] at which the signal repeats. An equivalent
parameter is the period (T) of a signal, so T = 1/f
phase () –
measure of relative position in time within a single period of a signal
A change in phase can be any number of angles between 0 and 360 degrees
In practice, an electromagnetic signal will be made up of many frequencies. It can be shown, using a
discipline known as Fourier analysis, that any signal is made up of components at various frequencies, in
which each component is a sinusoid. By adding together enough sinusoidal signals, each with the
appropriate amplitude, frequency, and phase, any electromagnetic signal can be constructed.
Spectrum: The range of frequencies that a signal spans from minimum to maximum. In previous page, it
extends from f to 3f.
Bandwidth – The absolute value of the difference between the lowest and highest frequencies of a
signal or width of a spectrum. For fig. c, Bandwidth is 3f – f = 2f
If a signal includes a component of zero frequency, it is a direct current (dc) or constant component.
y(t) y(f)
5V 5V
Analog Data:
Digital Data:
as generated by terminals, computers, and other data processing equipment and then
converted into digital voltage pulses for transmission
uses two constant (dc) voltage levels, one level for binary 1 and one level for binary 0
bandwidth depends on data rate (The greater the bandwidth of the signal, the more
faithfully it gets a digital pulse stream at the receiver)
In a communications system, data are propagated from one point to another by means of
electromagnetic signals. Both analog and digital signals may be transmitted on suitable transmission
media.
In Analog transmission:
the signals that are in either analog or digital form are propagated by means of continuously
varying electromagnetic wave i.e. analog signal over a variety of media, depending on
spectrum; examples are wire media, such as twisted pair and coaxial cable; fiber optic cable;
and unguided media, such as atmosphere or space propagation.
doesn’t concerned with the content of the signal
for a long distance transmission, amplifiers are used to boost the energy in signal but it also
boost the noise components that distorts the desired signal
Analog Voice signals are converted into analog electromagnetic signals by telephone.
Digital data are converted into analog using a modem (modulator/demodulator) by modulating the
digital data on some carrier frequency
In digital transmission:
Sequence of voltage pulses i.e. Digital signal is transmitted over a wire medium;
Both analog signals and digital data from source are converted into digital form.
Analog data can converted to digital using a codec (coder-decoder), which takes an analog signal
that directly represents the voice data and approximates that signal by a bit stream.
Digital data can be directly represented by digital signals.
A digital signal can be transmitted only a limited distance before attenuation, noise, and other
impairments endanger the integrity of the data. To achieve greater distances, repeaters are
used. A repeater receives the digital signal, recovers the pattern of 1s and 0s, and retransmits a
new signal. Thus the attenuation is overcome.
Er. Nabendra Shrestha College of Applied Business
BIM II Semester
Data Communication and Computer Networks
Chapter 2: Data Communication Principles
Digital technology
o Continuous drop in cost and size of digital circuits in VLSI , ULSI form as compared to
Analog equipments
Data Integrity
o Digital signals are less susceptible to noise and repeaters are used instead of amplifiers,
so maintains data integrity
Capacity Utilization
o Easier to multiplex several digital signals
Security and Privacy
o Encryption technique can be used
Integration
o All signals in different format (audio, video or text) are integrated into a common format
of 1 and 0.
Transmission Impairments:
In any communication system, the signal that is transmitted from the transmitter is different to the
signal that is received by the receiver through a medium. This is because of Transmission Impairments.
For Analog signals, these impairments can degrade the signal quality.
For Digital signals, bit errors may be introduced, such that a binary 1 is transformed into a binary 0 or
vice versa.
Most significant impairments are
Attenuation and Attenuation distortion
For any long distance transmission medium, the strength of a signal falls off with
increase in distance
Three considerations for receiver to detect signal with less attenuation
• The signal must have sufficient strength so that the electronic circuitry in the
receiver to detect the signal
• The signal power must maintain a level sufficiently higher than noise to be
received without error.
• Third, attenuation varies increasingly with frequency.
The first and second problems are dealt with by increasing signal strength and the use of
amplifiers or repeaters.
The third problem is particularly noticeable for analog signals. To overcome this
problem, equalizing attenuation techniques are available across a band of frequencies
and to use amplifiers that amplify high frequencies more than lower frequencies.
For digital signals, the content of the signal is concentrated near fundamental
frequency, so can be detected at the receiver
Distortion (delay)
Certain change or scaling of amplitude and phase of different frequency components of
input signals is called distortion
Linear Distortion- no new frequency components are produced at the output
Non-Linear Distortion- new frequency components are produced at the output
Delay distortion only occurs in guided media
As the velocity of propagation of a signal through a guided medium varies with
frequency, for a band limited signal, the velocity tends to be highest near the center
frequency and fall off toward the two edges of the band. Thus various frequency
components of a signal will arrive at the receiver at different times, resulting in phase
shifts between the different frequencies. This effect is called delay distortion
Delay distortion is particularly critical for digital data, because some of the signal
components of one bit position will spill over into other bit positions, causing
Intersymbol Interference (ISI). This is a major limitation to maximum bit rate over a
transmission channel. ISI is produced within the system not from the external source
Equalizing technique can be used to eliminate delay distortion
Noise:
Unwanted signal that adds up with the message signal (desired signal) and degrade the
signal
Major factor to degrade the performance of communication system
Noise can be further divided as:
• Thermal Noise:
Due to random motion of charge carriers in electronic devices
Is uniformly distributed across the frequency spectrum, so referred to as
white noise
Is a function of temperature
In any device or conductor, The amount of thermal noise:
N = kTB (Watt)
k = Boltzmann’s Constant = 1.3803 x 10 J/ K T = Temperature (0K ) and B = Bandwidth (Hz)
-23 0
In Watt/Hz, N0 = kT
In dBW/Hz, N0 = 10 Log(kT)
• Intermodulation Noise:
When signals at different frequencies share the common transmission
medium, noise signals are produced at a frequency i.e. either the sum or
difference of those frequencies or multiple of those frequencies and the
result is Intermodulation Noise.
Produced because of non linearity in Transmitter and receiver
(component malfunction) and in transmission system by using excessive
signal strength
• Crosstalk:
unwanted coupling between signal paths
the phenomenon in which signal transmitted on one circuit or a channel
of transmission system creates an undesirable effect in other circuit or
channel
E.g.
Electrical coupling between nearby twisted pairs
Receiving of unwanted signals by microwave antennas
Cross conversation in telephone
• Impulse noise:
Non-continuous
Sudden scaling of amplitude i.e. noise spikes for short duration and of
relatively high amplitude.
Mainly generated due to external electromagnetic disturbances, such as
lightning, and faults and flaws in the communications system
the primary source of error in digital data communication
Channel Capacity:
The maximum rate at which data can be transmitted over a communication medium is called
Channel Capacity. It depends upon data rate, bandwidth, noise and error rate. For a reliable
communication system design, for limited bandwidth, data rate should be high and error rate should be
low.
Nyquist Bandwidth:
For a noise free channel, data rate is proportional to the bandwidth of the signal.
Nyquist states that “if the rate of signal transmission is 2B, then a signal with frequencies no
greater than B is sufficient to carry the signal rate”.
Conversely “given a bandwidth of B, the highest signal rate that can be carried is 2B.”
i.e. C = 2B C in bps and B in Hz
E.g. for Voice Channel, B = 4000 Hz, so C = 8000 bps
With multilevel signaling,
the Nyquist formulation becomes: C = 2B log2 M,
where M is the number of discrete signal or voltage levels.
So, for a given bandwidth, the data rate can be increased by increasing the number of
different signal levels at cost of receiver complexity and limited by noise & other
impairments
For a channel with additive Gaussian white noise, the relationship between channel capacity, channel
bandwidth and the received signal to noise ratio is given by
Capacity C=B Log2(1+SNR)
C = Channel Capacity in bps
B = Bandwidth in Hz
SNR = Signal to Noise Ratio (Ratio of signal
power to Noise power) = PS/PN In dB, 10 Log10(PS/PN)
SNR detects the output quality of signal
Implication of this theorem is
a) designer can estimate C for required SNR and B for reliable communication
b) for limited channel capacity, designer can trade off between B and SNR: for limited
Bandwidth, SNR can be increase by increasing signal power or if SNR is less, then by
increasing bandwidth, desired channel capacity can be met
For SNR tends to Infinity, Channel capacity becomes infinity. So, this type of channel is referred to as
ideal channel.
With Bandwidth increased, noise power also increased, so SNR decreases.
For voice channel, B= 4KHz, SNR = 104 then Using above formula, C = 4000 Log 2(1+104)
= 4000 (Log(1+104) / Log 2)
= 53.15 Kbps
Let Spectrum of Channel is between 3 MHz to 4 MHz, SNR = 24 dB, C = ?
B = 4 – 3 = 1MHz and SNR(dB) = 10 Log SNR
So, 24 = 10 Log SNR ------ Log SNR =2.4 ------ SNR = 102.4
So, C = 1000000 x (Log (1+102.4)/ Log 2) = 7.97 Mbps
We can also find signalling levels M, using Nyquist theorem, C = 2B Log 2M
Log2M = C/2B = 7.97/2 ----- M = 2(7.97/2) = 15.83 =16 Levels
Expression (Eb/No) is used to determine digital data rates and error rates
= Signal Energy per bit / Noise Power Density (Power = Energy / time)
= Signal Power (Ps) x Tb / kT 1/Tb = data rate (R)
= Ps / kTR
The transmission of a stream of bits from one device to another across a transmission link
involves a great deal of synchronization.
The receiver must know the rate at which bits are being received so that it can sample the line
at appropriate intervals and to determine the value of each received bit.
Two techniques are used—asynchronous and synchronous transmission
Asynchronous Transmission:
Character with start and stop element is 1 frame and when receiver is faster or slower than
transmitter, sampling will be displaced and data incorrectly received or bit out of alignment, the
error is called framing error.
For larger blocks of data, the clock synchronization between transmitter and receiver will
eventually drift out, so framing error can be more severe for large blocks of data. Also more
unnecessary overheads are required. So, to achieve greater efficiency, a different form of
synchronization, known as synchronous transmission, is used.
Synchronous Transmission:
Block of data (containing many bits) is formatted as a frame that includes a starting and an
ending flag, and is transmitted in a steady stream without start and stop codes.
To prevent timing drift between transmitter and receiver, their clocks must be synchronized.
o By providing a separate clock line between transmitter and receiver.
o By embedding the clocking information in the data signal.
For digital signals, this can be accomplished with Manchester or differential
Manchester encoding.
For analog signals, the carrier frequency itself can be used to synchronize the
receiver based on the phase of the carrier.
To allow the receiver to determine the beginning and end of a block of data, each block begins
with a preamble bit pattern (8 bits) and generally ends with a postamble bit pattern (8 bits). The
data plus preamble, postamble, and control fields (containing data link control protocol
information) are called a frame.
Far more efficient than asynchronous
Requires less overhead than asynchronous
1 Frame
Er. Nabendra Shrestha College of Applied Business
BIM II Semester
Data Communication and Computer Networks
Chapter 2: Data Communication Principles
Data Encoding:
Both analog and digital information can be encoded as either analog or digital signals.
Depending upon specific requirements and communication facilities available, encoding is chosen.
Modulation:
Process of encoding a message from a message source in a manner suitable for
transmission. (encoding Low frequency message signal with high frequency carrier signal)
Modulation involves operation on one or more of the three characteristics of a carrier
signal: amplitude, frequency, and phase.
Modulation – In Digital – Shift Keying
ASK is generated by applying the incoming binary data represented in Unipolar form and the
sinusoidal carrier to a product modulator.
Ac cos 2ft
Er. Nabendra College of Applied Business
BIM II Semester
Data Communication and Computer Networks
Chapter 2: Data Communication Principles
Differential PSK
phase shifted relative to previous transmission rather than some reference signal
01 S1 11
S2
E
Z1
1
0 1 t
Multiplexing Techniques:
Multiplexing is technique whereby a number of independent signals can be combined into a composite
signal suitable for transmission over a common channel.
Under the simplest conditions, a medium can carry only one signal at any moment in time
For multiple signals to share a medium, the medium must somehow be divided, giving each signal a
portion of the total bandwidth
The current techniques include frequency division multiplexing, time division multiplexing, and code
division multiplexing
If one device generates data at a faster rate than other devices, then the multiplexor must
either sample the incoming data stream from that device more often than it samples the other
devices, or buffer the faster incoming stream
If a device has nothing to transmit, the multiplexor must still insert something into the
multiplexed stream
So that the receiver may stay synchronized with the incoming data stream, the transmitting
multiplexor can insert alternating 1s and 0s into the data stream