电子科技大学:《先进计算机网络技术》课程教学资源(课件讲稿)Unit 4 TCP Traffic Control

Feng Gang National Laboratory of Communication,UESTC Aug 2017 Ver 1.4 Unit 4 TCP Traffic Control 2616009:Network Traffic Engineering 3:TCP Traffic Control Page.1
2616009: Network Traffic Engineering Feng Gang National Laboratory of Communication, UESTC Aug 2017 Ver 1.4 3: TCP Traffic Control Page.1 Unit 4 TCP Traffic Control

Feng Gang National Laboratory of Communication,UESTC Aug 2017 Ver 1.4 Roadmap Review of TCP TCP flow control and congestion control TCP over wireless Case study:New Snoop for TCP in Wireless networks 2616009:Network Traffic Engineering 3:TCP Traffic Control Page.2
2616009: Network Traffic Engineering Feng Gang National Laboratory of Communication, UESTC Aug 2017 Ver 1.4 3: TCP Traffic Control Page.2 • Review of TCP • TCP flow control and congestion control • TCP over wireless • Case study: New Snoop for TCP in Wireless networks Roadmap

Feng Gang National Laboratory of Communication,UESTC Aug 2017 Ver 1.4 TCP:Overview RFCs:793,1122,1323,2018,2581 point-to-point: full duplex data: one sender,one receiver bi-directional data flow in reliable,in-order byte stream: same connection -no“message boundaries” MSS:maximum segment pipelined: size TCP congestion and flow connection-oriented: control set window size handshaking (exchange of send receive buffers control msgs)init's sender, receiver state before data exchange flow controlled: application application writes data sender will not overwhelm socket reads data socket door ----- ---个- door TCP TCP receiver send buffer receive buffer ● [segment 2616009:Network Traffic Engineering 3:TCP Traffic Control Page.3
2616009: Network Traffic Engineering Feng Gang National Laboratory of Communication, UESTC Aug 2017 Ver 1.4 3: TCP Traffic Control Page.3 TCP: Overview RFCs: 793, 1122, 1323, 2018, 2581 • full duplex data: - bi-directional data flow in same connection - MSS: maximum segment size • connection-oriented: - handshaking (exchange of control msgs) init’s sender, receiver state before data exchange • flow controlled: - sender will not overwhelm receiver • point-to-point: - one sender, one receiver • reliable, in-order byte stream: - no “message boundaries” • pipelined: - TCP congestion and flow control set window size • send & receive buffers socket door TCP send buffer TCP receive buffer socket door segment application writes data application reads data

Feng Gang National Laboratory of Communication,UESTC Aug 2017 Ver 1.4 TCP Flow Control flow control- sender won't overrun receiver's buffers by transmitting too much,too fast Closed-loop Cumulative acknowledgements Implicit an acknowledgement ack's all ·Dynamic window contiguously received data ·End-to-end Coordination between one sender and one receiver Features Per conversation or flow,not no support from routers network-wide increase if no loss - window decrease if loss additive increase multiplicative decrease 2616009:Network Traffic Engineering 3:TCP Traffic Control Page.4
2616009: Network Traffic Engineering Feng Gang National Laboratory of Communication, UESTC Aug 2017 Ver 1.4 3: TCP Traffic Control Page.4 TCP Flow Control • Closed-loop • Implicit • Dynamic window • End-to-end • Features - no support from routers - increase if no loss - window decrease if loss - additive increase multiplicative decrease sender won’t overrun receiver’s buffers by transmitting too much, too fast flow control • Cumulative acknowledgements – an acknowledgement ack’s all contiguously received data • Coordination between one sender and one receiver - Per conversation or flow, not network-wide

Feng Gang National Laboratory of Communication,UESTC Aug 2017 Ver 1.4 TCP Round Trip Time and Timeout Q:how to set TCP timeout Q:how to estimate RTT? value? 。 SampleRTT:measured time from ·longer than RTT segment transmission until ACK receipt - note:RTT will vary ignore retransmissions, too short:premature timeout cumulatively ACKed segments unnecessary SampleRTT will vary,want estimated retransmissions RTT "smoother" 。 too long:slow reaction to use several recent measurements, segment loss not just current SampleRTT 2616009:Network Traffic Engineering 3:TCP Traffic Control Page.5
2616009: Network Traffic Engineering Feng Gang National Laboratory of Communication, UESTC Aug 2017 Ver 1.4 3: TCP Traffic Control Page.5 TCP Round Trip Time and Timeout Q: how to set TCP timeout value? • longer than RTT - note: RTT will vary • too short: premature timeout - unnecessary retransmissions • too long: slow reaction to segment loss Q: how to estimate RTT? • SampleRTT: measured time from segment transmission until ACK receipt - ignore retransmissions, cumulatively ACKed segments • SampleRTT will vary, want estimated RTT “smoother” - use several recent measurements, not just current SampleRTT

Feng Gang National Laboratory of Communication,UESTC Aug 2017 Ver 1.4 Example RTT estimation RTT:gaia.cs.umass.edu to fantasia.eurecom.fr 350 300 250 200 150 100 1 8 15 22 29 36 43 50 5764 71 78 85 92 99 106 time(seconnds) -SampleRTT--Estimated RTT 2616009:Network Traffic Engineering 3:TCP Traffic Control Page.6
2616009: Network Traffic Engineering Feng Gang National Laboratory of Communication, UESTC Aug 2017 Ver 1.4 3: TCP Traffic Control Page.6 Example RTT estimation RTT: gaia.cs.umass.edu to fantasia.eurecom.fr 100 150 200 250 300 350 1 8 15 22 29 36 43 50 57 64 71 78 85 92 99 106 time (seconnds) RTT (milliseconds) SampleRTT Estimated RTT

Feng Gang National Laboratory of Communication,UESTC Aug 2017 Ver 1.4 TCP Round Trip Time and Timeout EstimatedRTT (1-x)*EstimatedRTT x*SampleRTT Exponential weighted moving average influence of given sample decreases exponentially fast typical value of x:0.1 Setting the timeout EstimtedRTT plus "safety margin" large variation in EstimatedRTT -larger safety margin Timeout EstimatedRTT 4*Deviation Deviation (1-x)*Deviation x*|SampleRTT-EstimatedRTT 2616009:Network Traffic Engineering 3:TCP Traffic Control Page.7
2616009: Network Traffic Engineering Feng Gang National Laboratory of Communication, UESTC Aug 2017 Ver 1.4 3: TCP Traffic Control Page.7 TCP Round Trip Time and Timeout EstimatedRTT = (1-x)*EstimatedRTT + x*SampleRTT Exponential weighted moving average influence of given sample decreases exponentially fast typical value of x: 0.1 Setting the timeout • EstimtedRTT plus “safety margin” • large variation in EstimatedRTT -> larger safety margin Timeout = EstimatedRTT + 4*Deviation Deviation = (1-x)*Deviation + x*|SampleRTT-EstimatedRTT|

Feng Gang National Laboratory of Communication,UESTC Aug 2017 Ver 1.4 TCP Congestion Control Mechanisms that limit amount of data in the network Avoid overrun of internal network buffers Network-wide problem Often phrased as global optimization problem A control system with delayed feedback Implementation today Algorithms in TCP 2616009:Network Traffic Engineering 3:TCP Traffic Control Page.8
2616009: Network Traffic Engineering Feng Gang National Laboratory of Communication, UESTC Aug 2017 Ver 1.4 3: TCP Traffic Control Page.8 TCP Congestion Control • Mechanisms that limit amount of data in the network - Avoid overrun of internal network buffers • Network-wide problem - Often phrased as global optimization problem - A control system with delayed feedback • Implementation today - Algorithms in TCP

Feng Gang National Laboratory of Communication,UESTC Aug 2017 Ver 1.4 Congestion Collapse Decrease of network efficiency under load efficiency utilization of bandwidth Waste resources on useless or undelivered data ·Network layer load->drops,>1 fragment dropped ·Transport layer retransmit too many times no congestion control avoidance 2616009:Network Traffic Engineering 3:TCP Traffic Control Page.9
2616009: Network Traffic Engineering Feng Gang National Laboratory of Communication, UESTC Aug 2017 Ver 1.4 3: TCP Traffic Control Page.9 Congestion Collapse • Decrease of network efficiency under load - efficiency = utilization of bandwidth • Waste resources on useless or undelivered data • Network layer - loaddrops, 1 fragment dropped • Transport layer - retransmit too many times - no congestion control / avoidance

