DRFQ: Multi-Resource Fair Queueing for Packet Processing Ali Ghodsi 1,3, Vyas Sekar 2, Matei Zaharia 1, Ion Stoica 1 1 UC Berkeley, 2 Intel ISTC/Stony.

Slides:



Advertisements
Similar presentations
VCRIB: Virtual Cloud Rule Information Base Masoud Moshref, Minlan Yu, Abhishek Sharma, Ramesh Govindan HotCloud 2012.
Advertisements

Sharing Cloud Networks Lucian Popa, Gautam Kumar, Mosharaf Chowdhury Arvind Krishnamurthy, Sylvia Ratnasamy, Ion Stoica UC Berkeley.
Stratos: A Network-Aware Orchestration Layer for Middleboxes in the Cloud Aditya Akella, Aaron Gember, Anand Krishnamurthy, Saul St. John University of.
Abhay.K.Parekh and Robert G.Gallager Laboratory for Information and Decision Systems Massachusetts Institute of Technology IEEE INFOCOM 1992.
Performance Evaluation of Open Virtual Routers M.Siraj Rathore
Design and Implementation of a Consolidated Middlebox Architecture 1 Vyas SekarSylvia RatnasamyMichael ReiterNorbert Egi Guangyu Shi.
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.
Towards Virtual Routers as a Service 6th GI/ITG KuVS Workshop on “Future Internet” November 22, 2010 Hannover Zdravko Bozakov.
Reciprocal Resource Fairness: Towards Cooperative Multiple-Resource Fair Sharing in IaaS Clouds School of Computer Engineering Nanyang Technological University,
CloudScale: Elastic Resource Scaling for Multi-Tenant Cloud Systems Zhiming Shen, Sethuraman Subbiah, Xiaohui Gu, John Wilkes.
Chapter 8 Hardware Conventional Computer Hardware Architecture.
The War Between Mice and Elephants Presented By Eric Wang Liang Guo and Ibrahim Matta Boston University ICNP
CS 268: Active Networks Ion Stoica May 6, 2002 (* Based on David Wheterall presentation from SOSP ’99)
CS 268: Lecture 15/16 (Packet Scheduling) Ion Stoica April 8/10, 2002.
Generalized Processing Sharing (GPS) Is work conserving Is a fluid model Service Guarantee –GPS discipline can provide an end-to-end bounded- delay service.
ISCSI Performance in Integrated LAN/SAN Environment Li Yin U.C. Berkeley.
Katz, Stoica F04 EECS 122: Introduction to Computer Networks Packet Scheduling and QoS Computer Science Division Department of Electrical Engineering and.
CS 268: Lecture 8 (Router Support for Congestion Control) Ion Stoica February 19, 2002.
Congestion Control for High Bandwidth-Delay Product Environments Dina Katabi Mark Handley Charlie Rohrs.
Packet Scheduling From Ion Stoica. 2 Packet Scheduling  Decide when and what packet to send on output link -Usually implemented at output interface 1.
Network Sharing Issues Lecture 15 Aditya Akella. Is this the biggest problem in cloud resource allocation? Why? Why not? How does the problem differ wrt.
Dynamic and Decentralized Approaches for Optimal Allocation of Multiple Resources in Virtualized Data Centers Wei Chen, Samuel Hargrove, Heh Miao, Liang.
Cloud Computing Energy efficient cloud computing Keke Chen.
DRFQ: Multi-Resource Fair Queueing for Packet Processing Ali Ghodsi 1,3, Vyas Sekar 2, Matei Zaharia 1, Ion Stoica 1 1 UC Berkeley, 2 Intel ISTC/Stony.
Improving Network I/O Virtualization for Cloud Computing.
INFOCOM A Receiver-Driven Bandwidth Sharing System (BWSS) for TCP Puneet Mehra, Avideh Zakhor UC Berkeley, USA Christophe De Vleeschouwer Université.
1 MaxNet and TCP Reno/RED on mice traffic Khoa Truong Phan Ho Chi Minh city University of Technology (HCMUT)
Advance Computer Networking L-5 TCP & Routers Acknowledgments: Lecture slides are from the graduate level Computer Networks course thought by Srinivasan.
E VALUATION OF F AIRNESS IN ICN X. De Foy, JC. Zuniga, B. Balazinski InterDigital
Dominant Resource Fairness: Fair Allocation of Multiple Resource Types Ali Ghodsi, Matei Zaharia, Benjamin Hindman, Andy Konwinski, Scott Shenker, Ion.
Korea Advanced Institute of Science and Technology Network Systems Lab. 1 Dual-resource TCP/AQM for processing-constrained networks INFOCOM 2006, Barcelona,
Smita Vijayakumar Qian Zhu Gagan Agrawal 1.  Background  Data Streams  Virtualization  Dynamic Resource Allocation  Accuracy Adaptation  Research.
Fair Queueing. 2 First-Come-First Served (FIFO) Packets are transmitted in the order of their arrival Advantage: –Very simple to implement Disadvantage:
Opportunistic Traffic Scheduling Over Multiple Network Path Coskun Cetinkaya and Edward Knightly.
CS640: Introduction to Computer Networks Aditya Akella Lecture 20 - Queuing and Basics of QoS.
Efficient Cache Structures of IP Routers to Provide Policy-Based Services Graduate School of Engineering Osaka City University
Packet Scheduling: SCFQ, STFQ, WF2Q Yongho Seok Contents Review: GPS, PGPS SCFQ( Self-clocked fair queuing ) STFQ( Start time fair queuing ) WF2Q( Worst-case.
Deadline-based Resource Management for Information- Centric Networks Somaya Arianfar, Pasi Sarolahti, Jörg Ott Aalto University, Department of Communications.
T. S. Eugene Ngeugeneng at cs.rice.edu Rice University1 COMP/ELEC 429 Introduction to Computer Networks Lecture 18: Quality of Service Slides used with.
Scheduling Determines which packet gets the resource. Enforces resource allocation to each flows. To be “Fair”, scheduling must: –Keep track of how many.
Author Utility-Based Scheduling for Bulk Data Transfers between Distributed Computing Facilities Xin Wang, Wei Tang, Raj Kettimuthu,
1 Fair Queuing Hamed Khanmirza Principles of Network University of Tehran.
XCP: eXplicit Control Protocol Dina Katabi MIT Lab for Computer Science
Queue Scheduling Disciplines
John Kubiatowicz and Anthony D. Joseph
Spring Computer Networks1 Congestion Control Sections 6.1 – 6.4 Outline Preliminaries Queuing Discipline Reacting to Congestion Avoiding Congestion.
Analysis of the increase and Decrease Algorithms for Congestion in Computer Networks Portions of the slide/figures were adapted from :
Scheduling for QoS Management. Engineering Internet QoS2 Outline  What is Queue Management and Scheduling?  Goals of scheduling  Fairness (Conservation.
Presented by Qifan Pu With many slides from Ali’s NSDI talk Ali Ghodsi, Matei Zaharia, Benjamin Hindman, Andy Konwinski, Scott Shenker, Ion Stoica.
Dominant Resource Fairness: Fair Allocation of Multiple Resource Types Ali Ghodsi, Matei Zaharia, Benjamin Hindman, Andy Konwinski, Scott Shenker, Ion.
Lecture 4 Page 1 CS 111 Summer 2013 Scheduling CS 111 Operating Systems Peter Reiher.
SketchVisor: Robust Network Measurement for Software Packet Processing
William Stallings Data and Computer Communications
Corelite Architecture: Achieving Rated Weight Fairness
Jacob R. Lorch Microsoft Research
Xin Li , Chen Qian University of Kentucky
Lottery Scheduling and Dominant Resource Fairness (Lecture 24, cs262a)
CS 425 / ECE 428 Distributed Systems Fall 2016 Nov 10, 2016
15-744: Computer Networking
On-Time Network On-chip
Open Issues in Router Buffer Sizing
Quality of Service For Traffic Aggregates
Aggressiveness Protective Fair Queuing for Bursty Applications
Fair Queueing.
Smita Vijayakumar Qian Zhu Gagan Agrawal
Fair Queueing.
NitroSketch: Robust and General Sketch-based Monitoring in Software Switches Alan (Zaoxing) Liu Joint work with Ran Ben-Basat, Gil Einziger, Yaron Kassner,
کنترل جریان امیدرضا معروضی.
Presentation transcript:

DRFQ: Multi-Resource Fair Queueing for Packet Processing Ali Ghodsi 1,3, Vyas Sekar 2, Matei Zaharia 1, Ion Stoica 1 1 UC Berkeley, 2 Intel ISTC/Stony Brook, 3 KTH 1

Increasing Network Complexity Packet processing becoming evermore sophisticated – Software Defined Networking (SDN) – Middleboxes – Software Routers (e.g. RouteBricks) – Hardware Acceleration (e.g. SSLShader) Data plane no longer merely forwarding – WAN optimization – Caching – IDS – VPN 2

Motivation Flows increasingly have heterogeneous resource consumption – Intrusion detection bottlenecking on CPU – Small packets bottleneck memory-bandwidth – Unprocessed large packets bottleneck on link bw 3 Scheduling based on a single resource insufficient

Problem How to schedule packets from different flows, when packets consume multiple resources? 4 How to generalize fair queueing to multiple resources?

Contribution 5 Allocation in Space Allocation in Time Single-Resource Fairness Max-Min Fairness Fair Queueing Multi-Resource Fairness DRFDRFQ Generalize Virtual Time to Multiple Resources

Outline Analysis of Natural Policies DRF allocations in Space DRFQ: DRF allocations in Time Implementation/Evaluation 6

Desirable Multi-Resource Properties Share guarantee: – Each flow can get 1/n of at least one resource Strategy-proofness: – A flow shouldn’t be able to finish faster by increasing the resources required to process it. 7

Violation of Share Guarantee Example using traditional FQ – Two resources CPU and NIC, used serially – Two flows with profiles and – FQ based on NIC alternates one packet from each flow – CPU bottlenecked due to more aggregate demand Share Guarantee Violated by Single Resource FQ Flow 2 Flow 1 100% 50% 0% CPUNIC 66% 33% 8

Violation of Strategy-Proofness Bottleneck fairness by related work – Determine which resource is bottlenecked – Apply FQ to that resource Example with Bottleneck Fairness – 2 resources (CPU, NIC), 3 flows,, – CPU bottlenecked and split equally – Flow 1 changes to. NIC bottlenecked and split equally Bottleneck Fairness Violates Strategy-Proofness CPUNIC 0% 100% 50% 48% CPUNIC 0% 100% 50% 33% flow 1 flow 2 flow 3 33% 9

Is strategy-proofness important? Lack of strategy-proofness encourages wastage – Decreasing goodput of the system Networking applications especially savvy – Peer-to-peer apps manipulate to get more resources Trivially guaranteed for single resource fairness – But not for multi-resource fairness 10

Outline Analysis of Natural Policies DRF allocations in Space DRFQ: DRF allocations in Time Implementation/Evaluation 11

Dominant Resource Fairness DRF originally in the cloud computing context – Satisfies share guarantee – Satisfies strategy-proofness 12

DRF Allocations Dominant resource of a user is the resource she is allocated most of – Dominant share is the user’s share of her dominant resource DRF: apply max-min fairness to dominant shares – ”Equalize” the dominant share of all users Total resources: User 1 demand: dom res: CPU User 2 demand: dom res: mem 13 User 2 User 1 100% 50% 0% CPUmem 3 CPUs 12 GB 12 CPUs4 GB 66%

Allocations in Space vs Time DRF provides allocations in space – Given 1000 CPUs and 1 TB mem, how much to allocate to each user DRFQ provides DRF allocations in time – Multiplex packets to achieve DRF allocations over time 14

Outline Analysis of Natural Policies DRF allocations in Space DRFQ: DRF allocations in Time Implementation/Evaluation 15

Packet Resource Consumption Link usage of packets trivial in FQ – Packet size divided by throughput of link Packet processing time a-priori unknown for multi-resources – Depends on the modules that process it Leverage Start-time Fair Queueing (SFQ) – Schedules based on virtual start time of packets – Start time of packet p independent of resource consumption of packet p 16

Memoryless Requirement Lesson from Virtual Clock – Simulated flows being dedicated a predefined 1/n share Problem – During light load a flow might get more than 1/n – A flow receiving more than 1/n gets punished later Requirement: memoryless scheduling – A flow’s share of resources should be independent of its share in the past 17

Real Time Virtual Time V(t) Virtual Time Virtual time to track amount service received – A unit of virtual time always corresponds to same amount of service Example with 2 flows – Time 20: one backlogged flow – Time 40: two backlogged flows Schedule the packets according to V(t) – Assign virtual start/finish time when packet arrives slope 2 slope 1

Dove-tailing Requirement Packet size doesn’t affect service received in FQ – Flow with 10 1kb packets gets same service as 5 2kb packets Use flow processing time, not packet processing time – Example: give same service to these flows: Flow 1:p 1,p 2,p 3,p 4, … Flow 2:p 1,p 2, p 3,p 4, … Requirement: dove-tailing – Packet processing times should be independent of how resource consumption is distributed in a flow 19

Tradeoff Dovetailing and memoryless property at odds – Dovetailing needs to remember past consumption DRFQ developed in three steps – Memoryless DRFQ: uses a single virtual time – Dovetailing DRFQ : use virtual time per resource – DRFQ: generalizes both 20

Memoryless DRFQ Attach a virtual start and finish time to every packet Computing virtual finish time 1.finish time = start time + packet-max-processing-time Computing virtual start time 2.Start time of the first packet in a burst equals the start time of the packet currently serviced (zero if none) 3.For a backlogged flow, the start time of a packet is equal to finish time of previous packet Service the packet with minimum virtual start time 21

Memoryless DRFQ example Two flows become backlogged at time 0 – Flow 1 alternates and packet processing – Flow 2 uses packet processing time 1.finish time = start time + packet-max-processing-time 2.start time of first packet in burst equals start time of the packet currently serviced (zero if none) 3.For backlogged flows, start time is finish time of previous packet 22 Flow 1 P1 S: 0 F: 2 Flow 1 P2 S: 2 F: 4 Flow 1 P3 S: 4 F: 6 Flow 1 P4 S: 6 F: 8 Flow 1 P5 S: 8 F: 10 Flow 2 P1 S: 0 F: 3 Flow 2 P2 S: 3 F: 6 Flow 2 P3 S: 6 F: 9 Flow 1 gets worse service than Flow 2

Dovetailing DRFQ Keep track of start and finish time per resource – Dovetail by keeping track of all resource usage – For each packet use the maximum start time 23

Dovetailing DRFQ example 24 Flow 1 S 1 : 0 F 1 : 1 S 2 : 0 F 2 : 2 Flow 1 S 1 : 1 F 1 : 3 S 2 : 2 F 2 : 3 Flow 1 S 1 : 3 F 1 : 4 S 2 : 3 F 2 : 5 Flow 1 S 1 : 4 F 1 : 6 S 2 : 5 F 2 : 6 Flow 1 S 1 : 6 F 1 : 7 S 2 : 6 F 2 : 8 Flow 2 S 1 : 0 F 1 : 3 S 2 : 0 F 2 : 3 Flow 2 S 1 : 3 F 1 : 6 S 2 : 3 F 2 : 6 Flow 2 S 1 : 6 F 1 : 9 S 2 : 6 F 2 : 9 Dovetailing ensures both flows get same service Two flows become backlogged at time 0 – Flow 1 alternates and packet processing – Flow 2 uses per packet

DRFQ algorithm DRFQ bounds dovetailing to Δ processing time – Dovetail up to Δ processing time units – Memoryless beyond Δ DRFQ is a generalization – When Δ=0 then DRFQ=memoryless DRFQ – When Δ=∞ then DRFQ=dovetailing DRFQ Set Δ to a few packets worth of processing 25

Outline Analysis of Natural Policies DRF allocations in Space DRFQ: DRF allocations in Time Implementation/Evaluation 26

Isolation Experiment DRFQ Implementation in Click – 2 elephants: 40K/sec basic, 40K/sec IPSec – 2 mice: 1/sec basic, 0.5/sec basic Non-backlogged flows isolated from backlogged flows 27

Simulating Bottleneck Fairness 2 flows and 2 res. – Demands and  bottleneck unclear Especially bad for TCP and video/audio traffic 28

Summary Packet processing becoming evermore sophisticated – Consume multiple resources Natural policies not suitable – Per-Resource Fairness (PRF) not strategy-proof – Bottleneck Fairness doesn’t provide isolation Proposed Dominant Resource Fair Queueing (DRFQ) – Generalization of FQ to multiple resources – Generalizes virtual time to multiple resources – Provides tradeoff between memoryless and dovetailing – Provides share-guarantee (isolation) and strategy- proofness 29

30

31

Natural Policy Per-Resource Fairness (PRF) – Have a buffer between each resource – Apply fair queueing to each resource PRF abandoned in favor of DRFQ – Not strategy-proof – Requires per-resource buffers

Overhead 350 MB trace run through our Click implementation Evaluate overhead of two modules – Intrusion Detection, 2% overhead – Flow monitoring, 4% overhead 33

Determining Resource Consumption Resource consumption obvious in routers – Packet size divided by link rate Generalize consumption to processing time – Normalized time a resource takes to process packet Normalized processing time – e.g. 1 core takes 20μs to service a packet, on a quad-core the packet processing time is 5μs – Packet processing time ≠ packet service time 34

Module Consumption Estimation Linear estimation of processing time – For module m and resource r as function of packet size R 2 > 0.90 for most modules 35

Simulating Bottleneck Fairness 2 flows and 2 res. – Demands and  bottleneck unclear – CPU bottleneck:7× + = – NIC bottleneck: + 6× = – Periodically oscillates the bottleneck 36

TCP and oscillations Implemented Bottleneck Fairness in Click – 20 ms artificial link delay added to simulate WAN – Bottleneck determined every 300 ms – 1 BW-bound flow and 1 CPU-bound flow Oscillations in Bottleneck degrade performance of TCP 37

Multi-Resource Consumption Contexts Different modules within a middlebox – E.g. Bro modules for HTTP, FTP, telnet Different apps on a consolidated middlebox – Different applications consume different resources Other contexts – VM scheduling in hypervisors – Requests to a shared service (e.g. HDFS) 38