To understand why the transition rate from a state with (i) active requests to (i+1) active requests is ((m-i)\lambda), let's break down the Markov chain model and the transitions between states.
Markov Chain Model
We want to construct a Markov chain where the state (i) represents the number of active requests (pending requests plus the one currently being served, if any).
- Each user alternates between "thinking" and "active" states.
- The thinking intervals are exponentially distributed with rate (\lambda).
- The service times of the requests are exponentially distributed with rate (\mu).
- The service is non-preemptive and can handle only one request at a time.
Transition Rate Explanation
-
Rate of thinking to active transition:
- Each user, while thinking, will independently transition to the active state (submit a request) after an exponentially distributed amount of time with rate (\lambda).
- If there are (i) active requests, then there are (m-i) users who are in the thinking state.
-
Transition from (i) to (i+1):
- For the state to transition from (i) active requests to (i+1) active requests, one of the (m-i) thinking users needs to submit a new request.
- Each thinking user submits a request at rate (\lambda).
- Therefore, the total rate at which any one of the (m-i) thinking users submits a request is ((m-i) \lambda).
Thus, the rate at which the system transitions from having (i) active requests to (i+1) active requests is given by ((m-i)\lambda).
Steady-State Distribution
To find the steady-state distribution of the number of active (pending) requests:
-
Define Transition Rates:
- (q(i,i+1) = (m-i)\lambda) (i.e., rate of moving from (i) to (i+1) requests)
- (q(i,i-1) = \mu) if (i > 0) (i.e., rate of moving from (i) to (i-1) requests, which happens when the server completes a request)
-
Balance Equations:
Let (\pi_i) be the steady-state probability of having (i) active requests.
- For (i = 0):
[
(m-0)\lambda \pi_0 = \mu \pi_1
]
- For (i > 0):
[
(m-i)\lambda \pi_i + \mu \pi_{i+1} = (m-(i-1))\lambda \pi_{i-1} + \mu \pi_i
]
-
Solve for (\pi_i):
Using the balance equation for (i = 0):
[
(m-0)\lambda \pi_0 = \mu \pi_1 \implies \pi_1 = \frac{m\lambda}{\mu} \pi_0
]
For (i > 0):
[
(m-i)\lambda \pi_i + \mu \pi_{i+1} = (m-(i-1))\lambda \pi_{i-1} + \mu \pi_i
]
Simplifying this iterative relation:
[
\pi_{i+1} = \frac{(m-i)}{\mu}\lambda \pi_i
]
Therefore, continuing this process,
[
\pi_2 = \frac{(m-1)}{\mu}\lambda \pi_1 = \left(\frac{(m-1)\lambda}{\mu}\right)\left(\frac{m\lambda}{\mu}\right) \pi_0
]
Repeating this, we find:
[
\pi_i = \left(\frac{\lambda}{\mu}\right)^i \frac{m!}{i!(m-i)!} \pi_0
]
-
Normalization Condition:
Sum of all steady-state probabilities must be 1:
[
\sum_{i=0}^{m} \pi_i = 1 \implies \sum_{i=0}^{m} \left(\frac{\lambda}{\mu}\right)^i \frac{m!}{i!(m-i)!} \pi_0 = 1
]
This simplifies to:
[
\pi_0 \sum_{i=0}^{m} \binom{m}{i} \left(\frac{\lambda}{\mu}\right)^i = 1
]
Recognize the binomial expansion:
[
\pi_0 \left(1 + \frac{\lambda}{\mu}\right)^m = 1 \implies \pi_0 = \left(1 + \frac{\lambda}{\mu}\right)^{-m}
]
Final Steady-State Distribution:
[
\pi_i = \binom{m}{i} \left(\frac{\lambda}{\mu}\right)^i \left(1 + \frac{\lambda}{\mu}\right)^{-m}
]