Computer Networks BE Notes
Computer Networks BE Notes
( 12CS52 )
19.08.2016 15:18 1
Data and Signals
This chapter discusses the relationship
between :
• data …. which are created by a device
and
• electromagnetic signals …. which are
transmitted over a medium
need :
to move data, in the form of electromagnetic
signals, across a transmission medium
19.08.2016 15:18 2
Data and Signals
Introduction
data comprising text / numbers / images /
audio / video ….
to be transmitted across network
connections ……
must be converted to …..
electromagnetic signals
transmission media work by conducting
energy across a physical path
data and signals can be either in analog
or digital in form
19.08.2016 15:18 3
Data and Signals
Analog and Digital Data
analog data → continuous information
digital data → discrete state information
analog digital
19.08.2016 15:18 4
Data and Signals
Analog and Digital Data
speech, in the form of continuous waves,
can be captured by a microphone and
converted to analog signal
analog signal can also be sampled and
converted to digital signal
data stored in a computer takes on
discrete values viz. 1s and 0s
these need to be converted to digital
signal or modulated into an analog signal
for transmission
19.08.2016 15:18
across a medium 5
Data and Signals
Analog and Digital Signals
Aperiodic signal :
changes without exhibiting a pattern or
cycle over time
19.08.2016 15:18 7
Data and Signals
Analog Signals
commonly used in data communications :
• periodic analog signals
• aperiodic digital signals
Periodic Analog Signals :
simple : example - a pure sine wave
composite : composed of multiple sine waves
a sine wave can be represented by :
• peak amplitude
• frequency
• phase
19.08.2016 15:18 8
Data and Signals
Analog Signals
(Volts)
19.08.2016 15:18 Two signals : same frequency, same phase, different amplitude 9
Data and Signals
Analog Signals
Period and Frequency
these are just one characteristic of an
analog signal defined in two ways
Period : refers to the amount of time in
seconds a signal needs to complete 1 cycle
Frequency : refers to the number of periods
in 1 second (expressed in cycles per sec or Hz)
frequency and period are inverse of each other
19.08.2016 15:18 10
Data and Signals
Analog Signals
Period and Frequency
12 Hz
6 Hz
19.08.2016 15:18 Two signals : same amplitude, same phase, different frequencies 11
Data and Signals
Analog Signals
Period and Frequency : Units of Period and frequency
T = (1 ÷ f ) = ( 1 ÷ 50 ) = 0.02 seconds
= 0.02 x 103 msec = 20 msec
19.08.2016 15:18 13
Data and Signals
Analog Signals
Period and Frequency
Example - 2 BF4Ed3.10.17
Given the following periods of signals :
(a) 5 seconds
(b) 12 microseconds (µsec)
(c) 220 nanoseconds (nsec)
(a) 0.2 Hz
19.08.2016 15:18 15
Data and Signals
Analog Signals
Period and Frequency
Example - 3 BF4Ed3.10.25
What is the frequency of the signal shown
below ?
19.08.2016 15:18 16
Data and Signals
Analog Signals
Period and Frequency
Example - 3 BF4Ed3.10.25
19.08.2016 15:18 17
Data and Signals
Analog Signals
Phase
describes the position (or shift) of the
waveform relative to time 0
phase is measured in degrees or radians
o
a phase shift of 360 corresponds to a
shift of a complete period
o
360 = 2π π radians
o
1 = (2π
π / 360) radians
1 radian = (360 / 2ππ)
19.08.2016 15:18 18
Data and Signals
Analog Signals
Phase
o
0
o
90
o
180
19.08.2016 15:18 19
Data and Signals
Analog Signals
Phase
Example - 4 BF4Ed3.6
A sine wave is offset (1 ÷ 6) cycle w.r.t.
time 0.
What is its phase in degrees and radians?
o o
(1 ÷ 6) cycle = 360 ÷ 6 = 60
= 60 x ( 2π
π / 360 ) = ( π / 3 )
= 1.047 radians
19.08.2016 15:18 20
Data and Signals
Analog Signals
Phase
Example - 5 BF4Ed3.10.18
What is the phase shift of the following ? :
19.08.2016 15:18 21
Data and Signals
Analog Signals
Phase
Example - 5 BF4Ed3.10.18
19.08.2016 15:18 22
Data and Signals
Analog Signals
Wavelength
is a characteristic of a signal travelling
through a medium
frequency of a signal is independent of
the medium through which it travels
wavelength depends on both frequency
and the medium
wave length is the distance a simple signal
can travel through a medium in one period
19.08.2016 15:18 23
Data and Signals
Analog Signals
Wavelength
19.08.2016 15:18 24
Data and Signals
Analog Signals
Wavelength
wavelength is normally expressed in
microns or µmeters or µm
propagation speed ( c ) of electromagnetic
signals depends on the medium
in vacuum or free space,
c = 3 x 108 m/sec or 3 x 105 Km/sec
in other medium, say, Cu or OFC,
c ≈ 2 x 108 m/sec or 2 x 105 Km/sec
19.08.2016 15:18 25
Data and Signals
Analog Signals
Example - 6 WS7Ed4.8
Frequency domain
a sine wave represented as a
single spike in frequency domain
19.08.2016 15:18 29
Data and Signals
Analog Signals
Time and Frequency domains - plots
19.08.2016 15:18 32
Data and Signals
Analog Signals
Composite Signals : periodic
fundamental frequency or 1st harmonic
1st harmonic
discrete spikes
3rd harmonic
9th harmonic
Frequency
19.08.2016 15:18 33
Data and Signals
Analog Signals
Composite Signals : aperiodic
aperiodic composite signal can be
decomposed into a combination of sine
waves with continuous frequencies
19.08.2016 15:18 34
Data and Signals
Analog Signals
Bandwidth
the range of frequencies contained in a
composite signal
the bandwidth of a composite signal is the
difference between the highest and the
lowest frequencies contained in that signal
normal human voice comprises…..
a continuous range of frequencies…..
between 0 and 4 KHz
19.08.2016 15:18 35
Data and Signals
Analog Signals
Bandwidth : periodic and aperiodic composite signals
Periodic
Aperiodic
19.08.2016 15:18 36
Data and Signals
Analog Signals
Bandwidth : examples
• periodic or aperiodic ?
• frequencies ?
• amplitudes ?
• bandwidth ?
19.08.2016 15:18 37
Data and Signals
Analog Signals
Bandwidth : examples
• periodic or aperiodic ?
• frequencies : highest ? ; lowest ?
• amplitudes ?
• bandwidth ?
19.08.2016 15:18 38
Data and Signals
Analog Signals
Bandwidth : examples
20 V
• periodic or aperiodic ?
• middle frequency ? ; highest ? ; lowest ?
• amplitudes ?
• bandwidth ?
19.08.2016 15:18 39
Data and Signals
Analog Signals
Example - 7 BF4Ed3.10.19
19.08.2016 15:18 40
Data and Signals
Analog Signals
Example - 7 BF4Ed3.10.19
19.08.2016 15:18 41
Data and Signals
Analog Signals
Example - 8 BF4Ed3.10.20
19.08.2016 15:18 42
Data and Signals
Analog Signals
Example - 8 BF4Ed3.10.20
19.08.2016 15:18 43
Data and Signals
Analog Signals
Example - 9 BF4Ed3.10.34
19.08.2016 15:18 44
Data and Signals
Analog Signals
Example - 9 BF4Ed3.10.34
19.08.2016 15:18 45
Data and Signals
Analog Signals
Example - 10 BF4Ed3.10.35
19.08.2016 15:18 46
Data and Signals
Analog Signals
Example - 10 BF4Ed3.10.35
Distance travelled
= 1 µm x 1000
= 1000 µm
= 1 mm
19.08.2016 15:18 47
Data and Signals
Digital Signals
recall ……
information can be represented by :
• an analog signal
• a digital signal
19.08.2016 15:18 49
Data and Signals
Digital Signals
a positive voltage can represent a digital 1
a zero voltage can represent a digital 0
19.08.2016 15:18 53
Data and Signals
Digital Signals
Example : BF4Ed3.18
= 25.6 Kbps
19.08.2016 15:18 54
Data and Signals
Digital Signals
Example : BF4Ed3.19
19.08.2016 15:18 56
Data and Signals
Digital Signals
Example - 11 BF4Ed3.10.22
19.08.2016 15:18 57
Data and Signals
Digital Signals
Example - 11 BF4Ed3.10.22
(a) 1 Kbps
(b) 500 bps
(c) 500 Kbps
(d) 4 Tbps
19.08.2016 15:18 58
Data and Signals
Digital Signals
Example - 12 BF4Ed3.10.23
19.08.2016 15:18 60
Data and Signals
Digital Signals
Example - 13 BF4Ed3.10.33
19.08.2016 15:18 61
Data and Signals
Digital Signals
Example - 13 BF4Ed3.10.33
19.08.2016 15:18 62
Data and Signals
Digital Signals
Example - 14 BF4Ed3.10.38
19.08.2016 15:18 63
Data and Signals
Digital Signals
Example - 14 BF4Ed3.10.38
19.08.2016 15:18 64
Data and Signals
Digital Signals
Example - 15 BF4Ed3.10.39
19.08.2016 15:18 69
Data and Signals
Digital Signals
Transmission of Digital signals
Example : LAN
19.08.2016 15:18 71
Data and Signals
Digital Signals
Transmission of Digital signals
Baseband transmission
requires low-pass channel, a channel with
a bandwidth that starts from zero
ideal
≈0
very high
19.08.2016 15:18 74
Data and Signals
Digital Signals
Transmission of Digital signals
Baseband transmission :
B. low-pass channel with limited bandwidth
19.08.2016 15:18 75
Data and Signals
Digital Signals
Transmission of Digital signals
Baseband transmission :
B. low-pass channel with limited bandwidth
assumptions :
• signal of bit rate N
• signal has alternate 1s and 0s
i.e 010101…. or 101010….
• positive peak = 1; negative peak = 0
corresponding bandwidth required is
equal to ( N ÷ 2)
19.08.2016 15:18 76
Data and Signals
Digital Signals
Transmission of Digital signals
Baseband transmission :
B. low-pass channel with limited bandwidth
pattern
010
19.08.2016 15:18 79
Data and Signals
Digital Signals
Transmission of Digital signals
Broadband transmission ( using modulation )
the digital signal is changed or modulated
to generate an analog signal that is
Example : sending computer data
transmitted over telephone line
modulation allows the use of a .......
bandpass channel, that is easily realizable
19.08.2016 15:18 80
Data and Signals
Digital Signals
Transmission of Digital signals
Broadband transmission ( using modulation )
using a
carrier signal
19.08.2016 15:18 82
Data and Signals
Transmission impairment
Attenuation
means loss of energy in overcoming the
resistance of the medium
attenuation and amplification
19.08.2016 15:18 83
Data and Signals
Transmission impairment
Attenuation
decibel (dB) :
is a measure of relative strengths of two
signals or
one signal at two different points
decibel value is
• negative if signal is attenuated
• positive if signal is amplified
19.08.2016 15:18 85
Data and Signals
Transmission impairment
Amplification - decibel (dB) :
Example BF4e3.27
19.08.2016 15:18 86
Data and Signals
Transmission impairment
Attenuation / Amplification - decibel (dB) :
Example BF4e3.28
decibel numbers can be added or
subtracted corresponding to amplification
or attenuation
19.08.2016 15:18 87
Data and Signals
Transmission impairment
Attenuation
Example BF4e3.30
19.08.2016 15:18 90
Data and Signals
Transmission impairment
Attenuation
Example - 16 BF4e3.10.31
log10 (P2 ÷ 5) = −1
P2 = 0.5 W = 500 mW
19.08.2016 15:18 91
Data and Signals
Transmission impairment
Attenuation / Amplification
dBm :
is a measure of relative strength with
reference to 1 milliwatt of power
dBm = 10 log10 (Pm)
19.08.2016 15:18 92
Data and Signals
Transmission impairment
Attenuation
Example - 17 WS9.1
19.08.2016 15:18 96
Data and Signals
Transmission impairment
Distortion
19.08.2016 15:18 97
Data and Signals
Transmission impairment
Noise
several types of noise may corrupt a
signal travelling through a medium
sources of noise :
(a) thermal noise : due to random motion
of electrons in a cable ; a signal not
originally sent is generated
(b) induced noise : generated from sources
like motors and similar appliances
19.08.2016 15:18 98
Data and Signals
Transmission impairment
Noise
sources of noise :
(c) cross talk : effect of signal passing
through one cable on an adjacent cable
(d) impulse noise : spikes generated by
high voltage / power lines, lightning, …
19.08.2016 15:18 99
Data and Signals
Transmission impairment
Signal-to-Noise Ratio (SNR)
defined as :
average signal power ÷ average noise power
is the ratio of wanted signal to unwanted
SNRdB = 10 log10 (SNR)
high SNR → signal less corrupted by noise
low SNR → signal more corrupted by noise
ideal SNR → very high or infinity
large SNR
19.08.2016 15:18
small SNR 101
Data and Signals
Data Rate Limits
data rate determines how fast data (bps)
can be sent over a channel
data rate depends on three factors :
• bandwidth available
• levels of signals used
• quality (noise level) of channel
Transmission time
time required for transmission of a message
(first bit to last bit) through the medium
Transmission time = Message size ÷ Bandwidth
of the channel
19.08.2016 15:18 114
Data and Signals
Performance
Propagation time vs. Transmit time :
Example ( of high vs. low ) BF4e3.46
An e-mail message of 2.5 KB is to be
transmitted on a network of bandwidth
1 Gbps.
The distance between sender and receiver
is 12,000 Kms and the medium supports a
speed of 2.4 x 108 metres / sec.
Calculate the Propagation time and
Transmission time.
19.08.2016 15:18 115
Data and Signals
Performance
Propagation time vs. Transmit time :
Example ( of high vs. low ) BF4e3.46
time required by ….
each intermediate node (active network
component) or an end device (host) to …..
hold the message before processing it
(recall : store and forward)
→→
19.08.2016 15:18 123
Data and Signals
Performance
Example PD 1.15
(b) A camera on the lunar base takes pictures of
Earth and saves them in digital format to disk.
Suppose Mission Control on the Earth wishes to
download the most current picture comprising
12 colour frames each of size 1024 x 768 pixels,
with each pixel represented by 24 bits.
What is the minimum amount of time that will
elapse between when the request for the data
goes out and the transfer is finished ?
(a) RTT
= (2 x 385 x 106 m) ÷ (3 x 108 m / sec)
= 2.57 sec
(a) 1 Mbps
(b) 10 Mbps
(c) 100 Mbps
19.08.2016 15:18 131
Data and Signals
Performance
Bandwidth - Delay product
Example - 21 BF4e3.10.47