1 Introduction

Retrial queues, that is queues with repeated attempts have been effectively used to model many problems arising in telephone switching systems, telecommunication networks, computer networks and computer systems, call centers, wireless communication systems, etc. For a systematic account of the fundamental methods and the latest results, furthermore an accessible classified bibliography on this topic the interested reader is referred to, for example Artalejo and Gómez-Corral (2008), Falin and Templeton (1997), Gómez-Corral and Phung-Duc (2016), Kim and Kim (2016), and references therein.

In many practical cases it is essential to take into account that the rate of generation of new primary calls decreases as the number of customers in the system increases. This can be done by means of finite-source, or quasi-random input models. Retrial queues with quasi-random input are recent interest in modeling magnetic disk memory systems, cellular mobile networks, computer networks, and local-area networks with non-persistent CSMA/CD protocols, with star topology, with random access protocols, and with multiple-access protocols, see, for example Alfa and Isotupa (2004), Ali and Wei (2015), Almási et al. (2016), Do et al. (2014), Dragieva (2016), Ikhlef et al. (2016) and Wüchner et al. (2010).

Since in real life some components of the systems are subject to random breakdowns it is important to study reliability of retrial queues with server breakdowns and repairs because of limited ability of repairs and heavy influence of the breakdowns on the performance measures of the system. Finite-source retrial queues with an unreliable server have been investigated in several recent papers, for example Almási et al. (2005), Dragieva (2014), Gharbi and Dutheillet (2011), Gharbi and Ioualalen (2006), Sztrik (2005), Sztrik et al. (2006), Wang et al. (2010, 2011) and Zhang and Wang (2013).

In many communications involving data transmission from diverse sources there can be conflict for a limited number of channels or other facilities. Recent results on retrial queues with collisions can be found in, for example Ali and Wei (2015), Balsamo et al. (2013), Choi et al. (1992), Gómez-Corral (2010), Kim (2010), Kumar et al. (2010a, b), Nazarov et al. (2018) and Peng et al. (2014).

It is well-known that the analysis of waiting/response time and the number of retrials of a customer is much more complicated than the distribution of number of customers in the system. There exist analytic, numerical, and asymptotic methods to help this research, see for example Amador (2010), Artalejo (1998), Artalejo and Gómez-Corral (2008), Dragieva (2013, 2014, 2016), Falin and Artalejo (1998), Falin and Templeton (1997), Falin (1977, 1984, 1986, 1988), Wang et al. (2011) and Zhang and Wang (2013).

The aim of the present paper is to investigate such systems which has the above mention properties, that is finite-source, retrial, collisions, and non-reliability of the server. The present model is a generalization of the systems treated in Kvach and Nazarov (2015), Nazarov et al. (2014), Nazarov and Sudyko (2010), Nazarov and Moiseeva (2006) and Sudyko et al. (2018) and it is the natural continuation of the paper (Nazarov et al. 2018) in which the asymptotic distribution of the number of customers in the system has been investigated.

The rest of the paper is organized as follows. In Sects. 2 and 3 the full description of the model is given by the help of the corresponding two-dimensional Markov chain and the corresponding Kolmogorov equations are derived. Sections 4 and 5 are devoted to sojourn time analysis in the systems and the distribution of number of transitions the tagged customer carries until the successful completion of its service. In Sect. 6 the limiting distributions of the normed sojourn time of a request spends in the systems and in the orbit is treated, respectively. Section 7 deals with several numerical examples and comparisons to simulation results showing the advantage of the asymptotic methods, and some comments are made. Finally, the paper ends with a Conclusion.

2 Model description and notations

Let us consider a retrial queuing system of type M / M / 1 /  / N with collision of the customers and an unreliable server. The number of sources is N and each of them can generate a primary request with rate \(\lambda /N\). A source cannot generate a new call until end of the successful service of this customer. If a primary customer finds the server idle, he enters into service immediately, in which the required service time is assumed to be exponentially distributed random variable with parameter \(\mu \). Otherwise, if the server is busy, an arriving (primary or repeated) customer involves into collision with customer under service and they both move into the orbit. The retrial time of requests are assumed to be exponentially distributed with rate \(\sigma /N\). We suppose that the server is unreliable and the lifetime is exponentially distributed random variable with failure rate \(\gamma _0 \) if the server is idle and with rate \(\gamma _1 \) if it is busy. When the server breaks down, it is immediately sent for repair and the recovery time is assumed to be exponentially distributed with rate \(\gamma _2\). We deal with the case when the server is down all sources continue generation of customers and send it to the server, similarly customers may retry from the orbit to the server but all arriving customers immediately go into the orbit. Furthermore, in this unreliable model we suppose the interrupted request enters into the orbit immediately and its next service is independent of the interrupted one. All random variables involved in the model construction are assumed to be independent of each other.

Assuming that the systems is operating in steady-state the aim of the present paper is to find the limiting probability distribution of the sojourn time of the tagged customer in the system under conditions of \(N\rightarrow \infty \). Furthermore, we can obtain the limiting probability distribution of the number of transitions of the tagged customer into the orbit, and, subsequently, the limiting probability distribution of the sojourn time/waiting time of the customer in the orbit. With the help of a simulation program developed to these purposes we can determine the accuracy and range of applicability of the asymptotic results in prelimit situation.

3 First order asymptotics for the number of customers in the system

Let i(t) be the number of customers in the system at time t, that is, the total number of customers in orbit and in service, and similarly let us denote by k(t) the server state as follows

