Congestion Control in TCP
|
|
- Rhoda Lewis
- 6 years ago
- Views:
Transcription
1 Congestion Control in TCP Antonio Carzaniga Faculty of Informatics University of Lugano November 11, 2014
2 Outline Intro to congestion control Input rate vs. output throughput Congestion window Congestion avoidance Slow start Fast recovery
3 Understanding Congestion A router behaves a lot like a kitchen sink
4 Understanding Congestion A router behaves a lot like a kitchen sink max throughput T
5 Understanding Congestion A router behaves a lot like a kitchen sink λ 1 = T/2 max throughput T throughput= T/2
6 Understanding Congestion A router behaves a lot like a kitchen sink λ 1 = T/2 λ 2 = T/2 max throughput T throughput= T
7 Understanding Congestion A router behaves a lot like a kitchen sink λ 3 = T/2 λ 1 = T/2 λ 2 = T/2 max throughput T throughput= T
8 Understanding Congestion A router behaves a lot like a kitchen sink λ 3 = T/2 λ 1 = T/2 λ 2 = T/2 max throughput T throughput= T
9 Understanding Congestion A router behaves a lot like a kitchen sink λ 3 = T/2 λ 1 = T/2 λ 2 = T/2 max throughput T throughput= T
10 Understanding Congestion A router behaves a lot like a kitchen sink λ 3 = T/2 λ 1 = T/2 λ 2 = T/2 max throughput T throughput= T
11 Understanding Congestion A router behaves a lot like a kitchen sink λ 3 = T/2 λ 1 = T/2 λ 2 = T/2 max throughput T throughput= T
12 Queuing Delay Antonio Carzaniga
13 Queuing Delay Total latency is the sum of link latency, processing time, and the time that a packet spends in the input queue L= TX + CPU + q where q = q /T
14 Queuing Delay Total latency is the sum of link latency, processing time, and the time that a packet spends in the input queue L= TX + CPU + q where q = q /T Ideal case: constant input data rate λ in < T In this case the q = 0, because q =0
15 Queuing Delay Total latency is the sum of link latency, processing time, and the time that a packet spends in the input queue L= TX + CPU + q where q = q /T Ideal case: constant input data rate λ in < T In this case the q = 0, because q =0 Extreme case: constant input data rate λ in > T In this case q =(λ in T)t and therefore q = λ in T T t
16 Queuing Delay Antonio Carzaniga
17 Queuing Delay Steady-state queuing delay 0 λ in < T q = λ in T T t λ in > T
18 Queuing Delay Steady-state queuing delay 0 λ in < T q = λ in T T t λ in > T q λ in T ideal input flow λ in constant
19 Queuing Delay Steady-state queuing delay 0 λ in < T q = λ in T T t λ in > T q q λ in T ideal input flow λ in constant λ in T realistic input flow λ in variable
20 Queuing Delay Antonio Carzaniga
21 Queuing Delay Conclusion: as the input rateλ in approaches the maximum throughput T, packets will experience very long delays
22 Queuing Delay Conclusion: as the input rateλ in approaches the maximum throughput T, packets will experience very long delays More realistic assumptions and models finite queue length (buffers) in routers effects of retransmission overhead
23 Queuing Delay Conclusion: as the input rateλ in approaches the maximum throughput T, packets will experience very long delays More realistic assumptions and models finite queue length (buffers) in routers effects of retransmission overhead T λ out λ in
24 Queuing Delay Conclusion: as the input rateλ in approaches the maximum throughput T, packets will experience very long delays More realistic assumptions and models finite queue length (buffers) in routers effects of retransmission overhead T congestion λ out λ in
25 What to Do? What to do when the network is congested and queues are full? λ 3 = T/2 λ 1 = T/2 λ 2 = T/2 max throughput T throughput= T
26 What to Do? What to do when the network is congested and queues are full? λ 1 = T/2 max throughput T throughput= T
27 What to Do? What to do when the network is congested and queues are full? λ 1 = T/2 max throughput T throughput= T
28 What to Do? What to do when the network is congested and queues are full? λ 1 = T/2 max throughput T throughput= T
29 What to Do? What to do when the network is congested and queues are full? λ 1 = T/2 max throughput T throughput= T
30 Congestion Control (in TCP) Antonio Carzaniga
31 Congestion Control (in TCP) Approach: the sender limits its output rate according to the status of the network the sender output rate becomes (part of) the input rate for the network (λ in )
32 Congestion Control (in TCP) Approach: the sender limits its output rate according to the status of the network the sender output rate becomes (part of) the input rate for the network (λ in ) Issues
33 Congestion Control (in TCP) Approach: the sender limits its output rate according to the status of the network the sender output rate becomes (part of) the input rate for the network (λ in ) Issues how does the sender measure the status of the network? i.e., how does the sender detect congestion? Antonio Carzaniga
34 Congestion Control (in TCP) Approach: the sender limits its output rate according to the status of the network the sender output rate becomes (part of) the input rate for the network (λ in ) Issues how does the sender measure the status of the network? i.e., how does the sender detect congestion? how does the sender effectively limit its output rate? Antonio Carzaniga
35 Congestion Control (in TCP) Approach: the sender limits its output rate according to the status of the network the sender output rate becomes (part of) the input rate for the network (λ in ) Issues how does the sender measure the status of the network? i.e., how does the sender detect congestion? how does the sender effectively limit its output rate? how should the sender modulate its output rate? i.e., what algorithm should the sender use to decrease or increase its output rate? Antonio Carzaniga
36 Detecting Congestion Antonio Carzaniga
37 Detecting Congestion If all traffic is correctly acknowledged, then the sender assumes (quite correctly) that there is no congestion
38 Detecting Congestion If all traffic is correctly acknowledged, then the sender assumes (quite correctly) that there is no congestion Congestion means that the queue of one or more routers between the sender and the receiver overflow the visible effect is that some segments are dropped
39 Detecting Congestion If all traffic is correctly acknowledged, then the sender assumes (quite correctly) that there is no congestion Congestion means that the queue of one or more routers between the sender and the receiver overflow the visible effect is that some segments are dropped Therefore the server assumes that the network is congested when it detects a segment loss time out (i.e., no ACK) multiple acknowledgements (i.e., NACK)
40 Congestion Window The sender maintains a congestion window W
41 Congestion Window The sender maintains a congestion window W The congestion window limits the amount of bytes that the sender pushes into the network before blocking waiting for acknowledgments
42 Congestion Window The sender maintains a congestion window W The congestion window limits the amount of bytes that the sender pushes into the network before blocking waiting for acknowledgments where LastByteSent LastByteAcked W W = min(congestionwindow, ReceiverWindow)
43 Congestion Window The sender maintains a congestion window W The congestion window limits the amount of bytes that the sender pushes into the network before blocking waiting for acknowledgments where LastByteSent LastByteAcked W W = min(congestionwindow, ReceiverWindow) The resulting maximum output rate is roughly λ= W 2L
44 Congestion Control How does TCP modulate its output rate?
45 Congestion Control How does TCP modulate its output rate? Additive-increase and multiplicative-decrease
46 Congestion Control How does TCP modulate its output rate? Additive-increase and multiplicative-decrease Slow start
47 Congestion Control How does TCP modulate its output rate? Additive-increase and multiplicative-decrease Slow start Reaction to timeout events
48 Additive-Increase/Multiplicative-Decrease Antonio Carzaniga
49 Additive-Increase/Multiplicative-Decrease How W is reduced: at every loss event, TCP halves the congestion window
50 Additive-Increase/Multiplicative-Decrease How W is reduced: at every loss event, TCP halves the congestion window e.g., suppose the window size W is currently 20Kb, and a loss is detected TCP reduces W to 10Kb
51 Additive-Increase/Multiplicative-Decrease How W is reduced: at every loss event, TCP halves the congestion window e.g., suppose the window size W is currently 20Kb, and a loss is detected TCP reduces W to 10Kb How W is increased: at every (good) acknowledgment, TCP increments W by 1MSS/W, so as to increase W by MSS every round-trip time 2L. This process is called congestion avoidance
52 Additive-Increase/Multiplicative-Decrease How W is reduced: at every loss event, TCP halves the congestion window e.g., suppose the window size W is currently 20Kb, and a loss is detected TCP reduces W to 10Kb How W is increased: at every (good) acknowledgment, TCP increments W by 1MSS/W, so as to increase W by MSS every round-trip time 2L. This process is called congestion avoidance e.g., suppose W = and MSS= 1460, then the sender increases W to after 10 acknowledgments acknowledgments
53 Additive-Increase/Multiplicative-Decrease Window size W over time W Time
54 Slow Start What is the initial value of W?
55 Slow Start What is the initial value of W? The initial value of W is MSS, that is 1 segment, which is quite low for modern networks
56 Slow Start What is the initial value of W? The initial value of W is MSS, that is 1 segment, which is quite low for modern networks To get quickly to a good throughput level, TCP increases its sending rate exponentially for its first growth phase, up to a slow-start threshold (ssthresh)
57 Slow Start What is the initial value of W? The initial value of W is MSS, that is 1 segment, which is quite low for modern networks To get quickly to a good throughput level, TCP increases its sending rate exponentially for its first growth phase, up to a slow-start threshold (ssthresh) After the threshold, TCP proceeds with its linear push
58 Slow Start What is the initial value of W? The initial value of W is MSS, that is 1 segment, which is quite low for modern networks To get quickly to a good throughput level, TCP increases its sending rate exponentially for its first growth phase, up to a slow-start threshold (ssthresh) After the threshold, TCP proceeds with its linear push This process is called slow start because of the small initial value of W
59 Timeouts vs. NACKs As we know, three duplicate ACKs are interpreted as a NACK
60 Timeouts vs. NACKs As we know, three duplicate ACKs are interpreted as a NACK Both timeouts and NACKs signal a loss, but they say different things about the status of the network
61 Timeouts vs. NACKs As we know, three duplicate ACKs are interpreted as a NACK Both timeouts and NACKs signal a loss, but they say different things about the status of the network A timeout indicates congestion
62 Timeouts vs. NACKs As we know, three duplicate ACKs are interpreted as a NACK Both timeouts and NACKs signal a loss, but they say different things about the status of the network A timeout indicates congestion Three (duplicate) ACKs suggest that the network is still able to deliver segments along that path
63 Timeouts vs. NACKs As we know, three duplicate ACKs are interpreted as a NACK Both timeouts and NACKs signal a loss, but they say different things about the status of the network A timeout indicates congestion Three (duplicate) ACKs suggest that the network is still able to deliver segments along that path So, TCP reacts differently to a timeout and to a triple duplicate ACKs
64 Assuming the current window size is W = W Timeouts vs. NACKs
65 Assuming the current window size is W = W Timeout go back to W= MSS set ssthresh= W/2 run slow start up to W = ssthresh then proceed with congestion avoidance Timeouts vs. NACKs
66 Assuming the current window size is W = W Timeout go back to W= MSS set ssthresh= W/2 run slow start up to W = ssthresh then proceed with congestion avoidance Timeouts vs. NACKs NACK (i.e., triple duplicate-ack) set ssthresh= W/2 cut W in half: W = W/2 run congestion avoidance, ramping up W linearly This is called fast recovery
67 Sender Behavior W Time
68 Sender Behavior W MSS Time
69 Sender Behavior W NACK MSS Time
70 Sender Behavior W NACK MSS Time
71 Sender Behavior timeout W NACK MSS Time
72 Sender Behavior timeout W NACK MSS Time
73 Sender Behavior timeout W NACK MSS Time
74 Sender Behavior timeout W NACK MSS Time
75 Sender Behavior NACK timeout W NACK MSS Time
76 Sender Behavior NACK W NACK timeout NACK MSS Time
77 Sender Behavior NACK W NACK timeout NACK MSS Time
78 Sender Behavior NACK W NACK timeout NACK MSS Time
79 Sender Behavior SS=slow start CA=congestion avoidance SS CA SS CA CA CA NACK W NACK timeout NACK MSS Time
Congestion Control in TCP
Congestion Control in CP Antonio Carzaniga Faculty of Informatics University of Lugano Apr 7, 2008 2005 2007 Antonio Carzaniga 1 Intro to congestion control Outline Input rate vs. output throughput Congestion
More informationCongestion Control in TCP
Congestion Control in TCP Antonio Carzaniga Faculty of Informatics University of Lugano May 6, 2005 Outline Intro to congestion control Input rate vs. output throughput Congestion window Congestion avoidance
More informationCongestion Control in TCP
Congestion Control in TCP Antonio Carzaniga Faculty of Informatics Università della Svizzera italiana November 22, 2017 Outline Intro to congestion control Input rate vs. output throughput Congestion window
More informationCongestion Control in TCP
Congestion Control in TCP Antonio Carzaniga Faculty of Informatics Università della Svizzera italiana November 16, 2018 Outline Intro to congestion control Input rate vs. output throughput Congestion window
More informationCSCI Topics: Internet Programming Fall 2008
CSCI 491-01 Topics: Internet Programming Fall 2008 Transport Layer Derek Leonard Hendrix College October 20, 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 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 Layer Congestion Control
Transport Layer Congestion Control Tom Kelliher, CS 325 Apr. 7, 2008 1 Administrivia Announcements Assignment Read 4.1 4.3. From Last Time TCP Reliability. Outline 1. Congestion control principles. 2.
More informationCongestion Control 3/16/09
Congestion Control Outline Resource Allocation Queuing TCP Congestion Control Spring 009 CSE3064 Issues Two sides of the same coin pre-allocate resources so at to avoid congestion control congestion if
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 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 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 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 informationChapter 3 Transport Layer
Chapter 3 Transport Layer Part c Congestion Control Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley Transport Layer 3-1 Chapter 3 outline 3.1 transport-layer
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 informationTCP Congestion Control. Lecture 16. Outline. TCP Congestion Control. Additive Increase / Multiplicative Decrease (AIMD)
Lecture 16 TCP Congestion Control Homework 6 Due Today TCP uses ACK arrival as a signal to transmit a new packet. Since connections come-and-go TCP congestion control must be adaptive. TCP congestion control
More informationTCP Congestion Control
TCP Congestion Control Lecture material taken from Computer Networks A Systems Approach, Third Ed.,Peterson and Davie, Morgan Kaufmann, 2003. Computer Networks: TCP Congestion Control 1 TCP Congestion
More informationChapter 3 Transport Layer
Chapter 3 Transport Layer A note on the use of these ppt slides: We re making these slides freely available to all (faculty, students, readers). They re in PowerPoint form so you can add, modify, and delete
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 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 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 informationThe Transport Layer: TCP & Congestion Control
The Transport Layer: TCP & Congestion Control Smith College, CSC 249 Feb 20, 2018 1 Oeriew: TCP Basics q Recap: using SEQ and ACK numbers SEQ random initial number for numbering the bytes in the application
More informationThe Transport Layer Congestion control in TCP
CPSC 360 Network Programming The Transport Layer Congestion control in TCP Michele Weigle Department of Computer Science Clemson University mweigle@cs.clemson.edu http://www.cs.clemson.edu/~mweigle/courses/cpsc360
More informationTCP Congestion Control
TCP Congestion Control What is Congestion The number of packets transmitted on the network is greater than the capacity of the network Causes router buffers (finite size) to fill up packets start getting
More informationTCP Congestion Control
What is Congestion TCP Congestion Control The number of packets transmitted on the network is greater than the capacity of the network Causes router buffers (finite size) to fill up packets start getting
More informationFlow and Congestion Control Marcos Vieira
Flow and Congestion Control 2014 Marcos Vieira Flow Control Part of TCP specification (even before 1988) Goal: not send more data than the receiver can handle Sliding window protocol Receiver uses window
More informationCongestion Control. Queuing Discipline Reacting to Congestion Avoiding Congestion. Issues
Congestion Control Outline Queuing Discipline Reacting to Congestion Avoiding Congestion Issues Two sides of the same coin pre-allocate resources to avoid congestion (e.g. telephone networks) control congestion
More informationTCP Congestion Control 65KB W
TCP Congestion Control 65KB W TO 3DA 3DA TO 0.5 0.5 0.5 0.5 3 3 1 SS SS CA SS CA TCP s Congestion Window Maintenance TCP maintains a congestion window (cwnd), based on packets Sender s window is limited
More informationCongestion Control in TCP
Congestion Control in TCP Outline Overview of RENO TCP Reacting to Congestion SS/AIMD example CS 640 1 TCP Congestion Control The idea of TCP congestion control is for each source to determine how much
More informationLecture 15: Transport Layer Congestion Control
Lecture 15: Transport Layer Congestion Control COMP 332, Spring 2018 Victoria Manfredi Acknowledgements: materials adapted from Computer Networking: A Top Down Approach 7 th edition: 1996-2016, J.F Kurose
More informationCS Transport. Outline. Window Flow Control. Window Flow Control
CS 54 Outline indow Flow Control (Very brief) Review of TCP TCP throughput modeling TCP variants/enhancements Transport Dr. Chan Mun Choon School of Computing, National University of Singapore Oct 6, 005
More informationCongestion Control. Principles of Congestion Control. Network-assisted Congestion Control: ATM. Congestion Control. Computer Networks 10/21/2009
Congestion Control Kai Shen Principles of Congestion Control Congestion: informally: too many sources sending too much data too fast for the network to handle results of congestion: long delays (e.g. queueing
More informationADVANCED COMPUTER NETWORKS
ADVANCED COMPUTER NETWORKS Congestion Control and Avoidance 1 Lecture-6 Instructor : Mazhar Hussain CONGESTION CONTROL When one part of the subnet (e.g. one or more routers in an area) becomes overloaded,
More informationCSCD 330 Network Programming Winter 2015
CSCD 330 Network Programming Winter 2015 Lecture 11a Transport Layer Reading: Chapter 3 Some Material in these slides from J.F Kurose and K.W. Ross All material copyright 1996-2007 1 Chapter 3 Sections
More informationECE 610: Homework 4 Problems are taken from Kurose and Ross.
ECE 610: Homework 4 Problems are taken from Kurose and Ross. Problem 1: Host A and B are communicating over a TCP connection, and Host B has already received from A all bytes up through byte 248. Suppose
More informationLecture 8. TCP/IP Transport Layer (2)
Lecture 8 TCP/IP Transport Layer (2) Outline (Transport Layer) Principles behind transport layer services: multiplexing/demultiplexing principles of reliable data transfer learn about transport layer protocols
More informationCongestion Control. Principles of Congestion Control. Network assisted congestion. Asynchronous Transfer Mode. Computer Networks 10/23/2013
Congestion Control Kai Shen Principles of Congestion Control Congestion: Informally: too many sources sending too much data too fast for the network to handle Results of congestion: long delays (e.g. queueing
More informationCSC 4900 Computer Networks: TCP
CSC 4900 Computer Networks: TCP Professor Henry Carter Fall 2017 Chapter 3 outline 3.1 Transport-layer services 3.2 Multiplexing and demultiplexing 3.3 Connectionless transport: UDP 3.4 Principles of reliable
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 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 informationTCP reliable data transfer. Chapter 3 outline. TCP sender events: TCP sender (simplified) TCP: retransmission scenarios. TCP: retransmission scenarios
Chapter 3 outline TCP reliable 3.2 principles of reliable 3.3 connection-oriented flow 3.4 principles of congestion 3.5 TCP congestion TCP creates rdt service on top of IP s unreliable service pipelined
More informationCSCI-1680 Transport Layer II Data over TCP Rodrigo Fonseca
CSCI-1680 Transport Layer II Data over TCP Rodrigo Fonseca Based partly on lecture notes by David Mazières, Phil Levis, John Janno< Last Class CLOSED Passive open Close Close LISTEN Introduction to TCP
More informationTCP Congestion Control. Housekeeping. Additive Increase/Multiplicative Decrease. AIMD (cont) Pick up folders for exam study Exam next Friday, Nov.
Fall 01 CptS/EE 555 3 Fall 01 CptS/EE 555 4 TCP Congestion Control Idea assumes best-effort network (FIFO or FQ routers)each source determines network capacity for itself uses implicit feedback ACKs pace
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 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 informationAdvanced Computer Networks
Advanced Computer Networks Congestion control in TCP Prof. Andrzej Duda duda@imag.fr http://duda.imag.fr 1 Contents Principles TCP congestion control states Slow Start Congestion Avoidance Fast Recovery
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 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 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 informationCS3600 SYSTEMS AND NETWORKS
CS3600 SYSTEMS AND NETWORKS NORTHEASTERN UNIVERSITY Lecture 24: Congestion Control Prof. Alan Mislove (amislove@ccs.neu.edu) Slides used with permissions from Edward W. Knightly, T. S. Eugene Ng, Ion Stoica,
More informationa) Adding the two bytes gives Taking the one s complement gives
EE33- solutions for homework #3 (3 problems) Problem 3 Note, wrap around if overflow One's complement = To detect errors, the receiver adds the four words (the three original words and the checksum) If
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 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 informationCS CS COMPUTER NETWORKS CS CS CHAPTER 6. CHAPTER 6 Congestion Control
COMPUTER NETWORKS CS 45201 CS 55201 CHAPTER 6 Congestion Control COMPUTER NETWORKS CS 45201 CS 55201 CHAPTER 6 Congestion Control P. Farrell and H. Peyravi Department of Computer Science Kent State University
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 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 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 informationCNT 6885 Network Review on Transport Layer
CNT 6885 Network Review on Transport Layer Jonathan Kavalan, Ph.D. Department of Computer, Information Science and Engineering (CISE), University of Florida User Datagram Protocol [RFC 768] no frills,
More information8. TCP Congestion Control
8. TCP Congestion Control 1 TCP Congestion Control Slow-start increase Multiplicative decrease Congestion avoidance Measurement of variation Exponential timer backoff 2002 Yanghee Choi 2 Congestion Control
More informationEnd-to-End Protocols. Transport Protocols. User Datagram Protocol (UDP) Application Layer Expectations
# # # & *, + & %$ & Transport Protocols End-to-End Protocols Convert host-to-host packet delivery service into a process-to-process communication channel Demultiplexing: Multiple applications can share
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 informationChapter 3 Review Questions
Chapter 3 Review Questions. 2. 3. Source port number 6 and destination port number 37. 4. TCP s congestion control can throttle an application s sending rate at times of congestion. Designers of applications
More informationWireless TCP Performance Issues
Wireless TCP Performance Issues Issues, transport layer protocols Set up and maintain end-to-end connections Reliable end-to-end delivery of data Flow control Congestion control Udp? Assume TCP for the
More informationReview Questions for Midterm Exam-2 Fall 2016
Review Questions for Midterm Exam-2 Fall 2016 1. (Reference Page 340 of textbook) Which of the following statement is true? a. All hosts on the same subnet are configured with the same subnet mask. b.
More informationTopics. TCP sliding window protocol TCP PUSH flag TCP slow start Bulk data throughput
Topics TCP sliding window protocol TCP PUSH flag TCP slow start Bulk data throughput 2 Introduction In this chapter we will discuss TCP s form of flow control called a sliding window protocol It allows
More informationTCP over Wireless PROF. MICHAEL TSAI 2016/6/3
TCP over Wireless PROF. MICHAEL TSAI 2016/6/3 2 TCP Congestion Control (TCP Tahoe) Only ACK correctly received packets Congestion Window Size: Maximum number of bytes that can be sent without receiving
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 informationCorrecting mistakes. TCP: Overview RFCs: 793, 1122, 1323, 2018, TCP seq. # s and ACKs. GBN in action. TCP segment structure
Correcting mistakes Go-back-N: big picture: sender can have up to N unacked packets in pipeline rcvr only sends cumulative acks doesn t ack packet if there s a gap sender has r for oldest unacked packet
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 informationFall 2012: FCM 708 Bridge Foundation I
Fall 2012: FCM 708 Bridge Foundation I Prof. Shamik Sengupta Instructor s Website: http://jjcweb.jjay.cuny.edu/ssengupta/ Blackboard Website: https://bbhosted.cuny.edu/ Intro to Computer Networking Transport
More informationInvestigating the Use of Synchronized Clocks in TCP Congestion Control
Investigating the Use of Synchronized Clocks in TCP Congestion Control Michele Weigle (UNC-CH) November 16-17, 2001 Univ. of Maryland Symposium The Problem TCP Reno congestion control reacts only to packet
More information6.3 TCP congestion control 499
6.3 TCP congestion control 499 queue each time around. This results in each flow getting 1/nth of the bandwidth when there are n flows. With WFQ, however, one queue might have a weight of 2, a second queue
More informationCongestion Control. Resource allocation and congestion control problem
Congestion Control 188lecture8.ppt Pirkko Kuusela 1 Resource allocation and congestion control problem Problem 1: Resource allocation How to effectively and fairly allocate resources among competing users?
More informationInternet Networking recitation #10 TCP New Reno Vs. Reno
recitation #0 TCP New Reno Vs. Reno Spring Semester 200, Dept. of Computer Science, Technion 2 Introduction Packet Loss Management TCP Reno (RFC 258) can manage a loss of at most one packet from a single
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 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. 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 informationExercises TCP/IP Networking With Solutions
Exercises TCP/IP Networking With Solutions Jean-Yves Le Boudec Fall 2009 3 Module 3: Congestion Control Exercise 3.2 1. Assume that a TCP sender, called S, does not implement fast retransmit, but does
More informationComputer Network Fundamentals Spring Week 10 Congestion Control Andreas Terzis
Computer Network Fundamentals Spring 2008 Week 10 Congestion Control Andreas Terzis Outline Congestion Control TCP Congestion Control CS 344/Spring08 2 What We Know We know: How to process packets in a
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 informationCSE 473 Introduction to Computer Networks. Exam 2. Your name here: 11/7/2012
CSE 473 Introduction to Computer Networks Jon Turner Exam 2 Your name here: 11/7/2012 1. (10 points). The diagram at right shows a DHT with 16 nodes. Each node is labeled with the first value in its range
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 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 informationDetecting half-open connections. Observed TCP problems
Detecting half-open connections TCP A TCP B 1. (CRASH) 2. CLOSED 3. SYN-SENT 4. (!!) 5. SYN-SENT 6. SYN-SENT 7. SYN-SENT
More informationCongestion. Can t sustain input rate > output rate Issues: - Avoid congestion - Control congestion - Prioritize who gets limited resources
Congestion Source 1 Source 2 10-Mbps Ethernet 100-Mbps FDDI Router 1.5-Mbps T1 link Destination Can t sustain input rate > output rate Issues: - Avoid congestion - Control congestion - Prioritize who gets
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 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 informationEE122 MIDTERM EXAM: Scott Shenker, Ion Stoica
EE MITERM EXM: 00-0- Scott Shenker, Ion Stoica Last name Student I First name Login: ee- Please circle the last two letters of your login. a b c d e f g h i j k l m n o p q r s t u v w x y z a b c d e
More informationIntroduc)on to Computer Networks
Introduc)on to Computer Networks COSC 4377 Lecture 9 Spring 2012 February 15, 2012 Announcements HW4 due today Start working on HW5 In- class student presenta)ons TA office hours this week TR 1030a 100p
More informationHomework 3 50 points. 1. Computing TCP's RTT and timeout values (10 points)
Homework 3 50 points 1. Computing TCP's RTT and timeout values (10 points) Suppose that TCP's current estimated values for the round trip time (estimatedrtt) and deviation in the RTT (DevRTT) are 400 msec
More informationGoals of Today s Lecture! Congestion Control! Course So Far.! Congestion Control Overview! It s Not Just The Sender & Receiver! Congestion is Natural!
Goals of Today s Lecture! Congestion Control! EE 22: Intro to Communication Networks Fall 200 (MW 4-5:30 in 0 Barker) Scott Shenker TAs: Sameer Agarwal, Sara Alspaugh, Igor Ganichev, Prayag Narula http://inst.eecs.berkeley.edu/~ee22/
More informationCS519: Computer Networks. Lecture 5, Part 4: Mar 29, 2004 Transport: TCP congestion control
: Computer Networks Lecture 5, Part 4: Mar 29, 2004 Transport: TCP congestion control TCP performance We ve seen how TCP the protocol works Sequencing, receive window, connection setup and teardown And
More informationAdvanced Computer Networks
Advanced Computer Networks Congestion control in TCP Contents Principles TCP congestion control states Congestion Fast Recovery TCP friendly applications Prof. Andrzej Duda duda@imag.fr http://duda.imag.fr
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 informationECE4110, Internetwork Programming, QUIZ 2 - PRACTICE Spring 2006
Email Address ECE4110, Internetwork Programming, QUIZ 2 - PRACTICE Spring 2006 Name (Print) Prof. John A. Copeland Practice for April 11, 2006 Tel.: 404-894-5177 E-Mail: copeland@ece.gatech.edu RULES.
More informationTransmission Control Protocol (TCP)
Transmission Control Protocol (TCP) Antonio Carzaniga Faculty of Informatics University of Lugano May 3, 2005 Outline Intro to TCP Sequence numbers and acknowledgment numbers Timeouts and RTT estimation
More informationCongestion Control. Tom Anderson
Congestion Control Tom Anderson Bandwidth Allocation How do we efficiently share network resources among billions of hosts? Congestion control Sending too fast causes packet loss inside network -> retransmissions
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 informationComputer Networks Spring 2017 Homework 2 Due by 3/2/2017, 10:30am
15-744 Computer Networks Spring 2017 Homework 2 Due by 3/2/2017, 10:30am (please submit through e-mail to zhuoc@cs.cmu.edu and srini@cs.cmu.edu) Name: A Congestion Control 1. At time t, a TCP connection
More informationComputer Networks. Course Reference Model. Topic. Congestion What s the hold up? Nature of Congestion. Nature of Congestion 1/5/2015.
Course Reference Model Computer Networks 7 Application Provides functions needed by users Zhang, Xinyu Fall 204 4 Transport Provides end-to-end delivery 3 Network Sends packets over multiple links School
More information