Abstract

Sensing is a fundamental aspect in cognitive radio networks and one of the most complex issues. In the design of sensing strategies, a number of tradeoffs arise between throughput, interference to primary users, and energy consumption. This paper provides several Markovian models that enable the analysis and evaluation of sensing strategies under a broad range of conditions. The occupation of a channel by primary users is modeled as alternating idle and busy intervals, which are represented by a Markov phase renewal process. The behavior of secondary users is represented mainly through the duration of transmissions, sensing periods, and idle intervals between consecutive sensing periods. These durations are modeled by phase-type distributions, which endow the model with a high degree of generality. Unlike our previous work, here the source of secondary users is nonsaturated, which is a more practical assumption. The arrival of secondary users is modeled by the versatile Markovian arrival process, and models for both finite and infinite queues are built. Furthermore, the proposed models also incorporate a quite general representation of the resumption policy of an SU transmission after being interrupted by PUs activity. A comprehensive analysis of the proposed models is carried out to derive several key performance indicators in cognitive radio networks. Finally, some numerical results are presented to show that, despite the generality and versatility of the proposed models, their numerical evaluation is perfectly feasible.

1. Introduction

The evolution and widespread deployment of wireless communications have generated an incessant and increasing demand for radio spectrum. This, combined with the static spectrum allocation policies that have been in place for quite some time, has led to a situation of spectrum scarcity (i.e., of unassigned frequency bands), at the same time, an important underutilization of a substantial part of the assigned bands.

Cognitive Radio (CR) is viewed as the enabling technology for dynamic spectrum access, which would allow solving the seeming paradox between spectrum scarcity and underutilization [1]. The basic idea of CR is to allow the unlicensed users, known as secondary users (SUs), to access licensed channels opportunistically when they are not in use by licensed users, known as primary users (PUs). This way, the interference that SUs produce to PUs should be kept to a minimum.

In this context, white space refers to spectrum that is not used by the PUs during a certain time interval at a specific location. The key to success for CR consists of effectively and efficiently sensing radio channels to detect white space when it occurs. An ideal, although unrealizable, sensing strategy would detect a portion of white space right after it starts and, likewise, would detect the end of it immediately after the transmission of a PU begins. Furthermore, such an ideal sensing strategy would only consume the minimum amount of energy needed for sensing. There has been a considerable long list of research papers over the years dealing with how to manage and implement CR. For details see [2] and other references therein.

As noted in [3], sensing is a major and challenging issue in CR networks. The choice of detection parameters poses a series of tradeoffs between achievable throughput, energy consumption, and interference caused PUs [413]. In general, if SUs spend more time on channel sensing, they obtain lower throughput, but the interference caused to PUs is also lowered. This is referred to as the sensing-throughput tradeoff (STT), which has been studied in a large number of papers (e.g., [4, 5, 9] and references therein). Furthermore, more channel sensing also raises the consumption of energy, which constitutes a critical aspect in certain scenarios (e.g., sensor networks). Consequently, a significant number of studies have considered energy efficiency a crucial part of spectrum sensing [7, 8, 1013].

Several aspects come into play while considering sensing. Some examples are the duration of sensing periods, the width of the frequency band being scanned to search for unused channels, etc. For details see [2]. The vast majority of the models developed for studying CR networks, and specifically for spectrum sensing, assume that busy and idle times follow an exponential distribution (or geometric in discrete time); for example, see [14, 15] and all the above references to sensing studies. Using measurements, the authors of [16] showed that the channel idle time can be modeled by a lognormal distribution. This result was confirmed in [17], where it is shown that idle times follow a lognormal distribution for long durations, and a geometric distribution for short durations. Correlations between idle and busy times were also overlooked by most the previous papers. However, one could logically expect that some correlation exists between different intervals, as has in fact been noted in [17]. Our previous work in [2] was one of the first few ones to introduce correlation and also allow more general intervals.

