# On the security of cooperative cognitive radio networks with distributed beamforming

- Weifeng Mou
^{1}View ORCID ID profile, - Weiwei Yang
^{1}Email authorView ORCID ID profile, - Yuzhen Huang
^{1}, - Xiaoming Xu
^{1}, - Yueming Cai
^{1}and - Kaihua Wang
^{1}

**2017**:144

https://doi.org/10.1186/s13638-017-0923-2

© The Author(s) 2017

**Received: **10 October 2016

**Accepted: **28 July 2017

**Published: **29 August 2017

## Abstract

This paper investigates the secrecy performance of amplify-and-forward (AF)-relaying cooperative cognitive radio networks (CCRNs) over Rayleigh-fading channels. Specifically, we consider practical passive eavesdropping scenarios, where the channel state information of the eavesdropper’s link is not available at the secondary transmitter. In order to avoid interfering with the primary receiver and enhance the secrecy performance, collaborative distributed beamforming is adopted at the secondary relays. Closed-form and asymptotic expressions for the secrecy outage probability of CCRNs in the presence of single and multiple non-colluding eavesdroppers are derived. The asymptotic analysis reveals that the achievable secrecy diversity order of collaborative distributed beamforming with *M* AF relays is *M*−1 regardless of the number of eavesdroppers. In addition, simulations are conducted to validate the accuracy of our analytical results.

## Keywords

## 1 Introduction

Cognitive radio has been regarded as a potential means to improve spectral efficiency by allowing secondary users (SUs) to share the spectrum originally allocated to the primary users (PUs), as long as the generated interference aggregated at the primary receivers is below acceptable levels [1]. In order to enhance system performance and extend the coverage of secondary transmission, cooperative relay techniques have been further introduced into cognitive radio networks (CRNs), and thus, a novel network model, cooperative cognitive radio networks (CCRNs), has attracted significant interests in the research community [2]. On the other hand, due to the broadcast nature of wireless medium and the openness of cognitive radio architecture, CRNs face a more serious challenge of security, and higher layer cryptographic authentication and identification have become expensive and vulnerable to attacks [3]. Recently, a promising approach towards achieving secure communications has been developed by Wyner in [4] termed as physical layer security, the key idea of which lies in exploiting the randomness of wireless channels to ensure the security of confidential information.

Due to the advantages of physical layer security, many researchers have devoted efforts to investigate the physical layer security issues in CRNs [5–10]. In [5], the secrecy performance of CRNs in terms of the secrecy outage probability and the probability of non-zero secrecy capacity was analyzed. In [6], the authors investigated the achievable secrecy rates of multiple-input single-output (MISO) CRNs with different beamforming schemes. Later, the secrecy outage performance of single-input multiple-output (SIMO) CRNs using selection combining (SC) and generalized selection combining (GSC) was investigated in [7] and [8], respectively. The authors in [9] investigated the secrecy outage and diversity performance for multi-user multi-eavesdropper CRNs. The exact and asymptotic expressions of the secrecy outage probability in multiple-input multiple-output (MIMO) CRNs with transmit antenna selection (TAS)/maximal ratio combining (MRC) were derived in [10].

In addition to the multi-antenna diversity, user cooperation can also be exploited to enhance the security of wireless transmission. The authors in [11] proposed an opportunistic decode-and-forward (DF)-relaying scheme for CCRNs against eavesdropping. In [12], we investigated the secrecy outage performance for DF-relaying CCRNs with outdated channel state information. Different joint relay and jammer selection policies were developed to enhance the secrecy outage performance for DF-relaying CCRNs in [13]. The security-reliability trade-off performance of single-relay and multi-relay selection strategies for DF-relaying CCRNs was investigated in [14]. However, very few research has considered the secrecy performance of amplify-and-forward (AF)-relaying CCRNs except [15], in which the authors investigated the security and the reliability performance of CCRNs with single AF relay in terms of the intercept probability. It is worth noting that the intercept probability is a special case of secrecy outage probability when the target secrecy data rate is set to zero. To the best of the authors’ knowledge, no works have considered the secrecy outage probability of CCRNs with multiple AF relays. Besides, various advanced techniques have been employed to enhance the physical layer security of CRNs, such as multiple antenna diversity in [7–10], relay selection in [11–14], artificial noise in [13], and secrecy beamforming/precoding in [6]. However, collaborative distributed beamforming-based security enhancement in CCRNs has not been investigated yet.

