Fundamentals of Data Communication and Computer Networks

2,233 views 110 slides May 09, 2024
Slide 1
Slide 1 of 110
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28
Slide 29
29
Slide 30
30
Slide 31
31
Slide 32
32
Slide 33
33
Slide 34
34
Slide 35
35
Slide 36
36
Slide 37
37
Slide 38
38
Slide 39
39
Slide 40
40
Slide 41
41
Slide 42
42
Slide 43
43
Slide 44
44
Slide 45
45
Slide 46
46
Slide 47
47
Slide 48
48
Slide 49
49
Slide 50
50
Slide 51
51
Slide 52
52
Slide 53
53
Slide 54
54
Slide 55
55
Slide 56
56
Slide 57
57
Slide 58
58
Slide 59
59
Slide 60
60
Slide 61
61
Slide 62
62
Slide 63
63
Slide 64
64
Slide 65
65
Slide 66
66
Slide 67
67
Slide 68
68
Slide 69
69
Slide 70
70
Slide 71
71
Slide 72
72
Slide 73
73
Slide 74
74
Slide 75
75
Slide 76
76
Slide 77
77
Slide 78
78
Slide 79
79
Slide 80
80
Slide 81
81
Slide 82
82
Slide 83
83
Slide 84
84
Slide 85
85
Slide 86
86
Slide 87
87
Slide 88
88
Slide 89
89
Slide 90
90
Slide 91
91
Slide 92
92
Slide 93
93
Slide 94
94
Slide 95
95
Slide 96
96
Slide 97
97
Slide 98
98
Slide 99
99
Slide 100
100
Slide 101
101
Slide 102
102
Slide 103
103
Slide 104
104
Slide 105
105
Slide 106
106
Slide 107
107
Slide 108
108
Slide 109
109
Slide 110
110

About This Presentation

Fundamentals of Data Communication and Computer Networks Presented By Mr. C. P. Divate


Slide Content

Chapter 1
Fundamentals of Data
Communication and Computer
Networks
Mr. C. P. Divate
Department of Computer Engineering

Contents
1.0Objectives
1.1Data & Information
1.2Data Communication
1.2.1Characteristics of Data Communication
1.2.2Components of Data Communication
1.3Data Representation
1.4Data Flow
1.4.1. Simplex
1.4.2. Half Duplex
1.4.3. Full Duplex
1.5Computer Network
1.5.1Categories of a network
1.6Protocol
1.6.1Elements of a Protocol
1.7Standards In Networking
1.7.1Concept of Standard
1.7.2Standard Organizations in field of Networking
1.8Review Questions

1.1Data and Information

1.2Data Communication
•Datacommunicationistheprocesstoexchangeofdata
betweentwodevicesviasomeformoftransmission
mediumsuchasawirecableorwirelessmedium.

1.2Data Communication in Computer Network
•DatacommunicationIncaseofcomputernetworksis
theprocessofexchangeofdatabetweentwodevices
overatransmissionmediumorwirelessmedium.

1.2Data Communication Systems
•DatacommunicationSystemsThisinvolvesa
communicationsystemwhichismadeupofhardware
andsoftware.
•HardWarePart:Itinvolvesthesenderandreceiver
devicesandtheintermediatedevicesthroughwhichthe
datapasses.
•Softwarepart(Protocol):Itinvolvescertainruleswhich
specifywhatistobecommunicated,howitistobe
communicatedandwhen.ItisalsocalledasaProtocol.

1.2Data Communication Systems
•DatacommunicationSystemsThisinvolvesa
communicationsystemwhichismadeupofhardware
andsoftware.

1.2Data Communication Systems
•Softwarepart(Protocol):Itinvolvescertainruleswhich
specifywhatistobecommunicated,howitistobe
communicatedandwhen.ItisalsocalledasaProtocol.

1.3 Components of a data communication system
1. Message
•Messageisthedata/informationtobecommunicatedbythesenderto
thereceiver.
•Amessagecouldbeinanyform,itmaybeinformofatextfile,anaudio
file,avideofile,etc.
•ThemessagecanbeofanysizefromonebytetoMegabyte.
•MessagecanbeofeitherAnalogorDigitalsignalformatdependingon
transmissionmedia(wired/wireless).

Figure 1.1 Components of a data communication system
2.Sender
•Thesenderisanydevicethatiscapableofsendingthedata(message).
•Thesenderdevicecouldbeinformofacomputer,mobile,telephone,
laptop,videocamera,oraworkstation,etc.
•Thesenderdevicemustkeephighmemorybufferforthesendinglargedata
/informationtomedium.
•Sendershouldtransmititsdatawithspeedasthatoftransmissionmedia
bandwidth(speed).
•Senderdevicemustbeloadedwithnetworkoperatingsystemthatcontains
allprotocolsoftransmission.

Figure 1.1 Components of a data communication system
3.Receiver
•Itisadevicethatreceivesmessage.
•Sameassender,receivercanalsobeinformofacomputer,telephone
mobile,workstation,etc.
•Thereceiverdevicemustkeephighmemorybufferforthelargelargedata/
informationfrommedium.
•Receivershouldreceivesitsdatawithspeedasthatoftransmissionmedia
bandwidth(speed).
•Receiverdevicemustbeloadedwithnetworkoperatingsystemthat
containsallprotocolsoftransmission.

Figure 1.1 Components of a data communication system
4. Transmission Medium
•Itisthepathbywhichthemessagetravelsfromsendertoreceiver.
•Itcanbewiredorwirelessandmanysubtypesinboth.
•Examplesaretwistedpaircable,fiberopticcable,radiowaves,
microwaves,etc.
•Thedatatransmissionrateformediumisdependingoftransmission
medium.
•Datatransmissionratesvariousfrom10Mbpsto1000Gbps
•Thedatatransmissionmediumisconnectedtodifferentnetworking
devicesbetweensenderandreceiver.

