Spring 2009CSE302641 Congestion Control Outline Resource Allocation Queuing TCP Congestion Control.

Slides:



Advertisements
Similar presentations
Slide Set 14: TCP Congestion Control. In this set... We begin Chapter 6 but with 6.3. We will cover Sections 6.3 and 6.4. Mainly deals with congestion.
Advertisements

Congestion Control Reasons: - too many packets in the network and not enough buffer space S = rate at which packets are generated R = rate at which receivers.
COT 4600 Operating Systems Fall 2009 Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 3:00-4:00 PM.
TCP Congestion Control
EE 4272Spring, 2003 Chapter 17 Transport Protocols Connection-Oriented Transport Protocol  Under Reliable Network Service  Design Issues  Under Unreliable.
ECE 4450:427/527 - Computer Networks Spring 2015
Lecture 8: TCP and Congestion Control Slides adapted from: Congestion slides for Computer Networks: A Systems Approach (Peterson and Davis) Chapter 3 slides.
Computer Networks: TCP Congestion Control 1 TCP Congestion Control Lecture material taken from “Computer Networks A Systems Approach”, Fourth Edition,Peterson.
School of Information Technologies TCP Congestion Control NETS3303/3603 Week 9.
Introduction to Congestion Control
CSS432 Congestion Control Textbook Ch6.1 – 6.4
Transport Layer 3-1 Fast Retransmit r time-out period often relatively long: m long delay before resending lost packet r detect lost segments via duplicate.
CSS432: Congestion Control1 CSS432 Congestion Control Textbook Ch6.1 – 6.4 Professor: Munehiro Fukuda.
Fall 2006CS 5611 Congestion Control Outline Queuing Discipline Reacting to Congestion Avoiding Congestion Quality of Service.
1 Congestion Control Outline Queuing Discipline Reacting to Congestion Avoiding Congestion.
Congestion Dr. Abdulaziz Almulhem. Almulhem©20012 Congestion It occurs when network resources are becoming scarce High demand Over utilized Offered load.
Computer Networks: TCP Congestion Control 1 TCP Congestion Control Lecture material taken from “Computer Networks A Systems Approach”, Third Ed.,Peterson.
Congestion Control Outline Queuing Discipline Reacting to Congestion Avoiding Congestion.
1 Lecture 9: TCP and Congestion Control Slides adapted from: Congestion slides for Computer Networks: A Systems Approach (Peterson and Davis) Chapter 3.
Congestion Control and Resource Allocation
Spring 2002CS 4611 Congestion Control Outline Queuing Discipline Reacting to Congestion Avoiding Congestion.
Spring 2003CS 4611 Congestion Control Outline Queuing Discipline Reacting to Congestion Avoiding Congestion.
Computer Networks : TCP Congestion Control1 TCP Congestion Control.
Chapter 6 Congestion Control and Resource Allocation
ACN: Congestion Control1 Congestion Control and Resource Allocation.
Networks : TCP Congestion Control1 TCP Congestion Control.
Networks : TCP Congestion Control1 TCP Congestion Control Presented by Bob Kinicki.
Advanced Computer Networks: TCP Congestion Control 1 TCP Congestion Control Lecture material taken from “Computer Networks A Systems Approach”, Fourth.
TCP Congestion Control
EE 4272Spring, 2003 Chapter 17 Transport Protocols Connection-Oriented Transport Protocol  Reliable Network Service: Design Issues  Unreliable Network.
TCP: flow and congestion control. Flow Control Flow Control is a technique for speed-matching of transmitter and receiver. Flow control ensures that a.
CONGESTION CONTROL and RESOURCE ALLOCATION. Definition Resource Allocation : Process by which network elements try to meet the competing demands that.
Fundamentals of Computer Networks ECE 478/578 Lecture #22: Resource Allocation and Congestion Control Instructor: Loukas Lazos Dept of Electrical and Computer.
Congestion Control Chapter 6 Outline Resource Allocation Issues Queuing Disciplines FCFS (FIFO queues) Priority Queuing Fair Queuing (for flows) TCP Congestion.
CSS432 Congestion Control Textbook Ch6.1 – 6.4
9.7 Other Congestion Related Issues Outline Queuing Discipline Avoiding Congestion.
Spring 2006CS 3321 Congestion Control and Resource Allocation Outline: Overview Queuing Disciplines TCP Congestion Control Combined Techniques.
Transport Layer 3-1 Chapter 3 Transport Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March
1 Transport Layer Lecture 10 Imran Ahmed University of Management & Technology.
TCP Congestion Control Computer Networks TCP Congestion Control 1.
TCP Congestion Control
SMUCSE 5344/73441 Congestion Control Class 18 Resource Allocation Considerations.
TCP. TCP ACK generation [RFC 1122, RFC 2581] Event at Receiver Arrival of in-order segment with expected seq #. All data up to expected seq # already.
CS 6401 Congestion Control in TCP Outline Overview of RENO TCP Reacting to Congestion SS/AIMD example.
Spring Computer Networks1 Congestion Control Sections 6.1 – 6.4 Outline Preliminaries Queuing Discipline Reacting to Congestion Avoiding Congestion.
Spring Computer Networks1 Congestion Control II Outline Queuing Discipline Reacting to Congestion Avoiding Congestion DECbit Random Early Detection.
Univ. of TehranIntroduction to Computer Network1 An Introduction Computer Networks An Introduction to Computer Networks University of Tehran Dept. of EE.
@Yuan Xue A special acknowledge goes to J.F Kurose and K.W. Ross Some of the slides used in this lecture are adapted from their.
Univ. of TehranIntroduction to Computer Network1 An Introduction Computer Networks An Introduction to Computer Networks University of Tehran Dept. of EE.
9.6 TCP Congestion Control
Chapter 6 TCP Congestion Control
COMP 431 Internet Services & Protocols
Congestion Control.
Congestion Control Outline Queuing Discipline Reacting to Congestion
Congestion Control Outline Queuing Discipline Reacting to Congestion
Congestion Control Outline Queuing Discipline Reacting to Congestion
TCP.
CSS432 Congestion Control Textbook Ch6.1 – 6.4
ECE 4450:427/527 - Computer Networks Spring 2017
So far, On the networking side, we looked at mechanisms to links hosts using direct linked networks and then forming a network of these networks. We introduced.
The University of Adelaide, School of Computer Science
Congestion Control in TCP
CSS432 Congestion Control Textbook Ch6.1 – 6.4
Chapter 6 TCP Congestion Control
If both sources send full windows, we may get congestion collapse
TCP Congestion Control
Congestion Control Reasons:
TCP Overview.
Congestion Control in TCP
Transport Layer: Congestion Control
Presentation transcript:

