Physical Layer:
Data and Signals
Data Communications (CT423)
Lecturer: Luong Vinh Quoc Danh, Ph.D
Faculty of Electronics and Communications
College of Engineering, Can Tho University
Source: Chaiporn Jaikaeo, Kasetsart University 1
Outline
Analog and digital data/signals
Time and frequency domain views of signals
Bandwidth and bit rate
Transmitting digital signals as analog
Theoretical data rate
Signal impairment
2
Analog vs. Digital Data
Analog data
Data take on continuous values
E.g., human voice, temperature reading
Digital data
Data take on discrete values
E.g., text, integers
3
Analog vs. Digital Signals
To be transmitted, data must be
transformed to electromagnetic signals
value
Analog signals
have an infinite number of
values in a range time
Digital signals value
Have a limited number of
values
time
4
Data and Signals
Analog Data Analog Signal
Telephone
Digital Data Analog Signal
Modem
Analog Data Digital Signal
Codec
Digital Data Digital Signal
Digital
transmitter
5
Periodic Signals
A periodic signal completes a pattern
within a timeframe, called a period
A signal x(t) is periodic if and only if
x(t) = x(t+T) - < t <
value
period
time
6
Sine Waves
Simplest form of periodic signal
signal strength
period
T = 1/f
peak
amplitude
time
General form: x(t) = A×sin(2ft + )
phase / phase shift
7
Sine Waves
Example: The period of a signal is 100 ms. What is its
frequency in kilohertz?
Solution
First we change 100 ms to seconds, and then we
calculate the frequency from the period (1 Hz = 10−3
kHz).
8
Sine Waves
Three sine waves with the same amplitude & frequency, but different phases
9
Sine Waves
Example: A sine wave is offset 1/6 cycle with respect to
time 0. What is its phase in degrees and radians?
Solution
We know that 1 complete cycle is 360°. Therefore, 1/6
cycle is
10
Varying Sine Waves
A = 1, f = 1, = 0 A = 2, f = 1, = 0
A = 1, f = 2, = 0 A = 1, f = 1, = /4
11
Time vs. Frequency Domains
Consider the signal
+ =
12
Time vs. Frequency Domains
signal strength signal strength
1 1
0 0
2 4 time 2 4 frequency
-1 -1
Time Domain Representation Frequency Domain Representation
plots amplitude as a function plots each sine wave’s peak
of time amplitude against its frequency
13
Time vs. Frequency Domains
The time domain and frequency domain of three sine waves
14
Example:
Graphic
Equalizer
15
Fourier Analysis
Any periodic signal can be represented
as a sum of sinusoids Joseph Fourier
(1768-1830)
known as a Fourier Series
E.g., a square wave:
+ + + +…
16
Fourier Analysis
Every periodic signal consists of
DC component
AC components
Fundamental frequency (f0)
Harmonics (multiples of f0)
fundamental 3rd harmonic 5th harmonic
frequency
DC component
AC components
17
Fourier Series: Representations
Amplitude-phase form
Sine-cosine form
Complex exponential form (Euler formula)
Note:
cn are complex
j = -1
eix = cos x + j sin x
18
Fourier Series: Representation
Sine-cosine representation
19
Fourier Series: Representation
Amplitude-phase representation
20
Fourier Series: Representation
Euler formula representation
Note the Euler's Formula:
eix = cos x + i sin x
21
Non-periodic Signals
Consider a pulse train of period T, and the
width of each pulse is
x(t)
T
-/2 /2 t
22
Non-periodic Signals
x(t) X(f)
T t f0 f
x(t) X(f)
T t f0 f
x(t) X(f)
T= t f
23
The time and frequency domains of a nonperiodic signal
24
Frequency Spectrum
Frequency domain representation shows
the frequency spectrum of a signal
E.g., square wave
...
0 0 f0 3f0 5f0 7f0 9f0 11f0
25
Frequency Spectrum
A ‘C’ sound (male voice)
A ‘X’ sound (male voice) 26
Bandwidth
A property of a medium
Indicates the difference between the highest and the
lowest frequencies allowed to pass
<highest freq allowed> – <lowest freq allowed>
Cutoff frequency
(half of power is lost)
Also a property of a single spectrum
27
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
28
Example
What is the bandwidth of this signal?
A medium can pass frequencies from 4000
to 7000 Hz. Can the above signal pass
through?
29
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.
Solution
Let fh be the highest frequency, fl the lowest frequency, and B the
bandwidth. Then
30
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
31
Bit rate: Example
Example: Assume we need to download text documents
at the rate of 100 pages per minute. What is the required
bit rate of the channel?
Solution
A page is an average of 24 lines with 80 characters in
each line. If we assume that one character requires 8
bits, the bit rate is
32
Bit rate: Example
33
Two digital signals: one with two signal levels and the other
with four signal levels
34
The time and frequency domains of periodic and nonperiodic
digital signals
35
Baseband transmission
Baseband transmission
Sending a digital signal over a channel without
changing it to an analog signal
Baseband transmission requires a low-pass
channel
36
Note
A digital signal is a composite analog
signal with an infinite bandwidth.
37
Baseband transmission using a dedicated medium
(where the entire bandwidth of the medium is used as one single channel)
38
39
In a low-pass channel with limited bandwidth, we approximate the digital
signal with an analog signal. The level of approximation depends on the
bandwidth available.
40
Low-pass channel with limited bandwidth
We need a channel that can handle frequencies 0, N/4, and N/2.
This rough approximation is referred to as using the first harmonic
(N/2) frequency. The required bandwidth is
41
To make the shape of the analog signal look more like that of a digital
signal, we need to add more harmonics of the frequencies. We need to increase
the bandwidth. We can increase the bandwidth to 3N/2, 5N/2, 7N/2, and so on.
42
Using one harmonic
Digital Analog
1 1 1 1 1 1 1 1 1 1 1 1
1 sec
Bit rate = 6 f=0
Digital Analog
1 0 1 0 1 0 1 0 1 0 1 0
Bit rate = 6 f=3
43
Using more harmonics
Adding 3rd harmonic to improve quality
Digital Analog
1 0 1 0 1 0 1 0 1 0 1 0
Bit rate = 6 f0 = 3, fmax = 9
44
Table 3.2 Bandwidth requirements
45
Example 3.22: What is the required bandwidth of a low-pass channel if
we need to send 1 Mbps by using baseband transmission?
46
Digital vs. Analog Bandwidth
Digital bandwidth
Expressed in bits per second (bps)
Analog bandwidth
Expressed in Hertz (Hz)
Bit rate and bandwidth are proportional to each other
47
Low-Pass and Band-Pass Channels
Low-pass channel
gain
f1 frequency
Band-pass channel
gain
f1 f2 frequency
48
Modulation of a digital signal for transmission on a bandpass channel
49
Transmission Impairment
50
Signal Attenuation
Attenuation Loss of energy
Signal strength falls off with distance
Transmission medium
Attenuation depends on medium
Attenuation is an increasing function of
frequency
51
Relative Signal Strength
Measured in Decibel (dB)
dB = 10 log10 (P2/P1)
P1 and P2 are signal powers at points 1 and 2,
respectively
Point 1 Point 2
Positive dB signal is amplified (gains strength)
Negative dB signal is attenuated (loses strength)
52
Example
Sometimes the decibel is used to measure signal power
in milliwatts. In this case, it is referred to as dBm and is
calculated as dBm = 10 log10 PmW , where Pm is the
power in milliwatts. Calculate the power of a signal with
dBm = −30.
Solution
We can calculate the power in the signal as
53
Example
The loss in a cable is usually defined in decibels per
kilometer (dB/km). If the signal at the beginning of a
cable with −0.3 dB/km has a power of 2 mW, what is the
power of the signal at 5 km?
Solution
The loss in the cable in decibels is 5 × (−0.3) = −1.5 dB.
We can calculate the power as
54
Example
55
Signal Distortion
Distortion Change in signal shape
Only happens in guided media
Propagation velocity varies with frequency
56
Noise
Noise Undesirable signals added
between the transmitter and the receiver
Types of noise
Thermal
Due to random motion of electrons in a wire
57
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
58
Signal-to-Noise Ratio
Signal-to-Noise Ratio (SNR)
59
Example
The power of a signal is 10 mW and the power of the
noise is 1 μW; what are the values of SNR and SNRdB ?
Solution
The values of SNR and SNRdB can be calculated as
follows:
60
Data Rate: Noiseless Channels
Nyquist Theorem
Bit Rate = 2 × Bandwidth × log2L
Harry Nyquist
(1889-1976)
Bit rate in bps
Bandwidth in Hz
L – number of signal levels
61
Example
62
Example
We need to send 265 kbps over a noiseless channel with
a bandwidth of 20 kHz. How many signal levels do we
need?
Solution
We can use the Nyquist formula as shown:
Since this result is not a power of 2, we need to either
increase the number of levels or reduce the bit rate. If we
have 128 levels, the bit rate is 280 kbps. If we have 64
levels, the bit rate is 240 kbps.
63
Data Rate: Noisy Channels
Shannon Capacity
Capacity = Bandwidth × log2(1+SNR)
Capacity (maximum bit rate) in bps
Bandwidth in Hz
Claude Elwood Shannon
SNR – Signal-to-Noise Ratio (1916-2001)
64
Example
A telephone line normally has a bandwidth of 3000. The
signal-to-noise ratio is usually 3162. Calculate the
theoretical highest bit rate of a regular telephone line.
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.
65
Example
We have a channel with a 1-MHz bandwidth. The SNR
for this channel is 63. What are the appropriate bit rate
and signal level?
Solution
First, use the Shannon capacity
followed by the Nyquist formula
The Shannon formula gives us 6 Mbps, the upper limit. For
better performance we choose something lower, 4 Mbps.
66
Note
The Shannon capacity gives us the
upper limit; the Nyquist formula tells us
how many signal levels we need.
67
Network Performance
Bandwidth
Hertz
Bits per second (bps)
Throughput
Actual data rate
Bandwidth is a potential measurement of a link;
Throughput is an actual measurement of how fast we
can send data.
Latency (delay)
Time it takes for an entire message to
completely arrive at the destination
68
Throughput
Example: A network with bandwidth of 10 Mbps can
pass only an average of 12,000 frames per minute with
each frame carrying an average of 10,000 bits. What is
the throughput of this network?
Solution
We can calculate the throughput as
The throughput is almost one-fifth of the bandwidth in
this case.
69
Latency
Composed of
Propagation time
Transmission time
Queuing time
Processing time
Entire
message
propagation
time
transmission
time
70
Latency
Sender Receiver
First bit leaves
Propagation time
First bit arrives
Data bits
Last bit leaves Transmission time
Last bit arrives
Time Time
71
Example
72
Example
What are the propagation time and the transmission time for a
2.5-kbyte message (an e-mail) if the bandwidth of the network is 1
Gbps? Assume that the distance between the sender and the
receiver is 12,000 km and that light travels at 2.4 × 108 m/s.
Solution
Note that in this case, because the message is short and the
bandwidth is high, the dominant factor is the propagation time,
not the transmission time. The transmission time can be ignored.
73
Bandwidth-Delay Product
The link is seen as a pipe
Cross section = bandwidth
Length = delay
Bandwidth-delay product defines the
number of bits that can fill the link
74
Figure Filling the link with bits for case 1
75
Data is sent in bursts and sender needs to wait for the acknowledgment of
each burst before sending the next one. To use the maximum capability of
the link, we need to send a burst of data of (2 × bandwidth × delay) bits.
76
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
77