Figure 1.1 Components of a data communication system
5. Protocols
•Itisanagreementofsetorrulesusedbythesenderandreceiverto
communicatedata.
•Aprotocolisasetofrulesthatgovernsdatacommunication.
•AProtocolisanecessityindatacommunicationswithoutwhichthe
communicatingentitiesareliketwopersonstryingtotalktoeachotherin
adifferentlanguagewithoutknowtheotherlanguage.
•Itprovidessecuritytodatamessagesontransmissionmedium.
•ExamplesOSIModel,TCP/IP,UDP/IP,FTP,DHCP,PPPetc.

Figure 1.1 Characteristics of Data Communication
Theeffectivenessofanydatacommunicationssystemdependsuponthe
followingfundamentalcharacteristics:
1.Delivery:Thedatashouldbedeliveredtothecorrectdestinationandcorrect
user.
2.Accuracy/Integrity:Thecommunicationsystemshoulddeliverthedata
accurately,withoutintroducinganyerrors.Thedatamaygetcorruptedduring
transmissionaffectingtheaccuracyofthedelivereddata.
3.Timeliness:AudioandVideodatahastobedeliveredinatimelymanner
withoutanydelay;suchadatadeliveryiscalledrealtimetransmissionofdata.
4.Jitter:Itisthevariationinthepacketarrivaltime.UnevenJittermayaffectthe
timelinessofdatabeingtransmitted.

Figure 1.1 Characteristics of Data Communication
Theeffectivenessofanydatacommunicationssystemdependsuponthe
followingfundamentalcharacteristics:
5.Errordetection&Correction:Thedatacommunicationsystemsshould
communicatewithautomaticdetecterrorsandcorrecterrorsinmessages
duringthetransmissions.e.g.Paritycheck,Checksum,CRC
6.Routing-Routingmeanstosenddatatoappropriatedestinations.Itisusedto
findshortestpathamongdeviseorserver.
7.Reliable:Itismeasuredbyfrequencyoffailure,thetimeittakesalinkto
recoverfromafailure,andthenetwork’srobustness.
8.FlowControl:Atthetimeoftransmissionofdata,sourcecomputeris
generatingdatafasterthanreceiverdevicecapabletoreceiveit.Tohandle
suchproblem,thereissomekindofflowcontrolmechanismused.

Figure 1.1 Characteristics of Data Communication
Theeffectivenessofanydatacommunicationssystemdependsuponthe
followingfundamentalcharacteristics:
9.Security:Securityissuesincludeprotectingdatafromunauthorizedaccessand
virus.Networkmustbesecured.Thedatathatissentshouldreachits
destinationsafelywithoutanythird-partyreadingoralteringordestroyingthe
datainthemidway.
10.Performance:Itmeansachievinghigherthroughput(numberofUsersin
network)andsmallerdelaytimes(datatransmissiondelaybetweensenderand
receiver)

1.17
Figure 1.2 Data flow / Transmission modes in communication systems
(simplex, half-duplex, and full-duplex)
•The way in which data is transmitted from one device to another device is
known astransmission mode.
•The transmission mode is also known as the communication mode.
•Each communication channel has a direction associated with it, and
transmission media provide the direction. Therefore, the transmission mode
is also known as a directional mode.
•The transmission mode is defined in the physical layer.

1.18
Figure 1.2 Data flow / Transmission modes in communication systems
(simplex, half-duplex, and full-duplex)
The Transmission mode is divided into three categories
•Simplex mode
•Half-duplex mode
•Full-duplex mode

1.19
Figure 1.2 Data flow / Transmission modes in communication systems
(simplex, half-duplex, and full-duplex)

1.20
Figure 1.2 Data flow / Transmission modes in communication systems -simplex
•InSimplexmode,thecommunicationisunidirectional,i.e.,the
dataflowinonedirection.
•Adevicecanonlysendthedatabutcannotreceiveitoritcan
receivethedatabutcannotsendthedata.
•Thistransmissionmodeisnotverypopularasmainly
communicationsrequirethetwo-wayexchangeofdata.
•Themainadvantageofthesimplexmodeisthatthefull
capacityofthecommunicationchannelcanbeutilizedduring
transmission.

1.21
Figure 1.2 Data flow / Transmission modes in communication systems -simplex
ExamplesofSimplexTransmissionmodes:
•Thesimplexmodeisusedinthebusinessfieldasinsalesthat
donotrequireanycorrespondingreply.
•Theradiostationisasimplexchannelasittransmitsthesignal
tothelistenersbutneverallowsthemtotransmitback.
•KeyboardandMonitoraretheexamplesofthesimplexmodeas
akeyboardcanonlyacceptthedatafromtheuserandmonitor
canonlybeusedtodisplaythedataonthescreen.

1.22
Figure 1.2 Data flow / Transmission modes in communication systems -simplex
AdvantageofSimplexmode:
•Insimplexmode,thestationcanutilizetheentirebandwidthof
thecommunication channel,sothatmoredatacanbe
transmittedatatime.
DisadvantageofSimplexmode:
•Communication isunidirectional,soithasnointer-
communicationbetweendevices.

1.23
Figure 1.2 Data flow / Transmission modes in communication systems -Half-
Duplex mode
•InaHalf-duplexchannel,directioncanbereversed,i.e.,thestationcan
transmitandreceivethedataaswell.
•Messagesflowinboththedirections,butnotatthesametime.
•Theentirebandwidthofthecommunicationchannelisutilizedinone
directionatatime.
•Inhalf-duplexmode,itispossibletoperformtheerrordetection,andif
anyerroroccurs,thenthereceiverrequeststhesendertoretransmitthe
data.

1.24
Figure 1.2 Data flow / Transmission modes in communication systems -Half-
Duplex mode

1.25
Figure 1.2 Data flow / Transmission modes in communication systems -Half-
Duplex mode (Stop –and –Wait Protocol)

1.26
Figure 1.2 Data flow / Transmission modes in communication systems -Half-
Duplex mode (Stop –and –Wait Protocol with sliding window)

1.27
Figure 1.2 Data flow / Transmission modes in communication systems -Half-
Duplex mode
ExamplesofHalfDuplexTransmissionmodes:
•AWalkie-talkie:InWalkie-talkie,onepartyspeaks,andanotherparty
listens.Afterapause,theotherspeaksandfirstpartylistens.Speaking
simultaneouslywillcreatethedistortedsoundwhichcannotbe
understood.
•WhatsAppMessenger,Facebookmessenger,MobileMessengeretc.
•ATMMachine,BusTicketmachines

1.28
Figure 1.2 Data flow / Transmission modes in communication systems -Half-
Duplex mode
AdvantageofHalf-duplexmode:
•Inhalf-duplexmode,boththedevicescansendandreceive
thedataandalsocanutilizetheentirebandwidthofthe
communicationchannelduringthetransmissionofdata.
DisadvantageofHalf-Duplexmode:
•Inhalf-duplexmode,whenonedeviceissendingthedata,
thenanotherhastowait,thiscausesthedelayinsending
thedataattherighttime.

1.29
Figure 1.2 Data flow / Transmission modes in communication systems -Full-
Duplex mode
•InFullduplexmode,thecommunicationisbi-directional,i.e.,thedata
flowinboththedirections.
•Boththestationscansendandreceivethemessagesimultaneously.
•Full-duplexmodehastwosimplexchannels.Onechannelhastraffic
movinginonedirection,andanotherchannelhastrafficflowinginthe
oppositedirection.
•TheFull-duplexmodeisthefastestmodeofcommunicationbetween
devices.

1.30
Figure 1.2 Data flow / Transmission modes in communication systems -Full-
Duplex mode(sliding window protocol)

1.31
Figure 1.2 Data flow / Transmission modes in communication systems -Full-
Duplex mode
ExamplesofFullDuplexTransmissionmodes:
•Telephone/Mobilecommunication:Themostcommonexampleofthe
full-duplexmodeisatelephonenetwork.Whentwopeopleare
communicatingwitheachotherbyatelephoneline,bothcantalkand
listenatthesametime.

1.32
Figure 1.2 Data flow / Transmission modes in communication systems -Full-
Duplex mode
AdvantageofFull-duplexmode:
•Boththestationscansendandreceivethedataatthe
sametime.
DisadvantageofFull-duplexmode:
•Ifthereisnodedicatedpathexistsbetweenthedevices,
thenthecapacityofthecommunicationchannelisdivided
intotwoparts.

PROTOCOL
•AProtocolisoneofthecomponentsofadatacommunicationssystem.
Withoutprotocolcommunicationcannotoccur.
•Thesendingdevicecannotjustsendthedataandexpectthereceivingdevice
toreceiveandfurtherinterpretitcorrectly.
•Whenthesendersendsamessageitmayconsistoftext,number,images,etc.
whichareconvertedintobitsandgroupedintoblockstobetransmittedand
oftencertainadditionalinformationcalledcontrolinformationisalsoadded
tohelpthereceiverinterpretthedata.

PROTOCOL
•AProtocolisoneofthecomponentsofadatacommunicationssystem.
Withoutprotocolcommunicationcannotoccur.
•Thesendingdevicecannotjustsendthedataandexpectthereceivingdevice
toreceiveandfurtherinterpretitcorrectly.
•Whenthesendersendsamessageitmayconsistoftext,number,images,etc.
whichareconvertedintobitsandgroupedintoblocks(packets/frames)tobe
transmitted

1.35
PROTOCOL
•Certainadditionalinformationcalledcontrolinformationisalsoaddedto
helpthereceiverinterpretthedata.
•Forsuccessfulcommunicationtooccur,thesenderandreceivermustagree
uponcertainrulescalledprotocol.
•AProtocolisdefinedasasetofrulesthatgovernsdatacommunications.
•Aprotocoldefineswhatistobecommunicated,howitistobe
communicatedandwhenitistobecommunicated.

1.36
PROTOCOL
•Certainadditionalinformationcalledcontrolinformationisalsoaddedto
helpthereceiverinterpretthedata.
•AProtocolisdefinedasasetofrulesthatgovernsdatacommunications.
•Aprotocoldefineswhatistobecommunicated,howitistobe
communicatedandwhenitistobecommunicated.

1.37
TCP/IP PROTOCOL
•Certainadditionalinformationcalledcontrolinformationisalsoaddedto
helpthereceiverinterpretthedata.
•AProtocolisdefinedasasetofrulesthatgovernsdatacommunications.
•Aprotocoldefineswhatistobecommunicated,howitistobe
communicatedandwhenitistobecommunicated.

1.38
TCP/IP PROTOCOL
•Certainadditionalinformationcalledcontrolinformationisalsoaddedto
helpthereceiverinterpretthedata.
•AProtocolisdefinedasasetofrulesthatgovernsdatacommunications.