- 1)
Compared with [11–14] that only considered the relay selection for DF-relaying CCRNs and [15] that only considered the intercept probability for single AF-relaying CCRNs, we investigate the physical layer security in terms of the probability of non-zero secrecy capacity, the secrecy outage probability, the secrecy array gain, and the secrecy diversity order for multiple AF-relaying CCRNs with collaborative distributed beamforming in the presence of single and multiple non-colluding eavesdroppers, respectively, where distributed zero-forcing beamforming (D-ZFB) is employed at the relays without interfering with the primary users.

- 2)
We derive the closed-form expressions of the probability of non-zero secrecy capacity and the secrecy outage probability as well as the asymptotic expression at high SNR regimes. Our asymptotic results accurately predict the secrecy diversity order of

*M*AF relay CCRNs with collaborative distributed beamforming, i.e.,*M*−1, which is different from the results obtained in [11] and [13]. This is due to the fact that the proposed collaborative distributed beamforming scheme is designed at relays to avoid the interference at PUs at the expense of one spatial degree. In addition, numerical and simulation results are provided to verify the correctness of the proposed scheme.

## 2 System model

*S*),

*M*AF relays (

*R*

_{1},⋯,

*R*

_{ M }), one secondary destination (

*D*), one primary receiver (

*P*), and one passive eavesdropper (

*E*), as shown in Fig. 1. All the nodes are equipped with a single antenna and operate in half-duplex mode. We assume that the direct links from

*S*to

*D*and from

*S*to

*E*do not exist due to severe shadowing environment. The data transmission from

*S*to

*D*can only be done with the help of relays, with the possible wiretap from the eavesdropper. We assume that all channels experience slow block fading and additive white Gaussian noise (AWGN) with variance of \(\sigma _{0}^{2} \), where the fading coefficients are invariant during one fading block and the corresponding channel gains follow independent Rayleigh distribution. Let

*h*

_{ ab }denote the channel coefficient between

*a*and

*b*. The channel power gains \(\left | {h_{SR_{i} } } \right |^{2} \), \(\left | {h_{R_{i} D} } \right |^{2} \), \(\left | {h_{R_{i} E} } \right |^{2} \), \(\left | {h_{R_{i} P} } \right |^{2} \), and |

*h*

_{ SP }|

^{2}are independent and exponentially distributed with parameters \(\lambda _{SR_{i}} \), \(\lambda _{R_{i} D} \), \(\lambda _{R_{i}E} \), \(\lambda _{R_{i} P} \), and

*λ*

_{ SP }, respectively. Without loss of generation, all the secondary relays are close to each other and forming a cluster, i.e., \(\lambda _{SR_{i}} = \lambda _{SR}\), \(\lambda _{R_{i} D}= \lambda _{R D} \), \(\lambda _{R_{i}E}= \lambda _{RE} \), and \(\lambda _{R_{i} P} =\lambda _{RP} \) for all

*i*. \({\mathbf {h}}_{SR} = \left [ {h_{SR_{1} }, \cdots,h_{SR_{M} } } \right ]^{T} \), \({\mathbf {h}}_{RD} = \left [ {h_{R_{1} D}, \cdots,h_{R_{M} D} } \right ]^{T} \), \({\mathbf {h}}_{RE} = \left [ {h_{R_{1} E}, \cdots,h_{R_{M} E} } \right ]^{T} \), and \({\mathbf {h}}_{RP} = \left [ {h_{R_{1} P}, \cdots,h_{R_{M} P} } \right ]^{T} \) represent the channel vectors between the secondary source and the relays, between the relays and the secondary destination, between the relays and the eavesdropper, and between the relays and the primary receiver, respectively. It is worth mentioning that we focus on a passive eavesdropper scenario, where the instantaneous channel state information (CSI) of the eavesdropper’s link

