Router s Queue Management

Similar documents
Random Early Detection (RED) gateways. Sally Floyd CS 268: Computer Networks

Lecture 22: Buffering & Scheduling. CSE 123: Computer Networks Alex C. Snoeren

15-744: Computer Networking. Overview. Queuing Disciplines. TCP & Routers. L-6 TCP & Routers

CS 268: Computer Networking

Advanced Computer Networks

H3C S9500 QoS Technology White Paper

The Network Layer and Routers

Priority Traffic CSCD 433/533. Advanced Networks Spring Lecture 21 Congestion Control and Queuing Strategies

A framework to determine the optimal loss rate of RED queue for next generation Internet routers

WRED Explicit Congestion Notification

Resource allocation in networks. Resource Allocation in Networks. Resource allocation

Computer Networking. Queue Management and Quality of Service (QOS)

DEVELOPMENT FRAMEWORK FOR CONGESTION AVOIDANCE MECHANISMS

The War Between Mice and Elephants

Configuring Modular QoS Congestion Avoidance

Congestion Control and Resource Allocation

A Probabilistic Approach for Achieving Fair Bandwidth Allocations in CSFQ

Congestion Avoidance

Random Early Detection Gateways for Congestion Avoidance

Wireless Networks (CSC-7602) Lecture 8 (22 Oct. 2007) Seung-Jong Park (Jay) Fair Queueing

CS 557 Congestion and Complexity

QOS Section 6. Weighted Random Early Detection (WRED)

CHOKe - A simple approach for providing Quality of Service through stateless approximation of fair queueing. Technical Report No.

WRED-Explicit Congestion Notification

Fair Queueing. Presented by Brighten Godfrey. Slides thanks to Ion Stoica (UC Berkeley) with slight adaptation by Brighten Godfrey

Random Early Detection Gateways for Congestion Avoidance

Lecture 14: Congestion Control"

Internet Protocols Fall Lecture 16 TCP Flavors, RED, ECN Andreas Terzis

Randomization. Randomization used in many protocols We ll study examples:

Randomization used in many protocols We ll study examples: Ethernet multiple access protocol Router (de)synchronization Switch scheduling

RED behavior with different packet sizes

Unit 2 Packet Switching Networks - II

Overview. TCP & router queuing Computer Networking. TCP details. Workloads. TCP Performance. TCP Performance. Lecture 10 TCP & Routers

Quality of Service (QoS)

Congestion Avoidance

Congestion Control In the Network

EE 122: Router Support for Congestion Control: RED and Fair Queueing. Ion Stoica Oct. 30 Nov. 4, 2002

Kommunikationssysteme [KS]

Chapter 6 Queuing Disciplines. Networking CS 3470, Section 1

Overview. Lecture 22 Queue Management and Quality of Service (QoS) Queuing Disciplines. Typical Internet Queuing. FIFO + Drop tail Problems

CS 356: Computer Network Architectures Lecture 19: Congestion Avoidance Chap. 6.4 and related papers. Xiaowei Yang

Congestion Control & Transport protocols

IP QOS Theory and Practice. eng. Nikolay Milovanov CCIE SP# 20094

Lecture Outline. Bag of Tricks

CS519: Computer Networks. Lecture 5, Part 4: Mar 29, 2004 Transport: TCP congestion control

Real-Time Protocol (RTP)

CS4700/CS5700 Fundamentals of Computer Networks

Recap. More TCP. Congestion avoidance. TCP timers. TCP lifeline. Application Presentation Session Transport Network Data Link Physical

TCP Congestion Control : Computer Networking. Introduction to TCP. Key Things You Should Know Already. Congestion Control RED

Chapter 24 Congestion Control and Quality of Service 24.1

From Routing to Traffic Engineering

Adaptive RED: An Algorithm for Increasing the Robustness of RED s Active Queue Management or How I learned to stop worrying and love RED

Core-Stateless Fair Queueing: Achieving Approximately Fair Bandwidth Allocations in High Speed Networks. Congestion Control in Today s Internet

Congestion. Can t sustain input rate > output rate Issues: - Avoid congestion - Control congestion - Prioritize who gets limited resources

TCP Congestion Control

Configuring QoS CHAPTER

CS 349/449 Internet Protocols Final Exam Winter /15/2003. Name: Course:

Project Computer Networking. Resource Management Approaches. Start EARLY Tomorrow s recitation. Lecture 20 Queue Management and QoS

Lecture 14: Congestion Control"

Overview Computer Networking What is QoS? Queuing discipline and scheduling. Traffic Enforcement. Integrated services

Chapter 6 Congestion Avoidance. Networking CS 3470, Section 1

Advanced Lab in Computer Communications Meeting 6 QoS. Instructor: Tom Mahler

Three-section Random Early Detection (TRED)

Congestion Control In The Internet Part 2: How it is implemented in TCP. JY Le Boudec 2014

COMP/ELEC 429/556 Introduction to Computer Networks

Generic Architecture. EECS 122: Introduction to Computer Networks Switch and Router Architectures. Shared Memory (1 st Generation) Today s Lecture

CS551 Router Queue Management

Lecture 21. Reminders: Homework 6 due today, Programming Project 4 due on Thursday Questions? Current event: BGP router glitch on Nov.

CS644 Advanced Networks

Queue Management. Last Wed: CongesDon Control. Today: Queue Management. Packet Queues

Chapter 6: Congestion Control and Resource Allocation

On TCP friendliness of VOIP traffic

FDA: A Novel Base Station Flow Control Scheme for TCP over Heterogeneous Networks

Chapter 24 Congestion Control and Quality of Service Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Congestion 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 2014

CCVP QOS Quick Reference Sheets

Improving QOS in IP Networks. Principles for QOS Guarantees

Network Performance: Queuing

EECS 122: Introduction to Computer Networks Switch and Router Architectures. Today s Lecture

CS 268: Lecture 7 (Beyond TCP Congestion Control)

Queuing. Congestion Control and Resource Allocation. Resource Allocation Evaluation Criteria. Resource allocation Drop disciplines Queuing disciplines

Effect of RED and different packet sizes on Multimedia performance over wireless networks

Performance Consequences of Partial RED Deployment

Configuring QoS. Understanding QoS CHAPTER

QoS MIB Implementation

Congestion Control In The Internet Part 2: How it is implemented in TCP. JY Le Boudec 2015

Low pass filter/over drop avoidance (LPF/ODA): an algorithm to improve the response time of RED gateways

ADVANCED COMPUTER NETWORKS

Fair Bandwidth Sharing Between Unicast and Multicast Flows in Best-Effort Networks

Toward a Reliable Data Transport Architecture for Optical Burst-Switched Networks

UNIT IV -- TRANSPORT LAYER

of-service Support on the Internet

Master Course Computer Networks IN2097

Managing Caching Performance and Differentiated Services

EPH - International Journal of Science And Engineering

A Survey on Quality of Service and Congestion Control

CS CS COMPUTER NETWORKS CS CS CHAPTER 6. CHAPTER 6 Congestion Control

CS321: Computer Networks Congestion Control in TCP

TCP/IP over ATM using ABR, UBR, and GFR Services

Transcription:

Router s Queue Management

Manages sharing of (i) buffer space (ii) bandwidth

Q1: Which packet to drop when queue is full?

Q2: Which packet to send next?

FIFO + Drop Tail

Keep a single queue

Answer to Q1: Drop arriving packets when queue is full

Answer to Q2: Send the packet at head of queue

Round Robin

One queue per flow

Answer to Q1: Drop arriving packets from flow i when queue i is full

Answer to Q2: Each flow takes turn -- send the packet at the head of the queues in a round robin manner.

Advantages of FIFO and Drop Tail

Simple to implement

Scale well (no per-connection states)

Reduce delay for a bursty connection (e.g. VoIP)

Problems with FIFO and Drop Tail

Problem 1 Baised againts bursty traffic burstiness increases changes that the queue will overflow

Problem 2 Global synchronization connection reduces their windows simultaneously, lowering utilization.

Problem 3 Queue size higher bandwidth needs longer queue, increasing delay. TCP tries to keep the queue full

Problem 4 No isolation against unresponsive flows

Random Drop

Keep a single queue

Answer to Q1: Drop random packet in the queue when queue is full

Answer to Q2: Send the packet at head of queue

No bias against bursty traffic -- bursty arrival causes random packets to be dropped.

Flows with higher rate occupies more buffer spaces, have more chance to be dropped.

Signal flows that is congesting the network to slow down.

Random drop recovers from congestion (full queue) by dropping packets.

Early Random Drop

Answer to Q1: Drop arriving packet randomly if queue is longer than a threshold

Random drop avoid congestion (full queue) by dropping packets before queue is full.

RED Random Early Detection

Answer to Q1: Drop arriving packet randomly if average queue length is above than a threshold

Differences 1: Use average queue length instead of instantaneous length to absorb transient congestions.

Differences 2: Dropping probability should change dynamically depending on queue length.

Dropping Probability 1 Average Queue Length

foreach incoming packet X calc average queue length if min th < average < max th calc p drop X with probability p else if average > max th drop X

(Instead of dropping packets, we can also set the ECN bit to indicate congestion)

How to calculate average queue length? How to calculate drop probability How to set thresholds?

We can use exponentially weighted average. On every packet arrival:

Large w q : A burst of packets will cause avg to increase too fast, hit the max threshold Small w q : avg increases too slowly and we are unable to detect initial stage of congestions.

We can use exponentially weighted average. On every packet arrival:

We can use exponentially weighted average. On every packet arrival:

What if q drops to zero and no packet arrives? m is a function of period when queue is empty

How to calculate average queue length? How to calculate drop probability How to set thresholds?

Dropping Probability 1 p max Average Queue Length min th max th

How to calculate average queue length? How to calculate drop probability How to set thresholds?

max th - min th should be sufficiently large otherwise average queue size can oscillate beyond max th need more research for optimal average queue size.

Advantages of RED

No bias against bursty flows Less global synchronization Control average queue length

Variations of RED

RED does not deal with unresponsive flows

RED biases against flow with large packet size

We can fix this by weighting drop probability to packet size

A router can keep one queue per flow and apply RED to each one.

Drop probability can be weighted with the priority of the flow.

This is known as WRED and is implemented in some Cisco routers.

Simulation Results

Four TCP flows starting at time 0.2, 0.4, 0.6 and 0.8

Conclusion: RED increases throughput, reduces delay, controls average queue sizes, reduces global sync and is fairer to bursty traffic. It is deployed in routers today. But careful tuning of parameters is needed.