by
Dr. S. SELVAGANESAN
Professor and HoD / IT [email protected]
CS8591 Computer Networks
1
UNIT I
Introduction and
Physical Layer
CS8591 COMPUTER NETWORKS -Syllabus
2
CS8591 COMPUTER NETWORKS -Books
3
UNIT I
Introduction and Physical
Layer
Networks–NetworkTypes–Protocol
Layering–TCP/IPProtocolsuite–
OSIModel–PhysicalLayer:
Performance–Transmissionmedia–
Switching – Circuit-switched
Networks–PacketSwitching.
4
Data Communication
DataCommunicationisthe
exchangeofdatabetweentwo
devicesviasomeformof
transmissionmedium(suchasawire
cable).
5
Data Communication
Characteristics:
Effectivenessofadatacommunicationsystemdependson:
Delivery:Thesystemmustdeliverdatatothecorrect
destination.
Accuracy:Thesystemmustdeliverthedataaccurately
(withoutanychange/alteration).
Timeliness:Thesystemmustdeliverthedatainatimely
manner.Inthecaseofvideoandaudio,timelydelivery
meansdeliveringthedataastheyareproduced,inthesame
order,thattheyareproduced,andwithoutsignificantdelay.
Thiskindofdeliveryiscalledreal-timetransmission.
Jitter:Jitterreferstothevariationinthepacketarrivaltime.
Itistheunevendelayinthedeliveryofaudioorvideo
packets
6
Components of Data communication
Components
ADataCommunicationsystemhasfivecomponents.
Figure 1: Five Components of Data Communication System
7
ADataCommunicationsystemconsistsoffivecomponents.Theyare
1.Sender:Thesenderisadevicethatsendsthemessage.Itcanbea
computer,workstation,telephonehandset,videocamera,andsoon.
2.Receiver:Thereceiverisadevicethatreceivesthemessagesentbythe
sender.Itcanbeacomputer,workstation,telephonehandset,television,and
soon.
3.Message:Themessageistheinformationordatatobecommunicated.
(Text,number,images,audioandvideo)
4.Medium:Thetransmissionmediumisthephysicalpathbywhicha
messagetravelsfromsendertoreceiver.Someexamplesoftransmission
mediaincludetwisted-pairwire,coaxialcable,fiber-opticcable,andradio
waves.
5.Protocol:Aprotocolisasetofrulesthatgoverndatacommunications.It
representsanagreementbetweenthecommunicatingdevices.Withouta
protocol,twodevicesmaybeconnectedbutnotcommunicating,justasa
personspeakingFrenchcannotbeunderstoodbyapersonwhospeaksonly
Japanese.
Components of Data communication
8
CommunicationbetweentwodevicescanbeSimplex,
Half-duplex,andfull-duplex.
Figure 2: Data flow (Simplex, Half-duplex, and full-duplex)
Data Flow (Transmission mode)
9
RingTopology:
InaRingtopologynetworkwithnnodes,
therearedirectnlinks;
Physical Structures
Physical Topology
Fig. 9: A ring topology connecting six stations
29
HybridTopology:
Ahybridtopologyisatypeofnetworktopologythatusestwoor
moreothernetworktopologies,includingbustopology,mesh
topology,ringtopology,startopology,andtreetopology.
Physical Structures
Physical Topology
Fig.10: A hybrid topology: a star backbone with three bus networks
30
HybridTopology:
Physical Structures
Physical Topology
Fig.11: A hybrid topology: a star backbone with three bus networks
31
Types of Networks
CategoriesofNetwork
32
LAN, MAN, and WAN
CategoriesofNetwork
33
Fig 12: LAN
Local Area Networks (LAN)
34
Figure 13 An isolated LAN connecting 12 computers to a hub in a closet
35
Fig 14: MAN 36
Fig.15: MAN
37
Fig.16: WAN
38
Categories of Networks
39
Local Area Networks (LAN)
40
Alocalareanetwork(LAN)isusually
privatelyownedandlinksthedevicesina
singleoffice,building,orcampus.
Dependingontheneedsofanorganizationand
thetypeoftechnologyused,aLANcanbeas
simpleastwoPCsandaprinterinsomeone's
homeoffice;oritcanextendthroughouta
companyandincludeaudioandvideo
peripherals.
Currently,LANsizeislimitedtoafew
kilometers(upto10kms.)
Local Area Networks (LAN)
41
LANsaredesignedtoallowresourcestobe
sharedbetweenpersonalcomputersor
workstations.Theresourcestobesharedcan
includehardware(e.g.,aprinter),software
(e.g.,anapplicationprogram),ordata.
AcommonexampleofaLAN,foundinmany
businessenvironments,linksaworkgroupof
task-relatedcomputers,forexample,
engineeringworkstationsoraccountingPCs.
Local Area Networks (LAN)
42
Figure 17 WANs: a switched WAN and a point-to-point WAN
45
Interconnection of Networks:
Internet
Today,itisveryraretoseeaLAN,aMAN,oraLANinisolation;theyare
connectedtooneanother.Whentwoormorenetworksareconnected,they
becomeaninternetwork,orinternet.
Asanexample,assumethatanorganizationhastwooffices,oneontheeast
coastandtheotheronthewestcoast.Theestablishedofficeonthewest
coasthasabustopologyLAN;thenewlyopenedofficeontheeastcoasthas
astartopologyLAN.Thepresidentofthecompanylivessomewhereinthe
middleandneedstohavecontroloverthecompanyfromherhome.
TocreateabackboneWANforconnectingthesethreeentities(twoLANs
andthepresident'scomputer),aswitchedWAN(operatedbyaservice
providersuchasatelecomcompany)hasbeenleased.ToconnecttheLANs
tothisswitchedWAN,however,threepoint-to-pointWANsarerequired.
Thesepoint-to-pointWANscanbeahigh-speedDSLlineofferedbya
telephonecompanyoracablemodernlineofferedbyacableTVprovideras
showninFigure1.12. 46
Figure 18 A heterogeneous network made of four WANs and two LANs47
The Internet
Anetworkisagroupofconnecteddevicessuchas
computersandprinters.
Aninternetistwoormorenetworksthatcan
communicatewitheachother.
ThemostnotableinternetiscalledtheInternet.
TheInternetisacollaborationofmorethan
hundredsofinterconnectednetworks.
48
The Internet
In1969,aprojectwasfundedbytheAdvancedResearch
ProjectAgency,anarmoftheU.S.Departmentof
Defense.
ARPAestablishedapacket-switchingnetwork,called
AdvancedResearchProjectAgencyNetwork
(ARPANET).
In1972,VintCerfandBobKahn,collaboratedonwhat
theycalledtheInternettingProject.
49
Figure 19 Hierarchical organization of the Internet
50
Protocols and Standards
Protocolissynonymouswithrule.
Standardsareagreeduponrules.
51
Building a Network
AComputerNetworkmustprovideageneral,cost
effective,fairandrobustconnectivityamongalarge
numberofcomputers.
Networksmustevolvetoaccommodatechangesinboth
underlyingtechnologiesuponwhichtheyarebasedas
wellaschangesinthedemandsplacedonthemby
applicationprograms.
Todealwiththiscomplexity,networkdesignershave
developedgeneralblueprintcalledNetwork
Architecture.
Building a Network
ANetworkArchitectureisdefinedaswhichidentifies
theavailablehardwareandsoftwarecomponentsand
showshowtheycanbearrangedtoformacomplete
network.
Tobuildanetwork,wemustknowthefollowing
things.
Discovertherequirementsthatdifferentapplicationsand
differentcommunitiesofpeopleplaceonthenetwork.
NetworkArchitectureonwhichtheapplicationsaregoingto
bedeveloped.
Keyelementsintheimplementationofcomputernetworks.
Identifyingkeymetricsthatareusedtoevaluatethe
performanceofcomputernetworks.
Building a Network
Networkingisaplanned,andongoingeffort.
Wesetgoals,developstrategiesforachievingthem,
takeaction,evaluatehowwellourplanisworking,and
makechangesasnecessary.
Howtobuildanetworkinfivesteps:
1.MakeaNetworkingPlan
2.Makecontact
3.Organizeournetwork
4.Takeaction;and
5.Practicenetworkingetiquette
Building a Network
Applications
Someapplicationsofthecomputernetworksare:
WorldWideWeb(WWW)
Email
Streamingaudioandvideo
Chatrooms
Music(file)sharing
Layering and Protocols
Layeringisthetechniquefororganizingtheprotocolsintoan
orderedseriesofdistinctabstractions.
Theservicesprovidedbyalayerdependonlyontheservices
providedbythepreviouslessabstractlayer.
Thelayerimmediatelyabovethehardwaremightprovidehost-
to-hostconnectivity.
Thenextlayerupprovidesthesupportforprocess-to-process
channels.
Figure: Example of a layered network system
Layering and Protocols
Layeringprovidestwonicefeatures:
1.Itdecomposestheproblemofbuildinganetworkintomoremanageable
components.
2.Itprovidesamoremodulardesign.
Ifwewanttoaddanewservice,wehavetomodifythefunctionalityat
onelayer,reusingthefunctionsprovidedatallotherlayers.
Intheabovefigure,onechannelprovidesarequest/replyservice,and
anotherchannelprovidesamessagestreamservice.
Theabstractobjectsthatmakeupthelayersofanetworksystemare
calledprotocols.Thatis,aprotocolprovidesacommunicationservice
thathigher-levelobjectsusetoexchangemessages.
Figure: Layered systems with alternative abstractions
OSI Model
OpenSystemsInterconnection(OSI)Model
AnISOstandardthatcoversallaspectsofnetwork
communicationsistheOpenSystemsInterconnection(OSI)
model.
Itwasfirstintroducedinthelate1970s.
Anopensystemisamodelthatallowsanydifferentsystemsto
communicateregardlesstotheirunderlyingarchitecture.
ThepurposeofOSImodelistoopencommunicationsbetween
differentsystemswithoutrequiringchangestothelogicofthe
underlyinghardwareandsoftware.
TheOSImodelisnotaprotocol;itisamodelforunderstanding
anddesigninganetworkarchitecturethatisflexible,robust,and
interoperable.
OSI Model
OpenSystemsInterconnection(OSI)
TheOpenSystemsInterconnectionmodelisalayeredframeworkforthe
designofnetworksystemsthatallowsforcommunicationacrossalltypesof
computersystems.
Itconsistsforsevenseparatebutrelatedlayers,eachofwhichdefinesa
segmentoftheprocessofmovinginformationacrossanetwork.
OSI Model
OSI Model
ThefiguregivesanoverallviewoftheOSIlayers.
Figure –The Interaction between layers in the OSI model
OSI Model
Thefiguregivesanoverallviewofthe
OSIlayers.
Figure –The Interaction between layers in the OSI
model
Thesevenlayersare
organizedintothree
subgroups.
#Layers1,2and3
(Physical,DataLinkand
Networklayers)are
NetworkSupportLayers.
#Layers5,6and7
(Session,Presentationand
Applicationlayers)are
UserSupportLayers.
#Layer4(TransportLayer)
linksthetwosubgroups
andensuresthatwhat
lower layershave
transmittedisinaformthat
theupperlayerscanuse.
OSI Model
NetworksupportLayerdealwiththephysicalaspectsofmoving
datafromonedevicetoanothersuchaselectricalspecifications,
physicalconnections,physicaladdressingandtransporttimingand
reliability.
UsersupportLayersallowinteroperabilityamongunrelated
softwaresystems.
TheupperOSIlayersarealwaysimplementedinsoftware.Lower
layersareacombinationofhardwareandsoftware,exceptforthe
physicallayer,whichismostlyhardware.
OSI Model
Figure –An Exchange using the OSI model
OSI Model
•Theprocessstartsattheapplicationlayer;
thenmovesfromlayertolayerin
descendingsequentialorder.
•Ateachlayer,aheader,canbeaddedtothe
dataunit.
•Thetrailerisaddedonlyatlayer2.
•Whentheformatteddataunitpasses
throughthephysicallayer,itischangedinto
anelectromagneticsignalandtransported
alongthephysicallink.
•Uponreachingitsdestination,thesignal
passesintophysicallayerandistransformed
backintodigitalform.
•Thedataunitsarethenmovedbackup
throughtheOSIlayers.
•Whentheblockofdatareachesthenext
higherlayer,theheadersandtrailersattached
bythesendinglayerareremoved.
•Whenthedataunitreachestheapplication
layer,themessageisagaininform
appropriatetotheapplicationandismade
availabletotherecipient.
Figure –An Exchange using the OSI model
TCP/IP Protocol Suite
5.ApplicationLayer:
TheapplicationlayerinTCP/IPisequivalentto
thecombinedsession,presentationand
applicationlayersintheOSImodel.Many
protocolsaredefinedatthislayer.
ADDRESSING
Fourlevelsofaddressesareusedinaninternet
employingtheTCP/IPprotocols:physical,logical,port,
andspecific.
Figure:Addresses in TCP/IP
2.124
Figure: Relationshipof layers and addresses in TCP/IP
Physical Addressing
Network Adapter
Port Address
Port Address
TheInternet Assigned Numbers Authority(IANA) is responsible for the global
coordination of the DNS Root, IP addressing, and other Internet protocol resources.
The port numbers are divided into three ranges: thewell-known ports, theregistered
ports, and thedynamicorprivate ports.
The well-known ports (also known assystem ports) are those from 0 through 1023.
The requirements for new assignments in this range are stricter than for other
registrations,
[2]
examples include:
21:File Transfer Protocol(FTP)
22:Secure Shell(SSH)
23:Telnetremote login service
25:Simple Mail Transfer Protocol(SMTP)
53:Domain Name System(DNS) service
80:Hypertext Transfer Protocol(HTTP) used in theWorld Wide Web
110:Post Office Protocol(POP3)
119:Network News Transfer Protocol(NNTP)
123:Network Time Protocol(NTP)
143:Internet Message Access Protocol(IMAP)
161:Simple Network Management Protocol(SNMP)
194:Internet Relay Chat(IRC)
443:HTTP Secure(HTTPS)
The registered ports are those from 1024 through 49151. IANA maintains the official
list of well-known and registered ranges.The dynamic or private ports are those from
49152 through 65535. One common use for this range is forephemeral ports.
Figure Transmission medium and physical layer
•Transmission media are actually located below the physical layer
and are directly controlled by the physical layer.
•Figure shows the position of transmission media in relation to the
physical layer.
Transmission Media
Figure : Classes of transmission media
•Atransmissionmediumcanbebroadlydefinedasanything
thatcancarryinformationfromasourcetoadestination.
•Intelecommunications,transmissionmediacanbedividedinto
twobroadcategories:guidedandunguided.
•Guidedmediaincludetwisted-paircable,coaxialcable,and
fiber-opticcable.Unguidedmediumisfreespace.
Classes of Transmission Media
Figure: UTP and STP cables
Unshielded Versus Shielded Twisted-Pair Cable
The most common twisted-pair cable used in communications is referred to as
unshielded twisted-pair (UTP).
IBM has also produced a version of twisted-pair cable for its use called shielded
twisted-pair (STP). STP cable has a metal foil or braided mesh covering that
encases each pair of insulated conductors. Although metal casing improves the
quality of cable by preventing the penetration of noise or crosstalk, it is bulkier
and more expensive.
Figure shows the difference between UTP and STP.
Twisted-Pair Cable
7.151
Table : Categories of unshielded twisted-pair cables
Figure Coaxial cable
Coaxial Cable
Coaxial cable (or coax) carries signals of higher frequency ranges than
those in twisted pair cable.
It has a central core conductor of solid or stranded wire (usually copper)
enclosed in an insulating sheath, which is, in turn, encased in an outer
conductor of metal foil, braid, or a combination of the two.
The outer conductor is also enclosed in an insulating sheath, and the
whole cable is protected by a plastic cover (see Figure)
Table: Categories of coaxial cables
Coaxial Cable
Figure BNC connectors
Coaxial Cable
Figure: Coaxial cable performance
Coaxial Cable
Fiber-optic Cable
Fiber-optic Cable
Fiber-optic Cable
Propagation modes
Figure: Modes
1.Single-mode fiber
Carries light pulses along single path.
2.Multimode fiber
Many pulses of light travel at different angles
Fiber-optic Cable
Applications: Fiber-optic cable is often found in backbone networks because its
wide bandwidth is cost-effective. Today, with wavelength-division multiplexing
(WDM), we can transfer data at a rate of 1600 Gbps.
Advantages Fiber-optic cable has several advantages over metallic cable
(twisted-pair or coaxial).
1. Higher bandwidth. 2. Less signal attenuation. 3. Immunity to
electromagnetic interference.
4.Resistance to corrosive materials. 5. Light weight. 6. Greater immunity
to tapping.
Disadvantages There are some disadvantages in the use of optical fiber.
1. Installation and maintenance. Fiber-optic cable is a relatively new technology.
Its installation and maintenance require expertise that is not yet available
everywhere.
2. Unidirectional light propagation. Propagation of light is unidirectional. If we
need bidirectional communication, two fibers are needed.
3.Cost. The cable and the interfaces are relatively more expensive than those of
other guided media. If the demand for bandwidth is not high, often the use of
optical fiber cannot be justified.
Fiber-optic Cable
Table : Fiber types
Figure: Fiber construction
Figure: Fiber-optic cable connectors
Figure: Optical fiber performance
UNGUIDED MEDIA: WIRELESS
Unguidedmediatransportelectromagneticwaves
withoutusingaphysicalconductor.Thistypeof
communicationisoftenreferredtoaswireless
communication.
Radio Waves
Microwaves
Infrared
Topics discussed in this section:
Figure: Electromagnetic spectrum for wireless communication
UNGUIDED MEDIA: WIRELESS
•Unguidedmediatransportelectromagneticwaveswithoutusingaphysical
conductor.Thistypeofcommunicationisoftenreferredtoaswireless
communication.
•Figureshowsthepartoftheelectromagneticspectrum,rangingfrom3kHzto900
THz,usedforwirelesscommunication.
1.Ground Propagation:
Radio waves travel through the lowest portion of the atmosphere, hugging the earth.
The low frequency signal follow the curvature of the planet.
Distance depends on the amount of the power.
Unguided signal can travel from the source to destination in several ways:
2.Sky Propagation:
Higher frequency radio radiate upward into the ionosphere where they arereflected back to
the earth.
Sky propagation allow for greater distance with lower power output.
3.line-of-sight Propagation:Very high frequency signals are transmitted in straight lines directly
from antenna to antenna.
Figure Propagation methods
Table: Bands
Figure: Wireless transmission waves
Radio Waves
Radio waves are used for multicast communications, such as radio and
television, and paging systems. They can penetrate through walls.
Highly regulated. Use omni directional antennas
Note
Radio Waves
Radio Waves
Microwaves
Microwaves
Microwaves are used for unicast communication such as cellular telephones,
satellite networks,
and wireless LANs.
Higher frequency ranges cannot penetrate walls.
Use directional antennas -point to point line of sight communications.
Note
Microwaves
Infrared
Infrared signals can be used for short-range communication in a closed area
using line-of-sight propagation.
Note
Infrared