**h**

_{ RE }is not known at the secondary source. In addition, the CSI of interference links, e.g., \(\left | {h_{R_{i} P} } \right |^{2} \) and |

*h*

_{ SP }|

^{2}, can be acquired through a spectrum-band manager that mediates between the primary and secondary networks. However, for those cases where the secondary network has no knowledge of the interference channel, our results serve as performance bounds for the considered CCRNs and represent efficient system design tools [17].

The transmission is divided into two slots. In the first phase, the secondary source broadcasts the encoded confidential data. According to the underlaying spectrum-sharing approach, the secondary source adjusts its transmit power *P*
_{
S
} under a predefined threshold *I* to guarantee the quality of service of the primary user. Hence, the transmit power at the secondary source is constrained as *P*
_{
S
}=*I*
*/*|*h*
_{
sp
}|^{2} [7]. In the second phase, the relays amplify and forward the received signals to the destination with the transmit power *P*
_{
R
}. In order to avoid interfering with the primary transmission and maximize the mutual information of the secondary system, the D-ZFB scheme is applied to null the interference to the primary receiver, and the *M*×1 D-ZFB weight vector is the solution of the following problem, mathematically, \(\begin {array}{l}\mathop {\max }\limits _{{{\mathbf {w}}_{ZF}}} \left | {{\mathbf {h}}_{RD}^{H}{{\mathbf {w}}_{ZF}}} \right |\\ s.t.\left | {{\mathbf {h}}_{RP}^{H}{{\mathbf {w}}_{ZF}}} \right | = 0\\ ~~~~~{\left \| {{{\mathbf {w}}_{ZF}}} \right \|^{2}} = 1 \end {array}\)

By applying a standard Lagrangian multiplier method, the optimal weight vector is given as **w**
_{
ZF
}=**T**
^{⊥}
**h**
_{
RD
}
*/*∥**T**
^{⊥}
**h**
_{
RD
}∥, where \({{\mathbf {T}}^ \bot } = {\mathbf {I}} - {{\mathbf {h}}_{RP}}\left ({{\mathbf {h}}_{RP}^{H}{{\mathbf {h}}_{RP}}} \right){\mathbf {h}}_{RP}^{H}\) is the projection idempotent matrix with rank (*M*−1).

*D*and

*E*is given as

where \(\gamma _{1} = {{\left ({{I \mathord {\left / {\vphantom {I {\sigma _{0}^{2} }}} \right. \kern -\nulldelimiterspace } {\sigma _{0}^{2} }}} \right)\left \| {{\mathbf {h}}_{SR} } \right \|^{2} } \mathord {\left / {\vphantom {{\left ({{I \mathord {\left / {\vphantom {I {\sigma _{0}^{2} }}} \right. \kern -\nulldelimiterspace } {\sigma _{0}^{2} }}} \right)\left \| {{\mathbf {h}}_{SR} } \right \|^{2} } {\left | {h_{SP} } \right |^{2} }}} \right. \kern -\nulldelimiterspace } {\left | {h_{SP} } \right |^{2} }}\), \(\gamma _{2} \! =\!\! \left ({{{P_{R} } \mathord {\left / {\vphantom {{P_{R} } {\sigma _{0}^{2} }}} \right. \kern -\nulldelimiterspace } {\sigma _{0}^{2} }}} \right)\left | {{\mathbf {T}}^ \bot {\mathbf {h}}_{RD} } \right |^{2}\! \), and \(\gamma _{E} = \left ({{{P_{R} } \mathord {\left / {\vphantom {{P_{R} } {\sigma _{0}^{2} }}} \right. \kern -\nulldelimiterspace } {\sigma _{0}^{2} }}} \right)\left | {{\mathbf {h}}_{RE}^{H} {\mathbf {w}}_{ZF} } \right |^{2} \) denote the equivalent instantaneous SNRs at the *S*-*R*, *R*-*D*, and *R*-*E* links, respectively.

**h**

_{ SR }∥

^{2}is a chi-square random variable with 2

*M*degrees of freedom with parameter

*λ*

_{ SR }due to \({{h}}_{SR_{i}},i = 1, \cdots,M\) being i.i.d exponential distribution variables with parameter

*λ*

_{ SR }, and |

*h*

_{ SP }|

^{2}is an exponential random variable with parameter

*λ*

_{ SP }, then the cumulative distribution function (CDF) of

*γ*

_{1}is given by

where \(\bar \gamma _{1} = {{\left ({I\lambda _{SR} } \right)} \mathord {\left / {\vphantom {{\left ({I\lambda _{SR} } \right)} {\left ({\lambda _{SP} \sigma _{0}^{2} } \right)}}} \right. \kern -\nulldelimiterspace } {\left ({\lambda _{SP} \sigma _{0}^{2} } \right)}}\).

*M*−1), (

**T**

^{⊥})

^{ H }

**T**

^{⊥}is a Hermitian matrix with rank (

*M*−1). Based on [18, Theorem 2], \({\mathbf {\rlap {--} h}}_{RD}^{H}{\left ({{{\mathbf {T}}^ \bot }} \right)^{H}}{{\mathbf {T}}^ \bot }{{\mathbf {\rlap {--} h}}_{RD}}\) is a chi-square random variable with 2(

*M*−1) degrees of freedom. Then, the CDF of \({\gamma _{2}} = \left ({{{{P_{R}}} \mathord {\left / {\vphantom {{{P_{R}}} {\sigma _{D}^{2}}}} \right. \kern -\nulldelimiterspace } {\sigma _{D}^{2}}}} \right){\left | {{{\mathbf {T}}^ \bot }{{\mathbf {h}}_{RD}}} \right |^{2}} = \left ({{{{P_{R}}{\lambda _{RD}}} \mathord {\left / {\vphantom {{{P_{R}}{\lambda _{RD}}} {\sigma _{D}^{2}}}} \right. \kern -\nulldelimiterspace } {\sigma _{D}^{2}}}} \right){\mathbf {\rlap {--} h}}_{RD}^{H}{\left ({{{\mathbf {T}}^ \bot }} \right)^{H}}{{\mathbf {T}}^ \bot }{{\mathbf {\rlap {--} h}}_{RD}}\) is given by

where \(\bar {\gamma }_{2} = {{P_{R} \lambda _{RD} } \mathord {\left / {\vphantom {{P_{R} \lambda _{SD} } {\sigma _{0}^{2} }}} \right. \kern -\nulldelimiterspace } {\sigma _{0}^{2} }}\), *Γ*(·) is the gamma function [19, (8.310.1)], and *Γ*(·,·) is the incomplete gamma function [19, (8.350.2)].

## 3 Secrecy performance analysis with single eavesdropper

In this section, we characterize secrecy performance of the multiple AF-relaying cooperative cognitive radio network with collaborative distributed beamforming in terms of the probability of non-zero secrecy capacity, the secrecy outage probability, the secrecy array gain, and the secrecy diversity order.

Throughout this work, we focus on the passive eavesdropping scenario, where the secondary source does not have the channel information of the equivalent *S*-*R*-*E* link and has no choice but to encode the confidential data with a constant codeword rate *R*
_{
S
}>0, which is the target secrecy data rate for the considered system. If *R*
_{
S
} is less than secrecy capacity, perfect secrecy can be guaranteed. Otherwise, *E* can eavesdrop on the confidential data; therefore, perfect secrecy is compromised.

### 3.1 The probability of non-zero secrecy capacity

where the probability density function (PDF) of *γ*
_{
E
} is \(f_{\gamma _{E} } \left (\gamma \right) = {{\exp \left ({ - {\gamma \mathord {\left / {\vphantom {\gamma {\bar \gamma _{E} }}} \right. \kern -\nulldelimiterspace } {\bar \gamma _{E} }}} \right)} \mathord {\left / {\vphantom {{\exp \left ({ - {\gamma \mathord {\left / {\vphantom {\gamma {\bar \gamma _{E} }}} \right. \kern -\nulldelimiterspace } {\bar \gamma _{E} }}} \right)} {\bar \gamma _{E} }}} \right. \kern -\nulldelimiterspace } {\bar \gamma _{E} }}\) and \(\bar \gamma _{E} = {{P_{R} \lambda _{RE} } \mathord {\left / {\vphantom {{P_{R} \lambda _{RE} } {\sigma _{E}^{2} }}} \right. \kern -\nulldelimiterspace } {\sigma _{0}^{2} }}\).

