Keywords

1 Introduction

Evidently, queueing models with finite buffer capacities have wide network applications, especially in modelling some processes occurring in network nodes, like IP routers or nodes of WSNs. As it seems, systems with different-type limitations in the access to the service station are of particular importance, due to their potential adoptions as models of energy saving mechanisms. Typically, each busy period of the queueing system may correspond to the active mode and any idle period—to the sleep mode. In practice, when a packet (job, call, etc.) arrives into the empty system, it is impossible to start its operation immediately. Predominantly, it takes some time (called a setup time) for the server to achieve the full readiness for processing.

The steady-state behavior of the M/M/1-type queue with “queued” waking up and setup times is investigated in [2]. A Markovian system with server setups preceding the first service in a new busy period is analyzed in [13]. In [15] (see also [1]) an equilibrium threshold strategy for customers’ behavior in a queue with setup times is derived. Applications of queueing systems with setup periods in WSNs can be found, e.g. in [16], where a sleep/wakeup protocol in the IEEE 802.15.4 standard is modelled. In [3] a queueing system in modelling the IMS session re-setup delay in WiMAX/LTE heterogeneous networks is applied. A BS sleeping mode in cellular networks is in [14] modelled via the M/G/1-type queueing system with server vacations and setup times. In [4] a model of data center with servers having independent setup times after idle periods is considered. The system is mathematically described by a two-dimensional Markov chain and some performance measures are found using a generating function approach.

As one can observe, analytical results obtained for different-type queueing models with server setup times relate, mainly, to the stable queues, i.e. to the stochastic characteristics in the case of \(t \to \infty .\) However, quite often time-dependent analysis of the system behavior seems to be more desired, in particular due to the high variability network traffic, e.g. in TCP/IP connections. Moreover, in rare traffic (like in some WSNs) the system stabilizes longer, so the investigation of its performance shortly after the opening or the application of a new control mechanism requires transient analysis (at fixed time \(t\)). Transient analysis of the queue-size distribution in the M/G/1-type queueing model with arrivals in random batches, N-policy and server setup times can be found in [7]. In [5] a similar model is considered with additional multiple vacation policy. Time-dependent solution for the queue-size distribution in a model with Poisson arrivals and setup/closedown times is obtained in [11].

In the paper we deal with the finite-buffer queueing model of the M/G/1 type in which the first processing in each new busy period (after finishing the idle time) is preceded by a generally-distributed setup time, during which the service process is still suspended (the arriving packets accumulate in the buffer queue). Using the idea of embedded Markov chain, a system of integral equations for the distribution of the number of packets completely processed up to the fixed time \(t\) (departure process), conditioned by the initial buffer state, is built. The solution of the corresponding system written for double transforms is obtained via linear algebraic approach and presented in a compact form by using a certain recursively defined sequence.

In [9, 10] new results for departure process in the model with “queued” waking up (N-policy) can be found. The same characteristic in the finite-buffer system with auto-correlated input stream modelled by the BMAP process is studied in [8]. In [6] time-dependent results for departure process can be found for the model with multiple vacation policy.

2 Description of the Model and Auxiliary Results

In the paper we investigate a single-server finite-buffer queueing model in which packets arrive according to a Poisson process with rate \(\lambda\) and are being served individually with a general-type CDF (=cumulative distribution function) \(F( \cdot )\) of the processing time, according to the FIFO service discipline. The maximal number of packets present in the system simultaneously equals \(K\), i.e. we have \(K - 1\) places in the buffer queue and one place “in service station”. Obviously, packets arriving during the buffer overflow period (when the server is occupied and the buffer is saturated) are being lost. We assume that the buffer may contain a number of packets being accumulated before the start of the system at time \(t = 0.\) Each busy period, which is initialized together with the first arrival after the idle time, is preceded by a setup time, which is a random variable with a general-type CDF \(G\left( \cdot \right).\) The server needs a setup time to achieve full operational readiness. If the system is empty before the opening, then it also starts a setup time at the moment of the first arrival. We assume independence of all inter-arrival, processing and setup times in the evolution of the system.

Let us denote by \(h(t)\) the (random) number of packets completely processed up to the fixed time \(t,\) and define the distribution function of \(h\left( t \right),\) conditioned by the initial level of buffer saturation, as follows:

$$H_{n} \left( {t,m} \right)\mathop = \limits^{\text{def}} \varvec{P}\left\{ {h\left( t \right) = m |X\left( 0 \right) = n} \right\},$$
(1)

where \(t > 0, m \ge 0, 0 \le n \le K\) and \(X(0)\) stands for the number of packets present in the system at the opening (at time \(t = 0\)). The (conditional) departure process defined in (1) is one of the most important operating characteristics of each queueing system, illustrating its performance. Moreover, in network applications, the output stream of packets transmitted from one node of the network becomes the arriving stream of packets into another node.

We are interested in finding the explicit representation for the PGF (=probability generating function) of the LT (=Laplace transform) of \(H_{n} \left( {t,m} \right)\), i.e. for the functional

$$\tilde{h}_{n} (s,z)\mathop = \limits^{\text{def}} \mathop \sum \limits_{m = 0}^{\infty } z^{m} \mathop \int \limits_{0}^{\infty } e^{ - st} H_{n} \left( {t,m} \right)dt,$$
(2)

where \(\left| z \right| < 1\) and \({\Re }\left( s \right) > 0.\) In further analysis we use the following result from linear algebra which can be found in [12]:

Lemma 1

Introduce two number sequences \(\left( {\alpha_{k} } \right), k \ge 0,\) and \(\left( {\psi_{k} } \right), k \ge 1,\) with the assumption \(\alpha_{0} \ne 0.\) Each solution of the following system of linear equations with respect to \(x_{n} , n \ge 0:\)

$$\mathop \sum \limits_{k = - 1}^{n} \alpha_{k + 1} x_{n - k} - x_{n} = \psi_{n} ,n \ge 0,$$
(3)

can be written in the form

$$x_{n} = CR_{n + 1} + \mathop \sum \limits_{k = 0}^{n} R_{n - k} \psi_{k} ,n \ge 0,$$
(4)

where \(C\) is a constant independent on \(n\), and \(\left( {R_{k} } \right)\) is the sequence (called a potential in [12]) connected with the \(\left( {\alpha_{k} } \right)\) in the following way:

$$\mathop \sum \limits_{k = 0}^{\infty } \theta^{k} R_{k} = \frac{1}{{P_{\alpha } \left( \theta \right) - 1}},$$
(5)

where

$$P_{\alpha } \left( \theta \right)\mathop = \limits^{\text{def}} \mathop \sum \limits_{k = - 1}^{\infty } \theta^{k} \alpha_{k + 1} , \left| \theta \right| < 1.$$
(6)

Moreover, in [12] it is proved that successive terms of the sequence \(\left( {R_{n} } \right)\) can be found recursively as follows:

$$R_{0} = 0,R_{1} = \alpha_{0}^{ - 1} ,R_{k + 1} = R_{1} \left( {R_{k} - \mathop \sum \limits_{i = 0}^{k} \alpha_{i + 1} R_{k - i} } \right),k \ge 1.$$
(7)

In the further analysis we use the nomenclature \(\bar{L}\left( x \right)\mathop = \limits^{\text{def}} 1 - L\left( x \right),\) where \(L( \cdot )\) stands for arbitrary CDF, and the notation \(I\{ A\)} for the indicator of the random event \(A.\) Moreover, let us define

$$f(s)\mathop = \limits^{\text{def}} \mathop \int \limits_{0}^{\infty } e^{ - st} dF\left( t \right),$$
(8)
$$g(s)\mathop = \limits^{\text{def}} \mathop \int \limits_{0}^{\infty } e^{ - st} dG\left( t \right),{\Re }\left( s \right) > 0.$$
(9)

3 Integral Equations for Conditional Departure Process

In this section, by using the idea of embedded Markov chain and the continuous version of the formula of total probability, we find a system of integral equations for \(H_{n} \left( {t,m} \right)\) \(\left( {t > 0, m \ge 0, 0 \le n \le K} \right),\) defined in (1). Next, we build the corresponding system written for double transforms of conditional departure process, i.e. for functionals \(\tilde{h}_{n} (s,z)\) \(\left( {0 \le n \le K,{ \mathcal{R}}\left( s \right) > 0, \left| z \right| < 1} \right)\), given in (2).

