0% found this document useful (0 votes)
14 views74 pages

4 Physical Layer

The document provides an overview of Data Communication and Computer Networks, focusing on the physical layer and the types of signals exchanged in data communication. It explains the differences between analog and digital data, signal characteristics, and the impact of signal impairment on transmission. Additionally, it covers concepts like data rate limits, line coding, and digital-to-analog conversion methods.

Uploaded by

ag.22u10096
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views74 pages

4 Physical Layer

The document provides an overview of Data Communication and Computer Networks, focusing on the physical layer and the types of signals exchanged in data communication. It explains the differences between analog and digital data, signal characteristics, and the impact of signal impairment on transmission. Additionally, it covers concepts like data rate limits, line coding, and digital-to-analog conversion methods.

Uploaded by

ag.22u10096
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 74

Data Communication

and
Computer Networks
CS 602
B. Tech. (Semester VI, Section: X )
2024-25 (Even Semester)

Dr. Abhijit Sharma


Assistant Professor
Department of Computer Science & Engineering
NIT Durgapur

CS602: Data Communication and Computer Networks


[email protected]
CS602

Physical Layer
SIGNALS
What is exchanged between Alice and Bob is data, but what goes through the network
at the physical layer is signals.

Data can be Analog or Digital.


1. Analog data refers to information that is continuous;
Ex. sounds made by a human voice, Thermometer readings
2. Digital data refers to information that has discrete states.
Ex. Barcodes, Digital photographs

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.

s(t ) = A sin( 2ft +  )


6
Simple Periodic Analog Signal

Vertical Shift

7
Phase

8
Digital Signal

Bit Rate: The bit rate is the number of bits sent in 1 s


Bit Length The bit length is the distance one bit occupies on the transmission medium.

9
Digital Signal

Bit Rate: The bit rate is the number of bits sent in 1 s


Bit Length The bit length is the distance one bit occupies on the transmission medium.

10
Digital Signal

If a signal has L levels, each level needs log2L bits.


11
Digital Signal

Example:

A digital signal has eight levels. How many bits are needed per level?

We calculate the number of bits from the formula

Number of bits per level =log2 8 =3

Each signal level is represented by 3 bits

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

B =fh - fl = 900 - 100 =800 Hz

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

Distortion means that the signal changes its form or shape.


Distortion can occur in a composite signal made up of different frequencies.

31
Noise

Noise is another cause of impairment.


Several type of noise may occur during the signal transmission.

Signal-to-Noise Ratio (SNR) is defined as


SNR = (average signal power) / (average noise power)

32
Data Rate Limit

Data rate depends on three factors:

1. The bandwidth available


2. The levels of signals we can use
3. The quality of the channel

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

where C: channel capacity (bit per second)


H: bandwidth (Hz)
V: signal levels (2 for binary)

• C is proportional to H

 Significant bandwidth puts a limit on channel capacity

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

Bit Rate = 2  3000  log2 2 = 6000 bps

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:

Bit Rate = 2 x 3000 x log2 4 = 12,000 bps

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

C = B log2 (1 + S/N) = B log2 (1 + 0)

= 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

C = B log2 (1 + S/N) = 3000 log2 (1 + 3162)


= 3000 log2 (3163)
C = 3000  11.62 = 34,860 bps

39
39
Digital Transmission

DIGITAL-TO-DIGITAL CONVERSION: Line Coding

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

You might also like