




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
Chapter5
TheNetworkLayer
Goal:end-to-endtransmission
14:32
,5.1NetworkLayerDesignIsues
■Store-and-ForwardPacketSwitching
■ServicesProvidedtotheTransportLayer
■ImplementationofConnectionlessService
■ImplementationofConnection-Oriented
Service
■ComparisonofVirtual-CircuitandDatagram
Subnets
14:322
5.1.1Store-and-ForwardPacketSwitching
■Theenvironmentofthenetworklayer
protocols.
■Storeandforward
■Route
RouterCarrier'sequipment
\/
ProcessP1Packet
14:323
5.1.2ServicesProvidedtotheTransport
Layer
■Theservicesshouldbeindependentofthe
routertechnology.
■Thetransportlayershouldbeshielded
fromthenumber,type,andtopologyof
therouterspresent.
■Thenetworkaddressesshouldusea
uniformnumberingplan,evenacross
LANsandWANs.
14:324
5.1.3Implementationof
ConnectionlessService
■Routingwithinadiagramsubnet.
A'stable
initiallylaterC'stableE'stable
A—A—AAAC
BBBBBABD
CCCCC—CC
DBDBDDDD
ECEBEEE—
FCFBFEFF
14:325
Dest.Line
5.1.4ImplementationofConnection-
OrientedServiceI
■Routingwithinavirtual-circuitsubnet.
A'stabletableE'stable
H1:1C!1Aj1C:1F!1
H3:1C\:2A;2C:2F:2
InOut
14:32MultipleLogicLink6
5.1.5ComparisonofVirtual-Circuit
■landDatagramSubnets
IssueDatagramsubnetVirtual-circuitsubnet
CircuitsetupNotneededRequired
AddressingEachpacketcontainsEachpacketcontainsa
thefullsourceandshortVCnumber
destinationaddress
StateinformationRoutersdonotholdEachVCrequiresrouter
stateinformationaboutconnectionstablespaceperconnection
RoutingEachpacketisRoutechosenwhenVC
routedindependentlyissetup;allpackets
followit
EffectofrouterfailuresNone,exceptforpacketsAllVCsthatpassed
lostduringthecrashthroughthefailed
routerareterminated
QualityofserviceDifficultEasyifenoughresources
canbeallocatedin
advanceforeachVC
CongestioncontrolDifficultEasyifenoughresources
canbeallocatedin
14:3advanceforeachVC
5.2RoutingAlgorithms(l)
3■TheOptimalityPrinciple
■ShortestPathRouting
■Flooding
■DistanceVectorRouting
■LinkStateRouting
■HierarchicalRouting
■BroadcastRouting
■MulticastRouting
■RoutingforMobileHosts
■RoutinginAdHocNetworks
14:328
5.2RoutingAlgorithms(2)
■Agoodroutingalgorithm:
■Correctness
■Simplicity
■Robustness
■Stability
■Fairness
■Optimality.
■Nonadaptiveoradaptive(staticor
dynamic)algorithms
14:329
U\5.2.1TheOptimalityPrinciple
I■IfrouterJisontheoptimalpathfromrouterItorouterK,thenthe
optimalpathfromJtoKalsofallsalongthesameroute.
■Sinktree:thesetofoptimalroutesfromallsourcestoagiven
destinationformatreerootedatthedestination
■AsinktreeforrouterB.
■Thegoalofallroutingalgorithmsistodiscoverthesinktrees
14:32
522ShortestPathRouting(l)
■Computingthe
shortestpath
fromAtoD.
■Permanent
node
■Tentatively
labelednode
■Workingnode.
■http:〃carbon./~hgreenbe/sessions/dijkstra/DijkstraApplet.html
14:3211
523Flooding
■Everyincomingpacketissentouton
everyoutgoinglineexcepttheoneit
arrivedon.
■Throwoutduplicatepackets
■Hopcounter
■Tokeeptrackofthefloodedpackets
■Selectiveflooding
■Robust
14:3212
524DistanceVectorRouting(l)
Newestimated
Router
ABD
FG
EH
JKL
(a)
■Distancevectorroutingalgorithms
■Eachroutermaintainatablegiving
thebestknowndistancetoeach810126table
______)
destinationandthelinetogetthere.VforJ
Vectorsreceivedfrom
■ThesetablesareupdatedbyJ'sfourneighbors
exchanginginformationwiththe
(b)
14:32neighbors.13
524DistanceVectorRouting(2)
■Thecount-to-infinityproblem
■Goodnews
■Badnews
ABcDEABCDE
?————?————?————?-—??———?————?————?———?
■■??Initially1234Initially
1■??After1exchange3234After1exchange
12??After2exchanges3434After2exchanges
123?After3exchanges5454After3exchanges
1234After4exchanges5656After4exchanges
7676After5exchanges
(a)7878After6exchanges
■
????
(b)
14:3214
,5.2.5LinkStateRouting(l)
■Eachroutermustdothefollowing:
■Discoveritsneighbors,learntheirnetworkaddress.
■sendingaHELLOpacketoneachpoint-to-pointline
■Measurethedelayorcosttoeachofitsneighbors.
■Constructapackettellingallithasjustlearned.
■Sendthispackettoallotherrouters.
■Computetheshortestpathtoeveryotherrouter.
14:3215
525LinkStateRouting(2)
■MeasuringLineCost
■SendaECHOpacketthatrequirestheothersideto
sendbackimmediately
■Delaytime:bandwidthorbandwidth+load?
■Oscillations,CForEI
14:3216
?5.2.5LinkStateRouting(3)
F■BuildingLinkStatePacketsperiodicallyor
whensomesignificanteventoccurs
■identityofthesender
■asequencenumber
■age
■alistofneighbors
(a)(b)7
525LinkStateRouting(4)
■Distributing(Flooding)theLinkStatePackets
■Eachpacketcontainsa32bitsequencenumber.
■Routerskeeptrackofallthe(sourcerouter,sequence)
pairsandcheckeveryarrivedstatepacket.
■Ifitisnew,flooding.
■Ifitisaduplicate,discarded.
■Ifapacketwithasequencenumberlowerthanthehighest
oneseensofareverarrives,rejected.
■Age
■Routerdecrementstheageoncepersecond.The
informationwhoseageiszerowilbediscarded.
■decrementedbyeachrouterduringthefloodingprocess
14:3218
525LinkStateRouting(5)
■ComputingtheNewRoutes
■Dijkstra'salgorithm.
■Problem:
■Thememoryrequiredtostoretheinputdata
andallrouteinformationforeveryrouter
■Someerroronarouterwillinfluenceall
network
14:3219
M|5,2,6HierarchicaIRouting
Fulltablefor1AHierarchicaltablefor1A
Dest.LineHopsDest.LineHops
Region1Region21A————
/k市'、、/'2A2Er\1B1B11B1
1C1C11C1
1
IAV9Hi------------m\9!'
(2?Q?Q2A1B21B2
\1G,\2C2DZ
,、、___,2B1B31C2
2C1B31C3
2D1B41C4
3A1C3
3B1C2■Asintelephonenetwork,
4A1C3
4B1C4Region
Region3Region4Region5
4C1C4
5A1C4■Routerknowingallthedetails
5B1C5withinitsownregion,but
5C1B5
5D1C6knowingnothingaboutother
5E1C5崎
(a)(b)regio
■Increasedpathlength
■Howmanylevelsshouldthe
14:32hierarchyhave?20
M5.2.7BroadcastRouting(1)
^1■SpecialApplication
■Sendingapackettoalldestinationssimultaneously
■Broadcastingmethod
■Simplysendadistinctpackettoeachdestination
■Flooding
■Multidestinationrouting
■Eachpacketcontainsalistofdestinations,therouterchecksittodetermine
thesetofoutputlinesthatwillbeneeded.
■Foreachoutputlinetheroutergeneratesanewcopyofthepacket
includingonlythosedestinationsthataretousetheline.
■Spanningtree,routercopyanincomingbroadcastpacketontoall
thespanningtreelines
■Reversepathforwarding,routerchecksifthepacketarrivedon
thelinethatisnormallyusedforsendingpacketstothesourceof
thebroadcast
14:3221
527BroadcastRouting(2)
BC
AD
F
E
G
J
H
K
M
(a)(b)(c)
■Reversepathforwarding.
■(a)Asubnet.
■(b)Fssinktree.
i4:32■(c)Thetreebuiltbyreversepathforwarding.22
528MulticastRouting(l)
'I.Group
■MulticastorBroadcast
■Groupmanagement.Createanddestroygroups,joinandleavegroups
■Senderandreceiver.
■Routersknowwhichoftheirhostsbelongtowhichgroups.
■BasedonSpanningtree
■Eachroutercomputesaspanningtreecoveringallotherrouters
■Therouterexaminesitsspanningtreeandprunesit,removingalllinesthatdo
notleadtohoststhataremembersofthegroup.
■Multicastpacketsareforwardedonlyalongtheappropriatespanningtree.
■EachroutershouldstoreatotalofM*Ntrees(NgroupsandMmembers)
■Sharingtree
■therootnearthemiddleofthegroup.
■Sourcessendsmessagetotheroot,whichthendoesthemulticastalongthe
spanningtree.
■Onegrouponetree
14:3223
MulticastRouting(2)
(a)(b)
Anetwork.Aspanningtreefortheleftmostrouter.
24
14:32Amulticasttreeforgroup1.Amulticasttreeforgroup2.
■529RoutingforMobileHosts(l)
■Basicgoals:=
■Allhigher-layerconnectionsshouldsurvivetheaddresschange
■Mobilehostshouldbereachableaslongasitisconnectedtothe
Internetsomewhere.
■Amodel
■aWANtowhichLANs,MANs,andwirelesscellsareattached.
■HomeLocation/ForeignAgent
ForeignLAN
14:32WAN25
MAN
529RoutingforMobileHosts(2)
MobileNode(MN):anodewhichcanchangeitslocationwhile
maintaininganyongoingcommunicationsandusingonlyits
home(permanent)IPaddress.
HomeAgent(HA):arouterwithatleastoneinterfaceonthe
MN'shomelinkwhich:
■MNkeepsinformedofitscurrentlocation,i.e.,itscare-of-address(COA)
■InterceptspacketsdestinedtotheMN'shomeaddressandtunnelsthemto
theMN'scurrentlocation(orCOA).
ForeignAgent(FA):arouteronaforeignlinkwhich:
■AssiststheMNininformingitsHAofitscurrentCOA
■Sometimes,providesaCOAandde-tunnelspacketsfortheMN
■ActsasthedefaultrouterforpacketsgeneratedbytheMNwhileconnected
tothisforeignlink
Care-ofaddress(COA)
■UsedbyaMNwhileitisattachedtoaforeignlink.TheassociationofaCOA
withahomeaddressforamobilenodeisknownasabinding.
14:3226
,5.2.9RoutingforMobileHosts(3)
'■Registrationprotocol
■Periodically,eachforeignagentbroadcastsapacket
announcingitsexistenceandCOA.
■Themobilehostregisterswiththeforeignagent,
givingitshomeaddress,currentdatalinklayer
address,andsomesecurityinformation.
■Theforeignagentcontactsthemobilehostshome
agent:OneofyourhostsisoverhereanditsCOA.
■Thehomeagentexaminesthesecurityinformation
andacknowledgement
■Foreignagentgetstheacknowledgementandinforms
themobilehostthatitisnowregistered.
14:3227
529RoutingforMobileHosts(4)
■Packetroutingformobileusers.
Correspondent.
node
1.Packetissenttothe
mobilehostshomeaddressHome
Agent
4.Subsequentpacketsare
tunneledtotheforeignagent
3.Senderisgivenforeign
agentsaddress
ForeignAgent2.Packetistunneedtothe
foreignagent
MN
14:3228
,5.3CongestionControlAlgorithms
■GeneralPrinciplesofCongestionControl
■CongestionPreventionPolicies
■CongestionControlinVirtual-CircuitSubnets
■CongestionControlinDatagramSubnets
■LoadShedding
■JitterControl
14:3229
CongestionDefinition
■Whentoomuchtrafficisoffered,congestionsetsin
andperformancedegradessharply.
■toachievehighutilization,lowqueueingdelayand
loss,fairness,andstability.
Perfect
Maximumcarrying
p
①capacityofsubnet
Q一
>Desirable
opj
s
o/Congested
專
d
14:3230
Packetssent
■Resource(linkbandwidthandbufferspace)vs.load
■Sourcescancreateademandfornetworkresourceshigher
thanthenetworkcanhandleatacertainlink.
■Thebufferintheroutersoffersofprotectionagainstan
increaseintrafficarrivalrate.
■Ifthebufferspaceisexhausted,therouterhastostart
droppingpackets.
■Toomuchbufferspacenbemoreharmfulthantoolittle,
becausethepacketswillhavetobedroppedonlyafterthey
haveconsumedvaluablenetworkresources.
■localvs.global
■Flowcontrolvs.Congestioncontrol
■Flowcontrolisonlyonemethodofthecongestioncontrol.
14:3231
5.3.1GeneralPrinciplesof
M|CongestionControI
■1Openloopandclosedloop
■Openlooptosolvetheproblembygooddesign,make
decisionswithoutregardtothecurrentstateofthenetwork.
■Senderdescribesitsratetothenetworkwithparameterslike
burstsizeandinterburstinterval.
■Closedlooparebasedonafeedbackloop.
■Monitorthesystem,detectwhenandwherecongestionoccurs.
Implicit:theend-hostsmonitortheirown
transmissions(delay,loss)
Explicit:congestioninfo,canbecarriedin
protocolheadersexplicitly
■Passinformationtowhereactioncanbetaken.
■Adjustsystemoperation.
14:3232
5.3.1GeneralPrinciplesof
CongestionControl(2)
■Increasetheresources
■Decreasetheload.
■Selectingwhichpacketstodrop
■Determiningwhenthisisappropriate.
■Limitingnewdataflow
14:3233
5.3,2CongestionPreventionPolicies
■Policiesthataffectcongestion.
LayerPolicies
Transport?Retransmissionpolicy
?Out-of-ordercachingpolicy
?Acknowledgementpolicy
?Flowcontrolpolicy
?Timeoutdetermination
Network?Virtualcircuitsversusdatagraminsidethesubnet
?Packetqueueingandservicepolicy
?Packetdiscardpolicy
?Routingalgorithm
?Packetlifetimemanagement
Datalink?Retransmissionpolicy
?Out-of-ordercachingpolicy
?Acknowledgementpolicy
?Flowcontrolpolicy
14:3234
5.3.3CongestionControlinVirtual-
■circuitSubnets
F■Admissioncontrol
■SetupnewVCbutavoidingproblemareas.
■Negotiateanagreementbetweenthehostand
subnet
14(a)(b)
5.3.4CongestionControlin
?DatagramSubnets(1)
■Monitortheutilizationofitsoutputlines
■U,therecentutilizationofthatline.
■f,instantaneouslineutilization,(either0or1),
■a,constantdetermineshowfasttherouterforgetsrecenthistory
■Unew=alloid+(l-a)f
■Warningstate,whenIImovesabovethethreshold
■WarningBit
■Setinthepacketsheadwhenintowarningstate.
■Destinationcopiedthebitintothenextacknowledgement.
■Thesourcethencutbackontraffic.
■Aslongasthewarningbitscontinuedtoflowin,thesource
continuedtodecreaseitstransmissionrate.
14:3236
5.3.4Congestion
ControlinDatagram
Subnets(2)
■Hop-by-HopChoke
Packets
■Achokepacketthat
affectsonlythesource.
■AchokepacketthatReduced
flow
affectseachhopit
passesthrough.
14:32
(a)(b)
Ml5,3,5LoadShedding(2-1)
■Justthrowthemaway
■Taildrop,hasservedtheInternetwellforyears,but
■itsustainsfullqueuesandcancauselockout
■Drop-from-front,improvestheperformanceby
allowingtheurgentsignal(congestion...)toreach
sourcefaster
■Random-drop,istonotifythoseuserswhosetraffic
contributesmoretothecongestion.
14:3238
5.3.5LoadShedding(2-2)
■Dependontheapplications,WineorMilk
■Priority,somepacketsaremoreimportantthan
others
■Allowhoststoexceedthelimits,butallexcess
trafficbemarkedaslowpriority
■RED(RandomEarlyDetection)
■Discardingpacketsbeforeallthebufferspaceis
exhausted
■Threshold
■Tothrowpacketsrandomly
14:3239
,5.3.6JitterControl(2-1)
Packetdepartssource12345678
Packetarrivesatbuffer12345678
■Jitter:variationinthepacketarrivaltimes
■Highjitter.
■Lowjitter.sS
oE
S
-BsB
dd
oo
uU
。O
二
0。S
Highjitter
LLLLLowjitter
MinimumDelay-----?Delay
delay
(dueto
14:32speedof
light)(a)(b)
■5.3,6JitterControl(2-2)
、■Interactivereal-timestreams
■Teleconferencing,Remotecontrols,Games
Routerholdsorsendsquicklythepackets.Twoproblems
Overflow:bufferisfull,mustreleasepacketsbeforetheirduetime
Underflow:bufferisempty,packettobereleasedhasn'tarrived
yet
Switch
Incoming
packets
41
14:32Nopacketlossorreordering
Ml5,4QualityofService
■Requirements
■TechniquesforAchievingGoodQualityof
Service
■IntegratedServices
■DifferentiatedServices
-LabelSwitchingandMPLS
■TrafficEngineering
14:3242
■[541Requirements
ApplicationReliabilityDelayJitterBandwidth
E-mailHighLowLowLow
FiletransferHighLowLowMedium
WebaccessHighMediumLowMedium
RemoteloginHighMediumMediumLow
AudioondemandLowLowHighMedium
VideoondemandLowLowHighHigh
TelephonyLowHighHighLow
VideoconferencingLowHighHighHigh
14:3243
5.4.2TechniquesforAchieving
GoodQualityofService
■Avarietyoftechniquesdeveloped
■Overprovision
■Buffering
■Trafficshaping
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 文化創(chuàng)意產(chǎn)業(yè)項(xiàng)目研發(fā)投資合同
- 農(nóng)產(chǎn)品收購書合同
- 醫(yī)院裝修法律協(xié)議合同材料
- 外包項(xiàng)目勞動(dòng)合同
- 全款二手房屋買賣合同書
- 焊接鋼管買賣合同
- 公司財(cái)務(wù)保密協(xié)議
- 三農(nóng)產(chǎn)品電子商務(wù)推廣應(yīng)用方案
- 電子支付系統(tǒng)服務(wù)協(xié)議
- 物流配送安全免責(zé)合同書
- 某銀行安全保衛(wèi)工作知識(shí)考試參考題庫(500題)
- 2023年全國普通高等學(xué)校體育單招真題政治試卷(原卷+解析)
- 片劑工藝流程圖
- 國家標(biāo)準(zhǔn)圖集16G101平法講解課件
- 北師大版六年級(jí)數(shù)學(xué)下冊(cè)《數(shù)學(xué)好玩(全套)》公開課件
- 電機(jī)工程學(xué)報(bào)論文格式模版
- 企業(yè)服務(wù)工作實(shí)施方案
- 信息技術(shù)ppt課件完整版
- 2022義務(wù)教育小學(xué)科學(xué)課程標(biāo)準(zhǔn)(2022版)解讀及測(cè)試題3套(含答案)
- 新湘教(湖南美術(shù))版小學(xué)美術(shù)五年級(jí)下冊(cè)全冊(cè)PPT課件(精心整理匯編)
- 大智慧指標(biāo)公式函數(shù)大全(完整可打印版)
評(píng)論
0/150
提交評(píng)論