$$\begin{aligned} k(t)=\left\{ \begin{array}{lll} 0, &{} \text{ if } \text{ the } \text{ server } \text{ is } \text{ free, } \\ 1, &{} \text{ if } \text{ the } \text{ server } \text{ is } \text{ busy, } \\ 2, &{} \text{ if } \text{ the } \text{ server } \text{ is } \text{ down } \text{(under } \text{ repair). } \end{array} \right. \end{aligned}$$

We can state the following theorem which has been published and proved in our recent paper (Nazarov et al. 2018). We need this Theorem for the investigation of the waiting time.

Theorem 1

Let \(i(\infty )\) be the number of customers in the system in steady state, then

$$\begin{aligned} \lim \limits _{N\rightarrow \infty }{\mathsf {E}}\,\! \exp \left\{ jw\frac{i(\infty )}{N}\right\} =\exp \left\{ jw\kappa _1\right\} , \end{aligned}$$
(1)

where the value of parameter \(\kappa _1\) is the positive solution of equation

$$\begin{aligned} \left( 1-\kappa _1\right) \lambda -\mu R_1(\kappa _1)=0, \end{aligned}$$
(2)

and the stationary distributions of probabilities \(R_k(\kappa _1)\) of the service state k are defined as follows

$$\begin{aligned} \begin{array}{c} R_0(\kappa _1)=\displaystyle \left\{ \frac{\gamma _0 +\gamma _2}{\gamma _2}+\frac{\gamma _1+\gamma _2}{\gamma _2} \cdot \frac{a\left( \kappa _1\right) }{a\left( \kappa _1\right) +\gamma _1+\mu } \right\} ^{-1}, \\ \\ R_1(\kappa _1)=\displaystyle \frac{a\left( \kappa _1\right) }{a\left( \kappa _1\right) +\gamma _1+\mu }\cdot R_0(\kappa _1), \\ \\ R_2(\kappa _1)=\displaystyle \frac{1}{\gamma _2}\displaystyle \left[ \gamma _0 R_0(\kappa _1)+\gamma _1 R_1(\kappa _1)\right] , \end{array} \end{aligned}$$
(3)

here \(a\left( \kappa _1\right) \) is

$$\begin{aligned} a\left( \kappa _1\right) =\displaystyle \left( 1-\kappa _1\right) \lambda +\sigma \kappa _1. \end{aligned}$$
(4)

The limiting mean value \(\kappa _1\) allows us to execute further research of the sojourn time of the customer in system, number of transitions of the tagged customer into the orbit, and also the sojourn/waiting time of the customer in the orbit.

4 Sojourn time of the customer in the system

Let us denote by T  the steady-state sojourn time of the customer in the system, i.e. T is interval length from the moment of the end of generation of the customer by a source until completion of its successful service.

First of all, we will find limiting mean sojourn time of the customer in the system with the help of Little’s formula.

Since

$$\begin{aligned} \displaystyle \left( 1-\kappa _1\right) \lambda \ {\mathsf {E}}\,\left( \frac{1}{N}T\right) =\kappa _1\ , \end{aligned}$$

therefore

$$\begin{aligned} \displaystyle {\mathsf {E}}\,\left( \frac{1}{N}T\right) =\frac{\kappa _1}{\left( 1-\kappa _1\right) \lambda }\ , \end{aligned}$$
(5)

where \(\kappa _1\) is asymptotic average value of number of customers in the system, and \(\left( 1-\kappa _1\right) \lambda \) is the mean arrival intensity of the incoming flow.

However, we should underline that the above equality (5) defines only mean sojourn time of the customer in the system. We would like to carry a more detailed investigation for T of the tagged customer.

The total sojourn time T is simply expressed through residual or virtual sojourn time \(T_{res}(t)\). Here \(T_{res}(t)\) is interval length from the moment t until the end of the successful service of the tagged customer.

To study the sojourn time we will define the server states as follows:

$$\begin{aligned} s(t)=\left\{ \begin{array}{lll} 0, &{} \text{ server } \text{ is } \text{ free, } \\ 1, &{} \text{ server } \text{ is } \text{ busy, } \text{ but } \text{ not } \text{ by } \text{ the } \text{ tagged } \text{ customer, } \\ 2, &{} \text{ server } \text{ is } \text{ down } \text{(under } \text{ repair), }\\ 3, &{} \text{ server } \text{ is } \text{ busy } \text{ by } \text{ the } \text{ tagged } \text{ customer. } \end{array} \right. \end{aligned}$$

Let us introduce the following conditional characteristic functions

$$\begin{aligned} \displaystyle G_k (u,i)= {\mathsf {E}} \left\{ e^{juT_{res}(t)}|s(t)=k,i(t)=i\right\} , \end{aligned}$$
(6)

and assuming that system is operating in steady state, it is not difficult to write the following system of Kolmogorov equations

$$\begin{aligned}&\left[ ju-\frac{N-i}{N}\lambda -\frac{i}{N}\sigma -\gamma _0 \right] G_0(u,i)+\frac{N-i}{N}\lambda G_1(u,i+1)+\gamma _0 G_2(u,i) \nonumber \\&\quad +\displaystyle \frac{i-1}{N}\sigma G_1(u,i)+\frac{\sigma }{N} G_3(u,i)=0\ ,\nonumber \\&\left[ ju-\frac{N-i}{N}\lambda -\frac{i-1}{N}\sigma -\gamma _1-\mu \right] G_1(u,i)+\frac{N-i}{N}\lambda G_0(u,i+1) \nonumber \\&\quad +\frac{i-1}{N}\sigma G_0(u,i)+\gamma _1 G_2(u,i)+ +\displaystyle \mu G_0(u,i-1)=0\ ,\nonumber \\&\left[ ju-\frac{N-i}{N}\lambda -\gamma _2 \right] G_2(u,i)+\frac{N-i}{N}\lambda G_2(u,i+1)+\gamma _2 G_0(u,i)=0\,\nonumber \\&\left[ ju-\frac{N-i}{N}\lambda -\frac{i-1}{N}\sigma -\gamma _1-\mu \right] G_3(u,i) \nonumber \\&\quad +\frac{N-i}{N}\lambda G_0(u,i+1)+\frac{i-1}{N}\sigma G_0(u,i)+\gamma _1 G_2(u,i)+\mu =0\ . \end{aligned}$$
(7)

The solution of system (7) for finite values N causes difficulties therefore we will find their solution under condition of unlimited growing number of sources, that is as \(N\rightarrow \infty \).

For the asymptotic analysis of the sojourn time of the customers in the system we have the following statement

Theorem 2

$$\begin{aligned} \displaystyle \lim \limits _{N\rightarrow \infty }{\mathsf {E}}\, \!\exp \left\{ jw\frac{T}{N}\right\} =q+(1-q)\frac{\sigma q}{\sigma q-jw}, \end{aligned}$$
(8)

where the value of parameter q is defined by expression

$$\begin{aligned} \displaystyle q=\frac{(1-\kappa _1)\lambda }{(1-\kappa _1)\lambda +\sigma \kappa _1}. \end{aligned}$$
(9)

Proof

Denoting \(\displaystyle \frac{1}{N}=\varepsilon \), in the system (7) let us execute the following substitutions

$$\begin{aligned} u=\varepsilon w,\ \ \varepsilon i=x,\ \ G_k(u,i)=g_k(w,x,\varepsilon )\;, \end{aligned}$$
(10)

then (7) can be rewritten as

$$\begin{aligned}&\left[ j\varepsilon w-(1-x)\lambda -x\sigma -\gamma _0 \right] g_0(w,x,\varepsilon )+(1-x)\lambda g_1(w,x+\varepsilon ,\varepsilon )+\gamma _0 g_2(w,x,\varepsilon )\nonumber \\&\quad +(x-\varepsilon )\sigma g_1(w,x,\varepsilon )+ \displaystyle \varepsilon \sigma g_3(w,x,\varepsilon )=0\ ,\nonumber \\&\left[ j\varepsilon w-(1-x)\lambda -x\sigma -\gamma _1-\mu +\varepsilon \sigma \right] g_1(w,x,\varepsilon )+(1-x)\lambda g_0(w,x+\varepsilon ,\varepsilon )\nonumber \\&\quad + (x-\varepsilon )\sigma g_0(w,x,\varepsilon )+ \displaystyle \gamma _1 g_2(w,x,\varepsilon )+ \mu g_0(w,x-\varepsilon ,\varepsilon )=0\ ,\nonumber \\&\left[ j\varepsilon w-(1-x)\lambda -\gamma _2 \right] g_2(w,x,\varepsilon )+(1-x)\lambda g_2(w,x+\varepsilon ,\varepsilon )+\gamma _2 g_0(w,x,\varepsilon )=0\,\nonumber \\&\left[ j\varepsilon w-(1-x)\lambda -x\sigma -\gamma _1-\mu +\varepsilon \sigma \right] g_3(w,x,\varepsilon )+(1-x)\lambda g_0(w,x+\varepsilon ,\varepsilon )\nonumber \\&\quad + (x-\varepsilon )\sigma g_0(w,x,\varepsilon )+ \displaystyle \gamma _1 g_2(w,x,\varepsilon )+\mu =0. \end{aligned}$$
(11)

Denoting \(\lim \nolimits _{\varepsilon \rightarrow 0}{g_k(w,x,\varepsilon )}=g_k(w,x)\) and \((1-x)\lambda +x\sigma =a(x)\), carrying out the specified limiting transition in system (11), we obtain

$$\begin{aligned} \begin{array}{l} \displaystyle -\left[ a(x)+\gamma _0 \right] g_0(w,x)+a(x)g_1(w,x)+ \gamma _0 g_2(w,x)=0, \\ \\ \displaystyle -\left[ a(x)+\gamma _1+\mu \right] g_1(w,x)+\left[ a(x)+\mu \right] g_0(w,x)+ \gamma _1 g_2(w,x)=0, \\ \\ \displaystyle -\gamma _2 g_2(w,x)+ \gamma _2 g_0(w,x)=0\ ,\\ \\ \displaystyle -\left[ a(x)+\gamma _1+\mu \right] g_3(w,x)+a(x)g_0(w,x)+ \gamma _1 g_2(w,x)+\mu =0. \end{array} \end{aligned}$$

From the first three equations of this system it follows that the functions \(g_0(w,x)\), \(g_1(w,x)\) and \(g_2(w,x)\) coincide, and let us denote by g(wx) their common value, that is equalities are carried out

$$\begin{aligned} \displaystyle g_0(w,x)=g_1(w,x)=g_2(w,x)=g(w,x), \end{aligned}$$
(12)

and from the last equation it is possible to write down

$$\begin{aligned} \displaystyle g_3(w,x)=\frac{\mu +\left( a(x)+\gamma _1\right) g(w,x)}{a(x)+\gamma _1+\mu }. \end{aligned}$$
(13)

The solution \(g_k(w,x,\varepsilon )\) of the system (11) can be obtained in the form of decomposition

$$\begin{aligned} \begin{array}{l} \displaystyle g_k(w,x,\varepsilon )=g(w,x)+\varepsilon f_k(w,x)+o(\varepsilon ),\ \ k=\overline{0,2}\ , \\ \\ \displaystyle g_3(w,x,\varepsilon )=g_3(w,x)+\varepsilon f_3(w,x)+o(\varepsilon ), \end{array} \end{aligned}$$
(14)

where \(g_3(w,x)\) was expressed above through function g(wx) by (13). Substituting this decompositions into the first three equations of the system (11), we get the following equalities

$$\begin{aligned}&\left[ j\varepsilon w-a(x)-\gamma _0 \right] g(w,x)-\varepsilon \left[ a(x)+\gamma _0\right] f_0(w,x)\\&\quad + \,(1-x)\lambda \left\{ g(w,x)+\varepsilon \frac{\partial g(w,x)}{\partial x}+\varepsilon f_1(w,x)\right\} \\&\quad +\displaystyle (x-\varepsilon )\sigma g(w,x)+ \gamma _0\left\{ g(w,x)\right. \\&\quad \left. +\,\varepsilon f_2(w,x)\right\} +\varepsilon x\sigma f_1(w,x)+\varepsilon \sigma g_3(w,x)=o(\varepsilon ) ,\\&\displaystyle \left[ j\varepsilon w-a(x)-\gamma _1-\mu \right] g(w,x)-\varepsilon \left[ a(x)+ \gamma _1+\mu \right] f_1(w,x) \\&\quad + \,(1-x)\lambda \left\{ g(w,x)+\varepsilon \frac{\partial g(w,x)}{\partial x}+\varepsilon f_0(w,x)\right\} + \displaystyle (x-\varepsilon )\sigma g(w,x) \\&\quad + \,\gamma _1\left\{ g(w,x)+ \varepsilon f_2(w,x)\right\} +\varepsilon x\sigma f_0(w,x) \\&\quad +\, \mu \left\{ g(w,x)+\varepsilon \frac{\partial g(w,x)}{\partial x}-\varepsilon f_0(w,x)\right\} =o(\varepsilon ) ,\\ \\&\displaystyle \left[ j\varepsilon w-(1-x)\lambda -\gamma _2 \right] g(w,x)-\varepsilon \left[ (1-x)\lambda +\gamma _2\right] f_2(w,x)\\&\quad + \,(1-x)\lambda \left\{ g(w,x)+\varepsilon \frac{\partial g(w,x)}{\partial x}+\varepsilon f_2(w,x)\right\} \\&\quad +\, \displaystyle \gamma _2\left\{ g(w,x)+\varepsilon f_0(w,x)\right\} =o(\varepsilon ) . \end{aligned}$$

Equating here coefficients at identical degrees of \(\varepsilon \), we receive

$$\begin{aligned}&-\,\left[ a(x)+\gamma _0\right] f_0(w,x)+(1-x)\lambda f_1(w,x)+\gamma _0 f_2(w,x)\\&\quad = (\sigma -jw)g(w,x)-(1-x)\lambda \frac{\partial g(w,x)}{\partial x}-\sigma g_3(w,x),\\&\qquad -\,\left[ a(x)+\gamma _1+\mu \right] f_1(w,x)+\left[ a(x)+\mu \right] f_0(w,x)+\gamma _1 f_2(w,x)\\&\quad = \left[ \mu -(1-x)\lambda \right] \frac{\partial g(w,x)}{\partial x}-jw g(w,x),\\&\qquad -\,\gamma _2 f_2(w,x)+\gamma _2 f_0(w,x)=-jw g(w,x)-(1-x)\lambda \frac{\partial g(w,x)}{\partial x}. \end{aligned}$$

Multiplying the first equality by \(R_0(x)\), second by \(R_1(x)\), third by \(R_2(x)\) and adding them, we obtain equation

$$\begin{aligned} \left[ \mu R_1(x)-(1-x)\lambda \right] \frac{\partial g(w,x)}{\partial x}+\left[ \sigma R_0(x)-jw\right] g(w,x)-\sigma R_0(x)g_3(w,x)=0. \end{aligned}$$

In this equation let us set \(x=\kappa _1\) and denote

$$\begin{aligned} \displaystyle g(w,\kappa _1)=g(w), \ \ \ g_3(w,\kappa _1)=g_3(w),\ \ \ a(\kappa _1)=a,\ \ \ R_k(\kappa _1)=R_k, \end{aligned}$$

then we can write it in the form

$$\begin{aligned} \displaystyle \left( \sigma R_0-jw\right) g(w)=\sigma R_0 g_3(w). \end{aligned}$$

Then using (13) we get

$$\begin{aligned} \displaystyle \left( \sigma R_0\frac{\mu }{a+\gamma _1+\mu }-jw\right) g(w)=\sigma R_0 \frac{\mu }{a+\gamma _1+\mu }. \end{aligned}$$
(15)

Here carry out the equality

$$\begin{aligned} \displaystyle R_0 \frac{\mu }{a+\gamma _1+\mu }=\frac{\mu }{a}R_0\frac{a}{a+\gamma _1+\mu }=\frac{\mu R_1}{a}=\frac{\lambda (1-\kappa _1)}{\lambda (1-\kappa _1)+\sigma \kappa _1}=q, \end{aligned}$$

which coincides with (9), therefore from equalities (15) and (13) we obtain

$$\begin{aligned} \displaystyle g(w)=\frac{\sigma q}{\sigma q-jw}, \qquad g_3(w)=\frac{\mu }{a+\gamma _1+\mu }+ \frac{\gamma _1+\mu }{a+\gamma _1+\mu }g(w). \end{aligned}$$
(16)

Since \(R_0\) is the probability that an arriving customer finds the server idle, hence \(1-R_0\) is the probability that it goes into the orbit. For the limiting characteristic function of the total sojourn time T by using the law of total probability we have

$$\begin{aligned} \displaystyle \lim \limits _{N\rightarrow \infty }{\mathsf {E}}\,\! \exp \left\{ jw\frac{T}{N}\right\} =R_0 g_3(w)+(1-R_0) g(w) = q+(1-q)\frac{\sigma q}{\sigma q-jw}, \end{aligned}$$

which coincides with (8).

The theorem is proved. \(\square \)

Definition 1

The probability distribution, whose characteristic function has the form

$$\begin{aligned} \displaystyle h(w)=q+(1-q)\frac{\alpha }{\alpha -jw}, \end{aligned}$$

is called a Generalized Exponential (GE) distribution with parameters q and \(\alpha \). Here \(\alpha \) is the parameter of an exponential distribution. It easy to see that it is a mixed-type distribution, the random variable takes a zero value with probability q and exponentially distributed with parameter \(\alpha \) with probability \(1-q\). More information about GE distribution can be found in, for example Kouvatsos (1994) and Wüchner et al. (2010).

Corollary 1

Characteristic function of the sojourn time of the customer in the system in a prelimiting situation of finite N can be approximated by a function of the form

$$\begin{aligned} \displaystyle {\mathsf {E}}\,e^{juT} \approx q+(1-q)\frac{\sigma q}{\sigma q-juN}, \end{aligned}$$
(17)

which follows obviously from Eq. (8).

Let us note that the form of the function (17) is determined by a single parameter (9)

$$\begin{aligned} \displaystyle q=\frac{(1-\kappa _1)\lambda }{(1-\kappa _1)\lambda +\sigma \kappa _1}, \end{aligned}$$
(18)

which depends only on the asymptotic average \(\kappa _1\), defined in Theorem 1. That is for finding the function (17) it is enough to execute a first-order asymptotics, find value \(\kappa _1\) and applying equality (18) we obtain value of the parameter q determining the form of the function (17).

In the following let us find the average value of the normalized sojourn time of the tagged customer in the system which is

$$\begin{aligned} \displaystyle \upsilon ={\mathsf {E}} \left( \frac{1}{N}T\right) =(1-q)\frac{1}{\sigma q}=\frac{1}{\sigma }\cdot \frac{1-q}{q}=\frac{1}{\sigma } \frac{\sigma \kappa _1}{(1-\kappa _1)\lambda }=\frac{\kappa _1}{(1-\kappa _1) \lambda }, \end{aligned}$$

that coincides with the result (5), obtained by the Little’s formula.

5 Distribution of the number of transitions/retrials of the tagged customer into the orbit

Sojourn time T of the customer in the system consists of total sojourn/waiting time W of the customer in the orbit and the total sojourn time of the customer under service. For systems with collisions and an unreliable server the sojourn time of the customer at the server has a rather complex structure, since it contains terms of zero duration when the customer from the orbit finds the server broken or busy by another customer. It has a non-zero terms of the services interrupted by collisions and failures of the server and finally a single term of successfully completed service, after which the customer leaves the system.

The structure of the sojourn/waiting time W of the customer in the orbit is simpler, since it consists of a random number of transitions to the orbit of the random durations of a single stay of the customer in the orbit. The probability distribution of this duration is given and it is exponential with parameter \(\displaystyle \frac{\sigma }{N}\). If the discrete probability distribution of number of transitions of the customer into the orbit is found, then it is not difficult to find distribution of the total sojourn time of the tagged customer in the orbit.

Let us denote by \(\nu \) the number of transitions of the tagged customer into the orbit in steady-state. We should note that obviously the random variables T, W, \(\nu \) depend on N but for the simplification of notations is not shown explicitly. Applying method of the asymptotic analysis under condition of unlimited growing number of sources, we can find the probability distribution of \(\nu \).

We have the following statement

Theorem 3

Let \(\nu \) be the number of transitions of the tagged customer into the orbit, then

$$\begin{aligned} \displaystyle \lim \limits _{N\rightarrow \infty }{\mathsf {E}}\,z^\nu =\frac{ q}{1-(1- q)z}, \end{aligned}$$
(19)

where parameter q is defined in Theorem 2 and has the form

$$\begin{aligned} \displaystyle q=\frac{(1-\kappa _1)\lambda }{a}, \end{aligned}$$
(20)

here

$$\begin{aligned} a=(1-\kappa _1)\lambda +\sigma \kappa _1. \end{aligned}$$

Proof

Denote \(\nu _{res} (t)\) the residual number of transitions of the tagged customer into the orbit, that is number of transitions into the orbit of the tagged customer from moment t till the end of its successful service.

Let us introduce the conditional generating functions

$$\begin{aligned} \displaystyle G_k (z,i)= {\mathsf {E}} \left\{ z^{\nu _{res}(t)}|s(t)=k,i(t)=i\right\} , \end{aligned}$$
(21)

where \(k=\overline{0,3}\) is the server states, defined in the previous section. Assuming that system is operating in steady state for the conditional generating functions \(G_k(z,i)\) we obtain the following system of Kolmogorov equations

$$\begin{aligned}&\left[ \frac{N-i}{N}\lambda +\frac{i}{N}\sigma +\gamma _0 \right] G_0(z,i)\nonumber \\&\quad =\frac{N-i}{N}\lambda G_1(z,i+1)+\gamma _0 G_2(z,i)+\frac{i-1}{N}\sigma G_1(z,i)+\frac{\sigma }{N} G_3(z,i)\ ,\nonumber \\&\left[ \frac{N-i}{N}\lambda +\frac{i-1}{N}\sigma +\gamma _1+\mu \right] G_1(z,i)\nonumber \\&\quad = \frac{N-i}{N}\lambda G_0(z,i+1)+\frac{i-2}{N}\sigma G_0(z,i)+\frac{\sigma }{N}z G_0(z,i)\nonumber \\&\qquad +\,\gamma _1 G_2(z,i)+ \displaystyle \mu G_0(z,i-1)\ ,\nonumber \\&\left[ \frac{N-i}{N}\lambda +\frac{\sigma }{N}+\gamma _2 \right] G_2(z,i) = \frac{N-i}{N}\lambda G_2(z,i+1)\nonumber \\&\qquad +\,\frac{\sigma }{N}z G_2(z,i)+\gamma _2 G_0(z,i)\ ,\nonumber \\&\displaystyle \left[ \frac{N-i}{N}\lambda +\frac{i-1}{N}\sigma +\gamma _1+\mu \right] G_3(z,i)\nonumber \\&\quad =\frac{N-i}{N}\lambda z G_0(z,i+1)+\frac{i-1}{N}\sigma z G_0(z,i)+\gamma _1 z G_2(z,i)+\mu \ . \end{aligned}$$
(22)

Similarly to the proof of the Theorem 2, denoting \(\displaystyle \frac{1}{N}=\varepsilon \), introducing the substitutions

$$\begin{aligned} i\varepsilon =x,\ \ G_k(z,i)=F_k(z,x,\varepsilon ),\;\ \ a(x)=(1-x)\lambda +\sigma x,\; \end{aligned}$$
(23)

we obtain the following system of equations

$$\begin{aligned}&\displaystyle -\left[ a(x)+\gamma _0 \right] F_0(z,x,\varepsilon )+(1-x)\lambda F_1(z,x+\varepsilon ,\varepsilon )+\gamma _0 F_2(z,x,\varepsilon ) \nonumber \\&\quad +\, (x-\varepsilon )\sigma F_1(z,x,\varepsilon )+\varepsilon \sigma F_3(z,x,\varepsilon )=0, \nonumber \\&\quad \displaystyle -\left[ a(x)+\gamma _1+\mu -\varepsilon \sigma \right] F_1(z,x,\varepsilon )\nonumber \\&\quad +\,(1-x)\lambda F_0(z,x+\varepsilon ,\varepsilon )+\gamma _1 F_2(z,x,\varepsilon ) \nonumber \\&\quad +\, (x-2\varepsilon )\sigma F_0(z,x,\varepsilon )+ \displaystyle \varepsilon \sigma z F_0(z,x,\varepsilon )+ \mu F_0(z,x-\varepsilon ,\varepsilon )=0, \nonumber \\&\quad \displaystyle -\left[ (1-x)\lambda +\gamma _2+ \varepsilon \sigma \right] F_2(z,x,\varepsilon )+(1-x)\lambda F_2(z,x+\varepsilon ,\varepsilon ) \nonumber \\&\quad +\, \gamma _2 F_0(z,x,\varepsilon )+\varepsilon \sigma z F_2(z,x,\varepsilon )=0, \nonumber \\&\quad \displaystyle -\left[ a(x)+\gamma _1+\mu -\varepsilon \sigma \right] F_3(z,x,\varepsilon )+(1-x)\lambda z F_0(z,x+\varepsilon ,\varepsilon ) \nonumber \\&\quad + \,(x-\varepsilon )\sigma z F_0(z,x,\varepsilon )+\gamma _1 z F_2(z,x,\varepsilon )+\mu =0. \end{aligned}$$
(24)

Taking the limiting transition under condition \(\varepsilon \rightarrow 0\) and denoting \(\lim \nolimits _{\varepsilon \rightarrow 0}{F_k(z,x,\varepsilon )}=F_k(z,x)\), system (24) can be rewritten as

$$\begin{aligned}&-\,\left[ a(x)+\gamma _0 \right] F_0(z,x)+a(x) F_1(z,x)+\gamma _0 F_2(z,x)=0, \nonumber \\&-\,\left[ a(x)+\gamma _1+\mu \right] F_1(z,x)+\left[ a(x)+\mu \right] F_0(z,x)+\gamma _1 F_2(z,x)=0, \nonumber \\&-\,\gamma _2 F_2(z,x)+\gamma _2 F_0(z,x)=0, \nonumber \\&-\,\left[ a(x)+\gamma _1+\mu \right] F_3(z,x)+a(x) z F_0(z,x)+\gamma _1 z F_2(z,x)+\mu =0. \end{aligned}$$
(25)

From the first three equations of this system we can observe that the functions

$$\begin{aligned} \displaystyle F_0(z,x)=F_1(z,x)=F_2(z,x) \end{aligned}$$

are equal. Designating by F(zx) their common value, from the fourth equation of the system (25) let us derive expression for function \(F_3(z,x)\)

$$\begin{aligned} \displaystyle F_3(z,x)=\frac{\left[ a(x)+\gamma _1\right] z F(z,x)+\mu }{a(x)+\gamma _1+\mu }. \end{aligned}$$
(26)

To find the function F(zx), let us introduce the solution \(F_k (z,x,\varepsilon )\) of system (24) in the form of the following decomposition

$$\begin{aligned} F_k(z,x,\varepsilon )= & {} F(z,x)+\varepsilon f_k(z,x)+o(\varepsilon ),\ \ k=\overline{0,2}\ , \\ F_3(z,x,\varepsilon )= & {} F_3(z,x)+\varepsilon f_3(z,x)+o(\varepsilon ). \end{aligned}$$

Substituting these decompositions into the first three equations of system (24), we obtain equalities

$$\begin{aligned}&-\,\left[ a(x)+\gamma _0 \right] \left\{ F(z,x)+\varepsilon f_0(z,x)\right\} - \varepsilon \sigma F(z,x)\\&\quad +\, (1-x)\lambda \left\{ F(z,x)+\varepsilon \frac{\partial F(z,x)}{\partial x}+\varepsilon f_1(z,x)\right\} +\displaystyle \varepsilon \sigma F_3(z,x) \\&\quad +\, x\sigma \left\{ F(z,x)+\varepsilon f_1(z,x)\right\} + \gamma _0\left\{ F(z,x)+\varepsilon f_2(z,x)\right\} =o(\varepsilon ) ,\\&\quad -\,\left[ a(x)+\gamma _1+\mu \right] \left\{ F(z,x)+\varepsilon f_1(z,x)\right\} + \varepsilon \sigma F(z,x)\\&\quad +\, (1-x)\lambda \left\{ F(z,x)+\varepsilon \frac{\partial F(z,x)}{\partial x}+ \varepsilon f_0(z,x)\right\} + +\displaystyle \varepsilon \sigma z F(z,x)\\&\quad +\, x\sigma \left\{ F(z,x)+\varepsilon f_0(z,x)\right\} + \gamma _1\left\{ F(z,x)+\varepsilon f_2(z,x)\right\} - \displaystyle 2\varepsilon \sigma F(z,x)\\&\quad +\, \mu \left\{ F(z,x)-\varepsilon \frac{\partial F(z,x)}{\partial x}+\varepsilon f_0(z,x)\right\} =o(\varepsilon ) ,\\&\quad -\left[ (1-x)\lambda +\gamma _2 \right] \left\{ F(z,x)+\varepsilon f_2(z,x)\right\} -\varepsilon \sigma F(z,x)\\&\quad + \,(1-x)\lambda \left\{ F(z,x)+\varepsilon \frac{\partial F(z,x)}{\partial x}+\varepsilon f_2(z,x)\right\} + \displaystyle \varepsilon \sigma z F(z,x)\\&\quad +\, \gamma _2\left\{ F(z,x)+\varepsilon f_0(z,x)\right\} =o(\varepsilon ) . \end{aligned}$$

Equating here coefficients at identical degrees \(\varepsilon \), for functions \(f_k(z,x)\) we receive a heterogeneous system of linear algebraic equations

$$\begin{aligned}&\qquad -\,\left[ a(x)+\gamma _0\right] f_0(z,x)+a(x) f_1(z,x)+\gamma _0 f_2(z,x)\nonumber \\&\quad =\sigma \left\{ F(z,x)-F_3(z,x)\right\} -(1-x)\lambda \frac{\partial F(z,x)}{\partial x}, \nonumber \\&\qquad -\,\left[ a(x)+\gamma _1+\mu \right] f_1(z,x)+\left[ a(x)+\mu \right] f_0(z,x)+\gamma _1 f_2(z,x) \nonumber \\&\quad = (1-z)\sigma F(z,x)+\left[ \mu -(1-x)\lambda \right] \frac{\partial F(z,x)}{\partial x}, \nonumber \\&\qquad -\,\gamma _2 f_2(z,x)+\gamma _2 f_0(z,x)=(1-z)\sigma F(z,x)-(1-x)\lambda \frac{\partial F(z,x)}{\partial x}. \end{aligned}$$
(27)

Multiplying the first equality by \(R_0(x)\), second by \(R_1(x)\), third by \(R_2(x)\) and adding this products, we obtain equation

$$\begin{aligned}&\sigma R_0(x)\left\{ F(z,x)-F_3(z,x)\right\} +(1-z)\sigma F(z,x)\left\{ R_1(x)+R_2(x)\right\} \nonumber \\&\quad +\, \left[ \mu R_1(x)-(1-x)\lambda \right] \frac{\partial F(z,x)}{\partial x}=0, \end{aligned}$$
(28)

since the sum of the left parts of system (27) multiplied respectively by \(R_k(x)\) is equal to zero. Substituting into (28) \(x=\kappa _1\), denoting \(R_k(x)=R_k\), \(F_k(z,x)=F_k(z)\) and taking into account equality \(\mu R_1-(1-x)\lambda =0\) from Theorem 1, we have

$$\begin{aligned} \displaystyle R_0 \left\{ F(z)-F_3(z)\right\} +(1-z) F(z)\left\{ R_1+R_2\right\} =0, \end{aligned}$$

which, owing to equality (26), can be rewritten as

$$\begin{aligned} \begin{array}{l} \displaystyle \left\{ R_0+(1-z)(1-R_0)\right\} F(z)=R_0 F_3(z)= R_0 \frac{\left( a+\gamma _1\right) z F(z)}{a+\gamma _1+\mu }+R_0 \frac{\mu }{a+\gamma _1+\mu }. \end{array} \end{aligned}$$
(29)

After performing simple transformations, we obtain

$$\begin{aligned} \displaystyle \left\{ 1-z\left[ 1-R_0 \frac{\mu }{a+\gamma _1+\mu }\right] \right\} F(z)=R_0 \frac{\mu }{a+\gamma _1+\mu }. \end{aligned}$$
(30)

In the proof of Theorem 2 it was shown that

$$\begin{aligned} \displaystyle q= R_0 \frac{\mu }{a+\gamma _1+\mu }=\frac{\mu R_1}{a}=\frac{(1-\kappa _1)\lambda }{a}, \end{aligned}$$

coinciding with (20), and from (30) it is possible to obtain

$$\begin{aligned} \displaystyle F(z)=\frac{q}{1-(1-q)z}. \end{aligned}$$
(31)

Applying the law of total probability to the generating functions of \(\nu \) we obtain

$$\begin{aligned} \displaystyle {\mathsf {E}}\,z^\nu = R_0 F_3(z)+(1-R_0)z F(z), \end{aligned}$$

which,taking into account (29) can be rewritten as

$$\begin{aligned} \displaystyle {\mathsf {E}}\,z^\nu = \left\{ R_0+(1-z)(1-R_0)\right\} F(z)+(1-R_0)z F(z)=F(z). \end{aligned}$$

Therefore, owing to (31) we get

$$\begin{aligned} \displaystyle {\mathsf {E}}\,z^\nu =F(z)=\frac{ q}{1-(1- q)z}, \end{aligned}$$

coinciding with (19).

The theorem is proved. \(\square \)

Corollary 2

The probability distribution \(P\left\{ \nu =n\right\} ,\ n=\overline{0,\infty }\ \) of the number of transitions of the tagged customer into the orbit is geometric and has the form

$$\begin{aligned} \displaystyle P\left\{ \nu =n\right\} =q(1-q)^n, \ \ n=\overline{0,\infty }. \end{aligned}$$
(32)

The proof obviously follows from the form (19) of the generating function of \(\nu \).

6 Sojourn/waiting time of the tagged customer in the orbit

Theorem 4

Characteristic function of the sojourn/waiting time W of the tagged customer in an orbit has the form

$$\begin{aligned} \displaystyle {\mathsf {E}} e^{juW}=q+(1-q)\frac{\sigma q}{\sigma q-juN}. \end{aligned}$$
(33)

Proof

Since the characteristic function of the time \(\tau \), the single retrial time of the tagged customer in the orbit has the form

$$\begin{aligned} \displaystyle {\mathsf {E}} e^{ju\tau }=\frac{\sigma }{\sigma -juN}, \end{aligned}$$
(34)

then owing to (32) and (34) by using the law of total expectations we have

$$\begin{aligned} {\mathsf {E}} e^{juW}= & {} \sum \limits ^{\infty }_{n=0}\left( \frac{\sigma }{\sigma -juN}\right) ^n q(1-q)^n=\frac{q}{1-(1-q)\displaystyle \frac{\sigma }{\sigma -juN}}\nonumber \\= & {} q\frac{\sigma -juN}{\sigma q-juN}=q+(1-q)\frac{\sigma q}{\sigma q-juN}. \end{aligned}$$
(35)

The theorem is proved. \(\square \)

Corollary 3

In the case of \(N\rightarrow \infty \) the limiting probability distributions of the normalized sojourn time of the customer in the system T and the normalized sojourn time of the customer in the orbit W coincide.

Proof

In the characteristic function (35) let us execute replacement (10) from Theorem 2

$$\begin{aligned} u=\varepsilon i=\frac{i}{N}, \end{aligned}$$

then function (35) can be rewritten as

$$\begin{aligned} \displaystyle {\mathsf {E}}e^{ jt\frac{W}{N}}= q+(1-q)\frac{\sigma q}{\sigma q-jt}, \end{aligned}$$

coinciding with (8).

The corollary is proved. \(\square \)

It is quite counter intuitive since the sojourn time in the system is the sum of the waiting time in the orbit and the service time. We should mention that in prelimit situation it is the case. But in our model we deal with normalized waiting and response times, that is these times are divided by the number of sources. So the response time is the sum of the waiting time and the total service time, not the required service time since the service is many times interrupted due to collisions and failures of the server. If we divide both sides by N and N tends to infinity their limit is the same as the ratio of total service time and N tends to zero.

7 Numerical results and comparative analysis

After the theoretical results we would like to illustrate how close the asymptotic results are to the simulation results. Since for a finite N the system is rather complicated it is almost hopeless to find the exact distributions analytically or even numerically. That is why we have developed a special simulation package written in C++ to get the estimations to the involved probabilities, means and variances. It is not the aim of the present paper to introduce this package, the interested reader is referred to Tóth et al. (2017) for details.

In the following comparisons of prelimit distributions obtained with the help of stochastic simulation and by asymptotic ones are considered and several illustrative examples show the accuracy and range of applicability of the proposed asymptotic method.

Let us start our analysis with the mean waiting time of a customer in the system without collision treated in Zhang and Wang (2013) by means of a numerical method. Figure 1 shows the mean waiting time as the function the arrival rate for different values of retrial rate \(\sigma \). Of course it is a prelimit situation with corresponding parameters, respectively. Using the notation of the present paper, which is different from the cited one, we have the following values

$$\begin{aligned} N=10,\qquad \mu =1,\qquad \gamma _0=0,\qquad \gamma _1=0.1,\qquad \gamma _2=1 \end{aligned}$$
Fig. 1
figure 1

Mean waiting time in the orbit without collisions by numerical and simulation methods

Fig. 2
figure 2

Mean waiting time in the orbit with collisions by simulation

Using simulation we have reproduced the results for systems without collisions obtained by a numerical procedure in Zhang and Wang (2013). In the next step by means of simulation we treat systems with collisions under the same parameter setup is in the case of systems without collisions. Figure 2 illustrates how the mean waiting time changes. Of course, due to the collisions the values should be higher as it was expected. In both cases there is a maximum which a special phenomenon in finite-source retrial queues noticed by several authors, see for example Almási et al. (2005), Artalejo and Gómez-Corral (2008), Falin and Artalejo (1998), Sztrik (2005), Wang et al. (2011) and Zhang and Wang (2013).

Under the same parameter setup, except for \(N=100\) in the case of collisions the asymptotic and simulation results were coincide. This situation is illustrated in Fig. 3. We can observe that after a certain value of the arrival rate the the mean waiting time remains almost unchanged.

Fig. 3
figure 3

Asymptotic mean waiting time in the orbit

In the following example we consider the limiting distributions showing the effect of the retrial rates on some performance measures. If for illustrations we take

$$\begin{aligned} \lambda =1,\qquad \mu =1,\qquad \gamma _0=0.1,\qquad \gamma _1=0.2,\qquad \gamma _2=1 \end{aligned}$$

then in Table 1 for some \(\sigma \) the values of the following characteristics are given: \(\mu R_1\) is the system throughput, q is the probability of successful service of the customer for the first attempt, \(\upsilon \) is the average value of the normalized sojourn time of the customer in the system.

Table 1 The main system performance measures at various values of \(\sigma \)

Based on the results given in Table 1, it is possible to draw some conclusions, namely, with increasing intensity \(\sigma \) of repeated calls to the server from orbit we have noticed that

  1. 1.

    Throughput increases which is not natural since an increase of number of the collisions should decrease of throughput of the system. However, higher retrial rate involves shorter waiting time, so the customer could leave the system earlier.

  2. 2.

    The probability of successful service of the customer for the first attempt decreases as it is expected.

  3. 3.

    The average value of the normalized sojourn time of the customer in the system is reduced, which is associated with a significant decrease of the single sojourn time of the customer in orbit.

Previously we have obtained that the probability distribution of the number of transitions of the tagged customer into the orbit is geometric with parameter q, defined in the (20). Let us find out how close the limiting results are to the simulation results and at what values N this approximation is admissible.

Let us denote by \(P_{as} (\nu =n)\) the asymptotic geometric distribution of probabilities with parameter q and by \(P_{s}(\nu =n)\) the probability distribution of the number of transitions of the tagged customer into the orbit, obtained with the help of our simulation program. Furthermore, let us determine the accuracy (error) of approximation of distribution by mean of Kolmogorov distance \(\varDelta \) which for probability distributions \(P_{as} (\nu =n)\) and \(P_{s}(\nu =n)\) is defined as

$$\begin{aligned} \varDelta =\displaystyle \max _{0 \le i < \infty }\left| \sum \limits ^{i}_{n=0}\left( P_{as} (\nu =n) - P_{s} (\nu =n)\right) \right| \ . \end{aligned}$$

Realizing the simulation program for

$$\begin{aligned} \lambda =1, \qquad \mu =1,\qquad \sigma =4,\qquad \gamma _2=1 \end{aligned}$$

and applying the approximation (32), we provide the Kolmogorov distance \(\varDelta \) for various values N and \(\gamma =\gamma _0=\gamma _1\) in Table 2.

Table 2 Kolmogorov distance between distribution \(P_s(i)\) and approximation of the geometric distribution \(P_{as}(i)\) for various values of the parameters N and \(\gamma \)

We can see, what is expected that by increasing N the Kolmogorov distance should decrease, but with this parameter setup there is no essential reduction if \(N>50\).

Let us see the mean number of retrials under the same condition as before (Table 3).

Table 3 Mean number of retrials in prelimit and limiting situations for various values of parameters N and \(\gamma \)

Again we can observe what was expected, as N increases the mean number of retrials increases since there are more and more customers in the system resulting more and more collisions. At the same time it can also be seen how the mean number of retrials increases as the failure rate of the server increases. It should be underlined that each time the limiting values give very good approximations showing the effectiveness of the asymptotic method.

8 Conclusion

In this paper, the sojourn time analysis of a finite-source retrial queuing system with collision of customers where the server is subjects to random breakdowns and repairs depending on whether it is idle or busy was presented. The research has been conducted by method of asymptotic analysis under condition of unlimited growing number of sources. As a result of our investigation it was shown that the probability distribution of the number of transitions of the customer into the orbit is geometric, and the normalized sojourn time of the customer in the system has Generalized Exponential distribution. Parameters of these distributions were found. In addition, it was proved that the limiting distributions of the normalized sojourn time of the customer in the system and the normalized sojourn time of the customer in the orbit at \(N\rightarrow \infty \) coincide. For this system a simulation program was developed, by the help of which the distribution of the number of transitions of the customer into the orbit was obtained. Several illustrative numerical results were discussed in details which showed the accuracy and range of applicability of the asymptotic results at finite values of N.