Keywords

1 Introduction

In order to improve the current spectrum utilization, CR allows the secondary user (SU) to dynamically access the idle spectrum that isn’t temporarily used by the PU, providing that the SU will not disturb the normal communication of the PU [13]. To control interference to PU, the SU detects whether the PU exists in the channel depending on the spectrum sensing technology; if the absence of the PU is detected, the SU can transmit data in the channel, and otherwise it must stop communicating [4, 5].

Energy sensing, as an effective spectrum sensing technology, is frequently used in CR, which estimates the presence of the signal source through comparing the energy statistics of the received signal to a presettled threshold [68]. The SU often uses the PU’s spectrum by the listen-before-transmit strategy. At the beginning of every frame, the SU firstly detects the absence of the PU in the sensing slot, and then forwards data in the transmission slot [9]. An optimization scheme of energy sensing-throughput tradeoff is proposed in [1013], whose optimal solutions are theoretically proven to be existent; however, the authors assume that when the presence of the PU is detected, the SU must stop transmitting and wait until the new detection result is achieved in the following frame, therefore yielding the great loss of the SU’s throughput.

In the proposed scheme, the SU is allowed to transfer to another idle channel to continue communication through spectrum searching, when the presence of the PU is detected. We have considered the spectrum handoff and proposed a joint optimization scheme of sensing time and searching time [14]. Through the joint optimization, the total sensing delay including local spectrum sensing and idle channel searching can be decreased and the achievable throughput of the SU in a specific frame can be maximized.

2 Sensing-Throughput Tradeoff Scheme

2.1 Energy Sensing

In energy sensing, according to the two different states: the absence of the PU (denoted by H 0) and the presence of the PU (denoted by H 1), the received sampling signal \( y(m) \) is given by

