ImageVerifierCode 换一换
格式:PPT , 页数:44 ,大小:645.50KB ,
资源ID:373459      下载积分:2000 积分
快捷下载
登录下载
邮箱/手机:
温馨提示:
如需开发票,请勿充值!快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。
如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝扫码支付 微信扫码支付   
注意:如需开发票,请勿充值!
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【http://www.mydoc123.com/d-373459.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(Transport- TCP.ppt)为本站会员(花仙子)主动上传,麦多课文库仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知麦多课文库(发送邮件至master@mydoc123.com或直接QQ联系客服),我们立即给予删除!

Transport- TCP.ppt

1、Transport: TCP,Manpreet Singh(Slides borrowed from various sources on the web),Announcements (1/2),Everybody needs to join the class mailing list.else I cant communicate class info. Check the class archives to see if someone else has picked the same lecture or TCP application We have a group of mach

2、ines you can use for simulation (snoopy, linus, etc.). You need CSUG accounts to access these machines. Well dig up more machines for those who want to do kernel hacking.,Announcements (2/2),Need a volunteer to give the “post-modern“ E2E lecture 9/9 (in class.). The non-research track students will

3、have to do an initial demo by 11/9. Most of the functionality should be there Allows us to give feed back You time to do performance measurements.,Roadmap,Why is TCP fair ? Loss-based congestion schemes Tahoe Reno NewReno Sack Delay-based congestion control (Vegas) Modeling TCP throughput Equation-b

4、ased congestion control,The Desired Properties of a Congestion Control Scheme,Efficiency (high utilization)Optimality (high throughput, utility)Fairness (resource sharing)Distributedness (no central knowledge for scalability)Convergence and stability (fast convergence after disturbance, low oscillat

5、ion),TCP Fairness,Fairness goal: if N TCP sessions share same bottleneck link, each should get 1/N of link capacity,TCP congestion avoidance: AIMD: additive increase, multiplicative decrease increase window by 1 per RTT decrease window by factor of 2 on loss event,AIMD,TCP connection 1,bottleneck ro

6、uter capacity R,TCP connection 2,Why is TCP fair?,Two competing sessions: Additive increase gives slope of 1, as throughout increases multiplicative decrease decreases throughput proportionally,R,R,equal bandwidth share,Connection 1 throughput,Connection 2 throughput,congestion avoidance: additive i

7、ncrease,loss: decrease window by factor of 2,congestion avoidance: additive increase,loss: decrease window by factor of 2,Loss vs Delay as signal ?,TCP,oscillation,Loss is a binary signal Delay is a multi-bit signal,Simulation-based Comparisons of Tahoe, Reno, and SACK TCP,Kevin Fall Sally Floyd,Int

8、roduction,SACK compared with Tahoe, Reno and New-RenoSimulations designed to highlight performance differences with and without SACK,Comparison,Tahoe: Slow start, congestion avoidance and fast retransmit Reno: Tahoe + fast recovery New-Reno: Reno with modified fast recovery SACK: Reno + selective AC

9、Ks,TCP Slowstart,exponential increase (per RTT) in window size (not so slow!) loss event: timeout (Tahoe TCP) and/or or three duplicate ACKs (Reno TCP),initialize: Congwin = 1 for (each segment ACKed)Congwin+ until (loss event ORCongWin threshold),Host A,one segment,RTT,Host B,two segments,four segm

10、ents,TCP Congestion Avoidance,/* slowstart is over */ /* Congwin threshold */ Until (loss event) every w segments ACKed:Congwin+ threshold = Congwin/2 Congwin = 1 perform slowstart,Congestion avoidance (linear phase),1,1: TCP Reno skips slowstart (fast recovery) after three duplicate ACKs,Fast Retra

11、nsmit,Receiving small number of duplicate ACKs (3) signals packet lossLost packet can be retransmitted before timeout This improves channel utilization,TCP/Reno Congestion Control,Initially:cwnd = 1;ssthresh = infinite (64K); For each newly ACKed segment:if (cwnd ssthresh) /* slow start*/cwnd = cwnd

12、 + 1;else/* congestion avoidance; cwnd increases (approx.) by 1 per RTT */ cwnd += 1/cwnd; Triple-duplicate ACKs:/* multiplicative decrease */cwnd = ssthresh = cwnd/2; Timeout:ssthresh = cwnd/2;cwnd = 1; (if already timed out, double timeout value; this is called exponential backoff),TCP/Reno: Big P

13、icture,Time,cwnd,slow start,congestion avoidance,TD,TD: Triple duplicate acknowledgements TO: Timeout,TO,ssthresh,ssthresh,ssthresh,ssthresh,congestion avoidance,TD,congestion avoidance,slow start,congestion avoidance,TD,Tahoe + Fast Recovery,Fast Recovery,Observation: Each duplicate ACK indicates s

14、ome packet has left pipe,New-Reno extension,New-Reno continues with fast recovery if a partial ACK is received,Old cwnd,New cwnd = (old cwnd)/2,Usable window increased by 1 for each duplicate ACK until ACK for LP is received,Packet 1 lost,Packet 2 lost,LP: Last Packet sent before loss detection,Why