Spring 2009CSE Congestion Control Outline Resource Allocation Queuing TCP Congestion Control

Spring 2009CSE Issues Two sides of the same coin –pre-allocate resources so at to avoid congestion –control congestion if (and when) is occurs Two points of implementation –hosts at the edges of the network (transport protocol) –routers inside the network (queuing discipline) Underlying service model –best-effort (assume for now) –multiple qualities of service (later)

Spring 2009CSE Framework Connectionless flows –sequence of packets sent between source/destination pair –maintain soft state at the routers Taxonomy –router-centric versus host-centric –reservation-based versus feedback-based –window-based versus rate-based

Spring 2009CSE Evaluation Fairness Power (ratio of throughput to delay)

Spring 2009CSE Queuing Disciplines First-In-First-Out (FIFO) –does not discriminate between traffic sources Fair Queuing (FQ) –explicitly segregates traffic based on flows –ensures no flow captures more than its share of capacity –variation: weighted fair queuing (WFQ) Problem?

Spring 2009CSE FQ Algorithm Suppose clock ticks each time a bit is transmitted Let P i denote the length of packet i Let S i denote the time when start to transmit packet i Let F i denote the time when finish transmitting packet i F i = S i + P i When does router start transmitting packet i? –if before router finished packet i - 1 from this flow, then immediately after last bit of packet i - 1 (F i-1 ) –if no current packets for this flow, then start transmitting when arrives (call this A i ) Thus: F i = MAX (F i - 1, A i ) + P i

Spring 2009CSE FQ Algorithm (cont) For multiple flows –calculate F i for each packet that arrives on each flow –treat all F i ’s as timestamps –next packet to transmit is one with lowest timestamp Not perfect: can’t preempt current packet Example Flow 1Flow 2 (a)(b) Output F = 8 F = 10 F = 5 F = 10 F = 2 Flow 1 (arriving) Flow 2 (transmitting)

Spring 2009CSE TCP Congestion Control Idea –assumes best-effort network (FIFO or FQ routers) each source determines network capacity for itself –uses implicit feedback –ACKs pace transmission (self-clocking) Challenge –determining the available capacity in the first place –adjusting to changes in the available capacity

Spring 2009CSE Additive Increase/Multiplicative Decrease Objective: adjust to changes in the available capacity New state variable per connection: CongestionWindow –limits how much data source has in transit MaxWin = MIN(CongestionWindow, AdvertisedWindow) EffWin = MaxWin - (LastByteSent - LastByteAcked) Idea: –increase CongestionWindow when congestion goes down –decrease CongestionWindow when congestion goes up

Spring 2009CSE AIMD (cont) Question: how does the source determine whether or not the network is congested? Answer: a timeout occurs –timeout signals that a packet was lost –packets are seldom lost due to transmission error –lost packet implies congestion

Spring 2009CSE AIMD (cont) In practice: increment a little for each ACK Increment = MSS * (MSS/CongestionWindow) CongestionWindow += Increment Algorithm –increment CongestionWindow by one packet per RTT (linear increase) –divide CongestionWindow by two whenever a timeout occurs (multiplicative decrease) SourceDestination

Spring 2009CSE AIMD (cont) Trace: sawtooth behavior

Spring 2009CSE Slow Start Objective: determine the available capacity in the beginning Idea: –begin with CongestionWindow = 1 packet –double CongestionWindow each RTT (increment by 1 packet for each ACK) SourceDestination

Spring 2009CSE Slow Start (cont) Exponential growth, but slower than all at once Used… –when first starting connection –when connection goes dead waiting for timeout Trace Problem: lose up to half a CongestionWindow ’s worth of data

Spring 2009CSE Fast Retransmit and Fast Recovery Problem: coarse-grain TCP timeouts lead to idle periods Fast retransmit: use duplicate ACKs to trigger retransmission

Spring 2009CSE Results Fast recovery –skip the slow start phase –go directly to half the last successful CongestionWindow ( ssthresh )