Research Article | Open Access

Xin Liu, Min Jia, Xuemai Gu, Fanqiang Kong, Qingfeng Jing, "Optimal Joint Allocation of MultiSlot Spectrum Sensing and Transfer Power in MultiChannel Cognitive Radio", *Journal of Sensors*, vol. 2014, Article ID 494361, 9 pages, 2014. https://doi.org/10.1155/2014/494361

# Optimal Joint Allocation of MultiSlot Spectrum Sensing and Transfer Power in MultiChannel Cognitive Radio

**Academic Editor:**Fanli Meng

#### Abstract

In multichannel, cognitive radio (CR), the secondary user (SU) is allowed to utilize multiple subaltern frequency bands of the primary user (PU), when these bands, namely, subchannels are not currently being used. To support this spectrum reuse functionality, the SU is required to sense each subchannel, and only the subchannels wherein the PU is inactive are available for the spectrum access of the SU. In this paper, a multislot spectrum sensing and transfer scheme for multichannel CR is proposed, whose sensing stage is divided into several time slots allocated to the subchannels for spectrum sensing. While guaranteeing the spectrum sensing performance on each subchannel and limiting the interference to the PU, we formulate an optimization problem that maximizes the SU’s aggregate throughput by jointly allocating the optimal number of sensing time slots and the optimal transfer power to each subchannel. Theoretical analysis is given to prove the feasibility of the proposed optimization problem and simulation results are presented to show the notable improvement on the SU’s throughput when the sensing time slots and the transfer power are both optimized by the proposed scheme.

#### 1. Introduction

Cognitive radio (CR) has been proposed to overcome the shortage of spectrum resources that is introduced by the traditional fixed spectrum allocation method [1]. In CR, the secondary user (SU) can transfer data through an idle channel that is licensed to the primary user (PU) but currently unoccupied, providing that the PU’s normal communication is not disturbed [2, 3]. Hence, the spectrum sensing to detect the PU’s activity is an essential method to reuse the unoccupied spectrum and has become one of the key technologies in CR [4].

Spectrum sensing requests the SU to efficiently and accurately detect the presence of the PU, in order to avoid causing harmful interference to the PU [5]. Since, to the SU, the PU’s signal is often with unknown location, structure, and strength, energy detection, which is widely used due to its simple implementation, serves as the optimal spectrum sensing method when the detector only receives the power of the received signal [6]. The sensing time has deep impact on the performance of energy detection, and the sensing performance, reflected by the false alarm and detection probabilities, can be improved with the increase of the sensing time [7]. In CR, the higher the detection probability is, the less interference the PU suffers, while the lower the false alarm probability becomes, the more opportunity the SU gets to access the spectrum [8].

In recent years, multichannel CR has been proposed to improve the throughput by allowing the SU to utilize multiple idle subchannels to transfer data synchronously; however, before communicating, the SU has to detect the PU’s activity in each subchannel [9]. A multiband joint detection method is introduced in [10], which jointly detects the PU’s signals over multiple frequency bands rather than over one band in the equal sensing time. In [11], the authors consider an orthogonal frequency division multiplexing (OFDM) based multichannel CR system and present efficient algorithms to maximize the SU’s aggregate throughput by jointly optimizing both the sensing threshold and the power allocation, taking into account the influence of the false alarm and detection probabilities. However, the sensing time is not considered by the authors, which may shorten the SU’s transfer time and decrease its throughput. In [12, 13], a sensing-throughput tradeoff problem is analyzed mathematically, and the energy detection is used to prove that the formulated problem indeed has one optimal sensing time that yields the highest throughput. However, in multichannel CR, how to obtain the optimal set of the sensing time to all the subchannels is very important.

In this paper, subject to the constraints of the false alarm and detection probabilities of each subchannel and the aggregate interference power and rate of the SU, a multislot spectrum sensing and transfer scheme for multichannel CR is formulated. The SU’s aggregate throughput is maximized by jointly allocating the optimal number of sensing time slots and the optimal transfer power to each subchannel. The analytical and numerical results obtained in this paper clearly show that the maximal throughput can be achieved when the sensing time slots and the transfer power are both optimized.

#### 2. Preparation

##### 2.1. Multichannel Cognitive Radio

