# Partial relay-based cooperative primary user detection in cognitive radio networks

- Shengliang Peng
^{1, 2}Email author, - Xi Yang
^{3}, - Shuli Shu
^{1}and - Xiuying Cao
^{3}

**2017**:94

https://doi.org/10.1186/s13638-017-0883-6

© The Author(s) 2017

**Received: **31 October 2016

**Accepted: **12 May 2017

**Published: **22 May 2017

## Abstract

In order to identify spectrum holes, secondary users (SUs) should detect whether the spectrum band is occupied by primary user (PU). Cooperative PU detection is the most prevalent PU detection method in cognitive radio (CR) networks. Existing cooperative PU detection usually consumes a dedicated reporting channel to share the detection results. This paper proposes a partial relay-based cooperative PU detection scheme that does not require any reporting channels. Our idea is to let the SU with higher signal-to-noise ratio (SNR) sacrifices part of its detection period acting as the relay node to help other SUs. Although the performance of this SU is inevitably impaired, other SUs may benefit from the relay, and performance of the whole CR network can be improved. Moreover, this paper investigates the relay policy of proposed scheme under two criteria. Considering the criterion of balancing detection accuracy, an interesting conclusion that the optimal relay policy merely depends on the SNR gap is derived. Both lower and upper bounds of the optimal relay policy are deduced as well. Considering the criterion of maximizing detection agility, numerical approach to obtain the optimal relay policy is introduced, and the agility gain is also analyzed. Simulation results are provided to verify all conclusions above.

## Keywords

## 1 Introduction

The dramatic flourish of wireless technologies has aroused great concern about spectrum resources in recent years [1–3]. Coined by Mitola [4], cognitive radio (CR) is regarded as a promising solution to the so-called “spectrum scarcity” issue by enabling the users without dedicated spectrum resources, namely secondary users (SUs), to reuse the temporal and spatial “holes” on the spectrum band that has been licensed to the primary user (PU) for exclusive use. In order to identify spectrum holes, SUs should detect whether PU is occupying its band [5, 6].

Various methods have been suggested for PU detection, and cooperative PU detection increasingly becomes the most prevalent choice as it exploits the diversity of multiple SUs in CR networks [7]. Based on how multiple SUs share their detection results, cooperative PU detection can be classified into three categories [8]: centralized manner that all SUs forward the results to a fusion center (FC) [7, 9–11], distributed manner that SUs communicate with others directly [12], and relay-assisted manner that one or more SUs serve as relays to assist other SUs in forwarding the results [13, 14]. No matter in which category of cooperation, in order to avoid interfering with PU, a dedicated reporting channel (or control channel) is used to transmit detection results, not only consuming extra spectrum resource but also incurring additional transmission errors as the channel cannot be perfect [15]. In [16], a selective-relay-based scheme is proposed to upload SUs’ binary detection results to FC on the licensed band without causing severe interference to PU. However, after combining SUs’ detection results, FC should feed its global decision back to SUs and inform them of either using or vacating the licensed band. This feedback link (from FC to SUs) still needs extra channel resources.

This paper concentrates on cooperative PU detection and proposes a partial relay-based scheme that does not require any dedicated channels. To achieve this goal, 〈1〉 PU signal that can be transmitted on licensed band is relayed instead of SUs’ detection results, and 〈2〉 decisions are individually made by SUs themselves to avoid feeding back the global decision. Different from existing partial relay selection techniques [17], the term “partial relay” in our scheme refers to that one SU spends part of its detection period acting as the relay node. Although the performance of relaying SU is inevitably impaired as its detection time is reduced, other SUs in the CR network may benefit from the relay mechanism, and thus, our scheme could be superior to the non-relay scheme from the entire CR network point of view, e.g., via improving the network detection agility. Moreover, this paper investigates how much of the detection period should be used for partial relay and deduces the optimal relay policy under the criteria of balancing detection accuracy and maximizing detection agility.

The rest of this paper is organized as follows. Section 2 introduces the model of partial relay. Section 3 analyzes the performance of partial relay-based cooperative PU detection. In Section 4, the impact of relay policy is studied under different criteria. Section 5 provides some simulation results, and Section 6 concludes this paper.

## 2 Partial relay model

*S*

*U*

_{1}and