Elements of a Protocol
Therearethreekeyelementsofaprotocol:
A.Syntax:
•Itmakesthestructureorformatofthedata.
•Itarrangesthedataframesinaparticularorder.
B.Semantics:
•Ittellsthemeaningofeachsectionofbitsandindicatesthe
interpretationofeachsection.
•Italsotellswhataction/decisionistobetakenbasedonthe
interpretation.
•ErrorHandling.
C.Timing:
•Ittellsthesenderaboutthereadinessofthereceivertoreceivethe
data.
•Ittellsthesenderatwhatratethedatashouldbesenttothe
receivertoavoidoverwhelmingthereceiver.

STANDARDS IN NETWORKING
•Standardsarenecessaryinnetworkingtoensureinterconnectivityand
interoperabilitybetweenvariousnetworkinghardwareandsoftware
components.
•Withoutstandardswewouldhaveproprietaryproductscreating
isolatedislandsofuserswhichcannotinterconnect.

STANDARDS IN NETWORKING
ConceptofStandard
•Standardsprovideguidelinestoproductmanufacturersandvendorsto
ensurenationalandinternationalinterconnectivity.
•Datacommunicationsstandardsareclassifiedintotwocategories:
1.DefactoStandard-designedbyfactsincommunication
•Thesearethestandardsthathavebeentraditionallyused
andmeanbyfactorbyconvention
•Thesestandardsarenotapprovedbyanyorganizedbody
butareadoptedbywidespreaduse.
2.Dejurestandarddesignedbylawincommunication
•Itmeansbylaworbyregulation.
•Thesestandardsarelegislatedandapprovedbyanbody
thatisofficiallyrecognized.

STANDARDS IN NETWORKING
De Facto De Jure
Factual Recognition is known as De FactoLegal Recognition is known as De Jure
De Facto is temporary. It is not permanent
like De Jure.
De Jure which is a legal recognition is a
permanent recognition
It is a temporary and provisional recognition
which can be withdrawn.
it cannot be withdrawn.
The recognition by De Facto is based on a
factual situation and is not a process of law.
De Jure is a recognition given after following due
procedure of law.
State Succession rules do not apply in de
facto
Under De Jure, rules of state succession are
applied.
De Facto Government cannot recover a state
asset or public debt
Only a de jure government can recover state
assets or public debt.
Membership to theUnited Nationsis not
possible even if there is a de facto
recognition by the majority of states.
A state can get United Nations membership if the
majority of nations bestows de jure recognition.
The State which receives De facto
recognition will have 2 rival governments
The State which receives De Jure recognition
has only 1 Government.

Standard Organizations in field of Networking
Standardsarecreatedbystandardscreationcommittees,forums,and
governmentregulatoryagencies.
•Examples of Standard Creation Committees :
i.International Organization for Standardization (ISO)
ii.International Telecommunications Union –Telecommunications
Standard (ITU-T)
iii.American National Standards Institute (ANSI)
iv.Institute of Electrical& Electronics Engineers (IEEE)
v.Electronic Industries Associates (EIA)
•Examples of Forums
i.ATM Forum -Asynchronous Transfer Mode
ii.MPLS Forum -Multiprotocol Label Switching
iii.Frame Relay Forum
•Examples of Regulatory Agencies:
i. Federal Communications Committee (FCC)

DATA & SIGNALS
Totransmit,dataovermedium,itmustbetransformedtoelectromagnetic
signals.•Data can be Analog or Digital:

ANOLOG DATA & SIGNALS
•Analogdatareferstoinformationthatiscontinuous;ex.soundsmadeby
ahumanvoice
•AnalogSignal:Theyhaveinfinitevaluesinarange.
•SignalswhichrepeatitselfafterafixedtimeperiodarecalledPeriodic
Signals.
•Indatacommunications,wecommonlyuseperiodicanalogsignalsand
non-periodicdigitalsignals.

DIGITAL DATA & SIGNALS
•Digitaldatareferstoinformationthathasdiscretestates.Digitaldatatake
ondiscretevalues.
•Forexample,dataarestoredincomputermemoryintheformofOsand
1s.
•DigitalSignal:Theyhavelimitednumberofdefinedvalues
•SignalswhichdonotrepeatitselfafterafixedtimeperiodarecalledNon-
PeriodicSignals.
•Indatacommunications,wecommonlyuseperiodicanalogsignalsand
non-periodicdigitalsignals.

DATA & SIGNALS
Totransmit,dataovermedium,itmustbetransformedtoelectromagnetic
signals.•Data can be Analog or Digital:
Analog signals Digital signals
There is a continuous
representation of signals in analog
signals.
There is a discontinuous
representation of signals in digital
signals.
Analog signals are difficult to get
analyzed at first.
Digital signals are easy to analyze.
Analog signals are more accurate
than digital signals.
Digital signals are less accurate.
Analog signals take time to be
stored. It has infinite memory.
Digital signals can be easily stored.
To record an analog signal, the
technique used, preserves the
original signals.
In recording digital signal, the sample
signals are taken and preserved.

DATA & SIGNALS
Totransmit,dataovermedium,itmustbetransformedtoelectromagnetic
signals.•Data can be Analog or Digital:
Analog signals. Digital signals
Analog signals produce too much
noise.
Digital signals do not produce noise.
Applications of analog signals are
Human voice, Thermometer, Analog
phones etc.
Examples of digital signals are
Computers, Digital Phones, Digital
pens, etc.
Represented by sine waves Represented by square waves
Records sound waves as they areConverts into a binary waveform.
Only be used in analog devices.
Suited for digital electronics like
computers, mobiles and more.

