Physical Layer & Signal Basics
Physical Layer & Signal Basics
● One major task is to provide services for the data link layer.
● The data in the data link layer consists of O’s and 1’s organized into frames that are
ready to be sent across the transmission medium.
● This stream of O’s and 1’s must first be converted into another entity: signals.
● One of the services provided by the physical layer is to create a signal that represents
this stream of bits.
● One of the major functions of the physical layer is to move data in the form of
electromagnetic signals across a transmission medium.
● Generally, the data usable to a person or application are not in a form that can be
transmitted over a network.
● For example, a photograph must first be changed to a form that transmission media
can accept. Transmission media work by conducting energy along a physical path.
•Digital data refers to information that has discrete states with discrete values
• Clock with hour/min/second numeric display 3:02:06: Digital clock
• Method of Transmission
• Modulation: Requires a Signal to superimpose data
• Transmit the signal from a transmitter with data/information and
• Receive the signal with data at the receiver
Signal
•A ‘Signal’ can be analog or digital
• Simple periodic signal (sine wave) cannot be decomposed into simpler signals
•
In data communications, we commonly use periodic analog signals and non periodic digital signals.
Forms of ‘SIGNAL’ – Periodic & Non Periodic
•Non Periodic
Forms of ‘SIGNAL’ – Periodic & Non Periodic
•Periodic signal: Peak Amplitude
The peak amplitude of a signal is the absolute value of its highest intensity, proportional
to the energy it carries. For electric signals, peak amplitude is normally measured in volts.
Two signals with the same phase and frequency, but different amplitudes
The power in your house can be represented by a sine wave with a peak amplitude of 155 to 170 V.
Forms of ‘SIGNAL’ – Periodic & Non Periodic
Periodic signal: Frequency
• Frequency is the rate of change with respect to time
• Change in a short span of time means high frequency
• Change over a long span of time means low frequency
Wavelength binds the period or the frequency of a simple sine wave to the propagation
speed of the medium
Frequency of a signal is independent of the medium, the wavelength depends on both the
frequency and the medium.
The wavelength is the distance a simple signal can travel in one period.
Wavelength can be calculated if one is given the propagation speed (the speed of light) and the
period of the signal.
However, since period and frequency are related to each other, if we represent wavelength by λ,
propagation speed by c (speed of light), and frequency by f, we get
The propagation speed of electromagnetic signals depends on the medium and on the
frequency of the signal.
any composite signal is a combination of simple sine waves with different frequencies,
amplitudes, and phases.
A periodic composite signal can be decomposed into a series of simple sine waves with
discrete frequencies - frequencies that have integer values (1, 2, 3, and so on).
The bandwidth of a composite signal is the difference between the highest and the lowest frequencies
contained in that signal.
Given the frequencies listed below, calculate the corresponding periods.
a. 24Hz
b. 8 MHz
c. 140 KHz
Given the following periods, calculate the corresponding frequencies.
a. 5 s
b. 12 µs
c. 220 ns
What is the bandwidth of a signal that can be decomposed into five sine waves with
frequencies at 0, 20, 50, 100, and 200 Hz? All peak amplitudes are the same. Draw the
bandwidth.
A periodic composite signal with a bandwidth of 2000 Hz is composed of two sine
waves. The first one has a frequency of 100 Hz with a maximum amplitude of 20
V; the second one has a maximum amplitude of 5 V. Draw the bandwidth.
A nonperiodic composite signal has a bandwidth of 200 kHz, with a middle frequency of 140 kHz and
peak amplitude of 20 V. The two extreme frequencies have an amplitude of 0. Draw the frequency
domain of the signal.
Solution
The lowest frequency must be at 40 kHz and the highest at 240 kHz.
Communication – Analog and Digital
● Analog communication
● Digital Communication
• Transmission Channel
A digital signal has nine levels. How many bits are needed per level? We calculate the number of
bits by using the formula. Each signal level is represented by 3.17 bits. However, this answer is
not realistic. The number of bits sent per level needs to be an integer as well as a power of 2. For
this example, 4 bits can represent one level.
Bit Rate
Most digital signals are non periodic, and thus period and frequency are not appropriate
characteristics.
Another term-bit rate (instead of frequency)- is used to describe digital signals.
The bit rate is the number of bits sent, expressed in bits per second (bps).
Bit Length
We have discussed the concept of the wavelength for an analog signal: the distance one cycle
occupies on the transmission medium.
We can define something similar for a digital signal: the bit length. The bit length is the distance
one bit occupies on the transmission medium.
○ Since the bandwidth is limited the digital signal is approximated with an analog signal, levels of
approximation depend on the bandwidth available.
■ Rough Approximation
■ Better Approximation
Transmission of Digital Signals
• Baseband Transmission:
• Case 2: Low Pass channel with limited bandwidth - Rough Approximation
○ Assume bitrate = N bits/m to simulate an analog signal, considering the worst-case situation has
maximum changes in the digital signal
○ Ex: 3 bit signal simulated by using analog signals
Transmission of Digital Signals
• Baseband Transmission:
• Case 2: Low Pass channel with limited bandwidth - Better Approximation
Transmission of Digital Signals
● When a signal, simple or composite, travels through a medium, it loses some of its
energy in overcoming the resistance of the medium.
● That is why a wire carrying electric signals gets warm, if not hot, after a while.
● To compensate for this loss, amplifiers are used to amplify the signal.
● Figure below shows the effect of attenuation and amplification.
Transmission Impairment
● A signal travels from point A to point B. At point A, the signal power is 100 W.
At point B, the power is 90 W. What is the attenuation in decibels?
The attenuation of a signal is -10 dB. What is the final signal power if it was originally 5
W?
We use the decibel to measure the changes in the strength of a signal is that decibel numbers can be
added (or subtracted) when we are measuring several points (cascading) instead of just two.
In this case, the decibel value can be calculated as
Transmission Impairment
● Distortion means that the signal changes its form or shape.
● Distortion can occur in a composite signal made of different frequencies. Each signal
component has its own propagation speed through a medium and, therefore, its own
delay in arriving at the final destination.
● Differences in delay may create a difference in phase if the delay is not exactly the
same as the period duration.
● In other words, signal components at the receiver have phases different from what
they had at the sender.
● The shape of the composite signal is therefore not the same.
Transmission Impairment
● Noise:
○ Is another cause of signal impairment which occurs while a signal is travelling through a
transmission media.
To find the theoretical bit rate limit, we need to know the ratio of the signal power to the
noise power.
We consider the average signal power and the average noise power because these may
change with time.
SNR is actually the ratio of what is wanted (signal) to what is not wanted (noise).
A high SNR means the signal is less corrupted by noise; a low SNR means the signal is
more corrupted by noise.
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 ?
The values of SNR and SNRdB for a noiseless channel are
• Bandwidth available
• For a noiseless channel, the Nyquist bit rate formula defines the
theoretical maximum bit rate
2. We need to send 265 kbps over a noiseless channel with a bandwidth of 20 kHz. How many signal levels
do we need?
Given a specific bandwidth, we can have any bitrate we want, by increasing the number
of signal levels.
When we increase the number of signal level’ s, we impose a burden on the receiver.
If the number of levels in a signal is just 2, the receiver can easily distinguish between a
0 and a 1.
If the level of a signal is 64, the receiver must be very sophisticated to distinguish
between 64 different levels.
In other words, increasing the levels of a signal reduces the reliability of the system.
Shannon capacity for noisy channel
• Shannon capacity is used, to determine the theoretical highest data rate for a
noisy channel
C = B * log2 (1 + SNR)
= B *1og2 (l + 0)
= B *log2 1
= B*0
= 0
This means that the capacity of this channel is zero regardless of the bandwidth.
Calculate the theoretical highest bit rate of a regular telephone line. A telephone
line normally has a bandwidth of 3000 Hz (300 to 3300 Hz) assigned for data
communications. The signal-to-noise ratio is usually 3162.
C = B * log2 (1 + SNR)
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.
The signal-to-noise ratio is often given in decibels.
Assume that SNRdB = 36 and the channel bandwidth is 2 MHz. Find the
theoretical channel capacity?
For practical purposes, when the SNR is very high, we can assume that
SNR + 1 is almost the same as SNR.
C= B * ( SNRdB /3 )
Bandwidth
Throughput
Latency (Delay)
Bandwidth-Delay Product
Jitter
Bandwidth
One characteristic that measures network performance is bandwidth.
However, the term can be used in two different contexts with two different measuring values: bandwidth in hertz
and bandwidth in bits per second.
Bandwidth in Hertz
Bandwidth in hertz is the range of frequencies contained in a composite signal or the range of frequencies a
channel can pass. For example, we can say the bandwidth of a subscriber telephone line is 4 kHz.
A link may have a bandwidth of B bps, but we can only send T bps through this link
with T always less than B. In other words, the bandwidth is a potential measurement
of a link; the throughput is an actual measurement of how fast we can send data.
For example, we may have a link with a bandwidth of 1 Mbps, but the devices
connected to the end of the link may handle only 200 kbps. This means that we cannot
send more than 200 kbps through this link.
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 : total bits / time period
We can say that latency is made of four components: propagation time, transmission
time, queuing time and processing delay.
Bandwidth-Delay Product
Bandwidth and delay are two performance metrics of a link.
Let us assume that we have a link with a bandwidth of 1 bps.
We also assume that the delay of the link is 5 s We want to see what the bandwidth-
delay product means in this case.
Filling the link with bits
Figure Filling the link with bits
Figure Concept of bandwidth-delay product
The bandwidth-delay product defines the number of bits that can fill the link.
DIGITAL-TO-DIGITAL CONVERSION
A computer network is designed to send information from one point to another.
Line coding is always needed; block coding and scrambling may or may not be
needed.
Line Coding
Line coding is the process of converting digital data to digital signals.
At the sender, digital data are encoded into a digital signal; at the
receiver, the digital data are recreated by decoding the digital signal.
Line coding and decoding
Characteristics
1. Data element and a signal element.
A data element is the smallest entity that can represent a piece of information: this is the
bit.
In digital data communications, a signal element carries data elements.
A signal element is the shortest unit (time wise) of a digital signal.
In other words, data elements are what we need to send; signal elements are what we
can send.
Data elements are being carried; signal elements are the carriers.
Define a ratio r which is the number of data elements carried by each signal element.
Following figure shows several situations with different values of r.
Signal element versus data element
Suppose each data element is a person who needs to be carried from one place to another.
When r > 1, it means more than one person is travelling in a vehicle (a carpool, for
example).
2. Data Rate Versus Signal Rate
We can formulate the relationship between data rate and signal rate as
S =c * N * -1/r baud
Solution
We assume that the average value of c is 1/2 . The baud rate is then
3. Bandwidth
Bandwidth (range of frequencies) is proportional to the signal rate (baud rate).
maximum data rate if the bandwidth of the channel is given. N max = 1/c * B * r
4. Baseline Wandering
In decoding a digital signal, the receiver calculates a running average of the received
signal power.
The incoming signal power is evaluated against this baseline to determine the value of
the data element.
A long string of Os or 1s can cause a drift in the baseline (baseline wandering) and make it
difficult for the receiver to decode correctly.
When the voltage level in a digital signal is constant for a while, the spectrum creates
very low frequencies.
For example, a telephone line cannot pass frequencies below 200 Hz. Also a
long-distance link may use one or more transformers to isolate different parts of the line
electrically.
To correctly interpret the signals received from the sender, the receiver's bit intervals
must correspond exactly to the sender's bit intervals.
If the receiver clock is faster or slower, the bit intervals are not matched and the
receiver might misinterpret the signals.
This can be achieved if there are transitions in the signal that alert the receiver to the
beginning, middle, or end of the pulse.
If the receiver's clock is out of synchronization, these points can reset the clock.
Effect of lack of synchronization
Line coding schemes
Unipolar Scheme
In a unipolar scheme, all the signal levels are on one side of the time axis, either above or
below.
NRZ (Non-Return-to-Zero) Traditionally, a unipolar scheme was designed as a non-return-to-
zero (NRZ) scheme in which the positive voltage defines bit I and the zero voltage defines bit O.
It is called NRZ because the signal does not return to zero at the middle of the bit.
Polar Schemes
In polar schemes, the voltages are on the both sides of the time axis.
For example, the voltage level for 0 can be positive and the voltage level for I can be negative.
Non-Return-to-Zero (NRZ) In polar NRZ encoding, we use two levels of voltage amplitude.
We can have two versions of polar NRZ: NRZ-L and NRZ-I, as shown in
In NRZ-L the level of the voltage determines the value of the bit.
In Manchester encoding, the duration of the bit is divided into two halves.
The voltage remains at one level during the first half and moves to the other level
in the second half.
Differential Manchester, on the other hand, combines the ideas of RZ and NRZ-I.
There is always a transition at the middle of the bit, but the bit values are
determined at the beginning of the bit. If the next bit is 0, there is a transition; if the
next bit is 1, there is none.
Polar biphase: Manchester and differential Manchester schemes
Bipolar schemes: AMI and pseudoternary
In bipolar encoding (sometimes called multilevel binary), there are three voltage levels:
positive, negative, and zero.
The voltage level for one data element is at zero, while the voltage level for the other element alternates
between positive and negative.
A common bipolar encoding scheme is called bipolar alternate mark inversion (AMI).
In the term alternate mark inversion, the word mark comes from telegraphy and means 1.
So AMI means alternate 1 inversion.
A neutral zero voltage represents binary 0.
The goal is to increase the number of bits per baud by encoding a pattern of m data
elements into a pattern of n signal elements.
We only have two types of data elements (0s and 1s), which means that a group of m
data elements can produce a combination of 2m data patterns.
We can have different types of signal elements by allowing different signal levels.
Data encoding is not possible if 2m >Ln because some of the data patterns cannot be
encoded.
The code designers have classified these types of coding as mBnL, where m is the length
of the binary pattern, B means binary data, n is the length of the signal pattern, and L is
the number of levels in the signaling.
Multilevel: 2B1Q scheme
Multilevel: 8B6T scheme
Multiline Transmission: MLT-3
The multiline transmission, three level (MLT-3) scheme uses three levels (+v, 0, and -
V) and three transition rules to move between the levels.
In natural sampling, a high-speed switch is turned on for only the small period of time
when the sampling occurs.
The result is a sequence of samples that retains the shape of the analog signal.
The most common sampling method, called sample and hold, however, creates flat-top
samples by using a circuit.
The set of amplitudes can be infinite with nonintegral values between the two limits.
These values cannot be used in the encoding process. The following are the steps in quantization:
1. We assume that the original analog signal has instantaneous amplitudes between Vmin and
Vmax
2. We divide the range into L zones, each of height ∆ (delta). ∆ =(Vmax - Vmin )/L
3. We assign quantized values of 0 to L - I to the midpoint of each zone.
4. We approximate the value of the sample amplitude to the quantized values.
As a simple example, assume that we have a sampled signal and the sample amplitudes are between -20
and +20 V. We decide to have eight levels (L = 8). This means that ~ =5 V. Figure below shows this
example.
Quantization and encoding of a sampled signal
❖PCM is a very complex technique. Other techniques have been developed to
reduce the complexity of PCM.
❖The simplest is delta modulation. PCM finds the value of the signal amplitude
for each sample; DM finds the change from the previous sample.
❖Note that there are no code words here; bits are sent one after another.
Modulator
❖ The modulator is used at the sender site to create a stream of bits from an analog signal.
❖ The process records the small positive or negative changes, called (delta) ∂.
❖ If the delta is positive, the process records a 1; if it is negative, the process records a 0.
❖ However, the process needs a base against which the analog signal is compared.
❖ The modulator builds a second signal that resembles a staircase.
❖ Finding the change is then reduced to comparing the input signal with the gradually made staircase
signal.
The process of delta modulation
Delta modulation components
The modulator, at each sampling interval, compares the value of the analog signal with the
last value of the staircase signal.
If the amplitude of the analog signal is larger, the next bit in the digital data is 1; otherwise,
it is O.
The output of the comparator, however, also makes the staircase itself.
If the next bit is 1, the staircase maker moves the last point of the staircase signal 0 up; it
the next bit is 0, it moves it 0 down.
Note that we need a delay unit to hold the staircase function for a period between two
comparisons.
TRANSMISSION MODES
In parallel mode, multiple bits are sent with each clock tick. In serial mode, 1
bit is sent with each clock tick.
While there is only one way to send parallel data, there are three subclasses of
serial transmission: asynchronous, synchronous, and isochronous.
Data transmission and modes
Parallel transmission
Binary data, consisting of Is and Os, may be organized into groups of n bits each.
Computers produce and consume data in groups of bits much as we conceive of and use spoken
language in the form of words rather than letters. By grouping, we can send data n bits at a time
instead of 1.
• That way each bit has its own wire, and all n bits of one group can be transmitted
with each clock tick from one device to another.
• Typically, the eight wires are bundled in a cable with a connector at each end.
In serial transmission one bit follows another, so we need only one communication channel
rather than n to transmit data between two communicating devices.
The advantage of serial over parallel transmission is that with only one communication
channel, serial transmission reduces the cost of transmission over parallel by roughly a
factor of n.
In asynchronous transmission, we send 1 start bit (0) at the beginning and 1 or more
stop bits (1s) at the end of each byte. There may be a gap between each byte.
Asynchronous here means “asynchronous at the byte level,” but the bits are still
synchronized; their durations are the same.
In synchronous transmission, we send bits one after another without start or
stop bits or gaps. It is the responsibility of the receiver to group the bits.
Asynchronous transmission
Synchronous transmission
MULTIPLEXING
Whenever the bandwidth of a medium linking two devices is greater than the
bandwidth needs of the devices, the link can be shared.
✔ Frequency-Division Multiplexing
✔ Wavelength-Division Multiplexing
✔ Synchronous Time-Division Multiplexing
✔ Statistical Time-Division Multiplexing
Dividing a link into channels
a. In a multiplexed system, n lines share the bandwidth of one link. Above Figure
shows the basic format of a multiplexed system.
b. The lines on the left direct their transmission streams to a multiplexer (MUX),
which combines them into a single stream (many-to -one).
• At the receiving end, that stream is fed into a demultiplexer (DEMUX), which
separates the stream back into its component transmissions (one-to-many) and directs
them to their corresponding lines.
• In above the figure, the word link refers to the physical path.
• The word channel refers to the portion of a link that carries a transmission between a
given pair of lines.
Frequency-division multiplexing (FDM) is an analog technique that can be applied when the
bandwidth of a link (in hertz) is greater than the combined bandwidths of the signals to be
transmitted.
In FDM, signals generated by each sending device modulate different carrier frequencies.
These modulated signals are then combined into a single composite signal that can be transported
by the link.
Carrier frequencies are separated by sufficient bandwidth to accommodate the modulated signal.
These bandwidth ranges are the channels through which the various signals travel.
Channels can be separated by strips of unused bandwidth-guard bands-to prevent signals from
overlapping.
In addition, carrier frequencies must not interfere with the original data frequencies.
In this illustration, the transmission path is divided into three parts, each representing a channel that
carries one transmission.
FDM process (Multiplexing Process)
)
Inside the multiplexer, these similar signals modulates different carrier frequencies (f1,f2, and f3).
The resulting modulated signals are then combined into a single composite signal that is sent out over a media link
that has enough bandwidth to accommodate it.
FDM demultiplexing example
Demultiplexing Process
The demultiplexer uses a series of filters to decompose the multiplexed signal into its constituent
component signals.
The individual signals are then passed to a demodulator that separates them from their carriers and
passes them to the output lines.
❖ Wavelength-division multiplexing (WDM) is designed to use the high-data-rate
capability of fiber-optic cable
❖ The optical fiber data rate is higher than the data rate of metallic transmission
cable.
❖ Using a fiber-optic cable for one single line wastes the available bandwidth.
❖ The combining and splitting of light sources are easily handled by a prism.
Wavelength-division multiplexing (WDM)
From basic physics that a prism bends a beam of light based on the angle of incidence and the
frequency.
Using this technique, a multiplexer can be made to combine several input beams of light, each
containing a narrow band of frequencies, into one output beam of a wider band of frequencies.
• Note that the same link is used as in FDM; here, however, the link is shown sectioned
by time rather than by frequency.
• In the figure, portions of signals 1,2,3, and 4 occupy the link sequentially.
Time Division Multiplexing (TDM)
THANK YOU