Heavy traffic approximation

From HandWiki

In queueing theory, a discipline within the mathematical theory of probability, a heavy traffic approximation (sometimes heavy traffic limit theorem[1] or diffusion approximation) is the matching of a queueing model with a diffusion process under some limiting conditions on the model's parameters. The first such result was published by John Kingman who showed that when the utilisation parameter of an M/M/1 queue is near 1 a scaled version of the queue length process can be accurately approximated by a reflected Brownian motion.[2]

Heavy traffic condition

Heavy traffic approximations are typically stated for the process X(t) describing the number of customers in the system at time t. They are arrived at by considering the model under the limiting values of some model parameters and therefore for the result to be finite the model must be rescaled by a factor n, denoted[3]:490

[math]\displaystyle{ \hat X_n(t) = \frac{X(nt) - \mathbb E(X(nt))}{\sqrt{n}} }[/math]

and the limit of this process is considered as n → ∞.

There are three classes of regime under which such approximations are generally considered.

  1. The number of servers is fixed and the traffic intensity (utilization) is increased to 1 (from below). The queue length approximation is a reflected Brownian motion.[4][5][6]
  2. Traffic intensity is fixed and the number of servers and arrival rate are increased to infinity. Here the queue length limit converges to the normal distribution.[7][8][9]
  3. A quantity β is fixed where
[math]\displaystyle{ \beta = (1-\rho)\sqrt{s} }[/math]
with ρ representing the traffic intensity and s the number of servers. Traffic intensity and the number of servers are increased to infinity and the limiting process is a hybrid of the above results. This case, first published by Halfin and Whitt is often known as the Halfin–Whitt regime[1][10][11] or quality-and-efficiency-driven (QED) regime.[12]

Results for a G/G/1 queue

Theorem 1. [13] Consider a sequence of G/G/1 queues indexed by [math]\displaystyle{ j }[/math].
For queue [math]\displaystyle{ j }[/math] let [math]\displaystyle{ T_j }[/math] denote the random inter-arrival time, [math]\displaystyle{ S_j }[/math] denote the random service time; let [math]\displaystyle{ \rho_j=\frac{\lambda_j}{\mu_j} }[/math] denote the traffic intensity with [math]\displaystyle{ \frac{1}{\lambda_j}=E(T_j) }[/math] and [math]\displaystyle{ \frac{1}{\mu_j}=E(S_j) }[/math]; let [math]\displaystyle{ W_{q,j} }[/math] denote the waiting time in queue for a customer in steady state; Let [math]\displaystyle{ \alpha_j=-E[S_j-T_j] }[/math] and [math]\displaystyle{ \beta_j^2=\operatorname{var}[S_j-T_j]; }[/math]

Suppose that [math]\displaystyle{ T_j\xrightarrow{d} T }[/math], [math]\displaystyle{ S_j\xrightarrow{d} S }[/math], and [math]\displaystyle{ \rho_j \rightarrow 1 }[/math]. then

[math]\displaystyle{ \frac{2\alpha_j}{\beta_j^2}W_{q,j}\xrightarrow{d} \exp(1) }[/math]

provided that:

(a) [math]\displaystyle{ \operatorname{Var}[S-T]\gt 0 }[/math]

(b) for some [math]\displaystyle{ \delta \gt 0 }[/math], [math]\displaystyle{ E[S_j^{2+\delta}] }[/math] and [math]\displaystyle{ E[T_j^{2+\delta}] }[/math] are both less than some constant [math]\displaystyle{ C }[/math] for all [math]\displaystyle{ j }[/math].

Heuristic argument

  • Waiting time in queue

Let [math]\displaystyle{ U^{(n)}=S^{(n)}-T^{(n)} }[/math] be the difference between the nth service time and the nth inter-arrival time; Let [math]\displaystyle{ W_q^{(n)} }[/math] be the waiting time in queue of the nth customer;

Then by definition:

[math]\displaystyle{ W_q^{(n)}=\max(W_q^{(n-1)}+U^{(n-1)},0) }[/math]

After recursive calculation, we have:

[math]\displaystyle{ W_q^{(n)}=\max(U^{(1)}+\cdots+U^{(n-1)},U^{(2)}+\cdots+U^{(n-1)}, \ldots,U^{(n-1)},0) }[/math]
  • Random walk

