Active Queue Management Rong Pan Cisco System EE384y Spring Quarter 2006.

Slides:



Advertisements
Similar presentations
Balaji Prabhakar Active queue management and bandwidth partitioning algorithms Balaji Prabhakar Departments of EE and CS Stanford University
Advertisements

RED-PD: RED with Preferential Dropping Ratul Mahajan Sally Floyd David Wetherall.
Computer Networking Lecture 20 – Queue Management and QoS.
RED Enhancement Algorithms By Alina Naimark. Presented Approaches Flow Random Early Drop - FRED By Dong Lin and Robert Morris Sabilized Random Early Drop.
WHITE – Achieving Fair Bandwidth Allocation with Priority Dropping Based on Round Trip Time Name : Choong-Soo Lee Advisors : Mark Claypool, Robert Kinicki.
CSIT560 Internet Infrastructure: Switches and Routers Active Queue Management Presented By: Gary Po, Henry Hui and Kenny Chong.
CS 268: Lecture 8 Router Support for Congestion Control Ion Stoica Computer Science Division Department of Electrical Engineering and Computer Sciences.
CS 4700 / CS 5700 Network Fundamentals Lecture 12: Router-Aided Congestion Control (Drop it like it’s hot) Revised 3/18/13.
Advanced Computer Networking Congestion Control for High Bandwidth-Delay Product Environments (XCP Algorithm) 1.
Ion Stoica, Scott Shenker, and Hui Zhang SIGCOMM’98, Vancouver, August 1998 subsequently IEEE/ACM Transactions on Networking 11(1), 2003, pp Presented.
Max Min Fairness How define fairness? “ Any session is entitled to as much network use as is any other ” ….unless some sessions can use more without hurting.
Advanced Computer Networks: RED 1 Random Early Detection Gateways for Congestion Avoidance * Sally Floyd and Van Jacobson, IEEE Transactions on Networking,
TCP Stability and Resource Allocation: Part I. References The Mathematics of Internet Congestion Control, Birkhauser, The web pages of –Kelly, Vinnicombe,
COMP680E by M. Hamdi 1 Traffic Managers: Active Queue Management Algorithms.
Diffusion Mechanisms for Active Queue Management Department of Electrical and Computer Engineering University of Delaware May 19th / 2004 Rafael Nunez.
Improving Adaptability and Fairness in Internet Congestion Control May 30, 2001 Seungwan Ryu PhD Student of IE Department University at Buffalo.
EE689 Lecture 5 Review of last lecture More on HPF RED.
Diffusion Mechanisms for Active Queue Management Department of Electrical and Computer Engineering University of Delaware May 19th / 2004 Rafael Nunez.
15-744: Computer Networking L-11 Queue Management.
1 Random Early Detection Gateways for Congestion Avoidance Sally Floyd and Van Jacobson, IEEE Transactions on Networking, Vol.1, No. 4, (Aug 1993), pp
CS 268: Lecture 8 (Router Support for Congestion Control) Ion Stoica February 19, 2002.
1 Core-Stateless Fair Queueing: Achieving Approximately Fair Bandwidth Allocations in High Speed Networks Ion Stoica,Scott Shenker, and Hui Zhang SIGCOMM’99,
Computer Networking Lecture 17 – Queue Management As usual: Thanks to Srini Seshan and Dave Anderson.
Random Early Detection Gateways for Congestion Avoidance
1 Core-Stateless Fair Queueing: Achieving Approximately Fair Bandwidth Allocations in High Speed Networks Ion Stoica,Scott Shenker, and Hui Zhang SIGCOMM’99,
Promoting the Use of End-to-End Congestion Control & Random Early Detection of Network Congestion.
Core Stateless Fair Queueing Stoica, Shanker and Zhang - SIGCOMM 98 Rigorous fair Queueing requires per flow state: too costly in high speed core routers.
Rafael C. Nunez - Gonzalo R. Arce Department of Electrical and Computer Engineering University of Delaware May 19 th, 2005 Diffusion Marking Mechanisms.
Diffusion Mechanisms for Active Queue Management Department of Electrical and Computer Engineering University of Delaware Aug 19th / 2004 Rafael Nunez.
Diffusion Mechanisms for Active Queue Management Department of Electrical and Computer Engineering University of Delaware May 19th / 2004 Rafael Nunez.
Congestion Control for High Bandwidth-Delay Product Environments Dina Katabi Mark Handley Charlie Rohrs.
UCB Improvements in Core-Stateless Fair Queueing (CSFQ) Ling Huang U.C. Berkeley cml.me.berkeley.edu/~hlion.
1 A State Feedback Control Approach to Stabilizing Queues for ECN- Enabled TCP Connections Yuan Gao and Jennifer Hou IEEE INFOCOM 2003, San Francisco,
Diffusion Early Marking Department of Electrical and Computer Engineering University of Delaware May / 2004 Rafael Nunez Gonzalo Arce.
Advanced Computer Networks : RED 1 Random Early Detection Gateways for Congestion Avoidance Sally Floyd and Van Jacobson, IEEE Transactions on Networking,
Core Stateless Fair Queueing Stoica, Shanker and Zhang - SIGCOMM 98 Fair Queueing requires per flow state: too costly in high speed core routers Yet, some.
CS640: Introduction to Computer Networks Aditya Akella Lecture 20 - Queuing and Basics of QoS.
1 Queue Management Hamed Khanmirza Principles of Networking University of Tehran.
CONGESTION CONTROL and RESOURCE ALLOCATION. Definition Resource Allocation : Process by which network elements try to meet the competing demands that.
Bandwidth partitioning (jointly with R. Pan, C. Psounis, C. Nair, B. Yang, L. Breslau and S. Shenker)
ACN: CSFQ1 CSFQ Core-Stateless Fair Queueing Presented by Nagaraj Shirali Choong-Soo Lee ACN: CSFQ1.
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 On Class-based Isolation of UDP, Short-lived and Long-lived TCP Flows by Selma Yilmaz Ibrahim Matta Computer Science Department Boston University.
CS551: Queue Management Christos Papadopoulos (
1 IEEE Meeting July 19, 2006 Raj Jain Modeling of BCN V2.0 Jinjing Jiang and Raj Jain Washington University in Saint Louis Saint Louis, MO
Presented by: Peng Wang EE Department University of Delaware A Probabilistic Approach for Achieving Fair Bandwidth Allocation in CSFQ.
Queueing and Active Queue Management Aditya Akella 02/26/2007.
9.7 Other Congestion Related Issues Outline Queuing Discipline Avoiding Congestion.
Packet Scheduling and Buffer Management Switches S.Keshav: “ An Engineering Approach to Networking”
15744 Course Project1 Evaluation of Queue Management Algorithms Ningning Hu, Liu Ren, Jichuan Chang 30 April 2001.
CS640: Introduction to Computer Networks Aditya Akella Lecture 20 - Queuing and Basics of QoS.
We used ns-2 network simulator [5] to evaluate RED-DT and compare its performance to RED [1], FRED [2], LQD [3], and CHOKe [4]. All simulation scenarios.
XCP: eXplicit Control Protocol Dina Katabi MIT Lab for Computer Science
Analysis and Design of an Adaptive Virtual Queue (AVQ) Algorithm for AQM By Srisankar Kunniyur & R. Srikant Presented by Hareesh Pattipati.
Spring Computer Networks1 Congestion Control Sections 6.1 – 6.4 Outline Preliminaries Queuing Discipline Reacting to Congestion Avoiding Congestion.
ECEN 619, Internet Protocols and Modeling Prof. Xi Zhang Random Early Detection Gateways for Congestion Avoidance Sally Floyd and Van Jacobson, IEEE Transactions.
1 Sheer volume and dynamic nature of video stresses network resources PIE: A lightweight latency control to address the buffer problem issue Rong Pan,
Providing QoS in IP Networks
Univ. of TehranIntroduction to Computer Network1 An Introduction Computer Networks An Introduction to Computer Networks University of Tehran Dept. of EE.
QoS & Queuing Theory CS352.
CS 268: Computer Networking
Active Queue Management
EE 122: Router Support for Congestion Control: RED and Fair Queueing
Queuing and Queue Management
Random Early Detection Gateways for Congestion Avoidance
“Promoting the Use of End-to-End Congestion Control in the Internet”
Presentation transcript:

Active Queue Management Rong Pan Cisco System EE384y Spring Quarter 2006

2 Outline Queue Management –Drop as a way to feedback to TCP sources –Part of a closed-loop Traditional Queue Management –Drop Tail –Problems Active Queue Management –RED –CHOKe –AFD

3 Queue Management: Drops/Marks - A Feedback Mechanism To Regulate End TCP Hosts End hosts send TCP traffic -> Queue size Network elements, switches/routers, generate drops/marks based on their queue sizes Drops/Marks: regulation messages to end hosts TCP sources respond to drops/marks by cutting down their windows, i.e. sending rate

4 TCP+Queue Management - A closed-loop control system  Queue Management _ N C _  q Time Delay W/R p 0.5 +

5 Drop Tail - problems Lock out Full queue Bias against bursty traffic Global synchronization

6 Max Queue Length Tail Drop Queue Management Lock-Out

7 Tail Drop Queue Management Full-Queue Only drop packets when queue is full –long steady-state delay

8 Max Queue Length Bias Against Bursty Traffic

9 Max Queue Length Tail Drop Queue Management Global Synchronization

10 Drop from front on full queue Drop at random on full queue  both solve the lock-out problem  both have the full-queues problem Alternative Queue Management Schemes

11 Solve tail-drop problems –no lock-out behavior –no global synchronization –no bias against bursty flow Provide better QoS at a router –low steady-state delay –lower packet dropping Active Queue Management Goals

12 Random Early Detection (RED) yes Drop the new packet end Admit packet with a probability p end AvgQsize > Max th ? yes Arriving packet no Admit the new packet end AvgQsize > Min th ? no

13 RED Dropping Curve min t h max t h 0 Average Queue Size Drop Probability 1 max p

14 Effectiveness of RED - Lock-Out & Global Synchronization Packets are randomly dropped Each flow has the same probability of being discarded

15 Drop packets probabilistically in anticipation of congestion –not when queue is full Use q avg to decide packet dropping probability: allow instantaneous bursts Effectiveness of RED - Full-Queue & Bias against bursty traffic

16 What QoS does RED Provide? Lower buffer delay: good interactive service –q avg is controlled to be small Given responsive flows: packet dropping is reduced –early congestion indication allows traffic to throttle back before congestion Given responsive flows: fair bandwidth allocation

17 Bad News - unresponsive end hosts tcp udp tcp Connectionless; Best-Effort The Internet

18 Scheduling & Queue Management What routers want to do? –isolate unresponsive flows (e.g. UDP) –provide Quality of Service to all users Two ways to do it –scheduling algorithms: e.g. FQ, CSFQ, SFQ –queue management algorithms: e.g. RED, FRED, SRED

19 FQ vs. RED Hard/Expensive to implement Isolation from non- adaptive flows FQ RED No isolation from non-adaptive flows Easy to implement

20 Active Queue Manament With Enhancement to Fairness Provide isolation from unresponsive flows Be as simple as RED FIFO

21 yes Drop the new packet end Admit packet with a probability p end AvgQsize > Max th ? yes RED Arriving packet no Admit the new packet end AvgQsize > Min th ? no yes no Drop both matched packets end Draw a packet at random from queue Flow id same as the new packet id ? yes Drop the new packet end Admit packet with a probability p end no AvgQsize > Max th ? no CHOKe

22 Random Sampling from Queue A randomly chosen packet more likely from the unresponsive flow Adversary can’t fool the system UDP flow

23 Comparison of Flow ID Compare the flow id with the incoming packet –more acurate –Reduce the chance of dropping packets from a TCP- friendly flows.

24 Dropping Mechanism Drop packets (both incoming and matching samples ) –More arrival -> More Drop –Give users a disincentive to send more

25 1Mbps 10MbpsS(2) S(m) S(m+n) m TCP Sources S(m+1) n UDP Sources D(2) D(m) D(m+n) m TCP Sinks D(m+1) n UDP Sinks D(1) 10Mbps Simulation Setup S(1)

26 Network Setup Parameters l 32 TCP flows, 1 UDP flow l All TCP’s maximum window size = 300 l All links have a propagation delay of 1ms l FIFO buffer size = 300 packets l All packets sizes = 1 KByte l RED: (min th,max th ) = (100,200) packets

27 32 TCP, 1 UDP (one sample) 23.0% 74.1% 99.6%

28 32 TCP, 5 UDP (5 samples)

29 How Many Samples to Take? min th M ax th R1R1 R2R2 RkRk l Different samples for different Qlen avg – # samples  when Qlen avg close to min th – # samples  when Qlen avg close to max th avg

30 32 TCP, 5 UDP (self- adjusting)

31 Analytical Model discards from the queue permeable tube with leakage

32 Fluid Analysis l N: the total number of packets in the buffer l L i (t): the survial rate for flow i packets L i (t)  t - L i (t +  t)  t = i  t L i (t)  t /N - dL i (t)/dt = i L i (t) N L i (0) = i (1-p i ) L i (D) = i (1-2p i )

33 Model vs Simulation - multiple TCPs and one UDP 1/(1+e)

34 Fluid Model - Multiple samples L i (t)  t - L i (t +  t)  t = M i  t L i (t)  t /N - dL i (t)/dt = M i L i (t) N L i (0) = i (1-p i ) M L i (D) = i (1-p i ) M - M i p i l Multiple samples are chosen

35 Two Samples - multiple TCPs and one UDP

36 Two Samples - multiple TCPs and two UDP

37 What If We Use a Small Amount of State?

38 AFD: Goal Approximate equal bandwidth allocation –Not only AQM, approximate DRR scheduling –Provide soft queues in addition to physical queues Keep the state requirement small Be simple to implement

39 AFD Algorithm: Details (Basic Case: Equal Share) Di = Drop Probability for Class i Qref 1-D i DiDi Qlen Arriving Packets If M i > Mfair : D i > 0 such that M i (1-D i ) = Mfair If M i  Mfair : No Drop (D i = 0) M i = Arrival estimate for Class i (Bytes over interval T s ) Mfair = Mfair - a (Qlen - Qref) + b (Qlen_old - Qref) Fair Share Class i

40 AFD Algorithm: Details (General Case) Di = Drop Probability for Class i Qref 1-D i DiDi Qlen Arriving Packets If M i > Mfair : D i > 0 such that M i (1-D i ) = F(Mfair,Min i,Max i,W i, …) If M i  F(Mfair,Min i,Max i,W i, …): No Drop (D i = 0) M i = Arrival estimate for Class i (Bytes over interval T s ) Mfair = Mfair - a (Qlen - Qref) + b (Qlen_old - Qref) Fair Share Class i

41 Not Per-Flow State Fraction of flows State requirement on the order of # of unresponsive flows

42 AFD Solution: Details Based on 3 simple mechanisms –estimate per “class” arrival rate counting per “class” bytes over fixed intervals ( T s ) potential averaging over multiple intervals –estimate deserved departure rate (so as to achieve the proper bandwidth allocation for the class) Observation and averaging of queue length as measure of congestion Functional definition of “fair share” based on fairness criterion –perform probabilistic dropping (pre-enqueue) to drive arrival rate to equal desired departure rate

43 Mixed Traffic with Different Levels of Unresponsiveness

44 Drop Probabilities (note differential dropping)

45 Different Number of TCP Flows in Each Class Class 1 5 TCP Flows time Class 2 10 TCP Flows time Class 3 15 TCP Flows time Class 4 20 TCP Flows time

46 Different Class Throughput Comparison

47 Queue Length

48 Mfair

49 AFD Implementation Issues Monitor Arrival Rate Determine Drop Probability Maximize Link Utilization

50 Arrival Monitoring Keep a counter for each class –Count the data arrivals (in bytes) of each class in 10ms interval: arv i Arrival rate of each class is updated every 10ms –m i = m i (1-1/2 c )+arv i –c determines the average window

51 Implementing the Drop Function If M i  Mfair then D i = 0 Otherwise, rewrite the drop function as Suppose we have predetermined drop levels, find the one such that D i * M i = (M i – Mfair)

52 Implementing the Drop Function Suppose m i = 100, m fair = 62.0 => D i = 0.380, Di We choose the higher value using binary search Drop levels are: 1/32, 1/16, 3/32…

53 FQ RED Simplicity Fairness AFD - Summary Equal share is approximated in a wide variety of settings The state requirement is limited CHOKeAFD Ideal

54 Summary Traditional Queue Management –Drop Tail, Drop Front, Drop Random –Problems: lock-out, full queue, global synchronization, bias against bursty traffic Active Queue Management –RED: can’t handle unresponsive flows –CHOKe: penalize unresponsive flows –AFD: provides approximate fairness with limited states