*S*

*U*

_{2}, is considered for simplicity, as shown in Fig. 1. If there exist more than two SUs in the CR network, similar relay mechanism can be conducted by choosing one SU with the highest signal-to-noise ratio (SNR) as the relay according to literature [19]. Due to lack of spectrum resource, SUs periodically detect whether the licensed band is being used by PU; if a spectrum hole is found, they use different sub-channels of the band to transmit.

*T*

_{ d }; if the absence of PU is detected, they transmit on the licensed band during the period

*T*

_{ c }, as depicted in Fig. 2 a.

Because of various propagation conditions, the received signal-to-noise ratios (SNRs) of *S*
*U*
_{1} and *S*
*U*
_{2}, denoted by *γ*
_{1} and *γ*
_{2}, respectively, are usually different. Therefore, given the same detection period *T*
_{
d
}, the SU with higher SNR (say *S*
*U*
_{2}) may perform detection with excessive accuracy, while the SU with lower SNR (say *S*
*U*
_{1}) may suffer from numerous missed detections and cause intolerable interference to PU. Our idea is to let *S*
*U*
_{2} sacrifice part of its detection period *η*
*T*
_{
d
}(0<*η*<1) to help *S*
*U*
_{1} via relay. Then, the whole detection period of *S*
*U*
_{2} is divided into two phases, as depicted in Fig. 2
b.

*η*)

*T*

_{ d }, both

*S*

*U*

_{1}and

*S*

*U*

_{2}perform PU detection as before. The received signals of

*S*

*U*

_{1}and

*S*

*U*

_{2}are given by

where *s*(*k*) denotes the signal of PU; *s*(*k*)=0 if PU is absent; *h*
_{1}(*k*) and *h*
_{2}(*k*) denote the channels from PU transmitter to *S*
*U*
_{1} and *S*
*U*
_{2}, respectively; *n*
_{1}(*k*) and *n*
_{2}(*k*) denote the additive noises of *S*
*U*
_{1} and *S*
*U*
_{2}, respectively.

*η*

*T*

_{ d },

*S*

*U*

_{2}stops detecting and begins to relay its received signal in an immediate amplify-and-forward manner. Note that the signal is forwarded on licensed band, and thus, no extra channel is required. Although this signal affects PU receiver simultaneously, it can be treated as a multipath copy of original PU signal and collected by use of Rake technique. Consequently, the received signal of

*S*

*U*

_{1}in this phase can be expressed as

where *κ* denotes the relay gain, *h*
_{21}(*k*) denotes the channel from *S*
*U*
_{2} to *S*
*U*
_{1}.

*s*(

*k*) is binary phase shift keying signal;

*h*

_{1}(

*k*),

*h*

_{2}(

*k*), and

*h*

_{21}(

*k*) are real Gaussian with zero means;

*n*

_{1}(

*k*) and

*n*

_{2}(

*k*) are zero mean and unit variance Gaussian white noises; all these random processes are independent of each other [20]. Then, the SNR of

*S*

*U*

_{1}in the second phase is

*γ*

_{ h }denotes the impact of the relay channel from

*S*

*U*

_{2}to

*S*

*U*

_{1},

Since *γ*
_{2}>*γ*
_{1}, it is obvious that \(\gamma _{1}^{(2)}>\gamma _{1}\) according to (4). In other words, the SNR of *S*
*U*
_{1} is improved via relay, and the benefit of partial relay is proved.

## 3 Performance analysis

*S*

*U*

_{1}and

*S*

*U*

_{2}can be calculated as

where \(v_{1}^{(1)}\) and \( v_{1}^{(2)}\) are the energy observed by *S*
*U*
_{1} in the first and the second phases, respectively; *n*=*T*
_{
d
}
*f*
_{
s
} and *n*
_{1}=(1−*η*)*T*
_{
d
}
*f*
_{
s
} are the sample numbers of the whole detection period and its first phase, respectively; *f*
_{
s
} is the sampling frequency.

*v*

_{1}and

*v*

_{2}with corresponding thresholds,

*S*

*U*

_{1}and

*S*

*U*

_{2}can make decisions individually by themselves rather than obtain the global decision from FC via a dedicated channel,

*λ*

_{1}and

*λ*

_{2}represent the decision thresholds of

