《计算机网络——自顶向下方法与Internet特色》幻灯片Lecture35.ppt
《《计算机网络——自顶向下方法与Internet特色》幻灯片Lecture35.ppt》由会员分享,可在线阅读,更多相关《《计算机网络——自顶向下方法与Internet特色》幻灯片Lecture35.ppt(26页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、Chapter 3 outline3.1 Transport-layer services3.2 Multiplexing and demultiplexing3.3 Connectionless transport:UDP3.4 Principles of reliable data transfer3.5 Connection-oriented transport:TCPsegment structurereliable data transferflow controlconnection management3.6 Principles of congestion control3.7
2、 TCP congestion control3.7 TCP congestion controlnTCP uses end-to-end congestion control rather then network-assisted congestion control,since the IP layer provides no explicit feedback to the end systems regarding network congestion.nThe approach taken by TCP is to have each sender limit the rate a
3、t which it sends traffic into its connection as a function of perceived network congestion.nQuestion:How limit the rate?congestion window(CongWin)How perceive a congestion?Timeout or 3 duplicate ACKsHow change the send rate?TCP Reno congestion control algorithm:TCP Congestion Control:detailssender l
4、imits transmission:LastByteSent-LastByteAcked minCongWin,RcvWindowRoughly,CongWin is dynamic,function of perceived network congestion(新增加的一个变量,叫做拥塞窗口;若RcvWindow足够大,仅受拥塞窗口控制)How does sender perceive congestion?loss event=timeout or 3 duplicate acksTCP sender reduces rate(CongWin)after loss eventthree
5、 mechanisms of TCP congestion control:AIMD slow startconservative after timeout eventsrate=CongWin RTT Bytes/sec1.TCP congestion control:additive increase,multiplicative decrease(AIMD)Approach:increase transmission rate(window size),probing for usable bandwidth,until loss occursadditive increase:inc
6、rease CongWin by 1 MSS every RTT until loss detectedmultiplicative decrease:cut CongWin in half after loss timecongestion window sizeSaw toothbehavior:probingfor bandwidth2.TCP Slow StartWhen connection begins,CongWin=1 MSSExample:MSS=500 bytes&RTT=200 msecinitial rate=20 kbpsavailable bandwidth may
7、 be MSS/RTTdesirable to quickly ramp up to respectable rateWhen connection begins,increase rate exponentially fast until first loss event连接的开始阶段采用指数的增长方式,即一个RTT后若没有丢失,则CongWin增加一倍,直到发生第一次丢失为止,降低一半。叫慢启动。TCP Slow Start(more)When connection begins,increase rate exponentially until first loss event:doub
8、le CongWin every RTTdone by incrementing CongWin for every ACK receivedSummary:initial rate is slow but ramps up exponentially fastHost Aone segmentRTTHost Btimetwo segmentsfour segments3.RefinementQ:When should the exponential increase switch to linear?A:When CongWin gets to 1/2 of its value before
9、 timeout.Implementation:Variable Threshold 来管理复杂的动态过程,开始时设置一个很大的值,65KB.At loss event,Threshold is set to 1/2 of CongWin just before loss event3.Refinement:inferring lossAfter 3 dup ACKs:CongWin is cut in halfwindow then grows linearlyBut after timeout event:CongWin instead set to 1 MSS;window then g
10、rows exponentiallyto a threshold,then grows linearlyq 3 dup ACKs indicates network capable of delivering some segmentsq timeout indicates a“more alarming”congestion scenarioPhilosophy:Summary:TCP Congestion ControlWhen CongWin is below Threshold,sender in slow-start phase,window grows exponentially.
11、When CongWin is above Threshold,sender is in congestion-avoidance phase,window grows linearly.When a triple duplicate ACK occurs,Threshold set to CongWin/2 and CongWin set to Threshold.When timeout occurs,Threshold set to CongWin/2 and CongWin is set to 1 MSS.TCP sender congestion controlStateEvent
12、TCP Sender Action CommentarySlow Start(SS)ACK receipt for previously unacked data CongWin=CongWin+MSS,If(CongWin Threshold)set state to“Congestion Avoidance”Resulting in a doubling of CongWin every RTTCongestionAvoidance(CA)ACK receipt for previously unacked dataCongWin=CongWin+MSS*(MSS/CongWin)Addi
13、tive increase,resulting in increase of CongWin by 1 MSS every RTTSS or CALoss event detected by triple duplicate ACKThreshold=CongWin/2,CongWin=Threshold,Set state to“Congestion Avoidance”Fast recovery,implementing multiplicative decrease.CongWin will not drop below 1 MSS.SS or CATimeoutThreshold=Co
14、ngWin/2,CongWin=1 MSS,Set state to“Slow Start”Enter slow startSS or CADuplicate ACKIncrement duplicate ACK count for segment being ackedCongWin and Threshold not changed4.TCP throughputWhats the average throughout of TCP as a function of window size and RTT?Ignore slow startLet W be the window size
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 计算机网络自顶向下方法与Internet特色 计算机网络 向下 方法 Internet 特色 幻灯片 Lecture35
限制150内