In multichannel CR, the SU may operate over multiple subchannels synchronously; therefore the SU’s throughput can be improved greatly. Consider a PU system, based on multicarrier modulation, operating over a wideband spectrum that is divided into nonoverlapping narrowband subchannels. Since the PU may not use all the subchannels to transfer in the specific time and area, the left unused subchannels are available for the SU’s spectrum access, as shown in Figure 1. Before accessing some subchannel, the SU must estimate the PU’s state (presence or absence) in the subchannel by performing spectrum sensing, and only when the PU’s absence is detected, the SU can use this subchannel to transfer data [14]. However, if the PU’s presence is undetected, the SU may also use the subchannel by causing harmful interference to the PU.

##### 2.2. SU’s Spectrum Sensing

In spectrum sensing, since the SU and the PU are two different kinds of communication systems, SU is difficult to obtain any communication information from the PU system. Hence, the energy detection is widely used in the SU’s spectrum sensing, which can be directly implemented without obtaining any signal information. Energy detection firstly calculates the energy of the received signal and then compares it to a preset threshold [15].

If the PU is absent, only the noise is received by the SU’s detector, while if the PU is present, the mixture of the noise and the PU’s signal is received. Hence, according to the different activities of the PU, the SU’s received signal in subchannel for is given as follows: where the states and denote the PU’s absence and presence, respectively, is the PU’s signal with the power of , is the Gaussian white noise with the power of , is the subchannel gain between the PU and the SU, and is the number of sampling nodes. By supposing that the sensing time and the sampling frequency are and , respectively, is given by By averaging the energy of sampling nodes, the energy of the received signal is obtained as follows: Obviously, are independently and identically distributed, and according to the Central Limit Theorem, with larger , obeys the Gaussian distribution approximately. Under the states for , the mean and the variance of are given as follows: where the sensing SNR . Energy detection compares to the detection threshold . And the PU’s presence is decided with , while the subchannel is determined to be idle and available with . If the PU is really absent but the PU’s presence is falsely detected, the false alarm is produced, while if the PU is really present but the PU’s absence is falsely detected, the miss detection happens. According to (2) and (4), the false alarm probability and the detection probability are given as follows: where . According to (5), with a given , can be denoted by as follows:

#### 3. System Model

##### 3.1. Related Work

In CR, the SU’s frame structure is often divided into sensing and transfer stages. In the sensing stage, the SU detects each subchannel and judges which one can be used, while, in the transfer stage, the SU uses the detected idle subchannels to transfer data.

In the sensing stage of [12], the SU searches an idle subchannel from the PU’s subchannels one by one, and once an idle subchannel is found, the SU will stop sensing and transfer data in subchannel through the transfer stage, as shown in Figure 2. This scheme is named as single-channel CR.

In the sensing stage of [16], the bandwidth is divided into subbands, and each subband is allocated to sense one subchannel. Hence, the SU can use all the sensing time and part of the frequency band to sense a subchannel, as shown in Figure 3. In the transfer stage, the SU may use all the detected idle subchannels to transfer data. This scheme is named as single-slot multichannel CR.

In the sensing stage of [10], each subchannel is allocated to the equal continuous time slot to sense spectrum, and in one time slot, only one subchannel is detected by the SU, as shown in Figure 4. In the transfer stage, all the detected idle subchannels are available for the spectrum access of the SU. This scheme is named as equal-slot multichannel CR. However, the gain of each subchannel is often different, and the sensing performance can be further improved if we allocate more sensing time to the subchannel with better sensing gain.

##### 3.2. Proposed Scheme

In this paper, the sensing stage is further divided into many small time slots, as shown in Figure 5. In each time slot, the SU can sense any subchannel with energy detection, and the number inside each time slot means the subchannel index to be sensed. Note that in the example, the SU senses spectrum firstly in channel 2, then in channels 1 and 3, and so forth, and finally in channels and . Actually, the sensing order of the subchannels does not affect the final sensing performance of each subchannel. At the end of the sensing stage, the SU can obtain the used statuses of the subchannels by combining the sensing information in each time slot. The number of the sensing time slots allocated to each subchannel can be different, which is chosen according to the subchannel gain.

By supposing that the frame period is , the length of each time slot is , and the number of the time slots to sense subchannel is , the sensing time of subchannel is given by and the SU’s transfer time is given by By assuming that the subchannels are symmetrical, the SU’s data transfer in subchannel includes the following two cases.

(a) If the PU’s absence is detected accurately by the SU in the probability of , the SU can transfer in the subchannel effectively, with the rate of where is the subchannel gain between the SU’s transmitter and receiver.

