3. Data Signals
3. Data Signals
3.1 3.2
1
11/8/2021
3.3 3.4
2
11/8/2021
3.5 3.6
3
11/8/2021
Signals
In data communications, we commonly use periodic
analog signals and nonperiodic digital signals.
analog signals digital signals
Periodic analog signals can be classified as simple or
composite. periodic nonperiodic periodic nonperiodic
A simple periodic analog signal, a sine wave, cannot be
decomposed into simpler signals.
A composite periodic analog signal is composed of sine wave composite signal
multiple sine waves.
sine wave
3.8
3.7
4
11/8/2021
3.9 3.10
5
11/8/2021
Figure 3.3 Two signals with the same phase and frequency,
but different amplitudes
Frequency
• Frequency is the rate of change with respect
to time.
• Change in a short span of time means high
frequency.
• Change over a long span of
time means low frequency.
3.11 3.12
6
11/8/2021
Figure 3.4 Two signals with the same amplitude and phase,
but different frequencies Table 3.1 Units of period and frequency
3.13 3.14
7
11/8/2021
The power we use at home has a frequency of 60 Hz. The period of a signal is 100 ms. What is its frequency in
The period of this sine wave can be determined as kilohertz?
follows:
Solution
First we change 100 ms to seconds, and then we
calculate the frequency from the period (1 Hz = 10−3
kHz).
3.15 3.16
8
11/8/2021
Figure 3.5 Three sine waves with the same amplitude and frequency,
but different phases
Note
3.17 3.18
9
11/8/2021
Example 3.3
3.19 3.20
10
11/8/2021
3.21 3.22
11
11/8/2021
3.23 3.24
12
11/8/2021
13
11/8/2021
Figure 3.7 The time-domain and frequency-domain plots of a sine wave Figure 3.8 The time domain and frequency domain of three sine waves
3.27 3.28
14
11/8/2021
In frequency
Same Sinusoids and domainAmplitude
Composite signals in of noise is low. The
Frequency Domain main Signal can
easily be identified
3.29 3.30
15
11/8/2021
16
11/8/2021
Example
Composite Signals and
Figure shows a periodic composite signal with frequency
Periodicity f. This type of signal is not typical of those found in data
If the composite signal is periodic, the communications. We can consider it to be three alarm
decomposition gives a series of signals systems, each with a different frequency. The analysis of
this signal can give us a good understanding of how to
with discrete frequencies.
decompose signals.
If the composite signal is nonperiodic, the
decomposition gives a combination of
sine waves with continuous frequencies.
17
11/8/2021
Figure 3.10 Decomposition of a composite periodic signal in the time and Example
frequency domains
18
11/8/2021
3.37 3.38
19
11/8/2021
Example Example
If a periodic signal is decomposed into five sine waves with frequencies of 100, A periodic signal has a bandwidth of 20 Hz. The highest frequency is 60 Hz.
300, 500, 700, and 900 Hz, what is its bandwidth? Draw the spectrum, What is the lowest frequency? Draw the spectrum if the signal contains all
assuming all components have a maximum amplitude of 10 V. frequencies of the same amplitude.
Solution Solution
Let fh be the highest frequency, fl the lowest frequency, and B the Let fh be the highest frequency, fl the lowest frequency, and B the
bandwidth. Then bandwidth. Then
The spectrum has only five spikes, at 100, 300, 500, 700, and 900 Hz
3.39 3.40
20
11/8/2021
3.41 3.42
21
11/8/2021
Another example of a nonperiodic composite signal is the signal received by an In addition to being represented by an analog signal,
old-fashioned Analog black-and-white TV. information can also be represented by a digital signal.
A TV screen is made up of pixels. If we assume a resolution of 525 × 700, we
have 367,500 pixels per screen. For example, a 1 can be encoded as a positive voltage
and a 0 as zero voltage. A Digital signal is also called as
Discrete signal
3.43 3.44
22
11/8/2021
Figure 3.16 Two digital signals: one with two signal levels and the other Example 3.16
with four signal levels
B=log2L
3.45 3.46
23
11/8/2021
A digital signal has nine levels. How many bits are Assume we need to download text documents at the rate
needed per level? of 100 pages per sec. What is the required bit rate of the
We calculate the number of bits by using the formula. channel?
Each signal level is represented by 3.17 bits. However, Solution
this answer is not realistic. The number of bits sent per A page is an average of 24 lines with 80 characters in
level needs to be an integer as well as a power of 2. For each line. If we assume that one character requires 8
this example, 3 bits can represent one level. bits (ascii), the bit rate is
3.47 3.48
24
11/8/2021
A digitized voice channel, as we will see later, is made by What is the bit rate for high-definition TV (HDTV)?
digitizing a 4-kHz bandwidth analog voice signal. We
need to sample the signal at twice the highest frequency Solution
(two samples per hertz). We assume that each sample HDTV uses digital signals to broadcast high quality
requires 8 bits. What is the required bit rate? video signals. The HDTV screen is normally a ratio of
16 : 9. There are 1920 by 1080 pixels per screen, and the
Solution screen is renewed 30 times per second. Twenty-four bits
The bit rate can be calculated as represents one color pixel.
25
11/8/2021
Figure 3.17 The time and frequency domains of periodic and nonperiodic
digital signals Baseband Transmissions
26
11/8/2021
Note
3.53 3.54
27
11/8/2021
3.55 3.56
28
11/8/2021
Solution
The answer depends on the accuracy desired.
a. The minimum bandwidth, is B = bit rate /2, or 500 kHz.
Note
b. A better solution is to use the first and the third
harmonics with B = 3 × 500 kHz = 1.5 MHz. If the available channel is a bandpass channel, we
cannot send the digital signal directly to the channel;
we need to convert the digital signal to an analog
c. Still a better solution is to use the first, third, and fifth signal before transmission.
harmonics with B = 5 × 500 kHz = 2.5 MHz.
3.57 3.58
29
11/8/2021
Example 3.24 Figure 3.24 Modulation of a digital signal for transmission on a bandpass
channel
3.59 3.60
30
11/8/2021
3.61 3.62
31
11/8/2021
3.63 3.64
32
11/8/2021
dB = 10log10P2/P1
P1 - input signal
P2 - output signal
3.65 3.66
33
11/8/2021
Suppose a signal travels through a transmission medium and its A signal travels through an amplifier, and its power is increased
power is reduced to one-half. This means that P2 is (1/2)P1. In this 10 times. This means that P2 = 10P1 . In this case, the
case, the attenuation (loss of power) can be calculated as amplification (gain of power) can be calculated as
3.67 P1 P2 3.68 P1 P2
34
11/8/2021
One reason that engineers use the decibel to measure the changes
in the strength of a signal is that decibel numbers can be added
Sometimes the decibel is used to measure signal power
(or subtracted) when we are measuring several points (cascading) in milliwatts. In this case, it is referred to as dBm and is
instead of just two. In Following Figure a signal travels from calculated as dBm = 10 log10 Pm , where Pm is the power
point 1 to point 4. In this case, the decibel value can be calculated in milliwatts. Calculate the power of a signal with dBm =
as −30.
Solution
We can calculate the power in the signal as
3.69 3.70
35
11/8/2021
Example 3.30
Distortion
The loss in a cable is usually defined in decibels per kilometer
(dB/km). If the signal at the beginning of a cable with −0.3 dB/km Means that the signal changes its form or shape
has a power of 2 mW, what is the power of the signal at 5 km?
Solution
Distortion occurs in composite signals
The loss in the cable in decibels is 5 × (−0.3) = −1.5 dB. We can Each frequency component has its own
calculate the power as propagation speed traveling through a medium.
The different components therefore arrive with
different delays at the receiver.
That means that the signals have different phases
at the receiver than they did at the source.
3.71 3.72
36
11/8/2021
3.73 3.74
37
11/8/2021
3.75 3.76
38
11/8/2021
The power of a signal is 10 mW and the power of the The values of SNR and SNRdB for a noiseless channel
noise is 1 μW; what are the values of SNR and SNRdB ? are
Solution
The values of SNR and SNRdB can be calculated as
follows:
We can never achieve this ratio in real life; it is an ideal.
3.77 3.78
39
11/8/2021
3.79 3.80
40
11/8/2021
Capacity of a System
The bit rate of a system increases with an increase
in the number of signal levels we use to denote a
Note symbol.
A symbol can consist of a single bit or “n” bits.
Increasing the levels of a signal The number of signal levels = 2n.
increases the probability of an error As the number of levels goes up, the spacing
occurring, in other words it reduces the between level decreases -> increasing the
reliability of the system. Why?? probability of an error occurring in the presence of
transmission impairments.
3.81 3.82
41
11/8/2021
Example 3.33
Nyquist Theorem
Nyquist gives the upper bound for the bit rate of a Does the Nyquist theorem bit rate agree with the
transmission system by calculating the bit rate intuitive bit rate described in baseband transmission?
directly from the number of bits in a symbol (or
signal levels) and the bandwidth of the system Solution
(assuming 2 symbols/per cycle and first They match when we have only two levels. We said, in
harmonic). baseband transmission, the bit rate is 2 times the
Nyquist theorem states that for a noiseless bandwidth if we use only the first harmonic in the worst
channel: case. However, the Nyquist formula is more general than
C = 2 B log2 n what we derived intuitively; it can be applied to baseband
C= capacity in bps transmission and modulation. Also, it can be applied
B = bandwidth in Hz when we have two or more levels of signals.
3.83 3.84
42
11/8/2021
Consider a noiseless channel with a bandwidth of 3000 Consider the same noiseless channel transmitting a
Hz transmitting a signal with two signal levels. The signal with four signal levels (for each level, we send 2
maximum bit rate can be calculated as bits). The maximum bit rate can be calculated as
3.85 3.86
43
11/8/2021
Example 3.36
Shannon’s Theorem
We need to send 265 kbps over a noiseless channel with
a bandwidth of 20 kHz. How many signal levels do we Shannon’s theorem gives the capacity of a
need?
system in the presence of noise.
Solution
We can use the Nyquist formula as shown:
C = B log2(1 + SNR)
44
11/8/2021
Consider an extremely noisy channel in which the value We can calculate the theoretical highest bit rate of a
of the signal-to-noise ratio is almost zero. In other regular telephone line. A telephone line normally has a
words, the noise is so strong that the signal is faint. For bandwidth of 3000. The signal-to-noise ratio is usually
this channel the capacity C is calculated as 3162. For this channel the capacity is calculated as
45
11/8/2021
The signal-to-noise ratio is often given in decibels. For practical purposes, when the SNR is very high, we
Assume that SNRdB = 36 and the channel bandwidth is 2 can assume that SNR + 1 is almost the same as SNR.
MHz. The theoretical channel capacity can be calculated
as
3.91 3.92
46
11/8/2021
We have a channel with a 1-MHz bandwidth. The SNR The Shannon formula gives us 6 Mbps, the upper limit.
for this channel is 63. What are the appropriate bit rate For better performance we choose something lower, 4
and signal level? Mbps, for example. Then we use the Nyquist formula to
find the number of signal levels.
Solution
First, we use the Shannon formula to find the upper
limit.
3.93 3.94
47
11/8/2021
3-6 PERFORMANCE
48
11/8/2021
Example 3.42
Note
The bandwidth of a subscriber line is 4 kHz for voice or
In networking, we use the term data. The bandwidth of this line for data transmission
bandwidth in two contexts. can be up to 56,000 bps using a sophisticated modem to
The first, bandwidth in hertz, refers to the change the digital signal to analog.
range of frequencies in a composite signal
or the range of frequencies that a channel
can pass.
The second, bandwidth in bits per second,
refers to the speed of bit transmission in a
channel or link. Often referred to as
Capacity.
3.97 3.98
49
11/8/2021
If the telephone company improves the quality of the line A network with bandwidth of 10 Mbps can pass only an
and increases the bandwidth to 8 kHz, we can send average of 12,000 frames per minute with each frame
112,000 bps by using the same technology as mentioned carrying an average of 10,000 bits. What is the
in Example 3.42. throughput of this network?
Solution
We can calculate the throughput as
50
11/8/2021
3.101 3.102
51
11/8/2021
What is the propagation time if the distance between the What are the propagation time and the transmission
two points is 12,000 km? Assume the propagation speed time for a 2.5-kbyte message (an e-mail) if the
to be 2.4 × 108 m/s in cable. bandwidth of the network is 1 Gbps? Assume that the
distance between the sender and the receiver is 12,000
Solution km and that light travels at 2.4 × 108 m/s.
We can calculate the propagation time as
Solution
We can calculate the propagation and transmission time
as shown on the next slide:
The example shows that a bit can go over the Atlantic
Ocean in only 50 ms if there is a direct cable between the
source and the destination.
3.103 3.104
52
11/8/2021
Note that in this case, because the message is short and Solution
the bandwidth is high, the dominant factor is the We can calculate the propagation and transmission
propagation time, not the transmission time. The times as shown on the next slide.
transmission time can be ignored.
3.105 3.106
53
11/8/2021
Example 3.47 (continued) Figure 3.31 Filling the link with bits for case 1
3.107 3.108
54
11/8/2021
Example 3.48 Figure 3.32 Filling the link with bits in case 2
3.109 3.110
55
11/8/2021
Note
3.111
56