*S*

*U*

_{1}and

*S*

*U*

_{2}, respectively;

*H*

_{0}and

*H*

_{1}represent the hypotheses of PU’s absence and presence, respectively.

*v*

_{2}approximately follow Gaussian distributions according to the central limit theorem. The means and variances of these Gaussian variables can be derived as follows [18, 20],

*κ*= 1/

*γ*

_{ h }. In this case, the mean and variance of

*v*

_{1}can be rewritten as

*S*

*U*

_{1}and

*S*

*U*

_{2}, evaluated in term of false alarm and missed detection probabilities, can be expressed as

where *Q*(·) is the Q-function.

## 4 Relay policy optimization

*S*

*U*

_{2}takes

*T*

_{ R }=

*η*

*T*

_{ d }time off from the entire

*T*

_{ d }period to act as the relay node and help

*S*

*U*

_{1}, while its detection time is reduced to (1−

*η*)

*T*

_{ d }. If adopting a conservative relay policy and choosing a small

*T*

_{ R }, little help will be offered to

*S*

*U*

_{1}. On the contrary, if adopting an aggressive relay policy and selecting a large

*T*

_{ R },

*S*

*U*

_{2}itself will suffer from severe performance degradation. This section deals with the issue of how to determine relay policy

where the more *η* approaches 0, the more conservative relay policy is; the more *η* approaches 1, the more aggressive relay policy is.

Many criteria can be implemented to find an optimal *η*, and this paper gives two examples of balancing detection accuracy and maximizing detection agility.

### 4.1 Balancing detection accuracy

*α*. Then, the same detection accuracy of

*S*

*U*

_{1}and

*S*

*U*

_{2}can be expressed as

*λ*

_{1}and

*λ*

_{2}, an implicit equation for

*η*is obtained

where \(\phi \triangleq (1+\gamma _{1})/(1+\gamma _{2})\). According to (23), the desired relay policy, namely *η*
_{
opt
}, is determined by parameters *α*, *n*, *γ*
_{1}, and *γ*
_{2}.

*γ*

_{1})/(1+

*γ*

_{2})≈1. Then, an interesting conclusion can be derived as

