Chapter 3 - 1 Physical Layer
Chapter 3 - 1 Physical Layer
PHYSICAL LAYER
Physical layer is a bottom layer that support the communication between two hops or
nodes, either a computer or router through communication media. It define the
characteristics of the interface between the devices and the transmission media. It also
defines the type of transmission media. To be transmitted, bits must be encoded in to
signals: electrical or optical.
The Physical Layer is the lowest layer of the TCP/IP model. It deals It also specifies the
line configuration (point-to-point or multiport), data rate (number of bits sent each
second), and topology in the network. There are no specific protocols that are used in this
layer. The functionality of the physical layer varies from network-to-network.
2
2, Digital signal
A series of discrete pulses, representing one bit and zero bits.
Cheaper
Less susceptible to noise/interference
Digital signals are now the preferred choice.
3
Figure 3.4. Aperiodic signal
3.2. Encoding and Modulation
Encoding is the process of converting the data or a given sequence of characters,
symbols, alphabets etc., into a specified format, for the secured transmission of data.
Modulation has been defined as the process of combining an input signal m(t) and the
carrier frequency fc to produce a signal s(t) whose bandwidth is usually centered on fc.
A. Digital data to Digital signals
is a sequence of discrete voltage pulses
each pulse is a signal element
Binary data encoded into signal elements.
4
Non Return to Zero (NRZ): to map the data value 1 onto the high signal and the
data value 0 onto the low signal.
o Has 2 types, NRZ-L and NRZ-I
o NRZ-L: change in the polarity of the signal, only when the incoming signal
changes from 1 to 0 or from 0 to 1.
o NRZ-I: If a 1 occurs at the incoming signal, then there occurs a transition
at the beginning of the bit interval. For a 0 at the incoming signal, there
is no transition at the beginning of the bit interval.
Bi-phase Manchester: the transition is done at the middle of the bit-interval. The
transition for the resultant pulse is from High to Low in the middle of the interval,
for the input bit 1. While the transition is from Low to High for the input bit 0.
Differential Manchester: ‘1’ is encoded with the first half of the signal equal to the
last half of the previous bit’s signal. ‘0’ is encoded with the first half of the signal
opposite to the last half of the previous bit’s signal.)
5
signals in voice frequency range of about 300 to 3400 Hz. The digital devices are attached
to the shift keying which converts digital data to analog signals.
Amplitude shift keying (ASK), Frequency shift keying (FSK), and Phase shift keying (PSK)
are three methods of conversion.
ASK: the two binary values are presented by two different amplitudes of the carrier
frequency.
𝐴𝑐𝑜𝑠(2𝜋𝑓𝑐 𝑡) 𝑏𝑖𝑛𝑎𝑟𝑦 1
𝐴𝑆𝐾 … … … . . 𝑠(𝑡) = {
0 𝑏𝑖𝑛𝑎𝑟𝑦 0
FSK: Two binary values are presented by two different frequencies.
𝐴𝑐𝑜𝑠(2𝜋𝑓1 𝑡) 𝑏𝑖𝑛𝑎𝑟𝑦 1
𝐹𝑆𝐾 … … … … 𝑠(𝑡) = {
𝐴𝑐𝑜𝑠(2𝜋𝑓2 𝑡) 𝑏𝑖𝑛𝑎𝑟𝑦 0
PSK: the phase of the carrier signal is changed by varying the sine and cosine inputs at a
particular time.
6
C. Analog data to Digital signals
Process of converting analog data into digital signal is known as digitization. The device
used for converting analog data into digital form is Codec.
7
permits frequency division multiplexing
Types of analog modulation techniques
Amplitude Modulation
Frequency Modulation
Phase Modulation
8
Communication is possible over the air (radio frequency), using a physical media (cable),
and light (optical fiber). All mediums are capable of multiplexing. When multiple senders
try to send over a single medium, a device called Multiplexer divides the physical channel
and allocates one to each. On the other end of communication, a De-multiplexer receives
data from a single medium, identifies each, and sends to different receivers.
The widespread use of multiplexing in data communications can be:
The higher the data rate, the more cost-effective the transmission facility. That is, for
a given application and over a given distance, the cost per kbps declines with an increase
in the data rate of the transmission facility. Similarly, the cost of transmission and
receiving equipment, per kbps, declines with increasing data rate.
For example, for most terminal and personal computer applications, a data rate of
between 9600 bps and 64 kbps is generally adequate.
Categories of Multiplexing
9
i. Frequency division multiplexing (FDM)
FDM is an analog multiplexing technique that combines analog signals.
Signals of different frequencies are combined into a composite signal and is transmitted
on the single link.
Bandwidth of a link should be greater than the combined bandwidths of the various
channels.
Each signal is having different frequency.
Channels are separated by the strips of unused bandwidth called Guard Bands (to
prevent overlapping).
10
Figure 3.13. FDM De-multiplexing
Example:
• Five channels, each with a 100-kHz bandwidth, are to be multiplexed together. What is
the minimum bandwidth of the link if there is a need for a guard band of 10 kHz between
the channels to prevent interference?
Solution
For five channels, we need at least four guard bands. This means that the required
bandwidth is at least
5 × 100 + 4 × 10 = 540 kHz, as shown in Figure.
11
ii. Wavelength Division Multiplexing (WDM)
WDM is an analog multiplexing technique.
Working is same as FDM.
In WDM different signals are optical or light signals that are transmitted through
optical fiber.
Various light waves from different sources are combined to form a composite light
signal that is transmitted across the channel to the receiver.
At the receiver side, this composite light signal is broken into different light waves by
De-multiplexer.
This Combining and the Splitting of light waves is done by using a PRISM. Prism bends
beam of light based on the angle of incidence and the frequency of light wave.
12
iii. Time Division Multiplexing (TDM)
TDM is a digital multiplexing technique for combining several low-rate channels into one
high-rate one.
It is the digital multiplexing technique.
Channel/Link is not divided on the basis of frequency but on the basis of time.
Total time available in the channel is divided between several users.
Each user is allotted a particular time interval called time slot or slice.
In TDM the data rate capacity of the transmission medium should be greater than the
data rate required by sending of receiving devices.
Synchronous TDM
Asynchronous TDM
a. Synchronous TDM
Each device is given same Time Slot to transmit the data over the link, whether the
device has any data to transmit or not.
Each device places its data onto the link when its Time Slot arrives, each device is given
the possession of line turn by turn.
If any device does not have data to send then its time slot remains empty.
Time slots are organized into Frames and each frame consists of one or more time slots.
13
If there are n sending devices there will be n slots in frames.
Example-2
Four channels are multiplexed using TDM. If each channel sends 100 bytes /s and we
multiplex 1 byte per channel, show the frame traveling on the link, the size of the frame,
the duration of a frame, the frame rate, and the bit rate for the link.
Solution-2
The multiplexer is shown in Figure below. Each frame carries 1 byte from each channel;
the size of each frame, therefore, is 4 bytes, or 32 bits. Because each channel is sending 100
14
bytes/s and a frame carries 1 byte from each channel, the frame rate must be 100 frames per
second. The bit rate is 100 × 32, or 3200 bps.
b. Asynchronous TDM
15
3.3.2. Spreading
Most stations use air as the medium for communication, stations must be able to share
the medium without an interception and without being subject to jamming from a
malicious intruder. To achieve this, spread-spectrum techniques add redundancy means
it uses extended bandwidth to accommodate signals in a protective envelope so that
more secure transmission is possible. The spread code is a series of numbers that looks
random but are actually a pattern. The original bandwidth of the signal
gets enlarged (spread) through the spread code as shown in the figure.
16
2. Ability to resist multipath propagation.
3. They cannot easily intercept any unauthorized person.
4. They are resistant to jamming.
5. The spread spectrum provides immunity to distortion due to multipath propagation.
6. The spread spectrum offers multiple access capabilities.
Two types of techniques for Spread Spectrum are:
1. Frequency Hopping Spread Spectrum (FHSS)
2. Direct Sequence Spread Spectrum (DSSS)
Frequency Hopping Spread Spectrum (FHSS):
In Frequency Hopping Spread Spectrum (FHSS), different carrier frequencies are
modulated by the source signal i.e. M carrier frequencies are modulated by the signal. At
one moment signal modulates one carrier frequency and at the subsequent moments, it
modulates other carrier frequencies. The general block diagram of FHSS is shown in the
below figure.
17
hopping period and is passed to the frequency synthesizer. The synthesizer generates a
carrier signal of that frequency. The figure above shows the spread signal via FHSS.
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.
18
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 DSSS.
Channel Bandwidth is less than FHSS.
Synchronization is affected by the variable distance between the transmitter and
receiver.
3.4. Transmission Media
Data transmission occurs between a transmitter & receiver via some medium
Transmission media may be classified as guided or unguided
guided medium
In considering the design of data transmission systems, key concerns are data rate
and distance: the greater the data rate and distance, the better.
19
Transmission Characteristics of Guided Media
20
The two basic types of twisted-pair transmission lines specified are unshielded twisted
pair (UTP) and shielded twisted pair (STP).
Unshielded Twisted Pair (UTP)
o ordinary telephone wire
o cheapest
o easiest to install
o suffers from external EM interference
Shielded Twisted Pair (STP)
o metal braid or sheathing that reduces interference
o more expensive
o harder to handle (thick, heavy)
Because of the advent of modern UTP and STP twisted pair cables, coaxial cable is seen
very less in computer networks, but still has very high importance in analog systems, such
as cable television distribution networks. The basic coaxial cable consists of a center
conductor surrounded by a dielectric material (insulation), then a concentric (uniform
distance from the center) shielding, and finally a rubber environmental protection outer
jacket. A coaxial cable with one layer of foil insulation and one layer of braided shielding is
referred to as dual shielded and if two layers of foil insulation and two layers of braided
metal shielding are present, it’s called quad shielding.
21
3.18. Coaxial cable
Performance limited by attenuation & noise
Analog signals
amplifiers every few km for long distance transmission
Closer spacing if higher frequency is used
The usable spectrum for analog signaling extends to about 500 MHz
Digital signals
repeater every 1km
Closer spacing for higher data rates.
iii. Fiber optics cable
An optical communications system is one that uses light as the carrier of information. They
use glass or plastic fiber cables to contain the light waves and guide them in a manner
similar to the way EM waves are guided through a metallic transmission media.
22
3.19. Fiber optic cable
Benefit of Fiber optics
Greater capacity: data rates of hundreds of Gbps.
smaller size & weight
lower attenuation
Electromagnetic isolation- Optical fiber systems are not affected by external EMF.
Greater repeater spacing: Fewer repeaters mean lower cost and fewer sources of error.
Transmission Characteristics of fiber optics
uses total internal reflection to transmit light
effectively acts as wave guide for 1014 to 1015 Hz
can use several different light sources
Light Emitting Diode (LED)
cheaper, operates over a greater temperature range, has a longer operational life
Injection Laser Diode (ILD)
more efficient, has greater data rate
Optical Fiber Transmission Modes
i. Multimode fiber: Thick cable (62.5/125 microns) causes more ray collisions, so you have
to transmit slower. Typically use LED for light source, shorter distance transmissions
ii. Single mode fiber: Thin cable (8.3/125 microns) – very little reflection, fast
transmission, typically uses a laser, longer transmission distances.
23
3.5. Switching
Switching is process to forward packets coming in from one port to a port leading
towards the destination. When data comes on a port it is called ingress, and when
data leaves a port or goes out it is called egress. A communication system may
include number of switches and nodes. At broad level, switching can be divided into
two major categories:
A switched network consists of a series of interlinked nodes, called switches. Switches are
devices capable of creating temporary connections between two or more devices linked to
the switch. In a switched network, some of these nodes are connected to the end systems
24
(computers or telephones, for example). Others are used only for routing. Figure shows a
switched network.
25
I. Circuit-switched networks
A circuit-switched network consists of a set of switches connected by physical links. A
connection between two stations is a dedicated path made of one or more links. However,
each connection uses only one dedicated channel on each link. Each link is normally
divided into n channels by using FDM or TDM.
➢ If any packet is missing or corrupted, then the message will be sent to resend the
message.
➢ If the correct order of the packets is reached, then the acknowledgment message will be
sent.
26
Figure 3.23. Packet Switched network
There are two approaches to Packet Switching:
Datagram and
Virtual circuit.
A. Datagram Networks
27
The datagram networks are sometimes referred to as connectionless networks. The term
connectionless here means that the switch (packet switch) does not keep information
about the connection state. There are no setup or teardown phases. Each packet is treated
the same by a switch regardless of its source or destination.
A switch in a datagram network uses a routing table that is based on the destination
address. The destination address in the header of a packet in a datagram network remains
the same during the entire journey of the packet.
28
Figure 3.25 Virtual circuit network
1. As in a circuit-switched network, there are setup and teardown phases in addition to the
data transfer phase.
2. Resources can be allocated during the setup phase, as in a circuit-switched network, or
on demand, as in a datagram network.
3. As in a datagram network, data are packetized and each packet carries an address in the
header. However, the address in the header has local jurisdiction (it defines what should
be the next switch and the channel on which the packet is being carried), not end-to-end
jurisdiction.
4. As in a circuit-switched network, all packets follow the same path established during
the connection.
5. A virtual-circuit network is normally implemented in the data link layer, while a circuit
switched network is implemented in the physical layer and a datagram network in the
network layer.
III. Message -switched networks
This technique was somewhere in middle of circuit switching and packet switching. In
message switching, the whole message is treated as a data unit and is switching/ transferred
in its entirety.
A switch working on message switching, first receives the whole message and buffers it
until there are resources available to transfer it to the next hop. If the next hop is not having
29
enough resource to accommodate large size message, the message is stored and switch
waits.
Messages are not stored Packets may be stored until Packets stored until delivered
delivered
No overhead bits after call Overhead bits in each message Overhead bits in each packet.
setup
Busy signal if called party busy Sender may be notified if Sender notified of connection
packet not delivered denial
30