Abstract
Time-dependent solutions to queuing models are beneficial for evaluating the performance of real-world systems such as communication, transportation, and service systems. However, restricted results have been reported due to mathematical complexity. In this study, we present a time-dependent queue-length formula for a discrete-time queue starting with a positive number of initial customers. We derive the time-dependent formula in closed form.
1. Introduction
Queuing models have been widely used for performance evaluation of practical systems such as communication, transportation, and service systems. For the most part, the previous studies have addressed stationary solutions of queuing models for the optimal control of long-term system performance. However, time-dependent solutions to queuing systems are more meaningful for practical systems; a good example was presented in Griffiths et al. [], where the authors applied the transient solution of an queue to model and analyze a 24-hour traffic profile on the Severn Bridge in England.
The pioneering results on the transient results were presented by Luchak [] and Saaty []. Using a modified Bessel function, they presented the transient queue-length distribution of an queue starting with a positive number of initial customers. Later, computationally efficient solutions were presented in many other studies [,,,,]. For queues, several results have been presented. Griffiths et al. [,] and Leonenko [] derived transient solutions for queues starting with a positive number of initial customers, and Baek et al. [] extended their results to be applied to analysis in a single busy period. Furthermore, Kapodistria et al. [] presented the time-dependent solutions to a linear birth/immigration-death process with binomial catastrophes. They presented general results that include a background random environment.
The first study on queues with deterministic service times was conducted by Garcia et al. []. Using the matrix-analytic method, they derived the transient queue-length distribution of an queue in a computationally efficient form. Later, the queue-length formula was extended to an queue by Franx []. Recently, extensive results on the transient solution of the queue were presented by Baek et al. []. They derived not only the queue-length probability but also the waiting time distribution in closed form.
The aforementioned studies focused only on the queues in a continuous-time domain. Time-dependent solutions to queues in a discrete-time domain are even scarcer. Parthasarathy and Sudhesh [] were the first to derive the transient queue-length solution to a discrete-time queue. Employing a generating function and continued fractions, they obtained a computationally efficient solution. Kim [] studied the same model and presented the solution in a formal form. However, we failed to find any result related to the time-dependent solution to the discrete-time queue with a constant service time. From this perspective, we present a time-dependent queue-length solution to a queue. To the best of our knowledge, our proposed results have not been noted in existing literature.
2. Main Results
In this section, we present the main results. Consider a discrete-time queuing system with an infinite buffer in which the timeline is divided into intervals of equal length called time slots. Customers arrive into the system according to the Bernoulli process at a rate of p, and the service times are assumed to be a constant of D. We assume that arrivals and service completion can occur only at the slot boundaries. More specifically, we consider the late-arrival model []. Therefore, we assume that customer arrivals can occur only in and services can be completed only in .
Let be the number of new initial customers at time slot 0. We define as the number of customers at the end of the time slot n and with the following probability:
Because plays a major role in deriving , we first derive the probability in the following theorem.
Theorem 1.
We have
Proof.
Let us define as the number of arrivals during the time interval and as the i-th arrival epoch under the condition that . We note that the service time is a constant D and the system starts with j initial customers. Therefore, conditioning on , we have
where is an indicator function which takes 1, if A is true, or 0, and the second equality holds because it is obvious that .
Equation (2) means that the system can be empty at time slot n only when the i-th customer among r customers arrives before -th time slot under the condition that . Since the arrival process is Bernoulli process with rate p, we have Next, to complete Equation (2), we need to derive . For , it is not difficult to have
Therefore, we have
Now, to obtain Equation (1), it is sufficient to prove that
We use mathematical induction for the proof of Equation (6). For , we trivially have . We now assume that Equation (6) holds for . Then, for , we have
where we use for .
We now have
In Equation (8), we have
where we use for the third equality.
Therefore, we prove that Equation (6) holds for □.
Next, we derive . We have the following theorem.
Theorem 2.
We have
Proof.
Let us define and as the number of arrivals during the last busy period and the time slot at which the last busy period starts, respectively. We then have
To complete Equation (11), we first derive the first term in the second equality. We again note that the system starts with j customers, and the service time is a constant D. Therefore, if the last busy period starts before the -th time slot, customers among newly arrived customers should be served during the last busy period. Then, to become under this situation, customers should arrive in the system, and we have
Next, we have
In Equation (13), we have
because customers among the newly arrived customers should be served during the last busy period, if the busy period starts in the time interval .
Furthermore, we note that
We then have
Next, we need to derive in Equation (11). When , it is not difficult to have
because no service can be completed during the time interval .
In Equation (17), we assume that , if . Next, we consider the case with . Applying a similar approach used in Equations (12)–(16), we have
From Equation (1), we have
Then, using the above equation in Equation (19), we have
We then have the following simplified form:
Using algebra, we can now obtain Equation (10) to complete the proof. □
3. Numerical Examples
In this section, we show the numerical results. We use Equations (1) and (10) to compute the transient probabilities , , and . Figure 1 shows the computation results of the probabilities.
Figure 1.
Probabilities , , and .
Figure 1a shows the transient probabilities under the condition that and (i.e., ). Let be the stationary probability of the queue. If , we can use the result in Gravey et al. [] to compute the stationary probability and obtain , , , and . Then, in Figure 1a, we can confirm that each transient queue-length probability converges to the stationary value. Figure 1b shows the transient probabilities under the condition that and (i.e., ). When , all the probabilities should be 0 as n increases; we can confirm this in Figure 1b.
Author Contributions
Conceptualization: Y.H.B. and J.W.B.; Formal analysis: Y.H.B. and J.W.B.; Writing and original draft preparation: Y.H.B. and J.W.B.
Funding
The work of Y.H.B. was supported by the Basic Science Research Program through the National Research Foundation of Korea (NRF) funded by the Ministry of Education (NRF-2018R1D1A1B07043360). The work of J.W.B. was supported by the Basic Science Research Program through the National Research Foundation of Korea (NRF) funded by the Ministry of Education (NRF-2018R1D1A1B07043146).
Conflicts of Interest
The authors declare no conflict of interest.
References
- Griffiths, G.D.; Leonenko, G.M.; Williams, J.E. Time-dependent analysis of non-Empty M/Ek/1 queue. Qual. Technol. Quant. Manag. 2008, 5, 309–320. [Google Scholar] [CrossRef]
- Luchak, G. The continuous time solution of the equations of the single channel queue with a general class of service-time distributions by the method of generating functions. J. R. Stat. Soc. Ser. B (Methodol.) 1958, 20, 176–181. [Google Scholar] [CrossRef]
- Saaty, L.T. Elements of Queueing Theory; Mcgraw Hill: New York, NY, USA, 1961. [Google Scholar]
- Al-Seedy, R.O.; El-Sherbiny, A.A.; El-Shehawy, S.A.; Ammar, S.I. Transient solution of the M/M/c queue with balking and reneging. Comput. Math. Appl. 2009, 57, 1280–1285. [Google Scholar] [CrossRef]
- Cheon, G.-S.; Choi, B.D.; Jin, S.-T. An application of Riordan arrays to the transient analysis of M/M/1 queues. Appl. Math. Comput. 2014, 237, 659–671. [Google Scholar] [CrossRef]
- Kijima, M. The transient solution to a class of Markovian queues. Comput. Math. Appl. 1992, 24, 17–24. [Google Scholar] [CrossRef]
- Sharma, O.P.; Gupta, U.C. Transient Behaviour of an M/M/1/N queue. Stoch. Process. Their Appl. 1982, 13, 327–331. [Google Scholar] [CrossRef]
- Tarabia, A.M.K. A new formula for the transient behaviour of a non-empty M/M/1/∞ queue. Appl. Math. Comput. 2002, 132, 1–10. [Google Scholar] [CrossRef]
- Griffiths, G.D.; Leonenko, G.M.; Williams, J.E. The transient solution to M/Ek/1 queue. Oper. Res. Lett. 2006, 34, 349–354. [Google Scholar] [CrossRef]
- Leonenko, G.M. A new formula for the transient solution of the Erlang queueing Model. Stat. Probab. Lett. 2009, 79, 400–406. [Google Scholar] [CrossRef]
- Baek, J.W.; Lee, H.W.; Moon, S.K. A time-dependent busy period queue length formula for the M/Ek/1 queue. Stat. Probab. Lett. 2014, 87, 98–104. [Google Scholar] [CrossRef]
- Kapodistria, S.; Phung-Duc, T.; Resing, J. Linear Birth/Immigration-Death Process with Binomial Catastrophes. Probab. Eng. Inf. Sci. 2016, 30, 79–111. [Google Scholar] [CrossRef]
- Garcia, J.M.; Brun, O.; Gauchard, D. Transient analytical solution of M/D/1/N queues. J. Appl. Probab. 2002, 39, 853–864. [Google Scholar] [CrossRef]
- Franx, G.J. A simple solution for the M/D/c waiting time distribution. Oper. Res. Lett. 2001, 29, 221–229. [Google Scholar] [CrossRef]
- Baek, J.W.; Lee, H.W.; Ahn, S.; Bae, Y.H. Exact timedependent solutions for the M/D/1 queue. Oper. Res. Lett. 2016, 44, 692–695. [Google Scholar] [CrossRef]
- Parthasarathy, P.R.; Sudhesh, R. Exact transient solution of a discrete time queue with state-dependent rates. Am. J. Math. Manag. Sci. 2006, 26, 253–276. [Google Scholar] [CrossRef]
- Kim, J. Transient analysis of the Geo/Goe/1 queue. J. Chungcheong Math. Soc. 2008, 21, 385–393. [Google Scholar]
- Takagi, H. Queueing Analysis: A Foundation of Performance Evaluation; North Holland: Amsterdam, The Netherlands, 1993. [Google Scholar]
- Gravey, A.; Louvion, J.-R.; Boyer, P. On the Geo/D/1 and Geo/D/1/n queues. Perform. Eval. 1990, 11, 117–125. [Google Scholar] [CrossRef]
© 2019 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).