It is obvious that the probability of non-zero secrecy capacity is independent of the tolerable interference level *I* in the primary network, which is due to the fact that D-ZFB is employed to null the interference to PUs in the second phase.

### 3.2 Secrecy outage probability

*C*

_{ S }<

*R*

_{ S }and can be expressed as

where \(\gamma _{th} = 2^{2R_{S} } \phantom {\dot {i}\!}\) denotes the secrecy SNR threshold.

where we employ the approximations of (1+*x*)*/*(1+*y*)≈*x*
*/*
*y* in (a), *x*
*y*
*/*(1+*x*+*y*)≈*x*
*y*
*/*(*x*+*y*) in (b), and \(\frac {{xy}}{{x + y}} \approx \min \left ({x,y} \right)\) in (c). These approximations have been used in [20, 21], and the effect of the approximation error can be neglected in the medium and high SNR regimes.

*Z*as follows:

where \(\alpha = {{\bar \gamma _{1} } \mathord {\left / {\vphantom {{\bar \gamma _{1} } {\left ({\gamma _{th} - 1} \right)}}} \right. \kern -\nulldelimiterspace } {\left ({\gamma _{th} - 1} \right)}}\), \(\beta = {{\gamma _{th} } \mathord {\left / {\vphantom {{\gamma _{th} } {\bar \gamma _{2} }}} \right. \kern -\nulldelimiterspace } {\bar \gamma _{2} }} + {1 \mathord {\left / {\vphantom {1 {\bar \gamma _{E} }}} \right. \kern -\nulldelimiterspace } {\bar \gamma _{E} }}\) and *W*
_{
m,n
}(*x*) is the Whittaker function [19, (9.222.1)]. It is noted from (14) that the secrecy outage probability expression is derived in closed form and can be easily applied to evaluate the secrecy performance with arbitrary numbers of relays, arbitrary average SNRs, and arbitrary interference constraint level.

### 3.3 Asymptotic secrecy outage probability

In this subsection, in order to exploit a novel insight of design, the asymptotic analysis for the secrecy outage probability was provided to characterize the behavior under the high SNR of legitimate links. The asymptotic result enables us to explicitly examine the impact of collaborative distributed beamforming on the secrecy performance in terms of the secrecy diversity order. Without loss of generation, let *λ*
_{
SR
}=*λ*
_{
RD
}=*λ*→*∞*, namely \(\bar \gamma _{2} = \kappa \bar \gamma _{1} = \bar \gamma \to \infty \), where *κ*=*P*
_{
R
}
*λ*
_{
SP
}
*/*
*I*. Here, \(\bar \gamma \to \infty \) corresponds to the scenario where the relays have high received SNRs at the first phase and the secondary destination are located much closer to the relays than the eavesdropper, which is a practical scenario of interest. It is obvious that \({{\bar \gamma } \mathord {\left / {\vphantom {{\bar \gamma } {\bar \gamma _{E} }}} \right. \kern -\nulldelimiterspace } {\bar \gamma _{E} }} = {\lambda \mathord {\left / {\vphantom {\lambda {\lambda _{RE} }}} \right. \kern -\nulldelimiterspace } {\lambda _{RE} }} \to \infty \) for a given \(\bar \gamma _{E}\) when \(\bar \gamma \to \infty \). Similar to [7], we denote *M*
*E*
*R*=*λ*
_{
SD
}
*/*
*λ*
_{
RE
} as the ratio of average channel gain from the relays to the secondary destination to that from the relays to the eavesdropper.

where *o*(·) denotes higher order terms.

*M*

