hAl R dh. Dr. MznahAl-Rodhaan. Based on. Data Communications and
Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc.,
2007.
Chapter 3 Data and Signals D Mznah Dr. M h Al-Rodhaan Al R dh
3.1
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
Dr. Mznah Al-Rodhaan
To be transmitted transmitted, data must be transformed to electromagnetic signals.
3.2
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
Dr. Mznah Al-Rodhaan
3-1 ANALOG AND DIGITAL Data can be analog or digital digital.. The term analog data refers to information that is continuous continuous;; digital data refers to information that has discrete states.. Analog data take on continuous values states values.. Digital data take on discrete values. values.
A l Clock Analog Cl k 3.3
Digital Clock
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
Dr. Mznah Al-Rodhaan
Topics discussed in this section: Analog and Digital Data Analog and Digital Signals P i di and Periodic d Nonperiodic N i di Signals Si l
Data can be analog or digital. Analog data are continuous and take continuous values. Di it l data Digital d t have h discrete di t states t t and d take discrete values. 3.4
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
Dr. Mznah Al-Rodhaan
Signals can be analog or digital. Analog signals can have an infinite number of values in a range; digital signals i l can have h only l a limited li it d number of values.
3.5
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
Dr. Mznah Al-Rodhaan
Figure 3.1 Comparison of analog and digital signals
3.6
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
Dr. Mznah Al-Rodhaan
In data communications, we commonly use periodic analog signals and nonperiodic digital signals.
3.7
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
Dr. Mznah Al-Rodhaan
3-2 PERIODIC ANALOG SIGNALS Periodic analog signals can be classified as simple or composite composite.. A simple periodic analog signal, signal a sine wave,, cannot be decomposed into simpler signals. wave signals. A composite periodic analog signal is composed of multiple sine waves.. waves Topics discussed in this section: Sine Wave Wavelength Ti Time and d Frequency F D Domain i Composite Signals Bandwidth 3.8
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
Dr. Mznah Al-Rodhaan
Figure 3.2 A sine wave
3.9
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
Dr. Mznah Al-Rodhaan
Example 3.1 • The power in your house can be represented by a sine wave with a peak amplitude of 155 to 170 V. • It is common knowledge that the voltage of the power in homes is 110 to 120 V or 220 to 240V. • This discrepancy is due to the fact that these are root mean square (rms) values. The signal is squared and then the average amplitude is calculated. calculated ½ • The peak value is equal to 2 × rms value.
3.10
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
Dr. Mznah Al-Rodhaan
Figure 3.3 Two signals with the same phase and frequency, but different amplitudes
3.11
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
Dr. Mznah Al-Rodhaan
Example 3.2 The voltage of a battery is a constant; this constant value can be considered a sine wave, as we will see later. For example the peak value of an AA battery is normally example, 1.5 V.
3.12
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
Dr. Mznah Al-Rodhaan
Period and Frequency Frequency is the number of occurrences of a repeating event per unit time. It is expressed in Hertz(Hz). Periodd is i the h duration d i off one cycle l in i a repeating i event. the period is the reciprocal of the frequency. It is expressed in seconds. seconds
Frequency and period are the inverse of each other. the period is the reciprocal of the frequency. frequency
3.13
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
Dr. Mznah Al-Rodhaan
Figure 3.4 Two signals with the same amplitude and phase, but different frequencies
3.14
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
Dr. Mznah Al-Rodhaan
Table 3.1 Units of period and frequency
3.15
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
Dr. Mznah Al-Rodhaan
Example 3.3 The power we use at home has a frequency of 60 Hz. Hz The period of this sine wave can be determined as follows:
3.16
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
Dr. Mznah Al-Rodhaan
Example 3.4 Express a period of 100 ms in microseconds. microseconds Solution S l ti From Table 3.1 we find the equivalents of 1 ms (1 ms is 10−33 s)) andd 1 s (1 s is i 106 μs). ) We W make k the th following f ll i substitutions:.
3.17
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
Dr. Mznah Al-Rodhaan
Example 3.5 The period of a signal is 100 ms. ms What is its frequency in kilohertz? Solution First we change 100 ms to seconds, seconds and then we calculate the frequency from the period (1 Hz = 10−3 kHz).
3.18
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
Dr. Mznah Al-Rodhaan
Frequency q y is the rate of change g with respect to time. Change in a short span of time means high frequency frequency. Change over a long span of q y time means low frequency.
3.19
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
Dr. Mznah Al-Rodhaan
If a signal does not change at all, its frequency is zero. g changes g instantaneously, y its If a signal frequency is infinite.
3.20
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
Dr. Mznah Al-Rodhaan
Phase Phase describes the position of the waveform f relative l ti to t time ti 0. 0
a(t) = A sin(Ft + φ)
3.21
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
Dr. Mznah Al-Rodhaan
Figure 3.5 Three sine waves with the same amplitude and frequency, but different ff pphases
3.22
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
Dr. Mznah Al-Rodhaan
Example 3.6 A sine wave is offset 1/6 cycle with respect to time 0. 0 What is its phase in degrees and radians? Solution We know that 1 complete cycle is 360°. Therefore, 1/6 cycle y is
3.23
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
Dr. Mznah Al-Rodhaan
Wavelength
wavelength l th (λ)= (λ) wave speedd * period i d = wave speedd / frequency f wave speed = propagation speed Wavelength is measured by μm 14
What is the wavelength of red light (with ff= 44*10 10 3.24
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
) in air?
Dr. Mznah Al-Rodhaan
Time-domain frequency-domain f q y
3.25
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
Dr. Mznah Al-Rodhaan
A complete sine wave in the time domain can be represented by one single spike in the frequency domain. domain
3.26
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
Dr. Mznah Al-Rodhaan
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.27
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
Dr. Mznah Al-Rodhaan
Composite Signals A single-frequency sine wave is not useful f l in i data d t communications; i ti we need to send a composite signal, a signal made of many simple sine waves. According to Fourier analysis, any composite signal is a combination of simple sine waves with different frequencies, amplitudes, and phases. 3.28
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
Dr. Mznah Al-Rodhaan
Composite Signals
If the composite signal is periodic, periodic the decomposition gives a series of signals with ith discrete frequencies; freq encies if the composite signal is nonperiodic, the decomposition gives a combination of sine waves with continuous frequencies. 3.29
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
Dr. Mznah Al-Rodhaan
Example 3.8 Figure 3.9 shows a periodic composite signal with frequency f. f This type of signal is not typical of those found in data communications. We can consider it to be three alarm systems, systems each with a different frequency. frequency The analysis of this signal can give us a good understanding of how to decompose signals. signals
3.30
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
Dr. Mznah Al-Rodhaan
Figure 3.10 Decomposition of a composite periodic signal in the time and ffrequency q y domains
3.31
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
Dr. Mznah Al-Rodhaan
Example 3.9 Figure 3.11 shows a nonperiodic composite signal. It can be the signal i l createdd by b a microphone i h or a telephone l h set when h a wordd 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. tone ( range 0 to 4kHz) 4kH )
3.32
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
Dr. Mznah Al-Rodhaan
Bandwidth The bandwidth is the range of frequencies contained in a composite signal
The bandwidth of a composite signal is the difference between the highest and the lowest frequencies contained in that signal.
3.33
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
Dr. Mznah Al-Rodhaan
Figure 3.12 The bandwidth of periodic and nonperiodic composite signals
3.34
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
Dr. Mznah Al-Rodhaan
Example 3.10 Iff a pperiodic signal g is decomposed p into ffive sine waves with frequencies of 100, 300, 500, 700, and 900 Hz, what is its bandwidth? Draw the spectrum, p , assumingg all components have a maximum amplitude of 10 V. Solution Let fh be the highest g ffrequency, q y, fl the lowest ffrequency, q y, and B the bandwidth. Then
3.35
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
Dr. Mznah Al-Rodhaan
Figure g 3.13 The bandwidth for Example 3.10
The spectrum has only five spikes, at 100, 300, 500, 700, and 900 Hz .
3.36
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
Dr. Mznah Al-Rodhaan
Example 3.11 A periodic signal has a bandwidth of 20 Hz. The highest f frequency i 60 Hz. is H What Wh t is i the th lowest l t frequency? f ? Draw D the spectrum if the signal contains all frequencies of the same amplitude. lit d Solution Let fh be the highest frequency, frequency fl the lowest frequency, frequency and B the bandwidth. Then
3.37
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
Dr. Mznah Al-Rodhaan
Figure 3.14 The bandwidth for Example 3.11
The spectrum contains all integer frequencies. We show this by a series of spikes.
3.38
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
Dr. Mznah Al-Rodhaan
Example 3.12 A nonperiodic composite signal has a bandwidth of 200 kHz, with a middle frequency of 140 kHz and peak amplitude of 20 V. V The two extreme frequencies have an amplitude of 0. Draw the frequency domain of the signal. signal
3.39
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
Dr. Mznah Al-Rodhaan
Figure 3.15 The bandwidth for Example 3.12
Solution S l ti The lowest frequency must be at 140-100=40 kHz andd the th highest hi h t att 140+100=240 140+100 240 kHz. kH Figure Fi 3 15 3.15 shows the frequency domain and the bandwidth.
3.40
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
Dr. Mznah Al-Rodhaan
Example 3.13 An example of a nonperiodic composite signal is the signal g propagated p p g byy an AM radio station. In the United States, each AM radio station is assigned a 10-kHz bandwidth. The total bandwidth dedicated to AM radio ranges from 530 to 1700 kHz. Another example of a nonperiodic composite signal is the signal propagated by an FM radio station. In the United States, each FM radio station is assigned a 200kHz bandwidth. The total bandwidth dedicated to FM radio ranges from 88 to 108 MHz.
3.41
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
Dr. Mznah Al-Rodhaan
Example 3.15 Another example p off a nonperiodic p composite p signal g is the signal received by an old-fashioned analog blackand-white TV. A TV screen is made upp off ppixels. Iff we assume a resolution of 525 × 700, we have 367,500 pixels pper screen. Iff we scan the screen 30 times pper p second, this is 367,500 × 30 = 11,025,000 pixels per second. The worst-case scenario is alternatingg black and white pixels. We can send 2 pixels per cycle. Therefore, we need 11,025,000 , , / 2 = 5,512,500 , , cycles y pper second,, or Hz. The bandwidth needed is 5.5125 MHz.
3.42
Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007
Dr. Mznah Al-Rodhaan