The research on sensing strategies for CR networks is not new, and neither is the application of mathematical modeling for analysis and optimization of those strategies. However, the models presented in this paper embody a number of contributions which stem from the generality of the model assumptions. Our purpose in this paper is to propose a number of models that enable the analysis and evaluation of sensing strategies in cognitive radio networks under a broad range of conditions. More specifically, a Markov phase renewal process [18] is used to model the channel availability for SUs. This allows to consider a wide variety of distributions for the duration of idle and busy intervals and also to capture correlations between consecutive intervals. The authors of [19] proposed a similar model for the activity of PUs. However, correlations between different intervals were not considered in their model.

The behavior of SUs is represented mainly through the duration of transmissions, sensing periods, and idle intervals between consecutive sensing periods. These durations are modeled by phase-type distributions [18], which endow the model with a high degree of generality. In the literature of mathematical modeling, it is widely acknowledged that phase-type distributions offer an excellent compromise between applicability and tractability.

Our model of SUs also allows sensing errors, which can be misdetections and false alarms. For both of them, two different situations are distinguished, depending on whether the SU is only sensing or sensing and transmitting. This allows us to capture a broad range of SUs sensing capabilities.

However, most important in this paper is that we now have to introduce the arrival process of the SUs since the source is no longer saturated. We used the Markovian arrival process (MAP) to represent the SU arrival process. The MAP is a very versatile arrival process which can capture correlations and still allow modeling and computational tractability.

In our previous paper [2] on this class of problems, we assume that the source of SUs is saturated (i.e., there is always at least an SU waiting and ready to transmit). That assumption is not too realistic, even though it does give us an idea of the best we can achieve if there are always some SUs looking to transmit. In this current paper, we have relaxed that assumption. This makes the model more realistic while making it slightly more challenging as now we need to introduce an arrival process for the SUs. In addition, this new model creates a situation where a channel could be idle simply because there are no PUs or SUs needing to use it. These are the main contributions of this paper.

The rest of this paper is organized as follows. Section 2 introduces the model of the channel from the perspective of the SUs. The model of the secondary network, which includes the behavior of SUs, is described in Section 3. In Section 4 we describe the models for the complete system and their analysis when sensing is assumed to be ideal; this assumption is relaxed in Section 5. Some numerical results are presented in Section 6 to exemplify the capabilities of the proposed models and to show the feasibility of their numerical evaluation. Finally, the paper is concluded in Section 7.

2. Channel Availability

We consider a single channel that can be idle or busy from the perspective of the SUs. The activity of PUs in this channel is described by a discrete-time Markov chain (DTMC) with state space . The channel is busy (b) if , and idle (i) if . We assume that during a time slot the condition of the channel changes at most once.

Let the matrix represent the transitions between busy states and represent the transitions from busy to idle states. Similarly, represents the transitions between idle states, and represents the transitions from idle to busy states. The matrices and are substochastic and of orders and , respectively.

Based on this, the transition matrix of can be written as

3. Secondary Network

This section discusses SUs actions and how SUs interact with PUs through the channel status. Throughout this paper, sometimes we use “the SU” to refer to the set of all the SUs that can use the channel or to the SU that is at the head of the waiting line of SUs. We assume there is some coordination mechanism among SUs to perform channel sensing and to arrange channel access. Although this coordination mechanism is not trivial, its study is beyond the scope of this paper.

The SU can be in one of the following three modes: sleeping, sensing, or transmitting. The continuous period of time that the SU remains in one of these modes is called a cycle or period. Thus, we talk about, for example, a sleeping period or a sensing cycle. Next, we detail the characteristics of each type of cycle and how they alternate between them.

(a) Sleeping. The duration of a sleeping period is modeled by the phase-type distribution of order . A sleeping period is always followed by a sensing cycle.

(b) Sensing. During a sensing cycle, the SU performs a series of consecutive channel state measurements. If a measurement senses the channel as busy, the sensing period is interrupted and the SU enters the sleeping mode. The maximum number of measurements that would be taken is defined by the PH distribution with representation , of order . If the channel is sensed as idle in all the measurements of the cycle, the SU can initiate a transmitting period.

(c) Transmitting. During a transmitting cycle the SU attempts to transmit a message. The required transmission time (i.e., the number of time slots) to transmit the message is given by the PH distribution with representation of order . If the channel becomes busy and the SU is capable (can sense the channel while transmitting) of detecting it, the message transmission is interrupted and the SU switches to sleeping mode. If the transmission of the message is fully completed, the SU goes into sensing mode.

The SUs arrive according to a Markovian arrival process (MAP) represented by two substochastic matrices and of order . Then, the mean arrival rate, , is given as , where is the probability vector satisfying and and 1 is a column vector of ones of appropriate dimensions.

An SU that arrives and finds the channel busy waits in a buffer of size .

If an SU is in service when a PU arrives, the SU’s service is interrupted since the PU has preemptive priority. Now we specify the resumption policy followed by SUs when a message transmission was interrupted by PUs activity. This policy is described by matrix with elements . Suppose the SU’s service was interrupted in phase , let its service restart in phase with probability at resumption. It is clear that if it is a preemptive resume then , whereas if it is a preemptive repeat then . Hence, the matrix is a general representation.

4. System Model I: Ideal Sensing

For the sake of clarity, we first assume that the SU receives perfect knowledge of the state of the channel. In Section 5 we relax that condition and assume that there could be errors in the sensing carried out by the SU.

Sensing takes place only when there is an SU in the system waiting to get access. Hence, when there is an SU in the system either it is receiving service because there is white space or it is waiting. The waiting could be because the channel is busy with PUs, there are other SUs ahead of it, or it is sensing the system for white space.

Here we assume that the time needed to perform a channel measurement cannot be neglected compared to the transmission time of a data unit. The length of a time slot is set so that a sensing measurement can be performed and know the result by the end of the slot. A conservative approach is applied to establish the outcome of the measurement: a sensing measurement taken during the time slot does not return idle as a result if the channel was busy at time instants or .

Although, as mentioned above, the duration of a single measurement cannot be neglected, in this section we assume that SUs can sense and transmit simultaneously. This could reflect instances in which SUs are equipped with two radios. The case in which SUs cannot transmit and sense simultaneously can be covered by the model with imperfect sensing described in Section 5.

4.1. Head-of-the-Line (HoL) SU

Even though we are mainly interested in the nonsaturated case, first we consider the saturated case, from which we obtain the DTMC that constitutes the basis for the nonsaturated model.

Let the states of this system be classified as shown in Table 1.

In all states, we keep track of the channel phase (either a busy or an idle phase). When the SU is transmitting, we need to keep track of the transmission phase. Similarly, when the SU is sleeping (sensing) we need to keep track of the sleeping (sensing) phase, and also of how the last transmission epoch ended. A transmission epoch can finish because the channel becomes busy, or because the SU transmission finishes. In the first case, we record at which of the transmission phases the SU was interrupted, and an additional phase is used to indicate that the SU transmission finished completely. Thus, in total phases are used to represent how the last transmission epoch ended. Note also that when the channel is busy and the SU starts a sensing cycle, only the first sensing phase is required as the SU switches to the sleeping mode after the first sensing measure. Naturally, this situation will change when we consider imperfect sensing later on.

Then we have the following discrete-time Markov chain (DTMC) for the saturated case:where , , and .

This transition matrix captures the full behavior of this saturated system with general preemptive discipline.

However, in order to study the nonsaturated system, we need to extract, from the above matrix, the following four matrices:and

The matrices and are used to capture the transitions that affect the state of the channel and the state of the head-of-line SU: corresponds to the case where the head-of-line SU does not finish its service and to the one when it does. In and , it is assumed that there is at least one SU in the queue (at both the initial and the final state). In a similar manner, the transitions from and to an empty queue are captured by and , respectively. Note that the arrival process has not been taken into account yet.

4.2. Number of SUs in the System: The Nonsaturated Case

In order to study the distribution of the number of SUs in the system, we use a quasi-birth-and-death (QBD) Markov chain structure. The level of the QBD represents the number of SUs in the system, and the phases in each level represent the rest of the system state information. Specifically, for level (i.e., when the queue is empty) the phases of the level represent the phase of the arrival process (i.e., the MAP) and the phase of the channel. For the rest of levels (), the phases represent the phase of the MAP plus the same state information as in the saturated case.

