next up previous
Next: Random-Number Generation Up: Queueing Models Previous: Long Term Measures of

Markov Models and Its Evaluation

In a queueing system, if the service time and inter-arrival time are both expoentially distributed, denoted by $\mu$ and $\lambda$ respectively plus

then we can evaluate the queueing system using the so called Markov Model.

Let $P_i$ represent the probability the system has i customers (including the ones in queue and ones in server).

Using the principle that the flow into a state is balanced by the flow out of the state, we have

$P_0 \lambda $ = $P_1 \mu$
$P_1 \lambda$ $= $ $P_2 \mu$
...    

solve this system of equations we get

\begin{displaymath}P_i = P_0 (\frac{\lambda}{\mu})^{i} ~~~ {\rm for} ~ i > 0 \end{displaymath}

Using the relation

\begin{displaymath}\sum_{i=0}^{\infty} P_i = 1\end{displaymath}

and let

\begin{displaymath}\frac{\lambda}{\mu} = \rho \end{displaymath}

we have

\begin{displaymath}\sum_{i=0}^{\infty} P_0 \rho^i = 1 \end{displaymath}

thus

\begin{displaymath}P_0 = \frac{1}{\sum_{i=0}^{\infty} \rho^i} \end{displaymath}

where

\begin{displaymath}\sum_{i=0}^{\infty} \rho^i = \frac{1}{1-\rho} \end{displaymath}

so

\begin{displaymath}P_0 = 1 - \rho \end{displaymath}

The meaning of the probability with no customer in the system is the same as the server is idle. So the measure $\rho$ can be considered as the probability that the server is busy, which is the utilization of the server. With $P_0$ solved, all other items can be solved.

\begin{displaymath}P_i = (1 - \rho) \rho^i \end{displaymath}

Use $P_i$s, we can obtain all other measures of interest.

Average number of customers in system :

\begin{displaymath}L = \sum_{i=0}^{\infty} i * P_i = \sum_{i=0}^{\infty} i * (1-\rho)
* \rho^i = \frac{\rho}{1-\rho} \end{displaymath}

waiting time in system:
use Little's Law

\begin{displaymath}W = \frac{L}{\lambda} = \frac{1}{\mu (1-\rho)} \end{displaymath}

waiting time in the queue:
this can be calculated using the fact that waiting time in the queue is the total waiting time less the time spent in the server. The time spent in the server is the average service time $\frac{1}{\mu}$ (note that $\mu$ is the service rate here) so

\begin{displaymath}W_Q = W - \frac{1}{\mu} = \frac{\rho}{\mu (1-\rho)}\end{displaymath}

Average queue length:
use the Little's Law again

\begin{displaymath}L_Q = \lambda W_Q = \frac{\rho^2}{1-\rho} \end{displaymath}


next up previous
Next: Random-Number Generation Up: Queueing Models Previous: Long Term Measures of
Meng Xiannong 2002-10-18