$$ y(m) = \left\{ {\begin{array}{ll} {h(m)s(m) + n(m),H_{1} } \\ {n(m),H_{0} } \\ \end{array} } \right., m = 1,2,\ldots,M $$
(1)

where \( s(m) \) is the PU’s signal with the power of \( p_{\text{s}} \), \( n(m) \) is the Gaussian noise with the power of \( \sigma_{\text{n}}^{2} \), \( h(m) \) is the channel gain between the SU and the PU, and M is the number of the sampling nodes. By supposing that the sampling frequency is \( f_{\text{s}} \) and the spectrum sensing time is \( \tau \), M is given by

$$ M = \tau f_{\text{s}} . $$
(2)

Energy sensing firstly calculates the energy statistics of the SU’s received signal as follows

$$ Z(y) = \frac{1}{M}\sum\limits_{m = 1}^{M} {\left\| {y(m)} \right\|^{2} } . $$
(3)

By comparing \( Z(y) \) to a presettled threshold \( \lambda \), the presence of the PU is decided by \( Z(y) \ge \lambda \), while the absence of the PU is determined by \( Z(y) < \lambda \). Hence, the false alarm probability \( P_{\text{f}} \) and the detection probability \( P_{\text{d}} \) are the functions related with the sensing time \( \tau \) as follows

$$ P_{\text{f}} (\tau ) = Q\left( {\left( {\frac{\lambda }{{\sigma_{\text{n}}^{2} }} - 1} \right)\sqrt {\tau f_{\text{s}} } } \right);{\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} P_{\text{d}} (\tau ) = Q\left( {\left( {\frac{\lambda }{{\sigma_{\text{n}}^{2} (1 + \gamma_{\text{p}} )}} - 1} \right)\sqrt {\tau f_{\text{s}} } } \right) $$
(4)

where the SNR of the communication link between the PU and the SU is \( \gamma_{\text{p}} = {{h^{2} p_{\text{s}} } \mathord{\left/ {\vphantom {{h^{2} p_{\text{s}} } {\sigma_{\text{n}}^{2} }}} \right. \kern-0pt} {\sigma_{\text{n}}^{2} }} \) and the function \( Q(x) = \tfrac{1}{{\sqrt {2\pi } }}\int_{x}^{ + \infty } {\exp \left( { - \tfrac{{y^{2} }}{2}} \right)} {\kern 1pt} {\kern 1pt} {\text{dy}} \). According to (4), \( P_{\text{f}} \) can be denoted by \( P_{\text{d}} \)as follows

$$ P_{\text{f}} (\tau ) = Q\left( {Q^{ - 1} (P_{\text{d}} )\left( {1 + \gamma_{\text{p}} } \right) + \gamma_{\text{p}} \sqrt {\tau f_{\text{s}} } } \right) . $$
(5)

2.2 System Model

By supposing that the length of the SU’s transmission frame is T, the conventional sensing-throughput tradeoff scheme is shown in Fig. 1. In the conventional scheme, every frame of the SU includes one sensing slot and one transmission slot. In the sensing slot, the SU firstly senses the PU, and if the absence of the PU is detected, the SU then forwards data in the transmission slot, otherwise it stops transmitting any data in this frame and waits to redetect the absence of the PU in the following frame [11]. In the conventional scheme, when the presence of the PU is detected, the SU cannot continue communication, which yields the great throughput loss and even interrupts the normal communication of the PU.

Fig. 1.
figure 1

Conventional sensing-throughput tradeoff scheme

The proposed spectrum handoff-based sensing-throughput tradeoff scheme is shown in Fig. 2, wherein one searching slot is added following the sensing slot, if the presence of the PU is detected in the sensing slot. By supposing that the frequency band available for the SU includes L channels, the SU will detect the left L-1 channels one by one for choosing a new idle channel in the searching slot, and then transfer to this idle channel to continue communication in the following transmission slot. In this figure, we assume that the time for searching one channel is \( \xi \).

Fig. 2.
figure 2

Spectrum handoff-based sensing-throughput tradeoff scheme

We suppose that the communication rates of the SU at the absence and presence of the PU are \( C_{0} \) and \( C_{1} \), respectively, and \( P(H_{1} ) \) and \( P(H_{0} ) \) are the present and absent probabilities of the PU, respectively. Then we have

$$ P(H_{1} ) + P(H_{0} ) = 1 . $$
(6)

In the conventional scheme of Fig. 1, the SU may forward data in the transmission slot with the time of \( T - \tau \), when the absence of the PU is detected. Hence, the SU’s throughput in the unit bandwidth is given by

$$ R_{0} (\tau ) = \left( {T - \tau } \right){\kern 1pt} {\kern 1pt} {\kern 1pt} {\kern 1pt} \left( {P(H_{0} )C_{0} \left( {1 - P_{\text{f}} \left( \tau \right)} \right) + P(H_{1} )C_{1} \left( {1 - P_{\text{d}} \left( \tau \right)} \right)} \right) $$
(7)

When the SU detects the presence of the PU, it stops communicating in the transmission slot with the probability of

$$ P_{\text{u}} \left( \tau \right) = P(H_{0} )P_{\text{f}} \left( \tau \right) + P(H_{1} )P_{\text{d}} \left( \tau \right) . $$
(8)

In the proposed scheme of Fig. 2, when the SU detects the presence of the PU, it may choose and transfer to a new idle channel to continue communication, providing that there exists one idle channel among the left L–1 channels. The existent probability of one idle channel is given as follows

$$ P_{v} (L) = 1 - P(H_{1} )^{L - 1} . $$
(9)

After transferring to a new idle channel, the SU will forward data in the transmission slot of this channel with the time of \( T - \tau - (L - 1)\xi \). As in (9), the SU’s throughput in the unit bandwidth of the new channel is given by

$$ \begin{aligned} R_{1} (\tau ,\xi ,L) & = \left( {T - \tau - (L - 1)\xi } \right)P_{\text{u}} \left( \tau \right)P_{v} (L)\, \times \\ {\kern 1pt} & {\kern 1pt} \quad {\kern 1pt} \left( {P(H_{0} )C_{0} \left( {1 - P_{\text{f}} \left( \xi \right)} \right) + P(H_{1} )C_{1} \left( {1 - P_{\text{d}} \left( \xi \right)} \right)} \right) \\ \end{aligned} . $$
(10)

Hence, the aggregate throughput of the SU in the proposed scheme is given by

$$ R(\tau ,\xi ,L) = R_{0} (\tau ) + R_{1} (\tau ,\xi ,L) . $$
(11)

2.3 Scheme Optimization

With the fixed frame length, the transmission time available for the SU decreases with the increasing of the spectrum sensing time, yielding the great throughput loss; on the other hand, since Q(x) is a monotone decreasing function, according to (5), with the fixed detection probability, the false alarm probability decreases with the increasing of the spectrum sensing time, yielding the great increasing of the spectrum access opportunity of the SU. Hence, there exists a tradeoff between the spectrum sensing time and the SU’s throughput, and the achieved throughput can be improved through reasonably optimizing the sensing time.

Our goal to optimize the proposed scheme is to maximize the SU’s throughput \( R \) through jointly optimizing the sensing time \( \tau \), the searching time \( \xi \) and the number of available channels L, providing that the detection probability to the PU is guaranteed. The optimization problem is described as follows

$$ \begin{aligned} {\kern 1pt} \mathop {\hbox{max} }\limits_{\tau ,\xi ,L} R(\tau ,\xi ,L) \hfill \\ {\text{s}} . {\text{t}} . \,{ }P_{\text{d}} (\tau ) \ge \bar{P}_{\text{d}} \hfill \\ P_{\text{d}} (\xi ) \ge \bar{P}_{\text{d}} \hfill \\ \tau + (L - 1)\xi \le T \hfill \\ \tau \ge 0,{\kern 1pt} {\kern 1pt} {\kern 1pt} \xi \ge 0{\kern 1pt} \hfill \\ L \ge 1 \hfill \\ \end{aligned} $$
(12)

Since L is an integer, it is not computationally expensive to search L one by one. Hence, by fixing L, (12) is a double-variable optimization problem of \( \tau \) and \( \xi \), which can be solved by adopting alternating direction optimization, i.e., we formulate two sub-optimization problems about one of the two parameters, respectively, by fixing the other parameter with an initial value, and then obtain the joint optimal solutions by repeating to optimize these two sub-optimization problems iteratively. We initialize \( \tau = \tau_{0} \) where \( \tau_{0} \in [0,T] \) and satisfies \( P_{\text{d}} (\tau_{0} ) \ge \bar{P}_{\text{d}} \), and therefore \( R_{0} (\tau_{0} ) \) is a constant that can be ignored in the optimization process. We can calculate the approximate solution by using the half searching algorithm as shown in Table 1. The time complexity of the half searching algorithm is related with the computation accuracy \( \delta \), which is denoted by \( O\left( {log_{2} \tfrac{1}{\delta }} \right) \).

Table 1. Half searching algorithm

Then fixing \( \xi = \xi^{\# } \) and substituting it into (11), we have

$$ \begin{aligned} R(\tau ,\xi^{\# } ) = \left( {T - \tau } \right)\left( {P(H_{0} )C_{0} \left( {1 - P_{\text{f}} \left( \tau \right)} \right) + P(H_{1} )C_{1} \left( {1 - P_{\text{d}} \left( \tau \right)} \right)} \right) + \hfill \\ {\kern 1pt} P_{v} (L)G(\xi^{\# } )\left( {T - \tau - (L - 1)\xi^{\# } } \right)\left( {P(H_{0} )P_{\text{f}} \left( \tau \right) + P(H_{1} )P_{\text{d}} \left( \tau \right)} \right) \hfill \\ \end{aligned} $$
(13)

where \( G(\xi^{\# } ) = P(H_{0} )C_{0} \left( {1 - P_{\text{f}} \left( {\xi^{\# } } \right)} \right) + P(H_{1} )C_{1} \left( {1 - P_{\text{d}} \left( {\xi^{\# } } \right)} \right) \). Obviously \( G(\xi^{\# } ) < C_{0} \), and thus \( 1 - {{G(\xi^{\# } )} \mathord{\left/ {\vphantom {{G(\xi^{\# } )} {C_{0} }}} \right. \kern-0pt} {C_{0} }} > 0 \). There is also an optimal \( \tau^{\# } \in \left[ {0,{\kern 1pt} {\kern 1pt} T^{\prime\prime}} \right] \) that makes \( \bar{R}(\tau^{\# } ) \) achieve the maximum, and \( \tau^{\# } \) can also be obtained through the half searching algorithm. By supposing that k is the number of the iterations, the joint optimization algorithm of \( \tau \) and \( \xi \) is shown in Table 2.

Table 2. Joint optimization algorithm

The iterative complexity of the joint optimization algorithm is \( O(1/\delta^{2} ) \), and the half searching algorithm is implemented in each iteration. Hence, the aggregate time complexity is given by \( O\left( {\tfrac{1}{{\delta^{2} }}\text{log}_{2} \tfrac{1}{\delta }} \right) \).

3 Simulation Results

In the simulations, we suppose that the frame length T = 10 s, the PU’s state probabilities \( P(H_{0} ) \) = 0.2 and \( P(H_{1} ) \) = 0.8, and the SNR between the SU’s transmitter and receiver \( \gamma_{\text{s}} \) = 5 dB.

Figure 3 shows the SU’s throughput R changing with the spectrum sensing time \( \tau \) and the channel searching time \( \xi \), with the fixed number of channels L = 10. In this figure we also set the sampling frequency f s = 1 kHz, the detection probability \( P_{\text{d}} \) = 0.99, and the SNR between the SU and the PU \( \gamma_{\text{p}} \) = −10 dB. It is seen that R is a convexity, which indicates that there deed exist the optimal \( \tau \) and \( \xi \) that make R reach the maximum. When \( \tau \) = 1.8 s and \( \xi \) = 0.56 s, the maximum R = 4.23 bit·Hz-1. Figure 4 shows R versus f s = (200, 400, 600, 800, 1 k) Hz with \( \gamma_{\text{p}} \) = −15~−5 dB. It is seen that R improves with the increasing of f s, because the spectrum sensing performance of detecting PU also improves. However, compared to f s = 800 Hz, the improvement on the throughput of f s = 1 kHz is not obvious, which indicates that overmany sampling nodes will not improve the sensing performance notably, but increase the difficulty of designing hardware. Hence, it is very important to choose an appropriate sampling frequency according to our demands.

Fig. 3.
figure 3

Throughput changing with sensing time and searching time

Fig. 4.
figure 4

Throughput versus sampling frequency with different SNR

4 Conclusions

In the proposed sensing-throughput tradeoff scheme, the SU is allowed to transfer to a new idle channel to continue communication through spectrum searching, when the presence of the PU is detected. The SU’s throughput is maximized through jointly optimizing the sensing time, the searching time and the number of available channels. Through analyzing the simulation results, we get the following outlines: there deed exist the optimal solutions to the proposed scheme; the proposed scheme outperforms the conventional scheme obviously; an appropriate sampling frequency should be chosen according to our demands.