We now consider the cases of finite buffer () and infinite buffer () separately.

4.2.1. Stationary Behavior for Finite Buffer ()

When the buffer size is finite, we have the discrete-time Markov chain (DTMC) with transition matrixwhereandNote that the number of block rows and block columns of the transition matrix coincides with the number of levels of the QBD, that is, .

Let the stationary vector associated with this DTMC be . Then we haveThis vector exists and is unique, provided the DTMC represented by is irreducible.

The vector can be obtained by standard methods used for finite structured DTMCs (e.g., the block state reduction, the block state reduction, or the folding algorithm). Given the vector , we can easily obtain the following performance measures.

(a) Mean Number of SUs in the System. Let be the number of SUs in the system at steady state, and letThen,

(b) Loss Probability. The probability that an SU is lost because there is no buffer space to accommodate it is referred to as the loss probability, and it is given as

(c) Throughput (or Effective Utilization). Let us define the throughput, , as the probability that an SU is transmitting during a time slot of white space or, equivalently, the mean number of SU transmitting slots per time unit.

Let us first introducewhich contains the marginal probabilities for states of the saturated system; first the marginal distribution of the phases for levels above 0 is computed, and then the phase of the arrival process is dropped by summing along its dimension (right multiplication by ).

Now an expression for the throughput can be written as

(d) Goodput. Goodput is the mean number of useful data units transmitted by an SU per unit of time. Even though we still are assuming perfect sensing, not all transmitted data units can be considered useful. For example, the data unit transmitted during a slot in which the presence of the PU was detected does not represent a useful transmission. Moreover, depending on the service resumption policy, a part or all of the transmitted units up to this point may not be useful transmissions either.

Nonetheless, if the system is stable (and it is clearly the case when ) all SUs accepted to the system are eventually served in full. Therefore, the goodput can be easily obtained aswhere is the maximum length of an SU transmission phase, and its mean value is given by .

(e) Distribution of the Sojourn Time of SUs That Joined the Queue. Here we develop the expressions to obtain the distribution of the time an SU spends in the system (), which includes the time spent at the head of the line. A similar approach could be followed to derive the distribution for the waiting time until the SU reaches the head of the line.

Let be the probability vector as seen by arriving customers that are not blocked. Then

We now consider the block absorbing DTMC with transition matrix

with the initial probabilities given by .

This DTMC can be further simplified by leaving out the DTMC the phase of the arrival process. By doing this, the transition matrix becomes

and the initial probabilities are given byor equivalently,Now, the probabilities at time can be obtained recursively asand, from here, the distribution of the sojourn time follows easily

4.2.2. Stationary Behavior for Infinite Buffer ()

Suppose now the buffer space for the SUs is unlimited. Then we have the associated transition matrix for the DTMC given as

The associated stationary vector can be obtained by using the matrix-geometric method. First, we point out that this stationary vector exists and is unique, provided that the standard stability conditions are met. These conditions are given as follows. Let with . We know that provided is irreducible, then exists and it is unique. The conditions for the vector to exist and be unique are that Provided these conditions are met, we havewhere is the minimal nonnegative solution to the matrix quadratic equationThe boundary vectors and are obtained from solvingnormalized byFrom the knowledge of the vector we can easily obtain the performance measures of interest, which are the same as in the finite buffer case in Section 4.2.1. Here, clearly, . The expressions for the other performance measures are given below; we focus only on the changes with respect to Section 4.2.1.

(a) Mean Number of SUs in the System. Let be the number of SUs in the system and its distribution, then and

(b) Throughput. Nowand thus,

(c) Goodput

(d) Distribution of the Sojourn Time of SUs That Joined the QueueAs in Section 4.2.1,andwhere .

4.3. Comparison of Sensing Strategies

In order to compare any two sensing strategies, we need to determine what performance measure is going to be used for that purpose. In the finite buffer case, we can compare, for the two sensing strategies, the number of SUs in the system, the throughput, the loss probabilities, etc. Each of those comparisons requires that we compute the stationary vector associated with the finite state Markov chain.

