CE257 Data Communication and Networking: By: Dr. Ritesh Patel Ce Dept, Cspit, Charusat Riteshpatel - Ce@charusat - Ac.in
CE257 Data Communication and Networking: By: Dr. Ritesh Patel Ce Dept, Cspit, Charusat Riteshpatel - Ce@charusat - Ac.in
CE257 Data Communication and Networking: By: Dr. Ritesh Patel Ce Dept, Cspit, Charusat Riteshpatel - Ce@charusat - Ac.in
Networking
Week 3 – Session 2
2
STUDENTS WILL LEARN
Analog Communication
3
LINE CODING
4
PERIODIC SIGNALS
time
5
SINE WAVES
Simplest form of periodic signal
signal strength
period
T = 1/f
peak
amplitude
time
8
VARYING SINE WAVES
3 3
2 2
1 1
0 0
0 0.5 1 1.5 2 2.5 3 0 0.5 1 1.5 2 2.5 3
-1 -1
-2 -2
-3 A = 1, f = 1, = 0 -3 A = 2, f = 1, = 0
3 3
2 2
1 1
0 0
0 0.5 1 1.5 2 2.5 3 0 0.5 1 1.5 2 2.5 3
-1 -1
-2 -2
-3 A = 1, f = 2, = 0 -3 A = 1, f = 1, = /4
9
TIME VS. FREQUENCY DOMAINS
1 1 1
0
0 0.5 1 1.5 2 2.5 3
+ 0
0 0.5 1 1.5 2 2.5 3
= 0
0 0.5 1 1.5 2 2.5 3
-0.5 -0.5 -0.5
-1 -1 -1
1.5
-1.5 -1.5 -1.5
1
0.5
0
0 0.5 1 1.5 2 2.5 3
-0.5
-1
-1.5
Demo: sine.py 10
Figure A sine wave
Figure Two signals with the same phase and frequency,
but different amplitudes
Note
Solution
First we change 100 ms to seconds, and then we
calculate the frequency from the period (1 Hz = 10−3
kHz).
FREQUENCY
Solution
We know that 1 complete cycle is 360°. Therefore, 1/6
cycle is
Figure Wavelength and period
Figure The time-domain and frequency-domain plots of a sine wave
Note
1 1
0 0
2 4 time 2 4 frequency
-1 -1
Demo: Equalizer 33
3.34
Figure 3.10 Decomposition of a composite periodic signal in the time and
frequency domains
Example
39
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.
40
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 200-kHz bandwidth. The
total bandwidth dedicated to FM radio ranges from 88 to 108 MHz.
41
Example of a nonperiodic composite signal is the signal received by an old-
fashioned analog black-and-white TV. A TV screen is made up of pixels
(picture elements) with each pixel being either white or black. The screen is
scanned 30 times per second. (Scanning is actually 60 times per second, but
odd lines are scanned in one round and even lines in the next and then
interleaved.) If we assume a resolution of 525 x 700 (525 vertical lines and
700 horizontal lines), which is a ratio of 3: 4, we have 367,500 pixels per
screen. If we scan the screen 30 times per second, this is 367,500 x 30 =
11,025,000 pixels per second.
The worst-case scenario is alternating black and white pixels. In this case,
we need to represent one color by the minimum amplitude and the other
color by the maximum amplitude. We can send 2 pixels per cycle.
Therefore, we need 11,025,000/2 =5,512,500 cycles per second, or Hz. The
bandwidth needed is 5.5124 MHz. This worst-case scenario has such a low
probability of occurrence that the assumption is that we need only 70
percent of this bandwidth, which is 3.85 MHz. Since audio and
synchronization signals are also needed, a 4-MHz bandwidth has been set
aside for each black and white TV channel. An analog color TV channel has
a 6-MHz bandwidth.
42
FOURIER ANALYSIS
+ + + +…
43
FOURIER ANALYSIS
DC component
AC components
44
BANDWIDTH OF A MEDIUM
gain (low-pass channel)
1
freq
...
Transmission medium
0 f0 3f0 5f0 7f0 9f0 f 0 f0 3f0 5f0 f
t t
45
DIGITAL SIGNALS
Properties:
Bit rate – number of bits per second
Bit interval – duration of 1 bit
amplitude
1 0 0 1 0 1 1 0
...
time
bit interval
46
Two digital signals: one with two signal levels and the other
with four signal levels
47
The time and frequency domains of periodic and nonperiodic
digital signals
48
Baseband transmission
Baseband transmission
→ Sending a digital signal over a channel without
changing it to an analog signal
49
Note
50
Baseband transmission using a dedicated medium
51
DIGITAL VS. ANALOG
1 1 1 1 1 1 1 1 1 1 1 1
1 sec
Digital Analog
1 0 1 0 1 0 1 0 1 0 1 0
1 0 1 0 1 0 1 0 1 0 1 0
53
DIGITAL VS. ANALOG BANDWIDTH
Digital bandwidth
Expressed in bits per second (bps)
Analog bandwidth
Expressed in Hertz (Hz)
55
LOW-PASS AND BAND-PASS CHANNELS
Low-pass
gain
channel
f1 frequency
Band-pass
gain
channel
f1 f2 frequency
56
Modulation of a digital signal for transmission on a bandpass channel
57
TRANSMISSION IMPAIRMENT
Attenuation
Distortion
Noise
58
SIGNAL ATTENUATION
60
Example
Solution
We can calculate the power in the signal as
61
Example
62
SIGNAL DISTORTION
63
NOISE
Noise Undesirable signals added between
the transmitter and the receiver
Types of noise
Thermal
Due to random motion of electrons in a wire
64
NOISE
Types of noise (cont’d)
Crosstalk
Signal from one line picked up by another
Wire 1
Wire 2
Impulse
Irregular pulses or spikes
E.g., lightning
Short duration
High amplitude
65
SIGNAL-TO-NOISE RATIO
66
Example
Solution
The values of SNR and SNRdB can be calculated as
follows:
67
DATA RATE: NOISELESS CHANNELS
Nyquist Theorem
Bit Rate = 2 × Bandwidth × log2L
Harry Nyquist
(1889-1976)
Bitrate in bps
Bandwidth in Hz
68
Example
Shannon Capacity
Capacity = Bandwidth × log2(1+SNR)
70
Example
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.
71
Example
Solution
First, use the Shannon capacity
72
Note
73
NETWORK PERFORMANCE
Bandwidth
Hertz
74
LATENCY
Composed of
Propagation time
Transmission time
Queuing time
Processing
Entire time
message
propagation
time
transmission
time
75
LATENCY
Sender Receiver
Propagation time
First bit arrives
Data bits
Last bit leaves Transmission time
Time Time
76
BANDWIDTH-DELAY PRODUCT
77
Figure Filling the link with bits for case 1
78
SUMMARY
Data need to take form of signal to be
transmitted
Frequency domain representation of signal
allows easier analysis
Fourier analysis
Medium's bandwidth limits certain frequencies
to pass
Bit rate is proportional to bandwidth
Signals get impaired by attenuation, distortion,
and noise
79