4 Physical Layer
4 Physical Layer
and
Computer Networks
CS 602
B. Tech. (Semester VI, Section: X )
2024-25 (Even Semester)
Physical Layer
SIGNALS
What is exchanged between Alice and Bob is data, but what goes through the network
at the physical layer is signals.
3
Comparison of analog and digital signals
4
Periodic and Nonperiodic
An analog signal can take one of the two forms: periodic or aperiodic.
In data communications, we commonly use periodic analog signals and
nonperiodic digital signals.
5
Periodic analog signals can be classified as simple or composite.
A simple periodic signal, a sine wave, cannot be
A sine wave decomposed into simpler signals.
Vertical Shift
7
Phase
8
Digital Signal
9
Digital Signal
10
Digital Signal
Example:
A digital signal has eight levels. How many bits are needed per level?
12
Time and Frequency Domains
• We need to send a composite signal to communicate data.
• A composite signal is made of many simple sine waves.
13
Composite Signals
The time domain and frequency domain of three sine waves
14
Composite Signals
Example: A composite signal contains frequencies between 1000 and 5000, its bandwidth is
5000 - 1000, or 4000.
15
Composite Signals
Example: 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
16
Composite Signals
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
17
Digital Signal as a Composite Analog Signal
Possibility?
Digital Signal through a wide-bandwidth Medium
Digital Signal through a Band-Limited Medium
18
Digital Signal using only One Harmonic
19
Digital Signal using only One Harmonic
20
Digital Signal using only One Harmonic
21
Digital Signal
22
Harmonics of a Digital Signal
23
Low-pass and band-pass
Low pass channel has a bandwidth with frequencies between 0 and f. Lower limit is 0, the
upper limit can be any frequency (including infinity)
Band-pass channel has bandwidth with frequencies between f1 and f2.
The analog bandwidth of a medium is expressed in hertz; the digital bandwidth, in bits per
second
Digital transmission needs a low-pass channel
Analog transmission can use a band-pass channel
24
Data Communication Measurements
Throughput
• How fast data can pass through an entity
Propagation speed
• Depends on medium and signal frequency
Propagation time (propagation delay)
• Time required for one bit to travel from one point to another
Wavelength
• Propagation speed = wavelength X frequency
25
25
26
27
28
2-2 SIGNAL IMPAIRMENT
Signals travel through transmission media, which are not perfect. The imperfection
causes signal impairment. This means that the signal at the beginning of the medium
is not the same as the signal at the end of the medium. What is sent is not what is
received.
Three causes of impairment are attenuation, distortion, and noise.
29 29
Attenuation and Amplification
30 30
2.2.2 Distortion
31
Noise
32
Data Rate Limit
Two theoretical formulas were developed to calculate the data rate: one by Nyquist for a noiseless channel,
another by Shannon for a noisy channel.
33
Noiseless Channel: Nyquist Bit Rate
For a noiseless channel, the Nyquist bit rate formula defines the theoretical maximum bit rate
Channel capacity
• Max. bit rate a transmission medium can transfer
Nyquist theorem
• C = 2H log2V
• C is proportional to H
34
Consider a noiseless channel with a bandwidth of 3000 Hz transmitting
a signal with two signal levels. The maximum bit rate can be calculated
as
35
Consider the same noiseless channel, transmitting a signal
with four signal levels (for each level, we send two bits).
The maximum bit rate can be calculated as:
36
Noisy Channel: Shannon Capacity
Shannon capacity determine the theoretical highest data rate for a noisy channel
Shannon Capacity
• C = H log2(1 + S/N)
where C: (noisy) channel capacity (bps)
H: bandwidth (Hz)
S/N: signal-to-noise ratio
dB = 10 log10 S/N
37
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
= B log2 (1) = B 0 = 0
38
38
We can calculate the theoretical highest bit rate of a regular telephone line. A
telephone line normally has a bandwidth of 3000 Hz (300 Hz to 3300 Hz).
The signal-to-noise ratio is usually 35dB, i.e., 3162. For this channel the
capacity is calculated as
39
39
Digital Transmission
40
Line Coding
Characteristics
Signal Element Versus Data Element
41
Line Coding
Characteristics
Data Rate Versus Signal Rate
The data rate is sometimes called the bit rate; the signal rate is sometimes called the pulse rate, the modulation rate, or
the baud rate.
DC Components
Spectral Efficiency
Baseline Wandering
Power Consumption
42
Line Coding
Characteristics
Self-synchronization
43
Line Coding Schemes
44
Unipolar Scheme
45
Polar Schemes
The voltage level for 0 can be positive and the voltage level for 1 can be negative.
46
Non-Return-to-Zero (NRZ)
The voltage level for 0 can be positive and the voltage level for 1 can be negative.
47
Return-to-Zero (RZ)
The voltage level for 1 can be positive and the voltage level for 0 can be negative.
48
Manchester and Differential Manchester
49
Bipolar Schemes
A common bipolar encoding scheme: bipolar alternate mark inversion (AMI)
50
Block Coding
Block coding is referred to as an mB/nB encoding technique.
51
Block Coding
• Division
• Substitution
• Line Coding
52
Block Coding
4B/5B
53
Block Coding
4B/5B
54
Block Coding
8B/6T
55
ANALOG-TO-DIGITAL CONVERSION
Pulse Code Modulation (PCM)
56
ANALOG-TO-DIGITAL CONVERSION: Sampling
Pulse Amplitude Modulation (PAM)
57
ANALOG-TO-DIGITAL CONVERSION
Quantization
58
ANALOG-TO-DIGITAL CONVERSION
Quantization
59
ANALOG-TO-DIGITAL CONVERSION
PCM
60
Sampling Rate
According to the Nyquist theorem, to reproduce the original analog signal, one necessary condition
is that the sampling rate be at least twice the highest frequency in the original signal.
61
TRANSMISSION MODES
62
Parallel Transmission
63
Serial Transmission
64
Asynchronous Transmission
65
Synchronous Transmission
66
Analog Transmission
DIGITAL-TO-ANALOG CONVERSION
67
Analog Transmission
Types of digital-to-analog conversion
68
Amplitude Shift Keying
69
Frequency Shift Keying
70
Phase Shift Keying
71
Phase Shift Keying
72
Phase Shift Keying
73
Phase Shift Keying
74