Assume, firstly, that the system is empty before the opening, so its evolution begins with idle period and the setup time begins simultaneously with the arrival epoch of the first entering packet. We can, in fact, distinguish three mutually excluding random events:

  1. 1.

    the first packet occurs before the moment \(t\) and the setup time also completes before \(t\) (we denote this event by \(E_{1} (t)\));

  2. 2.

    the first packet arrives before \(t\) but the setup time ends after \(t\) (\(E_{2} (t)\));

  3. 3.

    the first arrival occurs after time \(t\) (\(E_{3} (t)\)).

Let us introduce the following additional notation:

$$H_{0}^{\left( i \right)} \left( {t,m} \right)\mathop = \limits^{\text{def}} \varvec{P}\left\{ {\left( {h\left( t \right) = m} \right)\mathop \cap \nolimits E_{i} \left( t \right) |X\left( 0 \right) = 0} \right\},$$
(10)

where \(t > 0, m \ge 0\) and \(i = 1, 2, 3.\) Obviously

$$\varvec{P}\left\{ {h\left( t \right) = m |X\left( 0 \right) = 0} \right\} = H_{0} \left( {t,m} \right) = \mathop \sum \limits_{i = 1}^{3} H_{0}^{\left( i \right)} \left( {t,m} \right)$$
(11)

and

$$\tilde{h}_{0} \left( {s,z} \right) = \mathop \sum \limits_{i = 1}^{3} \mathop \sum \limits_{m = 0}^{\infty } z^{m} \mathop \int \limits_{0}^{\infty } e^{ - st} H_{0}^{\left( i \right)} \left( {t,m} \right)dt.$$
(12)

According to the random event \(E_{1} (t)\), we obtain the following representation:

$$\begin{aligned} H_{0}^{\left( 1 \right)} \left( {t,m} \right) & = \mathop \int \limits_{x = 0}^{t} \lambda e^{ - \lambda x} dx\mathop \int \limits_{y = 0}^{t - x} \left[ {\mathop \sum \limits_{i = 0}^{K - 2} \frac{{\left( {\lambda y} \right)^{i} }}{i!}e^{ - \lambda y} H_{i + 1} \left( {t - x - y,m} \right)} \right. \\ & \quad + \left. {H_{K} \left( {t - x - y,m} \right)\mathop \sum \limits_{i = K - 1}^{\infty } \frac{{\left( {\lambda y} \right)^{i} }}{i!}e^{ - \lambda y} } \right]dG(y) \\ \end{aligned}$$
(13)

Indeed, the first summand on the right side of (13) relates to the situation in which the buffer does not become saturated during the setup time, while the second one—to the case of the buffer overflow occurring during this time. Similarly, considering \(E_{2} \left( t \right),\) we obtain

$$H_{0}^{\left( 2 \right)} \left( {t,m} \right) = I\left\{ {m = 0} \right\}\mathop \int \limits_{0}^{t} \lambda e^{ - \lambda x} \bar{G}\left( {t - x} \right)dx.$$
(14)

Evidently, if the setup time completes after \(t\), the service at time \(t\) is still blocked, so the only possibility is \(m = 0.\) Similar argumentation explains the last case, namely

$$H_{0}^{\left( 3 \right)} \left( {t,m} \right) = I\left\{ {m = 0} \right\}e^{ - \lambda t} .$$
(15)

From (13)–(15) we get, referring to (11),

$$\begin{aligned} H_{0} \left( {t,m} \right) & = \mathop \int \limits_{x = 0}^{t} \lambda e^{ - \lambda x} dx\mathop \int \limits_{y = 0}^{t - x} \left[ {\mathop \sum \limits_{i = 0}^{K - 2} \frac{{\left( {\lambda y} \right)^{i} }}{i!}e^{ - \lambda y} H_{i + 1} \left( {t - x - y,m} \right)} \right. \\ & \left. { \quad + H_{K} \left( {t - x - y,m} \right)\mathop \sum \limits_{i = K - 1}^{\infty } \frac{{\left( {\lambda y} \right)^{i} }}{i!}e^{ - \lambda y} } \right]dG(y) \\ & \quad + I\left\{ {m = 0} \right\}\left( {\mathop \int \limits_{0}^{t} \lambda e^{ - \lambda x} \bar{G}\left( {t - x} \right)dx + e^{ - \lambda t} } \right). \\ \end{aligned}$$
(16)