*E*

*R*

^{−(M−1)}for

*M*

*E*

*R*→

*∞*. Thus, the achievable secrecy diversity order of the proposed collaborative distributed beamforming yields to

which implies that as the number of relays increases, the slope of the secrecy outage probability curve becomes steeper when *M*
*E*
*R*→*∞* in the geometric sense. Therefore, collaborative distributed beamforming can effectively improve the physical layer security of cognitive transmission to defend against eavesdropping attacks. However, comparing with the relay selection scheme in [11] and [13], the proposed collaborative distributed beamforming scheme cannot achieve the full diversity order, i.e., *d*=*M*. This is because the proposed collaborative distributed beamforming scheme allocates the power into the projected channels to enforce zero interference to the PUs, which reduces the achievable secrecy diversity order to *M*−1.

## 4 Secrecy performance with multiple eavesdroppers

*K*non-colluding eavesdroppers, as shown in Fig. 2. We assume that all the eavesdroppers are located close to each other, which implies the same average received SNR at eavesdroppers. We denote \({\mathbf {h}}_{RE_{k} } = \left [ {h_{R_{1} E_{k} }, \cdots,h_{R_{M} E_{k} } } \right ]^{T} \) as the channel vector between the relays and the

*k*th eavesdropper. Then, the equivalent instantaneous SNR between the relays and the

*k*th eavesdropper can be denoted by \(\gamma _{E_{k} } = \left ({{{P_{R} } \mathord {\left / {\vphantom {{P_{R} } {\sigma _{0}^{2} }}} \right. \kern -\nulldelimiterspace } {\sigma _{0}^{2} }}} \right)\left | {{\mathbf {h}}_{RE_{k} }^{H} {\mathbf {w}}_{ZF} } \right |^{2} \), which is exponentially distributed with the same parameter \(\bar \gamma _{E} \).

*K*non-colluding eavesdroppers can be formulated as

where \(f_{\gamma _{E}^{K} } \left (\gamma \right)\) denotes the PDF of \(\gamma _{E}^{K} = \mathop {\max }\limits _{k = 1, \cdots,K} \gamma _{E_{k}}\).

*K*non-colluding eavesdroppers can be derived as

*K*non-colluding eavesdroppers is further expressed as

where \(\eta = {{\gamma _{th} } \mathord {\left / {\vphantom {{\gamma _{th} } {\bar {\gamma }_{2} }}} \right. \kern -\nulldelimiterspace } {\bar {\gamma }_{2} }} + {{\left ({k + 1} \right)} \mathord {\left / {\vphantom {{\left ({k + 1} \right)} {\bar {\gamma }_{E} }}} \right. \kern -\nulldelimiterspace } {\bar {\gamma }_{E} }}\).

*K*non-colluding eavesdroppers can be derived as

*K*non-colluding eavesdroppers is still

*M*−1, which means that the secrecy diversity performance is independent of the number of eavesdroppers. However, the achievable secrecy array gain is different due to the presence of multiple non-colluding eavesdroppers, which can be yielded as

It is indicated from (18) and (26) that the achievable secrecy array gain decreases with increasing *K*, which results in a decrease in the secrecy outage performance.

## 5 Numerical and simulation results

In this section, Monte Carlo simulations are provided to validate our analytical expressions over Rayleigh-fading channels. We assume that *R*
_{
s
}=0.1 bit/s/Hz, *P*
_{
R
}=20 dB, \(\sigma _{0}^{2} = 1\), *λ*
_{
SR
}=*λ*
_{
RD
}=1, and *λ*
_{
SP
}=*λ*
_{
RP
}=0.3. It is worth noting that the primary and secondary users are spatially separated in two different wireless networks. As such, an average channel gain (*λ*
_{
SP
} and *λ*
_{
RP
}) between two heterogeneous users from the different networks is set to be smaller than that (*λ*
_{
SR
} and *λ*
_{
RD
}) between two heterogeneous users from the same networks.

*I*for various

*M*over Rayleigh-fading channels. The analytical results based on (14) are in precise agreement with the Monte Carlo simulations. It is shown that for a fixed