DATA & SIGNALS
•BIT LENGTH or Bit Interval (T
b)
•It is the time required to send one bit.
•It is measured in seconds.
•BIT RATE / bits per second
•It is the number of bits transmitted in one second. It is expressed as
bits per second (bps).
•Relation between bit rate and bit interval can be as follows Bit rate =
1 / Bit interval

DATA & SIGNALS
•Baud Rate
•ItistherateofSignalSpeed,i.etherateatwhichthesignal
changes.
•Adigitalsignalwithtwolevels‗0‘&‗1‘willhavethesamebaudrate
andbitrate&bitrate.
•Thediagrambelowshowsthreesignalofperiod(T)1second
a) Signal with a bit rate of 8 bits/ sec and baud rate of 8 baud/sec
b) Signal with a bit rate of 16 bits/ sec and baud rate of 8 baud/sec
c) Signal with a bit rate of 16 bits/ sec and baud rate of 4 baud/sec

DATA & SIGNALS

Conversion of Analog signals to Digital signals
•Mostoftheimage/audiosensorsareintheanalogsignal,anddigital
processingcannotbeappliedonit,asitrequiresinfinitememoryto
storebecausesignalshaveaninfinitevaluethatiswhywecannot
storeit.
•Adigitalsignalissuperiortoananalogsignalbecauseitismore
robusttonoiseandcaneasilyberecovered,correctedandamplified.
•Forthisreason,thetendencytodayistochangeananalogsignalto
digitaldata.Inthissectionwedescribetwotechniques,pulsecode
modulationanddeltamodulation.
•Tocreateadigitalimagewecanconvertdataintodigitalform.
•Fortheconversiontherearethreesteps:
1.Sampling
2.Quantization
3.Encoding

4.53
Figure 4.21 Components of PCM encoder
Conversion of Analog signals to Digital signals

Conversion of Analog signals to Digital signals
i) Sampling
•Inanalogsignals,therearecontinuouselectricalsignals
thatvarywithtime.Withthehelpofsubsystem,asampler
extractscontinuoussignalsforthesamplingofsignals.
•Sampling is done along the x-axis of signals that continuously differs
with time. It is divided into two category one is sampling and other is
down-sampling.
•In down-sampling, the range of values on the x-axis is always less.

i) Sampling
Analog signal is sampled every T
Ssecs.
T
sis referred to as the sampling interval.
f
s= 1/T
sis called the sampling rate or sampling
frequency.
There are 3 sampling methods:
Ideal -an impulse at each sampling instant
Natural -a pulse of short width with varying
amplitude.
Flattop -sample and hold, like natural but
with single amplitude value
The process is referred to as pulse amplitude
modulation PAM and the outcome is a signal with
analog (non integer) values
Conversion of Analog signals to Digital signals

4.56
Figure 4.22 Three different sampling methods for PCM
Conversion of Analog signals to Digital signals

Conversion of Analog signals to Digital signals
Quantization
•Itisaprocessofimageprocessing,inwhichcontinuousand
time-varyingvaluesofanalogsignalsaredividedintonon-
overlappingdiscreteanduniquevaluesassignedtoeach
subrange.
•Samplingandquantizationareoppositetoeachother.
Samplingisdonealongthex-axisbutquantizationisdone
alongthey-axis.
•Intheimageprocessing,thesampledimageisconsideredasa
digitalvalue.Whenthereisatransitionofstatesbetween
time-varyingvaluesofimagefunctionanditsdigitalequivalent
signifiesquantization.

Conversion of Analog signals to Digital signals
Quantization

ii) Quantization
Samplingresultsinaseriesofpulsesof
varyingamplitudevaluesrangingbetween
twolimits:aminandamax.
Theamplitudevaluesareinfinitebetween
thetwolimits.
Weneedtomaptheinfiniteamplitude
valuesontoafinitesetofknownvalues.
Thisisachievedbydividingthedistance
betweenminandmaxintoLzones,eachof
height
=(max-min)/L
Conversion of Analog signals to Digital signals

Quantization Levels
Themidpointofeachzoneisassignedavalue
from0toL-1(resultinginLvalues).
Eachsamplefallinginazoneisthen
approximatedtothevalueofthemidpoint.
Quantization Zones
Assume we have a voltage signal with amplitutes
V
min=-20V and V
max=+20V.
We want to use L=8 quantization levels.
Zone width= (20 --20)/8 = 5
The 8 zones are: -20 to -15, -15 to -10, -10 to -5, -5
to 0, 0 to +5, +5 to +10, +10 to +15, +15 to +20
The midpoints are: -17.5, -12.5, -7.5, -2.5, 2.5, 7.5,
12.5, 17.5
Conversion of Analog signals to Digital signals

Assigning Codes to Zones
Eachzoneisthenassignedabinarycode.
Thenumberofbitsrequiredtoencodethezones,or
thenumberofbitspersampleasitiscommonly
referredto,isobtainedasfollows:
n
b=log
2L
Givenourexample,n
b=3
The8zone(orlevel)codesaretherefore:000,001,
010,011,100,101,110,and111
Assigningcodestozones:
000willrefertozone-20to-15
001tozone-15to-10,etc.
Conversion of Analog signals to Digital signals

Figure 4.26 Quantization and encoding of a sampled signal

PCM Decoder
Torecoverananalogsignalfromadigitizedsignal
wefollowthefollowingsteps:
Weuseaholdcircuitthatholdstheamplitude
valueofapulsetillthenextpulsearrives.
Wepassthissignalthroughalowpassfilterwith
acutofffrequencythatisequaltothehighest
frequencyinthepre-sampledsignal.
ThehigherthevalueofL,thelessdistortedasignal
isrecovered.
Conversion of Digital signals to Analog signals

