Documente Academic
Documente Profesional
Documente Cultură
Computer Networks
Chapter 1
Introduction
DATACOMMUNICATION
Communication:
Communication is a process of establishing
connection or link between two points for information
exchanges.
Telecommunication
Telecommunication means communication at a
distance.
Data communication
Data communication is the exchange of data between
two devices via some form of transmission medium such
as a wire cable.
General
General Communication
Communication Model
Model
Source
Micropho
ne
Telephone
Computer
Scanner
Transmitter
Transform
er
Encoder
Compress
Modulator
Transmission
System
Line/Cabl
e
Fiber/Air
Satellite
Network
Receiver
Transforme
r
Decoder
Uncompres
s
Demodulat
or
Destination
Speaker
Earphon
e
Comput
er
Printer
Communications Model
Source
generates data to be transmitted
Transmitter
converts data into transmittable signals
Transmission System
carries data
Receiver
converts received signal into data
Destination
takes incoming data from the receiver
Components of a data
communications system
Simplex
Simplex Transmission
Transmission and
and Duplex
Duplex
Transmission
Transmission
Simplex
Transmission
Half Duplex
Transmission
Direction of data
Device A
Device B
One can send and the other can receive
Device B
Full Duplex
Transmission
Device A
Device B
Simplex
In
simplex
mode,
the
communication
is
unidirectional.
Only one of the two devices on a link can transmit;
the other can only receive
Keyboards and traditional monitors are examples of
simplex devices
keyboard can only introduce input; the monitor can
only accept output.
The simplex mode can use the entire capacity of the
channel to send data in one direction
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
ln a half-duplex transmission, the entire capacity
of a channel is taken over by whichever of the
two devices is transmitting at the time.
In half-duplex, the entire capacity of the channel
is taken over by the transmitting (sending).
Walkie-talkies and CB (citizens band) radios are
both half-duplex systems
Full-duplex
In full-duplex mode both stations can transmit and
receive simultaneously
In full-duplex mode, signals going in one direction
share the capacity of the link with signals going in
the other direction.
This sharing can occur in two ways: either the
link must contain two physically separate
transmission paths, one for sending and the other
for receiving; or the capacity of the channel is
divided between signals traveling in both
directions.
One common example of full-duplex
communication is the telephone network. When
two people are communicating by a telephone line,
both can talk and listen at the same time
Data
Entities that convey Some meaning
Signals
Electric or electromagnetic or optical
representations of data.
So when ever data needs to be sent ,
it has to be converted into signal of
some form for transmission over
suitable medium
Transmission
Communication of data by
propagation and processing of signals
Data
Analog
Continuous values within some interval
e.g. sound, video
Digital
Discrete values
e.g. text, integers
Signals
Means by which data are propagated
Analog
Continuously variable
Various media
Wire, fiber optic, space
Digital
Use two DC components
Analog Transmission
Analog signal transmitted without
regard to content
May be analog or digital data
Attenuated over distance
Use amplifiers to boost signal
Also amplifies noise
Digital Transmission
Concerned with content.
Integrity endangered by noise, attenuation
etc.
Repeaters used.
Repeater receives signal.
Extracts bit pattern.
Retransmits.
Attenuation is overcome.
Noise is not amplified.
Data integrity
Longer distances over lower quality lines
Capacity utilization
High bandwidth links economical
High degree of multiplexing easier with digital
techniques
Integration
Can treat analog and digital data similarly
Transmission Impairments
Impairment is imperfections in
medium cause impairment
Signal received may differ from signal
transmitted
Analog - degradation of signal quality
Digital - bit errors
Caused by(three causes of impairment)
Attenuation and attenuation distortion
Delay distortion
Noise
Causes of impairment
Attenuation
Means loss of energy -> weaker
signal
When a signal travels through a
medium it loses energy
overcoming the resistance of the
medium
Amplifiers are used to compensate
for this loss of energy by
amplifying the signal.
Measurement of Attenuation
To show the loss or gain of energy
the unit decibel is used.
dB = 10log10P2/P1
P1 - input signal
P2 - output signal
Figure : Attenuation
Example :1
Suppose a signal travels through a transmission
medium and its power is reduced to one-half.
This means that P2 is (1/2)P1. In this case, the
attenuation (loss of power) can be calculated as
Example:2
A signal travels through an amplifier, and its
power is increased 10 times. This means that P2
= 10P1 . In this case, the amplification (gain of
power) can be calculated as
Example:3
One reason that engineers use the decibel to
measure the changes in the strength of a signal is
that decibel numbers can be added (or
subtracted) when we are measuring several points
(cascading) instead of just two. In Figure 3.27 a
signal travels from point 1 to point 4. In this case,
the decibel value can be calculated as
3.33
Example :4
Sometimes the decibel is used to measure signal
power in milliwatts. In this case, it is referred to as
dBm and is calculated as dBm = 10 log10 Pm , where
Pm is the power in milliwatts. Calculate the power
of a signal with dBm = 30.
Solution
We can calculate the power in the signal as
Example : 5
The loss in a cable is usually defined in decibels per kilometer (dB/km).
If the signal at the beginning of a cable with 0.3 dB/km has a power of
2 mW, what is the power of the signal at 5 km?
Solution
The loss in the cable in decibels is 5 (0.3) = 1.5 dB. We can
calculate the power as
Distortion
Means that the signal changes its form
or shape
Distortion occurs in composite signals
Each frequency component has its own
propagation speed traveling through a
medium.
The different components therefore
arrive with different delays at the
receiver.
That means that the signals have
different phases at the receiver than
they did at the source.
Figure :
Distortion
Noise
There are different types of noise
Thermal - random noise of electrons
in the wire creates an extra signal
Induced - from motors and
appliances, devices act are
transmitter antenna and medium as
receiving antenna.
Crosstalk - same as above but
between two wires.
Impulse - Spikes that result from
power lines, lighning, etc.
Figure :
Noise
Example :6
The power of a signal is 10 mW and the power
of the noise is 1 W; what are the values of
SNR and SNRdB ?
Solution
The values of SNR and SNRdB can be
calculated as follows:
Example :7
The values of SNR
noiseless channel are
and
SNRdB
for
Nyquist Bandwidth
C = 2B log2 M
Where
C = Capacity of the channel
B = Bandwidth
M = Number of discrete signal or
voltage
level
Where.
C = Capacity of the channel in bits per sec.
B = Bandwidth in Hertz.
SNR = Signal-to-Noise ratio in dB.
(SNR)dB = 10 log10 (signal power/noise power).
Example
Spectrum of the channel = 3 to 4 MHz
SNR = 24dB
Then B = 4MHz 3MHz = 1MHz
SNRdB = 24dB = 10 log10 (SNR)
SNR = 251
Using Shannons formula,
C = 106 * log2(1+251) ~ 106 * 8 = 8 Mbps
Based on Nyquists formula
C = 2B log2 M
8 * 106 = 2 * (106) * log2 M
4 = log2 M
M = 16