Let us consider now the case of the system being non-empty at the opening (i.e. \(1 \le n \le K\)). Since successive departure epochs are Markov (renewal) moments in the evolution of the M/G/1-type system, then, applying the continuous version of the formula of total probability with respect to the first departure epoch after \(t = 0\), we obtain the following system of integral equations:

$$\begin{aligned} H_{n} \left( {t,m} \right) & = I\left\{ {m \ge 1} \right\}\mathop \int \limits_{0}^{t} \left[ {\mathop \sum \limits_{i = 0}^{K - n - 1} \frac{{\left( {\lambda x} \right)^{i} }}{i!}e^{ - \lambda x} H_{n + i - 1} \left( {t - x,m - 1} \right)} \right. \\ & \left. { \quad + H_{K - 1} \left( {t - x,m - 1} \right)\mathop \sum \limits_{i = K - n}^{\infty } \frac{{\left( {\lambda x} \right)^{i} }}{i!}e^{ - \lambda x} } \right]dF\left( x \right) + I\left\{ {m = 0} \right\}\bar{F}\left( t \right), \\ \end{aligned}$$
(17)

where \(1 \le n \le K\). Let us explain in a short form successive summands on the right side of (17). The first summand under the integral describes the situation in which there are some free places in the buffer before the first departure occurring at time \(0 < x < t\), while the second one corresponds to the case of the buffer saturation occurring before time \(t.\) In the last summand the first packet leaves the system after \(t.\) Introducing the double transforms \(\tilde{h}_{n} (s,z)\), defined in (2), and utilizing the following identities:

$$\mathop \sum \limits_{m = 0}^{\infty } z^{m} \mathop \int \limits_{t = 0}^{\infty } e^{ - st} dt\mathop \int \limits_{x = 0}^{t} \lambda e^{ - \lambda x} dx\mathop \int \limits_{y = 0}^{t - x} \frac{{\left( {\lambda y} \right)^{i} }}{i!}e^{ - \lambda y} H_{j} \left( {t - x - y,m} \right)dG\left( y \right) = a_{i} \left( s \right)\tilde{h}_{j} \left( {s,z} \right),$$
(18)

where we define

$$a_{i} \left( s \right)\mathop = \limits^{def} \frac{\lambda }{\lambda + s}\mathop \int \limits_{0}^{\infty } \frac{{\left( {\lambda y} \right)^{i} }}{i!}e^{{ - \left( {\lambda + s} \right)y}} dG\left( y \right),$$
(19)

and

$$\mathop \sum \limits_{m = 0}^{\infty } z^{m} I\left\{ {m = 0} \right\}\mathop \int \limits_{t = 0}^{\infty } e^{ - st} \left[ {\mathop \int \limits_{x = 0}^{t} \lambda e^{ - \lambda x} \bar{G}\left( {t - x} \right)dx + e^{ - \lambda t} } \right]dt = \frac{{\lambda \left[ {1 - g(s)} \right] + s}}{{s\left( {\lambda + s} \right)}}\mathop = \limits^{\text{def}} \beta \left( {s,z} \right) = \beta \left( s \right),$$
(20)

we transform the Eq. (16) to the following one:

$$\tilde{h}_{0} \left( {s,z} \right) = \mathop \sum \limits_{i = 0}^{K - 2} a_{i} \left( s \right)\tilde{h}_{i + 1} \left( {s,z} \right) + \tilde{h}_{K} \left( {s,z} \right)\mathop \sum \limits_{i = K - 1}^{\infty } a_{i} \left( s \right) + \beta \left( s \right).$$
(21)

Putting

$$\alpha_{i} (s,z)\mathop = \limits^{\text{def}} z\mathop \int \limits_{0}^{\infty } e^{{ - \left( {\lambda + s} \right)x}} \frac{{\left( {\lambda x} \right)^{i} }}{i!}dF\left( x \right),$$
(22)

where \({\Re }\left( s \right) > 0\) and \(\left| z \right| < 1,\) we rewrite now (17) in the form

$$\tilde{h}_{n} \left( {s,z} \right) = \mathop \sum \limits_{i = 0}^{K - n - 1} \alpha_{i} (s,z)\tilde{h}_{n + i - 1} \left( {s,z} \right) + \tilde{h}_{K - 1} \left( {s,z} \right)\mathop \sum \limits_{i = K - n}^{\infty } \alpha_{i} \left( {s,z} \right) + \frac{1 - f(s)}{s},$$
(23)

