The dark side of TCP. understanding TCP on very high-speed networks. ACOMP 2008 HCMC, Bach Khoa University March 11th, 2008 LIUPPA. C.
|
|
- Ellen Flowers
- 6 years ago
- Views:
Transcription
1 The dark side of TCP understanding TCP on very high-speed networks ACOMP 2008 HCMC, Bach Khoa University March 11th, 2008 C. Pham University of Pau, France laboratory
2 The The big-bang big-bang of of the the Internet Internet
3 # Internet host INTRODUCTION
4 Towards all IP & TCP! IPTV VOD VoIP IP Telephony Multimedia High-perf networking INTERNET, HTTP Sensor networks Grid computing Interactive gaming Pervasive networking 90% of the Internet traffic is based on TCP IP E1/T1 X.25 FR ATM PSTN INTRODUCTION
5 What TCP brings stream-based in-order delivery segments are ordered according to sequence numbers only consecutive bytes are delivered reliability missing segments are detected (ACK is missing) and retransmitted flow control receiver is protected against overload (window based) congestion control network is protected against overload (window based) protocol tries to fill available capacity connection handling explicit establishment + teardown full-duplex communication an ACK can be a data segment at the same time (piggybacking) INTRODUCTION
6 A brief history of TCP 1975 Three-way handshake Raymond Tomlinson In SIGCOMM TCP described by Vint Cerf and Bob Kahn In IEEE Trans Comm 1982 TCP & IP RFC 793 & BSD Unix 4.2 supports TCP/IP 1984 Nagel s algorithm to reduce overhead of small packets; predicts congestion collapse 1986 Congestion collapse observed 1987 Karn s algorithm to better estimate round-trip time 1988 Van Jacobson s algorithms congestion avoidance and congestion control (most implemented in 4.3BSD Tahoe) BSD Reno fast retransmit delayed ACK s INTRODUCTION
7 in the nineties 1994 T/TCP (Braden) Transaction TCP 1996 SACK TCP (Floyd et al) Selective Acknowledgement 1993 TCP Vegas (Brakmo et al) real congestion avoidance 1994 ECN (Floyd) Explicit Congestion Notification 1996 Hoe Improving TCP startup 1996 FACK TCP (Mathis et al) extension to SACK? INTRODUCTION
8 huge variety of communicating devices! Internet Wireless sensor nodes INTRODUCTION
9 1st revolution: Wireless Networks WiFi, WiMax BlueTooth, ZigBee, IrDA GSM, GPRS, EDGE, UMTS, 4G, Access Point INTRODUCTION
10 2nd revolution: going optical 2x / 18 months 2x / 7 months INTRODUCTION Source «Optical fibers for Ultra-Large Capacity Transmission» by J. Grochocinski
11 DWDM, bandwidth for free? DWDM: Dense Wavelength Division Multiplexing < 0,1 nm 10Gbps 2Gbps 10, 40, 160 Gbps are available! INTRODUCTION
12 campus Fibers everywhere? NEWS of Dec 15th, 2004 NEWS from Japan and residentials South Korea Verizon offices and SBC are NEWS of May 31st, 2005 deploying large optical fiber Japan FTTH is one of the first FTTC infrastructures in the US US Fiber-to-the-home country in FTTH technology FTTP using FTTC or FTTP (FTTH) installations with 3.2 millions have users at the scenario 10Gbps grown 83% end since of 2005 October (16 % of Internet highspeed access 2004, now reaching Data 398 market). Center In metro ring NEWS of July, communities 2006 South in 43 Korea, states FTTH users Network Provider represents Gbps %. France Telecom Verizon will deploy is on track to pass 2.5Gbps an FTTH 10Gbps test-bed three million homes with infrastructure in fiber Paris. by 2.5 the end of 2005 Network Gbps Provider in download and 1.2Gbps in upload! 1Gbps GigaEth INTRODUCTION Core 40, 160 Gbps
13 SONET/SDH in the core 95% % of exploited OF use SONET/SDH Digital switch Digital switch n*30*64 Kb/s MUX PDH/SDH n*2048 Kb/s Optical Fiber or Microwave Link SDH : INTRODUCTION STM-1 : Mb/s STM-4 : Mb/s STM-16 : Mb/s MUX PDH/SDH
14 SONET/SDH transport network infrastructure Add Drop Multiplexer rings rings INTRODUCTION SONET/SDH now offers Native Ethernet interface Generic Framing Procedure Virtual Concatenation
15 The new networks vbns Abilene SUPERNET DREN CA*NET GEANT DATATAG much more to come! INTRODUCTION
16 GEANT INTRODUCTION
17 Computational grids user application Virtually unlimited resources 1PFlops INTRODUCTION from Dorian Arnold: Netsolve Happenings
18 Real-time interactive large- scale scientific collaborations Multimodality brain mapping require the ability to process, share, and interactively visualize multiple 100Gbytes datasets! Today, to visualize and explore eight 3D images require 64Gb/s! Large data transfers require very high bandwidth
19 TCP FTP HTTP SSH SMTP
20 Very High-Speed Networks Optical fiber 40 Gbps km/s, delay of 5ms every 1000km Today s backbone links are optical, DWDMbased, and offer gigabit rates Transmission time <<< propagation time Duplicating a 10GB database should not be a problem anymore
21 The reality check: TCP on a 200Mbps link Huge capacity in network links does not mean end-to-end performances! TCP is not adapted to exploit Long Fat Networks! Packet losses
22 The things about TCP your mother never told you! vanilla TCP TCP 40 Gbps 0.3Gbps If you want to transfer a 1Go file with a standard TCP stack, you will need minutes even with a 40Gbps (how much in $?) link!
23 Let s s go back to the origin! Flow control is for receivers Congestion control is for the network From Computer Networks, A. Tanenbaum Congestion collapse was first observed in 1986 by V. Jacobson. Congestion control was added to TCP (TCP Reno) in 1988.
24 The congestion phenomenon 10 Mbps 1.5 Mbps 100 Mbps Too many packets sent to the same interface. Difference bandwidth from one network to another Main consequence: packet losses in routers
25 Flow control prevents receiver s s buffer overfow Packet Sent Source Port Dest. Port Sequence Number Acknowledgment HL/Flags Window D. Checksum Urgent Pointer Options.. Packet Received Source Port Dest. Port Sequence Number Acknowledgment HL/Flags Window D. Checksum Urgent Pointer Options.. App write acknowledged sent to be sent outside window
26 TCP congestion control: the big picture Congestion window doubles every round-trip time Sequence No From Computer Networks, A. Tanenbaum packet ack Time cwnd grows exponentially (slow start), then linearly (congestion avoidance) with 1 more segment per RTT If loss, divides threshold by 2 (multiplicative decrease) and restart with cwnd=1 packet
27 From the control theory point of view ƒ feedback Closed-loop control Feedback should be frequent, but not too much otherwise there will be oscillations Can not control the behavior with a time granularity less than the feedback period
28 Congestion: A Close-up View knee point after which throughput increases very slowly delay increases fast cliff point after which throughput starts to decrease very fast to zero (congestion collapse) delay approaches infinity Note (in an M/M/1 queue) delay = 1/(1 utilization) Throughput Delay knee cliff Load Load packet loss congestion collapse
29 Congestion Control vs. Congestion Avoidance Congestion control goal stay left of cliff Congestion avoidance goal stay left of knee Right of cliff: Congestion collapse Throughput knee cliff congestion collapse Load
30 The TCP saw-tooth curve TCP behavior in steady state N Isolated packet losses trigger the fast recovery procedure instead of the slow-start. The TCP steadystate behavior is referred to as the Additive Increase- Multiplicative Decrease process N/2 3N/4.N/2 Packets/cycle no loss: cwnd = cwnd + 1 loss: cwnd = cwnd*0.5
31 AIMD Phase plot User 2 s Allocation x 2 t 0 Convergence point Fairness Line x 1 =x 2 Efficiency Line x 1 +x 2 =C Fairness is preserved under Multiplicative Decrease since the user s allocation ratio remains the same Ex: x 2 = x.b 2 x 1 x 1.b User 1 s Allocation x 1 Assumption: decrease policy must (at minimum) reverse the load increase over-and-above efficiency line Implication: decrease factor should be conservatively set to account for any congestion detection lags etc
32 Tuning stand for TCP the dark side of speed! TCP team TCP performances depend on TCP & network parameters Congestion window size, ssthresh (threshold) RTO timeout settings SACKs NEED A Packet size System parameters SPECIALIST! TCP and OS buffer size (in comm. subsys., drivers )
33 First problem: window size The default maximum window size is 64Kbytes. Then the sender has to wait for acks. TIME RTT Time to transmit 3 packets Sender Packet #1 Packet #2 Packet #3 Receiver Packet #1 Ack. Packet #2 Ack. Packet #3 Ack. Packet #4 Packet #5 Packet #6 Packet #4 Ack. Packet #5 Ack. Packet #6 Ack.
34 First problem: window size The default maximum window size is 64Kbytes. Then the sender has to wait for acks. RTT=200ms Link is 0C-48 = 2.5 Gbps Waiting time
35 Rule of thumb on Long Fat Networks capacity High-speed network Transmission time is small Propagation time is large RTT The optimal window size should be set to the bandwidthxrtt product to avoid blocking at the sender side Need lots of memory for buffers!
36 Side effect of large windows TCP becomes very sensitive to packet losses on LFN Congestion window size Large congestion window create burst/congestion Packet losses
37 Pushing the limits of TCP Standard configuration (vanilla TCP) is not adequate on many OS, everything is undersized Receiver buffer System buffer Default block size Will manage to get near 1Gbps if well-tuned
38 Pushing the limits of TCP Standard configuration (vanilla TCP) is not adequate on many OS, everything is undersized Receiver buffer System buffer Default block size Large congestion window Socket buffer=64mo Will manage to get near 1Gbps if well-tuned Source: M. Goutelle, GEANT test campaign
39 Some TCP tuning guides cptune/ k-tcpip.htm /tcp.html
40 Problem on high capacity link? Additive increase is still too slow! Take ages to get to full speed With 100ms of round trip time, a connection needs 203 minutes (3h23) to send at 10Gbps starting from 1Mbps! Once you get high throughput, maintaining it is difficult too! From S. Floyd
41 TCP rules: slow increase, big decrease A TCP connection with 1250-Byte packet size and 100ms RTT is running over a 10Gbps link (assuming no other connections, and no buffers at routers) From Injong Rhee, Lisong Xu cwnd 1.4 hours 1.4 hours 1.4 hours slow Packet lossincrease Packet loss Packet loss Packet loss TCP 100,000 10Gbps big decrease 50,000 5Gbps Slow start Congestion avoidance Time (RTT)
42 Going faster (cheating?) n flows is better than 1 The CC limits the throughput of a TCP connection: so why not use more than 1 connection for the same file? Very big file Seg 1 Seg 2 Seg 3 Seg n-1 Seg n TCP connection TCP connection 10 Gbps link
43 Some results from IEPM/SLAC More streams is better than larger congestion windows
44 Multiple streams No/few modifications to transport protocols (i.e. TCP) Parallel socket libraries GridFTP ( bbftp (
45 New transport protocols New transport protocols are those that are not only optimizations of TCP New behaviors, new rules, new requirements! Everything is possible! New protocols are then not necessarily TCP compatible! BEYOND TCP
46 The new transport protocol strip XCP H-TCP BIC TCP FAST TCP HS-TCP S-TCP TSUNAMI BEYOND TCP
47 Response function Throughput = f(p, RTT) TCP s response function, from (N+N/2)/2 (N/2) 2 +1/2(N/2) 2 Throughput = W RTT = 3 2 MTU RTT p BEYOND TCP
48 TCP s s response function in image Throughput = W RTT = 3 2 MTU RTT p MTU: Packet Size RTT: Round-Trip Time P : Packet Loss Probability From Injong Rhee, Lisong Xu 10Gbps requires a packet loss rate of 10-10, which is an unrealistic (or at least hard) requirement for current networks. BEYOND TCP
49 AIMD, general case cwnd = cwnd + 1 cwnd = cwnd + 32 cwnd = cwnd * (1-1/2) cwnd = cwnd * (1-1/8) The throughput of AIMD is always about 13 times larger than that of TCP NOT TCP Friendly!!! What s wrong? TCP: R = MSS RTT 1.2 p 0.5 AIMD: R = MSS RTT 15.5 p 0.5 Inspired from Injong Rhee, Lisong Xu BEYOND TCP
50 High Speed TCP [Floyd[ Floyd] Modifies the response function to allow for more link utilization in current high-speed networks where the loss rate is smaller than that of the networks TCP was designed for (at most 10-2 ) TCP Throughput (Mbps) RTTs Between Losses W P Table 1: RTTs Between Congestion Events for Standard TCP, for 1500-Byte Packets and a Round-Trip Time of 0.1 Seconds. From draft-ietf-tsvwg-highspeed-01.txt BEYOND TCP
51 Modifying the response Packet Drop Rate P Congestion Window W RTTs Between Losses ^ ^ ^ ^ ^ ^ ^ ^ ^ Table 2: TCP Response Function for Standard TCP. The average congestion window W in MSS-sized segments is given as a function of the packet drop rate P. From draft-ietf-tsvwg-highspeed-01.txt To specify a modified response function for HighSpeed TCP, we use three parameters, Low_Window, High_Window, and High_P. To Ensure TCP compatibility, the HighSpeed response function uses the same response function as Standard TCP when the current congestion window is at most Low_Window, and uses the HighSpeed response function when the current congestion window is greater than Low_Window. In this document we set Low_Window to 38 MSS-sized segments, corresponding to a packet drop rate of 10^-3 for TCP. Packet Drop Rate P Congestion Window W RTTs Between Losses ^ ^ ^ ^ ^ ^ ^ ^ ^ Table 3: TCP Response Function for HighSpeed TCP. The average congestion window W in MSS-sized segments is given as a function of the packet drop rate P. BEYOND TCP
52 See it in image TCP Friendly region BEYOND TCP
53 Relation with AIMD TCP-AIMD Additive increase: a=1 Multiplicative decrease: b=1/2 no loss: cwnd = cwnd + 1 loss: cwnd = cwnd*0.5 HSTCP-AIMD Link a & b to congestion window size a = a(cwnd), b=b(cwnd) General rules the larger cwnd, the larger the increment The larger cwnd, the smaller the decrement BEYOND TCP
54 Quick to grab bandwidth, slow to give some back! No loss: cwnd=cwnd+a Loss: cwnd=cwnd*b BEYOND TCP
55 Talking about dark side Starvation of TCP flow (>10x) 1 HSTCP and 1 TCP flow 2 TCP flows SETUP RTT=100ms Bottleneck BW=50Mbps Qsize=BW*RTT Qtype=DropTail BEYOND TCP
56 XCP [Katabi02] XCP is a router-assisted solution, generalized the ECN concepts (FR, TCP-ECN) XCP routers can compute the available bandwidth by monitoring the input rate and the output rate Feedback is sent back to the source in special fields of the packet header source H_feedback Q EC FC Input rate: I r Output rate: O r XCP packet header H_cwnd (set to the sender s current cwnd) H_rtt (set to sender s RTT estimate) H_feedback (initialized to sender s demands) feedback=α.rtt.(o r -I r )-βq α=0.4, β=0.226 Q: persistent queue size BEYOND TCP
57 XCP in action Feedback value represents a window increment/decrement H_cwnd=200 H_rtt=100ms H_feedback=0 Q source I r =250Mbps O r =100Mbps cwnd=200 cwnd=194 H_cwnd=200 H_rtt=100ms H_feedback=-6 BEYOND TCP feedback=α.rtt.(o r -I r )-βq α=0.4, β=0.226 Q: persistent queue size Case without βq contribution O r -I r = =-150 feedback=-6
58 XCP Variable bandwidth environments Good fairness and stability even in variable bandwidth environments BEYOND TCP
59 XCP-r [Pacheco&Pham05] A more robust version of XCP 10 flows sharing a 1Gbps link Fast recovery after the timeouts and better fairness level BEYOND TCP
60 XCP-r performance Amount of data transfered in 50s, 10 flows, 1Gbps link, 200ms RTT BEYOND TCP
61 XCP-r fairness TCP and HSTCP are not really fair... BEYOND TCP
62 Nothing is perfect :-( Multiple or parallel streams How many streams? Tradeoff between window size and number of streams New protocol Fairness issues? Deployment issues? Still too early to know the side effects BEYOND TCP
63 Where to find the new protocols? HSTCP STCP on Linux ctk21/scalable/ FAST XCP BEYOND TCP
64 Web100 project «The Web100 project will provide the software and tools necessary for endhosts to automatically and transparently achieve high bandwidth data rates (100 Mbps) over the high performance research networks» Actually it s not limited to 100Mbps! Recommended solution for end-users to deploy and test high-speed transport solutions BEYOND TCP
65 Hostile environments Asymetric networks Satellite links & terrestrial links Wireless (WiFi, WiMax) High loss probability Losses congestions Ad-Hoc (PDA) Small capacity Wireless Sensor Networks All of the above mentioned problems! BEYOND TCP
66 New sensor applications disaster relief - security Real-time organization and optimization of rescue in large scale disasters BEYOND TCP Rapid deployment of fire detection systems in highrisk places
67 Conclusions Understanding the dark side allows to move forwards! However vanilla TCP 10GB file 40 Gbps MAY THE FORCE BE WITH YOU! BEYOND TCP
TCP on High-Speed Networks
TCP on High-Speed Networks from New Internet and Networking Technologies for Grids and High-Performance Computing, tutorial given at HiPC 04, Bangalore, India December 22nd, 2004 C. Pham University Lyon,
More informationTCP on High-Speed Networks
TCP on High-Speed Networks from New Internet and Networking Technologies for Grids and High-Performance Computing, tutorial given at HiPC 04, Bangalore, India December 22nd, 2004 C. Pham University Lyon,
More informationThe dark side of TCP
The dark side of TCP understanding TCP on very high-speed networks C. Pham http://www.univ-pau.fr/~cpham University of Pau, France laboratory What TCP brings q stream-based in-order delivery q segments
More informationAnnouncements Computer Networking. Outline. Transport Protocols. Transport introduction. Error recovery & flow control. Mid-semester grades
Announcements 15-441 Computer Networking Lecture 16 Transport Protocols Mid-semester grades Based on project1 + midterm + HW1 + HW2 42.5% of class If you got a D+,D, D- or F! must meet with Dave or me
More informationTCP on current network technologies
TCP on current network technologies DEA DIF lecture C. Pham These slides borrow material from various sources which are indicated below each slide when necessary The congestion phenomenom From Computer
More informationCE693 Advanced Computer Networks
CE693 Advanced Computer Networks Review 2 Transport Protocols Acknowledgments: Lecture slides are from the graduate level Computer Networks course thought by Srinivasan Seshan at CMU. When slides are obtained
More informationTCP Basics : Computer Networking. Overview. What s Different From Link Layers? Introduction to TCP. TCP reliability Assigned reading
TCP Basics 15-744: Computer Networking TCP reliability Assigned reading [FF96] Simulation-based Comparisons of Tahoe, Reno, and SACK TCP L-9 TCP Basics 2 Key Things You Should Know Already Port numbers
More informationCongestion Control. Daniel Zappala. CS 460 Computer Networking Brigham Young University
Congestion Control Daniel Zappala CS 460 Computer Networking Brigham Young University 2/25 Congestion Control how do you send as fast as possible, without overwhelming the network? challenges the fastest
More informationOutline Computer Networking. Functionality Split. Transport Protocols
Outline 15-441 15 441 Computer Networking 15-641 Lecture 10: Transport Protocols Justine Sherry Peter Steenkiste Fall 2017 www.cs.cmu.edu/~prs/15 441 F17 Transport introduction TCP connection establishment
More informationCSE/EE 461 Lecture 12 TCP. A brief Internet history...
CSE/EE 461 Lecture 12 TCP Tom Anderson tom@cs.washington.edu Peterson, Chapter 5.2, 6 A brief Internet history... 1991 WWW/HTTP 1969 ARPANET created 1972 TELNET RFC 318 1973 FTP RFC 454 1977 MAIL RFC 733
More informationPage 1. Review: Internet Protocol Stack. Transport Layer Services EEC173B/ECS152C. Review: TCP. Transport Layer: Connectionless Service
EEC7B/ECS5C Review: Internet Protocol Stack Review: TCP Application Telnet FTP HTTP Transport Network Link Physical bits on wire TCP LAN IP UDP Packet radio Do you remember the various mechanisms we have
More informationChapter 3 outline. 3.5 Connection-oriented transport: TCP. 3.6 Principles of congestion control 3.7 TCP congestion control
Chapter 3 outline 3.1 Transport-layer services 3.2 Multiplexing and demultiplexing 3.3 Connectionless transport: UDP 3.4 Principles of reliable data transfer 3.5 Connection-oriented transport: TCP segment
More informationPage 1. Review: Internet Protocol Stack. Transport Layer Services. Design Issue EEC173B/ECS152C. Review: TCP
EEC7B/ECS5C Review: Internet Protocol Stack Review: TCP Application Telnet FTP HTTP Transport Network Link Physical bits on wire TCP LAN IP UDP Packet radio Transport Layer Services Design Issue Underlying
More informationTransmission Control Protocol. ITS 413 Internet Technologies and Applications
Transmission Control Protocol ITS 413 Internet Technologies and Applications Contents Overview of TCP (Review) TCP and Congestion Control The Causes of Congestion Approaches to Congestion Control TCP Congestion
More informationTransport Layer (Congestion Control)
Transport Layer (Congestion Control) Where we are in the Course Moving on up to the Transport Layer! Application Transport Network Link Physical CSE 461 University of Washington 2 Congestion Collapse Congestion
More informationEnabling Large Data Transfers on Dynamic, Very High-Speed Network Infrastructures
Enabling Large Data Transfers on Dynamic, Very High-Speed Network Infrastructures D. M. Lopez-Pacheco INRIA RESO/LIP, France Email:dmlopezp@ens-lyon.fr C. Pham, Member, IEEE LIUPPA, University of Pau,
More informationCongestion Control & Transport protocols
Congestion Control & Transport protocols from New Internet and Networking Technologies for Grids and High-Performance Computing, tutorial given at HiPC 04, Bangalore, India December 22nd, 2004 C. Pham
More informationAnnouncements Computer Networking. What was hard. Midterm. Lecture 16 Transport Protocols. Avg: 62 Med: 67 STD: 13.
Announcements 15-441 Computer Networking Lecture 16 Transport Protocols Mid-semester grades Based on (ckpt 1 & ckpt2) + midterm + HW1 + HW2 NOTE: GRADES DO NOT REFLECT LATE PENALTIES! 25.4% of class If
More informationOutline Computer Networking. TCP slow start. TCP modeling. TCP details AIMD. Congestion Avoidance. Lecture 18 TCP Performance Peter Steenkiste
Outline 15-441 Computer Networking Lecture 18 TCP Performance Peter Steenkiste Fall 2010 www.cs.cmu.edu/~prs/15-441-f10 TCP congestion avoidance TCP slow start TCP modeling TCP details 2 AIMD Distributed,
More informationCS 43: Computer Networks. 19: TCP Flow and Congestion Control October 31, Nov 2, 2018
CS 43: Computer Networks 19: TCP Flow and Congestion Control October 31, Nov 2, 2018 Five-layer Internet Model Application: the application (e.g., the Web, Email) Transport: end-to-end connections, reliability
More informationCongestion Collapse in the 1980s
Congestion Collapse Congestion Collapse in the 1980s Early TCP used fixed size window (e.g., 8 packets) Initially fine for reliability But something happened as the ARPANET grew Links stayed busy but transfer
More information15-744: Computer Networking TCP
15-744: Computer Networking TCP Congestion Control Congestion Control Assigned Reading [Jacobson and Karels] Congestion Avoidance and Control [TFRC] Equation-Based Congestion Control for Unicast Applications
More informationCS268: Beyond TCP Congestion Control
TCP Problems CS68: Beyond TCP Congestion Control Ion Stoica February 9, 004 When TCP congestion control was originally designed in 1988: - Key applications: FTP, E-mail - Maximum link bandwidth: 10Mb/s
More informationTCP. CSU CS557, Spring 2018 Instructor: Lorenzo De Carli (Slides by Christos Papadopoulos, remixed by Lorenzo De Carli)
TCP CSU CS557, Spring 2018 Instructor: Lorenzo De Carli (Slides by Christos Papadopoulos, remixed by Lorenzo De Carli) 1 Sources Fall and Stevens, TCP/IP Illustrated Vol. 1, 2nd edition Congestion Avoidance
More informationReasons not to Parallelize TCP Connections for Fast Long-Distance Networks
Reasons not to Parallelize TCP Connections for Fast Long-Distance Networks Zongsheng Zhang Go Hasegawa Masayuki Murata Osaka University Contents Introduction Analysis of parallel TCP mechanism Numerical
More informationCongestion Control In The Internet Part 2: How it is implemented in TCP. JY Le Boudec 2014
1 Congestion Control In The Internet Part 2: How it is implemented in TCP JY Le Boudec 2014 Contents 1. Congestion control in TCP 2. The fairness of TCP 3. The loss throughput formula 4. Explicit Congestion
More informationOutline Computer Networking. Transport Protocols. Functionality Split. Review 2 Transport Protocols
Outline Transport introduction 15-744 Computer Networking Review 2 Transport Protocols Error recovery & flow control TCP flow control/connection setup/data transfer TCP reliability Congestion sources and
More informationCongestion Control In The Internet Part 2: How it is implemented in TCP. JY Le Boudec 2014
1 Congestion Control In The Internet Part 2: How it is implemented in TCP JY Le Boudec 2014 Contents 1. Congestion control in TCP 2. The fairness of TCP 3. The loss throughput formula 4. Explicit Congestion
More informationAdvanced Congestion Control (Hosts)
Advanced Congestion Control (Hosts) 14-740: Fundamentals of Computer Networks Bill Nace Material from Computer Networking: A Top Down Approach, 5 th edition. J.F. Kurose and K.W. Ross Congestion Control
More informationCongestion Control End Hosts. CSE 561 Lecture 7, Spring David Wetherall. How fast should the sender transmit data?
Congestion Control End Hosts CSE 51 Lecture 7, Spring. David Wetherall Today s question How fast should the sender transmit data? Not tooslow Not toofast Just right Should not be faster than the receiver
More informationTCP so far Computer Networking Outline. How Was TCP Able to Evolve
TCP so far 15-441 15-441 Computer Networking 15-641 Lecture 14: TCP Performance & Future Peter Steenkiste Fall 2016 www.cs.cmu.edu/~prs/15-441-f16 Reliable byte stream protocol Connection establishments
More informationCMSC 417. Computer Networks Prof. Ashok K Agrawala Ashok Agrawala. October 30, 2018
CMSC 417 Computer Networks Prof. Ashok K Agrawala 2018 Ashok Agrawala October 30, 2018 Message, Segment, Packet, and Frame host host HTTP HTTP message HTTP TCP TCP segment TCP router router IP IP packet
More informationCongestion Control for High Bandwidth-delay Product Networks. Dina Katabi, Mark Handley, Charlie Rohrs
Congestion Control for High Bandwidth-delay Product Networks Dina Katabi, Mark Handley, Charlie Rohrs Outline Introduction What s wrong with TCP? Idea of Efficiency vs. Fairness XCP, what is it? Is it
More informationCMSC 417. Computer Networks Prof. Ashok K Agrawala Ashok Agrawala. October 25, 2018
CMSC 417 Computer Networks Prof. Ashok K Agrawala 2018 Ashok Agrawala Message, Segment, Packet, and Frame host host HTTP HTTP message HTTP TCP TCP segment TCP router router IP IP packet IP IP packet IP
More informationCommunication Networks
Communication Networks Spring 2018 Laurent Vanbever nsg.ee.ethz.ch ETH Zürich (D-ITET) April 30 2018 Materials inspired from Scott Shenker & Jennifer Rexford Last week on Communication Networks We started
More informationChapter III: Transport Layer
Chapter III: Transport Layer UG3 Computer Communications & Networks (COMN) Mahesh Marina mahesh@ed.ac.uk Slides thanks to Myungjin Lee and copyright of Kurose and Ross Principles of congestion control
More informationCongestion Control for High Bandwidth-delay Product Networks
Congestion Control for High Bandwidth-delay Product Networks Dina Katabi, Mark Handley, Charlie Rohrs Presented by Chi-Yao Hong Adapted from slides by Dina Katabi CS598pbg Sep. 10, 2009 Trends in the Future
More informationOperating Systems and Networks. Network Lecture 10: Congestion Control. Adrian Perrig Network Security Group ETH Zürich
Operating Systems and Networks Network Lecture 10: Congestion Control Adrian Perrig Network Security Group ETH Zürich Where we are in the Course More fun in the Transport Layer! The mystery of congestion
More informationWhere we are in the Course. Topic. Nature of Congestion. Nature of Congestion (3) Nature of Congestion (2) Operating Systems and Networks
Operating Systems and Networks Network Lecture 0: Congestion Control Adrian Perrig Network Security Group ETH Zürich Where we are in the Course More fun in the Transport Layer! The mystery of congestion
More informationCongestion Control In The Internet Part 2: How it is implemented in TCP. JY Le Boudec 2015
1 Congestion Control In The Internet Part 2: How it is implemented in TCP JY Le Boudec 2015 Contents 1. Congestion control in TCP 2. The fairness of TCP 3. The loss throughput formula 4. Explicit Congestion
More informationCUBIC. Qian HE (Steve) CS 577 Prof. Bob Kinicki
CUBIC Qian HE (Steve) CS 577 Prof. Bob Kinicki Agenda Brief Introduction of CUBIC Prehistory of CUBIC Standard TCP BIC CUBIC Conclusion 1 Brief Introduction CUBIC is a less aggressive and more systematic
More informationOverview. TCP congestion control Computer Networking. TCP modern loss recovery. TCP modeling. TCP Congestion Control AIMD
Overview 15-441 Computer Networking Lecture 9 More TCP & Congestion Control TCP congestion control TCP modern loss recovery TCP modeling Lecture 9: 09-25-2002 2 TCP Congestion Control Changes to TCP motivated
More informationADVANCED TOPICS FOR CONGESTION CONTROL
ADVANCED TOPICS FOR CONGESTION CONTROL Congestion Control The Internet only functions because TCP s congestion control does an effective job of matching traffic demand to available capacity. TCP s Window
More informationLecture 4: Congestion Control
Lecture 4: Congestion Control Overview Internet is a network of networks Narrow waist of IP: unreliable, best-effort datagram delivery Packet forwarding: input port to output port Routing protocols: computing
More informationcs/ee 143 Communication Networks
cs/ee 143 Communication Networks Chapter 4 Transport Text: Walrand & Parakh, 2010 Steven Low CMS, EE, Caltech Recap: Internet overview Some basic mechanisms n Packet switching n Addressing n Routing o
More informationimage 3.8 KB Figure 1.6: Example Web Page
image. KB image 1 KB Figure 1.: Example Web Page and is buffered at a router, it must wait for all previously queued packets to be transmitted first. The longer the queue (i.e., the more packets in the
More informationCS 268: Computer Networking. This Lecture: Congestion Control
CS 268: Computer Networking L-4 TCP This Lecture: Congestion Control Congestion Control Assigned Reading [Chiu & Jain] Analysis of Increase and Decrease Algorithms for Congestion Avoidance in Computer
More informationComputer Networking Introduction
Computer Networking Introduction Halgurd S. Maghdid Software Engineering Department Koya University-Koya, Kurdistan-Iraq Lecture No.11 Chapter 3 outline 3.1 transport-layer services 3.2 multiplexing and
More informationTCP Review. Carey Williamson Department of Computer Science University of Calgary Winter 2018
TCP Review Carey Williamson Department of Computer Science University of Calgary Winter 2018 Credit: Much of this content came courtesy of Erich Nahum (IBM Research) The TCP Protocol Connection-oriented,
More informationCongestion Control In The Internet Part 2: How it is implemented in TCP. JY Le Boudec 2015
Congestion Control In The Internet Part 2: How it is implemented in TCP JY Le Boudec 2015 1 Contents 1. Congestion control in TCP 2. The fairness of TCP 3. The loss throughput formula 4. Explicit Congestion
More informationCOMP/ELEC 429/556 Introduction to Computer Networks
COMP/ELEC 429/556 Introduction to Computer Networks The TCP Protocol Some slides used with permissions from Edward W. Knightly, T. S. Eugene Ng, Ion Stoica, Hui Zhang T. S. Eugene Ng eugeneng at cs.rice.edu
More informationRecap. TCP connection setup/teardown Sliding window, flow control Retransmission timeouts Fairness, max-min fairness AIMD achieves max-min fairness
Recap TCP connection setup/teardown Sliding window, flow control Retransmission timeouts Fairness, max-min fairness AIMD achieves max-min fairness 81 Feedback Signals Several possible signals, with different
More informationReliable Transport II: TCP and Congestion Control
Reliable Transport II: TCP and Congestion Control Stefano Vissicchio UCL Computer Science COMP0023 Recap: Last Lecture Transport Concepts Layering context Transport goals Transport mechanisms and design
More informationComputer Networking
15-441 Computer Networking Lecture 17 TCP Performance & Future Eric Anderson Fall 2013 www.cs.cmu.edu/~prs/15-441-f13 Outline TCP modeling TCP details 2 TCP Performance Can TCP saturate a link? Congestion
More informationGood Ideas So Far Computer Networking. Outline. Sequence Numbers (reminder) TCP flow control. Congestion sources and collapse
Good Ideas So Far 15-441 Computer Networking Lecture 17 TCP & Congestion Control Flow control Stop & wait Parallel stop & wait Sliding window Loss recovery Timeouts Acknowledgement-driven recovery (selective
More informationCS 5520/ECE 5590NA: Network Architecture I Spring Lecture 13: UDP and TCP
CS 5520/ECE 5590NA: Network Architecture I Spring 2008 Lecture 13: UDP and TCP Most recent lectures discussed mechanisms to make better use of the IP address space, Internet control messages, and layering
More informationTCP congestion control:
TCP congestion control: Probing for usable bandwidth: Ideally: transmit as fast as possible (cwnd as large as possible) without loss Increase cwnd until loss (congestion) Loss: decrease cwnd, then begin
More informationFlow and Congestion Control (Hosts)
Flow and Congestion Control (Hosts) 14-740: Fundamentals of Computer Networks Bill Nace Material from Computer Networking: A Top Down Approach, 6 th edition. J.F. Kurose and K.W. Ross traceroute Flow Control
More informationLecture 14: Congestion Control"
Lecture 14: Congestion Control" CSE 222A: Computer Communication Networks George Porter Thanks: Amin Vahdat, Dina Katabi and Alex C. Snoeren Lecture 14 Overview" TCP congestion control review Dukkipati
More informationCS Networks and Distributed Systems. Lecture 10: Congestion Control
CS 3700 Networks and Distributed Systems Lecture 10: Congestion Control Revised 2/9/2014 Transport Layer 2 Application Presentation Session Transport Network Data Link Physical Function:! Demultiplexing
More informationOutline. User Datagram Protocol (UDP) Transmission Control Protocol (TCP) Transport layer (cont.) Transport layer. Background UDP.
Outline User Datagram Protocol (UDP) Transmission Control Protocol (TCP) Matti Siekkinen 22.09.2009 Background UDP Role and Functioning TCP Basics Error control Flow control Congestion control Transport
More informationLecture 11. Transport Layer (cont d) Transport Layer 1
Lecture 11 Transport Layer (cont d) Transport Layer 1 Agenda The Transport Layer (continue) Connection-oriented Transport (TCP) Flow Control Connection Management Congestion Control Introduction to the
More informationTransport Layer PREPARED BY AHMED ABDEL-RAOUF
Transport Layer PREPARED BY AHMED ABDEL-RAOUF TCP Flow Control TCP Flow Control 32 bits source port # dest port # head len sequence number acknowledgement number not used U A P R S F checksum Receive window
More informationPrinciples of congestion control
Principles of congestion control Congestion: Informally: too many sources sending too much data too fast for network to handle Different from flow control! Manifestations: Lost packets (buffer overflow
More informationCongestion Control. Brighten Godfrey CS 538 January Based in part on slides by Ion Stoica
Congestion Control Brighten Godfrey CS 538 January 31 2018 Based in part on slides by Ion Stoica Announcements A starting point: the sliding window protocol TCP flow control Make sure receiving end can
More informationCSE 123A Computer Networks
CSE 123A Computer Networks Winter 2005 Lecture 14 Congestion Control Some images courtesy David Wetherall Animations by Nick McKeown and Guido Appenzeller The bad news and the good news The bad news: new
More informationFunctionality Split Computer Networking. Transport Protocols. Overview. Multiplexing & Demultiplexing
Functionality Split 15-441 Computer Networking Transport Layer Network provides best-effort delivery End-systems implement many functions Reliability In-order delivery Demultiplexing Message boundaries
More informationCS644 Advanced Networks
What we know so far CS644 Advanced Networks Lecture 6 Beyond TCP Congestion Control Andreas Terzis TCP Congestion control based on AIMD window adjustment [Jac88] Saved Internet from congestion collapse
More information6.1 Internet Transport Layer Architecture 6.2 UDP (User Datagram Protocol) 6.3 TCP (Transmission Control Protocol) 6. Transport Layer 6-1
6. Transport Layer 6.1 Internet Transport Layer Architecture 6.2 UDP (User Datagram Protocol) 6.3 TCP (Transmission Control Protocol) 6. Transport Layer 6-1 6.1 Internet Transport Layer Architecture The
More informationChapter II. Protocols for High Speed Networks. 2.1 Need for alternative Protocols
Chapter II Protocols for High Speed Networks 2.1 Need for alternative Protocols As the conventional TCP suffers from poor performance on high bandwidth delay product links [47] meant for supporting transmission
More informationFast Retransmit. Problem: coarsegrain. timeouts lead to idle periods Fast retransmit: use duplicate ACKs to trigger retransmission
Fast Retransmit Problem: coarsegrain TCP timeouts lead to idle periods Fast retransmit: use duplicate ACKs to trigger retransmission Packet 1 Packet 2 Packet 3 Packet 4 Packet 5 Packet 6 Sender Receiver
More informationReliable Transport II: TCP and Congestion Control
Reliable Transport II: TCP and Congestion Control Brad Karp UCL Computer Science CS 3035/GZ01 31 st October 2013 Outline Slow Start AIMD Congestion control Throughput, loss, and RTT equation Connection
More informationChapter 3 outline. 3.5 Connection-oriented transport: TCP. 3.6 Principles of congestion control 3.7 TCP congestion control
Chapter 3 outline 3.1 Transport-layer services 3.2 Multiplexing and demultiplexing 3.3 Connectionless transport: UDP 3.4 Principles of reliable data transfer 3.5 Connection-oriented transport: TCP segment
More informationCS321: Computer Networks Congestion Control in TCP
CS321: Computer Networks Congestion Control in TCP Dr. Manas Khatua Assistant Professor Dept. of CSE IIT Jodhpur E-mail: manaskhatua@iitj.ac.in Causes and Cost of Congestion Scenario-1: Two Senders, a
More informationTCP based Receiver Assistant Congestion Control
International Conference on Multidisciplinary Research & Practice P a g e 219 TCP based Receiver Assistant Congestion Control Hardik K. Molia Master of Computer Engineering, Department of Computer Engineering
More informationTransport layer. UDP: User Datagram Protocol [RFC 768] Review principles: Instantiation in the Internet UDP TCP
Transport layer Review principles: Reliable data transfer Flow control Congestion control Instantiation in the Internet UDP TCP 1 UDP: User Datagram Protocol [RFC 768] No frills, bare bones Internet transport
More informationTransport layer. Review principles: Instantiation in the Internet UDP TCP. Reliable data transfer Flow control Congestion control
Transport layer Review principles: Reliable data transfer Flow control Congestion control Instantiation in the Internet UDP TCP 1 UDP: User Datagram Protocol [RFC 768] No frills, bare bones Internet transport
More informationCS 356: Introduction to Computer Networks. Lecture 16: Transmission Control Protocol (TCP) Chap. 5.2, 6.3. Xiaowei Yang
CS 356: Introduction to Computer Networks Lecture 16: Transmission Control Protocol (TCP) Chap. 5.2, 6.3 Xiaowei Yang xwy@cs.duke.edu Overview TCP Connection management Flow control When to transmit a
More informationTCP Congestion Control
6.033, Spring 2014 TCP Congestion Control Dina Katabi & Sam Madden nms.csail.mit.edu/~dina Sharing the Internet How do you manage resources in a huge system like the Internet, where users with different
More informationTransport Layer. Application / Transport Interface. Transport Layer Services. Transport Layer Connections
Application / Transport Interface Application requests service from transport layer Transport Layer Application Layer Prepare Transport service requirements Data for transport Local endpoint node address
More informationCongestion Control for High-Bandwidth-Delay-Product Networks: XCP vs. HighSpeed TCP and QuickStart
Congestion Control for High-Bandwidth-Delay-Product Networks: XCP vs. HighSpeed TCP and QuickStart Sally Floyd September 11, 2002 ICIR Wednesday Lunch 1 Outline: Description of the problem. Description
More informationLecture 21: Congestion Control" CSE 123: Computer Networks Alex C. Snoeren
Lecture 21: Congestion Control" CSE 123: Computer Networks Alex C. Snoeren Lecture 21 Overview" How fast should a sending host transmit data? Not to fast, not to slow, just right Should not be faster than
More informationCongestion / Flow Control in TCP
Congestion and Flow Control in 1 Flow Control and Congestion Control Flow control Sender avoids overflow of receiver buffer Congestion control All senders avoid overflow of intermediate network buffers
More informationOverview. TCP & router queuing Computer Networking. TCP details. Workloads. TCP Performance. TCP Performance. Lecture 10 TCP & Routers
Overview 15-441 Computer Networking TCP & router queuing Lecture 10 TCP & Routers TCP details Workloads Lecture 10: 09-30-2002 2 TCP Performance TCP Performance Can TCP saturate a link? Congestion control
More informationChapter 3 Transport Layer
Chapter 3 Transport Layer 1 Chapter 3 outline 3.1 Transport-layer services 3.2 Multiplexing and demultiplexing 3.3 Connectionless transport: UDP 3.4 Principles of reliable data transfer 3.5 Connection-oriented
More informationTransport protocols. Transport Layer 3-1
Transport protocols 1 Transport services and protocols provide logical communication between app processes running on different hosts application transport network data link physical transport protocols
More informationCMPE 150/L : Introduction to Computer Networks. Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 10
CMPE 150/L : Introduction to Computer Networks Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 10 1 Midterm exam Midterm next Thursday Close book but one-side 8.5"x11" note is allowed (must
More informationContents. CIS 632 / EEC 687 Mobile Computing. TCP in Fixed Networks. Prof. Chansu Yu
CIS 632 / EEC 687 Mobile Computing TCP in Fixed Networks Prof. Chansu Yu Contents Physical layer issues Communication frequency Signal propagation Modulation and Demodulation Channel access issues Multiple
More informationCS 356: Computer Network Architectures Lecture 19: Congestion Avoidance Chap. 6.4 and related papers. Xiaowei Yang
CS 356: Computer Network Architectures Lecture 19: Congestion Avoidance Chap. 6.4 and related papers Xiaowei Yang xwy@cs.duke.edu Overview More on TCP congestion control Theory Macroscopic behavior TCP
More informationChapter 3- parte B outline
Chapter 3- parte B outline 3.1 transport-layer services 3.2 multiplexing and demultiplexing 3.3 connectionless transport: UDP 3.4 principles of reliable data transfer 3.5 connection-oriented transport:
More informationTransmission Control Protocol (TCP)
TETCOS Transmission Control Protocol (TCP) Comparison of TCP Congestion Control Algorithms using NetSim @2017 Tetcos. This document is protected by copyright, all rights reserved Table of Contents 1. Abstract....
More informationbitcoin allnet exam review: transport layer TCP basics congestion control project 2 Computer Networks ICS 651
bitcoin allnet exam review: transport layer TCP basics congestion control project 2 Computer Networks ICS 651 Bitcoin distributed, reliable ("hard to falsify") time-stamping network each time-stamp record
More informationECE 333: Introduction to Communication Networks Fall 2001
ECE 333: Introduction to Communication Networks Fall 2001 Lecture 28: Transport Layer III Congestion control (TCP) 1 In the last lecture we introduced the topics of flow control and congestion control.
More informationDoes current Internet Transport work over Wireless? Reviewing the status of IETF work in this area
Does current Internet Transport work over Wireless? Reviewing the status of IETF work in this area Sally Floyd March 2, 2000 IAB Workshop on Wireless Internetworking 1 Observations: Transport protocols
More informationTransport Protocols and TCP
Transport Protocols and TCP Functions Connection establishment and termination Breaking message into packets Error recovery ARQ Flow control Multiplexing, de-multiplexing Transport service is end to end
More informationCS4700/CS5700 Fundamentals of Computer Networks
CS4700/CS5700 Fundamentals of Computer Networks Lecture 15: Congestion Control Slides used with permissions from Edward W. Knightly, T. S. Eugene Ng, Ion Stoica, Hui Zhang Alan Mislove amislove at ccs.neu.edu
More informationCS 268: Lecture 7 (Beyond TCP Congestion Control)
Outline CS 68: Lecture 7 (Beyond TCP Congestion Control) TCP-Friendly Rate Control (TFRC) explicit Control Protocol Ion Stoica Computer Science Division Department of Electrical Engineering and Computer
More informationCSCI Topics: Internet Programming Fall 2008
CSCI 491-01 Topics: Internet Programming Fall 2008 Transport Layer Derek Leonard Hendrix College October 22, 2008 Original slides copyright 1996-2007 J.F Kurose and K.W. Ross 1 Chapter 3: Roadmap 3.1 Transport-layer
More informationMid Term Exam Results
Mid Term Exam Results v Grade Count Percentage v 20-29 1 2.38% v 40-49 2 4.76% v 50-59 5 11.90% v 60-69 18 42.86% v 70-80 16 38.10% Please hand the paper back to me after this class since we have to update
More informationPart1: Lecture 2! TCP congestion control!
Part1: Lecture 2 TCP congestion control Summary of last time End to end principle Net neutrality TCP headers: SEQ and ACK number Transport protocols: UDP and TCP TCP hadnshakes TCP termination Flow control:
More information