Lecture Notes - Introduction to Computer Network

1,588 views 104 slides Dec 18, 2024
Slide 1
Slide 1 of 104
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

About This Presentation

Description:
Welcome to the comprehensive guide on Computer Network concepts, tailored for final year B.Sc. Computer Science students affiliated with Alagappa University. This document covers fundamental principles and advanced topics in Computer Network. PDF content is prepared from the text book C...


Slide Content

Introduction
Computer Network
Dr. S.Murugan
Associate Professor, Department of Computer Science.
AlagappaGovernment Arts College,
(Affiliated by AlagappaUniversity)
Karaikudi.
Email: [email protected]

This slides compiled from
Computer Network by
Andrew S. Tenenbaum 4
th
Ed.

Introduction
➢Eachofthepastthreecenturieshasbeendominatedby
asingletechnology
➢The18thcenturywastheeraofthegreatmechanical
systemsaccompanyingtheIndustrialRevolution.
➢The19thcenturywastheageofthesteamengine.
➢Duringthe20thcentury,thekeytechnologywas
informationgathering,processing,anddistribution.

Introduction -Computer Nework
▪Acollectionofautonomouscomputers
interconnectedbyasingletechnology.
▪Twocomputersaresaidtobeinterconnectedifthey
areabletoexchangeinformation.
▪Theconnectionneednotbeviaacopperwire;fiber
optics,microwaves,infrared,andcommunication
satellitescanalsobeused.

Introduction -Computer Nework

Internet and World Wide Web
➢Theinternetisamassivenetworkofnetworks,It
connectsmillionsofcomputerstogetherglobally,
forminganetworkinwhichanycomputercan
communicatewithanyothercomputeraslongasthey
arebothconnectedtotheinternet.Informationthat
travelsovertheinternetdoessoviaavarietyof
languagesknownasprotocols.
➢TheWorldWideWeb,orsimplyweb,isawayof
accessinginformationoverthemediumoftheinternet.

Internet and Distributed System
➢TheInternetisnotasinglenetwork,but
anetworkofnetworks
➢Inadistributedsystem,acollectionof
independentcomputersappearstoits
usersasasinglecoherentsystem.
➢Awellknownexampleofadistributed
systemistheWorldWideWeb,inwhich
everythinglookslikeadocument(Web
page).

Uses of Computer Network
➢Business Applications
➢Home Applications
➢Mobile Users
➢Social Issues

Business Applications
➢Manycompanieshaveasubstantialnumberofcomputers.For
example,acompanymayhaveseparatecomputerstomonitor
production,keeptrackofinventories,anddothepayroll
➢Theclientandservermachinesareconnectedbyanetwork,asillustratedin
Fig.1-1.Thiswholearrangementiscalledtheclient-servermodel.
Fig. 1.1 Client Server Model

Business Applications –cont…
➢The detailed client server model illustrated in Fig. 1-2.
➢Thecompanyemployeecansharetheirinformationthroughe-mail.
➢Thecompanyemployeecansharetheirideasthroughvideoconferencing.
➢Manycompaniesaredoingbusinesselectronicallywithothercompanies,
especiallysuppliersandcustomers.
➢DoingbusinesswithconsumersovertheInternet.Manycompanies
providecatalogsoftheirgoodsandservicesonlineandtakeorderson-
line.Itiscallede-commerce(electroniccommerce).

Home Applications
➢Initially, for word processing and games.
➢more popular uses of the Internet for home users are as follows:
1.Access to remote information.
-surfing the World Wide Web for information
2. Person-to-person communication. (person-to-person communication )
-to distinguish it from the client-server model In this form,
individuals who form a loose group can communicate with others
in the group, as shown in Fig. 1-3.
3. Interactive entertainment.
It may be possible to select any movie or television program ever
made, in any country, and have it displayed on your screen
instantly.
4. Electronic commerce.
Home shopping is already popular and enables users to inspect
the on-line catalogs of thousands of companies. (Fig 1.4)

Home Applications -Cont

Home Applications -Cont

Mobile Users
➢Mobilecomputers,suchasnotebookcomputersandpersonaldigital
assistants(PDAs),areoneofthefastestgrowingsegmentsofthe
computerindustry.
➢Food,drink,andothervendingmachinesarefoundeverywhere.
However,thefooddoesnotgetintothemachinesbymagic.Periodically,
someonecomesbywithatrucktofillthem.Ifthevendingmachines
issuedawirelessreportonceadayannouncingtheircurrentinventories,
thetruckdriverwouldknowwhichmachinesneededservicingandhow
muchofwhichproducttobring.