However, if we assume that the buffer size is large enough to be approximated by an infinite buffer system, then we can just compare the distribution of the number of SUs in the system. For a service provider, the most relevant performance measure for comparison in that case is the tail behavior of the system. As done in practice, we can assume that when one system is dominant in queue length, then it is also dominant in waiting times. Thus, for a quick comparison of different sensing strategies, we can use the tail behavior and skip the steps that require us to obtain the vector or even the matrix .

4.3.1. Tail Probabilities for Comparing Sensing Strategies

Now we assume that our buffer size is infinite and show how to compare the tail behavior of the number of SUs in the system.

For a quasi-birth-and-death (QBD) type of Markov chain, we know from the literature that the probability that the number of customers in the system is at least , , can be approximated aswhere is called the decay rate and is equal to Perron Frobenius eigenvalue of the matrix , and is a constant which depends on the boundary behavior of the Markov chain. The decay rate can be obtained as the unique solution in to the nonlinear equationwhere is the maximal absolute eigenvalue of the matrixGenerally, can be computed using the bisection method.

4.3.2. Hazard Rate Order for Comparisons

In this section, we present a simple tool for comparing different sensing strategies. Since the primary interest is in not letting very long queues build up for the secondary users, a good measure is the tail probability of the number of SUs in the system. The hazard rate order is a useful tool for this purpose.

Consider two discrete random variables and . Shaked and Shanthikumar showed in [20, Theorem (1.B.7)] that is less than based on hazard rate, that is, , if

Similarly, we say is stochastically less than (i.e., ) if

In [20, Theorem (1.B.1)] they further showed that

Now consider two sensing strategies and , with the number of SUs in the system given as and , respectively. Letting an be the associated tail probabilities as mentioned in Section 4.3.1, and also with , and being the respective decay rates and constants, then we can writeLet us now assume that there is a such that , then we can say thatFor the purpose of comparing two sensing strategies, we apply the following theorem.

Theorem 1. If our threshold of the number in the system is , then

Proof. This is based on the fact thatIn summary, we have, for a threshold of ,

5. System Model II: Imperfect Sensing

In this model we allow sensing errors, which can be misdetections and false alarms. A misdetection (false alarm) occurs when the channel is considered to be idle (busy) when it is actually busy (idle). In addition, for both of them (misdetection and false alarm) we differentiate two different types, depending on whether the SU is only sensing (type 1) or sensing and transmitting (type 2). The probability that a type- misdetection occurs is , with and ; and the probability that a type- false alarm occurs is , with and ; Table 2 shows a summary of these probabilities.

We add another state to the set from Model I (channel busy, SU transmitting). Now, the states of this system are classified as shown in Table 3.

Unlike in Model I, in (channel busy, SU sensing) we now have to keep track of the sensing phase. The case in which the system is saturated with SUs is considered first.

The associated transition matrix is

As we did in Model I, in order to study the case of nonsaturated SUs we need to extract, from the above matrix, the following set of matrices:

Using the same ideas as in the case of Model I, we can easily study the nonsaturated cases, both finite and infinite buffer situations. We skip this for Model II as it is merely a repetition of the procedure used in Model I.

6. Numerical Results

In this section, we present some results to exemplify the capabilities of the proposed models and to show the feasibility of their numerical evaluation.

Since the source of SUs is not saturated, the arrival process of SUs must be taken into account. In our numerical results, the arrival of SUs is modeled by a platoon arrival process (PAP) in which the following magnitudes follow geometric distributions: interplatoon times (mean value, 100); intraplatoon interarrival times (mean value, 20); and number of arrivals in a platoon (mean value, ); see [18, pp. 49–50] for further details. The mean number of arrivals in a platoon, , is varied from 1 to 40 so that the arrival rate of SUs varies from to arrivals per time slot. Then, the matrices of the MAP are

The number of slots in a sensing cycle has a deterministic value equal to 4, that is,

