Asymptotic sojourn time analysis of finite-source M/M/1 retrial queueing system with collisions and server subject to breakdowns and repairs

The aim of the present paper is to investigate the steady-state distribution of response and waiting time in a finite-source M / M / 1 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. An asymptotic method is applied under the condition that the number of sources tends to infinity, the primary request generation rate, retrial rate tend to zero while service rate, failure rates, repair rate are fixed. As the result of the analysis it is shown that the steady-state probability distribution of the number of transitions/retrials of the customer into the orbit is geometric with a given parameter, and the normalized sojourn time of the customer in the system follows a generalized exponential distribution. It is also proved that the limiting distributions of the normalized sojourn time of the customer in the system and the normalized sojourn/waiting time of the customer in the orbit coincide. The novelty of this investigation is the introduction of failure and repair of the server. Approximations of prelimit distributions obtained with the help of stochastic simulation by asymptotic one are considered and several illustrative examples show the accuracy and range of applicability of the proposed asymptotic method.


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 quasirandom 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. (2010Wang et al. ( , 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),  and Peng et al. (2014).
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  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.

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 λ/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 μ. 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 σ/N . We suppose that the server is unreliable and the lifetime is exponentially distributed random variable with failure rate γ 0 if the server is idle and with rate γ 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 γ 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 → ∞. 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.

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 if the server is free, 1, if the server is busy, 2, if the server is down (under repair).
We can state the following theorem which has been published and proved in our recent paper . We need this Theorem for the investigation of the waiting time.

Theorem 1 Let i(∞) be the number of customers in the system in steady state, then
where the value of parameter κ 1 is the positive solution of equation and the stationary distributions of probabilities R k (κ 1 ) of the service state k are defined as follows The limiting mean value κ 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.

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 where κ 1 is asymptotic average value of number of customers in the system, and (1 − κ 1 ) λ 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: 0, server is free, 1, server is busy, but not by the tagged customer, 2, server is down (under repair), 3, server is busy by the tagged customer.
Let us introduce the following conditional characteristic functions and assuming that system is operating in steady state, it is not difficult to write the following system of Kolmogorov equations 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 → ∞.
For the asymptotic analysis of the sojourn time of the customers in the system we have the following statement where the value of parameter q is defined by expression Proof Denoting 1 N = ε, in the system (7) let us execute the following substitutions then (7) can be rewritten as Denoting lim ε→0 g k (w, x, ε) = g k (w, x) and (1 − x)λ + xσ = a(x), carrying out the specified limiting transition in system (11), we obtain 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(w, x) their common value, that is equalities are carried out and from the last equation it is possible to write down The solution g k (w, x, ε) of the system (11) can be obtained in the form of decomposition where g 3 (w, x) was expressed above through function g(w, x) by (13). Substituting this decompositions into the first three equations of the system (11), we get the following equalities Equating here coefficients at identical degrees of ε, we receive Multiplying the first equality by R 0 (x), second by R 1 (x), third by R 2 (x) and adding them, we obtain equation In this equation let us set x = κ 1 and denote then we can write it in the form Then using (13) we get Here carry out the equality which coincides with (9), therefore from equalities (15) and (13) we obtain 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 which coincides with (8).
The theorem is proved.

Definition 1
The probability distribution, whose characteristic function has the form is called a Generalized Exponential (GE) distribution with parameters q and α. Here α 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 α 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
which follows obviously from Eq. (8).
Let us note that the form of the function (17) is determined by a single parameter (9) which depends only on the asymptotic average κ 1 , defined in Theorem 1. That is for finding the function (17) it is enough to execute a first-order asymptotics, find value κ 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 that coincides with the result (5), obtained by the Little's formula.

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 σ 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 ν the number of transitions of the tagged customer into the orbit in steady-state. We should note that obviously the random variables T , W , ν 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 ν.
We have the following statement

Theorem 3 Let ν be the number of transitions of the tagged customer into the orbit, then
where parameter q is defined in Theorem 2 and has the form here a = (1 − κ 1 )λ + σ κ 1 .
Proof Denote ν 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 where k = 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 Similarly to the proof of the Theorem 2, denoting 1 N = ε, introducing the substitutions we obtain the following system of equations Taking the limiting transition under condition ε → 0 and denoting lim ε→0 F k (z, x, ε) = F k (z, x), system (24) can be rewritten as From the first three equations of this system we can observe that the functions are equal. Designating by F(z, x) their common value, from the fourth equation of the system (25) let us derive expression for function F 3 (z, x) To find the function F(z, x), let us introduce the solution F k (z, x, ε) of system (24) in the form of the following decomposition Substituting these decompositions into the first three equations of system (24), we obtain equalities Equating here coefficients at identical degrees ε, for functions f k (z, x) we receive a heterogeneous system of linear algebraicequations 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 since the sum of the left parts of system (27) multiplied respectively by R k (x) is equal to zero. Substituting into (28) x = κ 1 , denoting R k (x) = R k , F k (z, x) = F k (z) and taking into account equality μR 1 − (1 − x)λ = 0 from Theorem 1, we have which, owing to equality (26), can be rewritten as After performing simple transformations, we obtain In the proof of Theorem 2 it was shown that coinciding with (20), and from (30) it is possible to obtain Applying the law of total probability to the generating functions of ν we obtain which,taking into account (29) can be rewritten as Therefore, owing to (31) we get coinciding with (19). The theorem is proved.

Corollary 2
The probability distribution P {ν = n} , n = 0, ∞ of the number of transitions of the tagged customer into the orbit is geometric and has the form The proof obviously follows from the form (19) of the generating function of ν.

Theorem 4 Characteristic function of the sojourn/waiting time W of the tagged customer in an orbit has the form
Proof Since the characteristic function of the time τ , the single retrial time of the tagged customer in the orbit has the form then owing to (32) and (34) by using the law of total expectations we have The theorem is proved.
Corollary 3 In the case of N → ∞ 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 then function (35) can be rewritten as coinciding with (8).
The corollary is proved.
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.

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 σ . 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 N = 10, μ= 1, 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. 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 λ = 1, μ= 1, γ 0 = 0.1, γ 1 = 0.2, γ 2 = 1 then in Table 1 for some σ the values of the following characteristics are given: μR 1 is the system throughput, q is the probability of successful service of the customer for the first attempt, υ is the average value of the normalized sojourn time of the customer in the system. Based on the results given in Table 1, it is possible to draw some conclusions, namely, with increasing intensity σ of repeated calls to the server from orbit we have noticed that 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. The probability of successful service of the customer for the first attempt decreases as it is expected. 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 (ν = n) the asymptotic geometric distribution of probabilities with parameter q and by P s (ν = 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 Δ which for probability distributions P as (ν = n) and P s (ν = n) is defined as Realizing the simulation program for λ = 1, μ= 1, σ = 4, γ 2 = 1 and applying the approximation (32), we provide the Kolmogorov distance Δ for various values N and γ = γ 0 = γ 1 in Table 2.
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). 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.

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 → ∞ 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 .