where \(1 \le n \le K.\)

Let us apply to equations of the system (21) and (23) the following substitution:

$$\tilde{d}_{n} \left( {s,z} \right)\mathop = \limits^{\text{def}} \tilde{h}_{K - n} \left( {s,z} \right),0 \le n \le K.$$
(24)

Now we obtain from (23) the following equations:

$$\mathop \sum \limits_{i = - 1}^{n} \alpha_{i + 1} \left( {s,z} \right)\tilde{d}_{n - i} \left( {s,z} \right) - \tilde{d}_{n} \left( {s,z} \right) = \phi_{n} \left( {s,z} \right),$$
(25)

where \(0 \le n \le K - 1\) and functionals \(\phi_{n} \left( {s,z} \right)\) are defined as follows:

$$\phi_{n} \left( {s,z} \right)\mathop = \limits^{\text{def}} \alpha_{n + 1} \left( {s,z} \right)\tilde{d}_{0} \left( {s,z} \right) - \tilde{d}_{1} \left( {s,z} \right)\mathop \sum \limits_{i = n + 1}^{\infty } \alpha_{i} \left( {s,z} \right) - \frac{1 - f\left( s \right)}{s}.$$
(26)

Similarly, introducing (24) into (21), leads to the following representation:

$$\tilde{d}_{K} \left( {s,z} \right) = \mathop \sum \limits_{i = 0}^{K - 2} a_{i} (s)\tilde{d}_{K - i - 1} \left( {s,z} \right) + \tilde{d}_{0} \left( {s,z} \right)\mathop \sum \limits_{i = K - 1}^{\infty } a_{i} \left( s \right) + \beta \left( s \right).$$
(27)

4 Compact-Form Solution for Transforms

In this section, utilizing Lemma 1, we find the solution of the system (25) and (27) in the compact form. Let us note that the system (25) has the same form as (3) with unknowns \(\tilde{d}_{n} \left( {s,z} \right), n \ge 0,\) but with functional coefficients, namely \(\alpha_{i + 1} (s,z\)) and \(\phi_{i} \left( {s,z} \right),\) \(i \ge 0.\) Hence, the solution of (25) can be found by applying (4). Moreover, observe that the number of equations in (25) is finite comparing to (3). This fact can be used to find the value of \(C = C(s,z)\) explicitly, treating the Eq. (27) (written for \(n = K\)) as a specific-type boundary condition.

Thus, for \(0 \le n \le K\) the following formula holds true [compare (4)]:

$$\tilde{d}_{n} \left( {s,z} \right) = C\left( {s,z} \right)R_{n + 1} \left( {s,z} \right) + \mathop \sum \limits_{i = 0}^{n} R_{n - i} (s,z)\phi_{i} \left( {s,z} \right),$$
(28)

where \(n \ge 0,\) and [see (7)]

$$\begin{aligned} R_{0} \left( {{\text{s}},{\text{z}}} \right) & = 0,R_{1} \left( {{\text{s}},{\text{z}}} \right) = \alpha_{0}^{ - 1} \left( {s,z} \right),R_{k + 1} \left( {{\text{s}},{\text{z}}} \right) \\ & = R_{1} \left( {s,z} \right)\left[ {R_{k} \left( {{\text{s}},{\text{z}}} \right) - \mathop \sum \limits_{i = 0}^{k} \alpha_{i + 1} \left( {s,z} \right)R_{k - i} \left( {s,z} \right)} \right],\quad k \ge 1, \\ \end{aligned}$$
(29)

and the functional sequence \(\alpha_{i + 1} \left( {s,z} \right)\) was defined in (22). Substituting \(n = 0\) into (28), we get

$$\tilde{d}_{0} \left( {s,z} \right) = C\left( {s,z} \right)R_{1} \left( {s,z} \right).$$
(30)

Next, taking \(n = 1\) in (28) and applying (26) and (30), we obtain

