Chapter 3
Data and Signals
1
Kyung Hee University
Data and Signals
2
Kyung Hee University
3.1 ANALOG AND DIGITAL
Data can be analog or digital. The term analog data refers to information that is continuous; digital data refers to information that has discrete states. Analog data take on continuous values. Digital data take on discrete values.
Analog and Digital Data�Analog and Digital Signals�Periodic and Nonperiodic Signals
Topics discussed in this section:
3
Kyung Hee University
Analog and Digital Signals
4
Kyung Hee University
Analog and Digital Signals (cont’d)
5
Kyung Hee University
Aperiodic and periodic signals
~ consists of a continuously repeated pattern.
6
Kyung Hee University
Aperiodic and periodic signals (cont’d)
7
Kyung Hee University
Aperiodic and periodic signals (cont’d)
~ changes constantly without exhibiting a pattern or cycle that repeat over time.
~ signal has no repetitive pattern.
8
Kyung Hee University
Periodic analog signals can be classified as simple or composite. A simple periodic analog signal, a sine wave, cannot be decomposed into simpler signals. A composite periodic analog signal is composed of multiple sine waves.
3.2 PERIODIC ANALOG SIGNALS
Sine Wave�Wavelength�Time and Frequency Domain�Composite Signals
Bandwidth
Topics discussed in this section:
9
Kyung Hee University
Analog signals(cont’d)
10
Kyung Hee University
Analog signals(cont’d)
11
Kyung Hee University
Analog signals(cont’d)
~ refer to the height of the signal.
특정 순간의 신호 값; voltage(전압), amperes(전류), watts(전력)
~ refers to the amount of time, in seconds, a signal needs to complete one cycle.
~ refers to number of periods a signal makes over the course of one second.(주기의 역수(1/t), 초당 주기의 반복 횟수)
12
Kyung Hee University
Analog signals(cont’d)
Frequency=1/Period, Period=1/Frequency
f = 1 / T , T = 1 / f
~ is expressed in Hertz(Hz).
~ is expressed in seconds.
13
Kyung Hee University
Analog signals (cont’d)
Figure 3.3 Two signals with the same phase and frequency, � but different amplitudes
14
Kyung Hee University
Analog signals (cont’d)
Figure 3.4 Two signals with the same amplitude and phase,� but different frequencies
15
Kyung Hee University
Analog signals(cont’d)
Table 3.1 Units of period and frequency
16
Kyung Hee University
Analog signals(cont’d)
17
Kyung Hee University
Analog signals(cont’d)
~ describes the position of the waveform relative to time zero(시간 0에 대한 파형의 상대적인 위치)
18
Kyung Hee University
Analog signals(cont’d)
19
Kyung Hee University
Analog signals (cont’d)
2pi radians equal to 360 degrees, thus 1 radian = 180/pi
20
Kyung Hee University
Analog signals(cont’d)
ft
21
Kyung Hee University
Analog signals(cont’d)
ft
22
Kyung Hee University
Analog Signals(cont’d)
ft
23
Kyung Hee University
Analog signals(cont’d)
24
Kyung Hee University
Analog signals(cont’d)
25
Kyung Hee University
Analog signals(cont’d)
26
Kyung Hee University
Analog signals(cont’d)
27
Kyung Hee University
Analog signals(cont’d)
28
Kyung Hee University
Analog signals(cont’d)
29
Kyung Hee University
Analog signals(cont’d)
Peak value
Peak value
30
Kyung Hee University
Analog signals(cont’d)
Figure 3.8 The time domain and frequency domain of three sine waves
31
Kyung Hee University
Composite Signal
32
Kyung Hee University
Composite Signal (cont’d)
33
Kyung Hee University
Composite Signal (cont’d)
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.
Example 3.8
34
Kyung Hee University
Composite Signal (cont’d)
Figure 3.9 A composite periodic signal
35
Kyung Hee University
Composite Signal (cont’d)
Figure 3.10 Decomposition of a composite periodic signal in the time and� frequency domains
36
Kyung Hee University
Composite Signal (cont’d)
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.
Example 3.9
37
Kyung Hee University
Composite Signal (cont’d)
Figure 3.11 The time and frequency domains of a nonperiodic signal
38
Kyung Hee University
Composite Signal (cont’d)
39
Kyung Hee University
Bandwidth
40
Kyung Hee University
Bandwidth (cont’d)
41
Kyung Hee University
Bandwidth (cont’d)
Figure 3.12 The bandwidth of periodic and nonperiodic composite signals
42
Kyung Hee University
Bandwidth (cont’d)
If a periodic signal is decomposed into five sine waves with frequencies of 100, 300, 500, 700, and 900 Hz, what is its bandwidth? Draw the spectrum, assuming all components have a maximum amplitude of 10 V.
Example 3.10
43
Kyung Hee University
Bandwidth (cont’d)
Figure 3.13 The bandwidth for Example 3.10
44
Kyung Hee University
Bandwidth (cont’d)
A periodic 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 frequencies of the same amplitude.
Example 3.11
45
Kyung Hee University
Bandwidth (cont’d)
Figure 3.14 The bandwidth for Example 3.11
46
Kyung Hee University
Bandwidth (cont’d)
A nonperiodic composite signal has a bandwidth of 200 kHz, with a middle frequency of 140 kHz and peak amplitude of 20 V. The two extreme frequencies have an amplitude of 0. Draw the frequency domain of the signal.
Example 3.12
47
Kyung Hee University
Bandwidth (cont’d)
Figure 3.15 The bandwidth for Example 3.12
48
Kyung Hee University
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.3 DIGITAL SIGNALS
Bit Rate�Bit Length�Digital Signal as a Composite Analog Signal
Application Layer
Topics discussed in this section:
49
Kyung Hee University
Digital Signals
Figure 3.16 Two digital signals: one with two signal levels and the other� with four signal levels
50
Kyung Hee University
Digital Signals (cont’d)
A digital signal has eight levels. How many bits are needed per level? We calculate the number of bits from the formula
Each signal level is represented by 3 bits.
Example 3.16
51
Kyung Hee University
Digital Signals (cont’d)
A digitized voice channel, as we will see in Chapter 4, is made by digitizing a 4-kHz bandwidth analog voice signal. We need to sample the signal at twice the highest frequency (two samples per hertz). We assume that each sample requires 8 bits. What is the required bit rate?
The bit rate can be calculated as
Example 3.19
52
Kyung Hee University
Digital Signals (cont’d)
What is the bit rate for high-definition TV (HDTV)?
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 represents one color pixel.
The TV stations reduce this rate to 20 to 40 Mbps through compression.
Example 3.20
53
Kyung Hee University
Digital Signals (cont’d)
54
Kyung Hee University
Digital Signal as a Composite Analog Signal
Figure 3.17 The time and frequency domains of periodic and nonperiodic� digital signals
55
Kyung Hee University
Transmission of Digital Signals
Figure 3.18 Baseband transmission
A digital signal is a composite analog signal with an infinite bandwidth.
56
Kyung Hee University
Transmission of Digital Signals (cont’d)
Figure 3.19 Bandwidths of two low-pass channels
57
Kyung Hee University
Transmission of Digital Signals (cont’d)
Figure 3.20 Baseband transmission using a dedicated medium
Baseband transmission of a digital signal that preserves the shape of the digital signal is possible only if we have a low-pass channel with an infinite or very wide bandwidth.
58
Kyung Hee University
Transmission of Digital Signals (cont’d)
Figure 3.21 Rough approximation of a digital signal using the first harmonic � for worst case
59
Kyung Hee University
Transmission of Digital Signals (cont’d)
60
Kyung Hee University
Transmission of Digital Signals (cont’d)
Figure 3.22 Simulating a digital signal with first three harmonics
61
Kyung Hee University
Transmission of Digital Signals (cont’d)
In baseband transmission, the required bandwidth is proportional to the bit rate;
if we need to send bits faster, we need more bandwidth.
62
Kyung Hee University
Transmission of Digital Signals (cont’d)
Table 3.2 Bandwidth requirements
B = n/2
B = 3n/2
B = 5n/2
63
Kyung Hee University
Broadband Transmission (Using Modulation)
Figure 3.23 Bandwidth of a bandpass channel
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 signal before transmission.
64
Kyung Hee University
Broadband Transmission (Using Modulation)
Figure 3.24 Modulation of a digital signal for transmission on a bandpass � channel
using Carrier
65
Kyung Hee University
3.4 TRNSMISSION IMPAIRMENT
66
Kyung Hee University
Transmission Impairment
67
Kyung Hee University
Transmission Impairment
68
Kyung Hee University
Transmission Impairment
69
Kyung Hee University
Sometimes the decibel is used to measure signal power in milliwatts. In this case, it is referred to as dBm and is calculated as dBm = 10 log10 Pm , where Pm is the power in milliwatts. Calculate the power of a signal with dBm = −30.
Solution
We can calculate the power in the signal as
Example 3.29
Transmission Impairment
70
Kyung Hee University
Transmission Impairment
71
Kyung Hee University
Transmission Impairment
- Noise types
72
Kyung Hee University
Transmission Impairment
73
Kyung Hee University
The power of a signal is 10 mW and the power of the noise is 1 μW; what are the values of SNR and SNRdB ?
Solution
The values of SNR and SNRdB can be calculated as follows:
Example 3.31
Signal to Noise Ratio
1uW
74
Kyung Hee University
The values of SNR and SNRdB for a noiseless channel are
Example 3.32
We can never achieve this ratio in real life; it is an ideal.
Signal to Noise Ratio
75
Kyung Hee University
Figure 3.30 Two cases of SNR: a high SNR and a low SNR
Signal to Noise Ratio
76
Kyung Hee University
L : number of signal levels
Bit Rate = 2 × 3000 × log2 2 = 6000 bps
Increasing the levels of a signal may reduce the reliability of the system.
3.5 DATA RATE LIMITS
77
Kyung Hee University
Data Rate Limits
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
78
Kyung Hee University
The signal-to-noise ratio is often given in decibels. Assume that SNRdB = 36 and the channel bandwidth is 2 MHz. The theoretical channel capacity can be calculated as
Example 3.39
Data Rate Limits
79
Kyung Hee University
For practical purposes, when the SNR is very high, we can assume that SNR + 1 is almost the same as SNR. In these cases, the theoretical channel capacity can be simplified to
Example 3.40
For example, we can calculate the theoretical capacity of the previous example as
Data Rate Limits
If S/N >> 1, then
80
Kyung Hee University
We have a channel with a 1-MHz bandwidth. The SNR for this channel is 63. What are the appropriate bit rate and signal level?
Solution
First, we use the Shannon formula to find the upper limit.
Example 3.41
Data Rate Limits
81
Kyung Hee University
The Shannon formula gives us 6 Mbps, the upper limit. For better performance we choose something lower, 4 Mbps, for example. Then we use the Nyquist formula to find the number of signal levels.
Example 3.41 (continued)
Data Rate Limits
The Shannon capacity gives us the upper limit; the Nyquist formula tells us how many signal levels we need.
82
Kyung Hee University
3.6 PERFORMANCE
One important issue in networking is the performance of the network—how good is it? We discuss quality of service, an overall measurement of network performance, in greater detail in Chapter 24. In this section, we introduce terms that we need for future chapters.
Bandwidth�Throughput�Latency (Delay)
Bandwidth-Delay Product
Topics discussed in this section:
83
Kyung Hee University
In networking, we use the term bandwidth in two contexts.
❏ The first, bandwidth in hertz, refers to� the 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.
Definition of Bandwidth
84
Kyung Hee University
3. 6 Performance
85
Kyung Hee University
A network with bandwidth of 10 Mbps can pass only an average of 12,000 frames per minute with each frame carrying an average of 10,000 bits. What is the throughput of this network?
Solution
We can calculate the throughput as
Example 3.44
The throughput is almost one-fifth of the bandwidth in this case.
Performance (cont’d)
86
Kyung Hee University
Performance (cont’d)
+ queuing time(큐시간) +processing delay( 처리시간)
87
Kyung Hee University
Performance (cont’d)
88
Kyung Hee University
What is the propagation time if the distance between the two points is 12,000 km? Assume the propagation speed to be 2.4 × 108 m/s in cable.
Solution
We can calculate the propagation time as
Example 3.45
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.
Performance (cont’d)
89
Kyung Hee University
What are the propagation time and the transmission time for a 2.5-kbyte message (an e-mail) if the bandwidth of the network is 1 Gbps? Assume that the distance between the sender and the receiver is 12,000 km and that light travels at 2.4 × 108 m/s.
Solution
We can calculate the propagation and transmission time as shown on the next slide:
Example 3.46
Performance (cont’d)
90
Kyung Hee University
Note that in this case, because the message is short and the bandwidth is high, the dominant factor is the propagation time, not the transmission time. The transmission time can be ignored.
Example 3.46 (continued)
Performance (cont’d)
91
Kyung Hee University
Figure 3.31 Filling the link with bits for case 1
Performance (cont’d)
The bandwidth-delay product defines the number of bits that can fill the link.
92
Kyung Hee University
Figure 3.32 Filling the link with bits in case 2
Performance (cont’d)
4
4
4
4
4
93
Kyung Hee University
We can think about the link between two points as a pipe. The cross section of the pipe represents the bandwidth, and the length of the pipe represents the delay. We can say the volume of the pipe defines the bandwidth-delay product, as shown in Figure 3.33.
Example 3.48
Performance (cont’d)
Figure 3.33 Concept of bandwidth-delay product
94
Kyung Hee University
Summary(1)
95
Kyung Hee University
Summary(2)
96
Kyung Hee University
Summary(3)
97
Kyung Hee University
Q & A
98
Kyung Hee University