ComputerNetwork 4thsem
ComputerNetwork 4thsem
Data Flow
Communication between two devices can be simplex, half-duplex, or full-duplex.
Simplex:
In simplex mode, the communication is unidirectional, as on a one-way street. Only
one of the two devices on a link can transmit; the other can only receive. The simplex
mode can use the entire capacity of the channel to send data in one direction.
Example : Keyboards and traditional monitors
The keyboard can only introduce input; the monitor can only accept output.
Half-Duplex:
In half-duplex mode, each station can both transmit and receive, but not at the same
time.
When one device is sending, the other can only receive, and vice versa.
The half-duplex mode is like a one-lane road with traffic allowed in both directions.
In a half-duplex transmission, the entire capacity of a channel is taken over by
whichever of the two devices is transmitting at the time.
Ex. : Walkie-talkies and CB (citizens band) radios are both half-duplex systems.
Full-Duplex:
In full-duplex both stations can transmit and receive simultaneously. The full-duplex
mode is like a two-way street with traffic flowing in both directions at the same time.
In full-duplex mode, signals going in one direction share the capacity of the link: with
signals going in the other direction.
Example : The telephone network. When two people are communicating by a telephone
line, both can talk and listen at the same time.
Components of data communication system
A Communication system has following components:
Types of Network
There are various types of computer networks available. We can categorize them
according to their size as well as their purpose. The size of a network should be
expressed by the geographic area and number of computers, which are a part of their
networks. It includes devices housed in a single room to millions of devices spread
across the world. Some of the most popular network types are:
Characteristics of LAN
It is a private network, so an outside regulatory body never controls it.
LAN operates at a relatively higher speed compared to other WAN systems.
There are various kinds of media access control methods like token ring
and ethernet.
Advantages of LAN
We can use the same software over the network instead of purchasing the
licensed software for each client in the network.
Data of all network users can be stored on a single hard disk of the server
computer.
We can easily transfer data and messages over networked computers.
LAN offers the facility to share a single internet connection among all the
LAN users.
Disadvantages of LAN
LAN will indeed save cost because of shared computer resources, but the
initial cost of installing Local Area Networks is quite high.
The LAN admin can check personal data files of every LAN user, so it does
not offer good privacy.
Unauthorized users can access critical data of an organization in case LAN
admin is not able to secure centralized data repository.
Local Area Network requires a constant LAN administration as there are
issues related to software setup and hardware failures
WAN (Wide Area Network)
WAN is another important computer
network that which is spread across
a large geographical area. WAN
network system could be a
connection of a LAN which connects
with other LAN's using telephone
lines and radio waves. It is mostly
limited to an enterprise or an
organization.
Characteristics of LAN:
The software files will be shared among all the users; therefore, all can
access to the latest files.
Any organization can form its global integrated network using WAN.
Advantages of WAN
WAN helps you to cover a larger geographical area. Therefore business
offices situated at longer distances can easily communicate.
Contains devices like mobile phones, laptop, tablet, computers, gaming
consoles, etc.
WLAN connections work using radio transmitters and receivers built into
client devices.
Disadvantage of WAN
The initial setup cost of investment is very high.
It is difficult to maintain the WAN network. You need skilled technicians
and network administrators.
There are more errors and issues because of the wide coverage and the use
of different technologies.
It requires more time to resolve issues because of the involvement of
multiple wired and wireless technologies.
Offers lower security compared to other types of networks.
MAN (Metropolitan Area Network)
MAN is consisting of a computer
network across an entire city, college
campus, or a small region. This type
of network is large than a LAN,
which is mostly limited to a single
building or site. Depending upon the
type of configuration, this type of
network allows you to cover an area
from several miles to tens of miles.
Characteristics of MAN
It mostly covers towns and cities in a maximum 50 km range
Mostly used medium is optical fibers, cables
Data rates adequate for distributed computing applications.
Disadvantages of MAN
We need more cable to establish MAN connection from one place to another.
In MAN network it is tough to make the system secure from hackers
Advantages of MAN
It offers fast communication using high-speed carriers, like fiber optic cables.
It provides excellent support for an extensive size network and greater access
to WANs.
The dual bus in MAN network provides support to transmit data in both
directions concurrently.
A MAN network mostly includes some areas of a city or an entire city.
Topology
A Network Topology is the arrangement with which computer systems or
network devices are connected to each other. Topologies may define both
physical and logical aspect of the network. Both logical and physical topologies
could be same or different in a same network.
Bus Topology
Here, all devices share single Both ends of the shared channel
communication line or cable. Bus have line terminator. The data is
topology may have problem while sent in only one direction and as
multiple hosts sending data at the soon as it reaches the extreme end,
same time. Therefore, Bus topology the terminator removes the data
either uses CSMA/CD technology or from the line.
recognizes one host as Bus Master
to solve the issue. It is one of the
simple forms of networking where a
failure of a device does not affect the
other devices. But failure of the
shared communication line can
make all other devices stop
functioning.
Star Topology
All hosts in Star topology are only the hub. Star topology is not
connected to a central device, expensive as to connect one more
known as hub device, using a point- host, only one cable is required and
to-point connection. That is, there configuration is simple.
exists a point to point connection
between hosts and hub.
As in Bus topology, hub acts as
single point of failure. If hub fails,
connectivity of all hosts to all other
hosts fails. Every communication
between hosts, takes place through
Ring Topology
In ring topology, each host machine connection in the ring is a point of
connects to exactly two other failure. There are methods which
machines, creating a circular employ one more backup ring.
network structure. When one host
tries to communicate or send
message to a host which is not
adjacent to it, the data travels
through all intermediate hosts. To
connect one more host in the
existing structure, the administrator
may need only one more extra cable.
Failure of any host results in failure
of the whole ring. Thus, every
Hybrid Topology
A network structure whose design topology networks. Internet is the
contains more than one topology is best example of largest Hybrid
said to be hybrid topology. Hybrid topology
topology inherits merits and
demerits of all the incorporating
topologies. The above picture
represents an arbitrarily hybrid
topology. The combining topologies
may contain attributes of Star, Ring,
Bus, and Daisy-chain topologies.
Most WANs are connected by means
of Dual-Ring topology and networks
connected to them are mostly Star
The OSI Reference Model
The OSI model is shown in Fig. This model is based on a proposal developed by
the International Standards Organization (ISO). The model is called the ISO-OSI
(Open Systems Interconnection) Reference Model because it deals with
connecting open systems—that is, systems that are open for communication
with other systems. The OSI model has seven layers.
Message Switching
Each intermediate device receive the message and store it until the nest device is
ready to receive it and then this message is forwarded to the next device. For this
reason a message switching network is sometimes called as Store and Forward
Switching.
Message switches can be programmed with the information about the most efficient
route as well as information regarding to the near switches that can be used for
forwarding the present message to their required destination.
The storing and Forwarding introduces the concept of delay. For this reasons this
switching is not recommended for real time applications like voice and video.
Serial Transmission
In Serial Transmission, data-bit flows from one computer to another computer in bi-
direction. In this transmission one bit flows at one clock pulse. In Serial
Transmission, 8 bits are transferred at a time having a start and stop bit.
10011001
Computer 1 Computer 2
Parallel Transmission
In Parallel Transmission, many bits are flow together simultaneously from one
computer to another computer. Parallel Transmission is faster than serial
transmission to transmit the bits. Parallel transmission is used for short distance.
1
0
Computer 1 0 Computer 2
1
1
0
0
1
Signals
Analog and Digital signals are the types of signals carrying information.
Analog Signals
The analog signals were used in many systems to produce signals to carry
information. These signals are continuous in both values and time. In short, all
signals that are natural or comes naturally are analog signals.
Digital Signals
Unlike analog signals, digital signals are not continuous but signals are discrete in
value and time. These signals are represented by binary numbers and consist of
different voltage values.
Human voice, natural sound, analog Computers, optical drives, and other
electronic devices are few examples electronic devices
Amplitude
Amplitude refers to the height of the signal. The unit for amplitude depends on the
type of the signal. Volts refers to voltage, amperes refer to current and watts refer to
power.
Phase
Phase describes the position of the waveform relative to time zero.
Phase is measured in degrees or radians(360 degree). A phase shift of 360 degrees
corresponds to a shift of half a period, and a phase shift of 90 degrees corresponds to
shift of a quarter of a period.
Encoding and Modulating
We must transform data into signals to send them from one place to another. Data or
information can be stored in two ways, analog and digital. For a computer to use the
data, it must be in discrete digital form. Similar to data, signals can also be in analog
and digital form. To transmit data digitally, it needs to be first converted to digital
form.
Conversion Methods
Digital/digital
Analog/digital
Digital/analog
Analog/analog
Digital-to-Digital Conversion
This section explains how to convert digital data into digital signals. It can be done in
two ways, line coding and block coding. For all communications, line coding is
necessary whereas block coding is optional.
Line Coding : The process for converting digital data into digital signal is said to be
Line Coding. Digital data is found in binary format. It is represented (stored)
internally as series of 1s and 0s. Digital signal is denoted by discreet signal, which
represents digital data.
2. Polar Encoding :
Polar encoding scheme uses multiple voltage levels to represent binary values.
Polar encoding is classifided into the following categories:
1. NRZ
NRZ-L
NRZ-I
2. RZ
3. Biphase
Manchester
Differential Manchester
1. NRZ (NonReturn to Zero) : In NRZ encoding, the level of the signal is always
either positive or negative. Generally, positive voltage represents 1 and negative
value represents 0. It is also NRZ because there is no rest condition.
NRZ scheme has two variants: NRZ-L (NRZ Level) and NRZ-I (NRZ Inversion)
NRZ-L changes voltage level at when a different bit is encountered whereas NRZ-I
changes voltage when a 1 is encountered.
Return to Zero (RZ) : Problem with NRZ is that the receiver cannot conclude when a
bit ended and when the next bit is started, in case when sender and receiver’s clock
are not synchronized. Here, 0 is represented by negative-to-zero and 1 is represented
by positive-to-negative.
Biphase :
Here, we use three levels: positive, zero and negative. Biphase encoding is implement
in two different ways :
1. Manchester encoding : This encoding scheme is a combination of RZ and NRZ-L.
Bit time is divided into two halves. It transits in the middle of the bit and changes
phase when a different bit is encountered. Here, 0 is represented as positive-to-
negative and 1 is represented by negative-to-positive.
2. Differential Manchester encoding : This encoding scheme is a combination of RZ
and NRZ-I. It also transits at the middle of the bit but changes phase only when 1 is
encountered. Here, 0 is represented by positive-to-negative and 1 is represented by
negative-to-positive. The first 1 bit is represented by the positive-to-negative and first
0 is represented by negative-to-positive and then when 1 is encountered it is
alternating.
Bipolar : Bipolar encoding uses three voltage levels, positive, negative, and zero. Zero
voltage represents binary 0 and bit 1 is represented by altering positive and negative
voltages. There are three types of bipolar encoding : AMI. B8ZS, HDB3
Alternate Mark Inversion (AMI)
AMI means alternate 1 inversion. A natural zero voltage represents binary 0. Binary
1s are represented by alternating positive and negative voltages.
Example : Using HDB3, encode the bit stream 10000000000100. Assume that the
number of 1s so far is odd and the first 1 is positive.
Digital to Analog Conversion
The following techniques can be used for Digital to Analog Conversion:
1. Amplitude Shift keying – Amplitude Shift Keying is a technique in which carrier
signal is analog and data to be modulated is digital. The amplitude of analog
carrier signal is modified to reflect binary data. The binary signal when modulated
gives a zero value when the binary data represents 0 while gives the carrier output
when data is 1. The frequency and phase of the carrier signal remain constant.
1. AMPLITUDE MODULATION:
The modulation in which the amplitude of the carrier wave is varied according to the
instantaneous amplitude of the modulating signal keeping phase and frequency as
constant. The figure below shows the concept of amplitude modulation:
AM bandwidth:
The modulation creates a bandwidth that is twice the bandwidth of the modulating
signal and covers a range centered on the carrier frequency.
Bandwidth= 2fm
2. FREQUENCY MODULATION –
The modulation in which the frequency of the carrier wave is varied according to the
instantaneous amplitude of the modulating signal keeping phase and amplitude as
constant. The figure below shows the concept of frequency modulation:
FM bandwidth
1. The bandwidth of a frequency modulated signal varies with both deviation and
modulating frequency.
2. For a narrow band Fm signal, bandwidth required is twice the maximum
frequency of the modulation, however for a wide band Fm signal the required
bandwidth can be very much larger, with detectable sidebands spreading out
over large amounts of the frequency spectrum.
3. PHASE MODULATION
The modulation in which the phase of the carrier wave is varied according to
the instantaneous amplitude of the modulating signal keeping amplitude and
frequency as constant. The figure below shows the concept of frequency
modulation:
M-ary Encoding
Thus, Modulation allows us to send a signal over a bandpass frequency range. If
every signal gets its own frequency range, then we can transmit multiple signals
simultaneously over a single channel, all using different frequency ranges.
The word binary represents two-bits. M simply represents a digit that corresponds to
the number of conditions, levels, or combinations possible for a given number of
binary variables.
This is the type of digital modulation technique used for data transmission in which
instead of one-bit, two or more bits are transmitted at a time. As a single signal is
used for multiple bit transmission, the channel bandwidth is reduced.
M-ary Equation
If a digital signal is given under four conditions, such as voltage levels, frequencies,
phases and amplitude, then M = 4.
The number of bits necessary to produce a given number of conditions is expressed
mathematically as
$$N = \log_{2}M$$
Where,
N is the number of bits necessary.
M is the number of conditions, levels, or combinations possible with N bits.
The above equation can be re-arranged as −
$$2^{N} = M$$
For example, with two bits, 22 = 4 conditions are possible.
M-ary ASK
This is called M-ary Amplitude Shift Keying (M-ASK) or M-ary Pulse Amplitude
Modulation (PAM).
The amplitude of the carrier signal, takes on M different levels.
Representation of M-ary ASK
$$S_m(t) = A_mcos(2\pi f_ct)\:\:\:\:\:\:A_m\epsilon {(2m-1-M)\Delta ,m =
1,2....M}\:\:\:and\:\:\:0\leq t\leq T_s$$
This method is also used in PAM. Its implementation is simple. However, M-ary ASK
is susceptible to noise and distortion.
M-ary FSK
This is called as M-ary Frequency Shift Keying.
The frequency of the carrier signal, takes on M different levels.
Types of Noise
The classification of noise is done depending on the type of the source, the effect it
shows or the relation it has with the receiver, etc.
There are two main ways in which noise is produced. One is through some external
source while the other is created by an internal source, within the receiver section.
External Source
This noise is produced by the external sources which may occur in the medium or
channel of communication, usually. This noise cannot be completely eliminated. The
best way is to avoid the noise from affecting the signal.
Examples
Internal Source
This noise is produced by the receiver components while functioning. The
components in the circuits, due to continuous functioning, may produce few types of
noise. This noise is quantifiable. A proper receiver design may lower the effect of this
internal noise.
Examples
Most common examples of this type of noise are −
Thermal agitation noise (Johnson noise or Electrical noise).
Shot noise (due to the random movement of electrons and holes).
Transit-time noise (during transition).
Miscellaneous noise is another type of noise which includes flicker, resistance
effect and mixer generated noise, etc.
It is the ratio of the signal power to the noise power. The higher the value of SNR,
the greater will be the quality of the received output.
Signal-to-noise ratio at different points can be calculated by using the following
formulae −
$$Input \: SNR = (SNR)_I = \frac{Average \: power \: of \: modulating \:
signal}{Average \: power \: of \: noise \: at \: input}$$
$$Output \: SNR = (SNR)_O = \frac{Average \: power \: of \: demodulated \:
signal}{Average \: power \: of \: noise \: at \: output}$$
$$Channel \: SNR = (SNR)_C = \frac{Average \: power \: of \: modulated \:
signal}{Average \: power \: of \: noise \: in \: message \: bandwidth}$$
SNR = AVG SIGNAL POWER / AVG NOISE POWER
Transmission Impairment in Data Communication
In communication system, analog signals travel through transmission media, which
tends to deteriorate the quality of analog signal. This imperfection causes signal
impairment. This means that received signal is not same as the signal that was send.
Causes of impairment –
Attenuation
Distortion
Noise
Attenuation – It means loss of energy. The strength of signal decreases with
increasing distance which causes loss of energy in overcoming resistance of medium.
This is also known as attenuated signal. Amplifiers are used to amplify the
attenuated signal which gives the original signal back.
→ → →
S = 1/μ E × B
Electromagnetic radiation from outer space has given us so much information about
the universe, its existence and the other celestial bodies.
Types of Transmission Media
In data communication terminology, a transmission medium is a physical path
between the transmitter and the receiver i.e it is the channel through which data is
sent from one place to another. Transmission Media is broadly classified into the
following types.
1. Guided Media
(i) Twisted Pair Cable (ii) Coaxial Cable (iii) Optical Fibre Cable
2. Unguided Media
(i) Radio Waves (ii) Microwaves (iii) Infrared
1. Guided Media:
It is also referred to as Wired or Bounded transmission media. Signals being
transmitted are directed and confined in a narrow pathway by using physical
links.
Features:
High Speed
Secure
Used for comparatively shorter distances
There are 3 major types of Guided Media:
(i) Twisted Pair Cable
A twisted pair cable is made of two plastic
insulated copper wires twisted together to
form a single media. Out of these two
wires, only one carries actual signal and
another is used for ground reference. The
twists between wires are helpful in
reducing noise and crosstalk.
There are two types of twisted pair cables:
Unshielded Twisted Pair (UTP) Cable
Shielded Twisted Pair (STP) Cable
Advantages Disadvantages
Better performance at a higher Comparatively difficult to install
data rate in comparison to UTP and manufacture
Eliminates crosstalk More expensive
Comparatively faster Bulky
(ii) Coaxial Cable These are widely used for cable
Coaxial cable has two wires of copper. TV connections and LANs. It provide
The core wire lies in the center and it high bandwidth rates of up to 450
is made of solid conductor. The core is mbps. There are three categories of
enclosed in an insulating sheath. The coax cables namely, RG-59 (Cable TV),
second wire is wrapped around over RG-58(Thin Ethernet), and RG-11
the sheath and that too in turn (Thick Ethernet). RG stands for Radio
encased by insulator sheath. Government.
Stiff copper wire as core and
Insulating material surrounding the
core
Closely woven braided mesh
of conducting material surrounding
the insulator
Protective plastic sheath encasing
the wire
Advantages
High Bandwidth
Better noise Immunity
Easy to install and expand
Inexpensive
Disadvantages
Single cable failure can disrupt the entire network
Advantages
Increased capacity and bandwidth
Light weight
Less signal attenuation
Immunity to electromagnetic
interference
Resistance to corrosive materials
Disadvantages
Difficult to install and maintain
High cost
Fragile
unidirectional, ie, will need
another fibre, if we need
bidirectional communication
Electromagnetic spectrum
The entire distribution of electromagnetic radiation according to frequency or
wavelength. Although all electromagnetic waves travel at the speed of light in a
vacuum, they do so at a wide range of frequencies, wavelengths, and photon energies.
The electromagnetic spectrum comprises the span of all electromagnetic radiation
and consists of many sub ranges, commonly referred to as portions, such as visible
light or ultraviolet radiation. The various portions bear different names based on
differences in behaviour in the emission, transmission, and absorption of the
corresponding waves and also based on their different practical applications.
The entire electromagnetic spectrum, from the lowest to the highest frequency
(longest to shortest wavelength), includes all radio waves (e.g.,
commercial radio and television, microwaves, radar), infrared radiation, visible light,
ultraviolet radiation, X-rays, and gamma rays. Nearly all frequencies and wavelengths
of electromagnetic radiation can be used for spectroscopy.
1. Absorption loss
2. Scattering loss
3. Dispersion loss
4. Radiation loss
5. Coupling loss
1. Absorption loss
Absorption loss is related to the material composition and fabrication process of fiber.
Absorption loss results in dissipation of some optical power as hear in the fiber cable.
Although glass fibers are extremely pure, some impurities still remain as residue
after purification. The amount of absorption by these impurities depends on their
concentration and light wavelength.
a. Intrinsic absorption : Intrinsic absorption in the ultraviolet region is caused by
electronic absorption bands. Basically, absorption occurs when a light particle
(photon) interacts with an electron and excites it to a higher energy level. The main
cause of intrinsic absorption in the infrared region is the characteristic vibration
frequency of atomic bonds. In silica glass, absorption is caused by the vibration of
silicon-oxygen (Si-O) bonds. Light energy is transferred from the electromagnetic field
to the bond.
b. Extrinsic absorption
Extrinsic absorption is much more significant than intrinsic caused by impurities
introduced into the fiber material during manufacture – Iron, nickel, and chromium
Caused by transition of metal ions to higher energy level. Modern fabrication
techniques can reduce impurity levels below 1 part in 1010. For some of the more
common metallic impurities in silica fibre the table shows the peak attenuation
wavelength and the attenuation caused by an impurity concentration of 1 in 109
2. Scattering loss
Basically, scattering losses are caused by the interaction of light with density
fluctuations within a fiber. Density changes are produced when optical fibers are
manufactured.
3. Dispersion loss
Dispersion is a measure of the temporal spreading that occurs when a light pulse
propagates through an optical fiber. Dispersion is sometimes referred to as delay
distortion in the sense that the propagation time delay causes the pulse to broaden.
4. Radiation losses
Radiation losses also called bending losses, occur when the fibre is curved. There are
two types of radiation losses: Micro bending losses. Macro bending losses.
5. Coupling losses
In fiber optic system face some losses in communication, which losses accrued from
material, cable length, cable bend, couple the more no. of fiber optic cable, splicing
the fiber cable etc., in coupling loss, fiber coupler will act as a loss in that Fiber Optic
System. Fiber coupler used for couple two fiber cable. During this coupling process
some light signal was loss in that Fiber Optic System, which is known as coupling
loss.
Light Sources
Light is an electromagnetic radiation. A particular frequency of this radiation
(around 390-700 nm) is visible to the human eye. Everything that we see around us
is because of light. Light is a form of energy and like all energies, it is produced from
a source, which are called Light sources.
The Sun is the major source of light for the earth. The sun is a massive ball of
fire, at the centre of which nuclear fusion produces massive energy. This
energy comes out as heat and light. The light from the sun is one of the major
factors behind the sustainability of life on earth.
Every other star produces light too, but only a small or no amount of it reaches
the earth because of the huge distance.
The moon provides light as well but it cannot produce light on its own. The
light that we get from the moon is the light reflected by it from the sun.
Some living organisms have the ability to produce light too. It is called
bioluminescence. It is the effect of certain chemical reactions within the
organism. Fireflies, jellyfish, glow worm, certain deep sea plants and
microorganisms can be cited as examples.
Certain other natural phenomena such as lightning and volcanic eruptions also
emit light.
Incandescent Sources
When certain objects are heated to a high temperature, they begin to emit light.
Both infrared and visible light is produced in the process.
Example- Candle, incandescent lamp.
Luminescent Sources
Light can be produced by accelerating charges in a luminescent material. One
common way of doing it is by passing current through the material.
Example- Fluorescent tube light, electric bulb
Light Detector
A device used in an optical transmission system to detect an optical signal
generated by a light source and propagating through a medium.
A light detector essentially is an optical receiver that is paired with an optical
transmitter, both of which are connected to electrically based devices or
systems.
Photoelectric sensors use a beam of light to detect the presence or absence of
an object. It emits a light beam (visible or infrared) from its light-emitting
element.
A reflective-type photoelectric sensor is used to detect the light beam reflected
from the target.
Light sensors vary from those that respond to changes, collect current or hold
voltage depending on light levels. People use light sensors for motion lights,
robot intelligence and much more.
Light sensors often detect light that's not visible to the human eye, like x-rays,
infrared and ultraviolet light.
Detector Response Time
τf is the time required for the detector output to vary between given percentages
(e.g. from 90% to 10%) of the initial value.
Laser
Laser is an acronym for “light amplification by the stimulated emission of
radiation.”
It is a device that stimulates atoms or molecules to emit light at particular
wavelengths and amplifies that light, typically producing a very narrow beam
of radiation.
The emission generally covers an extremely limited range of visible, infrared,
or ultraviolet wavelengths.
Many different types of lasers have been developed, with highly varied
characteristics.
Helium-neon lasers were the first lasers with broad commercial applications.
Because they could be adjusted to generate a visible red beam instead of an
infrared beam, they found immediate use projecting straight lines for
alignment, surveying, construction, and irrigation.
Soon eye surgeons were using pulses from ruby lasers to weld detached retinas
back in place without cutting into the eye.
The first large-scale application for lasers was the laser scanner for automated
checkout in supermarkets, which was developed in the mid-1970s and became
common a few years later.
Compact disc audio players and laser printers for personal computers soon
followed.
Lasers have become standard tools in diverse applications.
Laser pointers highlight presentation points in lecture halls, and laser target
designators guide smart bombs to their targets.
*****************
Module – III
Analog to Digital Conversion
The following technique can be used for Analog to Digital Conversion:
PULSE CODE MODULATION (PAM)
The most common technique to change an analog signal to digital data is called pulse
code modulation (PCM). A PCM encoder has the following three processes:
1. Sampling 2. Quantization 3. Binary Encoding
Low pass filter :
The low pass filter eliminates the high frequency components present in the input
analog signal to ensure that the input signal to sampler is free from the unwanted
frequency components. This is done to avoid aliasing of the message signal.
1. Sampling – The first step in PCM is sampling. Sampling is a process of measuring
the amplitude of a continuous-time signal at discrete instants, converting the
continuous signal into a discrete signal. There are three sampling methods:
(i) Ideal Sampling: In ideal Sampling also known as Instantaneous sampling pulses
from the analog signal are sampled. This is an ideal sampling method and cannot
be easily implemented.
(ii) Natural Sampling: Natural Sampling is a practical method of sampling in which
pulse have finite width equal to T. The result is a sequence of samples that retain
the shape of the analog signal.
(iii) Flat top sampling: In comparison to natural sampling flat top sampling can be
easily obtained. In this sampling technique, the top of the samples remains
constant by using a circuit. This is the most common sampling method used.
Nyquist Theorem
One important consideration is the sampling rate or frequency. According to the
Nyquist theorem, the sampling rate must be at least 2 times the highest frequency
contained in the signal. It is also known as the minimum sampling rate and given by:
Fs =2*hf
2. Quantization
The result of sampling is a series of pulses with amplitude values between the
maximum and minimum amplitudes of the signal. The set of amplitudes can be
infinite with non-integral values between two limits.
The following are the steps in Quantization:
2. We assume that the signal has amplitudes between Vmax and Vmin
3. We divide it into L zones each of height d where, d= (Vmax- Vmin)/ L
4. The value at the top of each sample in the graph shows the actual amplitude.
5. The normalized pulse amplitude modulation(PAM) value is calculated using the
formula amplitude/d.
6. After this we calculate the quantized value which the process selects from the
middle of each zone.
7. The Quantized error is given by the difference between quantised value and
normalised PAM value.
8. The Quantization code for each sample based on quantization levels at the left of
the graph.
3. Binary Encoding
The digitization of the analog signal is done by the encoder. After each sample is
quantized and the number of bits per sample is decided, each sample can be changed
to an n bit code. Encoding also minimizes the bandwidth used.
Dynamic range
Dynamic range describes the ratio of the softest sound to the loudest sound in a
musical instrument or piece of electronic equipment. This ratio is measured in
decibels (abbreviated as dB) units.
SQNRdB=20log10(VrmsVn)=20log10(2N32−−√)=6.02N+1.76
Linear Codes
The magnitude change between any two successive steps in uniform. With linear
codes, resolution for higher amplitude analog signals is the same for lower
amplitude signals.
Non Linear Codes
The step size increases with the amplitude of the input signal.
Companding in PCM
Delta Modulation
It is a simplified form of DPCM technique, also viewed as 1-bit DPCM scheme. As the
sampling interval is reduced, the signal correlation will be higher.
Delta Modulator
The Delta Modulator comprises of a 1-bit quantizer and a delay circuit along with
two summer circuits. Following is the block diagram of a delta modulator. A stair-
case approximated waveform will be the output of the delta modulator with the step-
size as delta (Δ). The output quality of the waveform is moderate.
Delta Demodulator
The delta demodulator comprises of a low pass filter, a summer, and a delay circuit.
The predictor circuit is eliminated here and hence no assumed input is given to the
demodulator.
Low pass filter is used for many reasons, but the prominent one is noise elimination
for out-of-band signals. The step-size error that may occur at the transmitter is
called granular noise, which is eliminated here. If there is no noise present, then the
modulator output equals the demodulator input.
Following is the block diagram for delta demodulator.
Advantages of Delta Modulation
The delta modulation has certain advantages over PCM as under :
1. Since, the delta modulation transmits only one bit for one sample, therefore the
signaling rate and transmission channel bandwidth is quite small for delta
modulation compared to PCM .
2. The transmitter and receiver implementation is very much simple for delta
modulation. There is no analog to digital converter required in delta modulation.
Differential PCM
The samples that are highly correlated, when encoded by PCM technique, leave
redundant information behind. To process this redundant information and to have a
better output, it is a wise decision to take predicted sampled values, assumed from
its previous outputs and summarize them with the quantized values. Such a process
is named as Differential PCM technique.
DPCM Transmitter
The DPCM Transmitter consists of Quantizer and Predictor with two summer
circuits. Following is the block diagram of DPCM transmitter.
The signals at each point are named as −
x(nTs)x(nTs) is the sampled input
xˆ(nTs)x^(nTs) is the predicted sample
e(nTs)e(nTs) is the difference of sampled input and predicted output, often
called as prediction error
v(nTs)v(nTs) is the quantized output
u(nTs)u(nTs) is the predictor input which is actually the summer output of the
predictor output and the quantizer output
The predictor produces the assumed samples from the previous outputs of the
transmitter circuit. The input to this predictor is the quantized versions of the input
signal x(nTs)x(nTs).
Quantizer Output is represented as −
v(nTs)=Q[e(nTs)]v(nTs)=Q[e(nTs)]
=e(nTs)+q(nTs)=e(nTs)+q(nTs)
Where q (nTs) is the quantization error
Predictor input is the sum of quantizer output and predictor output,
u(nTs)=xˆ(nTs)+v(nTs)u(nTs)=x^(nTs)+v(nTs)
u(nTs)=xˆ(nTs)+e(nTs)+q(nTs)u(nTs)=x^(nTs)+e(nTs)+q(nTs)
u(nTs)=x(nTs)+q(nTs)u(nTs)=x(nTs)+q(nTs)
The same predictor circuit is used in the decoder to reconstruct the original input.
DPCM Receiver
The block diagram of DPCM Receiver consists of a decoder, a predictor, and a
summer circuit. Following is the diagram of DPCM Receiver.
The notation of the signals is the same as the previous ones. In the absence of noise,
the encoded receiver input will be the same as the encoded transmitter output.
The predictor assumes a value, based on the previous outputs. The input given to
the decoder is processed and that output is summed up with the output of the
predictor, to obtain a better output.
Multiplexing
It is the set of techniques that allows the simultaneous transmission of multiple
signals across a single data link. Multiplexing is done using a device called
Multiplexer (MUX) that combine n input lines to generate one output line i.e. (many
to one). At the receiving end a device called Demultiplexer (DEMUX) is used that
separate signal into its component signals i.e. one input and several outputs (one to
many)
Categories of Multiplexing
Fig.
Advantages
1. An order is maintained.
2. No addressing information is required channel capacity should be large.
Disadvantages
1. High bitrate is required.
2. If no input signal is present at one channel since a fixed time Slot is assigned
to each channel, that time slot for that channel does not carry any information
and there is wastage of bandwidth.
Here, we want to combine multiple light sources into one single light at the
multiplexer and do the reverse at the demultiplexer. The combining and splitting of
light sources are easily handled by a prism. As we know, a prism bends a beam of
light based on the angle of incidence and the frequency. Using this technique, a
multiplexer can be made to combine several input beams of light, each containing a
narrow band of frequencies, into one output beam of a wider band of frequencies. A
demultiplexer can also be made to reverse the process.
Advantages of WDM
WDM is a quite simple technique.
The optical link provides greater bandwidth.
It allows secured transmission of optical signal.
This technique increases the signal carrying capacity of the system.
Disadvantages of WDM
The presence of optical component increases the overall cost of the system.
Proper wavelength spacing must be required otherwise it will lead to signal
interference.
1. STS Multiplexer:
Performs multipleximg of signals
Converts electrical signal to optical signal
2. STS Demultiplexer:
Performs demultiplexing of signals
Converts optical signal to electrical signal
3. Regenerator:
It is a repeater, that takes an optical signal and regenerates it.
4. Add/Drop Multiplexer:
It allows to add signals coming from different sources into a given path or
remove a signal.
SONET Layers
*******************
MODULE – IV
2. Microwaves
Microwaves are of two types:
o Terrestrial microwave
o Satellite microwave communication.
3. Infrared
o An infrared transmission is a wireless technology used for communication over
short ranges.
o The frequency of the infrared in the range from 300 GHz to 400 THz.
o It is used for short-range communication such as data transfer between two
cell phones, TV remote operation, data transfer between a computer and cell
phone resides in the same closed area.
Characteristics Of Infrared:
o It supports high bandwidth, and hence the data rate will be very high.
o Infrared waves cannot penetrate the walls. Therefore, the infrared
communication in one room cannot be interrupted by the nearby rooms.
o An infrared communication provides better security with minimum
interference.
o Infrared communication is unreliable outside the building because the sun
rays will interfere with the infrared waves.
Electromagnetic Polarization
As electromagnetic waves consist of an electric and a magnetic field vibrating at
right angles to each other it is necessary to adopt a convention to determine the
polarization of the signal. For this purpose the plane of the electric field is used.
Polarization, also called wave polarization, is an expression of the orientation of
the lines of electric flux in an electromagnetic field ( EM field ).
Polarization occurs when an electric field distorts the negative cloud of electrons
around positive atomic nuclei in a direction opposite the field. This slight
separation of charge makes one side of the atom as positive and the opposite side
as negative.
Polarization can be constant -- that is, existing in a particular orientation at all
times, or it can rotate with each wave cycle.
Polarization is important in wireless communications systems. The physical
orientation of a wireless antenna corresponds to the polarization of the radio
waves received or transmitted by that antenna.
Thus, a vertical antenna receives and emits vertically polarized waves, and a
horizontal antenna receives or emits horizontally polarized waves.
The best short-range communications is obtained when the transmitting and
receiving (source and destination) antennas have the same polarization.
The least efficient short-range communications usually takes place when the two
antennas are at right angles (for example, one horizontal and one vertical).
Over long distances, the atmosphere can cause the polarization of a radio wave to
fluctuate, so the distinction between horizontal and vertical becomes less
significant.
Polarization involves creating division or causing a group or something to be
divided up into two opposing groups. An example of polarization is when a
controversial political figure causes the country to become sharply divided.
Effect of Polarization
Polarization refers to an effect reducing the performance of batteries. This effect is
a displacement of electrode potential from the equilibrium value.
Polarization affects the propagation of EM fields at infrared ( IR ), visible,
ultraviolet ( UV ), and even X-ray wavelength s.
In ordinary visible light, there are numerous wave components at random
polarization angles. When such light is passed through a special filter, the filter
blocks all light except that having a certain polarization.
When two polarizing filters are placed so a ray of light passes through them both,
the amount of light transmitted depends on the angle of the polarizing filters with
respect to each other.
The most light is transmitted when the two filters are oriented so they polarize
light in the same direction. The least light is transmitted when the filters are
oriented at right angles to each other.
Types of Polarization
Following are the three types of polarization depending on the transverse and longitudinal
wave motion:
o Linear polarization
o Circular polarization
o Elliptical polarization
Linear Polarization
Vertical and horizontal polarizations are the most straightforward forms and they
fall into a category known as linear polarization. Here the wave can be thought of
as vibrating in one plane, i.e. up and down, or side to side.
This form of polarization is the most commonly used, and the most
straightforward.
Circular Polarization
It can be visualized by imagining a signal propagating from an antenna that is
rotating.
It can be either right or left handed dependent upon the direction of rotation as
seen from the transmitting antenna.
There are two linear components in the electric field of light that are perpendicular
to each other such that their amplitudes are equal, but the phase difference
is π/2. The propagation of occurring electric field will be in a circular motion.
Elliptical Polarization
The electric field of light follows an elliptical propagation.
The amplitude and phase difference between the two linear components are not
equal.
This occurs when there is a combination of both linear and circular polarization.
This can be visualized by imagining the tip of the electric field tracing out an
elliptically shaped corkscrew
Skip distance
The skip distance is the distance over the Earth's surface between the point where a
radio signal is transmitted, and the point where it is received having travelled to the
ionosphere, and been refracted back by the ionosphere.
The second effect is that of the receiving antenna's aperture, which describes how
well an antenna can pick up power from an incoming electromagnetic wave. For an
isotropic antenna, this is given by
P1 = S.λ2 (2)
4𝜋
Pr = received power [W]
S = nondirectional power density
λ = transmitted wave length [m]
The total loss is given by the ratio:
FSPL = P1 = 4𝜋.R 2 = 4𝜋Rf 2 (3)
Pr λ c
fr = transmitted frequency
c = the speed of light
which can be found by combining the previous two expressions.
********************
MODULE – V
Bit Rate and Baud Rate
Both Bit rate and Baud rate are generally used in data communication.
Bit rate is the transmission of number of bits per second. On the other hand, Baud
rate is defined as the number of signal units per second. The formula which relates
both bit rate and baud rate is given below:
Bit rate = Baud rate X the number of bit per baud
Error
Error is a condition when the output information does not match with the input
information. During transmission, digital signals suffer from noise that can
introduce errors in the binary bits travelling from one system to other. That means a
0 bit may change to 1 or a 1 bit may change to 0.
Even parity -- Even parity means the number of 1's in the given word including the
parity bit should be even (2,4,6,....).
Odd parity -- Odd parity means the number of 1's in the given word including the
parity bit should be odd (1,3,5,....).
Use of Parity Bit
The parity bit can be set to 0 and 1 depending on the type of the parity required.
For even parity, this bit is set to 1 or 0 such that the no. of "1 bits" in the
entire word is even. Shown in fig. (a).
For odd parity, this bit is set to 1 or 0 such that the no. of "1 bits" in the entire
word is odd. Shown in fig. (b).
Types Of Errors
Errors can be classified into two categories: Single-Bit Error and Burst Error
In the above figure, the message which is sent is corrupted as single-bit, i.e., 0 bit is
changed to 1.
Single-Bit Error mainly occurs in Parallel Data Transmission. For example, if eight
wires are used to send the eight bits of a byte, if one of the wire is noisy, then single-
bit is corrupted per byte.
The duration of noise in Burst Error is more than the duration of noise in Single-Bit.
Burst Errors are most likely to occur in Serial Data Transmission.
The number of affected bits depends on the duration of the noise and data rate.
Error Detection
When data is transmitted from one device to another device, the system does not
guarantee whether the data received by the device is identical to the data transmitted
by another device. An Error is a situation when the message received at the receiver
end is not identical to the message transmitted.
Checksum Checker
A Checksum is verified at the receiving side. The receiver subdivides the incoming
data into equal segments of n bits each, and all these segments are added together,
and then this sum is complemented. If the complement of the sum is zero, then the
data is accepted otherwise data is rejected.
The Receiver follows the given steps:
The block unit is divided into k sections and each of n bits.
All the k sections are added together by using one's complement to get the sum.
The sum is complemented.
If the result of the sum is zero, then the data is accepted otherwise the data is di
scarded.
Cyclic Redundancy Check (CRC)
CRC is a redundancy error technique used to determine the error.
o In CRC technique, a string of n 0s is appended to the data unit, and this n
number is less than the number of bits in a predetermined number, known as
division which is n+1 bits.
o Secondly, the newly extended data is divided by a divisor using a process is
known as binary division. The remainder generated from this division is known
as CRC remainder.
o Thirdly, the CRC remainder replaces the appended 0s at the end of the original
data. This newly generated unit is sent to the receiver.
o The receiver receives the data followed by the CRC remainder. The receiver will
treat this whole unit as a single unit, and it is divided by the same divisor that
was used to find the CRC remainder.
If the resultant of this division is zero which means that it has no error, and the data
is accepted.
If the resultant of this division is not zero which means that the data consists of an
error. Therefore, the data is discarded.
Example : Suppose the original data is 11100 and divisor is 1001.
CRC Checker
o The functionality of the CRC checker
is similar to the CRC generator.
o When the string 11100111 is received
at the receiving end, then CRC
checker performs the modulo-2
division.
o A string is divided by the same
divisor, i.e., 1001.
o In this case, CRC checker generates
the remainder of zero. Therefore, the
data is accepted.
Error Correction
Error Correction codes are used to detect and correct the errors when data is
transmitted from the sender to the receiver.
Error Correction can be handled in two ways:
o Backward error correction: Once the error is discovered, the receiver requests
the sender to retransmit the entire data unit.
o Forward error correction: In this case, the receiver uses the error-correcting
code which automatically corrects the errors.
A single additional bit can detect the error, but cannot correct it. For correcting the
errors, one has to know the exact position of the error. For example, If we want to
calculate a single-bit error, the error correction code will determine which one of
seven bits is in error. To achieve this, we have to add some additional redundant bits.
Suppose r is the number of redundant bits and d is the total number of the data bits.
The number of redundant bits r can be calculated by using the formula:
2r>=d+r+1
The value of r is calculated by using the above formula. For example, if the value of d
is 4, then the possible smallest value that satisfies the above relation would be 3.
To determine the position of the bit which is in error, a technique developed by R.W.
Hamming is Hamming code which can be applied to any length of the data unit and
uses the relationship between data units and redundant units.
Hamming Code
Parity bits: The bit which is appended to the original data of binary bits so that the
total number of 1s is even or odd.
Even parity: To check for even parity, if the total number of 1s is even, then the
value of the parity bit is 0. If the total number of 1s occurrences is odd, then the
value of the parity bit is 1.
Odd Parity: To check for odd parity, if the total number of 1s is even, then the value
of parity bit is 1. If the total number of 1s is odd, then the value of parity bit is 0.
Example :
Suppose the original data is 1010 which is to be sent.
Total number of data bits 'd' = 4
Number of redundant bits r : 2r >= d+r+1
2r>= 4+r+1
Therefore, the value of r is 3 that satisfies the above relation.
Total number of bits = d+r = 4+3 = 7;
Determining the position of the redundant bits
The number of redundant bits is 3. The three bits are represented by r1, r2, r4.
The position of the redundant bits is calculated with corresponds to the power of 2.
Therefore, their corresponding positions are 1, 21, 22.
1. The position of r1 = 1
2. The position of r2 = 2
3. The position of r4 = 4
Representation of Data on the addition of parity bits:
3. EBCDIC Code
• Extended Binary Coded Decimal Interchange Code.
• 8-bit character code developed by IBM.
• used for data communication, processing and storage.
• extended earlier proprietary 6-bit BCD code.
• designed for backward compatibility or marketing.
• still in use today on some mainframes and legacy systems.
• Allows for 256 different character representations (28).
• includes upper and lower case.
• lots of special characters (non-printable).
• lots of blank (non-used codes).
• assigned to international characters in various versions
used with/without parity (block transmissions).
o Both the sender and the receiver have buffers called sending window and
receiving window respectively.
o The sender sends multiple frames based upon the sending-window size, without
receiving the acknowledgment of the previous ones.
o The receiver also receives multiple frames within the receiving window size.
o The receiver keeps track of incoming frame’s sequence numbers, buffers the
frames in memory.
o It sends ACK for all successfully received frames and sends NACK for only
frames which are missing or damaged.
o The sender in this case, sends only packet for which NACK is received.
Data Service Unit (DSU)
It is a digital communication device that works with a Channel Service Unit (CSU) to
connect a local area network (LAN) to an external communication carrier service or
a wide area network (WAN) link (such as a T1 line). Data Service Units (DSUs) provide
a modem-like interface between data terminal equipment (DTE) such as a router and
the CSU connected to the digital service line. DSUs also serve to electrically isolate
the telco’s digital telecommunication line from the networking equipment at the
customer premises.
For example, in T1 transmission technologies, the DSU converts network data frames
that are received from the router’s RS-232, RS-449, or V.35 serial transmission
interface into the standard DSX framing format, encoding scheme, and voltages of
the T1 line. The DSU also converts the unipolar networking signal into a bipolar
signal suitable for transmission over the digital line. The DSU is also responsible for
handling signal regeneration and for controlling timing errors for transmission over
the T1 line. DSUs usually provide other functions such as line conditioning of the T1
line, as well as remote diagnostic capabilities such as Simple Network Management
Protocol (SNMP), which allows the telco central office (CO) to monitor the state of the
line at the customer premises.
Working of CSU/DSU
CSU/DSUs essentially function as the digital counterpart to analog modems. They
are typically external units that look similar to an external modem, but they can also
come in sizes that can be mounted in a rack. Unlike analog modems, CSU/DSUs do
not perform signal conversion because the signal at both ends is already digital.
CSU/DSUs package digital data into a format suitable for the particular digital
transmission line they are servicing, and buffer and rate-adapt digital signals going to
and from the telephone company network. CSU/DSUs ensure that data frames are
properly formed and timed for the telephone company network and provide a
protective barrier to electrical disturbances that can harm customer premises
equipment (CPE).
Modem
The most common type of data communications equipment(DEC) is the data
communication modem. The word modem is a contraction derived from the words
modulator and demodulator.
Telephone circuit were designed for transporting analog voice signals within a
bandwidth approximately 300Hz to 3000Hz. Telephone circuit included amplifiers
and other analog devices that could not propagate digital signals. Therefore,
voice-band data modems were designed to communicate with each other using
analog signals that occupied the same bandwidth used for standard voice
telephone communications.
Data communications modem designed to operate over the limited bandwidth of
the public telephone network are called voice-band modems.
Because digital information can not be transported directly over analog
transmission media, the primary purpose of a data communications modem is to
interface computers, computer networks and other digital terminal equipment to
analog communications facilities.
In the transmitter(modulator) section of a modem, digital signals are encoded onto
an analog carrier. The digital signals modulate the carrier, producing digitally
modulated analog signals that are capable of being transported through the
analog communications media. Therefore, the output of a modem is an analog
signal that is carrying digital information.
In the receiver section of a modem, digitally modulated analog signals are
demodulated. Demodulation is the reverse process of modulation. Therefore,
modem receivers (demodulators) simply extract digital information from digitally
modulated analog carriers.
The below figure shows how a modem is used to facilitate the transmission of
digital data between DTEs over a POTs telephone circuit. At the transmit end, a
modem received discrete digital pulses from a DTE through a serial digital
interface (such as RS-232). The DCE converts the digital pulses to analog signals.
A modem transmitter is a digital–to–analog converter(DAC). The analog signals
are then outputted onto an analog communications channel where they are
transported through the system to a distant receiver.
At the destination end of a data communications system, a modem receives analog
signals from the communications channel and converts them to digital pulses. A
modem receiver is an analog-to-digital converter (ADC). The demodulated digital
pulses are then outputted onto a serial digital interface and transported to the
DTE.
Modem Classifications
Data communications modems can be generally classified as either Asynchronous or
Synchronous and use one of the following digital modulation schemes : ASK, FSK,
PSK or QAM.
Modems can be categorized as
internal or external
low speed, medium speed, high speed, or very high speed;
wide band or voice band
personal or commercial etc.
Regardless of how modems are classified, they all share a common goal, to convert
digital pulses to analog signals in the transmitter and analog signals to digital pulses
in the receiver.
Modem Synchronization
During the request-to-send/clear-to-send(RTS/CTS) delay, a transmit modem
outputs a special, internally generated bit pattern called a training sequence. This
bit pattern is used to synchronize (train) the receive modem at the distant end of the
communications channel. Depending on the type of modulation, transmission bit
rate and modem complexity, the training sequence accomplishes one or more of the
following functions :
1. Initializes the communications channel, which includes disabling echo and
establishing the gain of automatic gain control(AGC) devices.
2. Verifies continuity in the receive modem.
3. Initialize descrambler circuits in receive modem.
4. Initialize automatic equalizers in receive modem.
5. Synchronize the receive modem’s carrier to the transmit modem’s carrier.
6. Synchronize the receive modem’s clock to the transmit modem’s clock.
***********************