$$\begin{aligned} \tilde{d}_{1} \left( {s,z} \right) & = C\left( {s,z} \right)R_{2} \left( {s,z} \right) + R_{1} \left( {s,z} \right)\phi_{0} \left( {s,z} \right) \\ & = C\left( {s,z} \right)R_{2} \left( {s,z} \right) + R_{1} \left( {s,z} \right)\left[ {\alpha_{1} \left( {s,z} \right)R_{1} \left( {s,z} \right)C\left( {s,z} \right)} \right. \\ & \quad \left. { - \tilde{d}_{1} \left( {s,z} \right)\mathop \sum \limits_{i = 1}^{\infty } \alpha_{\text{i}} \left( {s,z} \right) - \frac{1 - f\left( s \right)}{s}} \right] \\ \end{aligned}$$
(31)

and hence

$$\tilde{d}_{1} \left( {s,z} \right) = \theta \left( {s,z} \right)\left[ {C\left( {s,z} \right)\left( {R_{2} \left( {s,z} \right) + \alpha_{1} \left( {s,z} \right)R_{1}^{2} \left( {s,z} \right)} \right) - R_{1} \left( {s,z} \right)\frac{1 - f\left( s \right)}{s}} \right],$$
(32)

where

$$\theta \left( {s,z} \right) = \theta \left( s \right)\mathop = \limits^{\text{def}} \left[ {1 + R_{1} \left( {s,z} \right)\mathop \sum \limits_{i = 1}^{\infty } \alpha_{\text{i}} \left( {s,z} \right)} \right]^{ - 1} = \frac{{f\left( {\lambda + s} \right)}}{f\left( s \right)}.$$
(33)

From representations (30)–(33) follows that \(\phi_{i} \left( {s,z} \right)\) [defined in (26)] for any fixed \(i \ge 0\) can be written as a function of \(C\left( {s,z} \right),\) which is the only unknown functional. To find the formula for \(C(s,z)\), let us, firstly, write (27), applying on the right side of identities (26), (28), (30) and (32), and utilizing the fact that

$$\mathop \sum \limits_{i = 0}^{K - 2} a_{i} \left( s \right)\tilde{d}_{K - i - 1} \left( {s,z} \right) = \mathop \sum \limits_{i = 1}^{K - 1} a_{K - i - 1} (s)\tilde{d}_{i} \left( {s,z} \right).$$
(34)

We obtain

$$\begin{aligned} \tilde{d}_{K} \left( {s,z} \right) & = \mathop \sum \limits_{i = 1}^{K - 1} a_{K - i - 1} \left( s \right)\left[ {C\left( {s,z} \right)R_{i + 1} \left( {s,z} \right) + \mathop \sum \limits_{j = 0}^{i} R_{i - j} (s,z)\phi_{j} \left( {s,z} \right)} \right] \\ & \quad + C\left( {s,z} \right)R_{1} \left( {s,z} \right)\mathop \sum \limits_{i = K - 1}^{\infty } a_{i} \left( s \right) + \beta \left( s \right) \\ & = \mathop \sum \limits_{i = 1}^{K - 1} a_{K - i - 1} \left( s \right)\left[ {C\left( {s,z} \right)R_{i + 1} \left( {s,z} \right)} \right. \\ & \quad \left. { + \mathop \sum \limits_{j = 0}^{i} R_{i - j} \left( {s,z} \right)\left( {\alpha_{j + 1} \left( {s,z} \right)\tilde{d}_{0} \left( {s,z} \right) - \tilde{d}_{1} \left( {s,z} \right)\mathop \sum \limits_{r = j + 1}^{\infty } \alpha_{r} \left( {s,z} \right) - \frac{1 - f\left( s \right)}{s}} \right)} \right] \\ & \quad + C\left( {s,z} \right)R_{1} \left( {s,z} \right) =\Psi _{1} \left( {s,z} \right)C\left( {s,z} \right) + \chi_{1} \left( {s,z} \right), \\ \end{aligned}$$
(35)

where we denote

$$\begin{aligned}\Psi _{1} \left( {s,z} \right) & \mathop = \limits^{\text{def}} \mathop \sum \limits_{i = 1}^{K - 1} a_{K - i - 1} \left( s \right)\left[ {R_{i + 1} \left( {s,z} \right) + \mathop \sum \limits_{j = 0}^{i} R_{i - j} \left( {s,z} \right)\left( {R_{1} \left( {s,z} \right)\alpha_{j + 1} \left( {s,z} \right)} \right.} \right. \\ & \quad \left. {\left. { - \theta \left( s \right)\left( {R_{2} \left( {s,z} \right) + \alpha_{1} \left( {s,z} \right)R_{1}^{2} \left( {s,z} \right)} \right)\mathop \sum \limits_{r = j + 1}^{\infty } \alpha_{r} \left( {s,z} \right)} \right)} \right] + R_{1} \left( {s,z} \right)\mathop \sum \limits_{i = K - 1}^{\infty } a_{i} \left( s \right) \\ \end{aligned}$$
(36)

