Professional Documents
Culture Documents
CN Notes Unit 2 - 1
CN Notes Unit 2 - 1
CN Notes Unit 2 - 1
The physical layer’s major function is to move data in the form of electromagnetic
signals over a transmission medium. The data which is used by a person is not in
a form that can be transmitted over a network.
ASHWINI P 1
COMPUTER NETWORKS UNIT 02
Both data and the signals that represent them can be either Analog or digital in
form.
Analog Data
For Example, an Analog clock which is having hour, minute, and second hands
that gives information in a continuous form; the movement of the hands are
continuous.
Digital Data
For Example, a digital clock which reports the hours and minutes that will change
suddenly from 10:05 to 10:06.
In this way the data can represent, signals can also represent either Analog or
digital.
Analog Signal
Analog signals have infinitely so many levels of intensity over a period of time.
When the wave moves from value A to value B, it passes through and it includes
an infinite number of values along its path.
Digital Signal
Digital signals can have only a limited number of defined values. Although each
value can be any number, it is often as simple as 0 or 1.
ASHWINI P 2
COMPUTER NETWORKS UNIT 02
The above figure shows the Analog signal and a digital signal. The curve
represents the Analog signal through an infinite number of points. The vertical
lines of the digital signal, however, demonstrate the sudden jump that the signal
makes from value to value.
Transmission Impairments
Transmission impairment occurs when the received signal is different from the
transmitted signal. As we know, a signal can be transmitted as Analog signal or
it can be transmitted as a digital signal.
Causes
Noise
Distortion
Attenuation
ASHWINI P 3
COMPUTER NETWORKS UNIT 02
Noise
Noise is the major factor for the transmission distortion as any unwanted signal
gets added to the transmitted signal by which the resulting transmitted signal gets
modified and at the receiver side it is difficult to remove the unwanted noise
signal. These noises are various kinds like shot noise, impulse noise, thermal
noise etc.
Distortion
But while transmitting this composite signal, if a certain delay happens between
the frequencies components, then there may be the chance that the frequency
component will reach the receiver end with a different delay constraint from its
original which leads to the change in shape of the signal. The delay happens due
to environmental parameters or from the distance between transmitter and
receiver etc.
ASHWINI P 4
COMPUTER NETWORKS UNIT 02
Attenuation
The above picture shows that the signal loses power at its travels time.
ASHWINI P 5
COMPUTER NETWORKS UNIT 02
Guided Media
It is defined as the physical medium through which the signals are transmitted. It
is also known as Bounded media.
ASHWINI P 6
COMPUTER NETWORKS UNIT 02
Twisted pair:
Twisted pair is a physical media made up of a pair of cables twisted with each
other. A twisted pair cable is cheap as compared to other transmission media.
Installation of the twisted pair cable is easy, and it is a lightweight cable. The
frequency range for twisted pair cable is from 0 to 3.5KHz.
A twisted pair consists of two insulated copper wires arranged in a regular spiral
pattern.
o It is cheap.
o Installation of the unshielded twisted pair is easy.
o It can be used for high-speed LAN.
Disadvantage:
o This cable can only be used for shorter distances because of attenuation.
A shielded twisted pair is a cable that contains the mesh surrounding the wire that
allows the higher transmission rate.
o The cost of the shielded twisted pair cable is not very high and not very
low.
o An installation of STP is easy.
o It has higher capacity as compared to unshielded twisted pair cable.
o It has a higher attenuation.
o It is shielded that provides the higher data transmission rate.
Disadvantages
Coaxial Cable
ASHWINI P 8
COMPUTER NETWORKS UNIT 02
Fibre Optic
o Fibre optic cable is a cable that uses electrical signals for communication.
o Fibre optic is a cable that holds the optical fibres coated in plastic that are
used to send the data by pulses of light.
o The plastic coating protects the optical fibres from heat, cold,
electromagnetic interference from other types of wiring.
o Fibre optics provide faster data transmission than copper wires.
1
ASHWINI P
0
COMPUTER NETWORKS UNIT 02
The physical layer's goal is to convey a raw bit stream from one computer to another.
For the actual transmission, many physical mediums might be employed. The part
that follows will go over magnetic media in depth.
The term 'magnetic media' refers to any record format in which analog or digital
information is recorded to and recovered from a magnetically coated matrix.
Magnetic media refers to any storage medium that uses magnetic patterns to represent
information. Magnetic media and systems use small magnetised dots to store data.
Magnetic fields generated by very small electromagnets are used to make, read, and
delete these dots.
One of the most frequent methods of transferring data from one computer to another
is to write it on magnetic tape or removable media (e.g., recordable DVDs),
physically carry it to the destination machine, and then read it back in.
1
ASHWINI P
1
COMPUTER NETWORKS UNIT 02
A plastic carrier covered with a matrix of metal or metal oxide particles, a resin
binder, and additional substances such as lubricants and fungicides comprise
magnetic tape. The reverse of the tape may include an antistatic coating to
prevent static charge buildup and increase winding capabilities.
Magnetic hard disks are typically constructed with an aluminium base that is
covered on both sides with a metallic or metallic oxide matrix. They are widely
used in computers as the primary storage media. Diskettes and floppy disks are
made up of a plastic base with a magnetic matrix on one or both sides. They are
protected by a hard plastic jacket.
Despite being an outmoded medium, they are nevertheless likely to be found in
collections and should be prioritized for conversion to new media.
In the case of magnetic discs (e.g., floppy discs or hard drives), the dots are
placed in circles on the surface of a magnetisable plastic, metal, or glass disc.
Hard Disk Drive
Hard disks offer enormous storage capacities (up to 1TB). They can store
massive quantities of data. Hard drives are random access memory devices that
can store all sorts of media, including large files such as movies. Data access
times are really quick.
1
ASHWINI P
2
COMPUTER NETWORKS UNIT 02
Data is stored on rotating metal or glass discs (called 'platters') within a hard
drive.
Magnetic Tape
1
ASHWINI P
3
COMPUTER NETWORKS UNIT 02
Magnetic tape is a serial access medium with a huge capacity. Individual file
access on a tape is sluggish since it is a serial access media. Tapes are used
when huge volumes of data must be stored yet individual files cannot be
accessed quickly.
A common use is data backup (large amounts of data that are rarely accessed
except in an emergency). Tapes are also utilized in some batch-processing
systems (for example, to store the list of data to be processed).
Floppy Disc
Power lines:
Power lines in computer networks refer to the use of existing electrical
power lines for data communication in addition to their primary function
of delivering electrical power. This technology is often referred to as Power
Line Communication (PLC) or Broadband over Power Lines (BPL). Here's
an overview of power lines in computer networks:
1
ASHWINI P
4
COMPUTER NETWORKS UNIT 02
PLCs are also known as power line carrier, power line digital subscriber line
(PDSL), or power line networking (PLN).
Types of PLC:
1
ASHWINI P
5
COMPUTER NETWORKS UNIT 02
Radio Transmission
Radio frequency is easier to generate and because of its large wavelength it can
penetrate through walls and structures alike.Radio waves can have wavelength
from 1 mm – 100,000 km and have frequency ranging from 3 Hz (Extremely
Low Frequency) to 300 GHz (Extremely High Frequency). Radio frequencies
are sub-divided into six bands.
Radio waves at lower frequencies can travel through walls whereas higher RF
can travel in straight line and bounce back.The power of low frequency waves
decreases sharply as they cover long distance. High frequency radio waves have
more power.
Lower frequencies such as VLF, LF, MF bands can travel on the ground up to
1000 kilometers, over the earth’s surface.
Radio waves of high frequencies are prone to be absorbed by rain and other
obstacles. They use Ionosphere of earth atmosphere. High frequency radio
1
ASHWINI P
6
COMPUTER NETWORKS UNIT 02
waves such as HF and VHF bands are spread upwards. When they reach
Ionosphere, they are refracted back to the earth.
Microwave Transmission
Electromagnetic waves above 100 MHz tend to travel in a straight line and
signals over them can be sent by beaming those waves towards one particular
station. Because Microwaves travels in straight lines, both sender and receiver
must be aligned to be strictly in line-of-sight.
1
ASHWINI P
7
COMPUTER NETWORKS UNIT 02
Microwave transmission depends highly upon the weather conditions and the
frequency it is using.
Infrared Transmission
Infrared wave lies in between visible light spectrum and microwaves. It has
wavelength of 700-nm to 1-mm and frequency ranges from 300-GHz to 430-
THz.
Infrared wave is used for very short range communication purposes such as
television and it’s remote. Infrared travels in a straight line hence it is
directional by nature. Because of high frequency range, Infrared cannot cross
wall-like obstacles.
Light Transmission
Highest most electromagnetic spectrum which can be used for data transmission
is light or optical signaling. This is achieved by means of LASER.
1
ASHWINI P
8
COMPUTER NETWORKS UNIT 02
Lasers cannot penetrate obstacles such as walls, rain, and thick fog.
Additionally, laser beam is distorted by wind, atmosphere temperature, or
variation in temperature in the path.
Laser is safe for data transmission as it is very difficult to tap 1mm wide laser
without interrupting the communication channel.
Digital Modulation
Digital modulation is the process of converting a digital bit stream into an analog
carrier wave for transmission via a communication channel.
The amplitude of the resultant output depends upon the input data whether it
should be a zero level or a variation of positive and negative, depending upon
the carrier frequency.
Following is the diagram for ASK modulated waveform along with its input.
1
ASHWINI P
9
COMPUTER NETWORKS UNIT 02
Any modulated signal has a high frequency carrier. The binary signal when
ASK is modulated, gives a zero value for LOW input and gives the carrier
output for HIGH input.
The frequency of the output signal will be either high or low, depending upon
the input data applied.
Following is the diagram for FSK modulated waveform along with its input.
2
ASHWINI P
0
COMPUTER NETWORKS UNIT 02
The output of a FSK modulated wave is high in frequency for a binary HIGH
input and is low in frequency for a binary LOW input. The binary 1s and 0s are
called Mark and Space frequencies.
The phase of the output signal gets shifted depending upon the input. These are
mainly of two types, namely BPSK and QPSK, according to the number of
phase shifts. The other one is DPSK which changes the phase according to the
previous value.
Phase Shift Keying (PSK) is the digital modulation technique in which the
phase of the carrier signal is changed by varying the sine and cosine inputs at a
particular time. PSK technique is widely used for wireless LANs, bio-metric,
contactless operations, along with RFID and Bluetooth communications.
PSK is of two types, depending upon the phases the signal gets shifted. They are
−
2
ASHWINI P
1
COMPUTER NETWORKS UNIT 02
This is also called as 2-phase PSK (or) Phase Reversal Keying. In this
technique, the sine wave carrier takes two phase reversals such as 0° and 180°.
Following is the image of BPSK Modulated output wave along with its input.
This is the phase shift keying technique, in which the sine wave carrier takes
four phase reversals such as 0°, 90°, 180°, and 270°.
If this kind of techniques are further extended, PSK can be done by eight or
sixteen values also, depending upon the requirement. The following figure
represents the QPSK waveform for two bits input, which shows the modulated
result for different instances of binary inputs.
2
ASHWINI P
2
COMPUTER NETWORKS UNIT 02
Instead of the conversion of digital bits into a series of digital stream, it converts
them into bit-pairs. This decreases the data bit rate to half, which allows space
for the other users.
In DPSK (Differential Phase Shift Keying) the phase of the modulated signal is
shifted relative to the previous signal element. No reference signal is considered
here. The signal phase follows the high or low state of the previous element.
This DPSK technique doesn’t need a reference oscillator.
2
ASHWINI P
3
COMPUTER NETWORKS UNIT 02
It is seen from the above figure that, if the data bit is LOW i.e., 0, then the phase
of the signal is not reversed, but is continued as it was. If the data is HIGH i.e.,
1, then the phase of the signal is reversed, as with NRZI, invert on 1 (a form of
differential encoding).
If we observe the above waveform, we can say that the HIGH state represents
an M in the modulating signal and the LOW state represents a W in the
modulating signal.
Multiplexing
This is a method of combining more than one signal over a shared medium.
Multiplexing divides the capacity of a communication channel into several
logical channels, each for a data stream. The method of extracting the original
data streams from the multiplexed signal is called demultiplexing.
2
ASHWINI P
4
COMPUTER NETWORKS UNIT 02
Input Output
Lines Lines
Data Flow
2
ASHWINI P
5
COMPUTER NETWORKS UNIT 02
Output
Input
Lines
Lines
2
ASHWINI P
6
COMPUTER NETWORKS UNIT 02
Properties of PSTN
2
ASHWINI P
7
COMPUTER NETWORKS UNIT 02
Switching
Switching techniques
In large networks, there can be multiple paths from sender to receiver. The
switching technique will decide the best route for data transmission.
2
ASHWINI P
8
COMPUTER NETWORKS UNIT 02
Circuit Switching
o Circuit switching is a switching technique that establishes a dedicated path
between sender and receiver.
o In the Circuit Switching Technique, once the connection is established then
the dedicated path will remain to exist until the connection is terminated.
o Circuit switching in a network operates in a similar way as the telephone
works.
o A complete end-to-end path must exist before the communication takes
place.
o In case of circuit switching technique, when any user wants to send the
data, voice, video, a request signal is sent to the receiver then the receiver
sends back the acknowledgment to ensure the availability of the dedicated
path. After receiving the acknowledgment, dedicated path transfers the
data.
o Circuit switching is used in public telephone network. It is used for voice
transmission.
o Fixed data can be transferred at a time in circuit switching technology.
2
ASHWINI P
9
COMPUTER NETWORKS UNIT 02
o Circuit establishment
o Data transfer
o Circuit Disconnect
o Crossbar Switch
o Multistage Switch
Crossbar Switch
3
ASHWINI P
0
COMPUTER NETWORKS UNIT 02
The Crossbar switch is a switch that has n input lines and n output lines. The
crossbar switch has n2 intersection points known as crosspoints.
Multistage Switch
o Multistage Switch is made by splitting the crossbar switch into the smaller
units and then interconnecting them.
o It reduces the number of crosspoints.
o If one path fails, then there will be an availability of another path.
o Once the dedicated path is established, the only delay occurs in the speed
of data transmission.
o It takes a long time to establish a connection approx 10 seconds during
which no data can be transmitted.
o It is more expensive than other switching techniques as a dedicated path is
required for each connection.
o It is inefficient to use because once the path is established and no data is
transferred, then the capacity of the path is wasted.
o In this case, the connection is dedicated therefore no other data can be
transferred even if the channel is free.
3
ASHWINI P
1
COMPUTER NETWORKS UNIT 02
Message Switching
o Data channels are shared among the communicating devices that improve
the efficiency of using available bandwidth.
o Traffic congestion can be reduced because the message is temporarily
stored in the nodes.
o Message priority can be used to manage the network.
o The size of the message which is sent over the network can be varied.
Therefore, it supports the data of unlimited size.
3
ASHWINI P
2
COMPUTER NETWORKS UNIT 02
Packet Switching
3
ASHWINI P
3
COMPUTER NETWORKS UNIT 02
3
ASHWINI P
4
COMPUTER NETWORKS UNIT 02
o In the above diagram, A and B are the sender and receiver respectively. 1
and 2 are the nodes.
o Call request and call accept packets are used to establish a connection
between the sender and receiver.
o When a route is established, data will be transferred.
o After transmission of data, an acknowledgment signal is sent by the
receiver that the message has been received.
o If the user wants to terminate the connection, a clear signal is sent for the
termination.
Node takes routing decisions to Node does not take any routing decision.
forward the packets.
Congestion cannot occur as all the Congestion can occur when the node is busy, and
packets travel in different directions. it does not allow other packets to pass through.
3
ASHWINI P
5
COMPUTER NETWORKS UNIT 02
Data rate refers to the speed of data transfer through a channel. It is generally
computed in bits per second (bps). Higher data rates are expressed as Kbps
("Kilo" bits per second, i.e.1000 bps), Mbps ("Mega" bits per second, i.e.1000
Kbps), Gbps ("Giga" bits per second, i.e. 1000 Mbps) and Tbps ("Tera" bits per
second, i.e. 1000 Gbps).
One of the main objectives of data communications is to increase the data rate.
There are three factors that determine the data rate of a channel:
3
ASHWINI P
6
COMPUTER NETWORKS UNIT 02
Nyquist bit rate was developed by Henry Nyquist who proved that the
transmission capacity of even a perfect channel with no noise has a maximum
limit.
Shannon's Capacity
Claude Shannon extended Nyquist's work for actual channels that are subject to
noise. Noise can be of various types like thermal noise, impulse noise, cross-talks
etc. Among all the noise types, thermal noise is unavoidable. The random
movement of electrons in the channel creates an extraneous signal not present in
the original signal, called the thermal noise. The amount of thermal noise is
calculated as the ratio of the signal power to noise power, SNR.
3
ASHWINI P
7
COMPUTER NETWORKS UNIT 02
Since SNR is the ratio of two powers that varies over a very large range, it is often
expressed in decibels, called SNRdb and calculated as: SNRdb = 10log10SNR.
For example, if the bandwidth of a noisy channel is 4 KHz, and the signal to noise
ratio is 100, then the maximum bit rate can be computed as:
3
ASHWINI P
8