1
S.P. Chauhan
MAHARAJA SURAJMAL INSTITUTE
Department of Computer Applications
Unit –1 (Part –1)
Computer Networks
(BCA-201)
Mr. S.P. Chauhan
Asst. Prof. & Hostel Warden
Basic Concepts
Network:-Anetworkisasetofdevicesreferredtoasnodesconnectedbymedia
links.Anodecanbeacomputer,printeroranyotherdevicecapableofsendingor
receivingdatageneratedbyothernodeonthenetwork.Thelinksconnecting
devicesarecalledcommunicationchannels.
Thebasicaimofdatacommunicationandnetworkingistobeabletoexchangedata
suchastext,audioandvideofromonepointtoanotherpointintheworld.
BasicCommunicationModel:-Thefundamentalpurposeofcommunicationsystemis
toexchangethedatabetweentwopointsorparties.Dependinguponthebasic
communicationmodel,fig.givenbelowshowssimpleandbasiccommunication
model.
8
S.P. Chauhan
A general communication model
Basic Concepts
Differencesb/wSimplex,Half-duplexandFull-duplexmode:-
23
S.P. Chauhan
Basis for
comparison
Simplex mode Half-duplex mode Full-duplex mode
Direction of
communication
In simplex mode, the
communication is
unidirectional.
In half-duplex mode, the
communication is
bidirectional, but one at a
time.
In full-duplex mode, the
communication is bidirectional.
Send/ReceiveA device can only send the
data but cannot receive it or
it can only receive the data
but cannot send it.
Both the devices can send
and receive the data, but
one at a time.
Both the devices can send and
receive the data simultaneously
i.e. at same time.
PerformanceThe performance of simplex
mode is not better than the
half-duplex mode
The performance of half-
duplex mode is not better
than the full-duplex.
The Full-duplex mode has better
performance among simplex and
half-duplex mode as it doubles
the utilization of the capacity of
the communication channel.
Example Examples of Simplex mode
are Radio, Keyboard,
Traditional Monitor & TV.
Example of half-duplex is
Walkie-Talkies.
Example of the Full-duplex mode
is a telephone network.
Basic Concepts
DataTransmission:-
Datatransmissionmeansmovementofdatawhichisintheformofbitsbetween
twoormorecommunicatingdevice.Datatransmissiontakesplaceoversome
mediumformonedevicetoanother.Therearetwowaysoftransmittingthebits:
i.ParallelTransmission
ii.SerialTransmission
24
S.P. Chauhan
Data Transmission
SynchronousAsynchronous
Serial TransmissionParallel Transmission
Basic Concepts
DataTransmission:-
DifferenceBetweenParallelTransmission&SerialTransmission:-
29
S.P. Chauhan
S. No.Parameter ParallelTransmission Serial Transmission
1.
Number of wires required
to transmitN bits
N wires 1 wire
2.
Number of bits transmitted
simultaneously
N bits 1 bit
3.Speed of data transferFast Slow
4.Cost
Higherdue to more number
of conductors
Low, as only one wire
is used
5.Application
Short distance
communication such as
computer to printer
communication
Long distance
computer to computer
communication
Types of Serial Transmission
1.AsynchronousDataTransmission:-
Themechanismdiscussedearlieriscalledasynchronousbecauseatbytelevel,the
sender&receiverdonothavetobesynchronized.
Butwithineachbyte,thereceivershouldstillbesynchronizedwiththeincomingbit
stream.i.e.synchronizationisrequiredonlyforthedurationofsinglebyte.
Followingfigshowstheblockdiagramofsynchronoustransmission.
Above fig shows that start bit is 0 & stop bit is 1.
31
S.P. Chauhan
Types of Serial Transmission
1.AsynchronousDataTransmission:-
Disadvantages:-
i.Additionbitscalledstart&stopbitsarerequiredtobeused.
ii.Theuseofstart&stopbitsandgapsbetweenthedataunitsmakesthe
asynchronoustransmissionslow.
iii.Timingerrorcantakesplace.
Advantages:-
i.Synchronizationbetweentransmitter&receiverisnotnecessary.
ii.Itispossibletotransmitsignalfromthesourcehavingdifferentbitrates.
iii.Thismodeoftransmissioniseasytoimplement.
iv.Itisaneffectivescheme
Theconnectionofakeyboardtoacomputerisanexampleofasynchronous
transmission.
32
S.P. Chauhan
Types of Serial Transmission
2.SynchronousDataTransmission:-Itiscarriedoutunderthecontrolofmasterclock.
Inthistransmission,thebitswhicharetobeingtransmittedaresynchronizedtoa
referenceclock.Nostart&stopbitsareusedbutthebytesaretransmittedasablock
inacontinuousstreamofbitsasshowninfig.
Inthistransmissionthereceiveroperatesexactlyatthesameclockfrequencyasthat
oftransmitter.
Flagisasequenceoffixednumberofbitswhichisprefixedtoeachblock.Itisuseful
toidentifythestartofblock.
Insynchronoustransmissionthebitstreamtobetransmittediscombinedinto
longerframe,whichmaycontainmorethanonebyte.
Thereceiverseparatesthebitstreamintobytesforthepurposeofdecoding.Start&
stopbitsarenotusedbutbitsaretransmittedseriallyoneaftertheother.
33
S.P. Chauhan
Types of Serial Transmission
2.SynchronousDataTransmission:-Fig.showstheblockdiagramofsynchronous
transmission.
Advantages:-
i.Themainadvantageisspeed.Thespeedoftransmissionismuchhigherthan
thatofasynchronoustransmission.
ii.Absenceofstart&stopbits.
iii.Absenceofgaps.
iv.Timingerrorsarereducedduetosynchronization.
34
S.P. Chauhan
Here we can see the absence
of start / stop bits and gaps
Types of Serial Transmission
2.SynchronousDataTransmission:-
Disadvantages:-
i.Timingisveryimportant.Theaccuracyofdataisdependentirelyonthe
abilityofthereceivertocountthereceivedbitsaccurately.
ii.Thetransmitter&receiverhavetooperateatthesamefrequency.This
requirepropersynchronizationwhichmakesthesystemcomplicated.
Thesynchronoustransmissionduetoitshighspeedisusefulforthe
transmissionofdatafromonecomputertoother.
Thebytesynchronizationisaccomplishedbythedatalinklayerwhen
synchronoustransmissionisusedbetweencomputers.
35
S.P. Chauhan
Types of Serial Transmission
ComparisonofAsynchronous&SynchronousDataTransmission:-
36
S.P. Chauhan
S. No.Parameter Asynchronous TransmissionSynchronous Transmission
1.Synchronization Not Needed Needed
2.Start& Stop Bits Used Not Needed
3.Gapbetween data blocksPresent Not Present
4.Speed Low High
5.Application
Communication between
computer & keyboard
Communication between
two computers
Basic Concepts
ComputerNetworkArchitecture/Model:-
DifferenceBetweenPeer-to-Peer(P2P)&Client/ServerArchitecture/Model:-
57
S.P. Chauhan
S.No. Peer-to-Peer Client/server
1.
This model is ideal for networks
with 10 to15 computers.
No limit to the number of computers that
can be supported by the network.
2.They are easy to setup They are more difficult to setup
3.They are less expensive They aremore expensive
4.
These can be implemented on a
wide range of operating systems
A variety of operating systemscan be
supported on the client computers, but the
server needs to run an operating system
that supports networking.
5.
Very low levelsof security
supported or none at all
High levelsof security are supported, all of
which are controlled from the server.
6.
This model does not require a
server
Requires a server running server
operatingsystem.