Feng Gang National Laboratory of Communication,UESTC Aug 2017 Ver 1.4 Congestion Collapse (cont'd) Penalized 90%loss ignores loss bw wasted Waste resources on undelivered data A flow sends data at a high rate despite loss Its packets consume bandwidth at earlier links,only to be dropped at a later link 2616009:Network Traffic Engineering 3:TCP Traffic Control Page.10
2616009: Network Traffic Engineering Feng Gang National Laboratory of Communication, UESTC Aug 2017 Ver 1.4 3: TCP Traffic Control Page.10 Congestion Collapse (cont’d) • Waste resources on undelivered data • A flow sends data at a high rate despite loss • Its packets consume bandwidth at earlier links, only to be dropped at a later link 90% loss bw wasted ignores loss Penalized
按次数下载不扣除下载券;
注册用户24小时内重复下载只扣除一次;
顺序:VIP每日次数-->可用次数-->下载券;
- 电子科技大学:《先进计算机网络技术》课程教学资源(课件讲稿)Unit 3 Traffic Policing and Shaping.pdf
- 电子科技大学:《先进计算机网络技术》课程教学资源(课件讲稿)Unit 2 Call-level Models and Admission Control.pdf
- 电子科技大学:《先进计算机网络技术》课程教学资源(课件讲稿)Unit 1 Overview - A big Picture on Traffic Control and QoS in IP networks.pdf
- 电子科技大学:《先进计算机网络技术》课程教学资源(课件讲稿)Introduction(冯钢).pdf
- 电子科技大学:《大数据分析与挖掘 Big Data Analysis and Mining》课程教学资源(课件讲稿)Lecture 7 Hadoop-Spark.pdf
- 电子科技大学:《大数据分析与挖掘 Big Data Analysis and Mining》课程教学资源(课件讲稿)Lecture 6 Graph Mining.pdf
- 电子科技大学:《大数据分析与挖掘 Big Data Analysis and Mining》课程教学资源(课件讲稿)Lecture 5 Data Stream Mining.pdf
- 电子科技大学:《大数据分析与挖掘 Big Data Analysis and Mining》课程教学资源(课件讲稿)Lecture 4 Sampling for Big Data.pdf
- 电子科技大学:《大数据分析与挖掘 Big Data Analysis and Mining》课程教学资源(课件讲稿)Lecture 3 Hashing.pdf
- 电子科技大学:《大数据分析与挖掘 Big Data Analysis and Mining》课程教学资源(课件讲稿)Lecture 2 BasicConcepts(Foundations of Data Mining).pdf
- 电子科技大学:《大数据分析与挖掘 Big Data Analysis and Mining》课程教学资源(课件讲稿)Lecture 1 Intro(主讲:邵俊明).pdf
- 计算机科学与技术(PPT讲稿)Unlock with Your Heart - Heartbeat-based Authentication on Commercial Mobile Phones.pptx
- 计算机科学与技术(参考文献)VECTOR - Velocity Based Temperature-field Monitoring with Distributed Acoustic Devices.pdf
- 计算机科学与技术(参考文献)VSkin - Sensing Touch Gestures on Surfaces of Mobile Devices Using Acoustic Signals.pdf
- 计算机科学与技术(参考文献)RespTracker - Multi-user Room-scale Respiration Tracking with Commercial Acoustic Devices.pdf
- 计算机科学与技术(参考文献)Dynamic Speed Warping - Similarity-Based One-shot Learning for Device-free Gesture Signals.pdf
- 计算机科学与技术(参考文献)SpiderMon - Towards Using Cell Towers as Illuminating Sources for Keystroke Monitoring.pdf
- 计算机科学与技术(参考文献)Unlock with Your Heart:Heartbeat-based Authentication on Commercial Mobile Phones.pdf
- 计算机科学与技术(参考文献)QGesture - Quantifying Gesture Distance and Direction with WiFi Signals.pdf
- 计算机科学与技术(PPT讲稿)QGesture - Quantifying Gesture Distance and Direction with WiFi Signals.pptx
- 电子科技大学:《先进计算机网络技术》课程教学资源(课件讲稿)Unit 5 Buffer Management.pdf
- 电子科技大学:《先进计算机网络技术》课程教学资源(课件讲稿)Unit 6 Packet Scheduling.pdf
- 电子科技大学:《先进计算机网络技术》课程教学资源(课件讲稿)Unit 7 IntServ/RSVP and DiffServ.pdf
- 电子科技大学:《先进计算机网络技术》课程教学资源(课件讲稿)Unit 8 Traffic Management and Modeling.pdf
- 电子科技大学:《先进计算机网络技术》课程教学资源(课件讲稿)Unit 9 Network Traffic Engineering.pdf
- 电子科技大学:《先进计算机网络技术》课程教学资源(课件讲稿)Unit 10 Network Coding and Traffic Balancing.pdf
- 电子科技大学:《先进计算机网络技术》课程教学资源(课件讲稿)Unit 11 AI Enabled Wireless Access Control and Handoff.pdf
- 《机器学习 Machine Learning》课程教学资源(实践资料)华为Atlas人工智能计算解决方案产品彩页.pdf
- 《机器学习 Machine Learning》课程教学资源(实践资料)Xshell远程登陆开发板方法(华为atlas800 - 910).pdf
- 《机器学习 Machine Learning》课程教学资源(实践资料)MNIST手写体识别实验.pdf
- 《机器学习 Machine Learning》课程教学资源(实践资料)MNIST手写数字识别的Atlas 200DK推理应用.pdf
- 《机器学习 Machine Learning》课程教学资源(实践资料)ModelArts花卉识别(基于MindSpore的图像识别全流程代码实战).pdf
- 《机器学习 Machine Learning》课程教学资源(书籍文献)[德] Andreas C. Müller [美] Sarah Guido《Python机器学习基础教程 Introduction to Machine Learning with Python》.pdf
- 《机器学习 Machine Learning》课程教学资源(书籍文献)[美] 弗朗索瓦·肖莱《Python深度学习 Deep Learning with Python》.pdf
- 《机器学习 Machine Learning》课程教学资源(书籍文献)Finding Structure in Time.pdf
- 《机器学习 Machine Learning》课程教学资源(书籍文献)Learning representations by back-propagating errors.pdf
- 《机器学习 Machine Learning》课程教学资源(书籍文献)Attention Is All You Need.pdf
- 《机器学习 Machine Learning》课程教学资源(书籍文献)Gradient-Based Learning Applied to Document Recognition.pdf
- 《机器学习 Machine Learning》课程教学资源(书籍文献)Handwritten Digit Recognition with a Back-Propagation Network.pdf
- 《机器学习 Machine Learning》课程教学资源(书籍文献)An introduction to neural networks for beginners.pdf