The duration of a sleep period is uniformly distributed in :

The duration of an uninterrupted SU transmission follows a negative binomial distribution with mean 10 slots and variance :

A preemptive repeat scheme is used when the transmission of an SU is interrupted by the transmission of a PU. Thus,

Finally, we consider ideal sensing, , and four different buffer sizes, .

As in [2], the model proposed in [21] is used for channel occupancy. This model exhibits a self-similar behavior over an adjustable range of time-scales. Then, the transition matrix in (1) becomeswhere , , and are the parameters of the model. The range of time-scales where the process shows a self-similar behavior can be adjusted the value of parameter . Once the value of is set, the values of and can be determined by fitting the channel utilization factor , and the average burst length . The following values have been considered here: , , and .

The chosen channel model, arrival process, and PH distributions do not intend to fit any specific scenario characterized by empirical results. Instead, our purpose is to show how a wide variety of distributions and characterizations can be easily incorporated into our models and to show the feasibility of their numerical evaluation. For this purpose, the channel model and the PH distributions that have been used are of a relatively high number of phases and, as shown in this section, the resulting DTMC is still amenable to numerical evaluation using a conventional desktop computer. Using distributions and models with a similar number of phases would allow obtaining a good fit of the available data in a broad variety of practical cases, while the required computational effort would be comparable to that of the examples shown here.

Figures 1, 2, 3, and 4 show, respectively, the mean number of SUs in the system, loss probability, throughput, and goodput. All of them are represented as a function of the mean number of arrivals in a platoon () for different sizes of the buffer. When increases so do the rate and burstiness of the arrival process of SUs. Thus, as it may be expected, the curves for in all four graphs exhibit an increasing trend.

In the cases where buffer size is finite, the value of the mean number of SUs in the system (Figure 1) rapidly saturates to about half the size of the buffer. This observation is consistent with the behavior of the loss probability (see Figure 2).

The curves for the throughput and goodput (Figures 3 and 4) show a similar shape, but the values of the goodput are lower than those of the throughput (around 12% lower on average). The latter is due to the fact that unfinished SU transmissions have to be repeated from the beginning the next time the SU gains access to the channel.

In our examples here, more important than the values of the performance parameters themselves is the computational effort required to compute them. In Figure 5 we show the required execution time for our implementation of the analysis in Matlab 2015 that was run in a laptop with an Intel Core i7-4702MQ, GHz, and 16 GB RAM.

As observed, the execution time is of the order of 1 minute in the worst case (). It is also observed that, for the finite buffer model, the required execution time increases linearly with the buffer size. Therefore, when the buffer size increases, at some point the computational effort for the finite buffer case exceeds that of the infinite buffer one. Note, however, that if the buffer size is large enough, then it can be approximated by an infinite buffer system.

7. Conclusions

In this paper, we have proposed and analyzed a number of Markovian models that enable the analysis and evaluation of sensing strategies in cognitive radio networks under a broad range of conditions. The proposed models are quite versatile and general. A Markov phase renewal process is used to model the channel availability for secondary users (SUs). This allows considering a wide variety of distributions for the duration of idle and busy intervals and also capturing correlations between consecutive intervals. The behavior of SUs is modeled using general phase-type distributions and sensing capabilities. A major contribution with respect our previous work is that the unrealistic assumption that the source of SUs is saturated has been relaxed in the models presented here, and the arrival process of the SUs is introduced. This arrival process is represented by the Markovian arrival process, which is also very general and versatile. Furthermore, we consider a general buffer size, either finite or infinite, for the waiting SUs and a fairly general resumption of an SU transmission after being interrupted by PUs activity. Finally, some numerical examples and results have been presented to show the capabilities of our models and the feasibility of their numerical analysis.

Data Availability

The data used to support the findings of this study are included within the article.

Conflicts of Interest

The authors declare that they have no conflicts of interest.

Acknowledgments

The research of V. Pla was partially supported by the Ministry of Education of Spain under Grant PR2011-0055. The research of A. S. Alfa was partially supported by the NRF SARChI Chair in ASN cohosted by UP and CSIR.