3.5
3-1 DATA AND SIGNALS
Figure3.1showsascenarioinwhicha
scientistworkinginaresearchcompany,
SkyResearch,needstoorderabook
relatedtoherresearchfromanonline
bookseller,ScientificBooks.
3.6
Figure 3.1: Communication at the physical layer
3.7
3.1.1 Analog and Digital Data
Datacanbeanalogordigital.Thetermanalogdata
referstoinformationthatiscontinuous;digitaldata
referstoinformationthathasdiscretestates.For
example,ananalogclockthathashour,minute,and
secondhandsgivesinformationinacontinuous
form;themovementsofthehandsarecontinuous.
Ontheotherhand,adigitalclockthatreportsthe
hoursandtheminuteswillchangesuddenlyfrom
8:05to8:06.
3.8
3.1.2 Analog and Digital Signals
Likethedatatheyrepresent,signalscanbeeither
analogordigital.Ananalogsignalhasinfinitely
manylevelsofintensityoveraperiodoftime.Asthe
wavemovesfromvalueAtovalueB,itpasses
throughandincludesaninfinitenumberofvalues
alongitspath.Adigitalsignal,ontheotherhand,
canhaveonlyalimitednumberofdefinedvalues.
Althougheachvaluecanbeanynumber,itisoften
assimpleas1and0.
Signals can be analog or digital.
Analog signals can have an infinite
number of values in a range; digital
signals can have only a limited
number of values.
Note
3.9
Figure 3.2: Comparison of analog and digital signals
10
Analog vs. Digital Data
Analog data
Data take on continuous values
E.g., human voice, temperature reading
Digital data
Data take on discrete values
E.g., text, integers
11
Analog vs. Digital Signals
Analog signals
have an infinite number of
values in a range
Digital signals
Have a limited number of
values
value
time
value
time
To be transmitted, data must be
transformed to electromagnetic signals.
12
Data and Signals
Telephone
Analog Data Analog Signal
Modem
Digital Data Analog Signal
Codec
Analog Data Digital Signal
Digital
transmitter
Digital Data Digital Signal
3.14
3-2 PERIODIC ANALOG SIGNALS
Periodic analog signals can be classified
as simpleor composite.
A simple periodic analog signal, a sine
wave, cannot be decomposed into
simpler signals.
Acompositeperiodicanalogsignalis
composedofmultiplesinewaves.
3.15
Sine Wave
A sine wave is the most fundamental
form of a periodic analog signal
It can be represented by three
parameters:
Peak Amplitude
Frequency
Phase
3.16
Figure 3.3: A sine wave
Time
Value
• • •
3.17
Figure 3.4: Two signals with two different amplitudes
Peak
amplitude
Peak
amplitude
Peak
amplitude
Peak
amplitude
Period and frequency
Period or Time Period:Time required
to complete one cycle. It is measured in
seconds.
Frequency:Number of cycles
completed in one second. It is measured
in Hz or cycles per second.
If “f”represents
frequency
and “T”
represents
period
then,
f= 1/Tand T= 1/f
Frequency and period are the inverse of
each other.
3.18
Figure 3.5: Two signals with the same phase and frequency, but
different amplitudes
Frequency is the rate of change with
respect to time.
Change in a short span of time
means high frequency.
Change over a long span of
time means low frequency.
3.19
Table 3.1: Units of period and frequency
3.20
Expressaperiodof100msinmicroseconds.
Example 3.4
Solution
FromTable3.1wefindtheequivalentsof1ms(1msis10–
3s)and1s(1sis106μs).Wemakethefollowing
substitutions:
3.21
Thepowerweuseathomehasafrequencyof60Hz(50Hz
inEurope).Theperiodofthissinewavecanbedetermined
asfollows:
Example 3.3
Thismeansthattheperiodofthepowerforourlightsat
homeis0.0116s,or16.6ms.Oureyesarenotsensitive
enoughtodistinguishtheserapidchangesinamplitude.
3.22
Theperiodofasignalis100ms.Whatisitsfrequencyin
kilohertz?.
Example 3.5
Solution
Firstwechange100mstoseconds,andthenwecalculate
thefrequencyfromtheperiod(1Hz=10
–3
kHz).
3.23
The term phase, or phase shift, describes
the position of the waveform relative to
time 0.
If we think of the wave as something that
can be shifted backward or forward along
the time axis, phase describes the amount
of that shift.
It indicates the status of the first cycle.
3.2.2 Phase
3.24
Figure 3.6: Three sine waves with different phases
3.25
Asinewaveisoffset1/6cyclewithrespecttotime0.What
isitsphaseindegreesandradians?
Example 3.6
Solution
Weknowthat1completecycleis360°.Therefore,1/6cycle
is
3.26
Wavelength
Wavelength is the distance a signal can
travel in a period
Wavelength can be calculated if one is
given the propagation speed and the
period of the signal
In data communication, wavelength is
usually used to describe the transmission
of light in an optical fiber
Wavelength
Let λbe the wavelength, c be the speed
of light and f be the frequency, then:
(Recall, distance = speed x time)
wavelength=propagationspeed×period
=propagationspeed×
1
??????
�=
??????
??????
Wavelength
Wavelength is measured in micrometers
(i.e., microns)
Example:
We would like to calculate the wavelength
of red light in air when
f = 4 x 10
14
:
�=
??????
??????
=
3×10
8
4×10
14
=0.75×10
−6
m=0.75�m
3.27
Figure 3.7: Wavelength and period
Direction of
propagation
3.28
3.2.4 Time and Frequency Domains
Time domain plot is an amplitude vs. time
plot, i.e., it shows amplitude variations of
a signal with respect to time
Frequency domain plot is an amplitude vs.
frequency plot, i.e., it shows which
frequencies and of what amplitude are
present in the signal
3.29
Figure 3.8: The time-domain and frequency-domain plots of a sine wave
3.30
Thefrequencydomainismorecompactandusefulwhenwe
aredealingwithmorethanonesinewave.Forexample,
Figure3.9showsthreesinewaves,eachwithdifferent
amplitudeandfrequency.Allcanberepresentedbythree
spikesinthefrequencydomain.
Example 3.7
3.31
Figure 3.9: The time domain and frequency domain of three sine waves
A single-frequency sine wave is not
useful in data communications;
we need to send a composite signal, a
signal made of many simple sine waves.
According to Fourier analysis, any
composite signal is a combination of
simple sine waves with different
frequencies, amplitudes, and phases.
Fourier analysis is discussed in
Appendix E.
3.35
Figure 3.11: Decomposition of a composite periodic signal
Time
Amplitude
• • •
Amplitude
f 3f 9f
b. Frequency-domain decomposition of the composite signal
Frequency
3.36
Figure3.12showsanonperiodiccompositesignal.Itcanbe
thesignalcreatedbyamicrophoneoratelephonesetwhena
wordortwoispronounced.Inthiscase,thecomposite
signalcannotbeperiodic,becausethatimpliesthatweare
repeatingthesamewordorwordswithexactlythe
sametone.
Example 3.9
3.37
Figure 3.12: Time and frequency domain of a non-periodic signal
-In addition to being represented by an analog
signal, information can also be represented by a
digital signal.
For example, a 1 can be encoded as a positive
voltage and a 0 as zero voltage.
-A digital signal can have more than two levels. In
this case, we can send more than 1 bit for each
level.
3.51
Figure 3.17: Two digital signals: one with two signal levels and the
other with four signal levels
3.52
Adigitalsignalhaseightlevels.Howmanybitsareneeded
perlevel?Wecalculatethenumberofbitsfromthe
followingformula.Eachsignallevelisrepresentedby3bits.
Example 3.16
3.53
Adigitalsignalhasninelevels.Howmanybitsareneeded
perlevel?Wecalculatethenumberofbitsbyusingthe
formula.Eachsignallevelisrepresentedby3.17bits.
However,thisanswerisnotrealistic.Thenumberofbits
sentperlevelneedstobeanintegeraswellasapowerof2.
Forthisexample,4bitscanrepresentonelevel.
Example 3.17
3.54
3.3.1 Bit Rate
Mostdigitalsignalsarenonperiodic,andthusperiod
andfrequencyarenotappropriatecharacteristics.
Anotherterm—bitrate(insteadoffrequency)—is
usedtodescribedigitalsignals.Thebitrateisthe
numberofbitssentin1s,expressedinbitsper
second(bps).Figure3.17showsthebitratefortwo
signals.
3.27
Bit Rate
Most digital signals are nonperiodic, and thus period
and frequency are not appropriate characteristics.
Another term— bit rate (instead of frequency)—is used
to describe digital signals.
The bit rate is the number of bits sent in 1s, expressed in
bits per second (bps).
3.55
Assumeweneedtodownloadtextdocumentsattherateof
100pagespersecond.Whatistherequiredbitrateofthe
channel?
Example 3.18
Solution
Apageisanaverageof24lineswith80charactersin
line.Ifweassumethatonecharacterrequires8bits,the
rateis
3.55
Assumeweneedtodownloadtextdocumentsattherateof
100pagespersecond.Whatistherequiredbitrateofthe
channel?
Example 3.18
Solution
Apageisanaverageof24lineswith80charactersin
line.Ifweassumethatonecharacterrequires8bits,the
rateis
3.58
3.3.2 Bit Length
Wediscussedtheconceptofthewavelengthforan
analogsignal:thedistanceonecycleoccupiesonthe
transmissionmedium.Wecandefinesomething
similarforadigitalsignal:thebitlength.Thebit
lengthisthedistanceonebitoccupiesonthe
transmissionmedium.
3.59
3.3.3 Digital As Composite Analog
BasedonFourieranalysis(SeeAppendixE),a
digitalsignalisacompositeanalogsignal.The
bandwidthisinfinite,asyoumayhaveguessed.We
canintuitivelycomeupwiththisconceptwhenwe
consideradigitalsignal.Adigitalsignal,inthetime
domain,comprisesconnectedverticalandhorizontal
linesegments.Averticallineinthetimedomain
meansafrequencyofinfinity:ahorizontallinein
thetimedomainmeansafrequencyofzero.Going
fromafrequencyofzerotoafrequencyofinfinity
impliesallfrequenciesinbetweenarepartofthedomain.
3.3.3 Digital As Composite Analog
3.60
Figure 3.18: The time and frequency domains of periodic and
nonperiodic digital signals
3.61
3.3.4 Transmission of Digital Signals
3.62
Figure 3.19: Baseband transmission
Baseband transmission requires that we have a low-pass channel, a channel with
a bandwidth that starts from zero
3.63
Figure 3.20: Bandwidth of two low-pass channels
3.64
Figure 3.21: Baseband transmission using a dedicated medium
3.86
Thelossinacableisusuallydefinedindecibelsper
kilometer(dB/km).Ifthesignalatthebeginningofacable
with−0.3dB/kmhasapowerof2mW,whatisthepowerof
thesignalat5km?
Example 3.30
Solution
3.86
Thelossinacableisusuallydefinedindecibelsper
kilometer(dB/km).Ifthesignalatthebeginningofacable
with−0.3dB/kmhasapowerof2mW,whatisthepowerof
thesignalat5km?
Example 3.30
Solution
Thelossinthecableindecibelsis5×(−0.3)=−1.5dB.We
cancalculatethepoweras
3.32
Distortion
-Signal changes its form or shape.
-Distortion can occur in a composite signal made
of different frequencies.
-Each signal component has its own propagation
speed through a medium and, therefore, its own
delay in arriving at the final destination.
-Differences in delay may create a difference in
phase if the delay is not exactly the same as the
period duration.
3.88
Figure 3.29: Distortion
3.89
3.4.3 Noise
Noiseisanothercauseofimpairment.Severaltypes
ofnoise,suchasthermalnoise,inducednoise,
crosstalk,andimpulsenoise,maycorruptthesignal.
Thermalnoiseistherandommotionofelectronsin
awire,whichcreatesanextrasignalnotoriginally
sentbythetransmitter.Inducednoisecomesfrom
sourcessuchasmotors.Crosstalkistheeffectofone
wireontheother.
3.34
Noise
-Noise is another cause of impairment.
-Several types of noise, such as thermal noise,
induced noise, crosstalk, and impulse noise, may
corrupt the signal.
-Thermal noise is the random motion of electrons in
a wire, which creates an extra signal not originally
sent by the transmitter.
-Induced noise comes from sources such as motors.
-Crosstalk is the effect of one wire on the other.
3.90
Figure 3.30: Noise
3.91
Figure 3.31: Two cases of SNR: a high SNR and a low SNR
3.92
Thepowerofasignalis10mWandthepowerofthenoise
is1μW;whatarethevaluesofSNRandSNR
dB?
Example 3.31
Solution
ThevaluesofSNRandSNR
dBcanbecalculatedasfollows:
3.93
ThevaluesofSNRandSNR
dBforanoiselesschannelare
Example 3.32
Solution
ThevaluesofSNRandSNRdBforanoiselesschannelare
Wecanneverachievethisratioinreallife;itisanideal.
3.94
3-5 DATA RATE LIMITS
Averyimportantconsiderationindata
communicationsishowfastwecansend
data,inbitspersecond,overachannel.
Twotheoreticalformulasweredeveloped
tocalculatethedatarate:onebyNyquist
foranoiselesschannel,anotherby
Shannonforanoisychannel.
3.36
DATA RATE LIMITS
-How fast we can send data, in bits per second,
over a channel.
-Two theoretical formulas were developed to
calculate the data rate:
Nyquist for a noiseless channel
Shannon for a noisy channel.
3.100
3.5.2 Noisy Channel: Shannon Capacity
Inreality,wecannothaveanoiselesschannel;the
channelisalwaysnoisy.In1944,ClaudeShannon
introducedaformula,calledtheShannoncapacity,
todeterminethetheoreticalhighestdataratefora
noisychannel:
3.41
Noisy Channel: Shannon Capacity
In reality, we cannot have a noiseless channel; the
channel is always noisy. In 1944, Claude Shannon
introduced a formula, called the Shannon capacity, to
determine the theoretical highest data rate for a noisy
channel:
3.101
Consideranextremelynoisychannelinwhichthevalueof
thesignal-to-noiseratioisalmostzero.Inotherwords,the
noiseissostrongthatthesignalisfaint.Forthischannelthe
capacityCiscalculatedas
Example 3.37
Thismeansthatthecapacityofthischanneliszero
regardlessofthebandwidth.Inother
words,wecannotreceiveanydatathroughthischannel.
3.103
Thesignal-to-noiseratioisoftengivenindecibels.Assume
thatSNR
dB=36andthechannelbandwidthis2MHz.The
theoreticalchannelcapacitycanbecalculatedas
Example 3.39
3.104
WhentheSNRisveryhigh,wecanassumethatSNR+1is
almostthesameasSNR.Inthesecases,thetheoretical
channelcapacitycanbesimplifiedto For
example,wecancalculatethetheoreticalcapacityofthe
previousexampleas
Example 3.40
3.105
3.5.3 Using Both Limits
Inpractice,weneedtousebothmethodstofindthe
limitsandsignallevels.Letusshowthiswithan
example.
3.107
3-6 PERFORMANCE
Uptonow,wehavediscussedthetools
oftransmittingdata(signals)overa
networkandhowthedatabehave.
One important issue in networking is the
performance of the network— how good is it?
3.108
3.6.1 Bandwidth
Onecharacteristicthatmeasuresnetwork
performanceisbandwidth.However,thetermcanbe
usedintwodifferentcontextswithtwodifferent
measuringvalues:bandwidthinhertzand
bandwidthinbitspersecond..
3.48
Bandwidth
- One characteristic that measures network performance
- can be used in two different contexts with two different
measuring values:
bandwidth in hertz
bandwidth in bits per second
3.109
Thebandwidthofasubscriberlineis4kHzforvoiceor
data.Thebandwidthofthislinefordatatransmission
canbeupto56,000bpsusingasophisticatedmodemto
changethedigitalsignaltoanalog.
Example 3.42
3.110
Ifthetelephonecompanyimprovesthequalityoftheline
andincreasesthebandwidthto8kHz,wecansend112,000
bpsbyusingthesametechnologyasmentionedinExample
3.42.
Example 3.43
3.112
3.6.3 Throughput
Thelatencyordelaydefineshowlongittakesforan
entiremessagetocompletelyarriveatthedestination
fromthetimethefirstbitissentoutfromthesource.
Wecansaythatlatencyismadeoffourcomponents:
propagationtime,transmissiontime,queuingtime
andprocessingdelay.
3.50
Throughput
-The latency or delay defines how long it takes for
an entire message to completely arrive at the
destination from the time the first bit is sent out
from the source.
-We can say that latency is made of four
components: propagation time, transmission time,
queuing time and processing delay.
Propagation time measures the time required for a bi t to travel from the source to the
destination
Tranmission time between the first bit leaving the
sender and the last bit arriving at the receiver.
3.117
3.6.4 Bandwidth-Delay Product
Bandwidthanddelayaretwoperformancemetrics
ofalink.However,aswewillseeinthischapterand
futurechapters,whatisveryimportantindata
communicationsistheproductofthetwo,the
bandwidth-delayproduct.Letuselaborateonthis
issue,usingtwohypotheticalcasesasexamples.
3.55
Bandwidth-Delay Product
-Bandwidth and delay are two performance metrics
of a link.
-What is very important in data communications is
the product of the two, the bandwidth-delay product.
3.118
Figure 3.32: Filling the links with bits for Case 1
we can say that this product 1 × 5 is the maximum number of
bits that can fill the link. There can be no more than 5 bits at any time on the link.
3.119
Figure 3.33: Filling the pipe with bits for Case 2
3.120
Wecanthinkaboutthelinkbetweentwopointsasapipe.
Thecrosssectionofthepiperepresentsthebandwidth,and
thelengthofthepiperepresentsthedelay.Wecansaythe
volumeofthepipedefinesthebandwidth-delayproduct,as
showninFigure3.34.
Example 3.48
3.121
Figure 3.34: Concept of bandwidth-delay product