Physical Layer
Physical Layer
:– 3
Physical Layer
Signals:-
Any signals can be classified into one of the following two types:-
a) Analog signal:-
b) Digital signals:-
Digital signal takes the form of pulses, where we have something or nothing,
(i.e.1 or 0 in digital term). Digital signals are non-continuous, they change in
individual steps. They consist of pulses or digit or discrete levels or values.
Frequency :-
The number cycle per second, made by a signal (alternative current) is called
frequency (f).
Mean, frequency is the nothing but the number of cycle a signal complete in one
second.
It is also defined as the reciprocal of the time period (T) of the signal.
1 GHz=109 Hz
E.g. 1. A sine wave complete one cycle in 3 seconds, what is its frequency?
1 1
Solution: f = = = 0.33 Hz
𝑇 3
E.g. 2. A sine wave complete 5 cycle in 10 msec. (𝜇) what is the frequency &
period of the sine wave?
1 1
Time period = T= = = 2 msec.
𝑓 0.5 ∗ 10^6
E.g. 3. Sine wave complete one cycle in 15 msec. What is its frequency?
1 1
Solution:- : f = = = 66,666.66 Hz or
𝑇 15∗10 ^−6
Amplitude:-
The maximum value of positive or negative half cycle of a signal is called
Amplitude or peak value.
The strength of the signal or amplitude is given by the y-axis. Thus, the amplitude
of a signal is equal to its vertical distance from the horizontal x-axis.
Phase:-
a. The term phase describes the position of the waveform relative to time 0.
b. If the wave that can be shifted backward or forward along the time axis, phase
describes the amount of that shift.
1. 3600 = 2 π rad
2. 10 = 2 π /3600 rad
3. 1 rad = 360/(2 π)
The bit rate is usually measured in bits per second (bps). E.g.:- Kilobits (kbps), or
Mbps. The bit rate is speed of communication.
Band Width:-
The range of frequencies contained in a composite signal is it’s bandwidth. The
bandwidth is normally a difference two numbers. For example, if a composite
signal contains frequencies between 1000 and 5000, its bandwidth is 5000-1000 or
4000.
This means that, the bandwidth of a composite signal is the difference between the
highest and the lowest frequencies contained in that signal.
Transmission Media :-
On any network, the various entities must communicate through some form of
media. Two or more computers can communicate through cables, light and radio
waves.
One of the most common ways to transport data from one computer to another
computer is to write data on a magnetic tape or floppy disk and transport them
to the destination machine and read them back in.
Advantages:-
Disadvantages:-
1) Twisted Pair :-
Twisted pair is the cheapest and most commonly used guided transmission
medium. It is mostly used in LAN and in telephone networking as the medium
that connects the hosts and the local telephone center.
It is made up of two copper wire twisted together. One wire transfers the signal
voltage level and the other transfers the ground voltage level.
A regular twisted pair commonly used in telephone they are also used an
LAN.
Transmission characteristics :-
(1) They are used for both analog and digital signals. For analog, amplifiers
are required every 5 to 6 km., whereas for digital signals, repeaters are
required every 2 or 3 km.
(2) This medium is limited in distance, bandwidth and data rate.
(3) This medium is quite susceptible to electromagnetic interference (EMI)
and noise.
Applications :-
2) Coaxial cable:-.
Physical Description:-
Transmission characteristics:-
1] It can be used to transmit both, analog and digital signals.
2] Because of its shielded, concentric construction, it is less susceptible to
interference and crosstalk.
3] Base band cables give data rates up to 10 Mbps.
Applications:-
1] Television distribution
4] LAN
(4) Optical fiber:-
The fiber optic transmitter uses light source to modulate an incoming voltage
signal into light pulses. These are then guided by reflection through a fiber
optic cable (the channel) to receiving end.
The receiver uses a light detector to transform the incoming light pulses into a
voltage signal from which the original data can be restored.
Physical Description:-
It has a cylindrical, shape and made up of three parts - the core, cladding and
the jacket or sleeve to protect the core and cladding from moisture, abrasion
and other hazards.
i) Single mode fibers allow the light to travel in a straight line and require laser
as source.
1] Optical fiber offers very wide bandwidth for transmission of signals. Bit
rates in the range of few gigabits per second are feasible with present
technology.
5] Glass being an insulator, optical fibers are safe when laid along a high
tension power time.
2] Military applications.
4] Subscriber loops.
4] The transmitter first converts the data signal into electromagnetic waves and
transmits them using a suitable antenna.
5] The receiver receives them using a receiving antenna and converts the
electromagnetic waves into data signal again.
1] Radio Waves
2] Microwaves
3] Infrared
1. Infrared waves:-
1] The electromagnetic waves having frequencies from the 300 GH to 400 THz
(wave lengths from 1mm to 770 mm) are known as infrared waves.
2] Infrared waves are widely used for short range communication also.
4] Infrared waves are directional, cheap, easy to build but do not pass through
solid objects.
8] The remote control used on T.V and V.C.R and stereos used infrared
communication.
9] These are used for communication between keyboard, mouse, PCs and
printers.
B] Radio Waves:-
1] Radio waves are in the frequency range of 3Kh to 1GHz.
2] This range covers AM and FM radio as well as Ultra High Frequency (UHF)
and Very High Frequency (VHF) television.
3] Radio waves are easy to generate can travel longer distances and so are widely
used for communication.
4] Radio waves are Omni-directional. i.e. they travel in all direction from the
source. Hence the transmitter and receiver need not be aligned.
a] Cellular communication .
b] Wireless LAN.
d] Satellite communication.
e] AM and FM radio.
i] Electromagnetic waves having frequencies between 1and 300 GHz are called
microwaves.
iii] Microwaves, due to their unidirectional properties, are very useful when
unicast (one to one) communication is needed between the sender and the
receiver.
They are used in cellular phones, satellite network and wireless LANs.
2] Satellite communication.
Application:-
2] Cellular telephone.
3] Television distribution.
Applications of Satellite :-
1. They are used for television distribution.
2. Long distance telephone transmission.
3. Used for GPS communication / Application.
4. Used in military for communication.
5. Used in radio transmission.
Modem :-
Computers transfer data using already existed telephone network. However
telephone use analog signals and analog circuits and computers generate digital
signals. The problem is how to send digital signals over an analog network.
The modem is a device that converts digital signal into an analog one, which could
be carried over the telephone network and at the other end, convert it back into a
digital signal.
Fig. :- Use of modem for sending digital data over analog lines
Analog Transmission :-
An analog signal is a continuously varying signal over a period of time.
The telephone network use circuit switching. The telephone network had its
beginnings in the late 1800.
Since many DTE and DCE are connected by a telephone channel, it should
prove useful to examine the telephone system.
1] End office:-
Each subscriber Customers) telephone has two copper wires that go directly
to the telephone companies end office also called as central office (co), local
exchange. This means each telephone is directly connected to the end office.
Thousand of these offices may be installed around the country. The distance
between DTE and end office is about 1 to 10km.
2) Local loop:-
The two copper wire connections running between telephone and central
office is known as local loop. If the caller and callee are attached to the same
end office, the office sets up a direct electrical connection between the two
and if not, the call is set up at a higher level.
3) Each end offices have a number of outgoing lines to one or more nearby
switching centers called toll offices (or tandem office). These Links are
called toll connecting trunks.
If the callers and callees end offices are connected to the same toll office, the
connection may be established from this office.
4) Higher up in hierarchy are the sectional and regional office that form a
network by which toll offices are connected. The toll, sectional, and regional
exchanges communicate with each other via high bandwidth inter toll
trunks.
RS232C:-
The Recommended Standard (RS) 232C, better known as the Serial Line Interface,
typically provides a communication channel between a computer and a device
such as modem.
1) Mechanical Specification:-
Which describe the connectors and wires of the interface. RS232C has 25pin
connector. The top row has pins 1 to 13 and bottom row has pins 14 to 25
numbered left to right. It is a D-type connector.
3) Functional Specification:-
Fig. :- Commonly used pins in DB-25 connector. The above fig. show
commonly used 9 pins testing the modem, clocking data etc.
Digital Transmission:-
Digital information is better transmitted in its digital form, because converting
the signal to analog and sanding it through an analog network can be costly.
The digital data refers to the information that has discrete state.
Digital transmission refers the 0 and 1 digits. For example – data stored in the
computer memory in the form of 0 and 1.
1] Manchester encoding:-
With Manchester encoding, each bit period is divided into two equal
intervals. A binary 1 bit is sent by having the voltage set high during the
first interval and low in the second one. It is mapped in to the binary pair
of 10.
A bit 0 is just reverse. A bit 0 is send by having the voltage set low
during the first interval and high in the second interval [01].
This scheme ensures that every bit period has a transition in the middle,
making it easy for the receiver to synchronize with the sender.
The Manchester encoding is used in Ethernet and Token Ring network.
But the disadvantage is that it requires twice as much bandwidth as
binary encoding.
We require equipment called codec (Coder / Decoder) at both the source and the
destination to perform these functions. We also call it A/D (Analog to Digital)
converter and D/A (Digital to Analog) converter.
The analog signal produced by each station is a low pass signals, all in the same
range.
1) In modulation, the carrier signal is modulated only in amplitude value. So that its
amplitude varies with the changing amplitudes of the modulating signals.
3) The frequency and phase of the carrier remain the same, only the amplitude
changes to follow variations in the information.
The following figure shows the modulating signal becomes on envelope to the
carrier.
The following fig. shows the relationship of the modulating signal, the carrier
signal and the resulting FM signal.
1) In analog PM, the phase of the AC signal wave, also called the carrier, varies in a
continuous manner. Thus, there are infinitely many possible carrier phase states.
3) When data input waveform is positive, the carrier phase shifts to one direction, it
is negative and input waveform is negative direction when phase shifts of 180 o.
4) The peak amplitude and frequency of the carrier signal remain constant, but as
the amplitude of the information signal changes corresponding.
In parallel data transfer, all the bits of a code word (byte) are transferred
simultaneously. There is one wire for each bit of information to be transmitted.
This means a multi wire cable should be used. Multiple parallel lines that carry
binary data are referred to as data bus.
By grouping, we can send data 'n' bites at a time instead of 1. This is called parallel
transmission.
The mechanism for parallel transmission is conceptually simple: use 'n' wires to
send 'n' bits at one time. That’s way each bit has own wire, and all 'n' bits of one
group can be transmitted with each clock tick from one device to another.
Above figure shows parallel transmission for 8 bits. The eight wires are bundled in
a cable.
Parallel data transmission is extremely fast, since all the bits of the word are
transferred simultaneously.
Parallel data transfer is not used for long distance communication, because of cost
and signal attenuation, however limited distances, multi-wire cables can be used.
This is used for shorts distance communication. Application of parallel data transfer
is communication between computer & printer.
2) Serial Data Transfer :-
In serial data transfer each bit of the character is transmitted one after the other.
Each bit is transmitted for a fixed interval of time on a single data line. Since the
data is sent bit by bit, it takes longer to send data this way than it does to transmit it
by parallel means.
The advantage of serial transmission over parallel transmission is that with only one
communication channel (link), serial transmission reduces the cost of transmission
over parallel.
In the case of serial data communication each bit of the word is transmitted one
after the other.
b) Only one byte is sent at a time. After sending one byte the next byte can be sent
after an arbitrary time delay.
c) In this mode the transmitter and receiver operator at different clock frequency.
d) As the data transmission can begin at any instant, it becomes difficult for the
receiver to understand the instant at which the byte has been transmitted.
e) To help the receiver to receive the data byte "START" and "STOP" bits are
used along with each data byte.
f) Beginning of the data byte, start bit is transmitted and it is binary zero (0).
g) After the start bit the individual bites of the data byte are transmitted.
h) After the last bit of data byte, a stop bit is included, to signal the end of the data
byte. Stop bit is represented as binary one (1).
j) In the asynchronous transmission the timing of the signal is not important, instead
information is received & translated by agreed upon patterns.
Disadvantages :-
1) Asynchronous transmission is slow, because of use of start and stop bits and
the gaps between unit.
Advantages :-
1) Synchronization between the transmitter and receiver is not necessary.
2) It is possible to transmit signals from the sources having different bit rates.
2) Synchronous Transmission :-
a) Synchronous transmission is carried out under the control of a common master
clock. Here the bits which, are being transmitted are synchronous to a reference
clock.
b) The receiver operates at exactly the same clock frequency as that of transmitter.
d) Each byte, however introduced onto the transmission link without the gap
between it and the next one.
e) No start & stop bits are used instead the bytes are transmitted as a block in a
continuous stream of bites.
Advantages:-
1) The main advantage is speed. The speed of transmission is much higher than
that of asynchronous transmission. There is no gap, start and stop bit present.
Disadvantages:-
1) The timing is very important. The accuracy of the received data is dependent
entirely on the ability of the receiver to count the received bit accurately.
2) The transmitter and receiver have to operate at the same clock frequency.
Comparison of Serial and Parallel Transmission :-
Sr. Serial
Parameter Parallel Transmission
No. Transmission
Number of wires required
1 N wires 1 Wire
to transmit N bits.
Number of bits transmitted
2 N bits 1 bit
simultaneously.
3 Speed of data. Fast Slow
Higher due to more Low, since only
4 Cost
number of conductors one wire is used
Short distance Long distance
communication such as computer to
5 Application
computer to printer computer
communication. communication.
Sr.
Parameter Asynchronous Synchronous
No.
1 Synchronization Not needed Needed
2 Start and Stop bits Used Not Used
3 Gap between data blocks Present Absent
4 Speed Low High
Communication Communication
5 Application between a computer between two
and keyboard computers
Multiplexing :-
Whenever the bandwidth of a medium linking two devices is greater than the
bandwidth needs of the devices, the link can be shared.
The method of dividing a physical channel into many logical channels so that a
number of independent signals may be simultaneously transmitted on it is known
as multiplexing.
MUX:- Multiplexer
DEMUX:- Demultiplexer
Fig.:- Multiplexing
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. One link can have
many (n) channels.
FDM is an analog technique that can be applied when the bandwidth of link (in
hertz) is greater than the combined bandwidth of the signal to be transmitted.
FDM sub divides the frequency bandwidth into several non-overlapping frequency
band called channel.
Each channel is now allotted its own frequency band. Sender using a certain
frequency band can use this band continuously.
To avoid neighboring channels overlapping (interfering) with one other the extreme
ends of the channel frequencies are left unused to provide a gap. This gap is called
guard spaces.
ADVANTAGES :-
2) FDM does not need synchronization between its transmitter & receiver for
proper operation.
4) Due to slow narrow band fading only a single channel gets affected.
DISADVANTAGES:-
2) Another example is, cable television, in which many television channel are
carried simultaneously on a single cable.
In TDM, each logical channel is allocated a time slot to transmit over a shared
physical channel.
For example, each logical channel may be given a 5 millisecond time slot to
transmit, during this time slot it will have the entire frequency (capacity) bandwidth
of the line to transmit.
In TDM, guard space represent time gap, have to separate the different periods
when the sender use medium.
A WDM system uses a multiplexer at the transmitter to join the signals together,
and demultiplexer at the receiver to split them apart. With the right type of fiber it is
possible to have a device that does both simultaneously, and can function as an
optical add- drop multiplexer.
Switching :-
The process of moving data from one interface and delivering it through another
interface, selecting the best paths between machines that stores messages is called
switching.
Switching elements are specialized computer that connects two or more
transmission lines. When data arrives on an incoming line, the switching elements
must choose an outgoing line on which to forward them. These switching elements
are also called routers.
1) Circuit Switching
2) Message Switching
3) Packet Switching
1) Circuit Switching:-
In circuit switching, end to end path or circuit must be established between the
communicating machines. The machines can use this path until the connection is
released.
This method involves the physical interconnection of two devices. Thus it is used in
the telephone system.
a) Circuit Establishment :-
Before any data transfer can begin, end to end path has to be set up. Some setup
time is required.
b) Data Transfer:-
c) Circuit Disconnect:
The circuit can be released by either of the connected stations after data transfer
takes place.
The following fig. shows the circuit switching. Here six rectangles represent
switching offices, each having 3 incoming & 3 outgoing lines. When call is placed,
a physical connection is established between the incoming line and one of the
output line.
Fig.:- Circuit Switching
Advantages:-
1) This method transfer data in real time with the only delay being in circuit
Disadvantages:-
2) Message Switching :-
In message switching no physical path or circuit is set up between the sender & the
receiver. Instead, when the sender has a block of data to send, it is sent to
intermediate switching office (router), these offices stores it & send it to the
appropriate station when an output line is free. This mechanism is referred to as
‘store and forward’ method.
Each block is received as a whole, chucked for errors & then retransmitted. Thus a
block may 'visit' several switching station before reaching the destination.
Fig.:- Message Switching Technique
Let us say end system (computer) ‘A’ want to send message to end system ‘H’. ‘A’
sends its message along with the address of the destination & its own address to
entry node. The addresses are included in the header of the massage.
ADVANTAGES :-
2) The sender can send data whenever it wants to & does not need to check the
status of the receiver -whether it is busy or idle.
DISADVANTAGES:-
2) If there is a lot of traffic on the network, the delay will be very high thereby
reducing throughput.
3) Packet Switching :-
b) A limit is placed on the maximum block size there by making it easier to store
packet & route them through the network.
d) Each packet is routed independent of the other packet to the same destination. i.e.
the packet for the same destination may be sent via different paths. Thus, it is
possible that the packets arrive out of order.
e) The most well known use of packet switching is the Internet & LAN. Mobile
phone technology (e.g. GPRS) also use packet switching.
ADVANTAGES :-
DISADVANTAGES :-
2) Requires more overheads since each packets has to carry a lot control
information.