Let [math]\displaystyle{ P^{(k)}=\sum_{i=1}^{k}U^{(n-i)} }[/math], with [math]\displaystyle{ U^{(i)} }[/math] are i.i.d; Define [math]\displaystyle{ \alpha=-E[U^{(i)}] }[/math] and [math]\displaystyle{ \beta^2=\operatorname{var}[U^{(i)}] }[/math];

Then we have

[math]\displaystyle{ E[P^{(k)}]=-k\alpha }[/math]
[math]\displaystyle{ \operatorname{var}[P^{(k)}]=k\beta^2 }[/math]
[math]\displaystyle{ W_q^{(n)}=\max_{n-1\geq k \geq 0}P^{(k)}; }[/math]

we get [math]\displaystyle{ W_q^{(\infty)}=\sup_{k \geq 0} P^{(k)} }[/math] by taking limit over [math]\displaystyle{ n }[/math].

Thus the waiting time in queue of the nth customer [math]\displaystyle{ W_q^{(n)} }[/math] is the supremum of a random walk with a negative drift.

  • Brownian motion approximation

Random walk can be approximated by a Brownian motion when the jump sizes approach 0 and the times between the jump approach 0.

We have [math]\displaystyle{ P^{(0)}=0 }[/math] and [math]\displaystyle{ P^{(k)} }[/math] has independent and stationary increments. When the traffic intensity [math]\displaystyle{ \rho }[/math] approaches 1 and [math]\displaystyle{ k }[/math] tends to [math]\displaystyle{ \infty }[/math], we have [math]\displaystyle{ P^{(t)} \ \sim\ \N(-\alpha t, \beta^2 t ) }[/math] after replaced [math]\displaystyle{ k }[/math] with continuous value [math]\displaystyle{ t }[/math] according to functional central limit theorem.[14]:110 Thus the waiting time in queue of the [math]\displaystyle{ n }[/math]th customer can be approximated by the supremum of a Brownian motion with a negative drift.

  • Supremum of Brownian motion

Theorem 2.[15]:130 Let [math]\displaystyle{ X }[/math] be a Brownian motion with drift [math]\displaystyle{ \mu }[/math] and standard deviation [math]\displaystyle{ \sigma }[/math] starting at the origin, and let [math]\displaystyle{ M_t = \sup_{0\leq s\leq t} X(s) }[/math]

if [math]\displaystyle{ \mu \leq 0 }[/math]

[math]\displaystyle{ \lim_{t\rightarrow \infty}P(M_t \gt x)=\exp(2\mu x/\sigma^2 ), x \geq 0; }[/math]

otherwise

[math]\displaystyle{ \lim_{t\rightarrow \infty} P(M_t\geq x)=1, x \geq 0. }[/math]

Conclusion

[math]\displaystyle{ W_q^{(\infty)}\thicksim \exp\left(\frac{2\alpha}{\beta^2}\right) }[/math] under heavy traffic condition

Thus, the heavy traffic limit theorem (Theorem 1) is heuristically argued. Formal proofs usually follow a different approach which involve characteristic functions.[4][16]

Example

Consider an M/G/1 queue with arrival rate [math]\displaystyle{ \lambda }[/math], the mean of the service time [math]\displaystyle{ E[S]=\frac{1}{\mu} }[/math], and the variance of the service time [math]\displaystyle{ \operatorname{var}[S]=\sigma_{B}^2 }[/math]. What is average waiting time in queue in the steady state?

The exact average waiting time in queue in steady state is given by:

[math]\displaystyle{ W_q=\frac{\rho^2+\lambda^2\sigma_B^2}{2\lambda(1-\rho)} }[/math]

The corresponding heavy traffic approximation:

[math]\displaystyle{ W_q^{(H)}=\frac{\lambda(\frac{1}{\lambda^2}+\sigma_B^2)}{2(1-\rho)}. }[/math]

The relative error of the heavy traffic approximation:

[math]\displaystyle{ \frac{W_q^{(H)}-W_q}{W_q}=\frac{1-\rho^2}{\rho^2+\lambda^2\sigma_B^2} }[/math]

