Professional Documents
Culture Documents
One of the major concerns of the physical layer lies in moving data in the form of
electromagnetic signals across a transmission medium. Whether we are collecting
numerical statistics from another computer, sending animated pictures from a design
workstation or causing a bell to ring at a distant control center, we are working with the
transmission of data across network connections.
Generally, the data usable to a person or application are not in a form that can be
transmitted over a network. For example, we cannot roll up a photograph, insert it into a
wire, and transmit it across town. We can, however, transmit an encoded description of
the photography. Instead of sending the actual photograph, we can use an encoder to
create a stream of 1s and 0s that tell the receiving device how to reconstruct the image of
the photograph.
We cannot even send 1s and 0s across network links. They must be further
converted to a form that transmission media can accept. Transmission media work by
conducting energy along a physical path. So a data stream of 1s and 0s must be turned
into energy in the form of electromagnetic signals. So, in order to transmit the data, it
must be converted into electromagnetic signals.
The light that our eyes can see is actually part of the electromagnetic spectrum.
This visible part of the electromagnetic spectrum consists of the colors that we see in a
rainbow - from reds and oranges, through blues and purples. Each of these colors actually
corresponds to a different wavelength of light.
The electromagnetic spectrum includes, from longest wavelength to shortest:
radio waves, microwaves, infrared, optical, ultraviolet, X-rays, and gamma rays.
A diagram on the next page shows a complete range of Electromagnetic spectrum
from long radio waves to very short gamma rays.
Wavelength
Wavelength is the distance between one wave crest (top) to the next. Waves in the
electromagnetic spectrum vary in size from very long radio waves i.e. the size of
buildings, to very short gamma rays smaller than the size of the nucleus of an atom.
Analog Signals
Analog signals can be classified as simple or composite. A simple analog signal, a sine
wave, cannot be decomposed into simpler signals. A composite signal is composed of
multiple sine waves.
Sine Wave
The sine wave is the most fundamental form of a periodic analog signal. Visualized as a
A sine wave
s(t) = A sin ( 2 π f t + Φ )
Peak Amplitude
The peak amplitude of a signal represents the absolute value of its highest intensity,
proportional to the energy it carries. For electric signals, peak amplitude is normally
measured in volts.
Amplitude
So, Frequency and Period are inverse of each other. Period and Frequency is shown is the
following figure
We know that frequency is the relationship of a signal to time and that the
frequency of a wave is the number of cycles it completes per second. But another way to
look at frequency is as a measurement of the rate of change. Electromagnetic signals are
oscillating waveforms; that is, they fluctuate continuously and predictably above and
below a mean energy level. A 40-Hz signal has one-half the frequency of an 80-Hz
signal; it completes one cycle in twice the time of the 80-Hz signal, so each cycle also
takes twice as long to change from its lowest to its highest voltage levels. Frequency,
therefore, though described in cycles per second (hertz), is a general measurement of the
rate of change of a signal with respect to time. Not included
If the value of a signal changes over a very short span of time, its frequency is
high. If it changes over a long span of time, its frequency is low.
Phase
The term phase describes the position of the waveform relative to time zero. If we think
of the wave as something that can be shifted backward or forward along the time axis,
phase describes the amount of that shift. It indicates the status of the first cycle. So, phase
describes the position of the waveform relative to time zero.
Phase is measured in degrees or radians [360 ○ is 2π radian and 180○ is π radian; 1○
is 2π/360 radian or 1○ is π/180 radian, and 1 radian is 360/(2π)]. A phase shift of 360 ○
corresponds to a shift of a complete period; a phase shift of 180 ○ corresponds to a shift of
one-half of a period; and a phase shift of 90 ○ corresponds to a shift of one-quarter of a
period.
Diagram on the next page shows phases.
Example
A sine wave is offset one-sixth of a cycle with respect to time zero. What is the phase in
degrees and radians?
Solution
We know that one complete cycle is 360○. Therefore, 1/6 cycle is
Composite Signals
Uptill now, more focus was towards simple signals (sine waves). Although a simple sine
wave signal is very useful for some purposes, it is useless for data communications. We
can send a single sine wave to carry electric energy form one place to another. For
example, the power company sends a single sine wave with a frequency of 60 Hz to
distribute electric energy to our houses and businesses. We can use a single sine wave to
send an alarm to a security center when a burglar opens a door or a window in our house.
Fourier Analysis
In the early 1900s, the French mathematician Jean-Baptiste Fourier showed that any
composite signal is a sum of a set of sine waves of different frequencies, phases, and
amplitudes. In other words, we can write a composite signal as
Let us consider the square wave of the drawn figure with a peak amplitude of A
and a frequency of f (period T).
Square Wave
According to Fourier analysis, we can prove that this signal can be decomposed
into a series of sine waves as shown below.
If we add these three harmonics, we do not get a square wave, we get something
which is close, but not exact. As shown in the following figure. If we need something
close to a square wave, we need to add more harmonics.
Signal corruption
Bandwidth
The range of frequencies that a medium can pass is called its Bandwidth. As no medium
can pass or block all frequencies, the bandwidth normally refers to the range of
frequencies that a medium can pass without losing one-half of the power contained in that
signal.
The bandwidth is a range and is normally referred to as the difference between
two numbers. For example, if a medium can pass frequencies between 1000 and 5000
without losing most of the power contained in this range, its bandwidth is 5000 – 1000 or
4000.
If the bandwidth of a medium does not match the spectrum of a signal, some of
the frequencies are lost. For example, Voice normally has a spectrum of 300 to 3300 Hz
(a bandwidth of 3000 Hz). If we use a transmission line with a bandwidth of 1000 Hz
(between 1500 and 2500 Hz), we lose some frequencies in our voice; it my not even be
recognizable.
So, the bandwidth is a property of a medium. It is the difference between the
highest and the lowest frequencies that the medium can satisfactorily pass.
The figure shows the range of frequencies a medium can pass and the relative
amplitude of the frequencies passed.
Bandwidth
Example
A signal has a spectrum with frequencies between 1000 and 2000 Hz (bandwidth of 1000
Hz). A medium can pass frequencies from 3000 to 4000 Hz (a bandwidth of 1000 Hz).
Can this signal successfully pass through this medium?
Solution
The answer is NO.
Although the signal can have the same bandwidth (1000 Hz), the range does not overlap.
The medium can only pass the frequencies between 3000 and 4000 Hz; the signal is
totally lost.
Example
If a periodic signal is decomposed into five sine waves with frequencies of 100, 300, 500,
700, and 900 Hz, what is the bandwidth?
Draw the spectrum, assuming all components have maximum amplitude of 10 V.
Solution
Let fh be the highest frequency,
fl be the lowest frequency,
and B the bandwidth, then
B = fh - fl
B = 900 – 100
B = 800 Hz
The spectrum has only five spikes, at 100, 300, 500, 700, and 900 shown in the figure
Example
A signal has a bandwidth of 20 Hz. The highest frequency is 60 Hz. What is the lowest
frequency?
Draw the spectrum if the signal contains all integral frequencies of the same amplitude.
Solution
Let fh be the highest frequency, fl be the lowest frequency, and B the bandwidth, then
B = fh - fl
The spectrum contains all integral frequencies shown in the figure above
Digital Signals
In addition to being represented by an analog signal, data can be represented by a digital
signal. For example, a 1 can be encoded as a positive voltage and a 0 as zero voltage.
A digital signal is shown in the following diagram.
A digital signal
Example
A digital signal has a bit rate of 2000 bps. What is the duration of each bit (bit interval)?
Lets assume, that our computer creates 6 bps, i.e. every second, 6 bits are
produced by the computer. One second, we may have 111111, another second 001010,
another second 101010, and so on. We use an encoding method that uses a positive value
to represent 1 and a negative value to represent 0. The diagram shows two signals.
Digital versus Analog
All other cases are between the best and the worst cases. If we need to simulate
this digital signal of data rate 6 bps, sometimes we need to send a signal of frequency 0,
sometimes 1, sometimes 2, and somethimes 3 Hz. So, we need our medium to be able to
pass frequencies of 0 to 3 Hz. In this particular example, our medium should have a
bandwidth of 3 Hz (3 – 0).
On generalizing this simple example, we can find a very simple relationship
between the bit rate and bandwidth. To send, n bps through an analog channel using
above approximation, we need a bandwidth B, such that B = n / 2.
The following table shows how much bandwidth would be required to send 1000
bps using this method.
Bandwidth Requirements
Bit Harmonic Harmonics Harmonics Harmonics
Rate 1 1, 3 1, 3, 5 1, 3, 5, 7
n = 1 Kbps B = 500 Hz B = 2 KHz B = 4.5 KHz B = 8 KHz
n = 10 Kbps B = 5 KHz B = 20 KHz B = 45 KHz B = 80 KHz
n = 100 Kbps B = 50 KHz B = 200 KHz B = 450 KHz B = 800 KHz
The required bandwidth is proportional to the bit rate. If we double the bit rates,
we need to double the bandwidth.
A Low-pass channel has a bandwidth with frequencies between 0 and f. The lower limit
is 0, and the upper limit can be any frequency (including infinity).
A Band-pass channel has a bandwidth with frequencies between f1 and f2.
Digital Transmission
A digital signal theoretically needs a bandwidth between 0 and infinity. The lower limit
i.e. 0 is fixed and the upper limit (infinity) can be relaxed if we accept a limited number
of bandwidth. So, this means that a bandwidth between 0 and f for a low pass signal is
used.
We have low-pass channel only if the medium is dedicated to two devices (point-
to-point) or shared between several devices in time, i.e. in Wired LAN, a cable can be
shared between stations and we can transmit data digitally in this system. So, Digital
transmission needs a low-pass channel.
Analog Transmission
An analog signal normally has a narrower bandwidth than a digital signal with
frequencies between f1 and f2. So, an analog channel requires a band-pass channel. The
bandwidth in analog signal can always be shifted, i.e. we can always shift a signal with a
bandwidth from f1 to f2 to a signal with a bandwidth from f3 to f4 as long as the
bandwidth remains the same.
In this formula, Bandwidth is the bandwidth of the channel. L is the number of signal
levels used to represent data, and Bit Rate is the bit rate in bits per second.
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
Solution
Bit Rate = 2 x 3000 x log22 = 6000 bps
Example
Consider the same noiseless channel, transmitting a signal with four signal levels (for
each level, we send two bits). The maximum bit rate can be calculated as
Solution
Bit Rate = 2 x 3000 x log24 = 12,000 bps
Example
Consider an extremely noisy channel in which the value of the signal-to-noise ratio is
almost zero. In other words, the noise is so strong that the signal is faint. For this channel
the capacity is calculated as
Solution
C = B x log2 (1 + SNR)
C = B x log2 (1 + 0)
C = B x log2 (1)
C=Bx0
C=0
Example
We can calculate the theoretical highest bit rate of a regular telephone line. A telephone
line normally has a bandwidth of 3000 Hz (300 Hz to 3300 Hz). The signal-to-noise ratio
is usually 3162. For this channel the capacity is calculated as
Solution
C = B x log2 (1 + SNR)
C = 3000 x log2 (1 + 3162)
C = 3000 x log2 (3163)
C = 3000 x 11.62
C = 34.860 bps
Example
We have a channel with a 1 MHz bandwidth. The SNR for this channel is 63; what is the
appropriate bit rate and signal level?
Solution
First, we’ll use Shannon formula to find our upper limit
C = B x log2 (1 + SNR)
C = 106 x log2 (1 + 63)
C = 106 x log2 (64)
C = 6 Mbps
Although the Shannon formula gives us 6 Mbps, this is the upper limit. For better
performance we choose something lower, for example 4 Mbps. Then we use the Nyquist
formula to find the number of signal levels.
Now, we’ll use the Nyquist formula to find the number of signal levels.
4 Mbps = 2 x 1 MHz x log 2 L
L=4
Attenuation means loss of energy. When a signal, simple or composite, travels through a
medium, it loses some of its energy so that it can overcome the resistance of the medium.
That is why a wire carrying electrical signals gets warm, if not hot, after a while. Some of
the electrical energy in the signal is converted to heat. To compensate for this loss,
amplifiers are used to amplify the signal. Amplifiers, amplify the attenuated signal.
In order to check whether the signal has lost or gained strength, Decibel (dB) is used to
measure the relative strengths of two signals or a signal at two different points. Decibel
can be negative if a signal is attenuated and positive if a signal is amplified.
Example
Imagine a signal travels through a transmission medium and its power is reduced to half.
This means that P2 = 1/2 P1. In this case, the attenuation (loss of power) can be
calculated as
Solution
10 log10 (P2 / P1) = 10 log10 (0.5 P1 / P1) = 10 log10 (0.5) = 10 (-0.3) = -3 dB
Solution
10 log10 (P2 / P1) = 10 log10 (10 P1 / P1) = 10 log10 (10) = 10 (1) = 10 dB
One reason that we use the decibel to measure the changes in the strength of a signal is
that decibel numbers can be added (or subtracted) when we are talking about several
points instead of just two (cascading).
Example
Consider a signal travels a long distance from point 1 to point 4 as shown in the figure.
The signal is attenuated by the time it reaches point 2. Between points 2 and 3, the signal
is amplified. Again, between points 3 and 4, the signal is attenuated. We can find the
resultant decibel for the signal just by adding the decibel measurements between each set
of points.
Solution
dB = -3 + 7 –3
dB = +1
Distortion means that the signal changes its form or shape. Distortion occurs in a
composite signal, made of different frequencies. Each signal component has its own
propagation speed through a medium and therefore its own delay in arriving at the final
destination.
Signal Measurements
Some measurements used in data communication are Throughput, Propagation Speed,
Propagation Time and Wavelength.
Throughput is the measurement of how fast data can pass through an entity i.e. a point
or a network. If wall is considered as an entity through which bits pass, throughput is the
number of bits that can pass this wall in one second.
Propagation Speed measures the distance a signal or a bit can travel through a medium
in one second. 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 3 x 108 m/s. It is lower in air and much lower in a cable.
Propagation Time measures the time required for a signal (or a bit) to travel from one
point of the transmission medium to another. The propagation time is calculated by
dividing the distance by the propagation speed. This concept is shown in the figure
Wavelength can be calculated given the propagation speed and the period of the signal.