and

$$\chi_{1} \left( {s,z} \right)\mathop = \limits^{\text{def}} \mathop \sum \limits_{i = 1}^{K - 1} a_{K - i - 1} \left( s \right)\mathop \sum \limits_{j = 0}^{i} R_{i - j} \left( {s,z} \right)\left[ {R_{1} \left( {s,z} \right)\frac{1 - f\left( s \right)}{s}\theta \left( s \right)\mathop \sum \limits_{r = j + 1}^{\infty } \alpha_{r} \left( {s,z} \right) - \frac{1 - f\left( s \right)}{s}} \right] + \beta \left( s \right).$$
(37)

Now let us substitute \(n = K\) in (28) and utilize representations (26), (30) and (32). We obtain

$$\begin{aligned} \tilde{d}_{K} \left( {s,z} \right) & = C\left( {s,z} \right)R_{K + 1} \left( {s,z} \right) \\ & \quad + \mathop \sum \limits_{i = 0}^{K} R_{K - i} \left( {s,z} \right)\left\{ {\alpha_{i + 1} \left( {s,z} \right)R_{1} \left( {s,z} \right)C\left( {s,z} \right)} \right. \\ & \quad \left. { - \theta (s)\left[ {C\left( {s,z} \right)\left( {R_{2} \left( {s,z} \right) + \alpha_{1} \left( {s,z} \right)R_{1}^{2} \left( {s,z} \right)} \right) - R_{1} \left( {s,z} \right)\frac{1 - f\left( s \right)}{s}} \right]\mathop \sum \limits_{j = i + 1}^{\infty } \alpha_{j} \left( {s,z} \right) - \frac{1 - f\left( s \right)}{s}} \right\} \\ & =\Psi _{2} \left( {s,z} \right)C\left( {s,z} \right) + \chi_{2} \left( {s,z} \right), \\ \end{aligned}$$
(38)

where

$$\begin{aligned}\Psi _{2} \left( {s,z} \right) & \mathop = \limits^{\text{def}} R_{K + 1} \left( {s,z} \right) \\ & \quad + \mathop \sum \limits_{i = 0}^{K} R_{K - i} \left( {s,z} \right)\left[ {\alpha_{i + 1} \left( {s,z} \right)R_{1} \left( {s,z} \right) - \theta \left( s \right)\left( {R_{2} \left( {s,z} \right) + \alpha_{1} \left( {s,z} \right)R_{1}^{2} \left( {s,z} \right)} \right)\mathop \sum \limits_{j = i + 1}^{\infty } \alpha_{j} \left( {s,z} \right)} \right] \\ \end{aligned}$$
(39)

and

$$\chi_{2} \left( {s,z} \right)\mathop = \limits^{\text{def}} \mathop \sum \limits_{i = 0}^{K} R_{K - i} \left( {s,z} \right)\left( {\theta \left( s \right)R_{1} \left( {s,z} \right)\frac{1 - f\left( s \right)}{s}\mathop \sum \limits_{j = i + 1}^{\infty } \alpha_{j} \left( {s,z} \right) - \frac{1 - f\left( s \right)}{s}} \right).$$
(40)

From (35) and (38) follows immediately

$$C\left( {s,z} \right) = \left[ {\Psi _{1} \left( {s,z} \right) -\Psi _{2} \left( {s,z} \right)} \right]^{ - 1} \left[ {\chi_{2} \left( {s,z} \right) - \chi_{1} \left( {s,z} \right)} \right].$$
(41)

Now the representations (24), (26), (28) and (41) lead to the following main theorem:

Theorem 1

The representation for the PGF of the LT of the conditional departure process in the M/G/1/K-type model with generally distributed server setup times is following:

$$\begin{aligned} \tilde{h}_{n} \left( {s,z} \right) & = \mathop \sum \limits_{m = 0}^{\infty } z^{m} \mathop \int \limits_{0}^{\infty } e^{ - st} \varvec{P}\left\{ {h\left( t \right) = m |X\left( 0 \right) = n} \right\}dt \\ & = \left[ {\Psi _{1} \left( {s,z} \right) -\Psi _{2} \left( {s,z} \right)} \right]^{ - 1} \left[ {\chi_{2} \left( {s,z} \right) - \chi_{1} \left( {s,z} \right)} \right]\left\{ {R_{K - n + 1} \left( {s,z} \right)} \right. \\ & \left. { \quad + \mathop \sum \limits_{i = 0}^{K - n} R_{K - n - i} \left( {s,z} \right)\left[ {\alpha_{i + 1} \left( {s,z} \right)R_{1} \left( {s,z} \right) - \theta (s)\left( {R_{2} \left( {s,z} \right) + \alpha_{1} \left( {s,z} \right)R_{1}^{2} \left( {s,z} \right)} \right)\mathop \sum \limits_{j = i + 1}^{\infty } \alpha_{j} \left( {s,z} \right)} \right]} \right\} \\ & \quad + \mathop \sum \limits_{i = 0}^{K - n} R_{K - n - i} (s,z)\left( {\theta \left( s \right)R_{1} \left( {s,z} \right)\frac{1 - f\left( s \right)}{s}\mathop \sum \limits_{j = i + 1}^{\infty } \alpha_{j} \left( {s,z} \right) - \frac{1 - f\left( s \right)}{s}} \right), \\ \end{aligned}$$
(42)

where the formulae for \(\alpha_{i} \left( {s,z} \right), R_{i} \left( {s,z} \right), \theta \left( s \right),\Psi _{1} \left( {s,z} \right), \chi_{1} \left( {s,z} \right),\Psi _{2} \left( {s,z} \right)\) and \(\chi_{1} \left( {s,z} \right)\) are given in (22), (29), (33), (36), (37), (39) and (40), respectively.

Remark 1

Let us note that from (42) the formula for the conditional mean number \(\varvec{E}_{n} h(t)\) of packets completely processed until the fixed time epoch \(t\) (where \(0 \le n \le K\)) can be found. Namely, we have

$$\varvec{E}_{n} h\left( t \right) = \frac{\partial }{\partial z}\left[ {{\mathcal{L}}^{ - 1} \left( {\tilde{h}_{n} \left( {s,z} \right)} \right)} \right]_{z = 1} ,$$
(43)

where the notation \({\mathcal{L}}^{ - 1} \left[ \cdot \right]\) stands for the inverse Laplace transform.

5 Numerical Results

Let us consider the stream of packets of average sizes 100 B, arriving into the node of a wireless sensor network according to a Poisson process. Consider three different arrival intensities 300, 400 and 500 Kb/s, which give \(\lambda = 375, \lambda = 500\) and \(\lambda = 625\) packets per second, respectively. Moreover, let us assume that a radio transmitter/receiver of the node is switched off during an idle period and needs an exponentially distributed setup time with mean 4 ms to become ready for processing. Besides, let packets are being transmitted with speed 500 Kb/s according to 2-Erlang service distribution, that gives the mean processing time 1.6 ms (hence the parameter of the 2-Erlang service distribution is \(\mu = 1250\)). Under the assumptions about arrival and serving rates, the utilization factor \(\rho\) of the system equals to 0.6, 0.8 and 1.0, respectively. Mean number \(\varvec{E}_{n} h(t)\) of packets completely processed until the fixed time epoch \(t\) can be found from (43). Moreover, we can estimate the transient loss ratio function as \(LR_{n} \left( t \right) \approx 1 - \frac{{\varvec{E}_{n} h\left( t \right)}}{\lambda t},\) where \(\lambda t\) is mean number of packets in the arrival stream up to the time \(t.\) Transient evolutions of the mean number \(\varvec{E}_{0} h\left( t \right)\) of completely processed packets and the estimations of the loss ratio \(LR_{0} \left( t \right)\) for given values of system parameters are presented in Figs. 1 and 2, respectively.

Fig. 1
figure 1

Transient mean number \(\varvec{E}_{0} h\left( t \right)\) of completely processed packets for \(\rho\) = 0.6, 0.8 and 1.0

Fig. 2
figure 2

Estimation of transient loss ratio \(LR_{0} \left( t \right)\) for \(\rho\) = 0.6, 0.8 and 1.0