*M*, the secrecy outage probability decreases with increasing

*I*, which increases the transmitting power at the secondary source and improves the transmission reliability of S-R links. We can also see that there exists a secrecy outage performance floor in the high

*I*region. It is because the secrecy outage performance is determined by second hop links when

*I*→

*∞*. On the other hand, the secrecy outage performance is improved with larger

*M*, as more relays do not only help improve the communication quality of S-R links but also enhance security of R-D links. As shown in Fig. 3, as the number of relays increases from

*M*= 3 to 5, the secrecy outage performance floor is significantly reduced.

*M*

*E*

*R*for various

*M*in the presence of a single eavesdropper. The exact curves precisely agree with the Monte Carlo simulation results, which validates the correctness of our analysis. As shown in the figures, as the number of relays increases from

*M*= 2 to 5, the secrecy outage probability and the probability of non-zero secrecy capacity are significantly improved. The reason is that more relays do not only help improve the communication quality of S-R links but also enhance the security of the R-D links. In order to predict the secrecy diversity order and the secrecy array gain, the asymptotic secrecy outage probability curves based on (16) are also drawn in Fig. 5. We can see that the asymptotic curves well approximate the analytical curves in the high

*M*

*E*

*R*region, which verifies the derived asymptotic expressions. As

*M*

*E*

*R*→

*∞*, the secrecy outage probability decreases at a faster speed with an increasing number of relays

*M*. This is because the achievable secrecy diversity order is

*M*−1.

*M*

*E*

*R*in the presence of

*K*non-colluding eavesdroppers (

*M*=3 and

*I*=10 dB). As observed from the figure, we can find that for different values of

*M*

*E*

*R*and

*K*, the analytical results match well the simulation. In addition, the asymptotic secrecy outage probability curves based on (25) converge exactly in the high

*M*

*E*

*R*region in Fig. 6. Moreover, the slopes of the curves of the secrecy outage probability are in parallel, which verifies the secrecy diversity order of

*M*−1 regardless of the number of eavesdroppers

*K*. From Fig. 7, it is evident that the probability of non-zero secrecy capacity improves with increasing

*M*

*E*

*R*. In addition, the probability of non-zero secrecy capacity improves at a faster speed with smaller

*K*.

## 6 Conclusions

In this paper, we have investigated the security performance of multiple AF-relaying CCRNs with collaborative distributed beamforming scheme against passive eavesdropping attacks. To show the advantages of the collaborative distributed beamforming scheme, we have derived closed-form expressions of the probability of non-zero secrecy capacity and secrecy outage probability as well as the asymptotic expression over Rayleigh-fading channels, which provide an efficient means to evaluate the impact of key parameters on the security performance. Moreover, our asymptotic results demonstrated that the achievable secrecy diversity order of collaborative distributed beamforming with *M* AF relays is *M*−1 regardless of the number of eavesdroppers.

## Declarations

### Acknowledgements

This work is supported by the National Natural Science Foundation of China (No. 61471393 and 61501507) and the Jiangsu Provincial Natural Science Foundation of China (No. BK20150719) and the China Postdoctoral Science Foundation under a Special Financial (No. 2013T60912).

### 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

