Scheduling for QoS Management. Engineering Internet QoS2 Outline  What is Queue Management and Scheduling?  Goals of scheduling  Fairness (Conservation.

Slides:



Advertisements
Similar presentations
CS 268: Packet Scheduling Ion Stoica March 18/20, 2003.
Advertisements

1 Comnet 2010 Communication Networks Recitation 4 Scheduling & Drop Policies.
Multicost (or QoS) routing For example: More generally, Minimize f(V)=f(V 1,…,V k ) over all paths.
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 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.
Courtesy: Nick McKeown, Stanford 1 Intro to Quality of Service Tahir Azim.
# 1 Scheduling: Buffer Management. # 2 The setting.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 ECSE-6600: Internet Protocols Informal Quiz #11 Shivkumar Kalyanaraman: GOOGLE: “Shiv RPI”
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.
Computer Networking Lecture 17 – Queue Management As usual: Thanks to Srini Seshan and Dave Anderson.
Lecture 4#-1 Scheduling: Buffer Management. Lecture 4#-2 The setting.
1 Netcomm 2005 Communication Networks Recitation 4.
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.
A Generalized Processor Sharing Approach to Flow Control in Integrated Services Networks: The Single-Node Case Abhay K. Parekh, Member, IEEE, and Robert.
Packet Scheduling and Buffer Management in Routers (A Step Toward Quality-of-service) 10-1.
CIS679: Scheduling, Resource Configuration and Admission Control r Review of Last lecture r Scheduling r Resource configuration r Admission control.
CSE QoS in IP. CSE Improving QOS in IP Networks Thus far: “making the best of best effort”
An Integrated IP Packet Shaper and Scheduler for Edge Routers MSEE Project Presentation Student: Yuqing Deng Advisor: Dr. Belle Wei Spring 2002.
CS640: Introduction to Computer Networks Aditya Akella Lecture 20 - Queuing and Basics of QoS.
CONGESTION CONTROL and RESOURCE ALLOCATION. Definition Resource Allocation : Process by which network elements try to meet the competing demands that.
Advance Computer Networking L-5 TCP & Routers Acknowledgments: Lecture slides are from the graduate level Computer Networks course thought by Srinivasan.
Fair Queueing. 2 First-Come-First Served (FIFO) Packets are transmitted in the order of their arrival Advantage: –Very simple to implement Disadvantage:
Queueing and Scheduling Traffic is moved by connecting end-systems to switches, and switches to each other Traffic is moved by connecting end-systems to.
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.
Packet Scheduling and Buffer Management Switches S.Keshav: “ An Engineering Approach to Networking”
Bjorn Landfeldt, The University of Sydney 1 NETS3303 Networked Systems.
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.
Dynamic Bandwidth Allocation with Fair Scheduling For WCDMA Systems Liang Xu, Xumin Shen, and Jon W. Mark University of Waterloo published in IEEE Wireless.
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.
CprE 458/558: Real-Time Systems (G. Manimaran)1 CprE 458/558: Real-Time Systems Real-Time Networks – WAN Packet Scheduling.
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?
048866: Packet Switch Architectures
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
Adaptive Inverse Multiplexing for Wide-Area Wireless Networks Alex C. Snoeren MIT Laboratory for Computer Science IEEE Globecom ’99 Rio de Janeiro, December.
Multicost (or QoS) routing For example: More generally, Minimize f(V)=f(V 1,…,V k ) over all paths.
Spring Computer Networks1 Congestion Control Sections 6.1 – 6.4 Outline Preliminaries Queuing Discipline Reacting to Congestion Avoiding Congestion.
CSci5221: Packet Scheduling11 Packet Scheduling (and QoS) Packet Scheduling and Queue Management Beyond FIFO: –Class-based Queueing: Priority Queueing,
Providing QoS in IP Networks
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.
QoS & Queuing Theory CS352.
Congestion Control and Resource Allocation
Stratified Round Robin: A Low Complexity Packet Scheduler with Bandwidth Fairness and Bounded Delay Sriram Ramabhadran Joseph Pasquale Presented by Sailesh.
Variations of Weighted Fair Queueing
Scheduling Algorithms in Broad-Band Wireless Networks
Fair Queueing.
Scheduling: Buffer Management
EE384x: Packet Switch Architectures
Computer Science Division
Variations of Weighted Fair Queueing
COMP/ELEC 429 Introduction to Computer Networks
EECS 122: Introduction to Computer Networks Packet Scheduling and QoS
Fair Queueing.
A Simple QoS Packet Scheduler for Network Routers
کنترل جریان امیدرضا معروضی.
Presentation transcript:

Scheduling for QoS Management

Engineering Internet QoS2 Outline  What is Queue Management and Scheduling?  Goals of scheduling  Fairness (Conservation Law/Max-min fair share)  Various scheduling techniques  Research directions in scheduling

Engineering Internet QoS3 What is scheduling?  Packets from multiple flows compete for same outgoing link.  Which packets should be given preference?  How many packets should be transmitted from a flow?  Simple solution: First come best served  Complex solution: Provide QoS guarantees.

Engineering Internet QoS4 Scheduling Goals  Sharing bandwidth  Fairness to competing flows  Meeting bandwidth guarantees (max and min)  Meeting loss guarantees (multiple level)  Meeting delay guarantees (multiple level)  Reducing delay variations

Engineering Internet QoS5 Conservation law  Sum of the mean queuing delays received by the set of multiplexed connections, weighted by their share of link’s load is independent of the scheduling discipline – Kleinrock

Engineering Internet QoS6 Conservation Law Contd

Engineering Internet QoS7 Max-min fair share  Allocates the smallest of all demands from all flows  Distribute remaining resources equally competing of the flows  Guarantees fairness

Engineering Internet QoS8 Scheduling Disciplines  First come first serve (FCFS)  Priority (PQ)  Round Robin (RR)/Weighed round robin  Deficit round robin (DRR)  Weighted fair queuing (WFQ)  Class based queuing (CBQ)

Engineering Internet QoS9 First Come First Serve  Packets enqueued into a common buffer  Server serves packet from front of queue  No fair sharing of bandwidth  No flow isolation  No priority or QoS guarantee

Engineering Internet QoS10 FCFS example Reprinted with Permission from “Engineering Internet QoS - Jha & Hassan, Artech House Publishing, Norwood, MA, USA.

Engineering Internet QoS11 Priority Queuing  Multiple queues with priority 0 to n-1  Priority 0 served first  Priority i served only if 0 to i-1 empty  Highest priority – lowest delay/loss, highest bandwidth  Possible starvation of lower class

Engineering Internet QoS12 Priority Queue example Reprinted with Permission from “Engineering Internet QoS - Jha & Hassan, Artech House Publishing, Norwood, MA, USA.

Engineering Internet QoS13 Generalized processor sharing  Ideal work conserving scheme  Flows kept in separate queue  Serve infinitesimal amount of data from each queue  Serve all active queues in finite time  Weight can be associated with each queue  Achieves max-min fair share

Engineering Internet QoS14 GPS Continued  In GPS terminology, a connection is called backlogged when it has data present in queue.  Lets assume that there are K flows to be served by a server implementing GPS with weights w(1),.. w(k) Service rate of i th flow in interval [τ, t] is represented as R(i, τ,t). For any backlogged flow i in interval [τ,t] and for another flow j, the following equation holds:

Engineering Internet QoS15 Round Robin  Flows kept in separate queue  Serve one packet from each active queue  Fair share but no bandwidth guarantee  What if packet size variable

Engineering Internet QoS16 Weighted Round Robin  Allows variable length packet  Serves n packet from a queue  n adjusted to specific fraction of link share  Fairness problem at small time scale  Needs to know packet size a priori  Assume 3 ATM sources (small cell size) with weights 0.75, 1.0 and 1.5. If these weights are normalised to integer values, each source will be served 3, 4 and 6 cells in each round.

Engineering Internet QoS17 Deficit Round Robin  No need to know packet size a priori  Initially serves each queue quantum worth of bits  If packet less than or equal to quantum, serve it  Else increment deficit_counter by quantum  If no more outstanding packet, reset deficit_counter (Why?)  Set quantum to minimum MTU of all incoming links  Fairness problem at smaller time scale

Engineering Internet QoS18 DRR Example 1 Reprinted with Permission from “Engineering Internet QoS - Jha & Hassan, Artech House Publishing, Norwood, MA, USA.

Engineering Internet QoS19 DRR Example 2 Reprinted with Permission from “Engineering Internet QoS - Jha & Hassan, Artech House Publishing, Norwood, MA, USA.

Engineering Internet QoS20 DRR Example 3 Reprinted with Permission from “Engineering Internet QoS - Jha & Hassan, Artech House Publishing, Norwood, MA, USA.

Engineering Internet QoS21 DRR Example 4 Reprinted with Permission from “Engineering Internet QoS - Jha & Hassan, Artech House Publishing, Norwood, MA, USA.

Engineering Internet QoS22 Weighted Fair Queuing  Packets tagged with a value identifying the time last bit of packet should be transmitted using GPS simulation  Packet with lowest tag value transmitted by scheduler  Uses complex finish time calculation  Hard to implement with variable packet size  QoS guarantees possible (gets bandwidth in proportion of weight)

Engineering Internet QoS23 WFQ Delay bounds  Delay can be bounded if flows can be policed (token bucket)  Flows regulated by token bucket are put in different queues  Each queue has assigned weight  With token bucket policing, assume that intially the token bucket is full and a brust of b i packets arrive for a flow of class i. Last packet to complete service will suffer a maximum delay of d max given by equation

Engineering Internet QoS24 WFQ Delay with Token bucket Reprinted with Permission from “Engineering Internet QoS - Jha & Hassan, Artech House Publishing, Norwood, MA, USA.

Engineering Internet QoS25 Finish Time Calculation  Following equation shows the finish time calcuation where R(t) is called round number. P c m is the time required to transmit m th packet from c th connection and w(c) is the weight of connection c.

Engineering Internet QoS26 Round Number  This is the number a bit-by-bit round robing scheduler (in place of GPS’s non-implementable infinitesimal data) has completed at a given time. The round number is a variable that depends on number of active queues to be served (inversely proportional to the active queue number). The more queues to serve, the longer a round will take to complete (example and figure in section of text)

Engineering Internet QoS27 Virtual Clock  Also known as Fair Queuing  WFQ finish time calculation is very complex  Virtual clock replaces round time with real time as per the following equation (here, A m is the real-arrival time of packet m):

Engineering Internet QoS28 VC Example Reprinted with Permission from “Engineering Internet QoS - Jha & Hassan, Artech House Publishing, Norwood, MA, USA.

Engineering Internet QoS29 Class Based Queuing Reprinted with Permission from “Engineering Internet QoS - Jha & Hassan, Artech House Publishing, Norwood, MA, USA.

Engineering Internet QoS30 CBQ Contd Reprinted with Permission from “Engineering Internet QoS - Jha & Hassan, Artech House Publishing, Norwood, MA, USA.

Engineering Internet QoS31 Scheduling Research Directions  Worst-case fair weighted Fair queuing (WF 2 Q)  Self clocked fair queuing (SCFQ)  Start time fair queuing (SFQ)  Core state fair queuing (CSFQ)  Score others