Mean Delay in M/G/1 Queues with Head-of-Line Priority Service and Embedded Markov Chains Wade Trappe.

Slides:



Advertisements
Similar presentations
Lecture 10 Queueing Theory. There are a few basic elements common to almost all queueing theory application. Customers arrive, they wait for service in.
Advertisements

Thrasyvoulos Spyropoulos / Eurecom, Sophia-Antipolis 1  Load-balancing problem  migrate (large) jobs from a busy server to an underloaded.
INDR 343 Problem Session
Richard J. Boucherie department of Applied Mathematics
TCOM 501: Networking Theory & Fundamentals
Lecture 13 – Continuous-Time Markov Chains
 2003 G.L. Li and V. O.K. Li, The University of Hong Kong 1 Networks of Queues: Myth and Reality Guang-Liang Li and Victor O.K. Li The University of Hong.
#11 QUEUEING THEORY Systems Fall 2000 Instructor: Peter M. Hahn
ECS 152A Acknowledgement: slides from S. Kalyanaraman & B.Sikdar
Performance analysis for high speed switches Lecture 6.
TCOM 501: Networking Theory & Fundamentals
1 Performance Evaluation of Computer Networks Objectives  Introduction to Queuing Theory  Little’s Theorem  Standard Notation of Queuing Systems  Poisson.
Single queue modeling. Basic definitions for performance predictions The performance of a system that gives services could be seen from two different.
Queueing Theory: Part I
Delay models in Data Networks
1 Overview of Queueing Systems Michalis Faloutsos Archana Yordanos The web.
Little’s Theorem Examples Courtesy of: Dr. Abdul Waheed (previous instructor at COE)
1 TCOM 501: Networking Theory & Fundamentals Lectures 9 & 10 M/G/1 Queue Prof. Yannis A. Korilis.
7/3/2015© 2007 Raymond P. Jefferis III1 Queuing Systems.
Queuing Networks: Burke’s Theorem, Kleinrock’s Approximation, and Jackson’s Theorem Wade Trappe.
ORF Electronic Commerce Spring 2009 April 15, 2009 Week 10 Capacity Analysis Deterministic Model –Assume: each HTTP request takes T r (request time)
Lesson 11: Solved M/G/1 Exercises
Lecture 7  Poisson Processes (a reminder)  Some simple facts about Poisson processes  The Birth/Death Processes in General  Differential-Difference.
Queuing Networks. Input source Queue Service mechanism arriving customers exiting customers Structure of Single Queuing Systems Note: 1.Customers need.
Lesson 9: Advanced M/G/1 Methods and Examples Giovanni Giambene Queuing Theory and Telecommunications: Networks and Applications 2nd edition, Springer.
Introduction to Queuing Theory
Flows and Networks Plan for today (lecture 5): Last time / Questions? Waiting time simple queue Little Sojourn time tandem network Jackson network: mean.
Simulation Output Analysis
Queueing Theory I. Summary Little’s Law Queueing System Notation Stationary Analysis of Elementary Queueing Systems  M/M/1  M/M/m  M/M/1/K  …
1 As we have seen in section 4 conditional probability density functions are useful to update the information about an event based on the knowledge about.
Copyright ©: Nahrstedt, Angrave, Abdelzaher, Caccamo1 Queueing Systems.
Generalized Semi-Markov Processes (GSMP)
Probability Review Thinh Nguyen. Probability Theory Review Sample space Bayes’ Rule Independence Expectation Distributions.
1 Exponential distribution: main limitation So far, we have considered Birth and death process and its direct application To single server queues With.
CS433 Modeling and Simulation Lecture 13 Queueing Theory Dr. Anis Koubâa 03 May 2009 Al-Imam Mohammad Ibn Saud University.
MIT Fun queues for MIT The importance of queues When do queues appear? –Systems in which some serving entities provide some service in a shared.
1 CS SOR: Polling models Vacation models Multi type branching processes Polling systems (cycle times, queue lengths, waiting times, conservation laws,
Networks of Queues Plan for today (lecture 6): Last time / Questions? Product form preserving blocking Interpretation traffic equations Kelly / Whittle.
Queuing Theory Basic properties, Markovian models, Networks of queues, General service time distributions, Finite source models, Multiserver queues Chapter.
Flows and Networks Plan for today (lecture 4): Last time / Questions? Output simple queue Tandem network Jackson network: definition Jackson network: equilibrium.
Queueing Theory What is a queue? Examples of queues: Grocery store checkout Fast food (McDonalds – vs- Wendy’s) Hospital Emergency rooms Machines waiting.
TexPoint fonts used in EMF.
Waiting Lines and Queuing Models. Queuing Theory  The study of the behavior of waiting lines Importance to business There is a tradeoff between faster.
Modeling and Analysis of Computer Networks
CS433 Modeling and Simulation Lecture 12 Queueing Theory Dr. Anis Koubâa 03 May 2008 Al-Imam Mohammad Ibn Saud University.
yahoo.com SUT-System Level Performance Models yahoo.com SUT-System Level Performance Models8-1 chapter11 Single Queue Systems.
Why Wait?!? Bryan Gorney Joe Walker Dave Mertz Josh Staidl Matt Boche.
State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case.
M/M/1 Queues Customers arrive according to a Poisson process with rate. There is only one server. Service time is exponential with rate  j-1 jj+1...
The M/M/ N / N Queue etc COMP5416 Advanced Network Technologies.
Network Design and Analysis-----Wang Wenjie Queueing Theory II: 1 © Graduate University, Chinese academy of Sciences. Network Design and Performance Analysis.
Chapter 3 DeGroot & Schervish. Functions of a Random Variable the distribution of some function of X suppose X is the rate at which customers are served.
1 Networks of queues Networks of queues reversibility, output theorem, tandem networks, partial balance, product-form distribution, blocking, insensitivity,
Copyright ©: Nahrstedt, Angrave, Abdelzaher, Caccamo1 Queueing Systems.
Chapter 5 Elementary Stochastic Analysis Prof. Ali Movaghar.
Flows and Networks Plan for today (lecture 3): Last time / Questions? Output simple queue Tandem network Jackson network: definition Jackson network: equilibrium.
Management of Waiting Lines Copyright © 2015 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent.
Random Variables r Random variables define a real valued function over a sample space. r The value of a random variable is determined by the outcome of.
QUEUING. CONTINUOUS TIME MARKOV CHAINS {X(t), t >= 0} is a continuous time process with > sojourn times S 0, S 1, S 2,... > embedded process X n = X(S.
Mohammad Khalily Islamic Azad University.  Usually buffer size is finite  Interarrival time and service times are independent  State of the system.
Introduction to Queueing Theory
Queueing Theory II.
Flows and Networks Plan for today (lecture 4):
Lecture on Markov Chain
Queueing Theory II.
Introduction to Queueing Theory
11. Conditional Density Functions and Conditional Expected Values
11. Conditional Density Functions and Conditional Expected Values
Erlang, Hyper-exponential, and Coxian distributions
Presentation transcript:

Mean Delay in M/G/1 Queues with Head-of-Line Priority Service and Embedded Markov Chains Wade Trappe

Lecture Overview Priority Service Embedded Markov Chain Technique Setup Mean Waiting Time for Type-1 Mean Waiting Time for Type-2 Generalization Summary Embedded Markov Chain Technique Nk inside of N(t) The queue distribution for M/G/1 The PGF approach Example: M/H2/1 Queue Homework: Alternate Pollaczek-Khinchine Derivation

M/G/1 Priority Services: Setup Consider a queue that handles K priority classes of customers Type-k customers arrive as a Poisson Process with rate and service times according to . Customers are separated as they arrive and assigned to different “prioritized” queues Each time the server is free: Selects the next customer from highest priority, non-empty queue This is the “head of line” service We also assume that customers are not pre-empted! Server Utilization for type-k customers is Stability requirement:

Priority Services: Explanation 1 1 Queue-1 1 Server 2 2 Queue-2 Blue Type-1 Packets always have priority, but cannot preempt Type-2 packets

Priority Services: Mean Waiting Times Our first goal will be to calculate the mean waiting time for Type-1 customers, i.e. Assume a type-1 customer arrives and finds Nq1(t)=k1 type-1 already in the queue Assume we use FCFS within each class W1 consists of: Residual time R of customer in server k1 service times of type-1 in queue Thus: We get the mean waiting time for type-1 as

Priority Services: Mean Waiting Times, pg 2 Now, let us look at a type-2 customer. When he arrives he may find Nq1(t)=k1 type-1 already in the queue-1 Nq2(t)=k2 type-2 already in the queue-2 Thus, W2 is the sum of: Residual service time R k1 service times for type-1customers k2 service times for type-2 customers AND service times of any new type-1 customers!!! We get the mean waiting time for type-2 as

Priority Services: Mean Waiting Times, pg 3 Here, M1 is the number of customers of type-1 that arrive during type-2’s waiting period By Little’s Theorem applied to the queues: The mean number of type-1 arrivals during seconds is Substitute to get

Priority Services: Mean Waiting Times, pg 4 Solve for : Generalizing gives Now, we’re left with finding E[R]!

Priority Services: Mean Waiting Times, pg 5 When a customer arrives, the one being serviced can be of any type! So R must account for this! We will use the same formulation as where is the aggregate Poisson Process rate. To get E[X2] we use the fact that the fraction of type-k customers is : Thus, we get

Priority Services: Mean Delay Now, calculating the mean delay for a type-k customer is easy! From this, observe: Class-k customers are affected by the behavior of lower priority customers

Embedded Markov Chain Methods for M/G/1

The Embedded Markov Chain Nk-2 Nk-1 Nk Let Nk be the number of customers found in the system just after the service completion of the k-th customer Let Ak be the number of customers who arrive while the k-th customer is served The Ak are i.i.d. Under FCFS: Ak is independent of N1, N2, …, Nk-1 Nk is not independent of Ak N(t) Time Ck-2 Ck-1 Ck Xk-1 Xk Service Ck-1 Ck Queue Ck-1 Ck Ck+1 Ak-1=1 Ak=3

Embedded Markov Chain, pg 2 We may find the following recursion: Where did first line come from? If , then k-th customer finds the system empty, and on departure he leaves behind those who have arrived during his service. The second line: The queue left by the k-th customer consists of the previous queue decreased by one plus the new arrivals during his service. Let U(x)=1 for x>0 and U(x)=0 for x<=0 Then we get

Embedded Markov Chain, pg 3 From we can see that Nk is a Markov Chain since Nk depends on the past only through Nk-1 Nk is called the embedded Markov Chain (Homework): The distribution for N(t) and Nk are the same: Step 1: Show, in M/G/1, distributions found by arriving customers is the same as that left by departing customers Step 2: Show, in M/G/1, the distribution of customers found by arriving customers is the same as the steady state distribution of N(t) We will analyze Nk instead of N(t)

M/G/1 Queue Distribution To find the queue distribution, we use the probability generating function method The PGF of the distribution {pn} is Substitute and use independence to get Thus

M/G/1 Queue Distribution, pg. 2 If the service time of customer k is t, then Ak has a Poisson distribution with mean lt Now multiply by the fX(t), the pdf of the service time Xk, This gives the joint distribution. Integrate out X to obtain the unconditional pdf of Ak What does this remind you of? Answer: Laplace Transforms!!!

M/G/1 Queue Distribution, pg. 3 The Probability Generating Function of Ak is given by Substitute into earlier result to get: Laplace Transform of fX(t)

M/G/1 Queue Distribution, pg. 4 We need to now find p0! To do this, look at limit as z goes to 1, and apply L’Hopital… First, go back to Observe that P(z=1)=1, Ak(z=1)=1 Thus We used: Show This!

M/G/1 Queue Distribution, pg. 5 Thus, This is exactly what we got for M/M/1 Queues!!! Substitute into earlier result to get: What do we do with this? Use it to find the probability distribution pn! How? Equate terms… Best to see an example

M/H2/1 Queue Consider the case where FX(t), the cdf, is a two-term hyper-exponential distribution: Where do hyper-exponentials come from? In practice, from situations where service times can be represented as a mixture of exponential distributions… That is, suppose there are k types of customers, each occuring with a probability pi (so sum = 1) Customer of type I has a service time exponentially distributed with mean 1/mi Then the density is

M/H2/1 Queue, pg. 2 Back to our 2-phase hyper-exponential problem… The mean service time is given by The Laplace Transform of fX(t) is: We thus get:

M/H2/1 Queue, pg. 3 The PGF of {pn} is The probability distribution is obtained through partial-fraction expansion of P(z). To do this, we must find the roots of the denominator… call these z1 and z2 Then P(z) has the form: = Total Traffic Intensity

M/H2/1 Queue, pg. 4 Solving for C1 and C2 involves setting z=0 and z=1 to get Finally, upon substitution, we get: