Abstract

This paper examines a new ND policy in the discrete-time Geo/G/1 queue. Under this ND policy, the idle server restarts its service when the N and D policies are simultaneously satisfied. By two classifications of the customers, the probability-generating function and the probabilistic analysis, the steady-state queue size distributions at a departure time and an arbitrary time are studied. Finally, the theoretical results are applied to the power-saving problem of a wireless sensor network. To improve model universality and numerical slowness, some computation designs are carried out. Under the N, D, and two ND policies, the numerical experiments are presented to obtain the optimal policy thresholds and the corresponding minimum power consumptions are compared.

1. Introduction

In this work, we introduce a new ND policy in the discrete-time Geo/G/1 queue, obtain the steady-state queue size distribution, and conduct some computation designs in the minimum power consumption of a wireless sensor network. Under the new ND policy (called the ND policy 1), when the number of the customers in the queueing system reaches at least and, at the same time, the sum of the service time periods of all waiting customers is greater than a given nonnegative integer , the idle server begins to offer its service for the waiting customers.

Recently, for the ND-policy discrete-time Geo/G/1 queue, Gu et al. [1] and Lan and Tang [2] obtained the steady-state queue size distribution at an arbitrary time and its stochastic decomposition. In the above two published papers, since the service time periods of the customers who arrive during the server idle period are assumed to be independent of each other, the genuine D-policy is not actually implemented. For this flaw in [1, 2], Liu et al. [3] revisited the ND policy considered in [1, 2] (called the ND policy 2) in the discrete-time Geo/G/1 queue, obtained the main queueing measures, and applied the theoretical results to the power-saving optimization of a wireless sensor node. Under the ND policy 2, either of the N and D policies is first satisfied and then the service will restart. In this case, frequent setup may cause a high setup power consumption. Hence, the ND policy 2 may be ineffective when the setup power consumption is much larger than the holding power consumption of the data packet (customer) in a busy cycle. If we adopt the ND policy 1 presented by this work, which begins service when the N and D policies are satisfied at the same time, then a lower setup power consumption can be caused. The reason is that relative to the ND policy 2 in [3], the ND policy 1 can decrease the setup number of the radio server. Thus, for a high setup power consumption, the ND policy 1 will consume less power than the ND policy 2 in [3]. This motivates us to study the queue size distribution of the discrete-time queue with the ND policy 1 for the power-saving optimization of a wireless sense node.

It should be noted that this work and Liu et al. [3] are two different research studies. Above all, from the definitions of two ND policies mentioned above, the ND policies considered in both research studies are different. Next, in both research studies, the expression and the concrete analysis of the same queueing measure are different. It is seen from this work and [3] that our discussion and mathematical derivation are more difficult and complex than those in [3]. Finally, in both research studies, the computation designs and the optimization comparison in the power-saving control of a sensor node are different. Numerically, the study in [3] only used the geometrically distributed transmission time to compare the superiority of the optimal N policy, D policy, and ND policy 2, while our comparison utilized arbitrary probability distributions and presented an optimization procedure for the optimal ND policy.

The contributions of this paper are threefold. First, this study provides a new ND policy in the Geo/G/1 queue. Furthermore, our theoretical results agree with those in the existing N policy and genuine D policy queues (see Remark 1), which shows our work has studied the genuine D policy. Second, as far as known to the author, for the existing papers on the discrete-time queues with the N policy and genuine D policy, the queue size distribution obtained in this work is new. It is useful and important when a power consumption function is constructed to analyze the optimal ND policy at a minimum power value. Third, this research conducts some computation designs for arbitrarily distributed transmission time periods, presents a concrete optimization procedure, and numerically compares the minimum power consumption of a wireless sensor node based on the optimal N policy, D policy, ND policy 1, and ND policy 2. It is easy and practical for the network practitioners to understand and use these results.

Common methods in the queueing models include the imbedded Markov chain [4], the supplementary variable [5], the theory of matrix-geometric solution [6, 7], and the probability decomposition [1, 2]. These approaches are used to analyze the queue size distribution based on the assumption of independent and identically distributed (i.i.d.) service time periods. However, in the discrete-time queues involving the D policy, the service time periods of the customers who arrive during the idle period are not independent while the service time periods of the customers who arrive during the busy period are independent (see Section 3). This property of the service time periods makes the stochastic decomposition of the steady-state queue size [8] not hold. Therefore, the above approaches become too complicated to be solved especially when they are used to deal with the queue size distribution of the D policy queues. As far as known to the author, no papers with the D-policy queues were found by means of the above methods. Lately, Gu et al. [1] and Lan and Tang [2] applied a probability decomposition method to obtain the queue size distributions in the discrete-time Geo/G/1 queues with the ND policy 2. But, they avoided the dependence of the service time periods of the customers who arrive during the idle period, and the D policy they considered was not a genuine D policy, which was pointed out by Liu et al. [3, 9].

Our analysis method is based on the difference of the service time periods of the customers arriving during the idle and busy periods. By two classifications of the customers, the probability-generating function and the probabilistic analysis, the steady-state queue size distributions at a departure time and an arbitrary time are studied, which cannot usually be obtained by the common methods mentioned above. The results for two special cases (see Remark 1) and numerical experiments show that our analysis method is effective and available for the complex discrete-time queues involving the genuine D policy and this method operates in the continuous situation as well.

The rest of this paper is organized as follows: Section 2 presents the model description and some notations. In Sections 3 and 4, based on some preliminaries, we analyze the queue size distribution. In the energy-saving problem of a wireless sensor network, Section 5 conducts some computation designs and then numerically compares the superiority of the optimal N, D, and two ND policies at a minimum power consumption. Conclusions are drawn in Section 6.

2. Model Description and Some Notations

The model discussed in this paper is under the LAS-DA (late arrival system with delayed access) setup [10]. That is to say, a potential arrival can only take place in , and a potential departure can only occur in , where represents the instant immediately before and represents the instant immediately after . We do not permit a departure at such a time point for a customer who has just arrived at the instant previously to an empty system. The various time epochs involved in our model can be viewed through a self-explanatory figure (see Figure 1). The detailed description of the model is given as follows:(1)The interarrival time periods of customers, denoted by , are independent and geometrically distributed with probability mass function (PMF) , and probability-generating function (PGF) .(2)The service time periods, , are independent and identically distributed (i.i.d.) with PMF and PGF . The mean service time and the second moment are finite. The customers are served based on their arriving order. The server can serve only one customer at a time. A customer that arrives and finds the server busy must wait in the queue until the server is available. All the customers arriving at the system are assumed to be eventually served, i.e., the traffic intensity .(3)The idle server resumes its service if the following two conditions are simultaneously met (ND policy 1): (i) at least customers accumulate in the system and (ii) the service time backlog (i.e., the sum of the service times) of all waiting customers exceeds a given nonnegative integer .

When , the ND policy 1 becomes the pure D policy, and when , we always get the pure N policy. Hence, we discuss the case of so that the N policy and D policy both control the startup of the server. We use some notations as follows:: the PGF of random variable : the mean of random variable : : the complementary value for an arbitrary real number , if : the sum is equal to zero if the subscript exceeds the superscript : the distribution function of the k-fold convolution of service time with itself : the probability mass function (PMF) of the k-fold convolution of service time with itself : the probability that the threshold value D is first exceeded by the service time of the th customer: the number of the customers at the start of a busy period: the service time backlog of all waiting customers at the start of a busy period

3. Preliminaries

For convenience of analysis, we define the idle period, denoted by , as the time length that starts when the system becomes empty and terminates when the idle server starts to serve customers. The busy period, denoted by , represents the time length which starts when the idle period completes and ends when the system is empty. The sum of the busy period and the next idle period is defined as the busy cycle, denoted by .

In the model description, although the service time periods in the idle and busy periods are assumed to be i.i.d., the D policy determines that the service time periods of the customers who arrive during the idle period, , are conditionally dependent. In fact, when , we have , and when , we get . Here, two inequations show the above conditional dependence. This makes the queue size distribution not be derived by the stochastic decomposition of the queue size [8], and the analysis is difficult by the common methods.

To get the queue size distribution, we denote the customer who arrives during the idle period as IC and express the customer who arrives during the busy period as BC. Through this classification, we will derive the PGF and mean of the queue size distribution. Above all, we study the queue size and service time backlog at the start of a busy period and the idle and busy periods.

3.1. The Queue Size at the Start of a Busy Period

At the start of a busy period, we have customers if and only if the D is exceeded by the th customer and this occurs with probability (see the notations in Section 2). The busy period starts with N customers if and only if the sum of the service time periods of these customers is larger than or equal to . Thus, the PMF and PGF of are, respectively, given by

From (2), the first and second moments of are, respectively, obtained as

3.2. The Service Time Backlog at the Start of a Busy Period

The service time backlog is at the start of a busy period if and only if the sum of the service time periods of the N customers is equal to , or the sum of the service time periods of the first customers is , and the D is exceeded by the next customer. Summing for all possible and yields the PMF of aswhich gives the PGF of aswhere the second term of right hand side (RHS) in (6) can be expressed as

Putting (7) into (6) yields

Now, using (8), we get the first and second moments of as

3.3. The Idle Period

Under the ND policy 1, if , then the idle period with probability . If , then the idle period with probability . Thus, we easily get the PGF and mean of the idle period as follows:where stands for the PGF of interarrival time periods .

3.4. The Busy Period and Busy Cycle

Define as the departure point queue size of the last departing IC during the busy period (excluding this departing IC) and as the remaining busy period initiating with customers during the busy period. Then, the busy period is written as

Denote , as i.i.d. random variables and represent the busy period initiating with a customer in the classical Geo/G/1 queue with the PGF and mean . Then, according to the Galton–Watson branching process approach [11] (an effective method to analyze the busy period when the service time periods of the customers are independent random variables), the remaining busy period can be decomposed as .

Thus, from the conditional mean,

We have the busy period PGF aswhich leads to the mean busy period

Using (12) and (16), we get the mean busy cycle as

From (12), (16), and (17), the server is idle with probability and busy with probability .

4. The Steady-State Queue Size at an Arbitrary Time

In our discrete-time ND policy Geo/G/1 queue with LAS-DA, the steady-state queue size PGF at an arrival time is equal to the queue size PGF at a departure time. By the BASTA (Bernoulli arrivals see time averages) property, is equal to the queue size PGF at an arbitrary time . Hence, we have

Let and represent the probabilities that an arbitrary customer is an IC and a BC, respectively; then and .

Denote () as the steady-state queue size PGF at the departure time of an arbitrary IC (BC); then, conditioning on the customer type, we get

Hence, as long as we obtain the steady-state queue size PGFs and at the departure time, the steady-state queue size PGF at an arbitrary time is also derived.

4.1. Steady-State Queue Size at the Departure Time of an Arbitrary BC

Define as the departure time of the last IC during the busy period and as the queue size just after . Then, is the number of BCs arriving during . Therefore, the PGF and mean of are, respectively, obtained as

Since the queue size process during the busy period after can be considered as that during the busy period of the Geo/G/1 queue which starts with BCs, from the decomposition property of the Geo/G/1 queue with generalized vacations (see Takagi [12]), we havewhere is the queue size PGF of the classic Geo/G/1 queue and is the PGF of the backward recurrence time of the discrete-time renewal process generated by i.i.d. ’s.

4.2. Steady-State Queue Size at the Departure Time of an Arbitrary IC

Under the steady-state condition, the queue size at the departure time of an arbitrary IC depends on whether this IC is the last customer arriving during the idle period.Case (a). If an arbitrary IC is the last customer arriving during the idle period (with probability ), then at the departure time, the queue size left behind by this IC is exactly equal to the number of BCs that arrive during . Hence, the queue size PGF at the departure time of this IC isCase (b). If an arbitrary IC is not the last customer arriving during the idle period, we consider the case that this IC is the th customer arriving during the idle period and the service time backlog including itself is , with probability , where or or . In this case, at the departure time, the queue size left behind by this IC is the sum of the following two quantities:(1)The number of the BCs arriving during .(2)The number of the ICs arriving during the remaining idle period after this IC’s arrival, which is exactly equal to one of the following three quantities:(i) The number of customers at the start of a busy period under the policy 1 if (ii) The number of customers at the start of a busy period under the policy if (iii) The number of customers at the start of a busy period under the policy if

Hence, the queue size PGF at the departure time of this IC becomeswhere , and .

Using (22) and (23), we get the probability-generating function (PGF) of the steady-state queue size at the departure time of an arbitrary IC aswhere , , and are given in (23).

4.3. Steady-State Queue Size at an Arbitrary Time

After substituting (21) and (24) into (19), we get the PGF of the steady-state queue size at an arbitrary time aswhere , , and are given in (23).

4.4. Mean Queue Size

It follows from (19) that the mean steady-state queue size at an arbitrary time iswhere and are the mean steady-state queue sizes at the departure time of the IC and the BC, respectively.

From (21), (9), (10), and (3), it is easy to obtain

Similarly, using (24) and (3) and noting that , we have

In (28), using (see the notations in Section 2), we have

Thus, after utilizing (29)–(31) in (28), we get

Also, it is easy to find that

Finally, by substituting (27), (32), and (3) into (26) and using (33), we obtain the mean steady-state queue size at an arbitrary time as

Remark 1. (two special cases). In (34), we have the following cases:(1)When , noting that (see the notation in Section 2) andwe get the mean queue size of the N policy Geo/G/1 queue aswhich agrees with the result in Corollary 2 of [13].(2)When , noting that (see the notation in Section 2), we get the mean queue size of the D policy Geo/G/1 queue aswhich is identical to the result by Liu et al. [3] (setting in equation (34) of [3]).

5. Computation Designs in the Optimal Power Control of a WSN

Consider a wireless sensor network (WSN) [14] used in the battlefield conditions for a military purpose, which is responsible for the intelligence on enemy troop movements, damage, casualties, and so on. This WSN is comprised of a sink node and a number of sensor nodes, in which the sensor nodes behave as both data packets originator and packets router and finally send packets to a sink node for further handling. The sensor nodes are installed with some energy-limited batteries, a radio server, and a sensing unit. Because these sensor nodes are employed in the secret or hostile places, it is usually impossible to recharge or replace their batteries. Therefore, it is very important for the long lifetime of a WSN to achieve a good power-saving scheme.

This kind of WSN can be modelled as the discrete-time threshold policy queues because its protocols are operated according to a unit of slot, the transmission time of each packet is a random variable, and the power consumption can be rationally controlled by the threshold policy queues [3, 14, 15]. Here, our aim is to numerically compare the optimal power-saving policy that minimizes the power consumption under the N, D, and two ND policies.

For this purpose, we denote the following: the mean time length that the radio server is busy handling data packets the mean time length that the radio server is idle the mean time length that the radio server is during a busy cycle, which is the sum of and the mean number of data packets in the steady state

In addition, we consider the following power consumption elements and average power consumption functions, whose definitions are identical to those by Jiang et al. [15]: setup power consumption per busy cycle holding power consumption per unit time for each data packet power consumption of the busy radio server per unit time power consumption of the idle radio server per unit time

Under the ND policy 1, the average power consumption per unit time is

Remark 2. In (38), , , and are given by (12), (16), and (17), respectively, and is presented by (34). Also, in Section 5, denotes the probability that the sum of the transmission time periods of data packets is equal to and is the probability that the sum of the transmission time periods of data packets does not exceed .
Under the ND policy 2, the average power consumption per unit time (see equation (66) in [3]) isUnder the pure N and D policies, the average power consumptions per unit time, denoted by and , respectively, can be expressed as and .

5.1. Rewriting for the Mean Queue Size

In order to accelerate numerical operation speed and avoid numerical errors, we rewrite the mean queue size in (34) as the expression that does not involve the series.

In (34), noting that and if (see the notations in Section 2), we get

Then, the mean queue size in (34) is rewritten as follows:

Correspondingly, the average power consumption function in (38) becomes

Remark 3. Relative to (38), equation (42) is an expression that does not involve the series. It can avoid numerical errors and greatly accelerate the computation speed. Therefore, for all numerical computations in Section 5, equation (38) is replaced by equation (42).

5.2. Expressions on and for an Arbitrarily Distributed Transmission Time

Since all numerical experiments in [3] were conducted only for the geometrically distributed transmission time, the conclusion obtained is very inadequate. It is important for the network designers and practitioners to carry out numerical illustrations and comparisons in the case of an arbitrarily distributed transmission time. For this purpose, we have to find the expressions of and in (39) and (42) for an arbitrarily distributed transmission time.

From the notations in Section 2, we know that

Hence, it is difficult for an arbitrarily distributed transmission time to compute the values of and . This is due to the computational difficulties in the convolution summation of the discrete-time distribution.

If the transmission/service time periods follow a common geometrical distribution, , then it is easy to find that , and .

For an arbitrary discrete distribution of i.i.d. transmission time periods , it seems difficult to compute and . However, from the results by Alfa [16] and Latouche and Ramaswami [17], we can also find an effective method to compute the values of and . As three lemmas, we give the following results.

Lemma 1 (see Theorem 2.1 in Alfa [16]). If the probability distribution of the discrete random variable is , then follows a discrete -dimensional phase-type distribution with parameterswhere denotes an identity matrix of dimension and and are row and column vectors of ones of dimensions , respectively.

Lemma 2 (see Alfa [16]). Suppose that random variables and are independent, obeys a discrete -dimensional phase-type distribution , and follows a discrete -dimensional phase-type distribution ; then, obeys a discrete -dimensional phase-type distribution with parameterswhere denotes the probability that locates the absorbing state at the initial time and is a column vector of ones of dimension .

Remark 4. Our aim is to find the phase-type distribution of the sum of i.i.d. transmission time periods with an arbitrary discrete distribution. Since it is impossible that the transmission time locates the absorbing state at the initial time, the initial probability of transmission time is taken as zero in the following numerical experiments.

Lemma 3 (see Theorem 2.5.3 by Latouche and Ramaswami [17]). Suppose that the random variable obeys a discrete phase-type distribution ; then, the probability distribution of iswhere is a column vector of ones.

In what follows, we use the three lemmas mentioned above to derive two computation expressions on and . To make our method easy to understand, we assume that the i.i.d. transmission time periods , have an arbitrary discrete distribution as . Then, three steps for computing and are presented as follows:Step I. According to Lemma 1, the transmission time follows a discrete phase-type distribution with parametersStep II. According to Lemma 2, follows a discrete phase-type distribution with parametersSimilarly, from Lemma 2, , and , we know that also obeys a discrete phase-type distribution with parametersBy induction, follows a discrete phase-type distribution with parameters ,Step III. By Lemma 3, and are given as follows:

Similarly, for other i.i.d. transmission time periods , with an arbitrary discrete distribution, the corresponding expressions of and can also be derived by the three lemmas mentioned above.

In finding the optimal policy threshold of , it is not easy to analytically prove that the functions and are convex or unimodal because they are not linear and very complicated. Therefore, we will numerically determine the optimal threshold of . According to the optimization theory of the dynamic programme (for details, see [18]), we can develop an effective procedure to numerically get the optimal threshold of . In fact, for a given positive integer , the optimal value of the threshold , so as to minimize , is given by

That is, is the first nonnegative integer D that makes the inequality hold. Thus, a numerical procedure to find the optimal threshold of , so as to minimize , can be presented as follows:Step 1. For a given distribution of the i.i.d. transmission time periods , derive the expressions of and by Lemmas 13 and Steps I, II, and III.Step 2. Set . Compute and by using (39), (42), and (52), respectively.Step 3. Set . Compute and by using (39), (42), and (52), respectively.Step 4. When , stop. The optimal threshold of , so as to minimize , is . Or else, go to Step 2.

Remark 5. Let and denote the optimal policy thresholds of the power consumption functions and ; then, and are, respectively, determined by

5.3. A Numerical Example

A numerical example is presented to illustrate how the designer or practitioner of a wireless sensor network can use the above results to make decisions regarding the optimal policy that minimizes the average power consumption. We assume the following:(i)The data packets arrive according to a Bernoulli process at a rate (ii)The transmission time obeys an arbitrary discrete-time distribution: (iii), , , and

Through a MATLAB code based on the results and procedure in Section 5.2, the average power consumption is shown in Figure 2 for the Geo/G/1 queue with the ND policy 1 and varying values of N and D. Under the ND policy 1, a minimum power consumption per unit time of 353.3288 is achieved at and . The average power consumption is shown in Figure 3 for the Geo/G/1 queue with the ND policy 2 and varying values of N and D. Under the ND policy 2, a minimum power consumption per unit time of 353.3232 is achieved at and .

5.4. Numerical Comparison of the Optimal Power-Saving Policies

To illustrate the power-saving effectiveness and superiority of the N, D, and two ND policies, a comparison on the minimum power consumptions is numerically conducted in the following two cases:Case 1: we select the power consumption elements as , , , and , fix , and vary the thresholds N and D.Case 2: we select , , and , fix , , , , and , and vary the thresholds N and D.

Also, the arrival of data packets is generated according to a Bernoulli process. Three transmission time distributions with the same mean are used. They are one geometric distribution and two arbitrary distributions:(i)Geometric: (ii)Arbitrary: (iii)Arbitrary:

In the above two cases, the optimal policies and their minimum power consumptions for , , , and are reported in Tables 1 and 2.

From Tables 1 and 2, we see the following: (1) Under a same value of (or ) and an identical policy, four transmission time distributions with the same mean of 3 but different coefficient of variations have minor differences in the minimum power consumption. (2) Under the same value of (or ) and an identical transmission time distribution, two ND policies have less or equal power consumption by comparison with the N and D policies. Thus, two ND policies are superior to the N and D policies in decreasing the power consumption of a wireless sensor node. That is to say, two ND policies are more effective than the N and D policies in the power-saving problem of a WSN. (3) Under the same value of (or ) and an identical transmission time distribution, the power consumed by the ND policy 1 is larger, less than, or equal to that consumed by the ND policy 2 and vice versa (see Tables 1 and 2). This means that the superiority of two ND policies is uncertain and dependent on the traffic intensity, the power consumption elements and , and the transmission time distribution. Therefore, in the power-saving design of a wireless sensor network, two ND policies should be adopted to control the sleep/wake-up mode of the radio server according to the concrete network parameter setting, such as the traffic intensity, the transmission time distribution, and the power consumption elements and .

It is expected that the data results in Tables 1 and 2 are useful and helpful for the network designers and practitioners in the military and other related fields.

6. Conclusion

This paper studies the queue size distribution for the discrete-time Geo/G/1 queue with a new ND policy and its computation designs in the power-saving optimization of a wireless sensor node. Numerically, we illustrate the optimal policy thresholds and the minimum power consumptions under the N, D, and two ND policies. The numerical comparison illustrates that two ND policies are superior over the N and D policies from the viewpoint of the minimum power consumption. The superiority of two ND policies is dependent on the concrete network parameter setting. These results may be useful for the network practitioners in the related fields. In the future, the discrete-time queues involving the D policy and their applications will be our further works.

Data Availability

All the data used in this paper are directly included within the tables of this paper.

Conflicts of Interest

The author declares no conflicts of interest.

Acknowledgments

This work was supported by the Scientific Research Foundation for Chongqing Technology and Business University (1952036).