Figure 4.27 Components of a PCM decoder

Figure 4.31 Data transmission methods

Figure 4.32 Parallel transmission

Figure 4.33 Serial transmission

In asynchronous transmission, we send
1 start bit (0) at the beginning and 1 or
more stop bits (1s) at the end of each
byte. There may be a gap between
each byte.
Note

Asynchronous here means
“asynchronous at the byte level,”
but the bits are still synchronized;
their durations are the same.
Note

Figure 4.34 Asynchronous transmission

In synchronous transmission, we send
bits one after another without start or
stop bits or gaps. It is the responsibility
of the receiver to group the bits. The bits
are usually sent as bytes and many
bytes are grouped in a frame. A frame is
identified with a start and an end byte.
Note

Figure 4.35 Synchronous transmission

Isochronous
In isochronous transmission we cannot
have uneven gaps between frames.
Transmission of bits is fixed with equal
gaps.

Fundamentals of Computer Networks
DefinitionofComputerNetworks
Acomputernetworkisagroupofcomputerslinked
toeachotherthatenablesthecomputerto
communicatewithanothercomputerandshare
theirresources,data,andapplications.

Fundamentals of Computer Networks
NeedofComputerNetworks
HighCommunicationspeed
Filesharing
BackupandRollbackisofdataiseasy
SoftwareandHardwaresharing
Security
Scalability
Reliability
Email
Internetaccess
eCommerce
Resourcesharing

Fundamentals of Computer Networks
ApplicationsofComputerNetworks
Email-e.g.gmail,rocketmail,rediffmailetc.
FileTransferProtocol(FTP)-playstore,youtubeetc.
TerminalEmulation(TELNET)-playstore
eCommerce-amazon,flipcart,bankingetc.
videoconferencingandchatting-zoom,googlemeet
whatsappetc.
Onlinegaming
Filesharing-Googledriveetc.
Sharingresources-anydesketc.

Fundamentals of Computer Networks
ComputerNetworkArchitecture
ComputerNetworkArchitectureisdefinedasthe
physicalandlogicaldesignofthesoftware,
hardware,protocols,andmediaofthetransmission
ofdata.
Simplywecansaythathowcomputersare
organizedandhowtasksareallocatedtothe
computer.
ThetwotypesComputerNetworkArchitecturesare:
Peer-To-Peernetwork
Client/Servernetwork

Fundamentals of Computer Networks
Peer-To-PeerNetworkArchitecture

Fundamentals of Computer Networks
Peer-To-PeerNetworkArchitecture
Peer-To-Peernetworkisanetworkinwhichallthecomputers
arelinkedtogetherwithequalprivilegeandresponsibilitiesfor
processingthedata.
Peer-To-Peernetworkisusefulforsmallenvironments,
usuallyupto10computers.
Peer-To-Peernetworkhasnodedicatedserver.
Specialpermissionsareassignedtoeachcomputerfor
sharingtheresources,butthiscanleadtoaproblemifthe
computerwiththeresourceisdown.
Peeristhecomputerthatworksasclientaswellasserver
withlimitedaccesstoitsresources.

Fundamentals of Computer Networks
AdvantagesOfPeer-To-PeerNetwork:
Itislesscostlyasitdoesnotcontainanydedicatedserver.
Ifonecomputerstopsworkingbut,othercomputerswillnot
stopworking.
Itiseasytosetupandmaintainaseachcomputermanages
itself.
DisadvantagesOfPeer-To-PeerNetwork:
InthecaseofPeer-To-Peernetwork,itdoesnotcontainthe
centralizedsystem.Therefore,itcannotbackupthedataas
thedataisdifferentindifferentlocations.
Ithasasecurityissueasthedeviceismanageditself.
Difficulttoavoiddatareplication.
Difficulttomaintainversioncontrolofdata.

Fundamentals of Computer Networks
Client/ServerNetworkArchitecture

Fundamentals of Computer Networks
Client/ServerNetworkArchitecture
Serveristhecomputerthatprovidesdifferentservicestoall
othercomputersinnetwork.
Clientisthecomputerthatacceptsservicesfromserver
machines.
Client/Servernetworkisanetworkmodeldesignedfortheend
userscalledclients,toaccesstheresourcessuchassongs,
video,etc.fromacentralcomputerknownasServer.
Thecentralcontrollerisknownasaserverwhileallother
computersinthenetworkarecalledclients.
Aserverperformsallthemajoroperationssuchassecurity
andnetworkmanagement.
Aserverisresponsibleformanagingalltheresourcessuchas
files,directories,printer,etc.
Alltheclientscommunicatewitheachotherthroughaserver.
Forexample,ifclient1wantstosendsomedatatoclient2,
thenitfirstsendstherequesttotheserverforthepermission.
Theserversendstheresponsetotheclient1toinitiateits
communicationwiththeclient2.

Fundamentals of Computer Networks
AdvantagesOfClient/ServerNetwork:
AClient/Servernetworkcontainsthecentralizedsystem.
Thereforewecanbackupthedataeasily.
AClient/Servernetworkhasadedicatedserverthatimproves
theoverallperformanceofthewholesystem.
SecurityisbetterinClient/Servernetworkasasingleserver
administersthesharedresources.
Italsoincreasesthespeedofthesharingresources.
Avoidduplicationofdataonallcomputers
Versioncontrolasnoduplicationofdataonothercomputers
onlysingleandfinalcopyofdataismaintainedcentrally.

