Week 4 - 6 Lectures
Week 4 - 6 Lectures
3.1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Note
3.2
3-1 ANALOG AND DIGITAL
3.4
Figure 3.1 Comparison of analog and digital signals
3.5
Note
3.6
Periodic vs Nonperiodic
Signals
A periodic signal complete a pattern
within a measurable time frame
and repeats that pattern over
subsequent identical periods.
3.9
Figure 3.3 Two signals with the same phase and frequency,
but different amplitudes
3.10
Note
3.11
Note
3.12
Note
3.13
Figure 3.4 Two signals with the same amplitude and phase,
but different frequencies
3.14
Table 3.1 Units of period and frequency
3.15
Example 3.3
3.16
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.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
Figure 3.6 Wavelength and period
3.21
Figure 3.7 The time-domain and frequency-domain plots of a sine wave
3.22
Note
3.23
Figure 3.8 The time domain and frequency domain of three sine waves
3.24
Note
3.25
Example 3.8
3.26
Figure 3.9 A composite periodic signal
3.27
Figure 3.10 Decomposition of a composite periodic signal in the time and
frequency domains
3.28
Example 3.9
3.29
Figure 3.11 The time and frequency domains of a nonperiodic signal
3.30
Note
3.31
Figure 3.12 The bandwidth of periodic and nonperiodic composite signals
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
Example 3.15
3.37
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.
Figure 3.16 Two digital signals: one with two signal levels and the other
with four signal levels
3.39
Example 3.16
3.40
Example 3.17
3.41
Example 3.18
3.42
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
represents one color pixel.
3.44
Figure 3.18 Baseband transmission
3.45
Figure 3.19 Bandwidths of two low-pass channels
3.46
Figure 3.20 Baseband transmission using a dedicated medium
3.47
Note
3.48
Figure 3.22 Simulating a digital signal with first three harmonics
3.49
Note
In baseband transmission, the required bandwidth is
In baseband transmission,
proportional the required
to the bit rate;
bandwidth is proportional
if we need to send bits faster, we needto thebandwidth.
more bit rate;
if we need to send bits faster, we need
more bandwidth.
3.50
Table 3.2 Bandwidth requirements
3.51
Example 3.22
Solution
The answer depends on the accuracy desired.
a. The minimum bandwidth, is B = bit rate /2, or 500 kHz.
3.53
Note
3.54
Figure 3.24 Modulation of a digital signal for transmission on a bandpass
channel
3.55
Example 3.24
3.56
3-4 TRANSMISSION IMPAIRMENT
3.57
Figure 3.25 Causes of impairment
3.58
Figure 3.26 Attenuation
3.59
Example 3.26
3.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
3.66
Figure 3.29 Noise
3.67
Example 3.31
Solution
The values of SNR and SNRdB can be calculated as
follows:
3.68
Example 3.32
3.69
Figure 3.30 Two cases of SNR: a high SNR and a low SNR
3.70
3-5 DATA RATE LIMITS
3.71
Note
3.72
Two Channels Two Formulas
Bit rate of noise-free channel is
calculated by Nyquist bit rate formula:
C= 2Blog 2 (L )
3.74
Example 3.35
3.75
Example 3.36
3.77
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.78
3-6 NETWORK PERFORMANCE
3.79
Note
3.80
Network Performance Metrics
Bandwidth
Amount of data transmitted per unit of time; per link, or end-to-end
Units: bits, bytes, kilobits, megabits;
1Mbps = 106 bits per sec
How many KB/sec is a 1Mbps line?
Throughput
Data rate delivered by a link, connection or network
Per link or end-to-end, same units as Bandwidth
81
Example
3.82
Example 3.44
Solution
We can calculate the throughput as
84
Delay Calculation
Tt : Transmission Delay: file size/bandwidth
Tp : Propagation Delay: time needed for signal to travel the
medium, Distance / speed of medium (bandwidth)
Tq: Queuing Delay: time waiting in router’s buffer
d1 d2
A R B
85
Example 3.45
Solution
We can calculate the propagation time as
Solution
We can calculate the propagation and transmission time
as shown on the next slide:
3.87
Example 3.46 (continued)
3.88
Example 3.47
Solution
We can calculate the propagation and transmission
times as shown on the next slide.
3.89
Example 3.47 (continued)
3.90
Example: delay calculation in file transfer
t 91
Example:
Transfer 1,5 MB file, assuming RTT of 80 ms, a packet
size of 1-KB and an initial “handshake” of 2xRTT
After sending each packet must wait one RTT
A B
request RTT = 80 ms
RTT Tt = 1024x8 bits/107 bits/s = 0.8192 ms
reply
Tp = 40 ms
confirm
# of packets = 1536 (1.5 x 1024)
Ack
Tt
D = 2xRTT + 1535x(Tt +RTT)+ Tt+Tp
RTT
= 160 + 124,057 + 0.8192 + 40 ms
= 124.258 s
. . .
t 92
Figure 3.32 bandwidth-Delay Product: Filling the link with bits in case 2
3.93
Bandwidth x Delay Product
The amount of data (bits or bytes) in the pipe (link)
“in-flight”
propagation delay × bits/time = total bits in link
Example: 100Mbps x 10ms = 1 Mbit
Latency
95