Module1.2
Module1.2
Module1.2
COMPUTER NETWORKS
Module-1.2
Physical Layer
1
Functions of Physical Layer
• Physical characteristics of interfaces and medium: characteristics of
Interface between devices and types of transmission media.
• Representation of bits: It encodes the bit stream into electrical or
optical signal.
• Data rate: Transmission rate, number of bits sent each second.
• Synchronization of bits: Sender and the receiver clocks must be
synchronized.
• Line configuration: Connection of devices to the media. Point-to-point
or multipoint connection.
• Physical topology: How devices are connected to make a network?
• Transmission mode: It defines direction of the transmission between
two devices. Ex. Simplex , half-duplex or full duplex mode).
Transmission Media
Transmission Media and Physical Layer
Transmission Media
• Transmission media are located below the
physical layer.
• Transmission Rate
• Distances
Categories of transmission media
GUIDED MEDIA
Adv:
• Ordinary telephone wire
• Cheapest
• Easiest to install
• It has high speed capacity
• 100 meter limit
Dis adv:
• Bandwidth is low when compared
with Coaxial Cable
• Provides less protection from
interference.
Shielded Twisted Pair (STP)
Adv:
• Metal braid or sheathing that
reduces interference
• Easy to install
• Eliminates crosstalk
• Higher capacity than unshielded
twisted pair
• Increases the signaling rate
Disadv:
• More expensive
• Harder to handle
(thick, heavy)
• Difficult to manufacture
Coaxial cable
• Coaxial cable (or coax) carries signals of higher frequency
ranges than those in twisted-pair cable, in part because
the two media are constructed quite differently.
• Inner conductor is a solid wire outer conductor serves both as a
shield against noise and a second conductor.
• Coaxial cable was widely used in analog telephone
networks where a single coaxial network could carry
10,000 voice signals. Later it was used in digital
telephone networks where a single coaxial cable could
carry digital data up to 600 Mbps.
• However, coaxial cable in telephone networks has largely
been replaced today with fiber-optic cable.
Guided Media – Coaxial Cable
Coaxial Cable
Coaxial Cable
Guided Media – Coaxial Cable
Applications:
Analog telephone networks
Cable TV networks
• Higher bandwidth
• Less expensive
• Immune to electrical noise
• More secure – easy to notice an attempt to intercept
signal
• Physical characterizes
– Glass or plastic fibers
– Very thin (thinner than human hair)
– Material is light
Fiber Construction
17
Optical fiber
18
Guided Media –Optical Fiber Cable
Applications:
Backbone networks – SONET
Cable TV – backbone
LAN
100Base-FX network (Fast Ethernet)
100Base-X
Unguided Media
• Line-of-site
• Cost effective
• Easy to implement
One of the major functions of the physical layer is to move data in the
form of electromagnetic signals across a transmission medium.
Whether you are collecting numerical statistics from another computer,
sending animated pictures from a design workstation, etc.. you are working
with the transmission of data across network connections.
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.
Analog and Digital
For example, an analog clock that has hour, minute, and second hands
gives information in a continuous form; the movements of the hands are
continuous. On the other hand, a digital clock that reports the hours and
the minutes will change suddenly from 10:05 to 10:06.
Analog data, such as the sounds made by a human voice, take on
continuous values. When someone speaks, an analog wave is created in
the air. This can be captured by a microphone sampled and converted to a
digital signal.
Digital data take on discrete values. For example, data are stored in
computer memory in the form of 0s and 1s. They can be converted to a
digital signal for transmission across a medium
Analog and Digital Signals
Like the data they represent, signals can be either analog or digital. An analog signal
has infinitely many levels of intensity over a period of time. As the wave moves from
value A to value B, it passes through and includes an infinite number of values along
its path. A digital signal, on the other hand, can have only a limited number of
defined values. Although each value can be any number, it is often as simple as 1 and
0.
• Bit Rate
• Bit Length
Two digital signals: one with two signal levels and the other with four signal levels
Example
A digital signal has eight levels. How many bits are needed per level? We
calculate the number of bits from the formula
32
Causes of impairment
33
Attenuation
Figure : Attenuation
Decibel
To show that a signal has lost or gained strength, engineers use the unit of the
decibel. The decibel (dB) measures the relative strengths of one signal at two
different points. Note that the decibel is negative if a signal is attenuated and
positive if a signal is amplified.
36
Example
A signal travels through an amplifier, and its power is increased 10 times. This
means that P2 = 10P1 . In this case, the amplification (gain of power) can be
calculated as
37
Distortion
Figure : Distortion
Noise
Noise is another cause of impairment. Several types of noise, such as thermal
noise, induced noise, crosstalk, and impulse noise, may corrupt the signal.
Thermal noise is the random motion of electrons in a wire which creates an
extra signal not originally sent by the transmitter.
Induced noise comes from sources such as motors and appliances.
Crosstalk is the effect of one wire on the other. One wire acts as a sending
antenna and the other as the receiving antenna.
Impulse noise is a spike (a signal with high energy in a very short time) that
comes from power lines, lightning, and so on.
Figure: Noise
Signal-to-Noise Ratio (SNR)
To find the theoretical bit rate limit, we need to know the ratio of the signal
power to the noise power. The signal-to-noise ratio is defined as:
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 ?
Solution
The values of SNR and SNRdB can be calculated as follows:
41
Example
42
Figure Two cases of SNR: a high SNR and a low SNR
43
DATA RATE LIMITS
Two Categories:
• Noiseless Channel: Nyquist Bit Rate
• Noisy Channel: Shannon Capacity
44
Nyquist Theorem
Sampling Theorem is a principle of reproducing a
sample rate, that is at least twice the frequency of the
original signal.
This principle is very important in all analog-to-digital
conversion and is applied in digital audio and video to
minimize a problem referred to as Aliasing.
In digital communication, signals are representations of
information that are transmitted from one point to
another in a digital format.
Nyquist Sampling is a critical theorem that is used to
derive the frequency of the signal to reconstruct
without aliasing.
Aliasing refers to the distortion or unwanted noise that
may destroy a signal’s integral value.
45
It states that to reconstruct a continuous analog signal
from its sampled version accurately, the sampling rate must be
at least twice the highest frequency present in the signal.
This ensures that there are enough samples taken per
unit of time to capture all the details of the original waveform
without introducing aliasing, which can cause distortion or
artifacts in the reconstructed signal.
The Formula for Nyquist Sampling Theorem can be given as
fs>=2fm
Where,
fsrefers to frequency signal
fmrefers to max frequency
46
Nyquist Theorem
Nyquist gives the upper bound for the bit rate of a transmission
system by calculating the bit rate directly from the number of bits
in a symbol (or signal levels) and the bandwidth of the system
(assuming 2 symbols/per cycle and first harmonic).
49
Applications of Nyquist Theorem
Sampling Rate: It is used to provide the minimum sampling rate
for signal reconstruction.
Audio: It is used to capture analog or simple audio from digital
mediums.
Digital Transmission: It is used to provide accurate digital data
transmission in digital mediums.
Image Sampling: It is quite helpful in image sampling by
measuring the twice of original size of Image.
Reducing Aliasing in Audio Signals: It can successfully
reproduce audio signals without aliasing.
FM Radio Signals: It is used to sample FM radio signals by the
nyquist formula.
Data Compression: It can reduce the size of data without
content or information loss.
Medical Imaging: It is majorly used in medical instruments such
as MRI (Magnetic Resonance Imaging) and CT Scans (Computed
Tomography),.
50
Example
51
Example
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.
52
Noisy Channel and Shannon Capacity
53
Example
Solution
First, we use the Shannon formula to find the upper limit.
54
The Shannon’s Capacity theorem
It states that
“Shannon’s Channel Capacity theorem States that the
maximum rate at which information can be transmitted over a
communication channel of a specified bandwidth in the presence of
noise”
In simple terms, Shannon’s channel capacity tells us the
theoretical highest limit in which any channel can
transmit signals with the presence of noise.
55
56
Terms related to Shannon Capacity
Channel: A channel is a medium used to transmit signals, data or
any information.
Noise: A noise is any unwanted signal which can negatively impact
the quality of any transmission.
Shannon’s limit: Shannon’s limit is a theoretical limit which tells us
the maximum capacity for a signal to be transmitted through a
channel.
Statement of the Theorem
Shannon’s Channel Capacity theorem States that the maximum
rate at which information can be transmitted over a communication
channel of a specified bandwidth in the presence of noise.
C=Blog2(1+S/N)
•C is the channel capacity in bits per second.
•B is the bandwidth of the channel.
•S is the average received signal.
•N is the average power or noise.
•S/N is the signal to noise ratio.
57
Applications of Shannon’s Channel Capacity :
Telecommunications: The Shannon theorem helps maintain the
capacity of any telecommunication channel which can help in error-
less communication and aid engineers, or system architects to build a
better model.
In wireless communication: The Shannon theorem helps us
calculate the maximum data that can be transferred in a wireless
channel without error or data loss.
Digital Signals: Shannon theorem is also used in signals to calculate
the amount of information that can be recovered from a signal with a
particular noise.
Audio and Video compression: Shannon theorem is also widely
used in audio and video compression to derive an upper bound for
the compression of data or data communication signals.
Storage and Maintenance of data: Shannon theorem helps us
understand a mathematical derivation for storing and maintaining
data efficiently and preventing data loss by implementing concepts
such as Quantization.
58
Advantages of Shannon Capacity :
Structured framework: Shannon’s theorem breaks down
communication processes into components such as sender,
message channel, noise, receiver and feedback
59
Disadvantages of Shannon Capacity :
Longer delays: Shannon capacity may cause delays
considering it requires theoretical proof to proceed with the
communication inside a channel.
Error rate Increases with Information rate: Shannon
theorem may be error prone if the amount of information
increases.
Errorless Channel: Due to noise an errorless channel
may not be possible considering this theorem only
provides conceptual proof.
Increased Complexity: Shannon capacity theorem may
increase complexity since deriving a channel capacity
requires complex and expensive methods which can
largely impact the complexity of data communication.
Limited Scope: Shannon theorem only considers noise
while modern communication faces a lot of other
challenges such as interference, fading, packet loss and
security concerns.
60
PERFORMANCE
The term bandwidth can also refer to the number of bits per second that a
channel, a link, or even a network can transmit. For example, one can say the
bandwidth of a Fast Ethernet network (or the links in this network) is a
maximum of 100 Mbps. This means that this network can send 100 Mbps.
Throughput
The throughput is a measure of how fast we can actually send data through a network.
Although, at first glance, bandwidth in bits per second and throughput seem the same, they
are different. 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.
Imagine a highway designed to transmit 1000 cars per minute from one point to another.
However, if there is congestion on the road, this figure may be reduced to 100 cars per minute.
The bandwidth is 1000 cars per minute; the throughput is 100 cars per minute.
Latency (Delay)
The latency or delay defines how long it takes for an entire message to
completely arrive at the destination from the time the first bit is sent out
from the source.
We can say that latency is made of four components: propagation time,
transmission time, queuing time and processing delay.
Bandwidth and delay are two performance metrics of a link. what is very
important in data communications is the product of the two, the bandwidth-
delay product.
Note
The bandwidth-delay product defines the
number of bits that can fill the link.
Jitter
6.78
Twisted Pair Cable
This cable is the most commonly used and is
cheaper than others. It is lightweight, cheap, can be
installed easily, and they support many different
types of network.
Twisted-pair cables are used in telephone lines to
provide voice and data channels,LANs,DSLs.
6.80
Time-division multiplexing
There are two types of Time Division Multiplexing :
6.81
Statistical TDM: Statistical TDM is a type of Time Division Multiplexing
where the output frame collects data from the input frame till it is
full, not leaving an empty slot like in Synchronous TDM.
In statistical TDM, we need to include the address of each particular
data in the slot that is being sent to the output frame.
6.82
Spread spectrum
Spread Spectrum is a wireless communication technology that
distributes the transmitted signal across a larger bandwidth than the
original signal. This approach improves communication security and
dependability by increasing the signal’s resistance to interference,
eavesdropping, and jamming.
Spread spectrum is a method of transmitting radio signals over a wide
range of frequencies.
It spreads the signal over a broader bandwidth than the minimum
required to send the information, which provides advantages such as
increased resistance to interference, improved security, and enhanced
privacy.
This method uses air as a medium and extends bandwidth to create a
protective envelope for signals, reducing the risk of interception or
jamming.
The ‘spread code’ is a patterned series of numbers that enlarges the
original signal’s bandwidth.
This method is typically used in situations where secure transmission is
crucial.
Principles of Spread Spectrum process
To allow redundancy, it is necessary that the
bandwidth allocated to each station should be much
larger than needed.
The spreading process occurs after the signal is
created by the source.
Advantages of FHSS
Synchronization is not greatly dependent on
distance.
Processing Gain is higher than DSSS.
Disadvantages of FHSS
The bandwidth of the FHSS system is too large (in
GHz).
Complex and expensive Digital frequency
synthesizers are required.
Applications of FHSS
FHSS is used in Bluetooth
Military Communications
Walkie-Talkies
Wireless Local Area Networks (WLANs)
Remote Controls
Direct Sequence Spread Spectrum (DSSS)
Direct Sequence Spread Spectrum Synchronous (DSSS)
In Direct Sequence Spread Spectrum, the bandwidth
of the original signal is also expanded by a different
technique.
Each data bit is replaced with n bits using a
spreading code called chips, and the bit rate of the
chip is called as chip-rate.
The chip rate is n times the bit rate of the original
signal.
In wireless LAN, the sequence with n = 11 is used.
The original data is multiplied by chips (spreading
code) to get the spread signal.
The required bandwidth of the spread signal is 11
times larger than the bandwidth of the original
signal.
Direct Sequence Spread Spectrum Synchronous (DSSS)
Advantages of DSSS
The DSSS System combats the jamming most effectively.
The performance of DSSS in presence of noise is superior to
FHSS.
Interference is minimized against the signals.
Disadvantages of DSSS
Processing Gain is lower than FHSS.
Channel Bandwidth is less than FHSS.
Synchronization is affected by the variable distance between
the transmitter and receiver.
Applications of DSSS
GPS (Global Positioning System)
CDMA (Code Division Multiple Access) Cellular Networks
Satellite Communication
Wireless Sensor Networks
END OF MODULE 1.2