ECT423 M1 Ktunotes - in
ECT423 M1 Ktunotes - in
Comput
erNet
wor
k
A networkis a setofdevi
ces (of
ten r
efer
red to as nodes)connect
ed by
communi cat
ionl
i
nks.A nodecanbeacomput er,pri
nter,oranyotherdev
ice
capabl
eofsendi ng and/
orrecei
vi
ng dat
agenerated byot hernodeson the
network.
“Comput er net
work’
’t o mean a col l
ect
ion of aut onomous computers
i
nterconnect
ed by a singl
et echnol
ogy.Two comput ers ar
e saidt o be
i
nterconnect
ediftheyar
eablet
oexchangeinf
or mat
ion.Theconnect
ionneednot
bev iaacopperwi r
e;fi
beropt
ics,micr
owav es,i
nfr
ared,andcommuni cat
ion
satel
li
tescanalsobeused.
Ever
ynet
wor
kinv
olv
eshar
dwar
eandsof
twar
ethatconnect
scomput
ersand
tool
s.
Computernetworkscomponentscompri
sebot hphy
sicalpartsaswel lasthesoft
war
e
requi
redforinst
all
ingcomputernetworks,bothator gani
zationsandathome.The
hardwar
e component s ar
et he serv
er,client
,peer ,transmi ssi
on medium,and
connect
ingdevi
ces.Thesoft
warecomponentsareoperati
ngsy stem andpr
otocol
s.
Har
dwareComponent s
Se r
vers−Serv
ersarehigh-conf
igur at
ioncomput ersthatmanagether
esourcesof
thenetwork.Thenetworkoperat ingsystem i
sty pi
call
yinst
all
edi
ntheserv
erand
sot heygiv
euseraccessest ot henet workresources.Server
scanbeofv ari
ous
kinds:fi
l
eserver
s,databaseserv ers,
printser
versetc.
NetworkingOper atingSy st
em −Net workOper at
ingSystemsistypical
lyi
nstal
l
ed
i
nt heser verandf aci
l
itatewor kst
ati
onsi nanet worktoshar efi
les,dat
abase,
appli
cati
ons, pr
intersetc.
ProtocolSuit
e−Apr otocolisar ul
eorgui del
inefol
lowedbyeachcomput erfor
datacommuni cation.Protocolsuiteisasetofr el
atedpr ot
ocolsthatarelaid
downf orcomput ernetwor ks.Thetwopopul arpr
otocolsuit
esare−
o a .OSIModel (OpenSy st
em Int
erconnecti
ons)
o b .TCP/I PModel
Appli
cat i
onsofComput erNet works:
1.Busi nessAppl i
cati
ons
t odi stri
butei nf
ormat ionthroughoutt hecompany( r
esour ceshar ing) .shar
ing
phy sicalr esources such as pr i
nt er
s,and t ape backup sy stems,i s shar
ing
i
nf ormat ion
c lient -
serv ermodel.Itiswidelyusedandf or
mst hebasi sofmuchnet wor kusage.
c ommuni cati
on medi um among empl oyees.Emai l( el
ectr
oni c mai l),which
empl oyeesgener al
lyusef oragr eatdeal ofdai l
ycommuni cation.
Te lephonecal l
sbet weenempl oyeesmaybecar riedbyt hecomput ernetwork
i
nst eadofbyt hephonecompany .Thist echnologyi scalledI PtelephonyorVoi ce
overI P( VoIP)whenI nternettechnol ogyisused.
De sktopshar i
ngletsremot ewor kersseeandi nt eractwi thagr aphicalcomput er
screen
doi ngbusi nesselectronicall
y,especi al
lywithcust omer sandsuppl i
er s.Thisnew
modeli scal l
ede-commer ce( electroniccommer ce)andi thasgr ownr api
dlyin
recenty ears.
2HomeAppl
i
cat
ions
3Mobi
l
eUsers
Textmessagingort
ext
ing
Sma r
tphones,
GPS(GlobalPosi
ti
oni
ngSy st
em)
m-commer ce
NFC(NearFieldCommunicati
on)
Def
ini
ti
onofpr
otocol
,Pr
otocol
standar
dizat
ion
Aprotocoldef
inesthef
ormatandtheorderofmessagesexchangedbet
weentwoor
morecommunicati
ngenti
ti
es,aswellast
heacti
onstakenonthet r
ansmi
ssi
onand/
or
r
ecei
ptofamessageorotherevent
.
Ahumanpr
otocol
andacomput
ernet
wor
kpr
otocol
:
Anetworkpr
otocolissi
milartoahumanpr ot
ocol
,exceptt
hattheent
it
iesexchangi
ng
messagesandt aki
ngacti
onsar ehardwar
eorsoftwarecomponentsofacomput er
net
work.Al
lactivi
tyint
heI nt
ernett
hatinv
olvest
woormor ecommunicat
ingremote
ent
it
iesi
sgovernedbyaprotocol.
Protocolsinroutersdetermineapacket'
spat hf r
om sourcetodesti
nati
on;hardware-
i
mpl ementedpr otocolsint henetworkinter
facecar dsoftwophy si
call
yconnected
comput ers cont
rolthe f l
ow ofbi t
s on the 'wir
e'between the two computer
s;a
congestion -controlpr otocolcont
rol
st he rate atwhich packet
s aret r
ansmit
ted
betweensenderandr eceiv
er.
Prot
ocolSt
andardi
zati
oni
stheprocessofcr
eati
ngprotocol
stogui
dethecreati
onofa
goodorser
vicebasedont
heconsensusofal
ltherel
evantpar
ti
esi
ntheindust
ry.
Net
wor
kedges,
Net
wor
kcor
eandNet
wor
kli
nks.
Thecomputer
sandot
herdev
icesconnect
edt
otheI
nter
netar
eof
tenr
efer
redt
o
asendsy
stems.
Theyar
eref
err
edt
oasendsy
stemsbecauset
heysi
tatt
heedgeoft
heI
nter
net
.
TheI nter
net ’
sendsy st
emsi ncludedeskt
opcomput ers(e.
g.,
desktopPCs, Macs,
andLi nuxboxes) ,serv
ers(e.g.,Webande-mailservers)
,andmobi lecomputer
s
(e.
g.,laptops,smar t
phones,andt abl
ets)
.Fur
thermore,anincreasingnumberof
non-tradi
tionaldevi
cesarebei ngatt
achedtot
heInternetasendsy stems.
Endsyst
emsar eal
sorefer
redtoashost
sbecauset
heyhost(
thatis,r
un)appl
icat
ion
progr
amssuchasaWebbr owserpr
ogr
am,aWebser v
erprogram,ane-mailcli
ent
progr
am,orane-mai
lser
verprogr
am.
Hostsaresometi
mesf urt
herdi
vi
dedi
ntotwocat
egori
es:cl
ient
sandser
vers.Inf
ormall
y,
cli
ent
stendt obedesktopandmobil
ePCs,smartphones,andsoon,whereasserver
s
tendtobemor epowerfulmachi
nest
hatstor
eanddist
ri
buteWebpages,stream vi
deo,
rel
aye-mail
,andsoon.
r
unappl
i
cat
ionpr
ogr
ams
o e.
g.web,
emai
l
o at“
edgeofnet
wor
k”
o e.
g.Webbr
owser
/ser
ver
;emai
lcl
i
ent
/ser
ver
Peer
-t
o-peermodel
:
o mi
nimal
(orno)useofdedi
cat
edser
ver
s
o e.
g.Sky
pe,
Bit
Tor
rent
,KaZaA
Net
wor
kedge:
connect
ion-
ori
ent
edser
vice
Goal
:dat
atr
ansf
erbet
weenendsy
stems
handshaki
ng:
set
up(
prepar
efor
)dat
atr
ansf
eraheadoft
ime
TCP-Tr
ansmi
ssi
onCont
rol
Prot
ocol
Int
ernet
’sconnect
ion-
ori
ent
edser
vice
Reli
able,
in-
orderby
test
ream dat
atr
ansf
er,
usest
heconceptofacknowl
edgement
sand
ret
ransmissi
ons
f
lowcont
rol
:senderwon’
tov
erwhel
mrecei
ver
congest
ioncont
rol
:sender
s“sl
owdownsendi
ngr
ate”whennet
wor
kcongest
ed
connect
ionl
essser
vice
UDP-UserDat
agr
am Pr
otocol
[RFC768]
:
connect
ionl
ess
unr
eli
abl
edat
atr
ansf
er
nof
lowcont
rol
nocongest
ioncont
rol
Figureshowssever
alt y
pesofaccessnetworkswiththi
ck,shaded l
i
nes,and t
he
setti
ngs(home,
ent
erpr
ise,andwi
de-
areamobi
l
ewirel
ess)i
nwhichtheyar
eused.
HomeAccess:
DSL,
Cabl
e,FTTH,
Dial
-Up,
andSat
ell
i
te
Thet
womostpr
eval
entt
ypesofbr
oadbandr
esi
dent
ial
accessar
e
1.Di
git
alsubscr
iberl
i
ne(
DSL)
2.Cabl
e.
Ar esi
dencet ypi
cal
lyobtai
nsDSL I
nter
netaccessf r
om thesamelocalt
elephone
company( tel
co)thatprovi
desit
swiredlocalphoneaccess.WhenDSLisused,a
customer’
stelcoi
salsoi
tsISP.
DSLI
nter
netaccess
Onthecustomerside,aspli
tt
erseparat
est hedat
aandtel
ephonesignalsarri
vi
ngtothe
homeandf or
war dsthedatasignalt
otheDSLmodem.Ont hetel
coside,intheCO,the
DSLAM separatesthedataandphonesi gnal
sandsendst hedatai nt
ot heInt
ernet
.
Hundr
edsorev enthousandsofhouseholdsconnectt
oasingl
eDSLAM.
TheDSLst andar
dsdefi
netransmi ssi
onratesof12Mbpsdownst ream and1.
8Mbps
upst
ream and24Mbpsdownst ream and2.5Mbpsupstream.Becausethedownst
ream
andupst
ream rat
esar
ediff
erent,theaccessissai
dtobeasymmet r
ic.
Engineer
shav eexpressl
ydesignedDSLf orshortdist
ancesbetweenthehomeandt
he
CO;gener al
l
y,ift heresi
dencei snotlocatedwi thi
n5t o 10mi l
esoft heCO,t
he
resi
dencemustr esortt
oanalternat
ivef
orm ofInter
netaccess.
Whi
l
e DSL makesuse oft
he t
elco’
sexi
sti
ng l
ocalt
elephone i
nfr
ast
ruct
ure,cabl
e
Ahy
bri
dfi
bercoaxi
alaccessnet
wor
k
Cablei
nter
netaccessr
equi
resspeci
almodems,call
edcabl
emodems.AswithaDSL
modem,thecablemodem i
stypi
call
yanext
ernaldev
iceandconnect
stot
hehomePC
thr
oughanEther
netpor
t.
Atthecableheadend,t
hecablemodem terminati
onsystem (CMTS)servesasi
milar
funct
ionastheDSLnetwork’
sDSLAM—t ur
ningtheanalogsignalsentfr
om thecable
modemsi nmanydownstr
eam homesbackintodigi
tal
for
mat .
Cablemodemsdi v
idetheHFC networki ntotwo channel
s,adownstream and an
upstr
eam channel.AswithDSL,accessist y
pical
l
yasy mmetri
c,wi
ththedownstream
channelt
ypicall
yall
ocat
edahighertransmissionrat
ethantheupst
ream channel
.The
DOCSIS2.0st andar
ddefi
nesdownstream r
atesupt o42.
8Mbpsandupst r
eam rat
esof
upto30.7Mbps.
Asint
hecaseofDSLnetworks,t
hemaxi
mum achi
evabl
erat
emaynotber
eal
i
zeddue
tol
owercont
ract
eddat
arat
esormediai
mpai
rments.
Oneimpor
tantchar
acter
ist
icofcableInter
netaccessisthatitisasharedbroadcast
medi
um.Inparti
cul
ar,ev
erypacketsentbytheheadendt r
avel
sdownstream onevery
l
inkt
oeveryhomeandev erypacketsentbyahomet ravelontheupst
ream channelto
Therear
esever
alcompet
ingt
echnol
ogi
esf
oropt
icaldi
str
ibut
ionf
rom t
heCOt
o
thehomes.
Thesimpl
estopti
caldi
str
ibut
ionnet
wor
kiscal
l
eddi
rectf
iber
,wi
thonef
iber
l
eavi
ngtheCOforeachhome.
Eachf
iberl
eav
ingt
hecent
ral
off
icei
sshar
edbymanyhomes.
Therearetwocompet ingopti
cal
-di
stri
but
ionnet
wor
karchit
ect
uresthatperf
orm
thi
s spli
tt
ing:acti
ve opti
calnetworks (
AONs)and passi
ve opt
icalnetworks
(PONs).AONi sessent
ial
lyswi
tchedEther
net.
FTTHI
nter
netAccess
Fi
gur
eshowsFTTHusi
ngt
hePONdi
str
ibut
ionar
chi
tect
ure.
Eachhomehasanopt i
calnetwor
ktermi
nator(ONT)
,whi
chi
sconnect
edby
dedi
cat
edopt
ical
fibert
oaneighbor
hoodspl
it
ter
.
Thesplit
tercombinesanumberofhomes(
typi
cal
lyl
esst
han100)ont
oasingle,
sharedopticalf
iber
,whi
chconnectstoanopti
call
inet
ermi
nat
or(OLT)i
nt he
tel
co’sCO.
I
nthePONarchi
tect
ure,
allpacket
ssentf
rom OLTt
othespl
i
tterar
erepl
i
cat
edat
t
hespl
it
ter(
simi
l
artoacableheadend).
FTTH canpot
ent
ial
l
ypr
ovi
deI
nter
netaccessr
atesi
nthegi
gabi
tspersecond
range.
Accessi
ntheEnt
erpr
ise(
andt
heHome)
:Et
her
netandWi
Fi
Oncor por at
eanduniversi
tycampuses,andincr
easi
nglyi
nhomeset ti
ngs,alocalarea
network( LAN)isusedtoconnectanendsy st
em totheedgerout
er.Al
thoughthereare
many t ypes ofLAN t echnol
ogies,Et
hernetis by f
art he mostpreval
entaccess
technol
ogyi ncorpor
ate,uni
versi
ty,
andhomenetworks
Et
her
netI
nter
netaccess
TheEt hernetswi
tch,oranet workofsuchinter
connectedswit
ches,istheni
ntur
n
connectedintot
helargerI
nter
net.Wi
thEther
netaccess,
usersty
pical
lyhav
e100Mbps
accesst otheEthernetswit
ch,whereasser
versmayhav e1Gbpsorev en10Gbps
access.
Wi
rel
essLANaccessbasedonI
EEE802.
11t
echnol
ogy
,knownasWi
Fi.
EthernetandWi Fiaccessnet
workswer eini
ti
all
ydeployedi
nenter
pri
se(cor
porat
e,
universit
y)set
ti
ngs,
theyhav
erecent
lybecomerelat
ivel
ycommoncomponent
sofhome
networ ks.
Wi
de-
AreaWi
rel
essAccess:
3GandLTE
Increasi ngl
y ,devi
cessuchasi Phones,BlackBer rys,andAndr oiddevicesarebei ngused
tosendemai l
,sur ftheWeb,Tweet ,anddownl oadmusi cwhi leont her un.These
devices empl oy the same wi rel
ess infrastructure used f orcel l
ulartelephony t o
send/ receivepacket sthroughabasest ati
ont hati soperatedbyt hecel l
ularnet wor k
prov i
der .
Telecommuni cationscompani eshav emadeenor mousi nvestmentsi nso-call
edt hi
rd-
gener ation( 3G)wi reless,whichprovi
despacket -swit
chedwi de-ar
eawi rel
essI nternet
accessatspeedsi nexcessof1Mbps.
Higher -speedwi de-areaaccesst echnologies—af ourt
h-generat
ion( 4G)ofwi de- area
wireless net works—ar e alr
eady being depl oy ed.LTE (“ Long-Term Ev olution”—a
candi dat eforBadAcr onym oftheYearAwar d)hasi tsrootsin3Gt echnology,andcan
potent i
al l
yachi ev
er atesinexcessof10Mbps.
Phy
sical
Medi
a
Foreacht ransmitter
-recei
verpai
r,thebitissentbypr opagatingelectr
omagnet i
cwav es
oropt icalpulsesacr ossaphy sicalmedi um.Thephy sicalmedi um cant akemany
shapesandf or
msanddoesnothav etobeoft hesamet ypef oreacht r
ansmi t
ter-
receiverpairalongt hepath.Exampl esofphy si
calmedi ai ncludetwist
ed-paircopper
wire,coaxialcable,multi
modef i
ber-opti
ccable,t
errestri
alradiospectrum,andsat el
lit
e
radiospectrum.
Phy sicalmediafal
lint
otwocat egori
es:gui
dedmedi aandunguidedmedi a.Withguided
medi a,thewavesareguidedalongasol i
dmedium, suchasafiber
-opti
ccabl e,
at wi
sted
-pai
rcopperwi re,oracoaxialcable.Wit
hunguidedmedi a,t
hewav espr opagateinthe
atmospher eandinouterspace,suchasinawirelessLANoradi git
alsatell
it
echannel.
Twi
sted-
Pai
rCopperWi
re
eachend-
enddat
ast
ream di
vi
dedi
ntopacket
s
userA,
Bpacket
sshar
enet
wor
kresour
ces
eachpacketusesf
ull
li
nkbandwi
dth
r
esour
cesusedasneededr
esour
cecont
ent
ion:
aggr
egat
eresour
cedemandcanexceedamountav
ail
abl
e
congest
ion:
packet
squeue,
wai
tforl
i
nkuse
stor
eandf or
ward:packetsmoveonehopatat
ime"noder
ecei
ves
complet
epacketbef
orefor
war
ding
For
war
dingTabl
esandRout
ingPr
otocol
s
Whenapacketar rivesatar outerinthenetwork,therout
erexaminesapor ti
onofthe
packet’
sdestinat
ionaddr essandf or
wardst hepackett oanadj acentrouter
.More
specif
ical
l
y,eachr outerhasaf or
wardingtablethatmapsdest i
nationaddresses(
or
port
ionsofthedestinati
onaddresses)tothatr
outer’sout
boundli
nks.
I
nter
nethasanumberofspecialr
outingpr
otocol
sthatareusedtoautomati
cal
lysett
he
f
orwardi
ngt abl
es.Arouti
ngprotocolmay,forexample,deter
minetheshort
estpath
f
rom eachroutert
oeachdesti
nat
ionanduset heshort
estpathresul
tstoconf
iguret
he
f
orwardi
ngtablesi
ntherout
ers
2.Ci
rcui
tSwi
tchi
ng
Therear etwof undamentalapproachestomov i
ngdat athroughanetworkofl i
nksand
switches:circui
tswi t
chi
ng and packetswi t
ching.In circui
t-
swi
tched networks,t
he
resources needed along a pat h( buff
ers,li
nk transmi ssi
on r
ate)to pr ov
ide for
communi cat
ion between the end sy st
ems ar er eser
v ed fort
he dur at
ion ofthe
end-
endr
esour
cesr
eser
vedf
or“
cal
l
”
l
i
nkbandwi
dth,
swi
tchcapaci
ty
dedi
cat
edr
esour
ces:
noshar
ing
ci
rcui
t-
li
ke(
guar
ant
eed)per
for
mance
cal
lset
upr
equi
red
net
wor
kresour
ces(
e.g.
,bandwi
dth)di
vi
dedi
nto“
pieces”
pi
ecesal
l
ocat
edt
ocal
l
s
r
esour
cepi
ecei
dlei
fnotusedbyowni
ngcal
l(noshar
ing)
di
vi
dingl
i
nkbandwi
dthi
nto“
pieces”"f
requencydi
vi
sion"t
imedi
vi
sion
Tr
adi
ti
onal
tel
ephonenet
wor
ksar
eexampl
esofci
rcui
t-
swi
tchednet
wor
ks.
Mul
ti
plexi
ngi
nCi
rcui
t-
Swi
tchedNet
wor
ks
Acir
cui
tinalinkisimplementedwi t
heit
herfrequency-di
vi
sionmult
ipl
exi
ng(FDM)or
ti
me-
div
isi
onmulti
plexi
ng(TDM) .WithFDM,t
hef requencyspectr
um ofali
nki
sdivi
ded
upamongtheconnecti
onsestabli
shedacr
ossthel i
nk.
Asi
mpl
eci
rcui
t-
swi
tchednet
wor
kconsi
sti
ngoff
ourswi
tchesandf
ourl
i
nks
Speci
fi
call
y,theli
nkdedicat
esaf requencybandt oeachconnect
ionfort
hedur
ati
onof
theconnecti
on.Intel
ephonenet works,thi
sfrequencybandtypi
cal
lyhasawidthof4
kHz(4,
000her t
zor4,000cyclespersecond).
WithFDM,eachci
rcui
tcont
inuousl
ygetsafr
acti
onofthebandwi
dth.Wi
thTDM,each
ci
rcui
tget
salloft
hebandwi
dthperiodi
cal
l
yduri
ngbr
iefi
nter
val
softi
me(thati
s,dur
ing
sl
ots)
St
ati
sti
cal
Mul
ti
plexi
ng
TDM:
eachhostget
ssamesl
oti
nrev
olv
ingTDM f
rame.
Connect
ion,
connect
ion-
lessser
vice
dat
agr
am net
wor
kpr
ovi
desnet
wor
k-l
ayerconnect
ionl
essser
vice
v
irt
ual
-ci
rcui
tnet
wor
kpr
ovi
desnet
wor
k-l
ayerconnect
ionser
vice
TCP/UDP connect
on-
ori
ent
ed/connect
ionl
esst
ranspor
t-
lay
erser
vices,
but
:
ser
vice:host
-t
o-host
nochoi
ce:net
wor
kpr
ovi
desoneort
heot
her
i
mpl
ement
ati
on:i
nnet
wor
kcor
e
Vi
rt
ual
cir
cui
ts
sour
ce-
to-
destpat
hbehav
esmuchl
i
ket
elephoneci
rcui
t”
per
for
mance-
wise
net
wor
kact
ionsal
ongsour
ce-
to-
destpat
h
cal
lset
up,
tear
downf
oreachcal
lbef
oredat
acanf
low
eachpacketcar
ri
esVCi
dent
if
ier(
notdest
inat
ionhostaddr
ess)
ev
eryr
out
eronsour
ce-
destpat
hmai
ntai
ns“
stat
e”f
oreachpassi
ngconnect
ion
l
i
nk,routerr
esources(bandwidt
h,buf
f s)maybeal
er l
ocat
edt
oVC (
dedi
cat
ed
r
esources=predi
ctabl
eservi
ce)
aVCconsi
stsof
:
1.pat
hfr
om sour
cet
odest
inat
ion
Vi
rt
ual
cir
cui
ts:
signal
i
ngpr
otocol
s
usedt
oset
up,
mai
ntai
ntear
downVC
usedi
nATM,
frame-
rel
ay,
X.25
notusedi
ntoday
’sI
nter
net
Dat
agr
am net
wor
ks
nocal
lset
upatnet
wor
klay
er
r
out
ers:
nost
ateaboutend-
to-
endconnect
ions
Dat
agr
am f
orwar
dingt
abl
e
Howdol
ossanddel
ayoccur
?
packet
squeuei
nrout
erbuf
fer
s
packetar
ri
val
rat
etol
i
nkexceedsout
putl
i
nkcapaci
ty
packet
squeue,
wai
tfort
urn
i
nst
ant
aneous:
rat
eatgi
venpoi
nti
nti
me
av
erage:
rat
eov
erl
ongerper
iodoft
ime
Ty
pesofDel
ay
1. Pr
ocessi
ngDel
ay:
Thetimer equi
redtoexaminethepacket
’sheaderanddeter
minewher etodir
ect
thepacketi spar toftheprocessingdelay
.Thepr ocessi
ngdel aycanal so
i
ncludeotherfactors,
suchasthetimeneededtocheckforbit-
lev
elerr
orsinthe
packetthatoccurredintr
ansmitt
ingthepacket’
sbit
sfrom theupstr
eam node
torout
er.
2.Queui
ngDelay
:Atthequeue,thepacketexper
iencesaqueui
ngdel
ayasi
t
wai
tstobet
ransmit
tedont
otheli
nk.
3.Transmissi
onDel
ay:Assumingthatpacketsaretr
ansmitt
edinaf i
rst
-come-
fi
rst
-ser
vedmanner,asiscommoninpacket-swi
tchednetworks,
ourpacketcan
betransmitt
edonl
yafterallt
hepacket
st hathavearri
vedbeforei
thavebeen
tr
ansmitt
ed.
Forexample,fora10MbpsEther
netli
nk,therat
eisR=10Mbps;fora100Mbps
Ether
netl
i
nk,therat
eisR=100Mbps.Thetr
ansmissi
ondel
ayi
sL/
R.
4.Pr opagati
onDelay:Onceabi
tispushedint
ot hel
ink,i
tneedstopropagat
eto
routerB.Thet i
mer equi
redt
opr
opagatefr
om thebeginni
ngofthel
inktorout
erB
i
st hepr opagat
ion
del
ay
Packetl
oss
queue(
akabuf
fer
)pr
ecedi
ngl
i
nki
nbuf
ferhasf
ini
tecapaci
ty
l
ostpacketmayber
etr
ansmi
tt
edbypr
evi
ousnode,
bysour
ceendsy
stem,
ornot
atal
l
Eachpacketswi t
chhasmul tiplel i
nksat tachedt oit
.Foreachattachedl i
nk,t hepacket
switchhasanout putbuff er(alsocal ledanout putqueue),whichstorespacket sthatthe
routerisaboutt osendi nt
ot hatl i
nk.Theout putbuffersplayakeyr ol ei npacket
switchi
ng.Ifanar ri
vingpacketneedst obet ransmitt
edont oal i
nkbutf indst heli
nk
busywi ththet ransmi ssionofanot herpacket ,thearri
vi
ngpacketmustwai tinthe
outputbuffer.Thus,i naddi ti
ont ot hestor e-and-for
warddelays,packetssuf f
eroutput
bufferqueuingdel ays.Thesedel ay sar evariableanddependont hel ev
elofcongest i
on
i
nt henetwor k.Sincet heamountofbuf ferspacei sfi
nit
e,anar r
ivi
ngpacketmayf i
nd
thatthebuf feriscompl etel
yf ul
lwi t
hot herpacket swaiti
ngfort r
ansmi ssion.I nthi
s
case,packetl osswi l
loccur —ei thert hear ri
v i
ngpacketoroneoft heal ready-queued
packetswillbedropped.
Whyl
ayer
ing
I
nterneti
sanext r
emelycompli
catedsystem,numer
ousappli
cati
onsandprotocol
s,
v
ariousty
pesofendsyst
ems,packetswi
tches,
andvar
ioust
ypesofl
ink-
lev
elmedi
a.
Deal
i
ngwi
thcompl
exsy
stems:
expl
i
citstr
uctureal
l
owsident
if
icat
ion,r
elat
ionshi
pofcompl
exsy
stem’
spi
eces"
l
ayeredref
erencemodel
fordi
scussion
modul
ari
zati
on eases mai ntenance, updat
ing of system " change of
i
mplementati
onoflayer
’sserv
icetranspar
entt
or estofsy
stem "e.
g.,changei
n
gat
eproceduredoesn’
taff
ectrestofsyst
em
l
ayer
ingconsi
der
edhar
mful
?
Pr
otocol
Lay
eri
ng
Topr ov
idestr
ucturetot hedesignofnetworkprotocol
s,net
wor kdesi
gnersorgani
ze
pr
otocols—andthenet workhardwareandsof t
warethatimpl
ementt heprot
ocols— i
n
l
ayers.Eachprotocolbel
ongst ooneoft helayer
s.Serv
icesthatalayeroff
erstothe
l
ayeraboveso-call
edservicemodelofalayer
.
Eachlayerprovi
desi t
sserviceby( 1)performingcert
ainacti
onswithi
nt hatlayerandby
(2)usi
ngt heservi
cesoft hel ayerdirect
lybelowit.Forexample,t
heser v i
cesprovided
bylayernmayi ncluder el
i
abledel iv
er yofmessagesf rom oneedgeoft henetworkt o
theother.Thismightbei mpl ementedbyusi nganunr el
i
ableedge-to-edgemessage
deli
veryserv
iceofl ayern-1,andaddi nglayernfuncti
onali
tytodetectandr et
ransmit
l
ostmessages.
Appl
i
cat
ionLay
er
I
nchoosingtheappl i
cati
onarchitectur
e,anappli
cat
iondeveloperwi
llli
kel
ydrawonone
ofthetwopr edominantarchi
tecturalpar
adigmsusedinmoder nnetworkappl
icat
ions:
thecl
ient
-ser
v erar
chit
ectur
eort hepeer-t
o-peer(
P2P)archi
tectur
e.
al
way
s-onhost
per
manentI
Paddr
ess
of
teni
ndat
acent
ers,
forscal
i
ng
cl
i
ent
s:
cont
act
,communi
cat
ewi
thser
ver
maybei
nter
mit
tent
lyconnect
ed
mayhav
edy
nami
cIPaddr
esses
donotcommuni
cat
edi
rect
lywi
theachot
her
exampl
es:
HTTP,
IMAP,
FTP
noal
way
s-onser
ver
ar
bit
rar
yendsy
stemsdi
rect
lycommuni
cat
e
peersr
equestser
vicef
rom ot
herpeer
s,pr
ovi
deser
vicei
nret
urnt
oot
her
peer
s
• sel
fscal
abil
i
ty–new peer
sbr
ingnew ser
vicecapaci
ty,aswel
las
newserv
icedemands
peer
sar
eint
ermi
tt
ent
lyconnect
edandchangeI
Paddr
esses
• compl
exmanagement
exampl
e:P2Pf
il
eshar
ing
Pr
ocessescommuni
cat
ing
pr
ocess:
progr
am r
unni
ngwi
thi
nahost
wit
hin same host,t wo processes communi
cat
e usi
ng i
nter
-pr
ocess
communicat
ion(
def
inedbyOS)
pr
ocessesi
ndi
ff
erenthost
scommuni
cat
ebyexchangi
ngmessages
cl
i
entpr
ocess:
processt
hati
nit
iat
escommuni
cat
ion
ser
verpr
ocess:
processt
hatwai
tst
obecont
act
ed
Socket
s
pr
ocesssends/
recei
vesmessagest
o/f
rom i
tssocket
,socketanal
ogoust
odoor
•sendi
ngpr
ocessshov
esmessageoutdoor
•sendingprocessrel
i
esont r
ansporti
nfr
ast
ruct
ureonot
hersi
deofdoort
odel
i
ver
messagetosocketatr
ecei
vi
ngprocess
Appl
i
cat
ionpr
ocesses,
socket
s,andunder
lyi
ngt
ranspor
tpr
otocol
Addr
essi
ngpr
ocesses
t
orecei
vemessages,
processmusthav
eident
if
ier
hostdev
icehasuni
que32-
bitI
Paddr
ess
i
dent
if
ieri
ncl
udesbot
hIPaddr
essandpor
tnumber
sassoci
atedwi
thpr
ocessonhost
.
exampl
epor
tnumber
s:•HTTPser
ver
:80•mai
lser
ver
:25
t
osendHTTPmessaget
ogai
a.cs.
umass.
eduwebser
ver
:
•I
Paddr
ess:
128.
119.
245.
12
•por
tnumber
:80
Anappl
i
cat
ion-
lay
erpr
otocol
def
ines:
t
ypesofmessagesexchanged,
•e.
g.,
request
,response
messagesy
ntax:
•whatf
iel
dsi
nmessages&howf
iel
dsar
edel
i
neat
e
messagesemant
ics•meani
ngofi
nfor
mat
ioni
nfi
elds
r
ulesf
orwhenandhowpr
ocessessend&r
espondt
omessagesopenpr
otocol
s:
al
l
owsf
ori
nter
oper
abi
l
ity
e.
g.,
HTTP,
SMTPpr
opr
iet
arypr
otocol
s:§e.
g.,
Sky
pe,
Zoom
WebandHTTP
TheHy perTextTr
ansferProt
ocol(HTTP),theWeb’ sappl
icat
ion-l
ayerprotocol
,isatthe
heartoftheWeb.I ti
sdefinedin[RFC1945]and[ RFC2616].HTTPi simpl ementedin
twopr ogr
ams:acl i
entprogram andaser verprogram.Thecl i
entprogram andserver
program,executi
ngondi f
ferentendsystems,talktoeachot herbyexchangi ngHTTP
messages.
webpageconsi
stsofobj
ect
s,eachofwhi
chcanbest
oredondi
ff
erentWeb
ser
ver
s
Obj
ectcanbeHTMLf
il
e,JPEGi
mage,
Jav
aappl
et,
audi
ofi
l
e,…
webpageconsistsofbaseHTML-f
il
ewhi
chi
ncl
udessev
eralr
efer
encedobj
ect
s,
eachaddr
essablebyaURL,e.
g.,
HTTPov
erv
iew
HTTP:
hyper
textt
ransf
erpr
otocol
Web’
sappl
i
cat
ion-
lay
erpr
otocol
cl
i
ent
/ser
vermodel
:
•cl
i
ent:browsert
hatr
equest
s,r
ecei
ves,(
usi
ngHTTPpr
otocol
)and“
displ
ays”
Webobject
s
•server:Web ser
versends (
usi
ng HTTP pr
otocol
)obj
ect
sinr
esponse t
o
r
equests
HTTPusesTCP:
cl
i
enti
nit
iat
esTCPconnect
ion(
creat
essocket
)toser
ver
,por
t80
ser
veraccept
sTCPconnect
ionf
rom cl
i
ent
TCPconnect
ionopenedt
oaser
ver
Definetheround-t
ripti
me( RTT),whi
chi st
het i
mei tt
akesforasmal lpackettotravel
fr
om clienttoserverandthenbacktot hecl
ient.TheRTTincl
udespacket -
propagati
on
delays,packetqueuing delaysinintermediat
er out
ers and swi
tches,and packet -
processingdel
ays.
Non-
persi
stentconnect
ionshavesomeshortcomi
ngs.Fi
rst
,abr
and-
new connect
ion
mustbeestabl
ishedandmaint
ainedf
oreachr
equest
edobj
ect.
Second,eachobj
ectsuf
fersadeli
verydelayoft
woRTTs—oneRTTt
oest
abl
i
sht
heTCP
connect
ionandoneRTTt orequestandrecei
veanobj
ect
.
Withpersist
entconnect
ions,
theserv
erleavestheTCPconnect
ionopenaftersendi
nga
response.Subsequentr
equestsandresponsesbet
weenthesameclientandservercan
besentov erthesameconnecti
on.
HTTP messagef
ormat
Ther
ear
etwot
ypesofHTTPmessages,
requestmessagesandr
esponsemessages.
HTTPr
equestmessage:
• ASCI
I(human-
readabl
efor
mat
)
Webcaches(
proxyser
ver
)
goal
:sat
isf
ycl
i
entr
equestwi
thouti
nvol
vi
ngor
igi
nser
ver
userset
sbr
owser
:Webaccessesv
iacache
br
owsersendsal
lHTTPr
equest
stocache
• obj
ecti
ncache:
cacher
etur
nsobj
ect
• el
secacher
equest
sobj
ectf
rom or
igi
nser
ver
,thenr
etur
nsobj
ectt
ocl
i
ent
cacheact
sasbot
hcl
i
entandser
ver
ser
verf
oror
igi
nal
request
ingcl
i
ent
cl
i
entt
oor
igi
nser
ver
t
ypi
cal
l
ycachei
sinst
all
edbyI
SP(
uni
ver
sit
y,company
,resi
dent
ial
ISP)
El
ect
roni
cMai
l
Thr
eemaj
orcomponent
s:
useragent
s
mai
lser
ver
s
si
mpl
emai
ltr
ansf
erpr
otocol
:SMTP
UserAgent
“
mai
lreader
”
composi
ng,
edi
ti
ng,
readi
ngmai
lmessages
e.
g.,
Out
look,
Thunder
bir
d,i
Phonemai
lcl
i
ent
out
goi
ng,
incomi
ngmessagesst
oredonser
ver
Al
i
cesendsamessaget
oBob
SMTPusesper
sist
entconnect
ions
SMTPr
equi
resmessage(
header&body
)tobei
n7-
bitASCI
I
SMTPser
verusesCRLF.
CRLFt
odet
ermi
neendofmessage
compar
isonwi
thHTTP:
HTTP:
pul
l
SMTP:
push
bot
hhav
eASCI
Icommand/
responsei
nter
act
ion,
stat
uscodes
HTTP:
eachobj
ectencapsul
atedi
nit
sownr
esponsemessage
SMTP:
mul
ti
pleobj
ect
ssenti
nmul
ti
par
tmessage
Mai
lmessagef
ormat
E-
mai
lpr
otocol
sandt
hei
rcommuni
cat
ingent
it
ies
POP3pr
otocol
POP3i
sanext
remel
ysi
mpl
emai
laccesspr
otocol
.
POP3beginswhent heuseragent(t
heclient
)opensaTCPconnecti
ontothe
mailser
ver(
theser
ver)onport110.Wit
htheTCPconnect
ionest
abl
i
shed,POP3
I
MAP
Wit hPOP3access, onceBobhasdownl oadedhi smessagest ot hel ocal machi ne,
hecancr eat emai lfol der sandmov et hedownl oadedmessagesi ntot hef older s.
Bobcant hendel etemessages,mov emessagesacr ossf older s,andsear chf or
messages( bysendernameorsubj ect ).Butt hispar adi gm—namel y,folder sand
messagesi nt hel ocalmachi ne—posesapr oblem f ort henomadi cuser ,who
woul dpr efert omai ntainaf ol derhi er archyonar emot eser vert hatcanbe
accessedf rom anycomput er.Thi si snotpossi blewit hPOP3—t hePOP3pr otocol
doesnotpr ovideanymeansf orausert ocr eater emot ef older sandassi gn
messagest of older s.To sol v et hisandot herpr obl ems,t heI MAP pr ot ocol,
def i
nedi n[ RFC3501] ,wasi nvent ed.Li kePOP3,I MAPi samai laccesspr ot ocol.
Ithasmanymor ef eat urest hanPOP3,buti tisal sosi gni
ficantlymor ecompl ex.
(Andt hust hecl ientandser v ersi dei mpl ement ati
onsar esi gni fi
cant l
ymor e
compl ex.)AnI MAPser verwi llassoci ateeachmessagewi t
haf older;whena
messagef irstar rivesatt heser v er,iti sassoci atedwi tht her ecipient’sI NBOX
folder.Ther ecipientcant henmov ethemessagei nt
oanew, user -createdf older,
readt hemessage,del etet hemessage,andsoon.TheI MAPpr ot ocolpr ov i
des
commandst oal l
owuser st ocr eat efol der sandmov emessagesf rom onef older
toanot her .I MAPal sopr ovi
descommandst hatal low user st osear chr emot e
foldersf ormessagesmat chingspeci fi
ccr iteri
a.Not et hat,unli
kePOP3, anI MAP
serv ermai ntainsuserst ateinf ormat ionacr ossI MAPsessi ons—f orexampl e,the
namesoft hef older sandwhi chmessagesar eassoci atedwi thwhi chf older s.
Anot heri mpor tantf eat ureofI MAPi st hati thascommandst hatper mi tauser
agentt oobt aincomponent sofmessages.Forexampl e,auseragentcanobt ain
j
ustt hemessageheaderofamessageorj ustonepar tofamul t
ipartMI ME
message.Thi sf eat urei susef ulwhent herei sal ow- bandwi dthconnect ion( for
exampl e,asl ow- speedmodem l ink)bet weent heuseragentandi tsmai lser ver.
Wit hal owbandwi dthconnect ion,t heusermaynotwantt odownl oadal loft he
messagesi ni t
smai lbox, par t
icul arlyav oi dingl ongmessagest hatmi ghtcont ain,
Loaddistr
ibut
ion.DNSisal
sousedt
operfor
mloaddi
str
ibut
ionamongr
epl
i
cat
ed
serv
ers,suchasrepli
cat
edWebserv
ers.
Whynotcent
ral
i
zeDNS?
si
ngl
epoi
ntoff
ail
ure
t
raf
fi
cvol
ume
di
stantcent
ral
i
zeddat
abase
mai
ntenance
ADi
str
ibut
ed,
Hier
archi
cal
Dat
abase
I
nordertodealwit
ht heissueofscal
e,theDNSusesal ar
genumberofser
ver
s,
or
gani
zedi
nahier
archi
calf
ashionanddi
str
ibut
edar
oundt
heworl
d.
Hi
erar
chyofDNSser
ver
s
Cl
i
entwant
sIPaddr
essf
orwww.
amazon.
com;
1stappr
oxi
mat
ion:
cl
i
entquer
iesr
ootser
vert
ofi
nd.
com DNSser
ver
cl
i
entquer
ies.
com DNSser
vert
ogetamazon.
com DNSser
ver
cl
i
entquer
iesamazon.
com DNSser
vert
ogetI
Paddr
essf
orwww.
amazon.
com
Therei
sanotheri
mpor t
antt
ypeofDNSservercal
l
edthelocalDNSserver
.AlocalDNS
serv
erdoesnotst
rict
lybel
ongtothehi
erar
chyofser
ver
sbuti snev
ert
helesscent
ralt
o
theDNSarchit
ect
ure.
whenhostmakesDNSquer
y,i
tissentt
oit
slocal
DNSser
ver
• Local
DNSser
verr
etur
nsr
epl
y,answer
ing:
• fr
om i
tsl
ocalcacheofr
ecentname-
to-
addr
esst
ransl
ati
onpai
rs(
possi
blyoutof
dat
e!)
• f
orwar
dingr
equesti
ntoDNShi
erar
chyf
orr
esol
uti
on
• eachI
SPhasl
ocal
DNSnameser
ver
;tof
indy
our
s:
• MacOS:
%scut
il-
-dns
• Wi
ndows:
>ipconf
ig/
all
l
ocal
DNSser
verdoesn’
tst
ri
ctl
ybel
ongt
ohi
erar
chy
cont
act
edser
verr
epl
i
eswi
thnameofser
vert
ocont
act
“
Idon’
tknowt
hisname,
butaskt
hisser
ver
”
Recur
siv
eQuer
y
Exampl
e:hostatengi
neer
ing.
nyu.
edu
want
sIPaddr
essf
orgai
a.cs.
umass.
edu
DNSRecor
ds
DNS:
dist
ri
but
eddat
abasest
ori
ngr
esour
cer
ecor
ds(
RR)
RRf
ormat
:(name,
val
ue,
type,
ttl
)
t
ype=A
v
aluei
sIPaddr
ess
t
ype=NS
namei
sdomai
n(e.
g.,
foo.
com)
v
aluei
shost
nameofaut
hor
it
ati
venameser
verf
ort
hisdomai
n
t
ype=CNAME
namei
sal
i
asnamef
orsome“
canoni
cal
”
(
ther
eal
)name
www.
i
bm.
com i
sreal
l
yser
ver
east
.backup2.
ibm.
com
v
aluei
scanoni
cal
name
t
ype=MX
v
aluei
snameofSMTPmai
lser
verassoci
atedwi
thname
DNSquer
yandr
epl
ymessages,
bot
hhav
esamef
ormat
:
DNSmessagef
ormat