UNIT_1-COMPUTER-NETWORK
UNIT_1-COMPUTER-NETWORK
Signals
A signal is an electromagnetic wave that carries information
from one place to another, using a specific propagation
medium, such as air, vacuum, water, and solid. In electronics,
the signal is defined as a current, voltage, or wave carrying
information. It can travel short distances or long distances
depending on the requirements. The speed of a signal wave is
equal to the speed of light.
The signals are categorized as analog signal and digital signals.
Analog refers to the data transmission in continuous form, while
digital refers to the data transmission in the discrete form. It is
also known as the transmission in the form of bits, 0
(LOW) and 1 (HIGH).
The waveforms of the analog and digital signal are shown
below:
Periodic signals
A digital signal that repeats over a period of time is known as
periodic signals, such as square wave.
Aperiodic signals
A digital signal that does not repeat over a period of time is
known as an aperiodic signal. It is also a discrete signal, but not
of repeated pattern.
For example,
What is Modulation?
Modulation can be digital or analog, the input wave of the
analog signal varies continuously like a sine wave. Modulation
can be defined as the process of converting data into waves by
adding information to a carrier signal. Such a signal can be
transmitted electronically or optically, but it must have a
consistent waveform.
What is Modulation?
The process by which data is converted into electrical/digital
signals for transferring that signal over a medium is called
modulation. It increases strength for maximum reach of the
signals. The process of extracting data from the transmitted
signal is called demodulation. A Modem is a device that
performs both modulation and demodulation processes. The
various forms of modulation are designed to alter the
characteristics of carrier waves. The most commonly altered
characteristics of modulation include amplitude, frequency, and
phase.
Carrier signal: The signals that contain no information but
have a certain phase, frequency, and amplitude are called
carrier signals.
Modulated signals: The signals which are the combination
of the carrier signals and modulation signals are
modulated signals. The modulated signal is obtained after
the modulation of the signals.
Types of Modulation
Amplitude Modulation or AM, is a modulation technology mainly
used for radio carrier wave-based message transmission which
modifies the carrier wave's amplitude (signal intensity) in
accordance with the message signal, such as an audio signal,
i.e., a modulating signal.
What is Amplitude Modulation?
Amplitude modulation, or AM, is a modulation technology
mainly used for radio carrier wave-based message
transmission. Amplitude modulation modifies the carrier wave's
amplitude (signal intensity) in accordance with the message
signal, such as an audio signal, i.e., a modulating signal. The
mechanism of AM can be:
A complex interaction between modulating waves and
carrier signals is the basis of AM.
By means of a rigorous modulation procedure, information
is encoded for transmission by the carrier wave's
amplitude, which experiences minute variations in
response to the modulating signal.
Demodulation techniques use complex circuitry to
accurately detect and amplify the modulating waveform;
these techniques are crucial for recovering the original
signal from AM transmissions.
In simple terms, AM works by altering the
height/magnitude of the carrier wave to match the
information we want to send, then changing it back at the
other end to hear or see the messag
What is Frequency Modulation?
Frequency Modulation is a process of encoding information on
one carrier wave by changing its frequency. The frequency of
the carrier wave is changed according to the frequency of the
modulating signal. Frequency modulation is used for
broadcasting and radio communication. Modulation is the
process of converting the carrier signal into an electrical signal.
Amplitude and phase remain the same in FM.
Frequency Modulation is used in FM radio broadcasting,
magnetic tape-recording systems, monitoring newborns for
seizures via EEG, radar, seismic prospecting, sound synthesis,
telemetry, two-way radio systems, and video-transmission
systems.
Frequency Modulation System
A Frequency Modulation system refers to a communication or
signal processing system that utilizes frequency modulation to
encode and transmit information. Frequency Modulation system
consist of input signal, carrier wave, modulation process,
transmission, reception, demodulation and output signal.
Frequency Modulation Deviation
Frequency Modulation Deviation refers to the extent to which
the frequency of a carrier wave is changed or deviated from its
center frequency in response to change in the amplitude of the
modulating signal. It is a key parameter in frequency
Modulation systems and determines the amount by which the
carrier frequency shifts during the modulation process.
Frequency Modulation Demodulation
Frequency Modulation Demodulation is the process of
extracting the original information usually an audio signal from
a modulated FM carrier wave. Demodulation is an important
step in FM receivers to recover the transmitted information
accurately. The goal of FM modulation is to reproduce the
original information encoded in the FM signal, ensuring high-
quality audio output.
Frequency Modulation Waveform
Frequency Modulation generates a modulated waveform by
changing the frequency of a carrier signal in response to
change in the amplitude of a modulating signal. The result is s
waveform that has characteristic distinct from the original
carrier wave. The shape of the waveform is highly dependent
on the characteristic of the modulating signal and the specific
parameters of the FM modulation process.
The wave form of frequency modulation signal is shown in the
image added below,
Frequencies in Frequency Modulation
In Frequency Modulation, the frequency of the carrier signal is
varied in accordance with the instantaneous amplitude of the
modulating signal. The parameters associated with FM are
carrier frequency, Modulating Signal Frequency, Frequency
deviation, Modulation index, Sideband Frequencies and Total
Bandwidth. The expression for the instantaneous frequency can
be expressed mathematically based on the modulation index,
the frequency deviation and the modulating signal.
Phase Modulation
Phase modulation (PM) is one of the modulation techniques that
involves the use of a phase angle to modulate a carrier signal.
While in AM, the carrier signal is varied in terms of its strength,
the phase angle of the carrier signal is varied in PM depending
on the input signal. This modulation technique is essential in
most digital communication systems and comes with better
performance in terms of noise tolerance and signal quality. This
is made possible by altering the phase of the carrier in relation
to the amplitude; phase modulation makes it easy to transmit
data using pressure and other types of communication
channels.
What is Phase Modulation?
Phase modulation (PM) is a kind of signal modulation in which
the phase of a high-frequency signal or carrier wave is made to
change with its amplitude in proportion to the amplitude of the
input signal. This technique modulates information by changing
the phase angle of the carrier signal, not its amplitude like the
former techniques. PM is very common in radio and television
transmissions and also in modem digital data transmission
because of its capability to operate efficiently in a noisy
environment. Phase modulation therefore works as follows:
depending on the input signal, the carrier’s phase is shifted in
order to encode and transmit information over different
channels.
What is the Need of Modulation?
Size of Antenna: As we know that the size of the
antenna is inversely proportional to the frequency of the
radiated signal and antenna size must be 1/10th of the
wavelength. If the frequency signals are more than 5KHz
in that case it is quite impossible to set up an antenna of
that size. So, by using the modulation technique the size
of the antenna is reduced.
Wireless Communication: Modulation provides a
wireless connection to transmit the signals to a longer
distance. Earlier we used wire systems (like the telephone)
to transfer information with the help of telephonic wires
but it was not possible to spread the wires all over the
world for communication. By using the modulation
technique, the cost of wire is saved and even information
can be transferred to longer distances faster.
Working of Modulation
Data can be added to the carrier signal by varying its
amplitude, frequency, and phase. Basically, modulation is
applied to electromagnetic signals like radio waves, optics,
and computer networks. It can also be applied to direct current
that can be treated as a degenerate carrier wave with a fixed
amplitude and frequency of 0 Hz by turning it off and on as in
a digital current loop and in Morse code telegraphy.
What is Demodulation?
Demodulation Process
To understand the concept of Demodulation, we need to study
the Modulation first. Modulation is the process where properties
of the carrier signal like amplitude, frequency, or phase change
according to the baseband or message signal. It is the reverse
process of the modulation to recover the signal from modulated
signal and hence obtain the original signal, so the need of the
demodulation is to get the original information or signal from
the modulated one.
Demodulation
Demodulation is the technique to recover the original signal
from the modulated signal. The demodulation is done with the
help of a demodulator. A demodulator will convert the carrier
variation of amplitude, frequency, or phase back to the
message signal. There are three different types of
demodulators for converting the AM (amplitude modulation),
FM (frequency modulation), and PM (phase modulation)
modulation schemes.
The Demodulation is the process of extracting the original
information from a modulated carrier wave. It is an important
function used in the communication systems which allows the
recovery of transmitted data at the receiver end. Demodulation
is the technique to recover the original signal from the
modulated signal. The demodulation is done with the help of a
demodulator. A demodulator will convert the carrier variation
of amplitude, frequency, or phase back to the message signal.
There are three different types of demodulators for converting
the AM (amplitude modulation), FM (frequency modulation),
and PM (phase modulation) modulation schemes.
Need for Demodulation
The Demodulation is important as the it ensure that the
transmitted audio signals can be correctly received and
processed. Demodulation is the process of recovering the
original signal from the modulated signal. It allows the
separation of the audio frequency from the
higher frequency carrier which makes the signal audible and
usable to the human listener and compatible with standard
audio playback devices. Without using the demodulation the
information carried by the high-frequency carrier waves would
remain inaccessible
Demodulation Techniques
There are various demodulation techniques depending on the
type of modulation. Some of the technique are listed below:
Diode rectifier envelope detector
Product detector
Synchronous detection
Pulse Amplitude Modulation (PAM)
PAM is a type of pulse modulation where the amplitude of the
pulse is varied with the sample value of the message signal.
Pulse modulation techniques are widely used in digital
transmission, where non-baseband applications are replaced by
PPM (Pulse Position Modulation). PAM modulation technique is
used in various applications, such as Ethernet,
television, and LED lighting.
Here, we will discuss the process used to transmit the number
of pulses from different sources using TDM. It represents how
the analog data is transmitted by its discrete samples. We have
assumed that the samples are in the form of a pulse of finite
width.
The method used to send the number of signals from different
sources one after the other in a specific time band is known
as TDM (Time Division Multiplexing). It is also used in digital
modulation to transmit the codes in binary.
When the amplitude of the pulse carries the message
information of the baseband signal, it is known as PAM (Pulse
Amplitude Modulation). If it is carried by width, it is known
as PWM (Pulse Width Modulation), and if by position, it is
known as PPM (Pulse Position Modulation). The combination of
PWM and PPM is known as PTM (Pulse Time Modulation).
Among all the available modulation schemes, PAM is suitable
for TDM and digital representation.
Let's consider a PAM technique that uses the sampling principle
and time multiplexing for the signal representation and
transmission. The block diagram is shown below:
At both ends, rotary switches in synchronization are
connected, representing the transmitting and the receiving
end. On the left side, various bandlimited signals are
connected to the contact point of a rotary switch. Bandlimited
refers to the signals sent at the specific threshold or the cut-off
frequency. If the frequency rises above the cut-off frequency,
the amplitude of such signals goes to zero. For example, voice
signals are bandlimited to 3.3k Hz.
When the rotary arm of the switch swings, it samples every
signal sequentially. The other signal at the receiving end makes
contacts simultaneously with the same numbered contacts.
With every revolution f the switch, each signal was sampled
and presented at the corresponding contact number at the
receiving end. The sampled signal at the end passes through
the LPF (Low Pass Filter) and we get the original recovered
signal. For a sampled signal numbered 1, we get the message
signal m1(t). Similarly, for the signal numbered 2, we get the
message signal m2(t).
The revolutions are atleast twice the maximum frequency of
the modulated signal. If FM is the highest frequency of the
modulated signal, there were atleast 2FM revolutions per
second.
When the signal to be multiplexed varies slowly with time,
mechanical switches can be used for signal recovery. In case of
high speed applications, the operating power of the mechanical
switches goes out of range. If the signal to be multiplexed
varies with greater speed with time, an electronic switching
system is used. In any of the above cases, the left side
represents the transmitting end, and the right side represents
the receiving end. The left side is known as
the commutator, and the right side is known
as decommutator.
The signals are sampled at regular intervals of time duration T S.
The Sampling of the second message signal is the same as that
of the first, but the sampling time is different. Thus, the time of
each sampling signal is different from the succeeding one. It is
done to allow easy multiplexing and prevent the signals from
interference.
The transmissions of two trains of pulses that are modulated in
amplitude are known as Pulse Amplitude Modulation.
Multiplexing of various signals is possible if the signals are
sampled at different times. It also allows their easy
reconstruction at the receiving end. If the signals are separated
by different frequencies, the system is known
as FDM (Frequency Division Multiplexing). If we want to
transmit the signal from one antenna to the other direction, we
need to modulate the signal (AM or FM) at a high carrier
frequency.
Channel bandwidth of PAM
Let's consider the N number of baseband signals containing
message information. Each signal is bandlimited to F M and
represented by m1(t), m2(t), … mn(t). The communication
channel does not require a bandwidth larger than NF M. The
sampling of the baseband signal m1(t) is not greater than the
time interval Ts = 1/2FM. It means that the successive signals
are also sampled at the same time interval gap (1/2F MN). It is
the gap between the two successive signals (for example, m 1(t)
and m2(t)). If the channel bandwidth is high, demultiplexing
would be easier and can be achieved directly. But, if the
channel bandwidth is restricted, the basebands signals may
combine resulting in crosstalk, which may affect the quality of
the signal.
PCM (Pulse Code Modulation)
Modulation is a process where different parameter (amplitude,
frequency, and phase) of a carrier signal varies with the
instantaneous value of the message signal. A carrier signal is a
high-frequency signal, and the message signal is the original
signal transmitted from the transmitter to the receiver. The
message signal carries the information from one place to the
other. The carrier signal is used with the message signal to
make it suitable for long-distance transmission.
Different modulation techniques use different parameters to
transmit a signal from the transmitter to the receiver. Here, we
will discuss the PCM (Pulse Code Modulation) technique, one of
the digital modulation methods to transmit the signal.
A PCM system converts an analog input signal to the digital
signal, which is a combination of the binary sequence created
from the binary digits 0 and 1. An analog signal is a continuous
wave, and the PCM signal is a wave with a series of digits. Thus,
we can define PCM as the modulation method that transmits
the pulses in the form of binary digits representing a code
number.
A simple diagram of the analog waveform and the
corresponding PCM waveform is shown below:
Electrical representation of the PCM signal
The signals are transmitted in the electrical form from the
transmitter to the receiver. It is due to the dependence of
electronic devices on the electric current for its operation. The
binary digits are represented in the form of electric pulses to
transmit the code over a communication channel. A simple
diagram of the binary digits represented in the form of electric
pulses is shown below
History of Multiplexing
Multiplexing Techniques
Advantages Of FDM:
o FDM is used for analog signals.
o FDM process is very simple and easy modulation.
o A Large number of signals can be sent through an FDM
simultaneously.
o It does not require any synchronization between sender
and receive
Disadvantages Of FDM:
o FDM technique is used only when low-speed channels are
required.
o It suffers the problem of crosstalk.
o A Large number of modulators are required.
o It requires a high bandwidth channel.
Applications Of FDM:
o FDM is commonly used in TV networks.
o It is used in FM and AM broadcasting. Each FM radio
station has different frequencies, and they are multiplexed
to form a composite signal. The multiplexed signal is
transmitted in the air.
The above figure shows that the data part contains the address
to determine the source of the data.
What is Switching?
In computer networking, Switching is the process of
transferring data packets from one device to another in a
network, or from one network to another, using specific devices
called switches. A computer user experiences switching all the
time for example, accessing the Internet from your computer
device, whenever a user requests a webpage to open, the
request is processed through switching of data packets only.
Switching takes place at the Data Link layer of the OSI Model.
This means that after the generation of data packets in the
Physical Layer, switching is the immediate next process in data
communication. In this article, we shall discuss different
processes involved in switching, what kind of hardware is used
in switching, etc.
What is a Switch?
A switch is a hardware device in a network that connects other
devices, like computers and servers. It helps multiple devices
share a network without their data interfering with each other.
A switch works like a traffic cop at a busy intersection. When a
data packet arrives, the switch decides where it needs to go
and sends it through the right port.
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.
Switching technique is used to connect the systems for making
one-to-one communication.
Classification Of Switching Techniques
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.
o Circuit establishment
o Data transfer
o Circuit Disconnect
Packet Switching
o The packet switching is a switching technique in which the
message is sent in one go, but it is divided into smaller
pieces, and they are sent individually.
o The message splits into smaller pieces known as packets
and packets are given a unique number to identify their
order at the receiving end.
o Every packet contains some information in its headers
such as source address, destination address and sequence
number.
o Packets will travel across the network, taking the shortest
path as possible.
o All the packets are reassembled at the receiving end in
correct order.
o If any packet is missing or corrupted, then the message
will be sent to resend the message.
o If the correct order of the packets is reached, then the
acknowledgment message will be sent.