(b) If the PU’s presence is undetected in the miss detection probability of , the SU may use the same subchannel with the PU and cause severe interference to the PU, with the rate of Obviously, . In case (b), if the PU is really present but the SU detects the PU’s absence falsely in the probability of , the SU will transfer data with the power of that causes severe interference to the PU. Hence, the SU’s aggregate interference power is given by should be constrained by letting , where is the maximal interference power suffered by the PU. Moreover in case (b), the SU transfers data with the rate of at the presence of the PU; these data may also disturb the PU’s normal communication, and therefore we can get the maximal aggregate interference rate of the SU as follows: It is also necessary to constrain the SU’s interference rate as . Since , we have As is a convex function, we get the Cauchy inequality as follows: By supposing , from (13) and (14), we may derive the inequality as follows: where . Hence, we can guarantee by letting from which we further obtain that where .

In each frame, the SU may transfer data in cases (a) and (b) with the rates of and at the absence and presence of the PU, respectively, during the transfer time . The SU’s aggregate throughput over subchannels is given as follows: where and are the appearance probabilities of the states and , respectively.

In this paper, our goal of jointly allocating sensing time slots and transfer power is to maximize the SU’s aggregate throughput subject to the constraints on the false alarm probability, the detection probability and the transfer power of each subchannel, and the aggregate interference power and the aggregate interference rate of the SU, as follows: where the vectors and , is the upper bound of the false alarm probability, is the lower bound of the detection probability, is the SU’s maximal transfer power, and denotes the maximal integer no bigger than . In (19), we set and , because the SU’s sensing performance must be good enough in order to decrease the interference to the PU and improve the spectrum access of the SU, as indicated in CR.

##### 3.3. Solution to Optimization Problem

Equation (19) is a multiparameter optimization problem about and , which can be solved by the alternating direction optimization (ADO) [16]. In each iteration, one of the two parameters is fixed while the other one is optimized, and the two parameters are alternately optimized through some iterations until both of them tend to be constant.

Firstly, we fix (corresponding and are both fixed) and optimize . Since monotonically increases with the improvement of , by substituting into (6), the lower bound of is given by where and .

From (18), since improves with the increase of both and , it can achieve the maximum only when , and correspondingly, the equation of (20) is obtained. By substituting (20) into , we get , from which we obtain , where is given by where denotes the minimal integer no less than .

We suppose that the aggregate number of sensing time slots , where and . With the fixed , the constraints of (19) about can be ignored, while, with , the constraints of false alarm and detection probabilities can be satisfied. Hence, (19) transforms the suboptimization problem about as follows:

In the following proposition, we will prove that is a convex function about the vector** k**, which denotes that there is an optimal set of that maximizes .

Proposition 1. *The objective function is convex in .*

*Proof. *Taking the second-order derivative of in for as follows:
as , by substituting (20), we have , from which is obtained. Hence, according to (23), we have for , which denotes that is convex in .

If is given, since is an integer vector, the optimal for can be obtained by the greedy algorithm, as shown in Figure 4. In this figure, is denoted by
As is an integer within a specific range, it is not complicated to search through . With any given integer , we calculate with the optimal vector obtained by the greedy algorithm, and then we choose the optimal that maximizes , as follows:

With the given , since the increment range of is from to , the time complexity of the greedy algorithm in Figure 6 is . From (25), by enumerating , the aggregate time complexity to search an optimal set of is given by

Secondly, we fix (corresponding , , and are all fixed) and optimize . With the fixed , the constraints of false alarm and detection probabilities can be ignored. Noting , (19) transforms the suboptimization problem about as follows:
where and . Using the Lagrange multiplier algorithm to solve (27), we obtain the Lagrange function as follows:
where , , and are the Lagrange multipliers. According to the Karush-Kuhn-Tucker (KKT) conditions, the optimal is got by letting , and if , , and are not zero, they are got by letting the corresponding constraints acquire equations. Hence, we obtain
Noting , direct calculation yields
where and . Using the subgradient method, we can further obtain , , and through the iterations as follows:
where is the iteration index and is a sequence of scalar step size. Once , , and are all obtained, we can get the optimal transfer power for through (30).

The time complexity of the Lagrange multiplier algorithm depends on the estimation accuracy . By supposing that the stopping conditions of the iteration in (31) are , , and , the iteration complexity is , and the time complexity of each iteration is . Hence, the aggregate time complexity of the Lagrange multiplier algorithm is given by
The ADO method is used to obtain the optimal joint allocation of multislot spectrum sensing and transfer power by optimizing the two suboptimization problems (22) and (27) alternately and iteratively. The joint allocation algorithm based on ADO is described in Figure 7. Noting that the goal of optimizing (22) and (27) is to achieve the locally maximal value of the objective function, the value of the objective function is nondecreasing in each iteration as follows:
where is the iteration index. Equation (31) indicates that if is convergent, both of and must be convergent. That is, if the stopping conditions of the iteration in ADO are and , the optimal can be obtained.

