版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
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ì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 貴州城市職業(yè)學(xué)院《操作系統(tǒng)概論》2023-2024學(xué)年第一學(xué)期期末試卷
- 2025年江蘇省安全員C證考試(專職安全員)題庫附答案
- 2025山東省建筑安全員A證考試題庫
- 飼草種植加工基地建設(shè)項(xiàng)目可行性研究報(bào)告-畜牧業(yè)需求持續(xù)擴(kuò)大
- 貴陽人文科技學(xué)院《過程設(shè)備機(jī)械基礎(chǔ)》2023-2024學(xué)年第一學(xué)期期末試卷
- 2025年江蘇省安全員B證考試題庫及答案
- 廣州現(xiàn)代信息工程職業(yè)技術(shù)學(xué)院《用戶調(diào)研》2023-2024學(xué)年第一學(xué)期期末試卷
- 廣州鐵路職業(yè)技術(shù)學(xué)院《園藝作物育種學(xué)總論》2023-2024學(xué)年第一學(xué)期期末試卷
- 2025年-遼寧省安全員-C證考試(專職安全員)題庫附答案
- 2025遼寧建筑安全員-B證考試題庫及答案
- 健康管理師培訓(xùn)課
- 農(nóng)作物植保員培訓(xùn)課件
- 2024韓束品牌拆解-蟬媽媽
- 建筑企業(yè)合同管理培訓(xùn)課件
- 非急救轉(zhuǎn)運(yùn)公司計(jì)劃書
- 2023年中國軟件行業(yè)基準(zhǔn)數(shù)據(jù)SSM-BK-202310
- 天津市部分區(qū)2023-2024學(xué)年高一上學(xué)期期末練習(xí)生物試題【含答案解析】
- 稀土鋁合金電纜項(xiàng)目招商引資方案
- 人教版六年級(jí)數(shù)學(xué)下冊(cè)全冊(cè)分層作業(yè)設(shè)計(jì)含答案
- 面點(diǎn)專業(yè)職業(yè)生涯規(guī)劃與管理
- 紀(jì)梵希服裝營銷方案
評(píng)論
0/150
提交評(píng)論