Physical Layer: Data and Signals
Physical Layer: Data and Signals
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
To be
be transmitted,
transmitted, data
data must
must be
be
transformed
transformed toto electromagnetic
electromagneticsignals
signals
Analog signals value
4
Data and Signals
value
period
time
6
Sine Waves
Simplest form of periodic signal
signal strength
period
T = 1/f
peak
amplitude
time
7
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
8
Time vs. Frequency Domains
Consider the signal
1
x(t ) sin( 2 t ) sin( 2 3t )
3
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
Demo: sine.py 9
Time vs. Frequency Domains
1 1
0 0
2 4 time 2 4 frequency
-1 -1
Demo: Equalizer 10
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:
+ + + +…
11
Fourier Analysis
Every periodic signal consists of
DC component
AC components
Fundamental frequency (f0)
Harmonics (multiples of f0)
DC component
AC components
12
Fourier Series: Representations
Amplitude-phase form
x(t ) c0 cn cos( 2f 0 nt n )
n 1
Sine-cosine form
x(t ) a0 an cos( 2f 0 nt ) bn sin( 2f 0 nt )
n 1
Complex exponential
form (Euler formula)
Note:
x(t ) n
c e j 2f 0 nt
cn are complex
n
j = -1
ejx = cos x + j sin x
Demo: Falstad 13
The time and frequency domains of a nonperiodic signal
19
Frequency Spectrum
Frequency domain representation shows
the frequency spectrum of a signal
E.g., square wave
...
0 0 f0 3f0 5f0 7f0 9f0 11f0
20
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
Cutofffrequency
frequency
(half
(half ofpower
of powerisislost)
lost)
freq
...
Transmission medium
0 f0 3f0 5f0 7f0 9f0 f 0 f0 3f0 5f0 f
t t
22
Example
What is the bandwidth of this signal?
1
x(t ) 2 sin( 2000t ) sin( 6000t )
3
23
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
24
Two digital signals: one with two signal levels and the other
with four signal levels
25
The time and frequency domains of periodic and nonperiodic
digital signals
26
Baseband transmission
Baseband transmission
Sending a digital signal over a channel
without changing it to an analog signal
27
Note
28
Baseband transmission using a dedicated medium
29
Digital vs. Analog
Using one harmonic
Digital 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
Digital Analog
1 0 1 0 1 0 1 0 1 0 1 0
31
Table 3.2 Bandwidth requirements
32
Digital vs. Analog Bandwidth
Digital bandwidth
Expressed in bits per second (bps)
Analog bandwidth
Expressed in Hertz (Hz)
Bit
Bit rate
rate and
and bandwidth
bandwidth are
are proportional
proportional to
to each
each other
other
33
Low-Pass and Band-Pass Channels
Low-pass channel
gain
f1 frequency
Band-pass channel
gain
f1 f2 frequency
34
Modulation of a digital signal for transmission on a bandpass channel
35
Transmission Impairment
Attenuation
Distortion
Noise
36
Signal Attenuation
Attenuation Loss of energy
Signal strength falls off with distance
Transmission medium
37
Relative Signal Strength
Measured in Decibel (dB)
dB
dB==10
10log
log1010(P
(P2/P 1)
2/P1)
Solution
We can calculate the power in the signal as
39
Example
40
Signal Distortion
Distortion Change in signal shape
Only happens in guided media
Propagation velocity varies with frequency
41
Noise
Noise Undesirable signals added
between the transmitter and the receiver
Types of noise
Thermal
Due to random motion of electrons in a wire
42
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
43
Signal-to-Noise Ratio
Signal-to-Noise Ratio (SNR)
Powersignal
SNR
Powernoise
44
Example
Solution
The values of SNR and SNRdB can be calculated as
follows:
45
Data Rate: Noiseless Channels
Nyquist Theorem
Bit
BitRate
Rate==22××Bandwidth
Bandwidth××log
log22LL
Harry Nyquist
(1889-1976)
Bit rate in bps
Bandwidth in Hz
L – number of signal levels
46
Example
48
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.
49
Example
Solution
First, use the Shannon capacity
50
Note
51
Network Performance
Bandwidth
Hertz
Bits per second (bps)
Throughput
Actual data rate
Latency (delay)
Time it takes for an entire message to
completely arrive at the destination
52
Latency
Composed of
Propagation time
Transmission time
Queuing time
Processing time
Entire
message
propagation
time
transmission
time
53
Latency
Sender Receiver
Propagation time
First bit arrives
Data bits
Last bit leaves Transmission time
Time Time
54
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
55
Figure Filling the link with bits for case 1
56
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
57