Abstract
The polling system with two Markovian Arrival Flows, finite buffers, gated service discipline and Phase-Type (PH) distribution of service and switching times is considered. Stationary distribution of the continuous-time multi-dimensional Markov chain defining the current state of the server, number of customers in the buffers, the number of customers that should obtain service during the residual time of service of customers from various buffers and underlying processes of service or switching time and of arrival process is computed. Expressions for Laplace-Stieltjes transforms of distribution of waiting times of customers in both buffers are obtained. Numerical results giving some insight into performance of the system are presented.
Access provided by Autonomous University of Puebla. Download conference paper PDF
Similar content being viewed by others
Keywords
1 Introduction
Stochastic polling models are effectively used for performance evaluation, design and optimization of telecommunication systems and networks, transport systems and road management systems, traffic, production systems and inventory management systems. In the recent review of the state of art in [1] the authors gave the extensive survey of the basic notions and existing results in polling models. For more references see, e.g., [2,3,4,5,6,7,8,9,10,11,12,13]. In particular, in [1] the authors separately discuss the importance of analysis and the existing in the literature results for two-queue systems as a special case of polling systems. In our paper, polling system with two Markovian Arrival Processes (MAPs), buffers of finite capacity, gated service discipline and Phase-Type (PH) distribution of service and switching times is considered. Consideration of such quite general arrival, service and switching process is the main contribution of our paper. Especially, this concerns analysis of waiting times distribution.
In Sect. 2, we describe the model under study. In Sect. 3, the continuous-time multi-dimensional Markov chain describing behavior of the system is described. A finite system of equations for the steady-state distribution of the chain is derived. Short Sect. 4 contains formulas for computation of the average number of customers and loss probabilities in the buffers. In Sect. 5, analysis of the stationary distribution of waiting times in the buffers is presented. Section 6 contains some illustrative numerical results.
2 Mathematical Model
We consider a single server polling queueing system the structure of which is shown in Fig. 1.
The system has two queues with finite buffers of capacities \(N_1\) and \(N_2,\) correspondingly. Each queue receives its own flow of customers, which is defined by the MAP (Markovian Arrival Process), see, e.g., [14,15,16]. The process of arrival to the kth queue is defined by the irreducible continuous-time Markov chain \(\nu _{t}^{(k)},\;\) \(t\ge 0\), having a finite state space \(\{0, 1, ... ,W_k\}.\) The underlying process \(\nu _{t}^{(k)}\) stays in the state \(\nu \) during an exponentially distributed time interval with parameter \(\lambda _\nu ^{(k)}\), \(\nu =\overline{0,W_k}\). After that, with probability \(p^{(k)}_l(\nu , \nu ')\) the underlying process transits to the state \(\nu '\) with generation of l customers, \(l=0,1\).
The behavior of the kth MAP is described by matrices \(D^{(k)}_{0}\) and \(D^{(k)}_{1}\) of size \(\bar{W}_k=W_k+1,\) which are defined by formulas:
The matrix \(D^{(k)}= {D_0}^{(k)}+{D_1}^{(k)}\ \) is the infinitesimal generator of the Markov chain \(\nu _{t}^{(k)}\). The average intensity \(\lambda _{k}\) of customers arrival to the kth system is defined by the formula \(\lambda _{k} = {\boldsymbol{\chi }}^{(k)}D^{(k)}_{1}{} \mathbf{e},\) where \(\boldsymbol{\chi }^{(k)}\) is the row vector of the stationary probabilities of the Markov chain \(\nu ^{(k)}_t.\) The vector \(\boldsymbol{\chi }^{(k)}\) is the unique solution to the system \({{\boldsymbol{\chi }}}^{(k)}D^{(k)}=\boldsymbol{0},\;{{\boldsymbol{\chi }}}^{(k)}{} \mathbf{e}=1.\) Here and throughout this paper, \(\mathbf{e}\) is a column vector of appropriate size consisting of ones, and \( \boldsymbol{0} \) is a row vector of appropriate size consisting of zeroes.
The service time of an arbitrary customer from the kth buffer has a PH distribution, given by the irreducible representation (\(\boldsymbol{{\beta }}^{(k)},S^{(k)}\)), \(k = 1, 2,\) and the underlying process \(\eta ^{(k)}_t, t\ge 0,\) with the state space \(\{1, ...,M_k, M_k+1\},\) where the state \(M_k+1\) is the absorbing one. The initial state of the process \(\eta ^{(k)}_t\) is chosen among the transient states in accordance with a stochastic row vector \(\boldsymbol{{\beta }}^{(k)}=({\beta }^{(k)}_1, {\beta }^{(k)}_2,...,{\beta }^{(k)}_{M_k}).\) The intensities of the transition of the process \(\eta ^{(k)}_t\) between transient states are defined by the matrix \(S^{(k)}.\) The intensities of the transition to the absorbing state \(M_k+1\) is defined by the entries of the column vector \(\mathbf{S}_{0}^{(k)} = -S^{(k)}{} \mathbf{e}.\) More information about the PH distribution can be found in [16, 17]. Switching of the server between the queues is not instantaneous. The switching time of the server to the service of customers located in the kth buffer has a PH distribution given by the irreducible representation (\(\boldsymbol{{\beta }}^{(-k)},S^{(-k)}\)), \(k=1,2\).
We assume the gated discipline of service. This means that the server provides service only to those customers that are presenting in the buffer immediately after completion of the server switching to this buffer. All customers that arrive after completion of the switching will receive service only after the next switching of the server to this buffer.
3 Process of System States
We describe the operation of the system by the process
where, at the time instant t,
-
\({i_t}^{(k)}\) is the number of customers at the kth buffer, \(k = 1, 2\);
-
\(r_t\) characterizes the state of the server:
$$r_t={\left\{ \begin{array}{ll} k,&{}\text {if the server is processing the customer from the}\ k\text {th queue},\; \\ -k,&{}\text {if the server is switching to the}\ k\text {th queue}, \; k=1,2;\\ \end{array}\right. } $$ -
\(j_t\) is the number of customers from the current queue that still need to be serviced (including one in service). This component is absent in definition of \({\xi }_t\) if the server is currently switching to another queue;
-
\(m_t\) is the state of the underlying process of PH distributed ongoing service or switching time;
-
\({\nu _t}^{(k)}\), \(k= 1,2,\) is the state of the underlying process of the customers arrival in the kth MAP, \(k= 1,2.\)
The process \({\xi }_t\), \(t\ge 0\), is a regular irreducible continuous time Markov chain and has a finite state space. Thus, the following limits (stationary probabilities) exist:
Let us form the row vectors of these probabilities enumerated in the direct lexicographical order of components \(r_t\), \(j_t\), \({i_t}^{(1)}\), \({i_t}^{(2)}\), \(m_t\), \({\nu _t}^{(1)}\), \({\nu _t}^{(2)}\):
Let us denote
where I is the identity matrix size of which is indicated by the suffix, \(\otimes \) is the symbol of the Kronecker product of matrices, see [18] \({\delta }_{ij}\) is the Kronecker delta, \(\bar{\delta }_{ij}=1-{\delta }_{ij}.\)
The probability vector \({\boldsymbol{\pi }}\) satisfy the following system of linear algebraic equations, called equilibrium or Chapman-Kolmogorov equations:
The matrix of the Chapman-Kolmogorov system is degenerate according to the properties of the infinitesimal generator. In order to find the vector \(\boldsymbol{\pi },\) add the normalization condition \(\boldsymbol{\pi } \mathbf{e} = 1\) and remove one of the equations of the system. Thus, we obtain a system, the only solution of which is the vector of stationary probabilities of the states of the system. As a numerically stable algorithm for solving such a system, the algorithm from [19] is recommended.
4 Performance Measures
Having computed the vectors of the stationary probabilities \({\boldsymbol{\pi }}_i,\; i \ge 0,\) defined by the partition \(\boldsymbol{\pi }=( {\boldsymbol{\pi }}_0, {\boldsymbol{\pi }}_1,{\boldsymbol{\pi }}_2,\dots ),\) it is possible to compute a variety of the performance measures of the system.
The average number of customers in the kth buffer, \( k=1, 2,\) is computed by
where
The probability \( P^{(loss)}_k \) that an arbitrary customer arriving to the kth buffer \(k=1,2,\) will be lost is computed by
5 Distribution of the Waiting Time
Let \(V_k(x),\) \( x\ge 0,\) be distribution function of the waiting time of an arbitrary customer in the kth buffer and \(v_k(s)\) be its Laplace-Stieltjes transform (LST):
We assume that the customers are served in the order of their arrival into the buffers (FCFS service discipline).
We will derive expression for the LST \(v_k(s)\) by means of the method of catastrophes. We interpret the variable s as the intensity of some virtual stationary Poisson flow of so-called catastrophes. It is easy to see that the LST \(v_k(s)\) is equal to probability that no one catastrophe arrives during the waiting time. The possible scenarios of the waiting time of an arbitrary customer are as follows.
-
1)
The customer arrives to the kth buffer and the buffer is full. In that case the customer is lost and \( v_k(s) = 1\).
-
2)
The customer arrives when the server is switching to the kth queue. In that case waiting time consists of the remaining switching time and the service time of customers which arrived before the tagged customer.
-
3)
The customer arrives when the server is servicing customers from another queue. In that case waiting time consists of the remaining service time, the service time of customers from another queue that still need to be serviced, the switching time to the kth queue, the service time of customers which arrived to the kth queue before the tagged customer.
-
4)
The customer arrives when the server is switching to another queue. In that case waiting time consists of the remaining switching time to another queue, the service time of customers which have been staying in another buffer and which arrived during the remaining switching time, the switching time to the kth queue and the service time of customers which arrived before the tagged customer.
-
5)
The customer arrives when the server is servicing customers from the kth queue. In that case, waiting time consists of the remaining service time, the service time of customers from the kth buffer that still need to be serviced, the switching time to another queue, the service time of customers which have been staying in another buffer and which arrived during the switching time, the switching time to the kth queue and the service time of customers which arrived to this buffer before the tagged customer arrival.
Thus, to calculate the LST \(v_k(s)\) of the waiting time of an arbitrary customer, we need to analyse all the listed above scenarios.
Let us introduce the following functions: \(L^{(k)}(s)={\left( sI-S^{(k)}\right) }^{-1}{} \mathbf{S}^{(k)}_0\) is the vector consisting of LSTs of the remaining service time of a customer from the kth queue, if \(k=1,2\) (or of switching time to kth queue, if \(k=-1,-2\)) with a fixed current state of the corresponding underlying process; \({\beta }^{(k)}(s)=\boldsymbol{{\beta }}^{(k)}L^{(k)}(s) \) is the LST of the full service (or switching) time; \(P_m(l,t)\) is the matrix of probabilities that l customers arrive to the mth queue during time t.
Lemma 1
The LST of the column vector of remaining service times of a customer from the rth queue, \(r=1,2,\) (or remaining switching time to the rth buffer,\(-r=1,2\)) during which l customers from the mth flow will arrive to the system, is calculated as follows:
the LST of the total service time during which l customers from the mth flow will arrive in the system, is calculated as follows:
where
Proof
By definition we have
In turn,
From where we get the formulas for \(F^{(r)}_l(m,s)\) and \(z^{(r)}_l(m,s)\) under proof.
In a similar way, we obtain formulas for \( P^{(r)}_l (m,s) \) and \(k^{(r)}_l (m,s)\).
Lemma 2
The LST of the total service time of \(n\; \) customers, \(n \ge 1,\) from the rth queue, \(r=1,2,\) during which \(l\;\) customers, \(l \ge 0,\) from the mth flow, \(m=1,2,\) will arrive to the system, is calculated as follows:
where
Here \({{\gamma }_r}^{(n)}\) and \({{\varGamma }_r}^{(n)}\) are parameters of the phase-type distribution of the sum of n independent random variables having a phase-type distribution with the irreducible representation \(\left( \boldsymbol{{\beta }}^{(r)},\ S^{(r)}\right) \), and \({{\gamma }_r}^{(n)}=\left( \boldsymbol{{\beta }}^{(r)},\boldsymbol{0},... ,\boldsymbol{0}\right) ,\) where \(\mathbf {0}\) is a null row vector of the same size as \(\boldsymbol{{\beta }}^{(r)},\) and
where \(\boldsymbol{\mathrm {O}}\) is a null matrix of the same dimension as \(S^{(r)},\) and
Lemma 3
The LST of the conditional waiting time, provided that at the moment of arrival of tagged customer to the first buffer the server is switching to the first queue and there are \( {i}_{1} \) customers in the first buffer, is calculated by the formula:
Proof
The probability that no one catastrophe arrives during the waiting time of the tagged customer is the product of the probability that no one catastrophe arrives during the remaining time of switching the server to the first queue \( L^{(- 1)}(s) \) by the probability that no one catastrophe arrives during the service time of \({i}_{1}\) customers \( {({\beta }^{(1)}\left( s\right) )}^{i_1} \).
Lemma 4
The LST of the conditional waiting time, provided that at the moment of arrival of tagged customer to the first buffer the server is servicing customers from the second queue, there are \( {i}_{2} \) customers in the second buffer, and j customers from second queue still need to be serviced, and there are \( {i}_{1} \) customers in the first buffer, is calculated by the formula:
Proof
The probability that no one catastrophe arrives during the waiting time of the tagged customer is the product of the following probabilities: the probability that no one catastrophe arrives during the remaining service time of the current customer \(L^{(2)}\left( s\right) \); the probability that no one catastrophe arrives during the service time of \(j-1\) customers \({\left( {\beta }^{(2)}\left( s\right) \right) }^{j-1}\); the probabilities of the states of the underlying process when the server starts switching to the first queue \({\boldsymbol{\beta }}^{(-1)}\); the probability that no one catastrophe arrives during the remaining from the moment of switching start waiting time \({v_1}^{(-1)}\left( s,i_1\right) .\)
Lemma 5
The LST of the conditional waiting time, provided that at the moment of arrival of tagged customer to the first buffer, the server is switching to the second buffer, which contains \( {i} _ {2} \) customers, and the first buffer contains \( {i} _ {1} \) customers, is calculated as follows:
Proof
The probability that no one catastrophe arrives during the waiting time is the product of probabilities: the probability that no one catastrophe arrives during the remaining switching time and k customers come to the second buffer \(F^{(-2)}_k(2,s)\); the probabilities of the states of the underlying process for servicing the first customer from the second buffer \({\boldsymbol{\beta }}^{(2)}\); the probability that no one catastrophe will arrive in the future \(v^{(2)}_1(s,\min \{i_2+k,N_2\},i_1,0).\)
Lemma 6
The LST of the conditional waiting time, provided that at the moment of arrival of tagged customer in the first buffer, the server is servicing customer from the first queue, j customers are still need to be serviced, there are \({i}_{1}\) customers in the first buffer, and \({i}_{2}\) customers in the second buffer, is calculated as follows:
Proof
The probability that no one catastrophe arrives during the waiting time is the product of probabilities: the probability that no one catastrophe arrives during the remaining service time of customer and m customers arrive to the second buffer \(F^{(1)}_m(2,s)\); the probability that no one catastrophe arrives during the service time of the remaining customers and k customers arrive to the second buffer \(P^{(*j-1,1)}_k(2,s)\); the probabilities of the states of the underlying process of switching to the second queue \({\boldsymbol{\beta }}^{(- 2)}\); probability that no one catastrophe will arrive in the future \({v_1}^{(- 2)}(s,i_1, i_2).\)
Theorem 1
The LST of the waiting time of customer in the first buffer has the form
The proof follows from the above lemmas and the total probability formula.
Theorem 2
The LST of the waiting time of customer in the second buffer has the form
where the corresponding functions are defined similarly to the above:
Proof
The proof follows from the above lemmas and the total probability formula.
Corollary 1
The average waiting time of an arbitrary customer in the kth buffer \({V}_{k}\), \(k = 1, 2,\) is calculated by the formula \({V}_{k} = -\dfrac{dv_k(s)}{ds}|_{s = 0}\).
The average waiting time of an accepted customer in the kth buffer \({V}_{k}^{(accept)}\) is calculated by the formula \(V^{(accept)}_k={V_k}(1-P^{(loss)}_k)^{-1}\).
Proof
Note that the average waiting time for an arbitrary customer in the kth buffer, \(k = 1, 2,\) also takes into account lost customers, the waiting time of which is equal to zero:
where \({V}_{k}^{(loss)} = 0\) is the average waiting time for a lost customer in the kth buffer, \({P}_{k}^{(loss)}\) is the probability of loss of a customer when it arrives in the kth buffer. Note also that \({P}_{k}^{(loss)} + {P}_{k}^{(accept)} = 1\), then
6 Numerical Examples
Now we consider numerical examples. Let us assume that the arrival flow of customers to the first queue \(MAP_1\) is defined by the following matrices:
The average intensity of customers arrival is \(\lambda _1=2.96625\). The coefficient of correlation of successive inter-arrival times in this arrival process is \({cor}=0.4\), and the squared coefficient of variation of inter-arrival times is 12.39.
The arrival flow of customers to the second queue \(MAP_2\) is defined by the following matrices:
The average intensity of customers arrival is \(\lambda _2=4\). The coefficient of correlation of successive inter-arrival times is \({cor}=0.2\), and the squared coefficient of variation of inter-arrival times is 12.34.
We assume that the capacity of the first buffer is \(N_1 = 4\) and the capacity of the second buffer is \(N_2 = 5\).
The PHs distributions characterizing the service and switching processes are defined by the row vectors \({\boldsymbol{\beta }}^{(k)}=\left( 1,\ 0\right) \), \(k=\pm 1,\pm 2\), and the sub-generators \(S^{(k)}=\begin{pmatrix} -\alpha c_k &{} \alpha c_k \\ 0 &{} -\alpha c_k \end{pmatrix},\) where \(c_1=1,\) \(c_2=1.2,\) \(c_{-1}=0.3,\) \(c_{-2}=0.2,\) \(\alpha \) is the parameter which we will vary.
Figure 2 shows that the queue length decreases with an increase in the parameter \(\alpha \) which affects the speed of growth of the service and switching rates. Figure 3 shows that the probability of losing a customer also decreases with an increase in the parameter \(\alpha \).
To illustrate the importance of account of correlation in arrival process, now let us assume that the arrival flow of customers to the first queue \(MAP_1\) is defined by the following matrices:
The average intensity of customers is practically the same, as in the \(MAP_1\) used in the first example, \(\lambda _1=2.94375\). But the coefficient of correlation is \({cor}=0\). The squared coefficient of variation is 1.
The arrival flow of customers to the second queue \(MAP_2\) and the PHs of service and switching processes are the same as above.
Figure 4 shows the dependence of the queue length \(L_1\) on the parameter \(\alpha \) with various correlations in the process \(MAP_1\). Figure 5 shows the dependence of the probability of losing a customer \(P_1^{(loss)}\) on the parameter \(\alpha \) with various correlations in the process \(MAP_1\). Figures 4 and 5 allow us to conclude that ignoring the effect of correlation can lead to an essentially incorrect assessment of the effectiveness of a real system that may be described by the model under consideration.
7 Conclusion
Polling system with two queues is analyzed. We considered the model under assumption that the input flows are described by the MAPs and the service and switching times have phase-type distributions. This model can be applied to obtain the characteristics of a polling model with an arbitrary number of queues under the general assumptions about input flows and service and switching times distributions.
References
Vishnevsky, V., Semenova, O.: Polling systems and their application to telecommunication networks. Mathematics 9(117) (2021). https://doi.org/10.3390/math9020117
Takagi, H.: Queuing analysis of polling models: progress in 1990–1994. In: Dshalalow, J.H. (ed.) Frontiers in Queueing: Models, Methods and Problems, pp. 119–146. CRC Press, Boca Raton (1997)
Perel, E., Yechiali, U.: Two-queue polling systems with switching policy based on the queue that is not being served. Stoch. Model. 33(3), 430–450 (2017)
Vishnevsky, V.M., Dudin, A.N., Semenova, O.V., Klimenok, V.I.: Performance analysis of the \(BMAP/G/1\) queue with gated servicing and adaptive vacations. Perform. Eval. 68, 446–462 (2011)
Vishnevsky, V., Dudin, A.N., Klimenok, V.I., Semenova, O.: Approximate method to study \(M/G/1\)-type polling system with adaptive polling mechanism. Qual. Technol. Quant. Manag. 9(2), 211–228 (2012)
Levy, H.: Analysis of cyclic polling systems with binomial gated service. In: Hasegawa, T., Takagi, H., Takahashi, Y. (eds.) Performance of Distributed and Parallel Systems, pp. 127–139. North-Holland, Amsterdam (1989)
Altman, E., Konstantopoulos, P., Liu, Z.: Stability, monotonicity and invariant quantities in general polling systems. Queueing Syst. 11, 35–57 (1992)
Altman, E.: Gated polling with stationary ergodic walking times, Markovian routing and random feedback. Ann. Oper. Res. 198, 145–164 (2012)
Weiss, T., Hillenbrand, J., Krohn, A., Jondral, F.K.: Mutual interference in OFDM-based spectrum pooling systems. IEEE (2004)
Ohanissian, A.: Systems and methods for dynamic currency pooling interfaces. IEEE (2018)
Albrecht, F.: Resource pooling and sharing using distributed ledger systems. IEEE (2017)
Chakravarthy, S.R.: Analysis of a priority polling system with group services. Stoch. Model. 14, 25–49 (1998)
Almasi, B., Sztrik, J.: A queueing model for a nonreliable multiterminal system with polling scheduling. J. Math. Sci. 92, 3974–3981 (1998)
Lucantoni, D.M.: New results on the single server queue with a batch Markovian arrival process. Commun. Stat. Stoch. Models 7(1), 1–46 (1991)
Chakravarthy, S.: The batch Markovian arrival process: a review and future work. Adv. Probab. Theory Stoch. Process. 1, 21–39 (2001)
Dudin, A.N., Klimenok, V.I., Vishnevsky, V.M.: The Theory of Queuing Systems with Correlated Flows. Springer, Heidelberg (2020). ISBN 978-3-030-32072-0
Neuts, M.F.: Matrix-Geometric Solutions in Stochastic Models. The Johns Hopkins University Press, Baltimore (1981)
Graham, A.: Kronecker Products and Matrix Calculus with Applications. Ellis Horwood, Cichester (1981)
Dudin, S.A., Dudina, O.S.: Call center operation model as a \(MAP/PH/N/R-N\) system with impatient customers. Probl. Inf. Transm. 47(4), 364–377 (2011)
Acknowledgment
This paper has been supported by the RUDN University Strategic Academic Leadership Program.
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2022 Springer Nature Switzerland AG
About this paper
Cite this paper
Dudin, A., Sinyugina, Y. (2022). Analysis of the Polling System with Two Markovian Arrival Flows, Finite Buffers, Gated Service and Phase-Type Distribution of Service and Switching Times. In: Dudin, A., Nazarov, A., Moiseev, A. (eds) Information Technologies and Mathematical Modelling. Queueing Theory and Applications. ITMM 2021. Communications in Computer and Information Science, vol 1605. Springer, Cham. https://doi.org/10.1007/978-3-031-09331-9_1
Download citation
DOI: https://doi.org/10.1007/978-3-031-09331-9_1
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-031-09330-2
Online ISBN: 978-3-031-09331-9
eBook Packages: Computer ScienceComputer Science (R0)