Data Communication Lecture 3
Data Communication Lecture 3
Data Communication Lecture 3
3.1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Data and Signals
TDC 361 2
Analog vs. Digital Signals
3
Analog vs. Digital Signals
3.5
Time domain concepts
■ Continuous signal
■ Infinite number of points at any given time
■ Discrete signal
■ Finite number of points at any given time; maintains a
constant level then changes to another constant level
■ Periodic signal
■ Pattern repeated over time
■ Aperiodic (non-periodic) signal
■ Pattern not repeated over time
6
Time domain concepts
7
Figure 3.2 A sine wave
3.8
Signal Properties
9
Figure 3.3 Two signals with the same phase and frequency,
but different amplitudes
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.5
Solution
First we change 100 ms to seconds, and then we
calculate the frequency from the period (1 Hz = 10−3
kHz).
3.15
Note
3.16
Note
3.17
Note
3.18
Figure 3.5 Three sine waves with the same amplitude and frequency,
but different phases
3.19
Example 3.6
Solution
We know that 1 complete cycle is 360°. Therefore, 1/6
cycle is
3.20
Sine Wave Examples
3.21
Wavelength
■ Another characteristic of a signal traveling through a
transmission medium
■ Binds the period or the frequency of a simple sine wave to the
propagation speed of the medium
■ Wavelength = propagation speed x period
= propagation speed/frequency
3.22
Figure 3.7 The time-domain and frequency-domain plots of a sine wave
3.23
Example 3.7
3.24
Figure 3.8 The time domain and frequency domain of three sine waves
3.25
Composite Signals
■ A single-frequency sine wave is not useful in data
communications; we need to send a composite
signal, a signal made of many simple sine waves
■ When we change one or more characteristics of a
single-frequency signal, it becomes a composite
signal made of many frequencies
■ According to Fourier analysis, any composite signal
is a combination of simple sine waves with different
frequencies, phases, and amplitudes
■ If the composite signal is periodic, the
decomposition gives a series of signals with discrete
frequencies; if the composite signal is nonperiodic,
the decomposition gives a combination of sine
waves with continuous frequencies.
3.26
Figure 3.10 Decomposition of a composite periodic signal in the time and frequency
domains
3.27
Note
3.28
Figure 3.11 The time and frequency domains of a nonperiodic signal, such
someone speaking into a microphone: Composite Non-periodic Signal
3.29
Bandwidth
Note
3.30
Figure 3.12 The bandwidth of periodic and nonperiodic composite signals
Note: each
frequency is
identifiable
Note:
frequencies
are all over
the place
3.31
Example
■ 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
B = fh - fl ; 20 = 60 – fl ; fl = 60 - 20 = 40 Hz
3.32
Example 3.10
The spectrum has only five spikes, at 100, 300, 500, 700,
and 900 Hz (see Figure 3.13).
3.33
Figure 3.13 The bandwidth for Example 3.10
3.34
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.35
Figure 3.15 The bandwidth for Example 3.12
3.36
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.38
Bit Rate and Bit Interval
3.39
Example 3.16
3.40
Example 3.17
3.41
Example 3.18
3.42
Example 3.18
3.43
Example 3.19
3.44
Example 3.20
3.46
Transmission of Digital Signals
Figure 3.18 Baseband transmission
3.49
Figure 3.21 Rough approximation of a digital signal using only the first
harmonic for worst case: Low Pass Channel with Limited Bandwidth
3.51
Note
3.52
Bandwidth (B) = 3N/2
3.53
Example 3.22
3.54
Example 3.22
3.55
Broadband Transmission (Using Modulation)
Note
3.56
Figure 3.23 Bandwidth of a bandpass channel
3.57
Figure 3.24 Modulation of a digital signal for transmission on a bandpass
channel
3.58
3-4 TRANSMISSION IMPAIRMENT
3.59
Figure 3.26 Attenuation (the first impairment)
3.60
Decibels
Signal strength/power is measured in decibels
(dB)
dB is a relative measure of loss (or gain)
61
Example 3.28
3.62
Figure 3.27 Decibels for Example 3.28
3.63
Example 3.29
Solution
We can calculate the power in the signal as
3.64
Example 3.30
3.65
Figure 3.28 Distortion (the second impairment)
• The signal changes its form or shape
• Each signal component in a composite signal has its own
propagation speed
• Differences in delay may cause a difference in phase
3.66
Figure 3.29 Noise (the third impairment)
• Several types of noises, such as thermal noise, induced
noise, crosstalk, and impulse noise, may corrupt the
signal
• Thermal noise is the random motion of elections in a
wire which creates an extra signal not originally sent by
the transmitter.
3.67
Signal to Noise Ratio (SNR or S/N)
68
Signal to Noise RatiodB
(SNRdB or S/NdB)
69
Signal to Noise RatiodB
70
Example 3.31
Solution
The values of SNR and SNRdB can be calculated as
follows:
3.71
Example 3.32
3.72
Figure 3.30 Two cases of SNR: a high SNR and a low SNR
3.73
3-5 DATA RATE LIMITS
3.74
Note
3.75
Channel Capacity
■ Data rate
■ In bits per second
■ Rate at which data can be communicated
■ Bandwidth
■ In cycles per second of Hertz
■ Constrained by transmitter and medium
■ Baud rate
■ Frequency with which the components change
76
Nyquist Bit Rate Channel Capacity
77
Example 3.34
3.78
Example 3.35
3.79
Example 3.36
3.82
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.83
Example 3.39
3.84
Example 3.41
Solution
First, we use the Shannon formula to find the upper
limit.
3.85
Example 3.41 (continued)
3.86
Using Both Limits
Note
3.87
Using Both Limits
■ Example:
We have a channel with a 100 MHz bandwidth. The SNR
for this channel is 63; what is the appropriate bit rate
and signal level?
3.88
Note
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.
3.89
Example 3.42
3.91
3-5 Performance
■ Throughput
■ Measurement of how fast we can actually send
data through a network
3.92
3-5 Performance
■ Latency (Delay)
Define how long it takes for an entire message to
completely arrive at the destination from the time
the first bit is sent out from the source
Latency = propagation time + transmission time +
queuing time + processing delay
Propagation time = Distance/Propagation speed
Transmission time = Message size/Bandwidth
3.94
Bandwidth-Delay Product
(cntd.)
3.95
Review Questions
96
Review Questions
97