Content deleted Content added
Tqzhang1010 (talk | contribs) No edit summary |
Reverted 1 edit by GalenSeilis (talk): Rv systematic promotion of Ciw |
||
(39 intermediate revisions by 23 users not shown) | |||
Line 1:
In [[queueing theory]], a discipline within the mathematical [[probability theory|theory of probability]], an '''M/D/1 queue''' represents the queue length in a system having a single server, where arrivals are determined by a [[Poisson process]] and job service times are fixed (deterministic). The model name is written in [[Kendall's notation]].<ref>{{Cite journal | last1 = Kendall | first1 = D. G. |
==Model definition==
An M/D/1 queue is a stochastic process whose [[state space]] is the set {0,1,2,3,...} where the value corresponds to the number of
* Arrivals occur at rate λ according to a [[Poisson process]] and move the process from state ''i'' to ''i'' + 1.
* Service times are deterministic time ''D'' (serving at rate ''μ'' = 1/''D'').
* A single server serves
* The buffer is of infinite size, so there is no limit on the number of
The transition probability matrix for an M/D/1 queue with arrival rate λ and service time 1, such that λ <1 (for stability of the queue) is given by P as below:<ref name=":1" />
▲=== Transition Matrix ===
<math>P=\begin{pmatrix} a_0 & a_1 & a_2 & a_3 & ... \\ a_0 & a_1 & a_2 & a_3 & ...\\ 0 & a_0 & a_1 & a_2 & ...\\ 0&0 & a_0 & a_1 & ...\\... & ... &...&... &...\\\end{pmatrix}</math> , <math>a_n=\frac{\lambda^n}{n!}e^{-\lambda}</math>, n = 0,1,....
===
The following expressions present the classic performance metrics of a single server queuing system such as M/D/1, with:
* arrival rate <math>=\lambda</math>,
* service rate <math>=\mu</math>, and
* utilization <math>=\rho=\frac{\lambda}{\mu}</math>
The average number of entities in the system, L is given by:
<math>L=\rho+\frac{1}{2}\left ( \frac{\rho^2}{1-\rho} \right );
</math>
The average number of entities in the queue (line), L<sub>Q</sub> is given by:
<math>L_Q=\frac{1}{2}\left ( \frac{\rho^2}{1-\rho} \right );
</math>
The average waiting time in the system, ω is given by:
<math>\omega= \frac{1}{\mu}+\frac{\rho}{2\mu(1-\rho)};
</math>
The average waiting time in the queue (line), ω <sub>Q</sub> is given by:
<math>\omega_Q=\frac{\rho}{2\mu(1-\rho)}</math>
=== Example ===
So the utilization of the server is: ρ=20/30=2/3. Using the metrics shown above, the results are as following: 1) Average number in line L<sub>Q</sub>= 0.6667; 2) Average number in system L =1.333; 3) Average time in line ω<sub>Q</sub> = 0.033 hour; 4) Average time in system ω = 0.067 hour.
=== Relations for Mean Waiting Time in M/M/1 and M/D/1 queues ===
<math>E(W)=\frac{\rho\tau}{2(1-\rho)}\left(1+\frac{\sigma^2}{\tau^2}\right)</math>▼
where τ is the mean service time; σ<
For M/M/1 queue, the service times are exponentially distributed, then σ<
Using this, the corresponding equation for M/D/1 queue can be derived, assuming constant service times. Then the variance of service time becomes zero, i.e.
▲=== Relation for Mean Waiting Time in M/M/1 and M/D/1 queues<ref>{{Cite book|title=Introduction to Queuing Theory|last=Cooper|first=Robert B.|publisher=Elsevier Science Publishing Co.|year=1981|isbn=0-444-00379-7|___location=|pages=189}}</ref> ===
▲<math>E(W)=\frac{\rho\tau}{2(1-\rho)}(1+\frac{\sigma^2}{\tau^2})</math>
▲where τ is the mean service time; <math display="inline">\sigma^2</math> is the variance of service time; and ρ=λτ < 1, λ being the arrival rate of the customers.
▲For M/M/1 queue, the service times are exponentially distributed, then <math display="inline">\sigma^2</math>=<math display="inline">\tau^2</math> and the mean waiting time in the queue denoted by WM is given by the following equation
▲<math>\overline{W_M}=\frac{\rho\tau}{1-\rho}</math>
▲Using this, the corresponding equation for M/D/1 queue can be derived, assuming constant service times. Then the variance of service time becomes zero, i.e. <math display="inline">\sigma^2</math>=0. The mean waiting time in the M/D/1 queue denoted as WD is given by the following equation
▲<math>\overline{W_D}=\frac{\rho\tau}{2(1-\rho)}</math>
From the two equations above, we can infer that Mean queue length in M/M/1 queue is twice that in M/D/1 queue.
Line 65 ⟶ 68:
==Stationary distribution==
The number of jobs in the queue can be written as
:<math>\begin{align}\pi_0 &= 1-\lambda \\
\pi_1 &= (1-\lambda)(e^\lambda - 1)\\
Line 72 ⟶ 75:
==Delay==
Define ''ρ'' = ''λ''/''μ'' as the utilization; then the mean delay in the system in
::<math>\frac{1}{2\mu}\cdot\frac{2-\rho}{1-\rho}.</math>
and in the queue:
Line 79 ⟶ 82:
==Busy period==
The busy period is the time period measured from the instant a first customer arrives at an empty queue to the time when the queue is again empty. This time period is equal to ''D'' times the number of customers served. If ''ρ'' < 1, then the number of customers served during a busy period of the queue has a [[Borel distribution]] with parameter ''ρ''.<ref>{{Cite journal | last1 = Tanner | first1 = J. C. | doi = 10.1093/biomet/48.1-2.222 | title = A derivation of the Borel distribution | journal = [[Biometrika]]| volume = 48 | pages = 222–224 | year = 1961
==Finite capacity==
Line 85 ⟶ 88:
===Stationary distribution===
A stationary distribution for the number of customers in the queue and mean queue length can be computed using [[probability generating function]]s.<ref>{{cite journal | last1 = Brun | first1 = Olivier | last2 =Garcia | first2 = Jean-Marie | year = 2000 | title = Analytical Solution of Finite Capacity M/D/1 Queues | journal = Journal of Applied Probability | volume = 37 | issue = 4 | pages =
===Transient solution===
The transient solution of an M/D/1 queue of finite capacity N, often written M/D/1/N, was published by Garcia et al. in 2002.<ref>{{cite journal | last1 = Garcia | first1 = Jean-Marie | last2 = Brun | first2 = Olivier | last3 = Gauchard | first3 = David | year = 2002 | title = Transient Analytical Solution of M/D/1/N Queues | journal = Journal of Applied Probability | volume = 39 | issue = 4 | pages =
==Application==
Includes applications in wide area [[network planning and design|network design]],<ref>{{cite journal|last1=Kotobi|first1=Khashayar|last2=Bilén|first2=Sven G.|title=Spectrum sharing via hybrid cognitive players evaluated by an M/D/1 queuing model|journal=EURASIP Journal on Wireless Communications and Networking|volume=2017|date=2017|pages=85 |doi=10.1186/s13638-017-0871-x|url=https://jwcn-eurasipjournals.springeropen.com/articles/10.1186/s13638-017-0871-x |access-date=2017-05-05|doi-access=free}}</ref> where a single central processor to read the headers of the packets arriving in exponential fashion, then computes the next adapter to which each packet should go and dispatch the packets accordingly. Here the service time is the processing of the packet header and cyclic redundancy check, which are independent of the length of each arriving packets. Hence, it can be modeled as a M/D/1 queue.<ref>{{Cite book|title=Wide Area Network Design: Concepts and Tools for optimization.|last=Chan|first=Robert S.|publisher=Morgan Kaufmann Publishers Inc.|year=1998|isbn=1-55860-458-8|pages=319}}</ref>
==References==
Line 111 ⟶ 102:
{{DEFAULTSORT:M D 1 queue}}
[[Category:Single queueing nodes]]
|