




免费预览已结束,剩余82页可下载查看
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
第二章TCP拥塞控制,江勇jiangy,Outline,WindowFlowControlAnalysisofTCPCongestionControlTahoe,Reno,NewReno,Sack,VegasBeyondTCPCongestionControl,Outline,WindowFlowControlAnalysisofTCPCongestionControlTahoe,Reno,NewReno,Sack,VegasBeyondTCPCongestionControl,Problem,FlowcontrolmakesurethatthereceivercanreceiveasfastasyousendCongestioncontrolmakesurethatthenetworkdeliversthepacketstothereceiver,Windowflowcontrol,LostpacketdetectedbyACKApproximatelyWpacketstransmittedperRTTHigherwindowhigherthroughputSelf-clocking,time,time,Source,Destination,EarlyTCP,Pre-1988Go-back-NARQDetectslossfromtimeoutRetransmitsfromlostpacketonwardFlowcontrol:self-clocking,Sourcerate,LimitthenumberofpacketsinthenetworktowindowWSourcerate=bpsIfWtoosmallthenratecapacityIfWtoobigthenratecapacity=congestion,WhydoYouCareAboutCongestionControl?,OtherwiseyougettocongestioncollapseHowmightthishappen?Assumenetworkiscongested(arouterdropspackets)YoulearnthereceiverdidntgetthepacketeitherbyACK,NACK,orTimeoutWhatdoyoudo?retransmitpacketStillreceiverdidntgetthepacketRetransmitagain.andsoonAndnowassumethateveryoneisdoingthesame!,WhydoYouCareAboutCongestionControl?,NetworkwillbecomemoreandmorecongestedAndthiswithduplicatepacketsratherthannewpackets!October1986,InternethaditsfirstcongestioncollapseLinkLBLtoUCBerkeley400yards,3hops,32Kbpsthroughputdroppedto40bpsfactorof1000drop!1988,VanJacobsonproposedTCPflowcontrol,Solutions?,Increasebuffersize.Whynot?SlowdownIfyouknowthatyourpacketsarenotdeliveredbecausenetworkcongestion,slowdownQuestions:Howdoyoudetectnetworkcongestion?Byhowmuchdoyouslowdown?,Outline,WindowFlowControlAnalysisofTCPCongestionControlTahoe,Reno,NewReno,Sack,VegasBeyondTCPCongestionControl,WhatsReallyHappening?,KneepointafterwhichThroughputincreasesveryslowDelayincreasesfastCliffpointafterwhichThroughputstartstodecreaseveryfasttozero(congestioncollapse)DelayapproachesinfinityNote(inanM/M/1queue)Delay=1/(1utilization),Load,Load,Throughput,Delay,knee,cliff,congestioncollapse,packetloss,CongestionControlvs.CongestionAvoidance,CongestioncontrolgoalStayleftofcliffCongestionavoidancegoalStayleftofknee,Load,Throughput,knee,cliff,congestioncollapse,Goals,OperatenearthekneepointRemaininequilibriumHowtomaintainequilibrium?Dontputapacketintonetworkuntilanotherpacketleaves.Howdoyoudoit?UseACK:sendanewpacketonlyafteryoureceiveanACK.Why?Maintainnumberofpacketsinnetwork“constant”,HowDoYouDoIt?,Detectwhennetworkapproaches/reacheskneepointStaythereQuestionsHowdoyougetthere?Whatifyouovershoot(i.e.,gooverkneepoint)?Possiblesolution:IncreasewindowsizeuntilyounoticecongestionDecreasewindowsizeifnetworkcongested,DetectingCongestion,ExplicitnetworksignalSendpacketbacktosource(e.g.ICMPSourceQuench)ControltrafficcongestioncollapseSetbitinheader(e.g.DECDNA/OSILayer4CJ89,ECN)CanbesubvertedbyselfishreceiverSEW01Unlessoneveryrouter,stillneedend-to-endsignalCouldberobust,ifdeployed,DetectingCongestion,ImplicitnetworksignalLoss(e.g.TCPTahoe,Reno,NewReno,SACK)+relativelyrobust,-noavoidanceDelay(e.g.TCPVegas)+avoidance,-difficulttomakerobustEasilydeployableRobustenough?Wireless?,EfficientAllocation,TooslowFailtotakeadvantageofavailablebandwidthunderloadToofastOvershootkneeoverload,highdelay,lossEveryonesdoingitMayallunder/overshootlargeoscillationsOptimal:xi=XgoalEfficiency=1-distancefromefficiencyline,User1:x1,User2:x2,Efficiencyline,2userexample,overload,underload,FairAllocation,MaxminfairnessFlowswhichsharethesamebottleneckgetthesameamountofbandwidthAssumesnoknowledgeofprioritiesFairness=1-distancefromfairnessline,User1:x1,User2:x2,2userexample,2gettingtoomuch,1gettingtoomuch,fairnessline,ControlSystemModelCJ89,Simple,yetpowerfulmodel,User1,User2,Usern,x1,x2,xn,y,PossibleChoices,Multiplicativeincrease,additivedecreaseaI=0,bI1,aD0,bI=1,aD1,aD=0,00,bI=1,aD=0,0ssthreshtheneachtimeasegmentisacknowledgedincrementcwndby1/cwnd(cwnd+=1/cwnd).Socwndisincreasedbyoneonlyifallsegmentshavebeenacknowlegded.Congestionavoidanceandslowstartareindependentalgorithmswithdifferentobjectives.Inpracticetheyareimplementedtogether.,SlowStart/CongestionAvoidanceExample,Assumethatssthresh=8,Roundtriptimes,Cwnd(insegments),ssthresh,PuttingEverythingTogether:TCPPseudocode,Initially:cwnd=1;ssthresh=infinite;Newackreceived:if(cwndssthresh)/*SlowStart*/cwnd=cwnd+1;else/*CongestionAvoidance*/cwnd=cwnd+1/cwnd;Timeout:/*Multiplicativedecrease*/ssthresh=cwnd/2;cwnd=1;,while(nextunack+win)transmitnextpacket;wherewin=min(cwnd,flow_win);,unack,next,win,seq#,PacketLoss,PacketlossdetectedbyRetransmissiontimeouts(RTOtimer)DuplicateACKs(atleast3),1,2,3,4,5,6,1,2,Packets,Acknowledgements,7,FastRetransmit,Immediatelyretransmitsafter3dupACKswithoutwaitingfortimeout(fastretransmit)Adjustsssthreshssthreshmax(flightsize/2,2)flightsize:Theamountofdatathathasbeensentbutnotyetacknowledged.EnterSlowStart(cwnd=1)Assumption:lossindicatescongestion(bufferoverflow)Thefastretransmitalgorithmfirstappearedinthe4.3BSDTahoerelease,anditwasfollowedbyslowstart.,Summary:Tahoe,BasicideasGentlyprobenetworkforsparecapacityDrasticallyreducerateoncongestionWindowing:self-clockingOtherfunctions:roundtriptimeestimation,errorrecovery,TCPReno(Jacobson1990),Slowstart,congestionavoidance,fastretransmitAddition:fastrecoveryMostwidelyusedversionofTCPtoday,ss,time,window,ca,ss:slowstartca:congestionavoidance,Fastrecovery,Motivation:preventpipefromemptyingafterfastretransmitIdea:eachdupACKrepresentsapackethavingleftthepipe,thatis,thereisstilldataflowingbetweenthetwoends.EnterFR/FRafter3dupACKsSetssthreshmax(flightsize/2,2)RetransmitlostpacketSetcwndssthresh+3*MSS(windowinflation)EachtimeanotherduplicateACKarrives,cwnd+=MSS.Transmitapacket,ifallowedbythenewvalueofcwnd.Onnon-dupACK(1RTTlater),setcwndssthresh(windowdeflation)EnterCA,Example:FR/FR,FastretransmitRetransmiton3dupACKsFastrecoveryInflatewindowwhilerepairinglosstofillpipeThefastrecoveryalgorithmappearedinthe4.3BSDRenorelease.,1,2,time,S,time,D,3,4,5,6,8,7,Summary:Reno,BasicideasFastrecoveryavoidsslowstartdupACKs:fastretransmit+fastrecoveryTimeout:fastretransmit+slowstartAtsteadystate,cwndoscillatesaroundtheoptimalwindowsize.,Variant:NewReno(Fall&Floyd1996),Motivation:multiplelosseswithinawindowPartialACKacknowledgessomebutnotallpacketsoutstandingatstartofFRPartialACKtakesRenooutofFR,deflateswindowSendermayhavetowaitfortimeoutbeforeproceedingIdea:partialACKindicateslostpacketsStaysinFR/FRandretransmitsimmediatelyRetransmits1lostpacketperRTTuntilalllostpacketsfromthatwindowareretransmittedEliminatestimeout,Example:NewReno,On3dupACKs,receiverhaspackets2,4,6,8,cwnd=8,retransmitspkt1,enterFR/FRNextdupACKincrementcwndto9AfteraRTT,ACKarrivesforpkts1&2,exitFR/FR,cwnd=5,8unackedpktsNomoreACK,sendermustwaitfortimeout,1,2,time,S,time,D,3,4,5,6,8,7,0,9,Variant:SACK(Mathis,Mahdavi,Floyd,Romanow96),Motivation:Reno&NewRenoretransmitatmost1lostpacketperRTTPipecanbeemptiedduringFR/FRwithmultiplelossesIdea:SACKprovidesbetterestimateofpacketsinpipeSACKTCPoptiondescribesreceivedpacketsOn3dupACKs:retransmits,halveswindow,entersFRUpdatespipe=packetsinpipeIncrementwhenlostornewpacketssentDecrementwhendupACKreceivedTransmitsa(lostornew)packetwhenpipekcodedblockscanrecoveroriginalkblocksfromanykofthenblocksn-kblocksofoverheadtradebandwidthforlosscanrecoverfromlossintimeindependentoflinkRTTusefulforlinksthathavelongRTT(e.g.satellite)payn-koverheadwhetherlossornotneedtoadaptn,kdependingoncurrentchannelconditions,Hybrid,IndirectTCPBB95SplitTCPconnectionintotwopartsregularTCPfromfixedhost(FH)tobasestationmodifiedTCPfrombasestationtomobilehost(MH)basestationfails?wiredpathfasterthanwirelesspath?,Hybrid,TCPSnoopBSK95BasestationsnoopsTCPpackets,infersflowcachedatapacketsgoingtowirelesssideIfdupacksfromwirelessside,suppressackandretransmitfromcachesoftstatewhataboutnon-TCPprotocols?whatifwirelessnotlasthop?,Conclusion,Transportprotocolmodificationsnotdeploy
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025年消防应急救援指挥培训考试题库消防安全培训试题及答案
- 图文文案制作核心要点
- 药品不良反应监测与应对策略答辩
- 学校学生荣誉汇报
- 影响深远的汉字课件
- 电信业务智能编排系统创新创业项目商业计划书
- 公寓安全环保措施方案(3篇)
- 电商客服投诉应对与话术技巧
- 内河客船结构讲解
- 某校九年级英语强化训练试卷集
- CJ/T 341-2010混空轻烃燃气
- 存款代为保管协议书
- 辅导班劳务合同协议
- 宋代汉族服装风格演变及其社会功能
- T∕CWEA 29-2024 水利水电工程砌石坝施工规范
- 日本签证个人信息处理同意书
- JTS-T 245-2023 水运工程土工合成材料试验规程
- 新兵培训课件模板
- 2025年初中语文教师招聘面试八年级上册逐字稿之愚公移山
- 自考《课程与教学论》考试复习题(附答案)
- 环境内审员试题及答案
评论
0/150
提交评论