As the stopping conditions of the joint allocation algorithm are and , the iteration complexity of the algorithm is . In each iteration, the greedy algorithm with the complexity of and the Lagrange multiplier algorithm with the complexity of are both implemented once. Hence, the aggregate time complexity of the joint allocation algorithm is given as follows:

However, since, in the conventional exhaustive searching method, we need to search through the vectors and including parameters, the time complexity of the exhaustive searching method is that greatly exceeds the time complexity of the proposed scheme if .

#### 4. Simulations

In the simulation, the frame period s, the length of each time slot ms, the noise power mW, the number of subchannels , the subchannel gains for obey the Rayleigh distribution with the mean of −10 dB, the sampling frequency KHz, the maximal interference power and rate are mW and bps/Hz, respectively, the sensing SNR for is [−10, −8, −6, −4, −2, −3, −5, −7, −9, −6, −3, −1, −2, −4, −6, −8] dB, and the appearance probabilities of the states and .

Figure 8 shows the SU’s aggregate throughput versus the lower bound of detection probability , with different number of sensing time slots . From this figure, it is seen that there exists an optimal (the aggregate sensing time is ) that maximizes , and the convex-shaped is also consistent with Proposition 1, which verifies the correctness of our allocation scheme. In the traditional equal-slot multichannel CR of [10], the sensing time allocated to each subchannel is . With the same aggregate sensing time, the throughput of the proposed scheme is always larger than those of the equal-slot multichannel CR and the single-slot multichannel CR because, in our scheme, we allocate different sensing time to each subchannel according to their different gains. We also see that decreases greatly with the increase of , because the false alarm probability increases with the increase of , which reduces the SU’s spectrum access. Figure 9 shows versus the maximal transfer power , with different . It is seen that the proposed scheme outperforms the other two schemes, with various .

Figure 10 indicates the uniform-time throughput versus the frame period , with different . It is seen that with the increase of , the number of the available sensing time slots increases, and longer sensing time can improve the SU’s sensing performance. With the improved sensing performance, the decrease of the false alarm probability may increase the SU’s spectrum access, and thus the SU’s throughput is improved. Figure 11 compares the achieved throughput of the proposed scheme and the single-channel CR. It is seen that the proposed scheme that uses multiple subchannels to transfer can get much more throughput than the single-channel CR does.

Figure 12 shows the transfer power and false alarm probability of each subchannel by the proposed scheme. It is seen that in our allocation scheme, with the given detection probability, the larger power is allocated to the subchannels with lower false alarm probabilities, because the SU has more opportunities to access these subchannels, and larger power can help the SU make full use of the better subchannels in order to achieve perfect throughput. However, no power is allocated to the subchannels with much higher false alarm probabilities (i.e., subchannels 1 and 9), because the SU often cannot access these subchannels, and the transfer power allocation in these worse subchannels will not achieve benefits.

#### 5. Conclusions

In this paper, we propose a multislot spectrum sensing and transfer scheme of multichannel CR. The frame is divided into sensing and transfer stages, and the sensing stage is further divided into many small time slots that are allocated to each subchannel for energy detection. An optimization problem of jointly allocating sensing time slots and transfer power to each subchannel is formulated to maximize the SU’s aggregate throughput, subject to the constraints of the false alarm and detection probabilities of each subchannel and the aggregate interference power and rate of the SU. A joint allocation algorithm based on alternating directing optimization is proposed to solve the optimization problem. With numerical results, it is shown that there exists an optimal set of sensing time slots that maximizes the throughput and jointly optimizing sensing time slots and transfer power significantly improves the SU’s aggregate throughput.

#### Conflict of Interests

The authors declare that there is no conflict of interests regarding the publication of this paper.

#### Acknowledgments

This work was supported by the National Natural Science Foundations of China under Grant nos. 61201143 and 61301105, the Natural Science Foundation of Jiangsu Province under Grant no. BK20140828, the Innovation Foundation of CAST (ITS) under Grant no. F-W-YY-2013-016, the Fundamental Research Funds for the Central Universities under Grant no. HIT.IBRSEM.201309, and the Scientific Research Foundation for Introduced Talent of Nanjing University of Aeronautics and Astronautics under Grant no. 56YAH13029.

#### References