Thus when [math]\displaystyle{ \rho\rightarrow 1 }[/math], we have :

[math]\displaystyle{ \frac{W_q^{(H)}-W_q}{W_q} \rightarrow 0. }[/math]

External links

References

  1. 1.0 1.1 Halfin, S.; Whitt, W. (1981). "Heavy-Traffic Limits for Queues with Many Exponential Servers". Operations Research 29 (3): 567. doi:10.1287/opre.29.3.567. http://www.columbia.edu/~ww2040/HalfinWW1981.pdf. 
  2. Kingman, J. F. C.; Atiyah (October 1961). "The single server queue in heavy traffic". Mathematical Proceedings of the Cambridge Philosophical Society 57 (4): 902. doi:10.1017/S0305004100036094. Bibcode1961PCPS...57..902K. 
  3. Gautam, Natarajan (2012). Analysis of Queues: Methods and Applications. CRC Press. ISBN 9781439806586. 
  4. 4.0 4.1 Kingman, J. F. C. (1962). "On Queues in Heavy Traffic". Journal of the Royal Statistical Society. Series B (Methodological) 24 (2): 383–392. doi:10.1111/j.2517-6161.1962.tb00465.x. 
  5. Iglehart, Donald L.; Ward, Whitt (1970). "Multiple Channel Queues in Heavy Traffic. II: Sequences, Networks, and Batches". Advances in Applied Probability 2 (2): 355–369. doi:10.2307/1426324. http://www.columbia.edu/~ww2040/MultipleChannel1970II.pdf. Retrieved 30 Nov 2012. 
  6. Köllerström, Julian (1974). "Heavy Traffic Theory for Queues with Several Servers. I". Journal of Applied Probability 11 (3): 544–552. doi:10.2307/3212698. 
  7. Iglehart, Donald L. (1965). "Limiting Diffusion Approximations for the Many Server Queue and the Repairman Problem". Journal of Applied Probability 2 (2): 429–441. doi:10.2307/3212203. 
  8. Borovkov, A. A. (1967). "On limit laws for service processes in multi-channel systems". Siberian Mathematical Journal 8 (5): 746–763. doi:10.1007/BF01040651. 
  9. Iglehart, Donald L. (1973). "Weak Convergence in Queueing Theory". Advances in Applied Probability 5 (3): 570–594. doi:10.2307/1425835. 
  10. Puhalskii, A. A.; Reiman, M. I. (2000). "The multiclass GI/PH/N queue in the Halfin-Whitt regime". Advances in Applied Probability 32 (2): 564. doi:10.1239/aap/1013540179. 
  11. Reed, J. (2009). "The G/GI/N queue in the Halfin–Whitt regime". The Annals of Applied Probability 19 (6): 2211–2269. doi:10.1214/09-AAP609. 
  12. Whitt, W. (2004). "Efficiency-Driven Heavy-Traffic Approximations for Many-Server Queues with Abandonments". Management Science 50 (10): 1449–1461. doi:10.1287/mnsc.1040.0279. http://www.columbia.edu/~ww2040/efficiencyCOR.pdf. 
  13. Gross, D.; Shortie, J. F.; Thompson, J. M.; Harris, C. M. (2013). "Bounds and Approximations". Fundamentals of Queueing Theory. pp. 329–368. doi:10.1002/9781118625651.ch7. ISBN 9781118625651. 
  14. Chen, H.; Yao, D. D. (2001). "Technical Desiderata". Fundamentals of Queueing Networks. Stochastic Modelling and Applied Probability. 46. pp. 97–124. doi:10.1007/978-1-4757-5301-1_5. ISBN 978-1-4419-2896-2. 
  15. Chen, H.; Yao, D. D. (2001). "Single-Station Queues". Fundamentals of Queueing Networks. Stochastic Modelling and Applied Probability. 46. pp. 125–158. doi:10.1007/978-1-4757-5301-1_6. ISBN 978-1-4419-2896-2. 
  16. Asmussen, S. R. (2003). "Steady-State Properties of GI/G/1". Applied Probability and Queues. Stochastic Modelling and Applied Probability. 51. pp. 266–301. doi:10.1007/0-387-21525-5_10. ISBN 978-0-387-00211-8.