Queueing systems
Introduction
The continuous-time Markov chains (CTMCs) linked section is a prerequisite to queueing systems.
Queueing systems are modelled using Kendall’s notation as graphically shown below,
A queueing system can be specified with,
-
Number of servers s
-
Number of buffer spaces or queues
-
Queueing fashion: LIFO (last in first out) or FIFO (first in first out).
-
Arrival process: being the mean arrival rate.
-
Service time: is the average processing time of an arrival.
Kendall’s Notation
Written as . The first is inter-arrival time of processes, and denotes memoryless or exponential. The second is the service time and means a memoryless or exponential rate. is the number of servers as noted above, with being the total number of jobs in the server and buffer ( is number of jobs in the buffer alone).
In general, rates are specified with symbols:
-
: memoryless arrival or service times.
-
: general arrival or service times.
-
: general and independent arrival or service time.
-
: deterministic/constant arrival or service time.
Important properities of Poisson processes (exponentially distributed R.V.) for queueing systems:
and are independent Poisson processes with and parameters. Then is a Poisson process with parameter .
For Poisson process , when there’s an arrival, we can assign it to sub-process with probability , then we can generate random process with parameters with .
Little’s Law
Let be the mean processing delay of a job, with being the arrival rate. Then Little’s law gives the mean number of jobs in the system as,
Queue
This model is also called . Since the system has exponential arrival rate, the queue is a continuous-time Markov chain (CTMC), with the following birth-death process,
The rate transition matrix from state to is,
is the steady-state probability that there are n jobs in the system. Define , then solving the local-balance equations yields,
Since , then . With to ensure that the service rate is higher than the arrival rate (ensures system stability), the geometric sum is . Then we have the stationary probability,
Note: The sum , since , we have . Meaning that the sum of stationary probabilities satisfies the normalization axiom of a probability distribution.
Waiting time and number of jobs
Mean number of jobs is . Mean delay or waiting time in the queue and service is .
These expressions define the terms for being in the queue and the server.
For the queue-only values, define the mean waiting time in the queue as .
Mean number of customers in the queue is .
The mean server utilization is .