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

Similar documents
Random Early Detection Gateways for Congestion Avoidance

Random Early Detection Gateways for Congestion Avoidance

Router s Queue Management

Congestion Avoidance

RED behavior with different packet sizes

CS 268: Computer Networking

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

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

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

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

CPSC 826 Internetworking. Congestion Control Approaches Outline. Router-Based Congestion Control Approaches. Router-Based Approaches Papers

Buffer Requirements for Zero Loss Flow Control with Explicit Congestion Notification. Chunlei Liu Raj Jain

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

Analyzing the Receiver Window Modification Scheme of TCP Queues

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

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

Enhancing TCP Throughput over Lossy Links Using ECN-Capable Capable RED Gateways

Congestion Control for High Bandwidth-delay Product Networks. Dina Katabi, Mark Handley, Charlie Rohrs

Chapter 24 Congestion Control and Quality of Service 24.1

A New Fair Window Algorithm for ECN Capable TCP (New-ECN)

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

Lecture 14: Congestion Control"

EPH - International Journal of Science And Engineering

Lecture 21: Congestion Control" CSE 123: Computer Networks Alex C. Snoeren

Lecture 14: Congestion Control"

CS268: Beyond TCP Congestion Control

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

Congestion Control in Communication Networks

Effect of Number of Drop Precedences in Assured Forwarding

ADVANCED COMPUTER NETWORKS

Link-sharing and Resource Management Models for Packet Networks

Congestion Control In the Network

Congestion control in TCP

Traffic Management using Multilevel Explicit Congestion Notification

Congestion Control & Transport protocols

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

A Survey on Quality of Service and Congestion Control

A Report on Some Recent Developments in TCP Congestion Control

The Network Layer and Routers

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

The War Between Mice and Elephants

Exercises TCP/IP Networking With Solutions

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

Chapter 6 Congestion Avoidance. Networking CS 3470, Section 1

RECHOKe: A Scheme for Detection, Control and Punishment of Malicious Flows in IP Networks

8. TCP Congestion Control

Congestion Control for High-Bandwidth-Delay-Product Networks: XCP vs. HighSpeed TCP and QuickStart

Congestion Control for High Bandwidth-delay Product Networks

Advanced Computer Networks

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

Three-section Random Early Detection (TRED)

Congestion Control. Queuing Discipline Reacting to Congestion Avoiding Congestion. Issues

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

The Uniformization Process of the Fast Congestion Notification (FN)

WRED Explicit Congestion Notification

CS 268: Lecture 7 (Beyond TCP Congestion Control)

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

Router participation in Congestion Control. Techniques Random Early Detection Explicit Congestion Notification

A Report on Some Recent Developments in TCP Congestion Control

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

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

Chapter 6: Congestion Control and Resource Allocation

Congestion Control. Daniel Zappala. CS 460 Computer Networking Brigham Young University

Chapter 6 Congestion Control and Resource Allocation

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

Hybrid Random Early Detection Algorithm for Improving End-to-End Congestion Control in TCP/IP Networks

Equation-Based Congestion Control for Unicast Applications. Outline. Introduction. But don t we need TCP? TFRC Goals

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

CS644 Advanced Networks

Bandwidth Allocation & TCP

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

CS321: Computer Networks Congestion Control in TCP

Congestion Avoidance

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

TCP so far Computer Networking Outline. How Was TCP Able to Evolve

Unit 2 Packet Switching Networks - II

Congestion in Data Networks. Congestion in Data Networks

CS 5520/ECE 5590NA: Network Architecture I Spring Lecture 13: UDP and TCP

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

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

Performance Analysis of Assured Forwarding

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

Congestion Control and Resource Allocation

Lecture 4 Wide Area Networks - Congestion in Data Networks

Integrated and Differentiated Services. Christos Papadopoulos. CSU CS557, Fall 2017

WRED-Explicit Congestion Notification

Enhancing TCP Throughput over Lossy Links Using ECN-capable RED Gateways

ETSF05/ETSF10 Internet Protocols. Performance & QoS Congestion Control

Real-Time Protocol (RTP)

Transport Layer TCP / UDP

ENSC 835 project TCP performance over satellite links. Kenny, Qing Shao Grace, Hui Zhang

What Is Congestion? Computer Networks. Ideal Network Utilization. Interaction of Queues

PERFORMANCE ANALYSIS OF AF IN CONSIDERING LINK

ADVANCED TOPICS FOR CONGESTION CONTROL

Performance Evaluation of Controlling High Bandwidth Flows by RED-PD

Transport Protocols for Data Center Communication. Evisa Tsolakou Supervisor: Prof. Jörg Ott Advisor: Lect. Pasi Sarolahti

TCP. CSU CS557, Spring 2018 Instructor: Lorenzo De Carli (Slides by Christos Papadopoulos, remixed by Lorenzo De Carli)

Wireless TCP Performance Issues

Page 1. Review: Internet Protocol Stack. Transport Layer Services. Design Issue EEC173B/ECS152C. Review: TCP

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

Transcription:

Random Early Detection (RED) gateways Sally Floyd CS 268: Computer Networks floyd@eelblgov March 20, 1995 1

The Environment Feedback-based transport protocols (eg, TCP) Problems with current Drop-Tail gateways If queue size (buffer allocated for queue) is small, difficulties for large-window TCP connections during slow-start and little ability to accomodate transient congestion If queue is large, unnecessary delay for delay-sensitive traffic (eg, telnet TCP) Global synchronization, resulting in reduced aggregate throughput [Zhang and Clark, 1990] Biases against bursty traffic [Floyd and Jacobson, 1992] Fairness concerns, phase effects, etc 2