- G. Baldini, O. Holland, V. Stavroulaki et al., “The evolution of cognitive radio technology in Europe: regulatory and standardization aspects,”
*Telecommunications Policy*, vol. 37, no. 2-3, pp. 96–107, 2013. View at: Publisher Site | Google Scholar - D. Tandur, J. Duplicy, K. Arshad et al., “Cognitive radio systems evaluation: measurement, modeling, and emulation approach,”
*IEEE Vehicular Technology Magazine*, vol. 7, no. 2, pp. 77–84, 2012. View at: Publisher Site | Google Scholar - H. Kremo and O. Altintas, “On detecting spectrum opportunities for cognitive vehicular networks in the tv white space,”
*Journal of Signal Processing Systems*, vol. 73, no. 3, pp. 243–254, 2013. View at: Publisher Site | Google Scholar - H. Sun, A. Nallanathan, C. Wang, and Y. Chen, “Wideband spectrum sensing for cognitive radio networks: a survey,”
*IEEE Wireless Communications*, vol. 20, no. 2, pp. 74–81, 2013. View at: Publisher Site | Google Scholar - X. Liu, J. Min, and G. Xuemai, “Joint optimal sensing threshold and subcarrier power allocation in wideband cognitive radio for minimising interference to primary user,”
*China Communications*, vol. 10, no. 11, pp. 70–80, 2013. View at: Google Scholar - A. Mariani, A. Giorgetti, and M. Chiani, “Effects of noise power estimation on energy detection for cognitive radio applications,”
*IEEE Transactions on Communications*, vol. 59, no. 12, pp. 3410–3420, 2011. View at: Publisher Site | Google Scholar - X. Liu, M. Jia, X. Gu, and X. Tan, “Optimal periodic cooperative spectrum sensing based on weight fusion in cognitive radio networks,”
*Sensors*, vol. 13, no. 4, pp. 5251–5272, 2013. View at: Publisher Site | Google Scholar - S. Gong, P. Wang, and J. Huang, “Robust performance of spectrum sensing in cognitive radio networks,”
*IEEE Transactions on Wireless Communications*, vol. 12, no. 5, pp. 2217–2227, 2013. View at: Publisher Site | Google Scholar - R. F. Fan and H. Jiang, “Optimal multi-channel cooperative sensing in cognitive radio networks,”
*IEEE Transactions on Wireless Communications*, vol. 9, no. 3, pp. 1128–1138, 2010. View at: Google Scholar - Z. Quan, S. Cui, A. H. Sayed, and H. V. Poor, “Optimal multiband joint detection for spectrum sensing in cognitive radio networks,”
*IEEE Transactions on Signal Processing*, vol. 57, no. 3, pp. 1128–1140, 2009. View at: Publisher Site | Google Scholar | MathSciNet - X. Huang and B. Beferull-Lozano, “Joint optimization of detection and power allocation for OFDM-based cognitive radios,” in
*Proceedings of the IEEE Global Telecommunications Conference*, pp. 1–5, Miami, Fla, USA, December 2010. View at: Publisher Site | Google Scholar - Y. Liang, Y. Zeng, E. C. Y. Peh, and A. T. Hoang, “Sensing-throughput tradeoff for cognitive radio networks,”
*IEEE Transactions on Wireless Communications*, vol. 7, no. 4, pp. 1326–1337, 2008. View at: Publisher Site | Google Scholar - E. C. Y. Peh, Y. Liang, Y. L. Guan, and Y. Zeng, “Optimization of cooperative sensing in cognitive radio networks: a sensing-throughput tradeoff view,”
*IEEE Transactions on Vehicular Technology*, vol. 58, no. 9, pp. 5294–5299, 2009. View at: Publisher Site | Google Scholar - W. Guibene and D. Slock, “Cooperative spectrum sensing and localization in cognitive radio systems using compressed sensing,”
*Journal of Sensors*, vol. 2013, Article ID 606413, 9 pages, 2013. View at: Publisher Site | Google Scholar - M. Ferri, D. Pinna, E. Dallago, and P. Malcovati, “Photovoltaic energy harvester with power management system,”
*Journal of Sensors*, vol. 2010, Article ID 349389, 6 pages, 2010. View at: Publisher Site | Google Scholar - N. T. Mohsen and U. Murat, “Sensing-throughput tradeoff in cooperative spectrum sensing,” in
*Proceedings of the IEEE Global Communications Conference*, pp. 1–6, Anaheim, Calif, USA, May 2012. View at: Google Scholar

#### Copyright

Copyright © 2014 Xin Liu et al. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.