Keywords

1 Introduction

Finite-source retrial queues are effective and commonly used systems for modeling real life problems arising in main telecommunication systems like cellular mobile communication networks, computer networks, local-area networks with random access protocols, call centers and CSMA-based wire-less networks. With the decrement of the rate of generation of new calls the number of customers in the system increases in case of many practical situation. This can be performed with the help of finite-source or quasi-random input models. Their importance can be viewed by the reader in the following works, for example [4, 10, 11, 14, 15].

Systems with retrial feature are identified by a specific feature of arriving customers when the server is occupied. These customers stay in the system and spend their time in a virtual waiting room called orbit. Customers in the orbit attempt to be served after a random time. Because the number of calls are finite, the assumption of working with finite-source queuing systems follows real circumstances. In this paper we examine two-way communication retrial queuing system which is quite popular topic in the recent years. This can be explained by the fact that using two-way communication scheme is very helpful in many application fields to model real life problems. Especially in case of call centers where service unit can perform certain other work in idle state like selling, advertising and promoting products including serving incoming calls. In such systems utilization of the service unit is always pivotal, see for example in [1, 2, 6, 9, 13, 16, 20, 22].

Once the server becomes idle it calls for customers inside and outside of the system which is called an outgoing call. This is a typical feature of two-way communication system. In our investigated model the idle service unit can generate a call only from the orbit which arrives after a random time. It will only be served if no customers from the finite source or from the orbit come. Otherwise this outgoing call will be canceled. Papers dealing with two-way communication systems by the help of retrial queues, where the source is infinite, are found in [3, 5, 7, 8, 17,18,19, 21].

Our aim is to study the operation of the system where the service unit is reliable and can perform outgoing call from the orbit. The novelty of this paper is to compare this system with the common finite source retrial system using various distribution of service on performance measures like mean waiting time of an incoming call or utilization of the server. We are mainly interested in how the different distributions modify the characteristics of the system. To achieve this goal a simulation program has been developed using the base of SimPack [12] which contains a number of C/C++ libraries and executable programs. One of the main reasons for its usage is that the user has the freedom what performance measure are calculated and how the model is built up. SimPack toolkit also provides a set of utilities that demonstrate how to build a working simulation from a model description.

2 System Model

We consider a retrial queuing system of type M/G/1//N with a reliable server which is capable to produce outgoing calls to the customers residing in the orbit. N customers are located in the source, where all of them can generate incoming, primary calls towards the server. The distribution of the inter-request times is exponential with rate \(\lambda /N\). In default of waiting queue an incoming customer either from the source or orbit finds the server in an idle state then its service begins instantly. The service times of incoming customers are assumed to be gamma, hypo-exponentially, hyper-exponentially, Pareto and lognormal distributed with different parameters but with the same mean value. Customers return to the source after their service is terminated. If the server is busy, meaning that a request is under service, an incoming customer remains in the system and enters into the orbit. Customers located in the orbit are able to attempt to access the server again after an exponentially distributed time with parameter \(\sigma /N\). In the other hand, when the server becomes idle it can make outgoing call towards the customers in the orbit. It is performed after an exponentially distributed time with parameter \(\nu \). The service time of these outgoing customers follows gamma distribution with parameters \(\alpha _2\) and \(\beta _2\). In a consecutive paper we aim to investigate the same system by the help of asymptotic methods when N tends to infinity and that is the reason we use \(\lambda /N\) and \(\sigma /N\) parameters. All the random variables involved in the model construction are assumed to be totally independent of each other.

3 Applied Distributions and Its Parameters

In this Section the reader gets an insight of the parameters of the applied distributions and the process how to select them in order to execute a valid comparison. To do so our program is integrated with random number generators according to gamma, hyper-exponential, hypo-exponential, lognormal and Pareto distribution. These random number generators need input parameters which are different in every distribution, thus parameter selection is crucial. For valid comparison we use the same mean and variance in case of every distribution hence we take over every distribution and how the fitting process is accomplished.

3.1 Gamma Distribution

Gamma distribution is a general type of statistical distribution and a random variable X has a gamma distribution if its density function is the following:

$$\begin{aligned} f(x) = {\left\{ \begin{array}{ll} 0 &{} \text {if } x < 0 \\ \frac{\beta (\beta x)^{\alpha -1}e^{-\beta x}}{\varGamma (\alpha )} &{} \text {if } x \ge 0 \end{array}\right. } \end{aligned}$$

where \(\beta > 0 \) and \(\alpha > 0\).

$$\begin{aligned} \varGamma (\alpha ) =\int _0^\infty \mathrm {t}^{\alpha -1}\,\mathrm {e}^{-t}\, \mathrm {d}t \end{aligned}$$

This is the so-called complete gamma function, which has two parameters: \(\alpha \) is called the shape parameter and \(\beta \) is called the scale parameter. These two parameters are also the input parameters of the random number generator.

The coefficient \(C^{2}_X=\frac{Var(X)}{(EX)^2}\) is defined as the squared coefficient of variation of random variable X.

The mean value, variation and the squared coefficient of variation can be calculated:

$$\begin{aligned} \overline{X} = \frac{\alpha }{\beta }, \qquad Var(X)=\frac{\alpha }{\beta ^{2}}, \qquad C^{2}_X = \frac{1}{\alpha } \end{aligned}$$

For a predetermined mean value and variance to obtain parameters \(\alpha \) and \(\beta \) the next calculation has to be done:

$$\begin{aligned} \alpha =\frac{1}{C^{2}_X}, \qquad \beta = \frac{\alpha }{\overline{X}} \end{aligned}$$

3.2 Pareto Distribution

A random variable X has a Pareto distribution if its density function is the following:

$$\begin{aligned} f(x) = {\left\{ \begin{array}{ll} 0 &{} \text {if } x < k \\ \alpha k^{\alpha } x^{-\alpha -1} &{} \text {if } x \ge k \end{array}\right. } \end{aligned}$$

Hence the distribution function is:

$$\begin{aligned} F(x) = {\left\{ \begin{array}{ll} 0 &{} \text {if } x < k \\ 1 - \Big (\frac{k}{x}\Big )^{\alpha } &{} \text {if } x \ge k \end{array}\right. } \end{aligned}$$

where \(\alpha , k > 0\).

It has two parameters: \(\alpha \) is called the shape parameter and k is called the location parameter. These two parameters are the input parameters of the random number generator.

The mean value, variation and the squared coefficient of variation can be calculated as follows:

$$\begin{aligned} \overline{X} = {\left\{ \begin{array}{ll} \frac{k\alpha }{\alpha - 1} &{} \text {if } \alpha > 1 \\ \infty &{} \text {if } \alpha \le 1 \end{array}\right. } \end{aligned}$$
$$\begin{aligned} Var(X)=\frac{k^{2}\alpha }{\alpha - 2} - \Big (\frac{k\alpha }{\alpha - 1}\Big )^{2}, \qquad C^{2}_X = \frac{(\alpha - 1)^{2}}{\alpha (\alpha - 2) } - 1, \qquad \alpha > 2. \end{aligned}$$

For a predetermined mean value and variance to obtain parameters \(\alpha \) and k the following interrelation is used:

$$\begin{aligned} \alpha = 1 + \frac{\sqrt{1+C^{2}_X}}{\sqrt{C^{2}_X}}, \qquad k=\frac{\alpha - 1}{\alpha } \times \overline{X} \end{aligned}$$

3.3 Lognormal Distribution

Let \(Y \in N(m,\sigma )\) a random variable with normal distribution, lognormal is a continuous distribution in which the logarithm of a variable having a normal distribution, namely \(X = e^{Y}\) has lognormal distribution with parameters \((m,\sigma )\). Its distribution and density function are the following:

$$\begin{aligned} F_x(x) = \varPhi \Big ( \frac{\ln (x) - m}{\sigma } \Big ), \qquad x > 0. \end{aligned}$$
$$\begin{aligned} f_x(x) = \frac{1}{\sigma x} \varphi \Big ( \frac{\ln (x) - m}{\sigma } \Big ), \qquad x > 0. \end{aligned}$$

The mean value, variance and the squared coefficient of variation can be calculated:

$$\begin{aligned} \overline{X} = e^{m + \frac{\sigma ^{2}}{2}}, \qquad Var(X) = e^{2m + \sigma ^{2}}(e^{\sigma ^{2}} - 1), \qquad C^{2}_X = e^{\sigma ^{2}} - 1. \end{aligned}$$

To obtain the two parameters of the lognormal distribution the following interrelation is applied:

$$\begin{aligned} \sigma = \sqrt{\ln (1+C^{2}_X)}, \qquad m= \ln (\overline{X}) - \frac{\sigma ^{2}}{2} \end{aligned}$$

3.4 Hypo-exponential Distribution

Continuous statistical distribution, let \(X_i \in Exp(\mu _i) (i = 1, ... , n)\) be independent exponentially distributed random variables. Then \(Y_n = X_1 + ... + X_n\) has n-phase hypo-exponential distribution. Its density function is given by

$$\begin{aligned} f_{Y_n}(x) = {\left\{ \begin{array}{ll} 0 &{} \text {if } x < 0 \\ (-1)^{n - 1}\bigg [ \prod \nolimits _{i=1}^{n} \mu _{i}\bigg ] \sum \nolimits _{j=1}^{n} \frac{e^{-\mu _j x}}{\prod _{k=1, k \ne j}^{n} (\mu _j - \mu _k) } &{} \text {if } x \ge 0. \end{array}\right. } \end{aligned}$$

The mean value, variance and the squared coefficient of variation can be calculated:

$$\begin{aligned} \overline{Y_n} = \sum _{i=1}^{n} \frac{1}{\mu _i}, \qquad Var(Y_n) = \sum _{i=1}^{n} \frac{1}{\mu ^{2}_i}, \qquad C^{2}_{Y_n} = \frac{\sum _{i=1}^{n} \Big ( \frac{1}{\mu _i} \Big )^2 }{\bigg ( \sum _{i=1}^{n} \frac{1}{\mu _i} \bigg )^2} . \end{aligned}$$

In our simulation program we used the 2-phase hypo-exponential distribution where the parameters are the parameters of the two independent exponential distribution (\(\mu _1, \mu _2\)). For a predetermined mean value and variance to obtain parameters \(\mu _1\) and \(\mu _2\) the next equation system has to be solved:

$$\begin{aligned} \overline{X} = \frac{1}{\mu _1} + \frac{1}{\mu _2}, \qquad Var(X)=\frac{1}{\mu _1^{2}} + \frac{1}{\mu _2^{2}} \end{aligned}$$

3.5 Hyper-exponential Distribution

Suppose \(X_1,X_2,\cdots ,X_n\) are independent exponential random variables, where the rate parameter of \(X_i\) is \(\lambda _i\). The random variable X can be one of the n independent exponential random variables \(X_1,X_2,\cdots ,X_n\) such that X is \(X_i\) with probability \(p_i\) with \(p_1+\cdots +p_n=1\). Such a random variable X is said to follow a hyper-exponential distribution. Its density function is given by

$$\begin{aligned} f_X(x) = {\left\{ \begin{array}{ll} 0 &{} \text {if } x < 0 \\ \sum \nolimits _{i=1}^{n} p_i\lambda _i e^{-\lambda _i x} &{} \text {if } x \ge 0. \end{array}\right. } \end{aligned}$$

Its distribution function is

$$\begin{aligned} F_X(x) = {\left\{ \begin{array}{ll} 0 &{} \text {if } x < 0 \\ 1 - \sum \nolimits _{i=1}^{n} p_i e^{-\lambda _i x} &{} \text {if } x \ge 0. \end{array}\right. } \end{aligned}$$

In the case when for a random variable \(X, C_X^{2} > 1\) then the the following two-moment fit is suggested

$$\begin{aligned} f_Y(t) = p\lambda _1 e^{-\lambda _1 t} + (1 - p)\lambda _2 e^{-\lambda _2 t} . \end{aligned}$$

Y is a 2-phase hyper-exponentially distributed random variable. The most commonly used procedure is the balanced mean method, that is

$$\begin{aligned} \frac{p}{\lambda _1} = \frac{1-p}{\lambda _2}. \end{aligned}$$

To obtain the three parameters of the hyper-exponential distribution the following calculation is used:

$$\begin{aligned} p = \frac{1}{2} \Bigg ( \sqrt{\frac{C_X^{2} - 1}{C_X^{2} + 1} } \Bigg ), \qquad \lambda _1=\frac{2p}{\overline{X}}, \qquad \lambda _2=\frac{2(1-p)}{\overline{X}} . \end{aligned}$$

4 Simulation Results

4.1 Squared Coefficient of Variation is Greater than One

The values of the input parameters are shown in Table 1. In this section these results are in connection with the effect of different service time distributions of incoming customers where the mean and variance are equal, respectively. We use hyper-exponential distribution if the squared coefficient of variation is greater than one, Table 2 shows the exact values of parameters of service time of incoming customers. Besides hyper-exponential, gamma, lognormal and Pareto distributions are also used for comparisons.

Table 1. Numerical values of model parameters
Table 2. Parameters of service time of incoming customers
Fig. 1.
figure 1

Mean waiting time vs. arrival intensity using various distributions

Figure 1 shows the mean waiting time in function of arrival intensity of incoming customers. For these values of parameters regardless of the applied distribution a maximum value of the mean waiting time can be seen. This maximum feature occurs for finite-source retrial queues, see for example [4, 9, 10, 16]. Differences can be observed among the values of mean waiting time especially in the case of using gamma and Pareto distribution, despite the fact that the mean and variance are the same. On this figure the effect of different distributions is clearly observable.

Fig. 2.
figure 2

Utilization of server vs. arrival intensity using various distributions

Fig. 3.
figure 3

Utilization of server vs. arrival intensity using various distributions

Figures 2 and 3 illustrates how the utilization of the server grows with the increment of the arrival intensity of incoming customers. The highest values can be found at gamma distribution but the differences of the applied distributions are as commensurable as in case of Fig. 1. As the arrival intensity increases the probability of performing outgoing call become less so outgoing requests spend less time at the service unit.

Fig. 4.
figure 4

Comparison of steady-state distributions

On Fig. 4 the comparison of steady-state distribution can be seen when the distribution of service time of the incoming customers is different. It represents the probability of how many customers residing in the orbit. Exploring the curves in more detail they correspond to normal distribution. The same parameter setting is used what Table 1 demonstrates where \(\lambda /N\) is 0.03.

Fig. 5.
figure 5

Comparison of our investigated model and the classical retrial queuing model on the mean waiting time

To emphasize the importance of outgoing calls we compare our investigated model to the model without outgoing calls. This model is named as the classical retrial queuing system. On Fig. 5 comparison of the mean waiting time can be seen and due to the phenomena of outgoing call customers spend less time in the system, which is obvious looking at the curves. However, in our investigated model the utilization of the service unit (Fig. 6) is much higher compared to the classical retrial queuing system therefore it spends less time in idle state. In this way the efficiency of the server grows such that the mean waiting time decreases substantively. The distribution of service time of the incoming customer is gamma at Figs. 5 and 6, but the ratio of difference is also true for the other distributions, too. On this figure under total utilization of server we mean the service of both the incoming and outgoing requests at the curve of with outgoing call.

Fig. 6.
figure 6

Comparison of our investigated model and the classical retrial queuing model on the utilization of server

4.2 Squared Coefficient of Variation is Less than One

The same input parameters are used as in the previous section, see Table 1. The results are also in connection with the effect of different service time distributions of incoming customers where the mean and variance are equal. Instead of hyper-exponential distribution hypo-exponential distribution is used if the squared coefficient of variation is less than one. Table 3 illustrates the values of parameters of service time of incoming customers. In addition to hypo-exponential, we apply gamma, lognormal and Pareto distributions to perform sensitivity analysis.

Table 3. Parameters of service time of incoming customers
Fig. 7.
figure 7

Mean waiting time vs. arrival intensity using various distributions

Figure 7 demonstrates the mean waiting time in the function of arrival intensity of incoming calls. Taking closer look at the curves it can be stated that the values of mean waiting time are almost identical regardless of the applied distribution. With this parameter setting the interesting maximum value of the mean waiting time appears as in the previous section.

Fig. 8.
figure 8

Utilization of server vs. arrival intensity using various distributions

Fig. 9.
figure 9

Utilization of server vs. arrival intensity using various distributions

Figures 8 and 9 illustrates how the utilization of the server increases with the increment of the arrival intensity of incoming customers. As in case of mean waiting time here using different distributions result the same utilization. It seems that when the squared coefficient of variation is less than one using different distributions have no effect on the performance measures and the obtained results are nearly identical.

Fig. 10.
figure 10

Comparison of our investigated model and the classical retrial queuing model on the mean waiting time

Similarly to the previous section we compare the results between the classical retrial queuing system and our investigated model. On Figs. 8 and 9 the same tendency can be observed like when the the squared coefficient of variation is greater than one, namely values of mean waiting time is lesser when the server can make outgoing calls. But this also affects the utilization of the service unit because with the help of outgoing calls server spend less time without satisfying the needs of the customers. As in the previous section the service time of the incoming customer follows gamma distribution at Fig. 10 and 11, but the ratio of difference is also true for the other distributions, too.

Fig. 11.
figure 11

Comparison of our investigated model and the classical retrial queuing model on the utilization of server

From Figs. 5610 and 11 it can be said that the utilization of service unit escalates when outgoing calls are performed, but it also results lesser mean waiting time of incoming customers. With a proper parameter setting in the case of outgoing calls the utilization of the server is much higher in a way that customers spend less time in the orbit. In the case of with outgoing calls total utilization of the server includes both incoming and outgoing requests occupying the service unit.

5 Conclusion

A finite-source retrial queueing system is introduced where the server can produce outgoing calls towards the customers of the orbit. Several figures present the effect of the applied distributions on the mean waiting time and on the utilization of the server. Using stochastic simulation method results clearly indicate that when the squared coefficient of variation is greater than one then the contrast of the values of the performance measures is quite high having the same mean and variance.