Underlying problems of Drop-Tail gateways Transient and persistent congestion are not distinguished Gateway has no control over packet drops (congestion feedback) Random-Drop gateways give the gateway some control of which packet to drop, but do not take care of all of the problems of Drop-Tail gateways 3

Approach of RED gateways Distinguish between transient and persistent congestion Design the network to accomodate bursty traffic, rather than shaping bursty traffic to accomodate the needs of the network The most effective detection of persistent congestion can occur at the gateway Let the gateway control packet drops When possible, use FIFO scheduling within a traffic class FIFO has low overhead, no scaling problems, and reduces the tail of the delay distribution Allow for gradual deployment, flexibility, and evolution 4

RED gateway algorithm: for each packet arrival calculate the new average queue size avg if min th avg < max th calculate probability p a with probability p a : mark/drop the arriving packet else if max th <avg drop the arriving packet Variables: avg : average queue size p a : packet marking/dropping probability Fixed parameters: min th : max th : minimum threshold for queue maximum threshold for queue 5

Queue size (solid line) and average queue size (dashed line) Time Queue 00 02 04 06 08 10 0 10 30 Time Packet Number (Mod 90) for Four Connections 00 02 04 06 08 10 0 100 200 300 400 A simulation with four FTP connections with staggered start times 6

Comparing Drop Tail and RED gateways Goals: high throughput, low average delay FTP SOURCES 3 4 1ms 100Mbps 5 GATEWAY 20ms 45Mbps 6 SINK Average Queue 0 20 40 60 80 100 04 06 08 10 Throughput (%) ( triangle for RED, square for Drop Tail) 7

Calculating the average queue size for each packet arrival if the queue is nonempty avg (1 0 wq)avg + wq q else using a table lookup: avg (10 wq) (time0q time)=s avg Parameters: wq : queue weight s: typical transmission time q : current queue size time: current time q time : start of the queue idle time For wq a power of two (eg, 2 09 0:002), this is efficient to implement 8

Time constant for calculating the average queue size The averaging has a time constant of 01=ln(1 0 w q ) packet arrivals That is, if the actual queue size changes from 0 to 1, and then stays at 1, then after 01=ln(1 0 w q ) packet arrivals avg will reach 0:63=10 1=e of the new value To allow a burst of L packets to arrive instantaneously, forming a queue of size L, before the average queue size reaches the minimum threshold min th : L +1+ (1 0 w q) L+1 0 1 w q <min th : (For min th =5 packets, and L =50 packets, choose w q 0: 0042) 9

Calculating the packet drop probability Method 1: The packet marking probability p is a linear function of avg p b max p (avg 0 min th )=(max th 0 min th ) This gives geometric (roughly exponential) intermarking intervals (the number of packets between marked/dropped packets) Method 2: The packet marking probability increases as count, the number of packets since the last marked packet, increases p a = p b =(1 0 count 1 p b ) This gives intermarking intervals uniform on [1,1=p b ] 1: 2: 0 1000 2000 3000 4000 5000 Packet Number (top row for Method 1, bottom row for Method 2) 10

Misbehaving users The probability that the gateway chooses a particular connection to notify (eg, mark or drop) during congestion is roughly proportional to that connection s share of the bandwidth at the gateway If a connection has a large fraction of the recent marked packets, then it has most likely received a large fraction of the recent bandwidth This gives an easy method for identifying high-bandwidth users in times of congestion If desired, such high-bandwidth users could receive differential treatment 11

Implementations RED algorithms implemented in software for IBM RS/6000 routers on ANSNET (45 Mbps network between Hawaii and continental US) The main goal is to achieve high link utilization, including for high-bandwidth TCP connections to the Maui High Performance Computing Center Open questions The optimal average queue size? RED gateways with ATM networks? RED gateways with rate-adaptive video? More on misbehaving users 12

Fairness issues with RED gateways: No bias against bursty traffic TCP traffic has a bias against connections with longer RTTs, due to the current TCP window increase algorithm [Floyd and Jacobson, 1992] Throughput (%) 0 20 40 60 80 100 2 4 6 8 round trip time ratio (solid, + = node 1, dashed, x = node 2) There is a bias against connections that pass through multiple congested gateways [Floyd 1991] It is not clear (to me) that this is a bad thing Treatment of misbehaving users? 13

TCP and Explicit Congestion Notification? Advantages of ECN over packet drops: Avoiding unnecessary packet drops Quicker detection by sources of congestion (without having to wait to detect a dropped packet) Disadvantages of ECN: Lost ECN messages (eg, Source Quench, lost ACK packets with congestion indication bits) Non-compliant sources? Changes to TCP: Response should be similar, over longer time scales, to the response to a dropped packet A single ECN would be treated as an indication of congestion, but TCP would react at most once per RTT [Floyd 1994] 14

References (Zhang and Clark 1990), Zhang, L, and Clark, D, Oscillating Behavior of Network Traffic: A Case Study Simulation, Internetworking: Research and Experience, Vol 1 No 2, December 1990, pp 101-112 (Floyd 1991) Connections with Multiple Congested Gateways in Packet-Switched Networks Part 1: One-way Traffic, Computer Communication Review, V21 N5, October 1991, pp 30-47 (Floyd and Jacobson 1992), On Traffic Phase Effects in Packet-Switched Gateways, Internetworking: Research and Experience, V3 N3, September 1992, p115-156 (Floyd and Jacobson 1993), Random Early Detection Gateways for Congestion Avoidance, IEEE/ACM Transactions on Networking, V1 N4, August 1993, p 397-413 (Floyd 1994), TCP and Explicit Congestion Notification, to appear in ACM Computer Communication Review 15