Social Issues
➢newsgroupspeoplecanexchangemessageswithlike-
mindedindividuals.
➢employeerightsversusemployerrights.Manypeopleread
andwritee-mailatwork
➢Thegovernmentdoesnothaveamonopolyonthreatening
people'sprivacy.Theprivatesectordoesitsbittoo.
(companiestotrackusers'activitiesincyberspace)
➢Computernetworksofferthepotentialforsending
anonymousmessages
➢Alotoftheseproblemscouldbesolvedifthecomputer
industrytookcomputersecurityseriously.

Network Hardware
➢Criteria 1: Transmission Technology
-Broadcasting
-Point to point
➢Criteria 2: Scale
-Personal Area Network (PAN)
-Local Area Network
-Metropolitan Area Network
-Wide Area Network
-Internetwork
-Wireless network (System Interconnection, Wireless
LAN, Wireless WANs)

Network Hardware Cont…
➢Thenetworkhardwarecanbeclassifiedintotwocriterionone
istransmissiontechnologyandanotheroneisscale.
➢There are two types of transmission technology that are in
widespread use. They are as follows:
1. Broadcast links.
2. Point-to-point links
➢Incomputernetworking,broadcastingreferstotransmittinga
packetthatwillbereceivedbyeverydeviceonthenetwork.
➢Multicastisagroupcommunicationwheredatatransmissionis
addressedtoagroupofdestinationcomputers
simultaneously.Multicastcanbeone-to-manyormany-to-
manydistribution.

Network Hardware Cont…
➢point-to-pointnetworksconsistofmanyconnectionsbetween
individualpairsofmachines.
➢Togofromthesourcetothedestination,apacketonthistype
ofnetworkmayhavetofirstvisitoneormoreintermediate
machines.
➢Oftenmultipleroutes,ofdifferentlengths,arepossible,so
findinggoodonesisimportantinpoint-to-pointnetworks.
➢Point-to-pointtransmissionwithonesenderandonereceiveris
sometimescalledunicasting.

Network Hardware Cont…

➢The network hardware can be classified by their scale. In Fig. 1-6
we classify multiple processor systems by their physical size.
Network Hardware Cont…

Personal Area Network
➢Awirelessnetworkconnectingacomputerwithits
mouse,keyboard,andprinterisapersonalarea
network
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011

➢Localareanetworks,generallycalledLANs,areprivately-
ownednetworkswithinasinglebuildingorcampusofuptoa
fewkilometersinsize.
➢Theyarewidelyusedtoconnectpersonalcomputersand
workstationsincompanyofficesandfactoriestoshare
resources(e.g.,printers)andexchangeinformation.
➢LANsaredistinguishedfromotherkindsofnetworksbythree
characteristics:
(1)theirsize(Distance)
(2)theirtransmissiontechnology(broadcastor
pointtopoint),and
(3)theirtopology(BusorRing).
Local Area Networks

➢VarioustopologiesarepossibleforbroadcastLANs.Figure
1-7showstwoofthem.
➢AbustopologyisatopologyforaLocalAreaNetwork(LAN)
inwhichallthenodesareconnectedtoasinglecable.
➢Thecabletowhichthenodesconnectiscalleda"backbone".
Ifthebackboneisbroken,theentiresegmentfails.
Local Area Networks

➢Aringnetworkisanetworktopologyinwhicheachnode
connectstoexactlytwoothernodes,formingasingle
continuouspathwayforsignalsthrougheachnode-aring.
➢Datatravelsfromnodetonode,witheachnodealongtheway
handlingeverypacket.
Local Area Networks

➢Ametropolitanareanetwork,orMAN,coversacity.Thebest-
knownexampleofaMANisthecabletelevisionnetwork
availableinmanycities.
➢Ametropolitanareanetwork(MAN)issimilartoalocalarea
network(LAN)butspansanentirecityorcampus.
➢MANsareformedbyconnectingmultipleLANs.Thus,MANs
arelargerthanLANsbutsmallerthanwidearea
networks(WAN).
➢AmetropolitanareanetworkasshowninFigure1-8.
Metropolitan Area Networks

Metropolitan Area Networks

➢Awideareanetwork,orWAN,spansalargegeographical
area,oftenacountryorcontinent.
➢Itcontainsacollectionofmachinesorhosts.
➢Thehostsareconnectedbyacommunicationsubnet.
➢Thesubnetisdefinedasthecollectionofroutersand
communicationlinesthatmovedpacketsfromthesourcehost
tothedestinationhost.
➢Thehostsareownedbythecustomers(e.g.,people'spersonal
computers),whereasthecommunicationsubnetistypically
ownedandoperatedbyatelephonecompanyorInternet
serviceprovider.
Wide Area Networks

Wide Area Networks

➢Inmostwideareanetworks,thesubnetconsistsoftwodistinct
components:transmissionlinesandswitchingelementsor
routers.
➢Transmissionlinesmovebitsbetweenmachines.Theycanbe
madeofcopperwire,opticalfiber,orevenradiolinks.
➢Switchingelementsarespecializedcomputersthatconnectthree
ormoretransmissionlines
➢Astore-and-forwardsubnetisamessageswitchingcenterin
whichamessageisacceptedfromtheoriginating
user,i.e.,sender,whenitisoffered,heldinaphysicalstorage,
andforwardedtothedestinationuser,i.e.,receiver
➢Relationbetweenhost,subnetandrouterisshowninFigure1-9.
Wide Area Networks

➢Astreamofpacketsfromsendertoreceiverisrepresentedin
Figure1-10.
➢Inthisfigure,allthepacketsfollowtherouteACE,ratherthan
ABDEorACDE.ACEisthebestroute.
Wide Area Networks

➢Astreamofpacketsfromsendertoreceiverisrepresentedin
Figure1-10.
➢Inthisfigure,allthepacketsfollowtherouteACE,ratherthan
ABDEorACDE.ACEisthebestroute.
Wide Area Networks

➢Awirelessnetworkisacomputernetworkthatuses
wirelessdataconnectionsbetweennetworknodes.
➢wirelessnetworkscanbedividedintothreemaincategories:
1.Systeminterconnection.
2.WirelessLANs.
3.WirelessWANs.
➢Systeminterconnectionisallaboutinterconnectingthe
componentsofacomputerusingshort-rangeradio.
➢Inthesimplestform,systeminterconnectionnetworksusethe
master-slaveparadigmofFig.1-11(a).Thesystemunitis
normallythemaster,talkingtothemouse,keyboard,etc.,as
slaves.
➢AWLAN,orwirelessLAN,isanetworkthatallowsdevicesto
connectandcommunicatewirelessly.Fig.1-11(b).
Wireless Networks

Wide Area Networks

➢Thefundamentalideaisthatinthefuturemosthomeswillbeset
upfornetworking.
➢Everydeviceinthehomewillbecapableofcommunicatingwith
everyotherdevice,andallofthemwillbeaccessibleoverthe
Internet.
➢Manydevicesarecapableofbeingnetworked.Someofthemore
obviouscategories(withexamples)areasfollows:
1.Computers(desktopPC,notebookPC,PDA,sharedperipherals).
2.Entertainment(TV,DVD,VCR,camera,stereo,MP3).
3.Telecommunications(telephone,mobiletelephone,intercom)
4.Appliances(microwave,refrigerator,clock,lights)
5.Telemetry(utilitymeter,smoke/burglaralarm)
Home Area Networks

➢Acollectionofinterconnectednetworksiscalledaninternetwork
orinternet.
➢AcommonformofinternetisacollectionofLANsconnectedby
aWAN.
➢Thecombinationofasubnetanditshostsformsanetwork.Inthe
caseofaLAN,thecableandthehostsformthenetwork.
Internetwork

➢Toreducetheirdesigncomplexity,mostnetworksareorganized
asastackoflayersorlevels,eachonebuiltupontheonebelow
it.
➢Thenumberoflayers,thenameofeachlayer,thecontentsof
eachlayer,andthefunctionofeachlayerdifferfromnetworkto
network.
➢Thepurposeofeachlayeristooffercertainservicestothehigher
layers
Network Software -Protocol Hierarchies

Network Software -Protocol Hierarchies
➢Afive-layernetworkisillustratedinFig.
➢Theentitiescomprisingthecorresponding
layersondifferentmachinesarecalled
peers.Thepeersmaybeprocesses,
hardwaredevices,orevenhumanbeings.
➢virtualcommunicationisshownbydotted
linesandphysicalcommunicationbysolid
lines.
➢Betweeneachpairofadjacentlayersisan
interface.
➢Asetoflayersandprotocolsiscalleda
networkarchitecture.
➢Alistofprotocolsusedbyacertain
system,oneprotocolperlayer,iscalleda
protocolstack.

Network Software –Design Issues
➢Everylayerneedsamechanismforidentifyingsendersand
receivers.Sinceanetworknormallyhasmanycomputers.
➢Therulesfordatatransfer.Insomesystems,dataonlytravelin
onedirection;inothers,datacangobothways.Andalsoit
specifiestheprioritiesofdatatransfereithernormalorurgent
datatransfer.
➢Errorcontrolisanimportantissuebecausephysical
communicationcircuitsarenotperfect.Errorcorrectionand
detectionmechanismtohandleerrorduringtransfer.
➢Notallcommunicationchannelspreservetheorderofmessages
sentonthem.ItispossibletolossofSequencing.

Network Software –Design Issues Cont…
➢Anissuethatoccursateverylevelishowtokeepafastsender
fromswampingaslowreceiverwithdata.
➢Theinabilityofallprocessestoacceptarbitrarilylongmessages.
Thispropertyleadstomechanismsfordisassembling,
transmitting,andthenreassemblingmessages.
➢Whentherearemultiplepathsbetweensourceanddestination,a
routemustbechosen.

Network Software –Connection Oriented and
Connection less services
➢Connection-orientedserviceismodeledafterthetelephone
system.
➢Thesenderpushesobjects(bits)inatoneend,andthereceiver
takesthemoutattheotherend.
➢Inmostcasestheorderispreservedsothatthebitsarriveinthe
ordertheyweresent.
➢Areliableserviceisimplementedthroughacknowledging
concept.
➢Theacknowledgeconceptintroducesoverheadandtimedelay.It
isnotpossibletolosethedata.
➢TCPistheexampleofconnectionorientedservice.

Network Software –Connection Oriented and
Connection less services –Cont…
➢Connectionlessserviceismodeledafterthepostalsystem.
➢Eachmessage(letter)carriesthefulldestinationaddress,and
eachoneisroutedthroughthesystemindependentofallthe
others.
➢Normally,whentwomessagesaresenttothesamedestination,
thefirstonesentwillbethefirstonetoarrive.Sometimesthe
ordermaybevarry.
➢Anonreliableserviceisimplementedwithfasterfiletransfer.
➢Itispossibletolosethedata.
➢TheInternetProtocol(IP)andUserDatagramProtocol(UDP)
areconnectionlessprotocols.

Network Software –Connection Oriented and
Connection less services –Cont…

Network Software –Connection Oriented and
Connection less services

Network Software –Service Primitives
➢Aserviceisformallyspecifiedbyasetofprimitives
(operations)availabletoauserprocesstoaccesstheservice.

➢Asaminimalexampleoftheserviceprimitivesthatmightbe
providedtoimplementareliablebytestreaminaclient-server
environment,listedinFigure1-17.

Network Software –Service Primitives Cont…
➢First,theserverexecutesLISTENtoindicatethatitis
preparedtoacceptincomingconnections.
➢Next,theclientprocessexecutesCONNECTtoestablisha
connectionwiththeserver.
➢ThenextstepisfortheservertoexecuteRECEIVEtoprepare
toacceptthefirstrequest.
➢ThentheclientexecutesSENDtotransmititsrequest
followedbytheexecutionofRECEIVEtogetthereply.
➢Ifthedatatransferredsuccessfullythenitcanuse
DISCONNECTtoterminatetheconnection.

Network Software –Service Primitives Cont…
➢Figure.1-18brieflysummarizeshowclient-server
communicationmightworkoveraconnection-oriented
network.

Network Software –Relationships of Service and
Protocol
➢Servicesandprotocolsaredistinctconcepts,althoughthey
arefrequentlyconfused.
➢Aserviceisasetofprimitives(operations)thatalayer
providestothelayeraboveit.
➢Theservicedefineswhatoperationsthelayerispreparedto
performonbehalfofitsusers.
➢Aservicerelatestoaninterfacebetweentwolayers,withthe
lowerlayerbeingtheserviceproviderandtheupperlayer
beingtheserviceuser.
➢Aprotocolisasetofrulesgoverningtheformatand
meaningofthepackets,ormessagesthatareexchangedby
thepeerentitieswithinalayer.

Network Software –Relationships of Service and
Protocol
➢servicesrelatetotheinterfacesbetweenlayers,asillustrated
inFig.1-19.Incontrast,protocolsrelatetothepacketssent
betweenpeerentitiesondifferentmachines.

Reference Model
➢OSIReferenceModel
➢TCP/IPReferenceModel
➢DifferencebetweenOSIandTCP/IP

OSI Reference Model
➢TheOSImodel(minusthephysicalmedium)isshownin
Fig.1-20.
➢Thismodelisbasedonaproposaldevelopedbythe
InternationalStandardsOrganization(ISO)asafirststep
towardinternationalstandardizationoftheprotocolsusedin
thevariouslayers(DayandZimmermann,1983).
➢Itwasrevisedin1995(Day,1995).Themodeliscalledthe
ISOOSI(OpenSystemsInterconnection)ReferenceModel
becauseitdealswithconnectingopensystems—thatis,
systemsthatareopenforcommunicationwithothersystems.

OSI Reference Model –Cont…

OSI Reference Model
The OSI model has seven layers. The principles of the seven
layers can be summarized as follows:
➢Layerscreatedfordifferentabstractions
➢Eachlayerperformswell-definedfunction
➢Functionoflayerchosenwithdefinitionofinternational
standardprotocolsinmind
➢Minimizeinformationflowacrosstheinterfacesbetween
boundaries
➢Numberoflayersoptimum

OSI Reference Model -The Physical Layer
➢Thephysicallayerisconcernedwithtransmittingrawbits
overacommunicationchannel.
➢Thedesignissueshavetodowithmakingsurethatwhenone
sidesendsa1bit,itisreceivedbytheothersideasa1bit,
notasa0bit.
➢Thedesignissuesherelargelydealwithmechanical,
electrical,andtiminginterfaces,andthephysical
transmissionmedium,whichliesbelowthephysicallayer.

OSI Reference Model -The Data Link Layer
➢Themaintaskofthedatalinklayeristotransformtheinput
dataintodataframes(typicallyafewhundredorafew
thousandbytes)andtransmittheframessequentiallytothe
networklayer.
➢Iftheserviceisreliable,thereceiverconfirmscorrect
receiptofeachframebysendingbackanacknowledgement
frame.
➢Thedesignissueshere,howtokeepafasttransmitterfrom
drowningaslowreceiverindata.
➢Broadcastnetworkshaveanadditionalissueinthedatalink
layer:howtocontrolaccesstothesharedchannel.Aspecial
sublayerofthedatalinklayer,themediumaccesscontrol
sublayer,dealswiththisproblem.

OSI Reference Model -The Network Layer
➢Thenetworklayercontrolstheoperationofthesubnet.
➢Akeydesignissueisdetermininghowpacketsarerouted
fromsourcetodestination.
➢Whenapackethastotravelfromonenetworktoanotherto
gettoitsdestination,manyproblemscanarise.
• Theaddressingusedbythesecondnetworkmaybe
differentfromthefirstone.
• Thesecondonemaynotacceptthepacketatallbecause
itistoolarge.Theprotocolsmaydiffer,andsoon.
• Itisuptothenetworklayertoovercomeallthese
problemstoallowheterogeneousnetworkstobe
interconnected.

OSI Reference Model -The Transport Layer
➢Thebasicfunctionofthetransportlayeristoacceptdata
fromthenetworklayerandsplititupintosmallerunitsif
needbe,passthesetothenetworklayer,andensurethatthe
piecesallarrivecorrectlyattheotherend.
➢Thetransportlayeralsodetermineswhattypeofserviceto
providetothesessionlayer,and,ultimately,totheusersof
thenetwork.
➢Themostpopulartypeoftransportconnectionisanerror-
freepoint-to-pointchannelthatdeliversmessagesorbytesin
theorderinwhichtheyweresent.

OSI Reference Model -The Transport Layer
➢Aprogramonthesourcemachinecarriesonaconversation
withasimilarprogramonthedestinationmachine,usingthe
messageheadersandcontrolmessages.
➢Thedifferencebetweenlayers1through3,whichare
chained,andlayers4through7,whichareend-to-end,is
illustratedinFig.1-20.

OSI Reference Model -The Session Layer
➢Thesessionlayerallowsusersondifferentmachinesto
establishsessionsbetweenthem.
➢Sessionsoffervariousservices,including
▪Dialogcontrol(keepingtrackofwhoseturnitisto
transmit)
▪Tokenmanagement(preventingtwopartiesfrom
attemptingthesamecriticaloperationatthesametime)
▪Synchronization(checkpointinglongtransmissionsto
allowthemtocontinuefromwheretheywereaftera
crash).

OSI Reference Model -The Presentation Layer
➢Thepresentationlayerisconcernedwiththesyntaxand
semanticsoftheinformationtransmitted.
➢Inordertomakeitpossibleforcomputerswithdifferentdata
representationstocommunicate,thedatastructurestobe
exchangedcanbedefinedinanabstractway,alongwitha
standardencodingtobeused''onthewire.''
➢Thepresentationlayermanagestheseabstractdatastructures
andallowshigher-leveldatastructures(e.g.,banking
records),tobedefinedandexchanged.

OSI Reference Model -The Application Layer
➢Theapplicationlayercontainsavarietyofprotocolsthatare
commonlyneededbyusers.
➢Onewidely-usedapplicationprotocolisHTTP(HyperText
TransferProtocol),whichisthebasisfortheWorldWide
Web.
➢WhenabrowserwantsaWebpage,itsendsthenameofthe
pageitwantstotheserverusingHTTP.
➢Theserverthensendsthepageback.Otherapplication
protocolsareusedforfiletransfer,electronicmail,and
networknews.

TCP/IP Reference Model
➢TheARPANET(AdvancedResearchProjectAgency
NETwork)wasaresearchnetworksponsoredbytheDoD
(U.S.DepartmentofDefense).
➢Iteventuallyconnectedhundredsofuniversitiesand
governmentinstallations,usingleasedtelephonelines.
Whensatelliteandradionetworkswereaddedlater,the
existingprotocolshadtroubleinterworkingwiththem,so
anewreferencearchitecturewasneeded.
➢Thus,theabilitytoconnectmultiplenetworksinaseamless
waywasoneofthemajordesigngoalsfromthevery
beginning.Thisarchitecturelaterbecameknownasthe
TCP/IPReferenceModel.

TCP/IP Reference Model
➢TheARPANET(AdvancedResearchProjectAgency
NETwork)wasaresearchnetworksponsoredbytheDoD
(U.S.DepartmentofDefense).
➢Iteventuallyconnectedhundredsofuniversitiesand
governmentinstallations,usingleasedtelephonelines.
Whensatelliteandradionetworkswereaddedlater,the
existingprotocolshadtroubleinterworkingwiththem,so
anewreferencearchitecturewasneeded.
➢Thus,theabilitytoconnectmultiplenetworksinaseamless
waywasoneofthemajordesigngoalsfromthevery
beginning.Thisarchitecturelaterbecameknownasthe
TCP/IPReferenceModel.

TCP/IP Reference Model -The Internet Layer
➢Theinternetlayerdefinesanofficialpacketformatand
protocolcalledIP(InternetProtocol).
➢TheTCP/IPinternetlayerissimilarinfunctionalitytothe
OSInetworklayer.Figure1-21showsthiscorrespondence.

TCP/IP Reference Model -The Transport Layer
➢ThelayerabovetheinternetlayerintheTCP/IPmodelis
nowusuallycalledthetransportlayer.
➢Itisdesignedtoallowpeerentitiesonthesourceand
destinationhoststocarryonaconversation,justasinthe
OSItransportlayer.
➢Twoend-to-endtransportprotocolshavebeendefinedhere.
➢Thefirstone,TCP(TransmissionControlProtocol),isa
reliableconnection-orientedprotocolthatallowsabyte
streamoriginatingononemachinetobedeliveredwithout
erroronanyothermachineintheinternet.

TCP/IP Reference Model -The Transport Layer
➢Thesecondprotocolinthislayer,UDP(UserDatagram
Protocol),isanunreliable,connectionlessprotocolfor
applicationsthatdonotwantTCP'ssequencingorflow
controlandwishtoprovidetheirown.
➢TherelationofIP,TCP,andUDPisshowninFig.1-22.

TCP/IP Reference Model -The Application Layer
➢TheTCP/IPmodeldoesnothavesessionorpresentation
layers.Ontopofthetransportlayeristheapplicationlayer.
➢Itcontainsallthehigher-levelprotocols.Theearlyones
includedvirtualterminal(TELNET),filetransfer(FTP),and
electronicmail(SMTP),asshowninFig.1-22.

➢Thevirtualterminalprotocolallowsauserononemachine
tologontoadistantmachineandworkthere.
➢Thefiletransferprotocolprovidesawaytomovedata
efficientlyfromonemachinetoanother.
➢Electronicmailwasoriginallyjustakindoffiletransfer,but
lateraspecializedprotocol(SMTP)wasdevelopedforit.

TCP/IP Reference Model
The Host-to-Network Layer
➢Belowtheinternetlayerisagreatvoid.
➢TheTCP/IPreferencemodeldoesnotreallysaymuchabout
whathappenshere,excepttopointoutthatthehosthasto
connecttothenetworkusingsomeprotocolsoitcansendIP
packetstoit.
➢Thisprotocolisnotdefinedandvariesfromhosttohostand
networktonetwork.

A Comparison of the OSI and TCP/IP Reference Models
➢TheOSIandTCP/IPreferencemodelshavemuchin
common.
➢Botharebasedontheconceptofastackofindependent
protocols.Also,thefunctionalityofthelayersisroughly
similar.
➢Despitethesefundamentalsimilarities,thetwomodelsalso
havemanydifferences.Threeconceptsarecentraltothe
OSImodel:
1.Services.
2.Interfaces.
3.Protocols.

A Comparison of the OSI and TCP/IP Reference Models
➢Eachlayerperformssomeservicesforthelayeraboveit.
Theservicedefinitiontellswhatthelayerdoes,nothow
entitiesaboveitaccessitorhowthelayerworks.Itdefines
thelayer'ssemantics.
➢Alayer'sinterfacetellstheprocessesaboveithowtoaccess
it.Itspecifieswhattheparametersareandwhatresultsto
expect.It,too,saysnothingabouthowthelayerworks
inside.
➢Finally,thepeerprotocolsusedinalayerarethelayer's
ownbusiness.Itcanuseanyprotocolsitwantsto,aslongas
itgetsthejobdone(i.e.,providestheofferedservices).Itcan
alsochangethematwillwithoutaffectingsoftwareinhigher
layers.

A Comparison of the OSI and TCP/IP Reference Models
➢Thedifferencebetweenthetwomodelsisthenumberof
layers:
➢TheOSImodelhassevenlayers;and
➢TheTCP/IPhasfourlayers.Bothhave(inter)network,
transport,andapplicationlayers,buttheotherlayersare
different.
➢Anotherdifferenceistypeofcommunication.
➢TheOSImodelperformstheconnectionoriented
communicationinthetransportlayer.
➢TheTCP/IPmodelperformsconnectionless
communicationinthenetworklayer.Thischoiceis
especiallyimportantforsimplerequest-response
protocols.

A Comparison of the OSI and TCP/IP Reference Models
OSI Reference Model TCP/IP Reference Model
TheOpenSystemInterconnection
(OSI)modeldefinesanetworking
frameworktoimplementprotocols
insevenlayers.
TransmissionControlProtocol/Internet
Protocol(TCP/IP)isthelanguagea
computerusestoaccesstheinternet.
ItisagrandparentofAllnetwork
models.
Itisanetworkmodelusedincurrent
internetarchitecture.
7LayerArchitecture 4LayerArchitecture
Itsupportsbothconnectionlessand
connection-orientedcommunication
inthenetworklayer,butonly
connectionorientedcommunication
inthetransportlayer.
TheTCP/IPmodelhasonlyonemode
inthenetworklayer(connectionless)
butsupportsbothmodesinthe
transportlayer.

Example Networks
➢TheInternet
➢TheARPANET
➢NSFNET
➢InternetUsage
➢ArchitectureoftheInternet
➢Connection-OrientedNetworks
➢X.25,
➢FrameRelay
➢ATM
➢Ethernet
➢WirelessLANs:802.11

Example Networks
➢Thesubjectofcomputernetworkingcoversmany
differentkindsofnetworks,largeandsmall,well
knownandlesswellknown.
➢Theyhavedifferentgoals,scales,andtechnologies.

The Internet
➢TheInternetisnotanetworkatall,butavastcollectionof
differentnetworksthatusecertaincommonprotocolsand
providecertaincommonservices.

The Internet -The ARPANET
➢NuclearWar-
➢Non-Distributed,i.e.switchingtelephonesystemusedfor
communication.
➢Distributedsystemusingdigitalpacketswitchingsystem
proposedbyborens,employeeofRAND.
➢PacketswitchingsubnetestablishedbyrobertbyusingDonald
DaviesandWesleyClarkidea.
➢SoftwareimplementedforSubnethostcommunicationbyusing
BBN(Bolt,BeranekandNewman).
➢Roberthadproblemtowritesoftwareforhosttohost
communication.Tosolvethisproblem,heconductedameeting
withstudentsandnetworkexperts.
➢ExperimentalNetworkestablished.
➢CerfandKahnimplementedaTCP/IPprotocolforconnecting
multiplenetwork.

The Internet -The ARPANET
➢Thestorybeginsinthelate1950s.
➢AttheheightoftheColdWar,theDoD(DepartmentofDefence)
wantedacommand-and-controlnetworkthatcouldsurvivea
nuclearwar.
➢Atthattime,allmilitarycommunicationsusedthepublic
telephonenetwork,whichwasconsideredvulnerable(affected).
➢Thestructureoftelephonesystemusedbymilitaryasshownin
Fig.1-25(a).Heretheblackdotsrepresenttelephoneswitching
offices,eachofwhichwasconnectedtothousandsoftelephones.
➢Theseswitchingofficeswere,inturn,connectedtohigher-level
switchingoffices(tolloffices),Note:Thereisnodirect
connectionfromoneswitchingofficetoanotheroneswitching
office.

The Internet -The ARPANET

The Internet -The ARPANET
➢Around1960,theDoD(DepartmentofDefence)awardeda
contracttotheRANDCorporationtofindasolution.
➢Oneofitsemployees,PaulBaran,cameupwiththehighly
distributedandfault-tolerantdesignofFig.1-25(b).
➢Sincethepathsbetweenanytwoswitchingofficeswerenow
muchlongerthananalogsignalscouldtravelwithoutdistortion.
➢Baranproposedusingdigitalpacket-switchingtechnology
throughoutthesystem.But,itwasunabletoimplementdueto
rejectionofAT&T.

The Internet -The ARPANET
➢In1963,ARPA,theAdvancedResearchProjectsAgencyisa
branchofDoDisestablished.
➢Initially,ARPAhadnoscientistsorlaboratories.Itdiditsworkby
issuinggrantsandcontractstouniversitiesandcompanieswhose
ideaslookedpromisingtoit.
➢In1967,ComputerNetworkexpertWesleyClark,suggestedto
buildingapacket-switchedsubnet,givingeachhostitsown
router,asillustratedinFig.1-10.
➢In1967,Robertpublishedaresearchpaperinthetopicof
MultipleComputerNetworksandIntercomputer
Communication.

The Internet -The ARPANET
➢Atthesametime,thesimilarsystemisdesignedand
implementedbythedirectionofDonaldDaviesattheNational
PhysicalLaboratory(NPL)inEngland.
➢Itdemonstratedthatpacketswitchingcouldbemadetowork.
Furthermore,itcitedBaran'snowdiscardedearlierwork.
➢Fromtheseideas,RoberttrytobuildARPANETfromtheidea
gatheredfromDonaldDavies.
➢ThesubnetwouldconsistofminicomputerscalledIMPs
(InterfaceMessageProcessors)connectedby56-kbps
transmissionlines.
➢Forhighreliability,eachIMPwouldbeconnectedtoatleasttwo
otherIMPs.

The Internet -The ARPANET
➢Thesubnetwastobeadatagramsubnet,soifsomelinesand
IMPsweredestroyed,messagescouldbeautomaticallyrerouted
alongalternativepaths.
➢In1968,ARPAselectedandawardedtoBBN(Bolt,Beranekand
Newman)forbuildingthesubnetandwritethesubnetsoftware.
➢Thesoftwarewassplitintotwoparts:subnetandhost.
➢ThesubnetsoftwareconsistedoftheIMPendofthehost-IMP
connection,theIMP-IMPprotocol,andasourceIMPto
destinationIMPprotocoldesignedtoimprovereliability.
➢TheoriginalARPANETdesignisshowninFig.1-26.

The Internet -The ARPANET

The Internet -The ARPANET
➢Outsidethesubnet,softwarewasalsoneeded,namely,the
hostendofthehost-IMPconnection,thehost-hostprotocol,
andtheapplicationsoftware.
➢ItsoonbecameclearthatBBNfeltthatwhenithadaccepted
amessageonahost-IMPwireandplaceditonthehost-IMP
wireatthedestination,itsjobwasdone.
➢Roberthadproblemtowritesoftwareforhosttohost
communication.
➢Tosolvethisproblem,heconductedameetingwithstudents
andnetworkexperts.
➢Finally,theexperimentalnetworkwentontheairin
December1969withfournodes:atUCLA(,UCSB,SRI,and
theUniversityofUtah.

The Internet -The ARPANET
➢Thesefourwerechosenbecauseallhadalargenumberof
ARPAcontracts,andallhaddifferentandcompletely
incompatiblehostcomputers.
➢Figure1-27showshowrapidlytheARPANETgrewinthe
first3years.

The Internet -The ARPANET
➢Thisexperimentalsodemonstratedthattheexisting
ARPANETprotocolswerenotsuitableforrunningover
multiplenetworks.
➢In1974,CerfandKahnimplementedaTCP/IPprotocol.
➢Duringthe1980s,additionalnetworks,especiallyLANs,
wereconnectedtotheARPANET.
➢Asthescaleincreased,findinghostsbecameincreasingly
expensive,soDNS(DomainNameSystem)wascreatedto
organizemachinesintodomainsandmaphostnamesontoIP
addresses.

The Internet -NSFNET
➢Bythelate1970s,NSF(theU.S.NationalScience
Foundation)sawtheenormousimpacttheARPANETwas
havingonuniversityresearch,allowingscientistsacrossthe
countrytosharedataandcollaborateonresearchprojects.
➢NSFdecidedtobuildabackbonenetworktoconnectitssix
supercomputercenters,inSanDiego,Boulder,Champaign,
Pittsburgh,Ithaca,andPrinceton.
➢Eachsupercomputerwasgivenalittlebrother,consistingof
anLSI-11microcomputercalledafuzzball.
➢Thefuzzballswereconnectedwith56-kbpsleasedlinesand
formedthesubnet,thesamehardwaretechnologyasthe
ARPANETused.

The Internet -NSFNET
➢Thesoftwaretechnologywasdifferenthowever:thefuzzballs
spokeTCP/IPrightfromthestart,makingitthefirstTCP/IP
WAN.
➢NSFNETallowstothousandsofuniversities,researchlabs,
libraries,andmuseumstoaccessanyofthesupercomputers
andtocommunicatewithoneanother.
➢ThissetupiscalledNSFNET.
➢AfterthesuccessofNSFNET,thedatacanbetransferred448
kbpsbyusingfiberopticchannelsand1.5mbpsbyusing
routerin1990anditisupdatedatthespeedof45mbpsby
ANSNET(AdvancedNetworksandServices).

The Internet -Internet Usage
➢Thenumberofnetworks,machines,andusersconnectedto
theARPANETgrewrapidlyafterTCP/IPbecametheonly
officialprotocolonJanuary1,1983.
➢WhenNSFNETandtheARPANETwereinterconnected,the
growthbecameexponential.
➢Manyregionalnetworksjoinedup,andconnectionswere
madetonetworksinCanada,Europe,andthePacific.
➢Traditionally(meaning1970toabout1990),theInternetand
itspredecessorshadfourmainapplications:

The Internet -Internet Usage
1.E-mail.Theabilitytocompose,send,andreceiveelectronic
mailhasbeenaroundsincetheearlydaysoftheARPANET
andisenormouslypopular.
2.News.Newsgroupsarespecializedforumsinwhichusers
withacommoninterestcanexchangemessages.Thousandsof
newsgroupsexist,devotedtotechnicalandnontechnicaltopics,
includingcomputers,science,etc.
3.Remotelogin.Usingthetelnet,rlogin,orsshprograms,users
anywhereontheInternetcanlogontoanyothermachineon
whichtheyhaveanaccount.
4.Filetransfer.UsingtheFTPprogram,userscancopyfiles
fromonemachineontheInternettoanother.Vastnumbersof
articles,databases,andotherinformationareavailablethisway.

The Internet -Internet Usage
➢Inthe1990,theWWW(WorldWideWeb)isinventedby
CERNphysicistTimBerners-Lee.
➢Mosaicbrowser,writtenbyMarcAndreessenattheNational
CenterforSupercomputerApplications.
➢Withthehelpofbrowsertheusercansharetheaudio,video,
imageandtextdata.
➢Duringthe1990swasfueledbycompaniescalledISPs
(InternetServiceProviders).
➢Thesearecompaniesthatofferindividualusersathomethe
abilitytocalluponeoftheirmachinesandconnecttothe
Internet,thusgainingaccesstoe-mail,theWWW,andother
Internetservices.

The Internet -Internet Usage
➢Thesecompaniessigneduptensofmillionsofnewusersa
yearduringthelate1990s,completelychangingthecharacter
ofthenetworkfromanacademicandmilitaryplaygroundto
apublicutility,muchlikethetelephonesystem.

The Internet -Architecture of the Internet
➢Theclientcallshisorherispoveratelephoneline.
➢Modeminthecomputers,convertsthedigitalsignaltoanalog
signalandpassittothetelephoneline.
➢Theanalogsignalsareremovedfromthetelephonesystem
andinjectedtotheISP’sPOP(PointofPresence)regional
network.
➢Nowthesystemisdigitalandpacketswitched.
➢TheISP'sregionalnetworkconsistsofinterconnectedrouters
inthevariouscitiestheISPserves.

The Internet -Architecture of the Internet
➢IfthepacketisdestinedforahostserveddirectlybytheISP,
thepacketisdeliveredtothehost.otherwise,itishanded
overtotheISP'sbackboneoperator.
➢TelephonecompanieslikeAT&TandSprintiscalled
Backboneoperator.
➢Theyoperatelargeinternationalbackbonenetworks,with
thousandsofroutersconnectedbyhigh-bandwidthfiber
optics.NAP(NetworkAccessPoint)isaroomfullofrouters,
atleastoneperbackbone.

The Internet -Architecture of the Internet

Connection-Oriented Networks: X.25, Frame Relay, and
ATM
➢Theconnection-orientednetworkcomesfromtheworldof
telephonecompanies.Allwordsorpacketsfollowthesame
route.Ifalineorswitchonthepathgoesdown,thecallis
aborted.ThispropertyispreciselywhattheDoDdidnotlike
aboutit.
➢Whydothetelephonecompanieslikeitthen?Therearetwo
reasons:
➢1.Qualityofservice.Withaconnectionorientednetwork,
onceaconnectionhasbeensetup,theconnectionwillget
goodservice.Withaconnectionlessnetwork,iftoomany
packetsarriveatthesamerouteratthesamemoment,the
routerwillchokeandprobablylosepackets.
➢2.Billing.:thetelephonecompanieslikeconnection-oriented
serviceisthattheyareaccustomedtochargingforconnect
time.

Connection-Oriented Networks: X.25 and Frame Relay
➢X.25wasastandardsuiteofprotocolsusedforpacket-
switchedcommunicationsoverawideareanetwork—
aWAN.
➢Thefirstexampleofaconnection-orientednetworkisX.25,
whichwasthefirstpublicdatanetwork.
➢TouseX.25,acomputerfirstestablishedaconnectiontothe
remotecomputer,thatis,placedatelephonecall.
➢Thisconnectionwasgivenaconnectionnumbertobeusedin
datatransferpackets(becausemultipleconnectionscouldbe
openatthesametime).
➢Datapacketswereverysimple,consistingofa3-byteheader
andupto128bytesofdata.

Connection-Oriented Networks: X.25 and Frame Relay
➢Theheaderconsistedofa12-bitconnectionnumber,apacket
sequencenumber,anacknowledgementnumber,andafew
miscellaneousbits.

➢Inthe1980s,theX.25networkswerelargelyreplacedbya
newkindofnetworkcalledframerelay.
➢Theessenceofframerelayisthatitisaconnection-oriented
networkwithnoerrorcontrolandnoflowcontrol.
➢Becauseitwasconnection-oriented,packetsweredelivered
inorder(iftheyweredeliveredatall).Thepropertiesofin-
orderdelivery,noerrorcontrol,andnoflowcontrolmake
framerelaytoawideareaLAN.

Connection-Oriented Networks: Asynchronous Transfer
Mode
➢Thesecondexampleofaconnection-orientednetworkis
ATM(AsynchronousTransferMode).
➢Inthetelephonesystem,mosttransmissionissynchronous
andATMisnot.ATMwasdesignedintheearly1990s.
ATMVirtualCircuits
➢Connectionsareoftencalledvirtualcircuits,inanalogywith
thephysicalcircuitsusedwithinthetelephonesystem.
➢Eachconnection,temporaryorpermanent,hasaunique
connectionidentifier.Avirtualcircuitisillustratedin
Fig.1-30.

Connection-Oriented Networks: Asynchronous Transfer
Mode
Figure 1-30. A virtual circuit

Connection-Oriented Networks: Asynchronous Transfer
Mode
➢Onceaconnectionhasbeenestablished,eithersidecan
begintransmittingdata.
➢ThebasicideabehindATMistotransmitallinformationin
small,fixed-sizepacketscalledcells.
➢Thecellsare53byteslong,ofwhich5bytesareheaderand
48bytesarepayload,asshowninFig.1-31.

1.5.3 Ethernet
➢Ethernetisthetraditionaltechnologyforconnectingwired
localareanetworks(LANs),enablingdevicesto
communicatewitheachotherviaaprotocol
➢AlohawasthebasisforEthernet,alocalareanetwork
protocol.NormanAbramsonistheinventoroftheAloha
system,.InpureAloha,ausercantransmitatanytimebut
riskscollisionswithotherusers'messages.
➢AsketchofEthernetarchitectureisgiveninFig.1-34.
EthernethadamajorimprovementoverALOHANET:
beforetransmitting,acomputerfirstlistenedtothecableto
seeifsomeoneelsewasalreadytransmitting.

1.5.3 Ethernet
➢Ifso,thecomputerheldbackuntilthecurrenttransmission
finished.Doingsoavoidsinterferingwithexisting
transmissions,givingamuchhigherefficiency.
➢ALOHANET didnotworklikethisbecauseitwas
impossibleforaterminalononeislandtosensethe
transmissionofaterminalonadistantisland.Withasingle
cable,thisproblemdoesnotexist.

1.5.4 Wireless LANs: 802.11
➢Almostassoonasnotebookcomputersappeared,many
peoplehadadreamofwalkingintoanofficeandmagically
havingtheirnotebookcomputerbeconnectedtotheInternet.
ThisworkrapidlyledtowirelessLANsbeingmarketedbya
varietyofcompanies.
➢TheIEEEcommitteethatstandardizedthewiredLANswas
giventhetaskofdrawingupawirelessLANstandard.
➢Thestandarditcameupwithwasnamed802.11.Acommon
slangnameforitisWiFi(WirelessFidelity).
Theproposedstandardhadtoworkintwomodes:
1.Inthepresenceofabasestation.
2.Intheabsenceofabasestation.

1.5.4 Wireless LANs: 802.11
➢Intheformercase,allcommunicationwastogothroughthe
basestation,calledanaccesspointin802.11terminology.
➢Inthelattercase,thecomputerswouldjustsendtoone
anotherdirectly.Thismodeisnowsometimescalledadhoc
networking.
➢ThetwomodesareillustratedinFig.1-35.