where *ρ*=*γ*
_{2}/*γ*
_{1}(*ρ*>1) is the ratio of *γ*
_{2} to *γ*
_{1}. That is, the optimal relay policy *η*
_{
opt
} to balance the detection accuracy of *S*
*U*
_{1} and *S*
*U*
_{2} merely depends on their SNR gap *ρ*.

*η*

_{ opt }is monotonically increasing in

*ρ*, its lower and upper bounds are given by

Therefore, *S*
*U*
_{2} should spend at least 42.9*%* and at most 87.2*%* of its detection period in assisting *S*
*U*
_{1} regardless of *ρ*.

*S*

*U*

_{1}and

*S*

*U*

_{2}have the same SNR, their detection accuracy will be originally equal and no relay is required to balance their accuracy, namely

*η*

_{ opt }(1) = 0. This phenomenon is not in contradiction with our results. When deducing (24), a quadratic equation is solved and two solutions are produced,

Note that another solution \(({5\rho -2-}\sqrt {53\rho ^{2}-20\rho -24})/(14\rho)\) has been discarded as the relay policy cannot be negative. Its right-hand limit is 0 as *ρ* approaches 1.

### 4.2 Maximizing detection agility

where *k*
_{
η
} denotes the number of detections required to vacate the band. Obviously, larger *T*
_{
η
} results in lower agility, and smaller *T*
_{
η
} leads to higher agility.

Detailedly, in the two-SU CR network of this paper, since *S*
*U*
_{1} and *S*
*U*
_{2} usually share the licensed band by using different code or frequency sub-channels when PU is absent, the band is vacated only if they both stop transmitting. Moreover, as there exists no fusion center in the CR network, if one SU finds the presence of PU out, it can hardly inform another SU about this message and ask it to vacate the band as considered in [13]. Consequently, the licensed spectrum band can be completely vacated only in case that both *S*
*U*
_{1} and *S*
*U*
_{2} have detected out the presence of PU separately.

*S*

*U*

_{1}and

*S*

*U*

_{2}to both detect out the presence of PU after PU emerges is not fixed. This number

*k*

_{ η }is essentially a random variable, and the probability of

*k*

_{ η }=

*l*is given by

*k*

_{ η }can be expressed as

Given a specific relay policy *η*, both *P*
_{
m1} and *P*
_{
m2} can be calculated according to (18) and (20). Substituting these missed detection probabilities into (31), the average vacating time *E*{*T*
_{
η
}} can also be obtained theoretically. Repeating two steps above and implementing numerical search, it is easy to find out the optimal relay policy *η*
_{
opt
}, with which *E*{*T*
_{
η
}} can be minimized. In partial scenarios, if *S*
*U*
_{2} spends *η*
_{
opt
} portion of its detection period acting as the relay node, detection agility of the entire CR network can be maximized eventually.

where *E*{*T*
_{0}} is the average vacating time of non-cooperation. The detailed analysis on agility gain can be found in the next section.

## 5 Simulation results

This section provides some simulation results to illustrate the partial relay-based cooperative PU detection and its relay policy. The simulation settings are *α*=0.1,*γ*
_{1}=−20*d*
*B*,*n*=600,*T*
_{
d
}=*T*
_{
c
}=*n*
*f*
_{
s
}, and *f*
_{
s
}=21.524476 M samples/sec [21]. Unless otherwise specified, we assume *κ*·*γ*
_{
h
}=1.

*S*

*U*

_{1}and

*S*

*U*

_{2}versus the relay policy under different SNRs of

*γ*

_{2}=−8,−10,−12,−14 dB. Obviously, in case of non-cooperation (

*η*=0),

*S*

*U*

_{1}causes too many detection errors as its SNR is extremely low. So no matter how well

*S*

*U*

_{2}performs, PU is interfered seriously. As

*η*increases,

*P*

_{ m1}decreases and

*P*

_{ m2}increases; the larger

*γ*

_{2}is, the more sharply

*P*

_{ m1}and

*P*

_{ m2}change. It is because

*S*

*U*

_{2}sacrifices

*η*

*T*

_{ d }time to aid

*S*

*U*

_{1}by relay, and more powerful

*S*

*U*

_{2}could offer more help. The curves of

*P*

_{ m1}and

*P*

_{ m2}intersect eventually. This indicates the detection accuracy of two SUs has been balanced. Note that the points of (

*η*

_{ opt },

*P*

_{ m }) calculated according to (24) and (18) and the bounds of

*η*

_{ opt }derived from (25) and (26) are also plotted in this figure. Since all curve intersections agree well with these points and bounds, theoretical analysis on relay policy is verified. If

*η*continues increasing and becomes larger than

*η*

_{ opt }, the performance of

*S*

*U*

_{1}will get better while

*S*

*U*

_{2}will suffer from excessive missed detection errors. That is not what we expected either.

*S*

*U*

_{2}to

*S*

*U*

_{1}. Figure 4 depicts their relationship. As shown in this figure,

*S*

*U*

_{2}should spend at least 42.9% of its detection period on relay. When the SNR ratio

*ρ*increases, the optimal relay policy

*η*

_{ opt }grows, but its growth speed gradually slows down. If

*ρ*is larger than 15 dB, increase in

*ρ*causes little impact on

*η*

_{ opt }, and

*η*

_{ opt }approaches 82.7%. That is,

*S*

*U*

_{2}should spend at most 82.7% of its detection period acting as the relay.

*E*{

*T*

_{ η }} versus relay policy

*η*for different SNRs of

*S*

*U*

_{2}(

*γ*

_{2}=0,−5,−10,−15 dB). In this figure, all curves are concave, which means that both excessively conservative

*η*and excessively aggressive

*η*result in high vacating time and low agility. Therefore, it is necessary to choose an appropriate

*η*. Implementing numerical search as suggested in Section 4, we derive the optimal relay policy

*η*

_{ opt }for each

*γ*

_{2}and plot them with red diamond markers. As shown in the figure, all markers are located at the bottom of the corresponding vacating time curves, so our method of deducing

*η*

_{ opt }is verified. In addition,

*η*

_{ opt }increases as

*γ*

_{2}increases. This phenomenon indicates that

*S*

*U*

_{2}should adopt a more aggressive relay policy if its SNR is higher.

*τ*

_{ η }versus relay policy

*η*under different SNRs of

*S*

*U*

_{2}(

*γ*

_{2}= 0,−5,−10,−15 dB). The red diamond marker on each curve shows the optimal relay policy

*η*

_{ opt }that has been discussed in Fig. 5 and its corresponding maximum agility gain. As shown in Fig. 6, all curves approach 1 as

*η*approaches 0. This is because when

*η*is very small,

*S*

*U*

_{2}spends little time acting as the relay node, and thus produces little agility improvement. Moreover, when

*η*<

*η*

_{ opt },

*τ*

_{ η }increases as

*η*increases, and its increase speed is higher if

*γ*

_{2}is larger. For

*γ*

_{2}= 0 dB,

*τ*

_{ η }can reach as much as 7.3. In other words, the detection agility can be improved by 630%. It should also be pointed out that, when

*η*>

*η*

_{ opt }, increase in

*η*does not cause positive impact on

*τ*

_{ η }any longer. Especially, when

*γ*

_{2}= −15 dB and

*η*>0.5,

*τ*

_{ η }is smaller than 1, which indicates that the detection agility turns worse after partial relay. As a result, it is better to avoid adopting an extremely aggressive relay policy when the SNR of

*S*

*U*

_{2}is very low.

*κ*and relay channel

*γ*

_{ h }, Fig. 7 considers different values of

*κ*·

*γ*

_{ h }(

*κ*·

*γ*

_{ h }=6,3,0,−3,−6 dB) with

*γ*

_{2}=−5 dB. Obviously, given the same relay policy

*η*, higher detection agility gain is achieved if

*κ*·

*γ*

_{ h }is larger. This phenomenon can be explained as follows. A large

*κ*incurs great amplification of relay signal and a high

*γ*

_{ h }(low path loss of relay channel) represents little attenuation in relay signal, both of which are beneficial for our partial relay mechanism. In addition, the highest points of agility gain curves are also marked with red diamond markers in Fig. 7. These markers show that the optimal relay policy should be more conservative (smaller) if

*κ*·

*γ*

_{ h }is larger.

## 6 Conclusions

A partial relay-based cooperative PU detection scheme that did not require any dedicate reporting channels was proposed in this paper. False alarm and missed detection probabilities of the proposed scheme were analyzed. How to determine its relay policy was also investigated. Taking the criterion of balancing detection accuracy for example, closed-form expression, lower bound, and upper bound of the optimal relay policy were deduced. We proved that, in order to avoid either of SUs causing too much interference, the SU with higher SNR should spend at least 42.9*%* and at most 87.2*%* of its detection period acting as the relay node. Considering the criterion of maximizing detection agility, we showed that, although the performance of relaying SU was inevitably impaired, detection agility of the whole CR network could be improved by as much as 630% via choosing an optimal relay policy.

## Declarations

### Acknowledgements

The authors would like to thank the National Natural Science Foundation of China (grant nos. 61201264 and 61362018), China Scholarship Council (grant no. 201508350023), and Huaqiao University (grant no.13BS101) for their supports.

### Authors’ contributions

The majority of this work is done by SP. All other authors revised the manuscript. All authors read and approved the final manuscript.

### Competing interests

The authors declare that they have no competing interests.

### Publisher’s Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

**Open Access** This article is distributed under the terms of the Creative Commons Attribution 4.0 International License(http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made.

## Authors’ Affiliations

## References

- H Zhu, J Wang, Chunk-based resource allocation in OFDMA systems-part I: chunk allocation. IEEE Trans. Commun.
**57**(9), 2734–2744 (2009).View ArticleGoogle Scholar - H Zhu, J Wang, Chunk-based resource allocation in OFDMA systems-part II: joint chunk, power and bit allocation. IEEE Trans. Commun.
**60**(2), 499–509 (2012).View ArticleGoogle Scholar - H Zhu, Radio resource allocation for OFDMA systems in high speed environments. IEEE J. Sel. Areas Commum.
**30**(4), 748–759 (2012).View ArticleGoogle Scholar - J Mitola, GQ Maguire, Cognitive radio: making software radios more personal. IEEE Pers. Commun.
**6**(4), 13–18 (1999).View ArticleGoogle Scholar - Q Zhao, BM Sadler, A survey of dynamic spectrum access. IEEE Signal Process. Mag.
**24**(3), 79–89 (2007).View ArticleGoogle Scholar - C-S Sum, GP Villardi, MA Rahman, T Baykas, HN Tran, Z Lan, C Sun, Y Alemseged, J Wang, C Song, C-W Pyo, S Filin, H Harada, Cognitive communication in TV white spaces: an overview of regulations, standards, and technology. IEEE Commun. Mag.
**51**(7), 138–145 (2013).View ArticleGoogle Scholar - J Unnikrishnan, VV Veeravalli, Cooperative sensing for primary detection in cognitive radio. IEEE J. Sel. Topics Signal Process.
**2**(1), 18–27 (2008).View ArticleGoogle Scholar - IF Akyildiz, BF Lo, R Balakrishnan, Cooperative spectrum sensing in cognitive radio networks: a survey. Phys. Commun.
**4:**, 40–62 (2011).View ArticleGoogle Scholar - J Ma, Y Li, in
*2007 IEEE Global Telecommunications Conference (GLOBECOM)*. Soft combination and detection for cooperative spectrum sensing in cognitive radio networks (IEEEWashington, DC, 2007), pp. 3139–3143.Google Scholar - W Choi, M-G Song, J Ahn, G-H Im, Soft combining for cooperative spectrum sensing over fast-fading channels. IEEE Commun. Lett.
**18**(2), 193–196 (2014).View ArticleGoogle Scholar - W Han, J Li, Z Li, J Si, Y Zhang, Efficient soft decision fusion rule in cooperative spectrum sensing. IEEE Trans. Signal Process.
**61**(8), 1931–1943 (2013).MathSciNetView ArticleGoogle Scholar - Z Li, FR Yu, M Huang, A distributed consensus-based cooperative spectrum-sensing scheme in cognitive radios. IEEE Trans. Veh. Technol.
**59**(1), 383–393 (2010).View ArticleGoogle Scholar - G Ganesan, Y Li, Cooperative spectrum sensing in cognitive radio, part i: two user networks. IEEE Trans. Wirel. Commun.
**6**(6), 2204–2213 (2007).View ArticleGoogle Scholar - J Si, Z Li, J Chen, H Huang, in
*2012 IEEE International Conference on Communications (ICC)*. On the performance of cognitive relay networks with cooperative spectrum sensing (IEEEOttawa, 2012), pp. 1709–1714.View ArticleGoogle Scholar - Y Zou, Y-D Yao, B Zheng, Cooperative relay techniques for cognitive radio systems: spectrum sensing and secondary user transmissions. IEEE Commun. Mag.
**50**(4), 98–103 (2012).View ArticleGoogle Scholar - Y Zou, Y-D Yao, B Zheng, A selective-relay based cooperative spectrum sensing scheme without dedicated reporting channels in cognitive radio networks. IEEE Trans. Wirel. Commun.
**10**(4), 1188–1198 (2011).View ArticleGoogle Scholar - I Krikidis, J Thompson, J Thompson, N Goertz, Amplify-and-forward with partial relay selection. IEEE Commun. Lett.
**12**(4), 235–237 (2008).View ArticleGoogle Scholar - S Peng, S Shu, X Yang, X Cao, in
*2012 IEEE Wireless Communications and Networking Conference (WCNC)*. Relay based cooperative spectrum sensing in distributed cognitive radio networks (IEEEParis, 2012), pp. 1370–1374.View ArticleGoogle Scholar - G Ganesan, Y Li, Cooperative spectrum sensing in cognitive radio, part ii: multiuser networks. IEEE Trans. Wirel. Commun.
**6**(6), 2214–2222 (2007).View ArticleGoogle Scholar - Y-C Liang, Y Zeng, ECY Peh, AT Hoang, Sensing-throughput tradeoff for cognitive radio networks. IEEE Trans. Wirel. Commun.
**7**(4), 1326–1337 (2008).View ArticleGoogle Scholar - Y Zeng, Y-C Liang, in
*2007 2nd IEEE International Symposium on New Frontiers in Dynamic Spectrum Access Networks (DySPAN)*. Covariance based signal detections for cognitive radio (IEEEDublin, 2007), pp. 202–207.View ArticleGoogle Scholar