Fundamentals of Computer Networks
DisadvantagesOfClient/ServerNetwork:
Client/Servernetworkisexpensiveasitrequirestheserver
withlargememory.
AserverhasaNetworkOperatingSystem(NOS)toprovidethe
resourcestotheclients,butthecostofNOSisveryhigh.
Itrequiresadedicatednetworkadministratortomanageall
theresources.
Requiresbackupofdataatserverside.

Classification of Computer Networks
Acomputernetworkcanbecategorizedbytheir
size.Acomputernetworkismainlyoffourtypes:
i.LAN(LocalAreaNetwork)
ii.PAN(PersonalAreaNetwork)
iii.MAN(MetropolitanAreaNetwork)
iv.WAN(WideAreaNetwork)

Classification of Computer Networks
PAN(PersonalAreaNetwork):
PersonalAreaNetworkisanetworkarrangedwithinan
individualperson,typicallywithinarangeof10meters.
PersonalAreaNetworkisusedforconnectingthecomputer
devicesofpersonaluseisknownasPersonalAreaNetwork.
ThomasZimmerman wasthefirstresearchscientisttobring
theideaofthePersonalAreaNetwork.
PersonalAreaNetworkcoversanareaof30feet.
Personalcomputerdevicesthatareusedtodevelopthe
personalareanetworkarethelaptop,mobilephones,media
playerandplaystations.
ConnectioncanbemadeavailableforBluetoothwithinfrared
signals.

Classification of Computer Networks
PAN(PersonalAreaNetwork):

Classification of Computer Networks
TherearetwotypesofPersonalAreaNetwork:
WiredPersonalAreaNetwork
WirelessPersonalAreaNetwork
WirelessPersonalAreaNetwork:WirelessPersonalArea
Networkisdevelopedbysimplyusingwirelesstechnologies
suchasWiFi,Bluetooth.Itisalowrangenetwork.
WiredPersonalAreaNetwork:WiredPersonalAreaNetwork
iscreatedbyusingtheUSB.
PAN(PersonalAreaNetwork):

Classification of Computer Networks
AdvantagesOfPANNetwork:
WireRequirement
DeviceConnectivity
Portability
Reliable
DisadvantagesOfPeer-To-PeerNetwork:
AreaCoverage
SignalInterference
DataTransferRate
Cost
PAN(PersonalAreaNetwork):

Classification of Computer Networks
LAN(LocalAreaNetwork):
LocalAreaNetworkisagroupofcomputersconnectedtoeach
otherinasmallareasuchasbuilding,office.
LANisusedforconnectingtwoormorepersonalcomputers
throughacommunicationmediumsuchastwistedpair,
coaxialcable,etc.
Itislesscostlyasitisbuiltwithinexpensivehardwaresuch
ashubs,networkadapters,andethernetcables.
ThedataistransferredatanextremelyfasterrateinLocal
AreaNetwork.
LocalAreaNetworkprovideshighersecurity.

Classification of Computer Networks
LAN(LocalAreaNetwork):

Classification of Computer Networks
AdvantagesOfLANNetwork:
ResourceSharing
SoftwareApplicationsSharing
EasyandCheapCommunication
CentralizedData
DataSecurity
InternetSharing
LAN(PersonalAreaNetwork):

Classification of Computer Networks
DisadvantagesOfLANNetwork:
HighSetupCost
PrivacyViolations
DataSecurityThreat
LANMaintenanceJob
CoversLimitedArea
ConnectsLimitedusers
LAN(PersonalAreaNetwork):

Classification of Computer Networks
MAN(MetropolitanAreaNetwork):
Ametropolitanareanetworkisanetworkthatcoversalarger
geographicareabyinterconnectingadifferentLANtoforma
largernetwork.
GovernmentagenciesuseMANtoconnecttothecitizensand
privateindustries.
InMAN,variousLANsareconnectedtoeachotherthrougha
telephoneexchangeline.
ThemostwidelyusedprotocolsinMANareRS-232,Frame
Relay,ATM,ISDN,OC-3,ADSL,etc.
IthasahigherrangethanLocalAreaNetwork(LAN).

Classification of Computer Networks
MAN(MetropolitanAreaNetwork):

Classification of Computer Networks
MANisusedincommunicationbetweenthebanksina
city.
ItcanbeusedinanAirlineReservation.
Itcanbeusedinacollegewithinacity.
Itcanalsobeusedforcommunicationinthemilitary.
Uses/ApplicationsOfMetropolitanAreaNetwork:
Examplesofmetropolitanareanetwork(MAN):
•Digital cable television
•Used in government agencies
•University campuses
•Cable broadband
•Used to connect several branches of the local school
•In hospital (for communication between doctors, research offices, labs)
•A network of fire stations
•In airports
•Networking between community colleges within the country
•Used in public libraries

Classification of Computer Networks
AdvantagesOfMetropolitanAreaNetwork:
Lessexpensive:ItislessexpensivetoattachMANwith
WAN.
Sendinglocalemails
HighspeedthanWAN
Sharingoftheinternet
ConversionfromLANtoMANiseasy
HighSecurity
MAN(MetropolitanAreaNetwork):

Classification of Computer Networks
disadvantagesOfMetropolitanAreaNetwork:
Difficulttomanage.
Internetspeeddifference
Hackersattack
Technicalpeoplerequiredtosetup
ConversionfromLANtoMANiseasy
Morewiresrequired
MAN(MetropolitanAreaNetwork):

