Queueing and Active Queue Management Aditya Akella 02/26/2007.

Slides:



Advertisements
Similar presentations
Router Congestion Control: RED, ECN, and XCP. Where we left off Signal of congestion: Packet loss Fairness: Cooperating end-hosts using AIMD –Next lecture:
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.
1 CONGESTION CONTROL. 2 Congestion Control When one part of the subnet (e.g. one or more routers in an area) becomes overloaded, congestion results. Because.
CSIT560 Internet Infrastructure: Switches and Routers Active Queue Management Presented By: Gary Po, Henry Hui and Kenny Chong.
CS 4700 / CS 5700 Network Fundamentals Lecture 12: Router-Aided Congestion Control (Drop it like it’s hot) Revised 3/18/13.
Congestion Control An Overview -Jyothi Guntaka. Congestion  What is congestion ?  The aggregate demand for network resources exceeds the available capacity.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 ECSE-6600: Internet Protocols Informal Quiz #05: SOLUTIONS Shivkumar Kalyanaraman: GOOGLE: “Shiv.
Advanced Computer Networks: RED 1 Random Early Detection Gateways for Congestion Avoidance * Sally Floyd and Van Jacobson, IEEE Transactions on Networking,
1 Congestion Control Outline Queuing Discipline Reacting to Congestion Avoiding Congestion.
COMP680E by M. Hamdi 1 Traffic Managers: Active Queue Management Algorithms.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 TCP Congestion Control and Common AQM Schemes: Quick Revision Shivkumar Kalyanaraman Rensselaer.
Analysis and Simulation of a Fair Queuing Algorithm
EE689 Lecture 5 Review of last lecture More on HPF RED.
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
Active Queue Management Rong Pan Cisco System EE384y Spring Quarter 2006.
Computer Networking Lecture 17 – Queue Management As usual: Thanks to Srini Seshan and Dave Anderson.
Random Early Detection Gateways for Congestion Avoidance
Lecture 5: Congestion Control l Challenge: how do we efficiently share network resources among billions of hosts? n Last time: TCP n This time: Alternative.
Promoting the Use of End-to-End Congestion Control & Random Early Detection of Network Congestion.
Lightweight Active Router-Queue Management for Multimedia Networking M. Parris, K. Jeffay, and F.D. Smith Department of Computer Science University of.
Advanced Computer Networks : RED 1 Random Early Detection Gateways for Congestion Avoidance Sally Floyd and Van Jacobson, IEEE Transactions on Networking,
Computer Networking Lecture 22 – Queue Management and QoS.
15-744: Computer Networking L-5 Fair Queuing. 2 Fair Queuing Core-stateless Fair queuing Assigned reading [DKS90] Analysis and Simulation of a Fair Queueing.
Computer Networking Queue Management and Quality of Service (QOS)
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.
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.
27th, Nov 2001 GLOBECOM /16 Analysis of Dynamic Behaviors of Many TCP Connections Sharing Tail-Drop / RED Routers Go Hasegawa Osaka University, Japan.
CS551: Queue Management Christos Papadopoulos (
Stochastic Fair Blue: A Queue Management Algorithm for Enforcing Fairness W. Feng, D. Kandlur, D. Saha, and K. Shin Presented by King-Shan Lui.
CSE 561 – Congestion Control with Network Support David Wetherall Spring 2000.
The Impact of Active Queue Management on Multimedia Congestion Control Wu-chi Feng Ohio State University.
9.7 Other Congestion Related Issues Outline Queuing Discipline Avoiding Congestion.
15744 Course Project1 Evaluation of Queue Management Algorithms Ningning Hu, Liu Ren, Jichuan Chang 30 April 2001.
15-744: Computer Networking L-5 TCP & Routers. L -5; © Srinivasan Seshan, TCP & Routers TCP Vegas/alternative congestion control schemes.
CS640: Introduction to Computer Networks Aditya Akella Lecture 20 - Queuing and Basics of QoS.
AQM & TCP models Courtesy of Sally Floyd with ICIR Raj Jain with OSU.
Spring 2003CS 3321 Congestion Avoidance. Spring 2003CS 3322 Congestion Avoidance TCP congestion control strategy: –Increase load until congestion occurs,
Winter 2008CS244a Handout 81 CS244a: An Introduction to Computer Networks Handout 8: Congestion Avoidance and Active Queue Management Nick McKeown Professor.
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.
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.
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
Computer Networking Lecture 10 – TCP & Routers.
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
Chapter 6 Congestion Avoidance
Queue Management Jennifer Rexford COS 461: Computer Networks
Congestion Control: The Role of the Routers
CONGESTION CONTROL.
Advance Computer Networking
EE 122: Router Support for Congestion Control: RED and Fair Queueing
Queuing and Queue Management
Random Early Detection Gateways for Congestion Avoidance
15-744: Computer Networking
Advanced Computer Networks
COS 461: Computer Networks
CSCD 433/533 Advanced Networks
Advanced Computer Networks
15-744: Computer Networking
Presentation transcript:

Queueing and Active Queue Management Aditya Akella 02/26/2007

Queuing Disciplines Each router must implement some queuing discipline Queuing allocates both bandwidth and buffer space: –Bandwidth: which packet to serve (transmit) next –Buffer space: which packet to drop next (when required) Queuing also affects latency

Typical Internet Queuing FIFO + drop-tail –Simplest choice –Used widely in the Internet FIFO (first-in-first-out) –Implies single class of traffic Drop-tail –Arriving packets get dropped when queue is full regardless of flow or importance Important distinction: –FIFO: scheduling discipline –Drop-tail: drop policy

FIFO + Drop-tail Problems Leaves responsibility of congestion control to edges (e.g., TCP) Does not separate between different flows No policing: send more packets  get more service Synchronization: end hosts react to same events

Active Queue Management Design active router queue management to aid congestion control Why? –Routers can distinguish between propagation and persistent queuing delays –Routers can decide on transient congestion, based on workload

Active Queue Designs Modify both router and hosts –DECbit – congestion bit in packet header Modify router, hosts use TCP –Fair queuing Per-connection buffer allocation –RED (Random Early Detection) Drop packet or set bit in packet header as soon as congestion is starting

Internet Problems Full queues –Routers are forced to have have large queues to maintain high utilizations –TCP detects congestion from loss Forces network to have long standing queues in steady-state Lock-out problem –Drop-tail routers treat bursty traffic poorly –Traffic gets synchronized easily  allows a few flows to monopolize the queue space

Design Objectives Keep throughput high and delay low Accommodate bursts Queue size should reflect ability to accept bursts rather than steady-state queuing Improve TCP performance with minimal hardware changes

Lock-out Problem Random drop –Packet arriving when queue is full causes some random packet to be dropped Drop front –On full queue, drop packet at head of queue Random drop and drop front solve the lock-out problem but not the full-queues problem

Full Queues Problem Drop packets before queue becomes full (early drop) Intuition: notify senders of incipient congestion –Example: early random drop (ERD): If qlen > drop level, drop each new packet with fixed probability p Does not control misbehaving users

Random Early Detection (RED) Detect incipient congestion, allow bursts Keep power (throughput/delay) high –Keep average queue size low –Assume hosts respond to lost packets Avoid window synchronization –Randomly mark packets Avoid bias against bursty traffic Some protection against ill-behaved users

RED Algorithm Maintain running average of queue length If avgq < min th do nothing –Low queuing, send packets through If avgq > max th, drop packet –Protection from misbehaving sources Else mark packet in a manner proportional to queue length –Notify sources of incipient congestion

RED Operation Min thresh Max thresh Average Queue Length min th max th max P 1.0 Avg queue length P(drop)

RED Algorithm Maintain running average of queue length –Byte mode vs. packet mode – why? For each packet arrival –Calculate average queue size (avg) –If min th ≤ avgq < max th Calculate probability P a With probability P a –Mark the arriving packet Else if max th ≤ avg –Mark the arriving packet

Queue Estimation Standard EWMA: avgq - (1-w q ) avgq + w q qlen –Special fix for idle periods – why? Upper bound on w q depends on min th –Want to ignore transient congestion –Can calculate the queue average if a burst arrives Set w q such that certain burst size does not exceed min th Lower bound on w q to detect congestion relatively quickly Typical w q = 0.002

Extending RED for Flow Isolation Problem: what to do with non-cooperative flows? Fair queuing achieves isolation using per- flow state – expensive at backbone routers –How can we isolate unresponsive flows without per-flow state? RED penalty box –Monitor history for packet drops, identify flows that use disproportionate bandwidth –Isolate and punish those flows

FRED Fair Random Early Drop (Sigcomm, 1997) Maintain per flow state only for active flows (ones having packets in the buffer) min q and max q  min and max number of buffers a flow is allowed occupy avgcq = average buffers per flow Strike count of number of times flow has exceeded max q

FRED – Fragile Flows Flows that send little data and want to avoid loss min q is meant to protect these What should min q be? –When large number of flows  2-4 packets Needed for TCP behavior –When small number of flows  increase to avgcq

FRED Non-adaptive flows –Flows with high strike count are not allowed more than avgcq buffers –Allows adaptive flows to occasionally burst to max q but repeated attempts incur penalty

Stochastic Fair Blue Same objective as RED Penalty Box –Identify and penalize misbehaving flows Create L hashes with N bins each –Each bin keeps track of separate marking rate (p m ) –Rate is updated using standard technique and a bin size –Flow uses minimum p m of all L bins it belongs to –Non-misbehaving flows hopefully belong to at least one bin without a bad flow Large numbers of bad flows may cause false positives

Stochastic Fair Blue False positives can continuously penalize same flow Solution: moving hash function over time –Bad flow no longer shares bin with same flows –Is history reset  does bad flow get to make trouble until detected again? No, can perform hash warmup in background