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
Trang 1Physical Layer:
Data and Signals
Trang 2Outline
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
Trang 3Analog vs Digital Data
Data take on continuous values
E.g., human voice, temperature reading
Data take on discrete values
E.g., text, integers
Trang 6Periodic Signals
A signal x(t) is periodic if and only if
x(t) = x(t+T) - < t <
value
time
period
Trang 7 General form: x(t) = A×sin(2 ft + )
period
T = 1/f
peak amplitude
Trang 80 0.5 1 1.5 2 2.5 3
A = 1, f = 1, = /4
Varying Sine Waves
Trang 90 0.5 1 1.5 2 2.5 3 -1.5
-1 -0.5 0 0.5 1 1.5
0 0.5 1 1.5 2 2.5 3
Demo: sine.py
) 3 2
sin(
3
1 )
2 sin(
)
Trang 10signal strength
frequency
Time Domain Representation
plots amplitude as a function
of time
Frequency Domain Representation
plots each sine wave’s peak amplitude against its frequency
Demo: Equalizer
Trang 11Fourier Analysis
Any periodic signal can be represented
as a sum of sinusoids
known as a Fourier Series
E.g., a square wave:
=
Joseph Fourier (1768-1830)
Trang 12rd harmonic 5 th harmonic
…
Trang 130 cos( 2 ) sin( 2 ) )
c t
j
n e c t
x( ) 2 0
Trang 14The time and frequency domains of a nonperiodic signal
Trang 15Frequency Spectrum
signal
0 0 f0 3f0 5f0 7f0 9f0 11f0
Trang 16
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>
Also a property of a single spectrum
Cutoff frequency (half of power is lost)
Cutoff frequency (half of power is lost)
Trang 18Example
4000 to 7000 Hz Can the above
signal pass through?
) 6000
sin(
3
1 )
2000 sin(
2 )
Trang 19Digital Signals
Bit rate – number of bits per second
Bit interval – duration of 1 bit
time amplitude
bit interval
Trang 20Two digital signals: one with two signal levels and the other
with four signal levels
Trang 21The time and frequency domains of periodic and nonperiodic
digital signals
Trang 22Baseband transmission
Sending a digital signal over a channel
without changing it to an analog signal
Trang 23A digital signal is a composite analog
signal with an infinite bandwidth.
Note
Trang 24Baseband transmission using a dedicated medium
Trang 25f = 0 Analog
Trang 26Digital vs Analog
Adding 3rd harmonic to improve quality
Trang 2732
Trang 30Modulation of a digital signal for transmission on a bandpass channel
Trang 32Signal Attenuation
Signal strength falls off with distance
of frequency
Transmission medium
Trang 34Sometimes the decibel is used to measure signal power
in milliwatts In this case, it is referred to as dBm and is calculated as dB m = 10 log10 P m , where P m is the power
in milliwatts Calculate the power of a signal with dBm =
−30.
Solution
We can calculate the power in the signal as
Example
Trang 35The 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
Example
Trang 36Signal Distortion
Distortion Change in signal shape
Only happens in guided media
Propagation velocity varies with frequency
Trang 37Noise
between the transmitter and the
Trang 41Bit Rate = 2 × Bandwidth × log2L
Bit Rate = 2 × Bandwidth × log2L
Harry Nyquist (1889-1976)
Trang 42We need to send 265 kbps over a noiseless channel with
a bandwidth of 20 kHz How many signal levels do we need?
Trang 44A 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.
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.
Trang 45We 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
Example
Trang 46The Shannon capacity gives us the
upper limit; the Nyquist formula tells us
how many signal levels we need.
Note
Trang 47 Time it takes for an entire message to
completely arrive at the destination
Trang 48time
propagation
time
Trang 49First bit arrives
Last bit arrives
Sender Receiver
Propagation time
Transmission time
Trang 50Bandwidth-Delay Product
Cross section = bandwidth
Length = delay
number of bits that can fill the link
Trang 51Figure Filling the link with bits for case 1
Trang 52Summary
be transmitted
signal allows easier analysis
Fourier analysis
frequencies to pass
distortion, and noise