15、use SACK?,Without SACK sender has to use one of following retransmission strategies- Retransmit 1 dropped packet / RTTReno, New-Reno- Retransmit packets that might have been successfully deliveredTahoe,SACK option RFC2018,Ex: 2nd segment dropped (each segment has 500 bytes),SACK Congestion Control (

16、1/2),Conservative extensions to Reno Fast recovery algorithm modified Uses a variable called “pipe” to estimate outstanding data in the flowRules for changing “pipe” variable + 1 when packet transmitted - 1 when dup ACK received,SACK Congestion Control (2/2),SACK sender tracks successfully sent pack

17、ets using “scoreboard” structure Missing packets are retransmittedSimilar to New-Reno in exiting from fast recovery exits after all outstanding data at time of loss is ACked,Simulation Model used,Three flows are setup from S1 to K1, 2nd and 3rd flows are used to change packet drop pattern of 1st flo

18、w,One Packet Loss (1/2),Packet dropped,Packet retransmitted,Performs slow start,One Packet Loss (2/2),Packet dropped,Packet retransmitted,Performs fast recovery,Two Packet Loss (1/2),Packets dropped,Packets retransmitted,Performs slow start,Two Packet Loss (2/2),Packets dropped,Packets retransmitted

19、,Performs fast recovery,Three Packet Losses (1/3),Packets dropped,Packets retransmitted,Has to wait for timeout,Three Packet Losses (2/3),Packets dropped,Packets retransmitted,No need for timeout Retransmits 1 pkt/RTT,Three Packet Losses (3/3),Packets dropped,Packets retransmitted,Retransmits more t

20、han 1 pkt /RTT,Observations,Tahoe: Robust, performs slow start Reno: For 2 losses, timeout is often needed New-Reno: Can avoid timeouts, but still cannot retransmit 1 pkt/RTT SACK: Can retransmit 1 pkt/RTT , thus recovers from losses faster,Conclusions,SACK can improve TCP performance SACK can be us

21、ed in high loss links too (Ex: Wireless) New-Reno demonstrates that certain problems of Reno can be avoided without SACK,Reno vs Vegas (Congestion Avoidance),Renos mechanism Characteristics uses the loss of segments as a signal reactive not proactive needs to create losses to find the available band

22、width example,Threshold window,congestion window,send window,TCP Vegas,Idea: source watches for some sign that routers queue is building up and congestion will happen too; e.g., RTT grows sending rate flattens,Congestion window,Avg. source send rate,Buffer space at router,In shaded region we expect

23、throughput to increase but it cannot increase beyond available bandwidth,Vegas approach,Basic idea Vegas tries not to send at a rate that causes buffers to fill maintain the right amount of extra data based on changes in the estimated amount of extra data window size vs. throughput Keep the actual r

24、ate straying too far from the available rate (resulting in smooth congestion avoidance period),Vegas Algorithm,define a given connections BaseRTT BaseRTT = the minimum of all measured RTT expected throughput = WindowSize / BaseRTT Actual rate = Flight size / RTT Calculate the current Actual sending

25、rate Compare Actual (A) to expected (E) and adjusts the window (linear increase or decrease) If (E-A) beta, cwnd - - (congestion state) If (E-A) alpha, cwnd+ (low utilization) When a loss is detected, reduce the window by a half,Algorithm (cont),Parameters a = 1 buffer b = 3 buffers,Black line = act

26、ual rate Green line = expected rate Shaded = region between a and b,Note: Linear decrease in Vegas does not violate AIMD since it Happens before packets loss,Comparison of Reno and Vegas (Retransmission),Renos retransmission mechanism retransmission timeout based on RTT and variance estimates BSD-ba

27、sed : 500ms Fast Retransmit and Fast Recovery When the sender receives duplicate acks, it reduces the window size by a half and avoids timeout which causes retransmission with slow start If multiple drops occur, timeout and slow start will follow anyway. 19% increase in throughput,Vegas Retransmissi

28、on,reads and records the system clock each time a segment is sent when an ACK arrives, Vegas reads the clock again RTT calculation using this time and the timestamp recorded for the relevant segment uses this more accurate RTT estimate to decide to retransmit,Some fun topics to discuss,Modeling TCP

29、throughput,Consider congestion avoidance only,Time,cwnd,congestion avoidance,TD,ssthresh,Assume one packet loss (loss event) per cycle Total packets send per cycle: 3W2/8 Thus p = 1/(3W2/8) = 8/(3W2) =,bottleneck bandwidth,W/2,W,Modeling TCP throughput,1/throughput = c * sqrt(p) * RTT,Equation-based

30、 Congestion Control,Dont need reliability But still want to be friendly to the network What rate should we send the UDP traffic ? Use detailed TCP analysis to relate throughput to loss and RTT. Measure these values and then calculated appropriate throughput directly. Result is rate-based and equation-driven protocol called TFRC.,mulTCP,Effect of AIMD parameters on the throughput of TCP,

copyright@ 2008-2019 麦多课文库(www.mydoc123.com)网站版权所有
备案/许可证编号:苏ICP备17064731号-1