Variations of Weighted Fair Queueing

Slides:



Advertisements
Similar presentations
1 Network Telecommunication Group University of Pisa - Information Engineering department January Speaker: Raffaello Secchi Authors: Davide Adami.
Advertisements

CS 268: Packet Scheduling Ion Stoica March 18/20, 2003.
1 Comnet 2010 Communication Networks Recitation 4 Scheduling & Drop Policies.
1 GPS Example 2: Arrivals o Eleven Sources. First source gets 0.5. Other 10 sources get 0.05 each. First source sends 11 cells send one each at t=0.
Deficit Round Robin Scheduler. Outline Introduction Ordinary Problems Deficit Round Robin Latency of DRR Improvement of latencies.
1 Weighted Fair Queueing GPS PGPS SCFQ Implementation.
1 CNPA B Nasser S. Abouzakhar Queuing Disciplines Week 8 – Lecture 2 16 th November, 2009.
Abhay.K.Parekh and Robert G.Gallager Laboratory for Information and Decision Systems Massachusetts Institute of Technology IEEE INFOCOM 1992.
# 1 Scheduling: Buffer Management. # 2 The setting.
Worst-case Fair Weighted Fair Queueing (WF²Q) by Jon C.R. Bennett & Hui Zhang Presented by Vitali Greenberg.
Scheduling CS 215 W Keshav Chpt 9 Problem: given N packet streams contending for the same channel, how to schedule pkt transmissions?
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.
Service Disciplines for Guaranteed Performance Service Hui Zhang, “Service Disciplines for Guaranteed Performance Service in Packet-Switching Networks,”
Katz, Stoica F04 EECS 122: Introduction to Computer Networks Packet Scheduling and QoS Computer Science Division Department of Electrical Engineering and.
תזכורת  שבוע הבא אין הרצאה m יום א, נובמבר 15, 2009  שיעור השלמה m יום שישי, דצמבר 11, 2009 Lecture 4: Nov 8, 2009 # 1.
CS 268: Lecture 8 (Router Support for Congestion Control) Ion Stoica February 19, 2002.
Computer Networking Lecture 17 – Queue Management As usual: Thanks to Srini Seshan and Dave Anderson.
1 Queue Scheduling Analysis The Computer Communication Lab (236340) - Winter 2004 Tanya Berezner Ana Gluzband Gitit Amihud.
Lecture 4#-1 Scheduling: Buffer Management. Lecture 4#-2 The setting.
7/15/2015HY220: Ιάκωβος Μαυροειδής1 HY220 Schedulers.
CS144, Stanford University Error in Q3-7. CS144, Stanford University Using longest prefix matching, the IP address will match which entry? a /8.
Packet Scheduling From Ion Stoica. 2 Packet Scheduling  Decide when and what packet to send on output link -Usually implemented at output interface 1.
Fair Queueing. 2 First-Come-First Served (FIFO) Packets are transmitted in the order of their arrival Advantage: –Very simple to implement Disadvantage:
Virtual-Time Round-Robin: An O(1) Proportional Share Scheduler By Jason Nieh, etc Xiaojun Wang 10/07/2005.
March 29 Scheduling ?. What is Packet Scheduling? Decide when and what packet to send on output link 1 2 Scheduler flow 1 flow 2 flow n Buffer management.
CS640: Introduction to Computer Networks Aditya Akella Lecture 20 - Queuing and Basics of QoS.
Nick McKeown Spring 2012 Lecture 2,3 Output Queueing EE384x Packet Switch Architectures.
Packet Scheduling: SCFQ, STFQ, WF2Q Yongho Seok Contents Review: GPS, PGPS SCFQ( Self-clocked fair queuing ) STFQ( Start time fair queuing ) WF2Q( Worst-case.
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.
Scheduling CS 218 Fall 02 - Keshav Chpt 9 Nov 5, 2003 Problem: given N packet streams contending for the same channel, how to schedule pkt transmissions?
T. S. Eugene Ngeugeneng at cs.rice.edu Rice University1 COMP/ELEC 429/556 Introduction to Computer Networks Weighted Fair Queuing Some slides used with.
Lecture Note on Scheduling Algorithms. What is scheduling? A scheduling discipline resolves contention, “who is the next?” Goal: fairness and latency.
1 Fair Queuing Hamed Khanmirza Principles of Network University of Tehran.
Queue Scheduling Disciplines
CprE 458/558: Real-Time Systems (G. Manimaran)1 CprE 458/558: Real-Time Systems Energy-aware QoS packet scheduling.
1 A Deficit Round Robin 20MB/s Layer 2 Switch Muraleedhara Navada Francois Labonte.
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.
Scheduling for QoS Management. Engineering Internet QoS2 Outline  What is Queue Management and Scheduling?  Goals of scheduling  Fairness (Conservation.
CS244 Packet Scheduling (Generalized Processor Sharing) Some slides created by: Ion Stoica and Mohammad Alizadeh
04/02/08 1 Packet Scheduling IT610 Prof. A. Sahoo KReSIT.
Khiem Lam Jimmy Vuong Andrew Yang
Team: Aaron Sproul Patrick Hamilton
CPU SCHEDULING.
QoS & Queuing Theory CS352.
Stratified Round Robin: A Low Complexity Packet Scheduler with Bandwidth Fairness and Bounded Delay Sriram Ramabhadran Joseph Pasquale Presented by Sailesh.
Lottery Scheduling Ish Baid.
EE 122: Router Support for Congestion Control: RED and Fair Queueing
Quality of Service For Traffic Aggregates
COMP/ELEC 429/556 Introduction to Computer Networks
Scheduling Algorithms in Broad-Band Wireless Networks
Fair Queueing.
Scheduling: Buffer Management
EE384x: Packet Switch Architectures
Virtual-Time Round-Robin: An O(1) Proportional Share Scheduler
Computer Science Division
Variations of Weighted Fair Queueing
COMP/ELEC 429 Introduction to Computer Networks
Advanced Computer Networks
Packet Scheduling in Linux
Implementation and simulation of Scheduling Algorithms in OPNET
Introduction to Packet Scheduling
EECS 122: Introduction to Computer Networks Packet Scheduling and QoS
Hierarchical Scheduling Algorithms
Fair Queueing.
A Simple QoS Packet Scheduler for Network Routers
Introduction to Packet Scheduling
کنترل جریان امیدرضا معروضی.
Presentation transcript:

Variations of Weighted Fair Queueing

Issues with WFQ WFQ does not run behind GPS by more than Lmax/C . However, WFQ may run ahead of GPS by a lot Improvement: Bound the time by which WFQ can run ahead of GPS  WF2Q, WF2Q+ Implementation overhead of computing virtual time Improvement: Avoid virtual time computation, while maintaining fairness properties  SCFQ, SFQ, WF2Q+ Need to maintain a sorted queue (sorted in order of timestamps) Improvement: Use a round-robin approach  WRR, DRR (Stratified Round Robin)

Weighted Round Robin (WRR) Parameters: Li is the average packet size of flow i ϕi : weight of flow i (ϕi > 0) One FIFO queue for each flow Operates in “rounds”, where each queue with a backlog is visited once in a round Calculate the number of packets to be served in each round: For each flow i: xi = ϕi / Li x = mini { xi } For each flow i: packets_per_roundi = xi / x

Weighted Round Robin (WRR) If all flows are active and packets are equal to the average Li , then the rate allocated to flow i is WRR is a good approximation of GPS if All flows are active over long periods of time Packet sizes are equal to the average size Li Otherwise, WRR can deviate substantially from the desired fair allocation

Deficit Round Robin (DRR) Can be viewed as Improvement to WRR without need for average packet size Approximation of WFQ without need for a sorted queue One FIFO queue for each flow Operates in “rounds”, where each queue with a backlog is visited once in a round Qi : Quantum of flow Maximum number of bytes from flow i that are sent in one round (Quantum is greater than max. size of flow i packets (Qi > Limax)) DCi : Deficit counter of flow i Credit of flows (in bytes) saved for the next round Credits 50 100 75 50 50 50 75 50 50 50 75 150 75 Credits 50 100 75 Time 50 50 50 50 25 50 50 25 150 75 Credits 50 100 150 50 50 100 50 50 100 150 150 Drawing from:https://web.stanford.edu/class/ee384y/projects/download03/francois_muralee.ppt

Deficit Round Robin (DRR) If queue is empty: Qi=0 Otherwise, Add quantum Qi to flow i in each round: DCi = DCi + Qi Transmit packet with size L from head of queue i and set DCi = DCi - L Continue transmitting (and subtracting DCi) until packet size at head of queue i is larger than DCi Credits 50 100 75 50 50 50 75 50 50 50 75 150 75 Credits 50 100 75 Time 50 50 50 50 25 50 50 25 150 75 Credits 50 100 150 50 50 100 50 50 100 150 150 Drawing from:https://web.stanford.edu/class/ee384y/projects/download03/francois_muralee.ppt 6

Deficit Round Robin (DRR) The share of flow i: The bandwidth guarantee of flow i: Fairness metric for two backlogged flows i and j in [t1,t2]:

Self-Clocked Fair Queueing (SCFQ) Start-time Fair Queueing (SFQ)

Self-Clocked Fair Queueing (SCFQ) Objective: Avoid the need to keep track of system virtual time Idea: System virtual time keeps track of the service received by a flow with weight ϕi =1 Virtual finishing time of a packet is the finishing time of the packet in system virtual time Virtual finishing time encodes information on system virtual time Use virtual finishing time of a packet instead of system virtual time Fairness metric for two backlogged flows i and j in [t1,t2]:

Worst-Case Fair Fair Queueing (WF2Q)

WFQ and WF2Q … … 12 flows, all packets have size 1, C = 1: Flow 1 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 Flow 1 f1 = 0.5 time Flow 2 f2 = 0.05 time … … Flow 11 f11 = 0.05 time fluid flow system 20 2 6 4 21

WFQ and WF2Q … … … … 12 flows, all packets have size 1, C = 1: Flow 1 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 Flow 1 f1 = 0.5 time Flow 2 f2 = 0.05 time … … Flow 11 f11 = 0.05 time Flow 1 fluid flow system Flow 2 … … Flow 11 20 2 6 4 21

WFQ transmission order WFQ and WF2Q 12 flows, all packets have size 1, C = 1: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 Flow 1 f1 = 0.5 time Flow 2 f2 = 0.05 time … … Flow 11 f11 = 0.05 time WFQ transmission order time 10 20 21

Worst-Case Fair Fair Queueing Issue: While WFQ never falls behind the fluid-flow schedule by more than one packet size, it can run ahead of the fluid-flow schedule by an arbitrary amount. WF2Q Scheduling: Only considers packets for transmission that have already started transmission in the fluid-flow system Of these, it selects the packet with the smallest finishing time (in the fluid-flow system) WF2Q Properties: Like WFQ, WF2Q never falls behind the fluid-flow schedule by more than one packet size ( same end-to-end delay bounds as WFQ) Unlike WFQ, it never runs ahead of the fluid-flow schedule by more than one packet size

WFQ and WF2Q … … 12 flows, all packets have size 1, C = 1: Flow 1 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 Flow 1 f1 = 0.5 time Flow 2 f2 = 0.05 time … … Flow 11 f11 = 0.05 time WFQ transmission order WF2Q transmission order time 10 20 21

WFQ and WF2Q … … 12 flows, all packets have size 1, C = 1: Flow 1 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 Flow 1 f1 = 0.5 time Flow 2 f2 = 0.05 time … … Flow 11 f11 = 0.05 time WFQ transmission order WF2Q transmission order time 10 20 21