AQM & TCP models Courtesy of Sally Floyd with ICIR Raj Jain with OSU.

Slides:



Advertisements
Similar presentations
Michele Pagano – A Survey on TCP Performance Evaluation and Modeling 1 Department of Information Engineering University of Pisa Network Telecomunication.
Advertisements

CSIT560 Internet Infrastructure: Switches and Routers Active Queue Management Presented By: Gary Po, Henry Hui and Kenny Chong.
Computer Networks Transport Layer. Topics F Introduction (6.1)  F Connection Issues ( ) F TCP (6.4)
Md. Manzoor MurshedAdaptive RED with Dynamic Threshold Adjustment CprE599: Creative Component Adaptive RED with Dynamic Threshold Adjustment.
Computer Networks: TCP Congestion Control 1 TCP Congestion Control Lecture material taken from “Computer Networks A Systems Approach”, Fourth Edition,Peterson.
Congestion Control An Overview -Jyothi Guntaka. Congestion  What is congestion ?  The aggregate demand for network resources exceeds the available capacity.
TFRC for Voice: the VoIP Variant Sally Floyd, Eddie Kohler. March 2005, presentation to AVT draft-ietf-dccp-tfrc-voip-01.txt.
Explicit Congestion Notification (ECN) RFC 3168 Justin Yackoski DEGAS Networking Group CISC856 – TCP/IP Thanks to Namratha Hundigopal.
Explicit Congestion Notification (ECN) Qi (Gill) Wang CISC 856 – TCP/IP, Fall 2012 Special thanks to: Dr. Paul Amer Guna Ranjan, Justin.
School of Information Technologies TCP Congestion Control NETS3303/3603 Week 9.
1 Minseok Kwon and Sonia Fahmy Department of Computer Sciences Purdue University {kwonm, All our slides and papers.
Explicit Congestion Notification ECN Tilo Hamann Technical University Hamburg-Harburg, Germany.
Transport Layer3-1 Congestion Control. Transport Layer3-2 Principles of Congestion Control Congestion: r informally: “too many sources sending too much.
1 Congestion Control Outline Queuing Discipline Reacting to Congestion Avoiding Congestion.
Networks: Congestion Control1 Congestion Control.
Computer Networks: TCP Congestion Control 1 TCP Congestion Control Lecture material taken from “Computer Networks A Systems Approach”, Third Ed.,Peterson.
1 Congestion Control. Transport Layer3-2 Principles of Congestion Control Congestion: r informally: “too many sources sending too much data too fast for.
1 Internet Networking Spring 2003 Tutorial 11 Explicit Congestion Notification (RFC 3168) Limited Transmit (RFC 3042)
EE689 Lecture 5 Review of last lecture More on HPF RED.
1 TCP Transport Control Protocol Reliable In-order delivery Flow control Responds to congestion “Nice” Protocol.
1 Random Early Detection Gateways for Congestion Avoidance Sally Floyd and Van Jacobson, IEEE Transactions on Networking, Vol.1, No. 4, (Aug 1993), pp
Computer Networks : TCP Congestion Control1 TCP Congestion Control.
1 Internet Networking Spring 2003 Tutorial 11 Explicit Congestion Notification (RFC 3168)
1 Chapter 3 Transport Layer. 2 Chapter 3 outline 3.1 Transport-layer services 3.2 Multiplexing and demultiplexing 3.3 Connectionless transport: UDP 3.4.
Networks : TCP Congestion Control1 TCP Congestion Control.
Semester Copyright USM EEE449 Computer Networks Congestion En. Mohd Nazri Mahmud MPhil (Cambridge, UK) BEng (Essex, UK) Room.
1 Spring Semester 2007, Dept. of Computer Science, Technion Internet Networking recitation #8 Explicit Congestion Notification (RFC 3168) Limited Transmit.
Networks : TCP Congestion Control1 TCP Congestion Control Presented by Bob Kinicki.
Random Early Detection Gateways for Congestion Avoidance
Simulation of Explicit Congestion Notification and Random Early Detection Nadav Amit Teif Dmitry Yurovsky Denis.
Advanced Computer Networks: TCP Congestion Control 1 TCP Congestion Control Lecture material taken from “Computer Networks A Systems Approach”, Fourth.
Promoting the Use of End-to-End Congestion Control & Random Early Detection of Network Congestion.
Rafael C. Nunez - Gonzalo R. Arce Department of Electrical and Computer Engineering University of Delaware May 19 th, 2005 Diffusion Marking Mechanisms.
CS :: Fall 2003 TCP Friendly Streaming Ketan Mayer-Patel.
Ns Simulation Final presentation Stella Pantofel Igor Berman Michael Halperin
Advanced Computer Networks : RED 1 Random Early Detection Gateways for Congestion Avoidance Sally Floyd and Van Jacobson, IEEE Transactions on Networking,
CS540/TE630 Computer Network Architecture Spring 2009 Tu/Th 10:30am-Noon Sue Moon.
1 Queue Management Hamed Khanmirza Principles of Networking University of Tehran.
Principles of Congestion Control Congestion: informally: “too many sources sending too much data too fast for network to handle” different from flow control!
B 李奕德.  Abstract  Intro  ECN in DCTCP  TDCTCP  Performance evaluation  conclusion.
Link Scheduling & Queuing COS 461: Computer Networks
CS 268: Computer Networking L-6 Router Congestion Control.
Advance Computer Networking L-6 TCP & Routers Acknowledgments: Lecture slides are from the graduate level Computer Networks course thought by Srinivasan.
Advanced Computer Networking
ACN: RED paper1 Random Early Detection Gateways for Congestion Avoidance Sally Floyd and Van Jacobson, IEEE Transactions on Networking, Vol.1, No. 4, (Aug.
1 Lecture 14 High-speed TCP connections Wraparound Keeping the pipeline full Estimating RTT Fairness of TCP congestion control Internet resource allocation.
1 On Class-based Isolation of UDP, Short-lived and Long-lived TCP Flows by Selma Yilmaz Ibrahim Matta Computer Science Department Boston University.
27th, Nov 2001 GLOBECOM /16 Analysis of Dynamic Behaviors of Many TCP Connections Sharing Tail-Drop / RED Routers Go Hasegawa Osaka University, Japan.
Queueing and Active Queue Management Aditya Akella 02/26/2007.
CS640: Introduction to Computer Networks Aditya Akella Lecture 20 - Queuing and Basics of QoS.
Transport Layer3-1 Chapter 3 outline r 3.1 Transport-layer services r 3.2 Multiplexing and demultiplexing r 3.3 Connectionless transport: UDP r 3.4 Principles.
Thoughts on the Evolution of TCP in the Internet (version 2) Sally Floyd ICIR Wednesday Lunch March 17,
Spring 2015© CS 438 Staff - University of Illinois1 Next Topic: Vacation Planning UIUC Chicago Monterey San Francisco Chicago to San Francisco: ALL FLIGHTS.
Random Early Detection (RED) Router notifies source before congestion happens - just drop the packet (TCP will timeout and adjust its window) - could make.
Explicit Congestion Notification (ECN) RFC 3168
TCP continued. Discussion – TCP Throughput TCP will most likely generate the saw tooth type of traffic. – A rough estimate is that the congestion window.
Transport Layer3-1 Chapter 3 outline r 3.1 Transport-layer services r 3.2 Multiplexing and demultiplexing r 3.3 Connectionless transport: UDP r 3.4 Principles.
© Janice Regan, CMPT 128, CMPT 371 Data Communications and Networking Congestion Control 0.
ECEN 619, Internet Protocols and Modeling Prof. Xi Zhang Random Early Detection Gateways for Congestion Avoidance Sally Floyd and Van Jacobson, IEEE Transactions.
Queue Management Mike Freedman COS 461: Computer Networks Lectures: MW 10-10:50am in Architecture N101
Internet Networking recitation #9
Chapter 3 outline 3.1 transport-layer services
Congestion Control and AQM
Chapter 6 Congestion Avoidance
Congestion Control: The Role of the Routers
Queuing and Queue Management
Random Early Detection Gateways for Congestion Avoidance
Other Methods of Dealing with Congestion
Internet Networking recitation #10
Transport Layer: Congestion Control
Presentation transcript:

AQM & TCP models Courtesy of Sally Floyd with ICIR Raj Jain with OSU

Queue management -Passive -Active AQM: RED Variants ECN TCP models Agenda

the majority in router Passive queue management (PQM) –No preventive packet drop –Buffer level > threshold, drop packets –Two dropping schemes Tail-drop Drop-from-front

Drop-tail Drop-from-front Which is better?

Problems with PQM A trade-off between the buffer size and QoS Larger buffer results in higher throughput, but longer delay Lock out: A single connection monopolises the buffer space –Give rise to fairness problem Full queue: Queue is full for a long period of time –Long queuing delay Global synchronization

Global Synchronization When queue overflows, several connections decrease congestion windows simultaneously

Bias Against Bursty Traffic Bursty traffic more likely to be dropped average queue length V.S.

Objective: Congestion Avoidance Maintains low delay and high throughput –Average queue size kept low –Actual queue size grows enough to handle: Bursty Traffic Transient Congestion

Active Queue Management (AQM) Provide preventive measures to manage a buffer to eliminate problems associated with PQM Characteristics: –Preventive random packet drop is performed before the buffer is full –The probability of preventive packet drop increases with the increasing level of congestion Goals: –Reduce dropped packets –Support low-delay interactive services –Avoid lock-out

Random Early Detection (RED) A router maintains two thresholds: Min_th: –Accept all packets until the queue reaches Min_th –Drop packets with a linear drop probability when the queue is greater than Min_th Max_th: All packets are dropped with probability of 1 when the queue exceeds this threshold

RED Algorithm drop probability Q min th max th Max_drop 1

Selection of Maximum Drop Probability for RED Selection of Max_drop significantly affects the performance of RED –Too small: Active packet drops not enough to prevent global synchronisation –Too large: Decreases the throughput –Optimal value depends on number of connections, round trip time, etc. Selection of an optimal value for Max_drop remains an open issue

RED: Calculating Average Queue Size Use low-pass filter (exponential weighted moving average) w q should be small enough to filter out transient congestion, and large enough for the average to be responsive

RED solves the problems Global synchronization Transient congestion (short queue) Bias against bursty Traffic Drop packets when congestion eminent Select packets at random Use average queue length as indicator of congestion

RED Variants RED variants can be classified into two categories: –Aggregate control Modifying the calculation of the control variable and/or drop function Determines packet drop probability –Per-flow control Configuring and setting RED’s parameters Addresses fairness problem

BLUE (aggregate) RED: depends only on Q length –For optimal operating point, long Q is necessary Uses packet loss and link utilisation to measure network congestion directly Fewer configuration parameters Advantages: –Reduces packet loss rate –Keeps the gateway queue stable

Increases marking/dropping prob. when detects packet loss due to buffer overflow Decreases marking/dropping prob. when detects that the marking prob. is too aggressive BLUE

RED Variants Using Per-Flow Accounting Flow RED (FRED) Fair Buffering RED (FB-RED) XRED Class-Based Threshold RED (CBT- RED) Balanced RED (BRED) Stochastic Fair Blue (SFB)

Two variants FRED (Fair RED) –fairness among TCP connection –uses per-active-flow accounting (flow’s use of buffer space) –Scalability problem FBRED (Fair Buffering RED) –use of individual bandwidth delay product for each link to modify the packet drop probability inverse of the bandwidth delay product to calculate Max_drop inverse of the square root of the bandwidth delay product to calculate Max_drop

Explicit congestion notification (ECN) RFC 3168

Packet dropped or packet marked Instead of dropping packets, packets could be marked. Such marking is called ECN (explicit congestion notification) The benefits of ECN –A packet does not have to be retransmitted. (Not that big of a deal when drop probabilities are small, e.g., 1%) –Has a dramatic effect when congestion window is small. Because timeout is avoided. But why is the congestion window small –If it small because the link is heavily congested, ECN might not be possible because the queue might truly be full.

ECN in IP header ECT: ECN-capable transport

TCP should change for ECN TCP connection setup –Find out whether endpoints are ECN- capable To inform sender of congestion –ECN-echo (ECE) flag in TCP header To inform receiver of window reduction –Congestion Window Reduction (CWR) flag

TCP throughput modeling

Motivation for TCP Modeling TCP operating scale is very large –Models are required to gain deeper understanding of TCP dynamics Uncertainties can be modeled as stochastic processes Drive the design of TCP-friendly algorithms for multimedia applications Optimize TCP performance

TCP Modeling Essentials Mainly Reno flavors are modeled Two main features are modeled –Window dynamics –Packet loss process

Packet Loss Process Packet loss triggers window decrease Packet loss is uncertain This uncertainty is typically modeled as a stochastic process –E.g. probability p of losing a packet

Window Dynamics Linear increase and multiplicative decre ase is modeled The standard assumption –X(t) = W(t)/RTT

Gallery of TCP Models Periodic model Detailed packet loss model Finite state machine Fluid flow model And others …

Periodic model

TCP Congestion Control: window algorithm Window: can send W packets increase window by one per RTT if no loss, W <- W+1 each RTT decrease window by half on detection of loss W <- W/2 sender receiver W 1 RTT

Window: can send W packets increase window by one per RTT if no loss, W <- W+1 each RTT decrease window by half on detection of loss W  W/2, when receiving 3 DUPACKs sender receiver W TCP Congestion Control: window algorithm

TCP throughput/loss relationship Idealized model: W is maximum supportable window size (then loss occurs) TCP window starts at w/2 grows to W, then halves, then grows to W, then halves… one window worth of packets each rtt to find: throughput as function of loss, RTT TCP window size time (rtt) W/2 W loss occurs period

# packets sent per “period” period

1 packet lost per period implies where

Detailed packet loss model

(TDP)

b = 2 (delayed ACK) Xi = total number of rounds in TDP i RTT

MSS is not shown

TCP as an FSM