Professional Documents
Culture Documents
3.1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Note
3.2
3-1 ANALOG AND DIGITAL
3.3
Note
3.4
Note
3.5
Figure 3.1 Comparison of analog and digital signals
Continuous Discrete
Infinite number of possible Finite number of possible
values values
3.6
Periodic and Aperiodic Signals
Periodic signal
Completes a pattern within a certain time frame called a period
Repeats the pattern over subsequent identical periods called cycles
Aperiodic signal
Changes with no patterns or cycles over time
Both analog and digital signals can be either periodic or aperiodic
Note
In data communications, we commonly use
periodic analog signals (for less bandwidth
use) and nonperiodic digital signals (for
representing the variation in data).
3.7
3-2 PERIODIC ANALOG SIGNALS
3.8
Figure 3.2 A sine wave
s t A sin 2ft
Instantaneous Peak Frequency Phase
Amplitude Amplitude
3.10
Note
3.11
Figure 3.4 Two signals with the same amplitude and phase,
but different frequencies
3.12
Table 3.1 Units of period and frequency
3.13
Example 3.3
3.14
Example 3.4
Solution
From Table 3.1 we find the equivalents of 1 ms (1 ms is
10−3 s) and 1 s (1 s is 106 μs). We make the following
substitutions:.
3.15
Example 3.5
Solution
First we change 100 ms to seconds, and then we
calculate the frequency from the period (1 Hz = 10−3
kHz).
3.16
Note
3.17
Note
3.18
Note
3.19
Figure 3.5 Three sine waves with the same amplitude and frequency,
but different phases
3.20
Sine wave examples
Time -
Domain
Plots
3.21
Example 3.6
Solution
We know that 1 complete cycle is 360°. Therefore, 1/6
cycle is
3.22
Figure 3.6 Wavelength and period
c T c f
3.23
Figure 3.7 The time-domain and frequency-domain plots of a sine wave
3.24
Note
3.25
Figure 3.8 The time domain and frequency domain of three sine waves
Example 3.7
The frequency domain is more compact and useful when we are dealing
with more than one sine wave. For example, Figure 3.8 shows three sine
waves, each with different amplitude and frequency. All can be
represented by three spikes in the frequency domain.
3.26
Note
3.27
Note
3.28
Note
Example 3.8
Figure 3.9 shows a periodic composite signal with frequency f.
This type of signal is not typical of those found in data
communications. We can consider it to be three alarm systems,
each with a different frequency. The analysis of this signal can
give us a good understanding of how to decompose signals.
3.30
Figure 3.10 Decomposition of a composite periodic signal in the time and
frequency domains
1st Harmonic
(or fundamental 3rd Harmonic 9th Harmonic
frequency)
Frequency
3.31
Figure 3.11 The time and frequency domains of a nonperiodic signal
Example 3.9
Figure 3.11 shows a nonperiodic composite signal. It can be the
signal created by a microphone or a telephone set when a word or
two is pronounced. In this case, the composite signal cannot be
periodic, because that implies that we are repeating the same word
or words with exactly the same tone.
3.32
Note
3.33
Figure 3.12 The bandwidth of periodic and nonperiodic composite signals
3.34
Example 3.10
Solution
Let fh be the highest frequency, fl the lowest frequency,
and B the bandwidth. Then
The spectrum has only five spikes, at 100, 300, 500, 700,
and 900 Hz (see Figure 3.13).
3.35
Figure 3.13 The bandwidth for Example 3.10
3.36
Example 3.11
Solution
Let fh be the highest frequency, fl the lowest frequency,
and B the bandwidth. Then
3.38
Example 3.12
Solution
The lowest frequency must be at 40 kHz and the highest
at 240 kHz. Figure 3.15 shows the frequency domain
and the bandwidth.
3.39
Figure 3.15 The bandwidth for Example 3.12
3.40
Example 3.13
3.41
Example 3.14
3.42
Example 3.15
3.43
3-3 DIGITAL SIGNALS
In addition to being represented by an analog signal,
information can also 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 can have more
than two levels. In this case, we can send more than 1 bit
for each level.
3.45
Example 3.16
Solution
We calculate the number of bits using the formula
3.46
Example 3.17
Solution
We calculate the number of bits by using the formula.
Each signal level is represented by 3.17 bits. However,
this answer is not realistic. The number of bits sent
per level needs to be an integer as well as a power of 2.
For this example, 4 bits can represent one level.
3.47
Example 3.18
Solution
A page has an average of 24 lines with 80 characters in
each line. If we assume that one character requires 8
bits, the bit rate is
100 x 24 x 80 x 8 = 1.536 M bits per minute
= 25.6 kbps
wrong
3.48
Example 3.19
Solution
The bit rate can be calculated as
3.49
Example 3.20
Solution
HDTV uses digital signals to broadcast high quality
video signals. The HDTV screen is normally a ratio of
16:9. There are 1920 by 1080 pixels per screen, and the
screen is renewed 30 times per second. Twenty-four bits
represent one color pixel.
3.51
Figure 3.17 The time and frequency domains of periodic and nonperiodic
digital signals
3.52
Note
3.53
Figure 3.18 Baseband transmission
Baseband transmission:
Sending a digital signal over a channel without
changing it to analog (i.e.; without modulation)
Requires low-pass channel
The low-pass channel has a bandwidth that starts
from zero
E.g. a cable connecting two or more computers
Narrow-band versus wide-band low-pass channels
3.54
Figure 3.19 Bandwidths of two low-pass channels
3.55
Case 1: Low-Pass Channel with Wide Bandwidth
3.56
Note
3.57
Example 3.21
Almost every wired LAN today uses a dedicated channel for two
stations communicating with each other.
•In a bus topology LAN with multipoint connections, only two
stations can communicate with each other at each moment in
time (timesharing); the other stations need to refrain from
sending data.
•In a star topology LAN, the entire channel between each
station and the hub is used for communication between these
two entities.
• LANs will be covered in Chapter 14.
3.58
Case 2: Low-Pass Channel with Limited Bandwidth
Approximate the digital signal with an analog
signal depending on the available bandwidth.
Consider a digital signal of bit rate N:
Rough approximation
Use first harmonic only (least bandwidth usage)
The worst case is a sequence of alternating bits of 0’s & 1’s
To simulate the worst case, we need an analog signal of
frequency with f=N/2
More signal components are needed to represent the
different patterns. For example, the signal phase
Better approximation
Use more harmonics (more bandwidth usage)
Results in a better representation of the digital signal
3.59
Figure 3.21 Rough approximation of a digital signal using the first harmonic
for worst case
A digital signal
3.60
Figure 3.22 Simulating a digital signal with first three harmonics
3.61
Note
InIn baseband
baseband transmission,
transmission, the isrequired
the required bandwidth proportional to
more bandwidth.
3.62
Table 3.2 Bandwidth requirements
3.63
Example 3.22
Solution
3.64
Example 3.22
Solution
The maximum bit rate can be achieved if we use the first
harmonic. The bit rate is 2 times the available
bandwidth, or 200 kbps.
3.65
Broadband Transmission (Using Modulation)
3.66
Figure 3.23 Bandwidth of a bandpass channel
3.67
Note
3.68
Figure 3.24 Modulation of a digital signal for transmission on a bandpass
channel
3.69
Example 3.24
3.70
Example 3.25
3.71
3-4 TRANSMISSION IMPAIRMENT
3.72
Figure 3.25 Causes of impairment
3.74
Decibel (dB)
Measures the relative strengths (or power levels) of two
signals or a signal at two different points
dB = 10 log10(P2/P1)
Positive value gain (or amplification)
Negative value loss (or attenuation)
10 log10(P2/P1) = 3 dB P2 is as twice as P1
10 log10(P2/P1) = -3 dB P2 is as half as P1
10 log10(P2/P1) = 10 dB P2 is ten times P1
10 log10(P2/P1) = -10 dB P2 is 10% of P1
3.75
Example 3.26
3.76
Example 3.27
3.77
Example 3.28
3.78
Figure 3.27 Decibels for Example 3.28
3.79
Example 3.29
Solution
We can calculate the power in the signal as
3.80
Example 3.30
Solution
The loss in the cable in decibels is 5 × (−0.3) = −1.5 dB.
We can calculate the power as
3.81
Figure 3.28 Distortion
3.82
Figure 3.29 Noise
3.83
Signal-to-Noise Ratio (SNR)
SNR is the ratio of the signal power to the noise power
3.84
Figure 3.30 Two cases of SNR: a high SNR and a low SNR
3.85
Example 3.31
Solution
The values of SNR and SNRdB can be calculated as follows:
3.86
Example 3.32
3.87
3-5 DATA RATE LIMITS
3.88
Noiseless Channel: Nyquist Bit Rate
Defines the theoretical maximum bit rate possible
for noiseless channels
3.89
Note
3.90
Example 3.33
Solution
They match when we have only two levels. We said, in
baseband transmission, the bit rate is 2 times the
bandwidth if we use only the first harmonic in the worst
case. However, the Nyquist formula is more general than
what we derived intuitively; it can be applied to baseband
transmission and modulation. Also, it can be applied
when we have two or more levels of signals.
3.91
Example 3.34
3.92
Example 3.35
3.93
Example 3.36
3.94
Noisy Channel: Shannon Capacity
Defines the theoretical maximum bit rate
possible for noisy channels
Channel Capacity = Bandwidth x log2(1+SNR)
Capacity is the maximum possible bit rate in bps
Bandwidth is the channel bandwidth in Hz
SNR is the signal-to-noise power ratio
3.95
Example 3.37
3.96
Example 3.38
This means that the highest bit rate for a telephone line
is 34.860 kbps. If we want to send data faster than this,
we can either increase the bandwidth of the line or
improve the signal-to-noise ratio.
3.97
Example 3.39
3.98
Example 3.40
3.99
Example 3.41
Solution
First, we use the Shannon formula to find the upper
limit.
3.100
Example 3.41 (continued)
3.101
Note
3.102
3-6 PERFORMANCE
3.104
Example 3.42
3.105
Example 3.43
3.106
Throughput versus Bandwidth
3.107
Example 3.44
Solution
We can calculate the throughput as
Solution
We can calculate the propagation time as
Solution
We can calculate the propagation and transmission time
as shown on the next slide:
3.111
Example 3.46 (continued)
3.112
Example 3.47
Solution
We can calculate the propagation and transmission
times as shown on the next slide.
3.113
Example 3.47 (continued)
3.114
Figure 3.31 Filling the link with bits for case 1
3.115
Figure 3.32 Filling the link with bits in case 2
5 bps
25 bits
3.116
Note
3.117