- D Wyner, The wire-tap channel. Bell Syst. Tech. J.
**54**(8), 1355–1367 (1975).MathSciNetView ArticleMATHGoogle Scholar - A Jovicic, P Viswanath, Cognitive radio: an information-theoretic perspective. IEEE Trans. Inf. Theory.
**55**(9), 3945–3958 (2009).MathSciNetView ArticleMATHGoogle Scholar - X Chen, H-H Chen, W Meng, Cooperative communication for cognitive radio networks—from theory to application. IEEE Commun. Surv. Tutor.
**16**(3), 1180–1192 (2014).View ArticleGoogle Scholar - Z Shu, Y Qian, S Ci, On physical layer security for cognitive radio networks. IEEE Netw.
**27**(3), 28–33 (2013).View ArticleGoogle Scholar - C Tang, G Pan, T Li, Secrecy outage analysis of underlay cognitive radio unit over Nakagami-m fading channels. IEEE Wirel. Commun. Lett.
**3**(6), 609–612 (2014).View ArticleGoogle Scholar - Y Pei, Y-C Liang, L Zhang, KC Teh, KH Li, Secure communication over MISO cognitive radio channels. IEEE Trans. Wirel. Commun.
**9**(4), 1494–1502 (2010).View ArticleGoogle Scholar - Y Zou, X Li, Y-C Liang, Secrecy outage and diversity analysis of cognitive radio systems. IEEE J. Sel. Areas Commun.
**32**(11), 2222–2236 (2014).View ArticleGoogle Scholar - M Elkashlan, L Wang, TQ Duong, GK Karagiannidis, A Nallanathan, On the security of cognitive radio networks. IEEE Trans. Veh. Techol.
**64**(8), 3790–3795 (2015).View ArticleGoogle Scholar - H Lei, H Zhang, IS Ansari, C Gao, Y Guo, G Pan, KA Qaraqe, Secrecy outage performance for SIMO underlay cognitive radio systems with generalized selection combining over Nakagami-
*m*channels. IEEE Trans. Veh. Techol.**65**(12), 10126–10132 (2016).View ArticleGoogle Scholar - H Zhao, Y Tan, G Pan, Y Chen, N Yang, Secrecy outage on transmit antenna selection/maximal ratio combining in MIMO cognitive radio networks. IEEE Trans. Veh. Techol.
**65**(12), 10236–10242 (2016).View ArticleGoogle Scholar - Y Zou, J Zhu, L Yang, Y-C Liang, Y-D Yao, Securing physical layer communications for cognitive radio networks. IEEE Commun. Mag.
**53**(9), 48–54 (2015).View ArticleGoogle Scholar - W Yang, X Xu, Y Cai, in
*IEEE WCNC 2014*. Secrecy outage analysis for DF underlay CRNs with outdate CSI (Wireless Communications and Networking Conference (WCNC), 2014 IEEEIstanbul, 2014).Google Scholar - Y Liu, L Wang, TT Duy, M Elkashlan, TQ Duong, Relay selection for security enhancement in cognitive relay networks. IEEE Wirel. Commun. Lett.
**4**(1), 46–49 (2015).View ArticleGoogle Scholar - Y Zou, B Champagne, W-P Zhu, L Hanzo, Relay-selection improves the security-reliability trade-off in cognitive radio systems. IEEE Trans. Commun.
**63**(1), 215–228 (2015).Google Scholar - Q Gu, G Wang, L Gao, M Peng, Security-reliability performance of cognitive AF relay-based wireless communication system with channel estimation error. EURASIP J. Adv. Signal Process.
**2014:**, 1–11 (2015).Google Scholar - W Yang, K Wang, X Xu, J Zhou, in
*WOCC 2016*. Secure transmission for AF relaying spectrum-sharing systems with collaborative distributed beamforming (Wireless and Optical Communication Conference (WOCC), 2016 25thChengdu, 2016).Google Scholar - A Afana, V Asghari, A Ghrayeb, S Affes, On the performance of cooperative relaying spectrum-sharing system with collaborative distributed beamforming. IEEE Trans. Commun.
**62**(3), 857–871 (2014).View ArticleGoogle Scholar - RJ Pavur, Quadratic forms involving the complex Gaussian. M.Sc. dissertation, Math. Dept., Texas Tech Univ.Lubbock, TX, (1980).Google Scholar
- IS Gradshteyn, IM Ryzhik,
*Table of integrals, series, and products*, sixth ed (Academic Press, London, 2000).MATHGoogle Scholar - I Krikidis, Opportunistic relay selection for cooperative networks with secrecy constraints. IET Commun.
**4**(15), 1787–1791 (2010).View ArticleGoogle Scholar - A Behnad, X Wang, Accuracy of harmonic mean approximation in performance analysis of multihop amplify-and-forward relaying. IEEE Wirel. Commun. Lett.
**3**(2), 125–128 (2014).View ArticleGoogle Scholar