Classification of Computer Networks
DisadvantagesOfMetropolitanAreaNetwork:
Securityissue:AWANnetworkhasmoresecurityissuesas
comparedtoLANandMANnetworkasallthetechnologiesare
combinedtogetherthatcreatesthesecurityproblem.
NeedsFirewall&antivirussoftware:Thedataistransferred
ontheinternetwhichcanbechangedorhackedbythe
hackers,sothefirewallneedstobeused.Somepeoplecan
injectthevirusinoursystemsoantivirusisneededtoprotect
fromsuchavirus.
HighSetupcost:AninstallationcostoftheWANnetworkis
highasitinvolvesthepurchasingofrouters,switches.
Troubleshootingproblems:Itcoversalargeareasofixingthe
problemisdifficult.
MAN(MetropolitanAreaNetwork):

Classification of Computer Networks
WAN(WideAreaNetwork):
AWideAreaNetworkisanetworkthatextendsoveralarge
geographicalareasuchasstatesorcountries.
AWideAreaNetworkisquitebiggernetworkthantheLANandMAN.
AWideAreaNetworkisnotlimitedtoasinglelocation,butitspans
overalargegeographicalareathroughatelephoneline,fibreoptic
cableorsatellitelinks.
wideareanetworksareaformoftelecommunicationnetworksthat
canconnectdevicesfrommultiplelocationsandacrosstheglobe.
WANsarethelargestandmostexpansiveformsofcomputer
networksavailabletodate.TheinternetisoneofthebiggestWANin
theworld.
AWideAreaNetworkiswidelyusedinthefieldofBusiness,
government,andeducation.
Thesenetworksareoftenestablishedbyserviceprovidersthatthen
leasetheirWANtobusinesses,schools,governmentsorthepublic.

Classification of Computer Networks
WAN(WideAreaNetwork):

Classification of Computer Networks
Internet
USdefensedepartment
Stockexchangesnetwork
Railwayreservationsystem
BigBanks'cashdispensers'network
Satellitesystems
Uses/ApplicationsOfWideAreaNetwork:
ExamplesOfWideAreaNetwork:
•Mobile Broadband
•Private network
•Government network
•Last mile: A telecom company
•Internet Banking

Classification of Computer Networks
AdvantagesOfWideAreaNetwork:
Geographicalarea:AWideAreaNetworkprovidesalarge
geographicalarea.Supposeifthebranchofourofficeisina
differentcitythenwecanconnectwiththemthroughWAN.
Theinternetprovidesaleasedlinethroughwhichwecan
connectwithanotherbranch.
Centralizeddata:IncaseofWANnetwork,datais
centralized.Therefore,wedonotneedtobuytheemails,files
orbackupservers.
Getupdatedfiles:Softwarecompaniesworkonthelive
server.Therefore,theprogrammersgettheupdatedfiles
withinseconds.
WAN(WideAreaNetwork):

Classification of Computer Networks
AdvantagesOfWideAreaNetwork:
Exchangemessages:InaWANnetwork,messagesare
transmittedfast.ThewebapplicationlikeFacebook,
Whatsapp,Skypeallowsyoutocommunicatewithfriends.
Sharingofsoftwareandresources:InWANnetwork,wecan
sharethesoftwareandotherresourceslikeaharddrive,
RAM.
Globalbusiness:Wecandothebusinessovertheinternet
globally.
Highbandwidth:Ifweusetheleasedlinesforourcompany
thenthisgivesthehighbandwidth.Thehighbandwidth
increasesthedatatransferratewhichinturnincreasesthe
productivityofourcompany.
WAN(WideAreaNetwork):

Classification of Computer Networks
DifferencebetweenLANandWAN:
S.
NO
LAN WAN
1.
LAN stands for Local Area
Network.
Whereas WAN stands for Wide
Area Network.
2.LAN’s ownership is private.
But WAN’s ownership can be
private or public.
3.
The speed of LAN is high(more
than WAN).
While the speed of WAN is
slower than LAN.
4.
The propagation delay is short
in LAN.
Whereas the propagation delay
in WAN is long(longer than
LAN).
5.
There is less congestion in
LAN(local area network).
While there is more congestion
in WAN(Wide Area Network).

Classification of Computer Networks
S.
NO
LAN WAN
6.
There is more fault tolerance in
LAN.
While there is less fault
tolerance in WAN.
7.
LAN’s design and maintenance
is easy.
While it’s design and
maintenance is difficult than
LAN.
8.
LAN covers small area i.e. within
the building.
While WAN covers large
geographical area.
9.
LAN operates on the principle of
broadcasting.
While WAN works on the
principle of point to point.
10.
Transmission medium used in
LAN is co-axial or UTP cable.
Whereas WAN uses PSTN or
satellite link as a transmission
or communication medium.
DifferencebetweenLANandWAN:

Classification of Computer Networks
DifferencebetweenLAN,MANandWAN:
LAN MAN WAN
LAN stands for local
area network.
MAN stands for
metropolitan area
network.
WAN stands for wide
area network.
LAN’s ownership is
private.
MAN’s ownership can
be private or public.
While WAN also might
not be owned by one
organization.
The transmission
speed of a LAN is high.
While the transmission
speed of a MAN is
average.
Whereas the
transmission speed of
a WAN is low.
The propagation delay
is short in a LAN.
There is a moderate
propagation delay in a
MAN.
Whereas, there is a
long propagation delay
in a WAN.

Classification of Computer Networks
DifferencebetweenLAN,MANandWAN:
LAN MAN WAN
There is less
congestion in LAN.
While there is more
congestion in MAN.
Whereas there is more
congestion than MAN
in WAN.
LAN’s design and
maintenance is easy.
While MAN’s design
and maintenance is
difficult than LAN.
Whereas WAN’s design
and maintenance is
also difficult than LAN
as well MAN.
There is more fault
tolerance in LAN.
While there is less fault
tolerance.
In WAN, there is also
less fault tolerance.

Classification of Computer Networks

Classification of Computer Networks
Tags