Professional Documents
Culture Documents
Foro 38261 CH 03 Pms
Foro 38261 CH 03 Pms
PART 2
Physical Layer
We start the discussion of the Internet model with the bottom-most layer, the physical
layer. It is the layer that actually interacts with the transmission media, the physical
part of the network that connects network components together. This layer is involved
in physically carrying information from one node in the network to the next. Figure 1
shows the position of the physical layer in the 5-layer Internet model.
Figure 1 Position of the physical layer
Bit-signal
transformation
Bit
synchronization
Circuit
switching
Bit-rate
control
Multiplexing
High-speed
access
Telephone
network
Physical layer
The physical layer has complex tasks to perform. One major task is to provide
services for the data link layer. The data in the data link layer consists of 0s and 1s
organized into frames that are ready to be sent across the transmission medium. This
stream of 0s and 1s must first be converted into another entity: signals. One of the
services provided by the physical layer is to create a signal that represents this stream
of bits.
The physical layer must also take care of the physical network, the transmission
medium. The transmission medium is a passive entity; it has no internal program or
logic for control like other layers. The transmission medium must be controlled by the
physical layer. The physical layer decides on the directions of data flow. The physical
layer decides on the number of logical channels for transporting data coming from different sources.
Services
The physical layer transfers a stream of bits (in the form of a signal) from the sender to
the receiver. The transfer is node-to-node, from one node to the next. The physical layers of the two adjacent nodes provide a logical pipe through which the bits can travel.
Figure 2 shows the general services offered by the physical layer.
Figure 2 Physical layer services
Duties of
physical layer
Bit-signal
transformation
Bit-rate
control
Bit
synchronization
Multiplexing
Circuit
switching
Bit-to-Signal Transformation
The logical pipe under the physical layer is the transmission media (cable or air). Since a
transmission medium cannot carry bits, we need to represent the bits by a signal, electromagnetic energy that can propagate through a medium.
Bit-Rate Control
Although the transmission medium determines the upper limit of the data rate, the
physical layer is the controller. The design of the physical-layer hardware and software
determine the data rate.
Bit-Synchronization
The timing of the bit transfer is crucial in data communications. The physical layer
governs the synchronization of the bits by providing clocking mechanisms that control
both the sender and the receiver.
Multiplexing
Multiplexing is the process of dividing a link, the physical medium, into logical channels for better efficiency. The physical layer, using different techniques, can do this.
Although the medium itself is not actually changed, the result is several channels
instead of one. Multiplexing defined in this section of the text is needed to understand
access methods in later chapters.
Switching
Switching in data communications can be done in several layers. We have circuitswitching, packet-switching, and message switching. Circuit switching, a method that
allows two nodes to have a dedicated link, is mostly a function of the physical layer.
Transmission Media
The physical layer is dependent on the transmission media to carry its bits (in signal
form). Although the transmission media are not actually a part of the physical layer, the
media are controlled by this layer. Media can be guided and unguided. Twisted-pair
cable, coaxial cable, and fiber-optic cables are discussed in the guided media section.
Radio and microwave communication are included in the unguided section.
Telephone Network
Most of the networks today have their beginnings in the telephone network. Telephone
networks have been around for some time and provide voice communication around
the world. When the need for data communication started, the telephone network was
the foundation. Data were transformed into analog signals and sent over the same networks that sent voice. We discuss the telephone network as a prelude to other specific
data networks and also as a good example of a network with the physical layer issues
covered in this part of the book. We also give a brief historical background of the telephone network to understand the reasons for some recent developments such as
LATAs.
Chapters
Part two of the book covers seven chapters. Chapters 3 introduces the concepts and
characteristics of signals as the vehicle for carrying data. Chapters 4 and 5 show how
we can change bits into digital or analog signals. Chapter 6 is about multiplexing, an
important issue due to the improvements in transmission media bandwidth. Although
transmission media are located below the physical layer, it is controlled by the physical layer. We have included the discussion of media in Chapter 7. Chapter 8 discusses
switching, a topic that can be related to several layers. We have, however, discussed
CHAPTER 3
Signals
One of the major concerns of the physical layer lies in moving data in the form of electromagnetic signals across a transmission medium. Whether you 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, you 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, you cannot roll up a photograph, insert it into a wire,
and transmit it across town. You can, however, transmit an encoded description of the photograph. Instead of sending the actual photograph, you can use an encoder to create a stream
of 1s and 0s that tells the receiving device how to reconstruct the image of the photograph.
But even 1s and 0s cannot be sent as such 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.
To be transmitted, data must be transformed to electromagnetic signals.
50 CHAPTER 3 SIGNALS
to value B, it passes through and includes an infinite number of values along its path. A
digital signal, on the other hand, can have only a limited number of defined values, often
as simple as 1 and 0.
The simplest way to show signals is by plotting them on a pair of perpendicular axes.
The vertical axis represents the value or strength of a signal. The horizontal axis represents
the passage of time. Figure 3.1 illustrates an analog and a digital signal. The curve representing the analog signal is passing through an infinite number of points. The vertical lines of the
digital signal, however, demonstrate the sudden jump the signal makes from value to value.
Signals can be analog or digital. Analog signals can have an infinite number of values in
a range; digital signals can have only a limited number of values.
Value
Value
Time
a. Analog signal
Time
b. Digital signal
Sine Wave
The sine wave is the most fundamental form of a periodic analog signal. Visualized as
a simple oscillating curve, its change over the course of a cycle is smooth and consistent, a continuous, rolling flow. Figure 3.2 shows a sine wave. Each cycle consists of a
single arc above the time axis followed by a single arc below it.
Figure 3.2 A sine wave
Value
Time
where s is the instantaneous amplitude, A the peak amplitude, f the frequency, and
the phase. These three characteristics fully describe a sine wave.
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 (see Fig. 3.3).
Figure 3.3 Amplitude
Amplitude
Peak amplitude
Time
52 CHAPTER 3 SIGNALS
1
T = --f
and
Amplitude
Frequency 6 Hz
Six periods in 1 s
1s
Time
T
Period 16 s
Equivalent
1s
Unit
hertz (Hz)
Equivalent
1 Hz
Milliseconds (ms)
103 s
kilohertz (KHz)
103 Hz
Microseconds (s)
106 s
megahertz (MHz)
106 Hz
Nanoseconds (ns)
109 s
gigahertz (GHz)
109 Hz
Picoseconds (ps)
1012 s
terahertz (THz)
1012 Hz
Example 1
Express a period of 100 ms in microseconds, and express the corresponding frequency in
kilohertz.
Solution
Let us first express 100 ms in microseconds. From Table 3.1 we find the equivalent of 1 ms (1 ms
is 103 s) and 1 s (1 s is 106 s). We make the following substitutions:
100 ms = 100 103 s = 100 103 106 s = 105 s
Now we use the inverse relationship to find the frequency, changing hertz to kilohertz (1 Hz is
103 KHz).
1
100 ms = 100 103 s = 101 s
f = ------------ Hz = 10 103 KHz = 102 KHz
1
10
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.
Two Extremes
What if a signal does not change at all? What if it maintains a constant voltage level for the
entire time it is active? In such a case, its frequency is zero. Conceptually, this idea is a simple one. If a signal does not change at all, it never completes a cycle, so its frequency is 0 Hz.
But what if a signal changes instantaneously? What if it jumps from one level to
another in no time? Then its frequency is infinite. In other words, when a signal
changes instantaneously, its period is zero; since frequency is the inverse of period, in
this case, the frequency is 1/0, or infinite (unbounded).
If a signal does not change at all, its frequency is zero. If a signal changes instantaneously, its frequency is infinite.
54 CHAPTER 3 SIGNALS
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.
Phase describes the position of the waveform relative to time zero.
Phase is measured in degrees or radians [360 is 2 rad; 1 is 2/360 rad, and 1 rad
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 (see Fig. 3.5).
Figure 3.5 Relationships between different phases
Amplitude
Amplitude
Time
Amplitude
Time
14 cycle
a. 0
Time
12 cycle
b. 90
c. 180
Example 2
A sine wave is offset one-sixth of a cycle with respect to time zero. What is its phase in degrees
and radians?
Solution
We know that one complete cycle is 360. Therefore, 1/6 cycle is
1
2
A5 f 4 0
s(t) 5 sin (24t 0)
Time
1s
Amplitude
A 10 f 8 0
s(t) 10 sin (28t 0)
10
Time
1s
Amplitude
A 5 f 2 /4
s(t) 5 sin (22t /4)
Time
1s
To show the relationship between amplitude and frequency, we can use what is
called a frequency-domain plot. Figure 3.7 compares the time domain (instantaneous
amplitude with respect to time) and the frequency domain (peak amplitude with respect
to frequency).
The figure shows three signals with varying frequencies. Compare the models
within each pair to see which sort of data each is best suited to convey. All three
signals have a peak amplitude of 5 volts (V). The frequency of the first signal is 0; we
show it in the frequency domain with a spike at frequency 0 and a height of 5 (its
amplitude). The second signal has a frequency of 8, so we show it in the frequency
domain with a spike of height 5 and a frequency of 8. Finally, the third is shown with a
frequency of 16 at the same height. Note that in the frequency domain we can show two
characteristics of a signal with only one spike; the position is the frequency, and the
height is the peak amplitude. The phase of a signal cannot be shown in the frequency
domain; we need another domain that we wont discuss in this book.
An analog signal is best represented in the frequency domain.
56 CHAPTER 3 SIGNALS
Frequency
domain
5
1s
Time
Frequency
Time
Frequency
1s
b. A signal with frequency 8
Time
16
Frequency
1s
c. A signal with frequency 16
Composite Signals
So far, we have focused attention on 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 from 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. In the first case, the
sine wave is carrying energy; in the second, the presence of the signal infers danger.
If we used one single sine wave to convey a conversation over the phone, we
would always hear a buzz; it would make no sense and carry no information. If we sent
one single sine wave to convey data, we would always be sending alternating 1s and 0s,
which does not have any communication value.
A single-frequency sine wave is not useful in data communications; we need to change
one or more of its characteristics to make it useful.
If we want to use a sine wave for communication, we need to change one or more of its
characteristics. For example, when the data to be sent are a 1 bit, we can send a maximum
amplitude; when it is a 0 bit, we can send a minimum amplitude. However, we need to keep
in mind that when we change one or more characteristics of a sine wave, it is no longer a
simple sine wave. Instead, it is a composite signal made of many simple sine waves. A
mere change in the amplitude, frequency, or phase creates a new set of frequencies. Intuitively, change is related to frequency; more change means creating more new frequencies.
When we change one or more characteristics of a single-frequency signal, it becomes a
composite signal made of many frequencies.
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
s(t) = A1 sin (2f1t + 1) + A2 sin (2f2t + 2) + A3 sin (2f3t + 3) + . . .
According to Fourier analysis, any composite signal can be represented as a combination of simple sine waves with different frequencies, phases, and amplitudes.
For example, let us consider the square wave of Figure 3.8 with a peak amplitude
of A and a frequency of f (period T ). According to Fourier analysis, we can prove that
this signal can be decomposed into a series of sine waves as shown below.
Figure 3.8 Square wave
2T
3T
Time
4A
4A
4A
s(t) = ------- sin 2ft + ------- sin [2(3f )t] + ------- sin [2(5f )t] + . . .
3
5
In other words, we have a series of sine waves with frequencies f, 3f, 5f, 7f, . . . and
amplitudes 4A/, 4A/3, 4A/5, 4A/7, and so on. The term with frequency f is dominant and is called the fundamental frequency. The term with frequency 3f is called
the third harmonic, the term with frequency 5f is the fifth harmonic, and so on. To
58 CHAPTER 3 SIGNALS
recreate the complete square wave signal requires all the odd harmonics up to infinity.
For example, if the square wave has a frequency of 5000, the components have
frequencies 5000, 15,000, 25,000, and so on. Figure 3.9 shows three of the harmonics.
Figure 3.9 Three harmonics
Amplitude
A
Time
Of course, if we add these three harmonics, we do not get a square wavewe get
something which is close, but not exact, as shown in Figure 3.10. If we need something
closer to a square wave, we need to add more harmonics.
Figure 3.10 Adding first three harmonics
Time
Frequency Spectrum
The description of a signal using the frequency domain and containing all its components is called the frequency spectrum of that signal. For example, Figure 3.11 shows
the frequency spectrum of a square wave and the frequency spectrum of a signal which
is very close to a square wave (only three harmonics).
3f
5f
7f
9f
11f
13f
nf
3f
5f
frequency. A medium may pass some frequencies and may block or weaken others. This
means that when we send a composite signal, containing many frequencies, at one end
of a transmission medium, we may not receive the same signal at the other end. To
maintain the integrity of the signal, the medium needs to pass every frequency (and also
preserve the amplitude and phase, as we shall see later).
What we must realize is that no transmission medium is perfect. Each medium
passes some frequencies, weakens others, and blocks still others. This means that when
we send our square wave signal through a medium, we get something at the other end
which is not a square wave at all. Figure 3.12 shows the concept.
Figure 3.12 Signal corruption
Transmission medium
Input signal
Output signal
Bandwidth
The range of frequencies that a medium can pass is called its bandwidth. Because 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
60 CHAPTER 3 SIGNALS
and 5000 without losing most of the power contained in this range, its bandwidth is
5000 1000, or 4000.
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.
If the bandwidth of a medium does not match the spectrum of a signal, some of
the frequencies are lost. For example, the square wave signal in Figure 3.8 has a
spectrum that expands to infinity. No transmission medium has such a bandwidth.
This means that passing a square wave through any medium will always deform the
signal. As another 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
(between 1500 and 2500 Hz), we lose some frequencies in our voice; it may not even
be recognizable.
Sometimes people use the term bandwidth with regard to a signal. For example,
they say, This signal has a bandwidth of 1000 Hz. In this case, what they mean
is that the signal has a spectrum with significant frequencies that span 1000 Hz. In
other words, they mean, We need a medium with a bandwidth of 1000 Hz if we
want to send this signal without losing a significant part of it. We can say that today,
people use the term bandwidth for media and signals interchangeably, but it was not
always so.
In this book, we use the term bandwidth to refer to the property of a medium or the
width of a single spectrum.
Figure 3.13 shows the concept of bandwidth. The figure depicts the range of frequencies a medium can pass and the relative amplitude of the frequencies passed. Note
that the media may pass some frequencies above the 5000 and below 1000, but according to the criteria we mentioned before, the amplitudes of those frequencies are less
than those in the middle.
Figure 3.13 Bandwidth
Amplitude
1000
5000
Bandwidth 5000 1000 4000 Hz
Frequency
Example 3
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 a maximum amplitude of 10 V.
Solution
Let fh be the highest frequency, fl the lowest frequency, and B the bandwidth. Then
B = fh fl = 900 100 = 800 Hz
The spectrum has only five spikes, at 100, 300, 500, 700, and 900 (see Fig. 3.14).
10 V
100
300
500
700
900
Frequency
Example 4
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 the lowest frequency, and B the bandwidth. Then
B = fh fl
20 = 60 fl
fl = 60 20 = 40 Hz
The spectrum contains all integral frequencies. We show this by a series of spikes (see Fig. 3.15).
40 41 42
58 59 60
Bandwidth 60 40 20 Hz
fl 40 Hz
fh 60 Hz
Frequency
62 CHAPTER 3 SIGNALS
Example 5
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
faithfully pass through this medium?
Solution
The answer is definitely 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.
Time
Example 6
A digital signal has a bit rate of 2000 bps. What is the duration of each bit (bit interval)?
Solution
The bit interval is the inverse of the bit rate.
1
1
Bit interval = ---------------- = ------------ = 0.000500 s = 0.000500 106 s = 500 s
bit rate 2000
Amplitude
1 s 8 bit intervals
Bit rate 8 bps
0
Time
Bit interval
64 CHAPTER 3 SIGNALS
Analog
Amplitude
1
Amplitude
1
Time
Time
1s
1s
a. Best case, bit rate 6, f 0
Amplitude
Amplitude
1
Time
Time
1s
1s
b. Worst case, bit rate 6, f 3
Let us see if we can simulate any of these patterns by using a single-frequency signal. The best case is 111111 or 000000. We can simulate this case by sending a signal
of frequency zero. The worst case is definitely 101010 or 010101. These are the worst
cases, because there are more changes in this pattern than in any other pattern; with
each succeeding bit there is a change. More change means higher frequency. However,
we can simulate this digital signal by using a single-frequency analog signal with a frequency of 3 Hz, one-half of the bit rate. So we have
Best case:
Worst case:
bit rate = 6
bit rate = 6
frequency = 0
frequency = 3
We can say that all other cases are between the best and the worst cases. We can
simulate other cases with a single frequency of 1 or 2 Hz (using the appropriate phase).
In other words, 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 sometimes 3 Hz. We need our medium to be able to pass frequencies of 0 to 3 Hz. Our
medium needs to have a bandwidth of 3 Hz (3 0).
If we generalize this simple example, we come to a very simple relationship
between the bit rate and bandwidth. To send n bps through an analog channel using the
or
n <= 2B
Table 3.2 shows how much bandwidth we need to send 1000 bps using this method.
Table 3.2 Bandwidth requirements
Bit Rate
Harmonic 1
Harmonics
1, 3
Harmonics
1, 3, 5
Harmonics
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
We want to emphasize the following: In this method as well as others, the required
bandwidth is proportional to the bit rate. If we double the bit rate, we need to double
the bandwidth.
The bit rate and the bandwidth are proportional to each other.
66 CHAPTER 3 SIGNALS
0
Low-pass channel
Amplitude
f1
f2
Band-pass channel
f1
Frequency
Frequency
Digital Transmission
A digital signal theoretically needs a bandwidth between 0 and infinity. The lower limit (0)
is fixed; the upper limit (infinity) can be relaxed if we lower our standards by accepting
a limited number of harmonics. This means a bandwidth between 0 and f for a low-pass
signal.
We have a low-pass channel only if the medium is dedicated to two devices (pointto-point) or shared between several devices in time (not in frequency). For example, in
a wired local area network, a cable can be shared between stations. We can transmit
data digitally in this system.
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. In other words, an analog signal requires a band-pass channel. In
addition, the bandwidth of an analog signal can always be shifted. For example, 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 width of the bandwidth remains the same.
A band-pass channel is more available than a low-pass channel. The bandwidth of
a medium can be divided into several band-pass channels to carry several analog transmissions. For example, in analog cellular telephony, a limited bandwidth is divided
between many telephone users. Each user has a bandwidth between 0 to 30 KHz, with
each signal shifted appropriately.
Analog transmission can use a band-pass channel.
This is not to say that an analog transmission cannot use a low-pass channel; it just
means that it can use the more available band-pass channel. A low-pass channel is a special
case of a band-pass channel with f1 = 0.
In this formula, Bandwidth is the bandwidth of the channel, L is the number of signal
levels used to represent data, and BitRate is the bit rate in bits per second.
68 CHAPTER 3 SIGNALS
Example 7
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:
BitRate = 2 3000 log2 2 = 6000 bps
Example 8
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:
BitRate = 2 3000 log2 4 = 12,000 bps
In this formula, Bandwidth is the bandwidth of the channel, SNR is the signal-to-noise
ratio, and Capacity is the capacity of the channel in bits per second. The signal-to-noise
ratio is the statistical ratio of the power of the signal to the power of the noise. Note that
in the Shannon formula there is no indication of the signal level, which means that no
matter how many levels we use, we cannot achieve a data rate higher than the capacity
of the channel. In other words, the formula defines a characteristic of the channel, not the
method of transmission.
Example 9
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
C = B log2 (1 + SNR) = B log2 (1 + 0) = B log2 (1) = B 0 = 0
This means that the capacity of this channel is zero regardless of the bandwidth. In other
words, we cannot receive any data through this channel.
Example 10
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
C = B log2 (1 + SNR) = 3000 log2 (1 + 3162) = 3000 log2 (3163)
C = 3000 11.62 = 34,860 bps
Example 11
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 use the Shannon formula to find our upper limit.
C = B log2 (1 + SNR) = 106 log2 (1 + 63) = 106 log2 (64) = 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.
4 Mbps = 2 1 MHz log2 L
L=4
Impairment
Attenuation
Distortion
Noise
Attenuation
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
70 CHAPTER 3 SIGNALS
for this loss, amplifiers are used to amplify the signal. Figure 3.21 shows the effect of
attenuation and amplification.
Figure 3.21 Attenuation
Original
Attenuated
Amplified
Amplifier
Point 1
Transmission medium
Point 2
Point 3
Decibel
To show that a signal has lost or gained strength, engineers use the concept of the decibel. The decibel (dB) measures the relative strengths of two signals or a signal at two
different points. Note that the decibel is negative if a signal is attenuated and positive if
a signal is amplified.
dB = 10 log10 (P2 /P1)
Example 12
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
10 log10 (P2/P1) = 10 log10 (0.5P1/P1) = 10 log10 (0.5) = 10(0.3) = 3 dB
Example 13
Imagine a signal travels through an amplifier and its power is increased ten times. This means
that P2 = 10 P1. In this case, the amplification (gain of power) can be calculated as
10 log10 (P2/P1) = 10 log10 (10P1/P1) = 10 log10 (10) = 10 (1) = 10 dB
Example 14
One reason that engineers 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). In Figure 3.22 a signal travels a long distance from point 1 to point 4. The signal is attenuated by the time it reaches point 2. Between points 2 and 3, the signal is amplified.
3 dB
7 dB
Amplifier
Point 1
Transmission
medium
Point 2
Point 3
Transmission
medium
Point 4
Distortion
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 (see the next section) through a medium and, therefore, its own delay in arriving at
the final destination. Figure 3.23 shows the effect of distortion on a composite signal.
Figure 3.23 Distortion
Transmission
medium
Composite signal
sent
Point 1
Components,
in phase
Point 2
Components,
out of phase
Composite signal
received
Noise
Noise is another problem. 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 a sending antenna and
the other as the receiving antenna. Impulse noise is a spike (a signal with high energy in
72 CHAPTER 3 SIGNALS
a very short period of time) that comes from power lines, lightning, and so on. Figure 3.24
shows the effect of noise on a signal.
Figure 3.24 Noise
Transmitted
Point 1
Noise
Received
Transmission medium
Point 2
Throughput
The throughput is the measurement of how fast data can pass through an entity (such
as a point or a network). In other words, if we consider this entity as a wall through
which bits pass, throughput is the number of bits that can pass this wall in one second.
Figure 3.25 shows the concept.
Direction
Im
ag
in
ar
w
al
11110011111000010011
Transmission medium
111100101010101010101111100010
Transmission medium
Propagation Speed
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 108 m/s. It is lower in air. It is much lower in a cable.
Propagation Time
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. Figure 3.26 shows the concept.
Propagation time = Distance/Propagation speed
Wavelength
Wavelength is another characteristic of a signal traveling through a transmission
medium. Wavelength binds the period or the frequency of a simple sine wave to the
propagation speed of the medium. In other words, while the frequency of a signal is
independent of the medium, the wavelength depends on both the frequency and the
medium. Although wavelength can be associated with electrical signals, it is customary
to use wavelengths when talking about the transmission of light in an optical fiber. The
wavelength is the distance a simple signal can travel in one period (see Fig. 3.27).
Figure 3.27 Wavelength
At time t
Wavelength
Transmission medium
Direction of
propagation
Transmission medium
At time t T
74 CHAPTER 3 SIGNALS
Wavelength can be calculated given the propagation speed and the period of the
signal
Wavelength = Propagation speed Period
However, since period and frequency are related to each other, we can also say
Wavelength = Propagation speed (1/Frequency) = Propagation speed/Frequency
In a coaxial or fiber-optic cable, however, the wavelength is lower (0.5 m) because the
propagation speed in the cable is less than in the air.
fundamental frequency
harmonics
hertz (Hz)
low-pass channel
noise
Nyquist bit rate
peak amplitude
period
periodic signal
phase
propagation speed
propagation time
Shannon capacity
signal
signal-to-noise ratio (SNR)
sine wave
throughput
time-domain plot
wavelength
3.9 SUMMARY
Data must be transformed into electromagnetic signals prior to transmission across
a network.
Data and signals can be either analog or digital.
A signal is periodic if it consists of a continuously repeating pattern.
Each sine wave can be characterized by its amplitude, frequency, and phase.
Frequency and period are inverses of each other.
A time-domain graph plots amplitude as a function of time.
A frequency-domain graph plots each sine waves peak amplitude against its
frequency.
By using Fourier analysis, any composite signal can be represented as a combination
of simple sine waves.
The spectrum of a signal consists of the sine waves that make up the signal.
The bandwidth of a signal is the range of frequencies the signal occupies. Bandwidth
is determined by finding the difference between the highest and lowest frequency
components.
Bit rate (number of bits per second) and bit interval (duration of 1 bit) are terms
used to describe digital signals.
A digital signal is a composite signal with an infinite bandwidth.
Bit rate and bandwidth are proportional to each other.
The Nyquist formula determines the theoretical data rate for a noiseless channel.
The Shannon capacity determines the theoretical maximum data rate for a noisy channel.
Attenuation, distortion, and noise can impair a signal.
Attenuation is the loss of a signals energy due to the resistance of the medium.
The decibel measures the relative strength of two signals or a signal at two
different points.
Distortion is the alteration of a signal due to the differing propagation speeds of
each of the frequencies that make up a signal.
Noise is the external energy that corrupts a signal.
We can evaluate transmission media by throughput, propagation speed, and
propagation time.
The wavelength of a frequency is defined as the propagation speed divided by the
frequency.
76 CHAPTER 3 SIGNALS
4. A signal has been received that only has values of 1, 0, and 1. Is this an analog or
a digital signal?
5. What is the relationship between period and frequency?
6. What are the units of period and frequency?
7. What does the amplitude of a signal measure?
8. What does the frequency of a signal measure?
9. What does the phase of a signal measure?
10. Which type of plot shows the amplitude of a signal at a given time?
11. How can a composite signal be decomposed into its individual frequencies?
12. What is a bit interval, and what is its counterpart in an analog signal?
13. What is bit rate, and what is its counterpart in an analog signal?
14. Name three types of transmission impairment.
15. What does a decibel measure?
16. What is the relationship between propagation speed and propagation time?
17. What is the wavelength of a signal and how is it calculated?
18. What does the Shannon capacity have to do with communications?
Multiple-Choice Questions
19. Before data can be transmitted, they must be transformed to ________.
a. Periodic signals
b. Electromagnetic signals
c. Aperiodic signals
d. Low-frequency sine waves
20. A periodic signal completes one cycle in 0.001 s. What is the frequency?
a. 1 Hz
b. 100 Hz
c. 1 KHz
d. 1 MHz
21. Which of the following can be determined from a frequency-domain graph of a
signal?
a. Frequency
b. Phase
c. Power
d. All the above
22. Which of the following can be determined from a frequency-domain graph of a signal?
a. Bandwidth
b. Phase
c. Power
d. All the above
78 CHAPTER 3 SIGNALS
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
c. Noise
d. Decibel
________ is a type of transmission impairment in which an outside source such as
crosstalk corrupts a signal.
a. Attenuation
b. Distortion
c. Noise
d. Decibel
The ________ has units of meters/second or kilometers/second.
a. Throughput
b. Propagation speed
c. Propagation time
d. (b) or (c)
________ has units of bits/second.
a. Throughput
b. Propagation speed
c. Propagation time
d. (b) or (c)
The ________ has units of seconds.
a. Throughput
b. Propagation speed
c. Propagation time
d. (b) or (c)
When propagation speed is multiplied by propagation time, we get the ________.
a. Throughput
b. Wavelength of the signal
c. Distortion factor
d. Distance a signal or bit has traveled
Propagation time is ________ proportional to distance and ________ proportional to
propagation speed.
a. Inversely; directly
b. Directly; inversely
c. Inversely; inversely
d. Directly; directly
Wavelength is ________ proportional to propagation speed and ________ proportional
to period.
a. Inversely; directly
b. Directly; inversely
c. Inversely; inversely
d. Directly; directly
80 CHAPTER 3 SIGNALS
Exercises
48. Given the frequencies listed below, calculate the corresponding periods. Express
the result in seconds, milliseconds, microseconds, nanoseconds, and picoseconds.
a. 24 Hz
b. 8 MHz
c. 140 KHz
d. 12 THz
49. Given the following periods, calculate the corresponding frequencies. Express the
frequencies in hertz, kilohertz, megahertz, gigahertz, and terahertz.
a. 5 s
b. 12 s
c. 220 ns
d. 81 ps
50. What is the phase shift for the following?
a. A sine wave with the maximum amplitude at time zero
b. A sine wave with maximum amplitude after 1/4 cycle
c. A sine wave with zero amplitude after 3/4 cycle and increasing
d. A sine wave with minimum amplitude after 1/4 cycle
51. Show the phase shift in degrees corresponding to each of the following delays in
cycles.
a. 1 cycle
b. 1/2 cycle
52.
53.
54.
55.
56.
57.
58.
59.
60.
61.
62.
c. 3/4 cycle
d. 1/3 cycle
Show the delay in cycles corresponding to each of the following.
a. 45
b. 90
c. 60
d. 360
Draw the time-domain plot of a sine wave (for only 1 s) with a maximum amplitude of 15 V, a frequency of 5, and a phase of 270.
Draw two sine waves on the same time-domain plot. The characteristics of each
signal are as follows:
signal A: amplitude 40, frequency 9, phase 0;
signal B: amplitude 10, frequency 9, phase 90.
Draw two periods of a sine wave with a phase shift of 90. On the same diagram,
draw a sine wave with the same amplitude and frequency but with a 90 phase shift
from the first.
What is the bandwidth of a signal that can be decomposed into four sine waves
with frequencies at 0, 20, 50, and 200 Hz? All maximum amplitudes are the same.
Draw the frequency spectrum.
A periodic composite signal with a bandwidth of 2000 Hz is composed of two
sine waves. The first one has a frequency of 100 Hz with a maximum amplitude
of 20 V; the second one has a maximum amplitude of 5 V. Draw the frequency
spectrum.
Show how a sine wave can change its phase by drawing two periods of an arbitrary
sine wave with phase shift of 0 followed by the two periods of the same signal
with a phase shift of 90.
Imagine we have a sine wave called A. Show the negative of A. In other words,
show the signal A. Can we relate the negation of a signal to the phase shift? How
many degrees?
Which signal has a higher bandwidth, a signal that changes 100 times per second
or a signal that changes 200 times per second?
What is the bit rate for each of the following signals?
a. A signal in which 1 bit lasts 0.001 s
b. A signal in which 1 bit lasts 2 ms
c. A signal in which 10 bits last 20 s
d. A signal in which 1000 bits last 250 ps
What is the duration of 1 bit for each of the following signals?
a. A signal with a bit rate of 100 bps
b. A signal with a bit rate of 200 Kbps
c. A signal with a bit rate of 5 Mbps
d. A signal with a bit rate of 1 Gbps
82 CHAPTER 3 SIGNALS
16 ns
Time
Time
66. Draw the time-domain representation (for the first 1/100 s) of the signal shown in
Figure 3.30.
Figure 3.30 Exercise 66
10 V
2500 Hz
67.
68.
69.
70.
Frequency
Time
180
5
Frequency
Frequency
280
that the amplitudes change gradually from the minimum to the maximum, draw the
frequency spectrum.
72. Two signals have the same frequencies. However, whenever the first signal is at its
maximum amplitude, the second signal has an amplitude of zero. What is the phase
shift between the two signals?
73. What is the mathematical representation of a signal with an amplitude of 10 V, a
frequency of 2500 Hz, a phase of 30?
74. Show the frequency domain of the following signal:
s(t) = 8 + 3 sin 100t + 5 sin 200t
76. A cosine wave is a sine wave with a 90 phase shift. Show the equivalent of the following signal in sine format.
s(t) = cos (2ft + )
84 CHAPTER 3 SIGNALS
77. A TV channel has a bandwidth of 6 MHz. If we send a digital signal using one
channel, what are the data rates if we use one harmonic, three harmonics, and five
harmonics?
78. A signal travels from point A to point B. At point A, the signal power is 100 W. At
point B, the power is 90 W. What is the attenuation in decibel?
79. The attenuation of a signal is 10 dB. What is the final signal power if it was originally 5 W?
80. A signal has passed through three cascaded amplifiers, each with a 4 dB gain.
What is the total gain? How much is the signal amplified?
81. If the throughput at the connection between a device and the transmission medium
is 5 Kbps, how long does it take to send 100,000 bits out of this device?
82. The light of the sun takes approximately eight minutes to reach the earth. What is
the distance between the sun and the earth?
83. A signal has a wavelength of 1 m in air. How far can the front of the wave travel
during five periods?
84. A line has a signal-to-noise ratio of 1000 and a bandwidth of 4000 KHz. What is
the maximum data rate supported by this line?
85. We measure the performance of a telephone line (4 KHz of bandwidth). When the
signal is 10 V, the noise is 5 mV. What is the maximum data rate supported by this
telephone line?