Skip to main content

Secrecy analysis of cognitive radio network with MS-GSC/MRC scheme

Abstract

We propose and analyze minimum selection-generalized selection combining (MS-GSC) at secondary receiver (SR) with maximal ratio combining at eavesdropper (ER) to enhance data security at physical layer. We consider an underlay cognitive radio network (CRN) where SR and ER are equipped with multiple antennas, and secondary transmitter (ST) has single antenna with a primary user. Passive eavesdropping is also taken into account.This work is aimed to find the effect of MS-GSC diversity technique on secrecy outage probability (SOP). We derive a closed-form expressions for the exact and asymptotic SOP. Our results show a positive impact on SOP with an increase in diversity branches and also reveal the effect of a primary user on secondary network.

1 Introduction

In wireless communication systems, an eavesdropper intercepts transmission due to the broadcast nature of wireless links. So, the security of data transmission in these networks is becoming more critical than ever [1, 2]. Traditionally, cryptographic techniques are used to secure data at the upper layer of protocol stack using public and private key variations. In underlay cognitive radio networks (CRN), the primary users (PU) and the secondary users (SU) transmit concurrently in the same band of frequency [3, 4]. The protection and security of the broadcast channel in such complex environments against eavesdropping is a very difficult task. The conventional cryptographic authentication become very expensive and less effective because of the open nature of these broadcasting channels [5, 6]. Therefore, research efforts have been devoted to physical layer security, which exploits the characteristics of wireless channel (e.g., thermal noise and fading) to secure the communication at physical layer [7]. The fundamental concept of physical layer security is to enhance the gain of legitimate receiver’s main channel in comparison to the eavesdropper’s channel to attain perfect secrecy. With the advancement in multiple antenna techniques, security improvement in wiretap CRN channels has addressed from information-theoretic perspective [8–11], where the secondary transmitter (ST), the secondary user receiver (SR), and the eavesdropper (ER) all are equipped with multiple antennas.

In the last few years, lots of work had been done to enhance the security of physical layer in CRN. In [12, 13], secrecy performance of single input multiple output (SIMO) CRN with maximal ratio combining (MRC) diversity technique was studied. Secrecy outage probability (SOP) for transmit antenna selection (TAS)/MRC in multiple input multiple output (MIMO) CRN has been investigated in [14], and an underlay MIMO CRN with a pair of primary nodes and secondary nodes and an eavesdropper was considered in [15] where the secondary transmitter was powered by the renewable energy harvested from the primary transmitter in order to improve both energy efficiency and spectral efficiency. SOP of an underlay cognitive decode-and-forward relay network over independent but not necessarily identical distributed (i.n.i.d) Nakagami-m fading channels was investigated, and optimal relay selection (ORS) and suboptimal relay selection (SRS) schemes, and multiple relay combining scheme were considered in [16]. In [17], a hybrid visible light communication radio frequency (RF) system with legitimate receiver and an eavesdropper was considered where legitimate receiver can harvest energy from the light emitted by light-emitting diodes, and exact and asymptotic SOP was derived by using stochastic geometry method. The closed-form expressions for SOP and non-zero secrecy capacity for underlay CR unit over Nakagami-m fading were investigated in [18], and the secrecy outage performance of PU system in the presence of the eavesdropping and interfering of SU was analyzed in [19]. Generalized-selection combining (GSC) is a hybrid technique that overcomes the limitation of MRC and selection combining (SC). In [20–22], a detailed study has been done on GSC. GSC uses a fixed number of the best branches (M c ) of all available ones (M). In GSC, there is no need of process all the paths that reduce the hardware complexity of receiver, but all MRC branches remain active during the reception of the data, which increases consumption of computational power [20]. The secrecy analysis for SIMO wiretap CRN with GSC over Nakagami-m fading channels was done in [22]. TAS with GSC over Rayleigh fading and Nakagami-m fading channels were applied in [23–26]. In [26], TAS/GSC for cognitive decode-and-forward relaying in Nakagami- m fading channels was considered and closed-form expression for ergodic capacity was derived. The power saving implementation of GSC called minimum selection GSC (MS-GSC) had proposed in [27].

In this paper, we consider a communication scenario where MS-GSC diversity combining technique is adopted by the SR considering the complexity and energy dissipation, and in order to maximize, its instantaneous SNR at ER MRC technique is applied. In fact, MS-GSC is a more general diversity combing than GSC. The basic idea of MS-GSC is that the minimum number of diversity branches are selected such that their combined signal-to-noise ratio (SNR), and not the individual branch SNR, is above a given threshold [28].

Our contributions are as follows:

  1. 1.

    We examine the secrecy performance of an underlay CRN with MS-GSC applied at legitimate receiver and MRC at eavesdropper over Rayleigh fading environment and derived closed-form expression for SOP.

  2. 2.

    In [2], interference power constraint was considered at primary user (PU). Both SR and ER were equipped with multiple antennas, and selection combining (SC) was applied. SC select only one antenna with the highest SNR among available ones which neglect diversity phenomena. In comparison to [2], interference power constraint, more generalized, and computational power saving system is considered in this paper.

  3. 3.

    In [12], MRC scheme was used over Rayleigh fading channels at both secondary receiver SR and eavesdropper. We apply MS-GSC at SR and MRC at eavesdropper and SC (M C =1), MRC (M C =M), and GSC (M C ≤M) are the special cases of MS-GSC.

The organization of the remaining paper is as follows: Section 2 explains the proposed system model. Furthermore, the working of MS-GSC is also explained in Section 2. Secrecy outage probability is calculated in Section 3. Section 4 gives the interpretation of numerical result.

2 System model

Here, we consider an underlay wiretap CRN composed of a primary user (PU), secondary user transmitter as Alice, legitimate receiver as B, and an eavesdropper as ER. The primary user and Alice are consist of a single antenna whereas B and the ER are assumed to have multiple antennas M. Here, we assume that the confidential messages are being transmitted from Alice to B in the presence of ER, and the ER want to listen their communication. In order to have reliable communication, the interference power at PU from Alice should be less than the peak interference power threshold.

The primary and secondary channels are experiencing i.i.d Rayleigh fading where channel gains of the main channel \(\{h_{Bt}\}^{M}_{t=1}\), eavesdropper’s channel \(\{h_{Es}\}^{M}_{s=1}\), and primary channel h p are complex Gaussian random variables with zero mean and variances Ω1,Ω2, and Ω0, respectively. We are considering passive eavesdropping, i.e., the channel state information (CSI) of the eavesdropper is also available at Alice. The channel gain and variance of the primary users are h p and Ω0, respectively. The main channels (Alice to B) and eavesdropper channels (Alice to ER) are independent of each other. Here, the MS-GSC diversity scheme is applied at B, and MRC diversity technique is applied at ER. In this paper, we assume that the global CSI of the main links, the eavesdropper’s links, and primary link is available for evaluating the secrecy rate in the information receiver, which is a common assumption in the literature on physical layer security. Information on the PU’s channels can be obtained for the cases in which the PUs are cooperative in the network and their transmissions can be monitored. This is applicable for those networks that combining multicast and unicast transmissions, in which terminals play dual roles as legitimate receivers for some signals and eavesdroppers for others. In practice, this information can be generated by using reverse training, where the primary user transmits training signal to Alice such that by invoking the principle of reciprocity, Alice can estimate the primary users CSI.

The interference received at secondary network from primary network is considered to be a complex Gaussian random variable under an assumption that the primary signal may be generated by the random Gaussian codebook. Moreover, the thermal noise at secondary nodes is also complex Gaussian distributed. Thus, the interference plus noise at secondary nodes (B and eavesdroppers) can be modeled as a complex Gaussian random variable with zero mean and variance N0. It indicates that the influence of primary interference at secondary nodes is already assumed in the variance N0. Thus, the effect of interference is adjusted in the noise statistics at B and ER [29, 30]. The instantaneous SNR of the main channels and eavesdropper’s channel is given by

$$\begin{array}{*{20}l} \Psi_{M}= \max_{t=1....M} \frac{P_{av}}{N_{0}} \lvert h_{B_{t}}\rvert^{2}, \Psi_{E}= \max_{s=1....M} \frac{P_{av}}{N_{0}} \lvert h_{E_{s}}\rvert^{2} \end{array} $$
(1)

where P av is Alice’s transmitted power.

2.1 Working of MS-GSC diversity technique

The receiver with MS-GSC diversity schemes chooses the minimum number of best available antennas in such a way that the combined SNR Ψcom is always more than the threshold SNR Ψ t [22]. Mathematically, the working of MS-GSC can be summarized as

$$ \Psi_{\text{com}}=\left\{ \begin{array}{ll} \Psi(1) & \text{iff}~~~\Psi_{1}\geq \Psi_{t};\\ \Psi(1)+\Psi(2) & \text{iff}~\Psi(1)<\Psi_{t} ~\& \Psi(1)+\Psi(2)\geq\Psi_{t};\\ &\vdots\\ \sum_{k=1}^{r} \Psi(k) & \text{iff} \sum_{k=1}^{r-1}\Psi(k)<\Psi_{t} \&~ \sum_{k=1}^{r}\Psi(k) \geq \Psi_{t};\\ &\vdots\\ \sum_{k=1}^{M_{c}}\Psi(k) & \text{iff}~~\sum_{k=1}^{r-1} \Psi(k)<\Psi_{t}. \end{array} \right. $$
(2)

where ψ1, ψ2,......ψ k are the SNR of path 1, path 2...... path k, respectively.

GSC uses M c antennas among available M antennas such that M c <M. In comparison to GSC, MS-GSC needs less computing power, and on average, less number of MRC branches is active during the reception of data which save processing power. Let N b be the active number of MRC branches, which takes the value from 1 to M c . N b =1 if Ψ1 >Ψ t , N b =r,2≤r≤M c −1 if and only if \(\sum _{k=1}^{r-1}{\Psi _{k}} < {\Psi _{t}}\) and \(\sum _{k=1}^{r}{\Psi _{k}} \geq {\Psi _{t}}\), and N b =M c if \(\sum _{k=1}^{M_{c}-1}{\Psi _{k}} < {\Psi _{t}}\).

3 Secrecy outage probability

The secrecy capacity analysis can help us to determine how secure a CRN is and whether we need more security mechanisms to protect against the potential attacks in the CRNs. The maximum achievable rate is named as secrecy capacity and given by ([2], Eq.2). The secrecy capacity of CRN consists an antenna at Alice and multiple antennas at B and ER can be defined as,

$$ {S_{c}}=\left\{ \begin{array}{ll} {M_{c}}-{E_{e}}~={{log}_{2}}\left(\frac{1+{\Psi_{M}}}{1+{\Psi_{E}}}\right) &\text{if}~{\Psi_{M}}>{\Psi_{E}},\\ 0 &\text{if}~{\Psi_{M}}\leq{\Psi_{E}},\\ \end{array} \right. $$
(3)

where M c =log2(1+Ψ M ) is the capacity of channels between Alice and B and E e =log2(1+Ψ E ) is the capacity of channels between Alice and ER. S c in (4) can be rewritten as

$$\begin{array}{*{20}l} {S_{c}}={\log_{2}}\left(\frac{1+\Psi_{M}}{1+\Psi_{E}}\right)<{R_{s}} \end{array} $$
(4)

which is analogous to

$$\begin{array}{*{20}l} \epsilon({\Psi_{E}})=2^{Rs}(1+\Psi_{E})-1 >{\Psi_{M}}. \end{array} $$
(5)

In passive eavesdropping, excellent secrecy is possible if and only if R S ≤S c ; otherwise, information-theoretic security is compromised. SOP is a probability that secrecy capacity S c falls under the output threshold R S [2] and is given as

$$\begin{array}{*{20}l} {}{P_{\text{out}}}={P_{r}}\left({S_{C}}<{R_{S}}\right) ={P_{r}}\left({\Psi_{M}}\leq{\Psi_{E}}\right)\\ +{P_{r}} \left({\Psi_{M}} > {\Psi_{E}}\right){P_{r}}\left({S_{c}} < {R_{S}}\mid{\Psi_{M}} > {\Psi_{E}}\right) \end{array} $$
(6)

which can be simplified to (7)

$$\begin{array}{*{20}l} {}{P}_{\text{out}}\,=\,\int_{0}^{\infty}\!\!\int_{0}^{\infty}\! F_{\Psi_{M}\mid{\{Y=y\}}}(\in({\Psi_{E}})) f_{\Psi_{E}\mid\{Y=y\}}({\Psi_{E}}) f_{Y}({y})d_{\Psi_{E}}dy \end{array} $$
(7)

where Y=|h P |2 is the channel gain from Alice to PU, f Y (y) is the probability density function (PDF) of Y, \({f}_{{\Psi _{E}}\mid {(Y=y)}}\) is the PDF of Ψ E conditioned on Y, and \(F_{{\Psi _{M}}\mid {Y=y}}{(\epsilon ({\Psi _{E}}))}\) is the cumulative distribution function (CDF) of Ψ M conditioned on Y.

In underlay cognitive radio transmission, for reliable communication, Alice’s transmitted power Pav should be less than the peak interference power threshold. So, Alice is a power-limited transmitter with a maximum transmit power which is P T . The transmitted power of Alice is constrained by P T at Alice and peak interference power P I at the primary user and given by

$$\begin{array}{*{20}l} {P_{\text{av}}}= \min{\left(\frac{P_{I}}{h_{p}},{P_{T}}\right)} \end{array} $$
(8)

Based on (8) instantaneous SNR at secondary receiver, B and ER are expressed as

$$\begin{array}{*{20}l} \psi_{M}= \min\left(\frac{\psi_{p}}{Y}, \psi_{0}\right){X_{M}}~~~ \psi_{E}= \min\left(\frac{\psi_{p}}{Y}, \psi_{0}\right){X_{E}} \end{array} $$
(9)

where \({\psi _{p}}=\frac {P_{I}}{N_{0}}\), \({\psi _{0}}=\frac {P_{T}}{N_{0}}\), \({X_{M}}=\max _{t=1....M}\lvert h_{B_{t}}\rvert ^{2}\) and \({X_{E}}=\max _{s=1....M}\lvert h_{E_{s}}\rvert ^{2}\).

For ease of interpretation, we have \({\Psi _{1}}={\Omega _{1}}{\Psi _{0}} = {\psi _{P}} \frac {\Omega _{1}}{\sigma }\) be the average SNR of the main channel, \({\Psi _{2}}={\Omega _{2}}{\Psi _{0}} = {\psi _{P}} \frac {\Omega _{2}}{\sigma }\) be the average SNR of the ED’s channel, and \(\sigma = \frac {P_{I}}{P_{T}}\). The CDF for MS-GSC scheme for Rayleigh fading is given by ([22], Eq. 24)

$$ \begin{aligned} P({x_{1}})=\left\{ \begin{array}{ll} P_{\varUpsilon_{M_{c}}}({x_{1}}), ~~~~~{0}\leq{x_{1}}<{\Psi_{t}};\\ P_{\varUpsilon_{1}}(x_{1})-P_{\varUpsilon_{1}}(\Psi_{t})+P_{\varUpsilon_{M_{c}}}(\Psi_{t})\\ +\sum_{w=2}^{M_{c}}\left(\int_{\frac{w-1}{w}{\Psi_{t}}}^{\frac{w-1}{w}{x_{1}}}\int_{\Psi_{t}-y}^{\frac{y}{w-1}} p_{\Psi(w)},{\varUpsilon_{w-1}}(z,y)dzdy \right.\\ +\left. \int_{\frac{w-1}{w}{x_{1}}}^{\Psi_{t}}\int_{\Psi_{t}-y}^{x_{1}-y}p_{\Psi(w)},{\varUpsilon_{w-1}} (z,y)dzdy\right),~~{\Psi_{t}}\leq{x_{1}}<\frac{M_{c}}{M_{c}-1}{\Psi_{t}};\\ \vdots\\ P_{\varUpsilon_{1}}(x_{1})-P_{\varUpsilon_{1}}(\Psi_{t})+P_{\varUpsilon_{M_{c}}}(\Psi_{t})\\ +\sum_{v=2}^{M_{c}}\left(\int_{\frac{w-1}{w}{\Psi_{t}}}^{\frac{w-1}{w}{x_{1}}}\int_{\Psi_{t}-y}^{\frac{y}{w-1}} p_{\Psi(w)},{\varUpsilon_{w-1}}(z,y)dzdy\right.\\ +\left. \int_{\frac{w-1}{w}{x_{1}}}^{\Psi_{t}}\int_{\Psi_{t}-y}^{x_{1}-y}p_{\Psi(w)},{\varUpsilon_{w-1}} (z,y)dzdy\right),~{\frac{v+1}{v}} {\Psi_{t}}\leq{x_{1}}<\frac{v}{v-1}{\Psi_{t}};\\ \vdots\\ P_{\varUpsilon_{1}}(x_{1}),~~~~~ {2{\Psi_{t}}}<{x_{1}} \end{array}\right. \end{aligned} $$
(10)

The CDF \(P_{\Psi _{w}}(.)\) is given by ([22], Eq. 17)

$$ \begin{aligned} P_{\varUpsilon_{w}}(x_{1})&=\frac{M!}{(M-w)!w!}\left\{1-e^{\frac{-x_{1}}{\Psi_{1}}}\sum_{k=0}^{w-1} \frac{1}{k!}\left(\frac{x_{1}}{\Psi_{1}}\right)^{k}\right.\\ &\quad+\sum_{v=1}^{M-w} (-1)^{w+v-1}\frac{(M-w)!}{(M-w-v)!v!}\left(\frac{w}{v}\right)^{w-1}\\ &\quad \times \left[\left(1+\frac{v}{w}\right)^{-1} \right. \left[1-e^{-\left(1+\frac{v}{w}\right)\frac{x_{1}}{\Psi_{1}}}\right] \\ &\left. \left. \quad-\sum_{m=0}^{w-2} \left(\frac{-v}{w}\right)^{m} \left(1-e^{\frac{-x_{1}}{\Psi_{1}}}\sum_{k=0}^{m} \frac{1}{k!}\left(\frac{x_{1}}{\Psi_{1}}\right)^{k} \right) \right] \right\}\\ \end{aligned} $$
(11)

where x1=2Rs(1+x)−1 and the PDF of MRC \(\left [p_{\varUpsilon _{M}}(.)\right ]\) is given by

$$ p_{\Psi_{M}}(x)=e^{\frac{-x}{\Psi_{2}}} \frac{x^{M-1}}{\Psi_{2}^{M} (M-1)!} $$
(12)

where Ψ2 is the average SNR of the ER’s channels. The PDF of Y is given by ([2], Eq. 22)

$$ f_{R}(r)=\sum\limits_{h=0}^{N-1}\frac{N}{\Omega_{0}}({-1})^{h}{e^{\frac{-(h+1)r}{\Omega_{0}}} }, \ {y\geq 0} $$
(13)

for N = 1

$$ f_{R}(r)=\frac{1}{\Omega_{0}}{e^{\frac{-(r)}{\Omega_{0}}} }, ~~~ {r\geq 0} $$
(14)

Using all the above mentioned equations in (7), SOP for proposed system model is given by (15).

$$ {P_{\text{out}}}=\left\{ \begin{array}{ll} {P_{\text{out}_{A}}} &{0}\leq{x_{1}}<{\Psi_{t}};\\ {P_{\text{out}_{B}}} &{\Psi_{t}}\leq{x_{1}} <\frac{M_{c}}{M_{c}-1} {\Psi_{t}}\\ \vdots\\ {P_{\text{out}_{C}}} &\frac{v+1}{v}{\Psi_{t}}\leq{x_{1}} <\frac{v}{v-1}{\Psi_{t}}\\ \vdots\\ {P_{\text{out}_{D}}} &{2{\Psi_{t}}}<{x_{1}}\\ \end{array} \right. $$
(15)

The detail expansion of the above equation is as follows:

$$ {\begin{aligned} {p_{\text{out}_{A}}}=\frac{M!}{M_{C}!(M-M_{C})!}\left\{\left(1-e^{\frac{-\sigma}{\Omega_{0}}}\right)\left(1-\sum\limits_{k=0}^{M_{c}-1}\sum\limits_{n=0}^{k}{\mu_{1}} \right. \right. \\ e^{\left(\frac{-\left(2^{Rs}-1\right)}{\Psi_{1}}\right)}+ \sum\limits_{v=1}^{M-{M_{c}}}{C_{2}}{C_{3}} -\sum\limits_{v=1}^{M-{M_{c}}}\sum\limits_{m=0}^{M_{c}-2}{C_{2}}{C_{4}} -\sum\limits_{v=1}^{M-M_{c}}{C_{2}}{C_{4}}{\beta_{1}}\\ e^{-\left(\frac{\left(2^{Rs}-1\right)\left(1+\frac{V}{M_{c}}\right)}{\Psi_{1}}\right)} + \sum\limits_{v=1}^{M-M_{c}}\sum\limits_{m=0}^{M_{c}-2}\sum\limits_{k=0}^{m}\sum\limits_{n=0}^{k}{C_{2}}{C_{4}}{\mu_{1}}\\ \left. e^{-\left(\frac{2^{RS}-1}{\Psi_{1}}\right)}{\vphantom{\sum\limits_{k=0}^{M_{c}-1}}}\right)+ e^{\frac{-\sigma}{\Omega_{0}}} -\sum\limits_{k=0}^{M_{c}-1}\sum_{n=0}^{k}\sum_{p=0}^{k-n}{Q_{1}}{Q_{2}}e^{-{\sigma}\left(\frac{2^{Rs}-1} {\sigma {\Psi_{1}}}+\frac{1}{\Omega_{0}}\right)}\\ + \sum\limits_{v=1}^{M-M_{c}}{C_{2}}{C_{3}}e^{-\left(\frac{\sigma}{\Omega_{0}}\right)} -\sum\limits_{v=1}^{M-M_{c}}{C_{2}}{C_{3}}{\beta_{2}}\\ e^{-\sigma\left(\left(1+\frac{M}{M_{c}}\right)\left(\frac{2^{Rs}-1}{\sigma\gamma_{1}}\right)+{\frac{1}{\Omega_{0}}}\right)} -\sum\limits_{v=1}^{M-M_{c}}\sum\limits_{m=0}^{M_{c}-2}{C_{2}}{C_{4}}e^{-\left(\frac{\sigma}{\Omega_{0}}\right)}\\ +\left. \sum\limits_{v=1}^{M-M_{c}}\sum\limits_{m=0}^{M_{c}-2}\sum\limits_{k=0}^{m} \sum\limits_{n=0}^{k}\sum\limits_{p=0}^{k-n}{C_{2}}{C_{4}}{Q_{1}}{Q_{2}}e^{-{\sigma}\left(\frac{2^{Rs}-1}{{\sigma}{\Psi_{1}}} +{\frac{1}{\Omega_{0}}}\right)} \right\} \end{aligned}} $$
(16)

where

$$\begin{aligned} {\mu_{1}}&=\frac{1}{(M-1)!k!{\Psi_{1}}^{k}}{k\choose{n}}{\left(2^{Rs}-1\right)}^{k-n}\frac{\left(2^{Rs}\right)^{n}}{(\Psi_{2})^{M}} \frac{(n+M-1)!}{\left(\frac{2^{Rs}}{\Psi_{1}}+\frac{1}{\Psi_{2}}\right)^{n+M}} \\ {C_{2}}&=\sum_{v=1}^{M-M_{c}}(-1)^{M_{c}+v-1}\frac{(M-M_{c})!}{(M-M_{c}-v)!v!}\left(\frac{M_{c}}{v}\right)^{M_{c}-1}\\ {C_{3}}&=\left(1+\frac{v}{M_{c}}\right)^{-1}, {C_{4}}=\left(\frac{-v}{M_{c}}\right)^{m}\\ {\beta_{1}}&=\frac{1}{{\Psi_{2}}^{M}\left(\frac{\left(1+\frac{v}{M_{c}}\right)2^{Rs}}{\Psi_{1}}+\frac{1}{\Psi_{2}}\right)^{M}}\\ {Q_{1}}&=\frac{1}{k!(\sigma{\Psi_{1}})^{k}}{\left(2^{Rs}-1\right)}^{k-n}{\left(2^{Rs}\right)^{n}}{k\choose{n}}\frac{(n+M-1)!}{\left(\frac{2^{Rs}}{\sigma{\Psi_{1}}}+\frac{1}{\Psi_{2}}\right)^{n+M}}\\ {Q_{2}}&=\frac{(\sigma)^{p}(k-n)!}{\left(\sigma{\Psi_{2}}\right)^{M}(M-1)!p!\left(\frac{2^{Rs}-1}{\sigma{\Psi_{1}}}+\frac{1}{\Omega_{0}}\right)^{k-n-p+1}}\\ {\beta_{2}}&=\frac{1}{({{\sigma}\Psi_{2}})^{M}\left(\frac{\left(1+\frac{l}{M_{c}}\right)2^{Rs}}{{\sigma}\Psi_{1}}+\frac{1}{{\sigma}\Psi_{2}}\right)^{M}}\\[-3pt] &\quad\times \frac{1}{\left(\left(1+\frac{M}{M_{c}}\right) \left(\frac{2^{Rs}-1}{\sigma{\Psi_{1}}}\right)+\left(\frac{1}{\Omega_{0}}\right)\right)} \end{aligned} $$
$$ \begin{aligned} P_{\text{out}_{B}}&=P_{\text{out}_{D}}-P_{\text{out}_{1}}({\Psi_{t}})+P_{\text{out}_{M_{c}}}({\Psi_{t}})+\sum\limits_{w=2}^{M_{c}}{P_{\text{out}_{M}}} \end{aligned} $$
(17)
$$ \begin{aligned} P_{\text{out}_{1}}({\Psi_{t}})&=\sum\limits_{v=0}^{M}{M\choose{v}}(-1)^{v}\left[e^{\frac{-v\psi_{t}}{\psi_{1}}}\left(1-e^{\frac{-\sigma}{\Omega_{0}}}\right)+\frac{e^{-\sigma\left(\frac{v\psi_{t}}{{\psi_{1}}}+\frac{\sigma}{\Omega_{0}}\right)}}{\left(\frac{v\psi_{t}}{\sigma{\psi_{1}}}+\frac{1}{\Omega_{0}}\right)}\right] \end{aligned} $$
(18)
$$ \begin{aligned} {P_{\text{out}_{M}}}&={I_{1}}+{1_{2}} \end{aligned} $$
(19)
$$ \begin{aligned} {I_{1}}&=\int_{0}^{\sigma}\int_{0}^{\infty}\left[\int_{\frac{w-1}{w}{\Psi_{t}}}^{\frac{w-1}{w}{x_{1}}}\int_{\Psi_{t}-y}^{\frac{y}{w-1}} p_{\Psi(w)},{\varUpsilon_{w-1}}(z,y)dzdy +\int_{\frac{w-1}{w}{x_{1}}}^{\Psi_{t}}\int_{\Psi_{t}-y}^{x_{1}-y}p_{\Psi(w)},{\varUpsilon_{w-1}} (z,y)dzdy\right] e^{\frac{-x}{\Psi_{2}}} \frac{x^{M-1}}{\Psi_{2}^{M} (M-1)!}\frac{1}{\Omega_{0}}e^{-\frac{r}{\Omega_{0}}}dx dr \end{aligned} $$
(20)
$$ \begin{aligned} {I_{2}}&=\int_{\sigma}^{\infty}\int_{0}^{\infty}\left[\int_{\frac{w-1}{w}{\Psi_{t}}}^{\frac{w-1}{w}{x_{1}}}\int_{\Psi_{t}-y}^{\frac{y}{w-1}} p_{\Psi(w)},{\varUpsilon_{w-1}}(z,y)dzdy +\int_{\frac{w-1}{w}{x_{1}}}^{\Psi_{t}}\int_{\Psi_{t}-y}^{x_{1}-y}p_{\Psi(w)},{\varUpsilon_{w-1}} (z,y)dzdy\right] e^{\frac{-x}{\Psi_{2}}} \frac{x^{M-1}}{\Psi_{2}^{M} (M-1)!}\frac{1}{\Omega_{0}}e^{-\frac{r}{\Omega_{0}}}dx dr \end{aligned} $$
(21)
$$ \begin{aligned} P_{\text{out}_{M_{c}}}({\Psi_{t}})&=\left(1\,-\,e^{\frac{-\sigma}{\Omega_{0}}}\right)\frac{M!}{(M-M_{c})!M_{c}!}\left\{\!1\,-\,e^{\frac{-\Psi_{t}}{\Psi_{1}}}\sum\limits_{k=0}^{M_{c}-1} \frac{1}{k!}\left(\frac{\Psi_{t}}{\Psi_{1}}\right)^{k} +\sum\limits_{v=1}^{M-M_{c}}C_{2}\left[\!C_{3}\left(1\,-\,e^{-\left(1\,+\,\frac{v}{M_{c}}\right)\frac{\Psi_{t}}{\Psi_{1}}}\right) -\sum\limits_{m=0}^{M_{c}-2}{C_{4}}\! \left(\! 1-e^{\frac{-\Psi_{t}}{\Psi_{1}}}\sum\limits_{k=0}^{m}\frac{1}{k!}\! \left(\! \frac{\Psi_{t}}{\Psi_{1}}\! \right)^{k}\! \right)\right]\right\} \\[-3pt] &\quad + \frac{M!}{(M-M_{c})!M_{c}!}\left[{\vphantom{\frac{e^{-\left(\frac{\psi_{t}}{C_{3}\sigma{\psi_{1}}}+\frac{\sigma}{\Omega_{0}}\right)}}{\frac{\psi_{t}}{C_{3}\sigma{\psi_{1}}}+\frac{\sigma}{\Omega_{0}}}}}\! e^{\frac{-\sigma}{\Omega_{0}}} \left(1+\sum\limits_{v=1}^{M-M_{c}}{C_{2} C_{3}}-\sum\limits_{v=1}^{M-M_{c}}\sum\limits_{m=0}^{M_{c}-2} \!{C_{2}}{C_{4}}\right)\right.\\[-5pt] &\quad \left. -\frac{1}{\Omega_{0}}\sum\limits_{k=0}^{M_{c}-1}\sum\limits_{l=0}^{k}\frac{1}{k!}\left(\frac{\psi_{t}}{\sigma{\psi_{1}}}\right)^{k} {e}^{-\left(\frac{\psi_{t}}{\psi_{1}}+\frac{\sigma}{\Omega_{0}}\right)}\frac{k!}{l!} \frac{(\sigma)^{l}}{\left(\frac{\psi_{t}}{\sigma{\psi_{1}}}+\frac{1}{\Omega_{0}}\right)^{k-l+1}}\left(1-\sum\limits_{v=1}^{M-M_{c}}\sum\limits_{m=0}^{M_{c}-2}{C_{2}}{C_{4}}\right) -\frac{1}{\Omega_{0}}\sum\limits_{v=1}^{M-M_{c}}{C_{2}}{C_{3}}\frac{e^{-\left(\frac{\psi_{t}}{C_{3}\sigma{\psi_{1}}}+\frac{\sigma}{\Omega_{0}}\right)}}{\frac{\psi_{t}}{C_{3}\sigma{\psi_{1}}}+\frac{\sigma}{\Omega_{0}}}\right] \end{aligned} $$
(22)
$$ \begin{aligned} {P_{\text{out}_{D}}}&={\left(1-e^{\frac{-\sigma}{\Omega_{0}}}\right)}\sum\limits_{v=0}^{M}{M\choose{v}}{(-1)^{v}}\frac{e^{-\left(\frac{-v{\left(2^{Rs}-1\right)}}{\Psi_{1}}\right)}}{(\Psi_{2})^{M}\left(\frac{v{2^{Rs}}}{\Psi_{1}}+ \frac{1}{\Psi_{2}}\right)^{M}} +\sum\limits_{v=0}^{M}{M\choose{v}}{(-1)^{v}}\left(\frac{1}{({\sigma}\Psi_{2})^{M} \left(\frac{v{2^{Rs}}}{{\sigma}\Psi_{1}}+\frac{1}{\sigma{\Psi_{2}}}\right)^{M}} \frac{e^{-\left(\frac{{v}{\left(2^{Rs}-1\right)}}{\Psi_{1}}+ \frac{\sigma}{\Omega_{0}}\right)}}{\left(\frac{{v}{\left(2^{Rs}-1\right)}}{{\sigma}\Psi_{1}}+ \frac{1}{\Omega_{0}}\right)} \right) \end{aligned} $$
(23)
$$ \begin{aligned} P_{\text{out}_{C}}&=P_{\text{out}_{D}}-P_{\text{out}_{1}}({\Psi_{t}})+P_{\text{out}_{v}}({\Psi_{t}})+\sum\limits_{w=2}^{v}{P_{\text{out}_{M}}}\\ P_{\text{out}_{v}}({\Psi_{t}})&=\left(1-e^{\frac{-\sigma}{\Omega_{0}}}\right)\frac{M!}{(M-v)!v!}\left\{1-e^{\frac{-\Psi_{t}}{\Psi_{1}}}\sum\limits_{k=0}^{v-1} \frac{1}{k!}\left(\frac{\Psi_{t}}{\Psi_{1}}\right)^{k} +\sum\limits_{v=1}^{M-v}(-1)^{2v-1}\frac{(M-v)!}{(M-v-v)!v!}\times\left[\frac{1}{2} \left[1-e^{-\frac{2\Psi_{t}}{\Psi_{1}}}\right]\right.\right.\\ &\left. \left. \quad-\sum\limits_{m=0}^{v-2} \left(-1\right)^{m} \left(1-e^{\frac{-\Psi_{t}}{\Psi_{1}}}\sum\limits_{k=0}^{m} \frac{1}{k!}\left(\frac{\Psi_{t}}{\Psi_{1}}\right)^{k} \right) \right] \right\} +\frac{M!}{(M-v)!{v}}\left[e^{\frac{-\sigma}{\Omega_{0}}} \left(1+\sum\limits_{v=1}^{M-v}{\frac{1}{2}}{K_{1}}-\sum\limits_{v=1}^{M-v}\sum\limits_{m=0}^{v-2}{K_{1}}{(-1)}^{m}\right) \right.\\ & \left. \quad- \frac{1}{\Omega_{0}}\sum\limits_{k=0}^{v-1}\sum\limits_{l=0}^{k} \frac{1}{k!} \left(\frac{\psi_{t}}{\sigma{\psi_{1}}}\right)^{k} e^{-\left(\frac{\psi_{t}}{\psi_{1}}+\frac{\sigma}{\Omega_{0}}\right)} \frac{k!}{l!} \frac{(\sigma)^{l}}{\left[\frac{\psi_{t}}{\psi_{1}{\sigma}}+\frac{1}{\Omega_{0}}\right]^{k-l+1}}\left(1-\sum\limits_{v=1}^{M-v}\sum\limits_{m=0}^{v-2}{K_{1}}{(-1)}^{m}\right) - \frac{1}{\Omega_{0}}\sum\limits_{v=1}^{M-v} {\frac{1}{2}}{K_{1}} \frac{e^{-\left(\frac{2\psi_{t}}{\psi_{1}}+\frac{\sigma}{\Omega_{0}}\right)}}{\left(\frac{2\psi_{t}}{{\sigma}\psi_{1}}+\frac{1}{\Omega_{0}}\right)}\right]\\ \text{where}\ {K_{1}}&= {(-1)^{2v-1}}{M-v \choose{v}} \end{aligned} $$
(24)

Remark 1

1.\(\phantom {\dot {i}\!}{p_{{out}_{A}}} \) is the secrecy outage probability corresponding to GSC scheme at legitimate receiver B and MRC technique at eavesdropper ER with a primary user and single antenna Alice in Rayleigh fading environment.

2.\({P_{out_{D}}}\) is the SOP corresponding to SC technique at B and MRC scheme at ER.

3. For M c =M, then \(\phantom {\dot {i}\!}{p_{{out}_{A}}} \) is SOP corresponding to MRC scheme at both B and ER with single antenna Alice and a PU.

4.\(\phantom {\dot {i}\!}P_{{out}_{v}}({\Psi _{t}})\) is the SOP as a function of threshold SNR corresponding to GSC scheme at legitimate receiver B and MRC technique at ER with a primary user. Similarly, \(\phantom {\dot {i}\!}P_{{out}_{1}}({\Psi _{t}})\) is the SOP as a function of threshold SNR corresponding to SC technique at B and MRC scheme at ER.

The average number of active branches N b with MS-GSC is expressed as

$$\begin{array}{*{20}l} {N_{b}}=\sum\limits_{n=1}^{M_{c}}{{n}{P}{r}\left[N_{b}=n\right]}~~\sum\limits_{n=1}^{M_{c}-1}{p_{\varUpsilon_{n}}}({\Psi_{t}}) \end{array} $$
(25)

where nPr[N b =n] is the PMF (probability mass function) of N b and given by

$$ {P}{r}{\left[N_{b}=n\right]}=\left\{ \begin{array}{ll} 1-{P_{\varUpsilon_{1}}}{(\Psi_{t})} &~{n}=1\\ P_{\varUpsilon_{n-1}}{(\Psi_{t})}-P_{\varUpsilon_{n}}{(\Psi_{t})} ~&~2~{\leq}~n{\leq}~{M_{c}}-1\\ {P_{\varUpsilon_{M_{c}-1}}}{(\Psi_{t})}~&~n={M_{c}}\\ \end{array}\right. $$
(26)

3.1 Asymptotic secrecy outage probability

Here, asymptotic nature of SOP in high SNR regime ψ1→∞ is considered. By applying ([31], Eq. 1.211.1), the first-order expansion of \( F^{\infty }_{{\psi _{1}}}\) is written as (27). Using (27) in (7), asymptotic SOP is calculated in (28). Here, we assume there are N E antennas at eavesdropper, i.e., M=N E .

$$ F^{\infty}_{{\psi_{1}}|(X)}(x_{1}) =\left\{ \begin{array}{ll} \frac{1}{{M_{C}}^{M-M_{C}} {M_{C}!}}\left(\frac{x_{1}}{\psi_{1}}\right)^{M},~~0\leq{x_{1}}\leq{\psi_{t}}\\ \vdots\\ \left(\frac{x_{1}}{\psi_{1}}\right)^{M}-{P_{\psi_{1}}(\psi_{t})}+\frac{1}{{M_{C}}^{M-M_{C}} {M_{C}!}}\\\left(\frac{x_{1}}{\psi_{1}}\right)^{M} + \sum_{i=2}^{M_{C}}\sum_{j=0}^{M-i}\\ \frac{(-1)^{j}M!}{(M-i-j)!(i-1)!(i-2)!(j!)\psi_{1}^{i}} \\\int_{\frac{(i-1)\psi_{t}}{i}}^{\frac{(i-1)x_{1}}{i}} \int_{\psi_{t}-y}^{\frac{y}{i-1}} \left[y+(1-i)x_{1}\right]^{(i-2)} \text{dzdy} +\\ \int_{\frac{(i-1)\psi_{t}}{i}}^{\psi_{t}} \int_{\psi_{t}-y}^{x_{1}-y} \left[y+(1-i)x_{1}\right]^{(i-2)}\\ \text{dzdy},~{\Psi_{t}}\leq{x_{1}} <\frac{M_{c}}{M_{c}-1} {\Psi_{t}}\\ \vdots\\ \left(\frac{x_{1}}{\psi_{1}}\right)^{M}-{P_{\psi_{1}}(\psi_{t})}+\frac{1}{{M_{C}}^{M-M_{C}} {M_{C}!}}\\\left(\frac{x_{1}}{\psi_{1}}\right)^{M} + \sum_{i=2}^{l}\sum_{j=0}^{M-i}\\\frac{(-1)^{j}M!}{(M-i-j)!(i-1)!(i-2)!(j!)\psi_{1}^{i}}\\ \int_{\frac{(i-1)\psi_{t}}{i}}^{\frac{(i-1)x_{1}}{i}} \int_{\psi_{t}-y}^{\frac{y}{i-1}} \left[y+(1-i)x_{1}\right]^{(i-2)} \text{dzdy} +\\ \int_{\frac{(i-1)\psi_{t}}{i}}^{\psi_{t}} \int_{\psi_{t}-y}^{x_{1}-y} \left[y+(1-i)x_{1}\right]^{(i-2)}\\ \text{dzdy},~\frac{v+1}{v}{\Psi_{t}}\leq{x_{1}} <\frac{v}{v-1}{\Psi_{t}}\\ \vdots\\ \left(\frac{x_{1}}{\psi_{1}}\right)^{M}, ~~{2{\Psi_{t}}}<{x_{1}}\\ \end{array} \right. $$
(27)

\({P_{\psi _{1}}(\psi _{t})}=\sum _{i=0}^{M}{M\choose {i}}e^{\frac {-\psi _{t}}{\psi _{1}}}\)

$$ P^{\text{Asmptotic}}_{\text{out}} =\left\{ \begin{array}{ll} P_{A},~~{0}\leq{x_{1}}<{\Psi_{t}};\\ \vdots\\ P_{B}-P_{\text{out}_{1}}({\Psi_{t}})+ P_{A}+\int_{0}^{\infty}\int_{0}^{\infty}\frac{1}{\Omega_{0}}\\ e^{\frac{-y}{\Omega_{0}}} \frac{x^{N_{E}-1}e^{\frac{-x}{\psi_{2}}}}{{\psi_{2}}^{N_{E}}(N_{E}-1)!}\left\{ \sum_{i=2}^{M_{C}}\sum_{j=0}^{M-i}\right.\\ \frac{(-1)^{j}M!}{(M-i-j)!(i-1)!(i-2)!(j!)\psi_{1}^{i}} \\ \int_{\frac{(i-1)\psi_{t}}{i}}^{\frac{(i-1)x_{1}}{i}} \int_{\psi_{t}-y}^{\frac{y}{i-1}} \left[y+(1-i)x_{1}\right]^{(i-2)} \text{dzdy} +\\ \left. \int_{\frac{(i-1)\psi_{t}}{i}}^{\psi_{t}} \int_{\psi_{t}-y}^{x_{1}-y} \left[y+(1-i)x_{1}\right]^{(i-2)}\text{dzdy} \right\}\\ \text{dxdy},~~{\Psi_{t}}\leq{x_{1}} <\frac{M_{c}}{M_{c}-1} {\Psi_{t}}\\ \vdots\\ P_{B}-P_{\text{out}_{1}}({\Psi_{t}})+ P_{A}+\int_{0}^{\infty}\int_{0}^{\infty}\frac{1}{\Omega_{0}}\\ e^{\frac{-y}{\Omega_{0}}} \frac{x^{N_{E}-1}e^{\frac{-x}{\psi_{2}}}}{{\psi_{2}}^{N_{E}}(N_{E}-1)!}\left\{ \sum_{i=2}^{l}\sum_{j=0}^{M-i}\right.\\ \frac{(-1)^{j}M!}{(M-i-j)!(i-1)!(i-2)!(j!)\psi_{1}^{i}} \\ \int_{\frac{(i-1)\psi_{t}}{i}}^{\frac{(i-1)x_{1}}{i}} \int_{\psi_{t}-y}^{\frac{y}{i-1}} \left[y+(1-i)x_{1}\right]^{(i-2)} \text{dzdy} +\\ \int_{\frac{(i-1)\psi_{t}}{i}}^{\psi_{t}} \int_{\psi_{t}-y}^{x_{1}-y} \left[y+(1-i)x_{1}\right]^{(i-2)}\\ \left. \text{dzdy}{\vphantom{\sum_{i=2}^{l}\sum_{j=0}^{M-i}}} \right\}\text{dxdy} ~~\frac{v+1}{v}{\Psi_{t}}\leq{x_{1}} <\frac{v}{v-1}{\Psi_{t}}\\ \vdots\\ {P_{B}},~~{2{\Psi_{t}}}<{x_{1}}\\ \end{array} \right. $$
(28)
$$\begin{array}{*{20}l} P_{A}=\frac{1}{{M_{C}}^{M-M_{C}} {M_{C}!}}{P_{B}} \end{array} $$
(29)

where

$$ \begin{aligned} P_{B}=\frac{\left(1-e^{\frac{-\sigma}{\Omega_{0}}}\right)}{(\psi_{2})^{N_{E}}(N_{E}-1)}\sum\limits_{k=0}^{M}{M\choose{k}} \left(\frac{2^{Rs}-1}{\psi_{1}}\right)^{k}\left(\frac{2^{Rs}}{\psi_{1}}\right)^{M-k}\\ \int_{0}^{\infty}x^{N_{E}-1+M-k}e^{\frac{-x}{\psi_{2}}}dx+ \sum\limits_{k=0}^{M}{M\choose{k}} \left(\frac{2^{Rs}-1}{{\sigma}\psi_{1}}\right)^{k}\left(\frac{2^{Rs}}{{\sigma}\psi_{1}}\right)^{M-k}\\ \int_{0}^{\infty}x^{N_{E}-1+M-k}e^{\frac{-xy}{{\sigma}\psi_{2}}}dx \frac{1}{\Omega_{0}} \int_{\sigma}^{\infty}e^{\frac{-y}{\Omega_{0}}}dy \end{aligned} $$
(30)

(28) can also be written as

$$\begin{array}{*{20}l} P^{\text{Asmptotic}}_{\text{out}}=({G_{A}}\psi_{1})^{-G_{D}}+O\left(\psi_{1}^{-G_{D}}\right) \end{array} $$
(31)

For 0≤x1≤ψ t , the secrecy diversity order is

$$ {G_{D}}=M, $$
(32)

and the secrecy array gain is

$$ \begin{array}{r} {G_{A}}=\left[\frac{1}{{(M_{c})!M_{c}^{M-M_{c}}}}\frac{(q+N_{E}-1)!}{(N_{E}-1)!}\sum\limits_{q=0}^{M}{M\choose{q}}\left({2^{Rs}-1}\right)^{M-q}\right.\\ \left({2^{Rs}}\right)^{q}{\gamma_{2}}^{q} \left(1-e^{-\frac{\sigma}{\Omega_{0}}}\right)+\frac{1}{{(M_{c})!M_{c}^{M-M_{c}}}}\frac{(q+N_{E}-1)!}{(N_{E}-1)!}\\ \sum\limits_{q=0}^{M}{M\choose{q}}\left({2^{Rs}-1}\right)^{M-q} \left({2^{Rs}}\right)^{q}\left({{\sigma}\gamma_{2}}\right)^{q}\ e^{\frac{-\sigma}{\Omega_{0}}}\sum\limits_{t=0}^{M-1}\frac{(M-q)}{t!}\\ \left. \frac{(\sigma)^{t}}{\left(\frac{1}{\Omega_{0}}\right)^{M-q-t+1}}\right]^{\frac{-1}{M}} \end{array} $$
(33)

For 2Ψ t <x1, the secrecy diversity order is G D =M and secrecy array gain is

$$\begin{array}{*{20}l} {}{G_{A1}}=\left[\!\!\frac{(q+N_{E}-1)!}{(N_{E}-1)!}\sum\limits_{q=0}^{M}{M\choose{q}}\left({2^{Rs}-1}\right)^{M-q} \left({2^{Rs}}\right)^{q}{\psi_{2}}^{q}\right.\\ {}\left(\!1-e^{-\frac{\sigma}{\Omega_{0}}}\!\right)+\frac{(q+N_{E}-1)!}{(N_{E}-1)!} \sum\limits_{q=0}^{M}{M\choose{q}}\left({2^{Rs}-1}\right)^{M-q} \left({2^{Rs}}\right)^{q}\\ \left. \left({{\sigma}\psi_{2}}\right)^{q} e^{\frac{-\sigma}{\Omega_{0}}}\sum\limits_{t=0}^{M-1}\frac{(M-q)}{t!}\frac{(\psi)^{t}}{\left(\frac{1}{\Omega_{0}}\right)^{M-q-t+1}}\right]^{\frac{-1}{M}} \end{array} $$
(34)

According to (31), (32), (33), and (34), we have the following remarks to provide insight into the use of MS-GSC at secondary receiver.

Remark 2

As indicated in (28), asymptotic SOP approaches to zero as ψ1→∞. Furthermore, one also can observe that all asymptotic curves tightly approximate the exact curves in high ψ1 regime.

Remark 3

The asymptotic result confirm that the secrecy diversity order is independent of N E and ψ2, as indicated in (32). Note the secrecy outage probability increases with increasing N E and ψ2. This confirms that the secrecy array gain in (33) and (34) is a decreasing function of N E and ψ2.

Remark 4

The secrecy diversity order is independent of choice of M c i.e. the number of combined antennas in B. It is dependent on the number of available receiver antennas at the B.

4 Numerical result

Numerical results highlight the effect of number of diversity branches, average SNR of ER, and σ on SOP. We assume Ω0=1 throughout this analysis. Exact and asymptotic curves are obtained from (15) and (28), respectively. These curves are also verified using Monte-Carlo simulations.

Figure 1 plots SOP of MS-GSC as given in (15) as a function of output threshold R s for different numbers of diversity branches M c . Here, we assume Ψ1= 30 dB, Ψ2= 10 dB, Ψ t = 7 dB, σ= 1, and M=7. We also plot SOP of 7/3-GSC for comparison. It is clear from the figure that SOP decreases as the number of diversity branches M c increases, especially when the output threshold R s is less than Ψ t . When R s > Ψ t , the MS-GSC combiner try to increase the Ψcom above Ψ t and the SOP degrades. So, it is confirmed that the output threshold R s should be less than or equal to the threshold SNR Ψ t . For M c = 3, SOP of MS-GSC is same as conventional GSC if R s > Ψ t .

Fig. 1
figure 1

Secrecy outage probability versus output threshold R s . Secrecy outage probability versus R s for different numbers of selected antennas M c with ψ1 = 30 dB, Ψ2 = 10 dB, Ψ t = 7 dB, σ = 0.5, and M = 7. Solid line represents the exact result and block dots represent the simulation result

Figure 2 plots SOP versus average SNR of the main channel Ψ1 for different numbers of MS-GSC branches. As we see, SOP decreases as the number of MS-GSC branches M c increases.

Fig. 2
figure 2

Secrecy outage probability versus ψ1. Secrecy outage probability versus SNR of the main channel ψ1 for different numbers of selected antennas M c with R s = 1, Ψ2 =10 dB, Ψ t =10 dB, σ = 1, and M = 7

Figure 3 plots the exact and asymptotic SOP obtained from (15) and (28) versus the average SNR of main channel Ψ1 for different numbers of MS-GSC branches with variation in average SNR of ER’s channel. From the figure, it is clear that asymptotic curves correlate with the exact result at high SNR regime. According to (32), the secrecy diversity order is independent of N E and only dependent on M. As Ψ2 increases, secrecy performance degrades.

Fig. 3
figure 3

Exact and asymptotic secrecy outage probability versus ψ1 for different value of ψ2. Exact and asymptotic secrecy outage probability versus ψ1 for different value of ψ2 with R s = 1, Ψ2 =10 dB, Ψ t =10 dB, σ = 1, and M = 7. Dotted lines represent the asymptotic results

Figure 4 plots SOP for different values of σ. We see that SOP decreases with increasing σ. This is because of peak interference power constraint \(\sigma = \frac {\Psi _{p}}{\Psi _{0}} = \frac {P_{I}}{P_{av}}\), which leads to increase in average transmit power of Alice given by (8).

Fig. 4
figure 4

Variation in secrecy outage probability with σ. Secrecy outage probability versus ψ1 for different values of σ with Ψ t = 5 dB, Ψ2 = 10 dB, R s =1, M c = 6, and M = 7

Figure 5 plots active MRC branches versus threshold SNR Ψ t . We can see that active MRC branches increases as threshold SNR ψ t increases because it is very hard to increase the SNR of the combined Ψcom above Ψ t . MS-GSC requires less active MRC branches as compared to GSC that result in less processing power. The percentage of power saving for different number of antenna is shown in Table 1.

Fig. 5
figure 5

Average number of active MRC branches. Active MRC branches versus output SNR for different numbers of antennas M with M c = 2 and Ψ1 = 10 dB

Table 1 Power saving by MS-GSC

5 Conclusions

We proposed MS-GSC/MRC protocol for underlay cognitive radio network. We consider SOP as a main parameter to analyze secrecy of proposed system. We derived closed-form expression for exact and asymptotic SOP. From numerical results, it has been concluded that MS-GSC saves more processing power in comparison to conventional GSC, and the number of selected antennas M c and σ has positive impact on SOP.

6 Appendix

Based on (9), \(Y\leq \frac {\Psi _{p}}{\Psi _{0}},{\Psi _{M}}={\Psi _{0} X_{M}},{\Psi _{E}}={\Psi _{0} X_{E}}\) and when \(Y>\frac {\Psi _{p}}{\Psi _{0}},{\Psi _{M}}={\frac {\Psi _{p}}{Y}X_{M}},{\Psi _{E}}={\frac {\Psi _{p}}{Y}}{X_{E}}\). Hence, SOP for proposed system can be calculated as

$$\begin{array}{*{20}l} {}{P_{\text{out}}}= \underbrace{\int_{0}^{\sigma}\int_{0}^{\infty}F_{\psi_{1}(X_{1}=x_{1})}(x_{1}) f_{\psi_{2}(X=x)}(x) f_{Y}(y)\text{dxdy}}_{J_{1}}\\ \underbrace{\int_{\sigma}^{\infty}\int_{0}^{\infty}F_{\psi_{1}(X_{1}=x_{1})}(x_{1}) f_{\psi_{2} (X=x)}(x) f_{Y}(y)\text{dxdy}}_{J_{2}} \end{array} $$
(35)
$$ {}J_{1}=\int_{0}^{\sigma}\int_{0}^{\infty}F_{\psi_{1}(X_{1}=x_{1})}(x_{1}) f_{\psi_{2}(X=x)}(x) f_{Y}(y)\text{dxdy} $$
(36)

for \(X_{1}\leq \frac {\psi _{p}}{\psi _{0}}\), substituting Eqs. (10), (12), and (14) in Eq. (36), J1 can be calculated as

$$ {J_{1}}=\left\{ \begin{array}{ll} {P_{\text{out}_{A1}}} &{0}\leq{x_{1}}<{\Psi_{t}};\\ {P_{\text{out}_{B1}}} &{\Psi_{t}}\leq{x_{1}} <\frac{M_{c}}{M_{c}-1} {\Psi_{t}}\\ \vdots\\ {P_{\text{out}_{C1}}} &\frac{v+1}{v}{\Psi_{t}}\leq{x_{1}} <\frac{v}{v-1}{\Psi_{t}}\\ \vdots\\ {P_{\text{out}_{D1}}} &{2{\Psi_{t}}}<{x_{1}}\\ \end{array} \right. $$
(37)
$$ \begin{aligned} {P_{\text{out}_{A1}}}&=\frac{M!}{M_{C}!(M-M_{C})!}\left\{\!\left(\!1-e^{\frac{\sigma}{\Omega_{0}}}\!\!\right)\!\left(\!1-\sum\limits_{k=0}^{L_{c}-1}\sum\limits_{n=0}^{k}{\mu_{1}} e^{\left(\frac{-\left(2^{Rs}-1\right)}{\Psi_{1}}\right)}\right. \right. \\[-2pt] &\quad+\sum\limits_{v=1}^{M-{M_{c}}}{C_{2}}{C_{3}} -\sum\limits_{v=1}^{M-{M_{c}}}\sum\limits_{m=0}^{M_{c}-2}{C_{2}}{C_{4}} \\[-4pt] &\quad -\sum\limits_{v=1}^{M-M_{c}}{C_{2}}{C_{4}} ~ {\beta_{1}} e^{\,-\,\left(\!\!\frac{\left(2^{Rs}-1\right)\left(1+\frac{V}{M_{c}}\right)}{\Psi_{1}}\!\!\right)} \\[-3pt] &\quad\left. \left. \,+\, \sum\limits_{v=1}^{M-M_{c}}\sum\limits_{m=0}^{M_{c}-2}\sum\limits_{k=0}^{m}\sum\limits_{n=0}^{k}{C_{2}}{C_{4}}{\mu_{1}}~e^{-\left(\frac{2^{RS}-1}{\Psi_{1}}\right)}{\vphantom{1-\sum\limits_{k=0}^{L_{c}-1}\sum\limits_{n=0}^{k}{\mu_{1}} e^{\left(\frac{-\left(2^{Rs}-1\right)}{\Psi_{1}}\right)}}}\right)\right\} \end{aligned} $$
(38)
$$\begin{array}{*{20}l} {}P_{\text{out}_{B1}}=P_{\text{out}_{D1}}-P_{\text{out}_{1A}}({\Psi_{t}})+P_{\text{out}_{M_{c1}}}({\Psi_{t}})+\sum_{w=2}^{M_{c}}{P_{\text{out}_{M1}}} \end{array} $$
(39)
$$ {P_{\text{out}_{M}}}={I_{1}} $$
(40)
$$\begin{array}{*{20}l} {}{P_{\text{out}_{D1}}}={\left(1-e^{\frac{-\sigma}{\Omega_{0}}}\right)}\sum\limits_{v=0}^{M}{M\choose{v}}{(-1)^{v}}\frac{e^{-\left(\frac{-v{\left(2^{Rs}-1\right)}}{\Psi_{1}}\right)}}{(\Psi_{2})^{M}\left(\frac{v{2^{Rs}}}{\Psi_{1}}+ \frac{1}{\Psi_{2}}\right)^{M}} \end{array} $$
(41)
$$\begin{array}{*{20}l} P_{\text{out}_{1A}}({\Psi_{t}})&=\sum\limits_{v=0}^{M}{M\choose{v}}(-1)^{v}e^{\frac{-v\psi_{t}}{\psi_{1}}}\left(1-e^{\frac{-\sigma}{\Omega_{0}}}\right)\end{array} $$
(42)
$$\begin{aligned} P_{\text{out}_{M_{c1}}}({\Psi_{t}})&=\left(1-e^{\frac{-\sigma}{\Omega_{0}}}\right)\frac{M!}{(M-M_{c})!M_{c}!}\left\{1-e^{\frac{-\Psi_{t}}{\Psi_{1}}}\sum\limits_{k=0}^{M_{c}-1} \frac{1}{k!}\right. \end{aligned} $$
$$ \begin{aligned} &\left(\frac{\Psi_{t}}{\Psi_{1}}\right)^{k} +\sum\limits_{v=1}^{M-M_{c}}C_{2}\left[C_{3}\left(1-e^{-\left(1+\frac{v}{M_{c}}\right)\frac{\Psi_{t}}{\Psi_{1}}}\right)\right.\\ &\left. \left. -\sum\limits_{m=0}^{M_{c}-2}{C_{4}} \left(1-e^{\frac{-\Psi_{t}}{\Psi_{1}}}\sum\limits_{k=0}^{m}\frac{1}{k!}\bigg(\frac{\Psi_{t}}{\Psi_{1}}\bigg)^{k}\right)\right]\right\} \end{aligned} $$
(43)
$$\begin{array}{*{20}l} P_{\text{out}_{C1}}=P_{\text{out}_{D}}-P_{\text{out}_{1A}}({\Psi_{t}})+P_{\text{out}_{v1}}({\Psi_{t}})+\sum\limits_{w=2}^{v}{P_{\text{out}_{M1}}} \end{array} $$
(44)
$$ \begin{aligned} P_{\text{out}_{v1}}({\Psi_{t}})&=\left(1-e^{\frac{-\sigma}{\Omega_{0}}}\right)\frac{M!}{(M-v)!v!}\left\{1-e^{\frac{-\Psi_{t}}{\Psi_{1}}}\sum\limits_{k=0}^{v-1} \frac{1}{k!} \bigg(\frac{\Psi_{t}}{\Psi_{1}}\bigg)^{k}\right.\\ &\quad+\sum\limits_{v=1}^{M-v}(-1)^{2v-1} \frac{(M-v)!}{(M-v-v)!v!} \times\left[\frac{1}{2} \left[1-e^{-\frac{2\Psi_{t}}{\Psi_{1}}}\right]\right.\\ &\left.\left.\quad-\sum\limits_{m=0}^{v-2} \left(-1\right)^{m} \left(1-e^{\frac{-\Psi_{t}}{\Psi_{1}}}\sum\limits_{k=0}^{m} \frac{1}{k!}\left(\frac{\Psi_{t}}{\Psi_{1}}\right)^{k} \right) \right] \right\} \end{aligned} $$
(45)

I1 given in (20) can be calculated using ([22], Eq. (30)).

$$ \begin{aligned} {}{I_{1}}=\left(1-e^{\frac{-\sigma}{\Omega_{0}}}\right)\left({r_{1}}\left[{r_{5}}-\frac{e^{\frac{2^{Rs}-1}{\Psi_{1}}}}{(M-1)!}{{\Psi_{2}}^{M}}\sum\limits_{a=0}^{m-v}{\left(2^{Rs}-1\right)}^{m-v-a}{\left(2^{Rs}\right)}^{a} \frac{(a+M-1)!} {\left({\frac{2^{Rs}}{\Psi_{1}}+\frac{1}{\Psi_{2}}}\right)^{a+M}} +\frac{e^{\frac{2^{Rs}-1}{\gamma_{1}}}}{(M-1)!{\Psi_{2}^{M}}}\sum\limits_{a=0}^{m-l} \left({2^{Rs}-1}\right)^{m-v-a}{\left(2^{Rs}\right)}^{a}\right. \right. \\ \left. \sum\limits_{b=0}^{w-1-k+v}{{w-1-k+v}\choose{b}} \left(\frac{(w-1)\left(2^{Rs}-1\right)}{w\Psi_{t}}\right)^{(w-1-k+v-b)}\left(\frac{(w-1)\left(2^{Rs}\right)}{w\Psi_{t}}\right)^{b}\frac{(a+b+M-1)!}{\left({\frac{2^{Rs}}{\Psi_{1}}+\frac{1}{\Psi_{2}}}\right)^{a+b+M}} \right] + r_{2} \left[r_{3}-\sum\limits_{a=0}^{m-v}\right.\\ {}\sum\limits_{n=0}^{w-2-k+v}\sum\limits_{b=0}^{n}{{m-v}\choose{a}}\left({2^{Rs}-1}\right)^{m-v-a} {\left(2^{Rs}\right)}^{a}e^{\left(\frac{(w+j)\left(2^{Rs}-1\right)}{w{\Psi_{1}}} \right)} {n\choose{a}} \frac{1}{n!}\left(\frac{-(w-1)j\left(2^{Rs}-1\right)}{w{\Psi_{1}}}\right)^{n-b} \left(\frac{-(w-1)j\left(2^{Rs}\right)}{w{\Psi_{1}}}\right)^{n} \frac{(a+b+M-1)!}{(M-1)!{\Psi_{2}}^{M}} \\ {}\frac{1} {\left(\left((w+j)\frac{2^{Rs}}{\Psi_{1}}\right)+\frac{1}{\Psi_{2}}\right)^{a+b+M} } + \sum\limits_{a=0}^{m-v} \sum\limits_{n=0}^{w-2-k+v} {m-v\choose{a}} {\left(2^{Rs}-1\right)}^{m-v-a} {\left(2^{Rs}\right)}^{a} e^{\left(\frac{-(j+1)\left(2^{Rs}-1\right)}{\Psi_{1}}\right)} \\ {}\left. e^{-j\frac{\Psi_{t}}{\Psi_{1}}} {r_{25}}\frac{(a+M-1)!}{(M-1)!{\Psi_{2}}^{M}} \frac{1} {\left(\left((w+j)\frac{2^{Rs}}{\Psi_{1}}\right)+ \frac{1}{\Psi_{2}}\right)^{a+M}} \right] + {r_{4}}\left[r_{10} - \sum\limits_{n=0}^{w-2-k+m}\sum\limits_{b=0}^{n}e^{\left(\frac{-(w+j)\left(2^{Rs}-1\right)}{{w}\Psi_{1}}\right)} e^{\left(\frac{-(w+j)\left(2^{Rs}\right)}{{w}\Psi_{1}}\right)}{\frac{1}{n!}}\left(\frac{(w+j)}{w{\Psi_{1}}}\right)^{n}{n\choose{b}} {\left(2^{Rs}-1\right)}^{n-b}\right. \\[-5pt] \left. \left. {\left(2^{Rs}\right)}^{b} \frac{(a+M-1)!}{(M-1)!{\Psi_{2}}^{M}} \frac{1}{\left(\frac{(w+j)2^{Rs}}{w{\Psi_{1}}}+\frac{1}{\Psi_{2}}\right)^{b+M}} \right]\right) \\[-2pt] {r_{1}}=\frac{M!}{(M-w)!(w-1)!}\sum\limits_{k=0}^{w-2}\frac{(1-w)^{k}}{(w-2-k)!}\sum\limits_{m=0}^{k}\frac{1}{\Psi_{1}^{w-1-k+m}}\sum\limits_{v=0}^{m}\frac{(-1)^{v}}{(m-v)!l!}\frac{\Psi_{t}^{w-1-k+v}}{w-1-k+v}, ~~ {r_{5}}=e^{\frac{-\Psi_{t}}{\Psi_{1}}}{\Psi_{t}^{m-v}}\left(1-\left(\frac{w-1}{w}\right)^{w-1-k+v}\right) \\ {r_{2}}=\sum\limits_{j=1}^{M-w}\frac{(-1)^{j}M!}{(L-w-j)!(w-1)!j!\Psi_{1}^{w}}\sum\limits_{k=0}^{w-2}\frac{(1-w)^{k}}{(w-2-k)!}\sum\limits_{m=0}^{k}\left(\frac{j+1}{\gamma_{1}}\right)^{m-k-1}\sum\limits_{v=0}^{m}\frac{(-1)^{l}(w-2-k+l)!}{(m-v)!v!} \left(\frac{-\Psi_{t}}{j}\right)^{w-1-k+v} \\ {r_{3}}={\Psi_{t}}^{m-v}\left(e^{\frac{-(w+j)\Psi_{t}}{w{\Psi_{1}}}}\sum\limits_{n=0}^{i-2-k+l}\frac{1}{n!}\left(\frac{-(w-1)j{\Psi_{t}}}{w{\Psi_{1}}}\right)^{n} - e^{\frac{-\Psi_{t}}{\Psi_{1}}}\sum\limits_{n=0}^{w-2-k+l}\frac{1}{n!}\bigg(\frac{-j{\Psi_{t}}}{\Psi_{1}}\bigg)^{n}\right) \\ {r_{4}}=\sum\limits_{j=0}^{M-w}\frac{(-1)^{j}M!}{(M-w-j)!(w-1)!j!{\Psi_{1}}^{w}}\sum\limits_{k=0}^{w-2}\frac{(1-w)^{k}}{(w-2-k)!}\sum\limits_{m=0}^{k}\frac{(w-2-k+m)!}{m!(w-1)^{m}}\left(\frac{j+1}{\Psi_{1}}\right)^{m-k-1}\left(\frac{(w-1)\Psi_{1}}{w+j}\right)^{w-1-k+m} \\ {r_{10}}=e^{\frac{-(w+j)\Psi_{t}}{w{\Psi_{1}}}}\sum\limits_{n=0}^{w-2-k+m}\frac{1}{n!}\left(\frac{(w+j)\Psi_{t}}{w{\Psi_{1}}}\right)^{n},~~~ {r_{25}}=\frac{1}{n!}\left(\frac{-j{\Psi_{t}}}{\Psi_{1}}\right)^{n} \\ \end{aligned} $$
(46)
$$\begin{array}{*{20}l} J_{2}=\int_{\frac{\psi_{p}}{\gamma_{0}}}^{\infty}\int_{0}^{\infty}F_{\gamma_{1}(X_{1}=x_{1})}(x_{1}) f_{\gamma_{2}(X=x)}(x) f_{Y}(y)\text{dxdy} \end{array} $$
(47)

for \(X_{1}>\frac {\gamma _{p}}{\gamma _{0}}\)

By Eqs. (10), (12), and (14) in Eq. (36) and using

\(\int _{\rho }^{\infty } x^{m}{e^{-\mu {x}}}dx = e^{-\rho \mu } \sum _{p=0}^{m}\frac {m!}{p!} \frac {\rho ^{k}}{\mu ^{m-p+1}}\), J2 can be given as

$$ {J_{2}}=\left\{ \begin{array}{ll} {P_{\text{out}_{A2}}} &{0}\leq{x_{1}}<{\Psi_{t}};\\ {P_{\text{out}_{B2}}} &{\Psi_{t}}\leq{x_{1}} <\frac{M_{c}}{M_{c}-1} {\Psi_{t}}\\ \vdots\\ {P_{\text{out}_{C2}}} &\frac{v+1}{v}{\Psi_{t}}\leq{x_{1}} <\frac{v}{v-1}{\Psi_{t}}\\ \vdots\\ {P_{\text{out}_{D2}}} &{2{\Psi_{t}}}<{x_{1}}\\ \end{array}\right. $$
(48)
$$\begin{array}{*{20}l} {p_{\text{out}_{A2}}}=\frac{M!}{M_{C}!(M-M_{C})!}\left\{ e^{\frac{-\sigma}{\Omega_{0}}} - \sum\limits_{k=0}^{M_{c}-1}\sum\limits_{n=0}^{k}\sum\limits_{p=0}^{k-n}{Q_{1}}{Q_{2}}\right. \\ e^{-{\sigma}\left(\frac{2^{Rs}-1} {\sigma {\Psi_{1}}}+\frac{1}{\Omega_{0}}\right)} + \sum\limits_{v=1}^{M-M_{c}}{C_{2}}{C_{3}}e^{-\left(\frac{\sigma}{\Omega_{0}}\right)} -\sum\limits_{v=1}^{M-M_{c}}{C_{2}}{C_{3}}{\beta_{2}}\\ e^{-\sigma\left(\left(1+\frac{M}{M_{c}}\right)\left(\frac{2^{Rs}-1}{\sigma\psi_{1}}\right)+{\frac{1}{\Omega_{0}}}\right)} - {\sum\limits_{v=1}^{M-M_{c}}\sum\limits_{m=0}^{M_{c}-2}{C_{2}}{C_{4}}e^{-\left(\frac{\sigma}{\Omega_{0}}\right)}} \\ \left. + \sum\limits_{v=1}^{M-M_{c}}\sum\limits_{m=0}^{M_{c}-2}\sum\limits_{k=0}^{m} \sum\limits_{n=0}^{k}\sum\limits_{p=0}^{k-n}{C_{2}}{C_{4}}{Q_{1}}{Q_{2}}e^{-{\sigma}\left(\frac{2^{Rs}-1}{{\sigma}{\Psi_{1}}} +{\frac{1}{\Omega_{0}}}\right)} \right\} \end{array} $$
$$\begin{array}{*{20}l} {}P_{\text{out}_{B2}}=P_{\text{out}_{D2}}-P_{\text{out}_{2A}}({\Psi_{t}})+P_{\text{out}_{M_{c2}}}({\Psi_{t}})+\sum\limits_{w=2}^{M_{c}}{P_{\text{out}_{M}}} \end{array} $$
(49)
$$ \begin{aligned} P_{\text{out}_{D2}} &=\sum_{v=0}^{M}{M\choose{v}}{(-1)^{v}} \\ &\quad \times\left(\frac{1}{({\sigma}\Psi_{2})^{M} \bigg(\frac{v{2^{Rs}}}{{\sigma}\Psi_{1}}+\frac{1}{\sigma{\Psi_{2}}}\bigg)^{M}} \frac{e^{-\left(\frac{{v}{\left(2^{Rs}-1\right)}}{\Psi_{1}}+ \frac{\sigma}{\Omega_{0}}\right)}}{\left(\frac{{v}{\left(2^{Rs}-1\right)}}{{\sigma}\Psi_{1}}+ \frac{1}{\Omega_{0}}\right)} \right) \end{aligned} $$
(50)
$$\begin{array}{*{20}l} P_{\text{out}_{2A}}({\Psi_{t}})=\sum_{v=0}^{M}{M\choose{v}}(-1)^{v}\frac{e^{-\sigma\left(\frac{v\psi_{t}}{{\psi_{1}}}+\frac{\sigma}{\Omega_{0}}\right)}}{\left(\frac{v\psi_{t}}{\sigma{\psi_{1}}}+\frac{1}{\Omega_{0}}\right)} \end{array} $$
(51)
$$ {\begin{aligned} P_{\text{out}_{M_{c2}}}({\Psi_{t}})&= \frac{M!}{(M-M_{c})!M_{c}!}\left[e^{\frac{-\sigma}{\Omega_{0}}}\left(1+\sum_{v=1}^{M-M_{c}}{C_{2} C_{3}}\right. \right.\\ &\left.-\sum_{v=1}^{M-M_{c}}\sum_{m=0}^{M_{c}-2}{C_{2}}{C_{4}}\right)-\frac{1}{\Omega_{0}}\sum_{k=0}^{M_{c}-1}\sum_{l=0}^{k}\frac{1}{k!}\left(\frac{\psi_{t}}{\sigma{\psi_{1}}}\right)^{k}\\ &e^{-\left(\frac{\psi_{t}}{\psi_{1}}\,+\,\frac{\sigma}{\Omega_{0}}\right)}\frac{k!}{l!} \frac{(\sigma)^{l}}{\left(\frac{\psi_{t}}{\sigma{\psi_{1}}}\,+\,\frac{1}{\Omega_{0}}\right)}^{k\!-{l}+1}\left(\!1\,-\,\!\sum_{v=1}^{M-M_{c}}\!\sum_{m=0}^{M_{c}-2}{C_{2}}{C_{4}}\!\right)\\ &\left.-\frac{1}{\Omega_{0}}\sum_{v=1}^{M-M_{c}} {C_{2}}{C_{3}}\frac{e^{-\left(\frac{\psi_{t}}{C_{3}\sigma{\psi_{1}}}+\frac{\sigma}{\Omega_{0}}\right)}}{\frac{\psi_{t}}{C_{3}\sigma{\psi_{1}}}+\frac{\sigma}{\Omega_{0}}}\right] \end{aligned}} $$
(52)
$$\begin{array}{*{20}l} P_{\text{out}_{C2}}=P_{\text{out}_{D2}}-P_{\text{out}_{1}}({\Psi_{t}})+P_{\text{out}_{v2}}({\Psi_{t}})+\sum_{w=2}^{v}{P_{\text{out}_{M1}}} \end{array} $$
(53)
$$\begin{array}{*{20}l} P_{\text{out}_{v2}}({\Psi_{t}})= \frac{M!}{(M-v)!{v}}\left[e^{\frac{-\sigma}{\Omega_{0}}} \left(1+\sum_{v=1}^{M-v}{\frac{1}{2}}{K_{1}}-\sum_{v=1}^{M-v}\right.\right.\\ {}\left.\sum_{m=0}^{v-2}{K_{1}}{(-1)}^{m}\right) - \frac{1}{\Omega_{0}}\sum_{k=0}^{v-1}\sum_{l=0}^{k} \frac{1}{k!} \left(\frac{\psi_{t}}{\sigma{\psi_{1}}}\right)^{k} e^{-\left(\frac{\psi_{t}}{\psi_{1}}+\frac{\sigma}{\Omega_{0}}\right)} \frac{k!}{l!}\\ \frac{(\sigma)^{l}}{\left[\frac{\psi_{t}}{\psi_{1}{\sigma}}+\frac{1}{\Omega_{0}}\right]^{k-l+1}}\left(1-\sum_{v=1}^{M-v}\sum_{m=0}^{v-2}{K_{1}}{(-1)}^{m}\right) \\ \left. -\frac{1}{\Omega_{0}}\sum_{v=1}^{M-v} {\frac{1}{2}}{K_{1}} \frac{e^{-\left(\frac{2\psi_{t}}{\psi_{1}}+\frac{\sigma}{\Omega_{0}}\right)}}{\left(\frac{2\psi_{t}}{{\sigma}\psi_{1}}+\frac{1}{\Omega_{0}}\right)}\right] \end{array} $$
(54)
$$\begin{array}{*{20}l} {P_{\text{out}_{M2}}}={I_{2}} \end{array} $$
(55)
$$\begin{array}{*{20}l} {I_{2}}=\left(\left[{r^{\prime}_{1}}{r^{\prime}_{5}} \sum_{c=0}^{w-1-k+m}\frac{(w-1-k+m)!}{c!} \frac{(\sigma)^{c}e^{\left({-\sigma\frac{\Psi_{t}}{\sigma{\Psi_{1}}}}+\frac{1}{\Omega_{0}}\right)}}{\left(\frac{\Psi_{t}}{{\sigma}\Psi_{1}}+ \frac{1}{\Omega_{0}}\right)^{w-k+m-c}} - \frac{r^{\prime}_{1}}{(M-1)!(\sigma{\Psi_{1}})^{M}} \sum_{a=0}^{m-v}{\left(2^{Rs}-1\right)}^{m-v-a}{\left(2^{Rs}\right)^{a}} \frac{(a+M-1)!}{\left(\frac{2^{Rs}}{{\sigma}{\Psi_{1}}} + \frac{1}{{\sigma}{\gamma_{2}}}\right)^{a+M}}{m-v \choose{a}}\right. \right.\\ e^{-\sigma\left(\frac{\left(2^{Rs}-1\right)}{{\sigma}{\Psi_{1}}}+\frac{1}{\Omega_{0}}\right)} \sum_{d=0}^{w-1-k+m+a}\frac{(w-1-k+m+a)!}{d!}\frac{(\sigma)^{d}}{\left(\frac{2^{Rs}-1}{\sigma{\Psi_{1}}}+\frac{1}{\Omega_{0}}\right)^{w-k+m+a}} + \frac{r^{\prime}_{1}}{(M-1)!(\sigma{\Psi_{1}})^{M}} \sum_{a=0}^{m-v} {m-v \choose{a}}\\ {\left(2^{Rs}-1\right)}^{m-v-a}{\left(2^{Rs}\right)^{a}} \sum_{b=0}^{w-1-k+l} {w-1-k+l\choose{a}} \left(\frac{(w-1)\left(2^{Rs}-1\right)}{s\Psi_{t}}\right)^{(w-1-k+v-b)} \left(\frac{(v-1)\left(2^{Rs}\right)}{w\gamma_{t}}\right)^{b} \frac{(a+b+M-1)!}{\left(\frac{2^{Rs}}{{\sigma}{\Psi_{1}}}+ \frac{1}{{\sigma}{\Psi_{2}}}\right)^{a+b+M}} \\ \left. e^{-\sigma\left(\frac{\left(2^{Rs}-1\right)}{{\sigma}{\Psi_{1}}}+\frac{1}{\Omega_{0}}\right)} \sum_{e=0}^{w-1-k+m-a-b} \frac{(w-1-k+m-a-b)!}{e!} \frac{(\sigma)^{e}}{\left(\frac{2^{Rs}-1}{\sigma{\Psi_{1}}}+\frac{1}{\Omega_{0}}\right)^{w-k+m-a-b-e}}\right] \\ +\left[{r^{\prime}_{2}}{\Psi_{t}}^{m-v}\sum_{n=0}^{w-2-k+v}\frac{1}{n!}\left({\frac{-(w-1)j{\Psi_{t}}}{{\sigma}\Psi_{1}{\Psi_{t}}}}\right)^{n} e^{-\sigma\left(\frac{(w +j){\Psi_{t}}}{w{\sigma}{\Psi_{t}}}+{\frac{1}{\Omega_{0}}}\right)} \sum_{f=0}^{n+m-v}\frac{(n+m-v)!}{f!}\right.\\ \frac{(\sigma)^{f}}{\left(\frac{(w+j){\Psi_{t}}}{w{\sigma}{\Psi_{t}}}+{\frac{1}{\Omega_{0}}}\right)} -{r^{\prime}_{2}}{\Psi_{t}}^{m-v}\sum_{n=0}^{w-2-k+l}\frac{1}{n!}\left(\frac{-j{\Psi_{t}}}{{\sigma}{\Psi_{1}}}\right)^{n} \sum_{g=0}^{n+m-v} \frac{(n+m-v)!}{g!} \frac{(\sigma)^{g}}{\left(\frac{\Psi_{t}}{\sigma{\Psi_{1}}}+\left(\frac{1}{\Omega_{0}}\right)\right)^{n+m-v-g+1}} \\ -{r^{\prime}_{2}} \sum_{a=0}^{m-v}\sum_{n=0}^{w-2-k+v}\sum_{b=0}^{n}{m-v\choose{a}} \left(2^{Rs}-1\right)^{m-v-a} {\left(2^{Rs}\right)^{a}} {n\choose{b}}\frac{1}{n!}\left(\frac{-j(w-1){\left(2^{Rs}-1\right)}}{w{\sigma}\Psi_{1}}\right)^{n-b} \left(\frac{-j(w-1){\left(2^{Rs}\right)}}{w{\sigma}\Psi_{1}}\right)^{b}\\ \frac{(a+b+M-1)!}{(M-1)!({{\sigma}\Psi_{2}})^{M}} {\frac{1}{\left(\frac{(w+j)2^{Rs}}{\sigma{\Psi_{1}}}+\frac{1}{\sigma{\Psi_{2}}}\right)^{a+b+M}}} e^{-\sigma\left(\frac{(w+j)\left(2^{Rs}-1\right)}{w{\Psi_{t}}}+\frac{1}{\Omega_{0}}\right)} \sum_{h=0}^{n-a-b} \frac{(n-a-b)!}{h!} \frac{(\sigma)^{h}}{\left(\frac{(w+j)\left(2^{Rs}-1\right)}{w{\Psi_{t}}}+\frac{1}{\Omega_{0}}\right)^{n-a-b+h+1}} +\sum_{a=0}^{m-v}\\ {}\sum_{n=0}^{w-2-k+v} {r^{\prime}_{2}} {m-v\choose{a}} \left(2^{Rs}-1\right)^{m-v-a} {\left(2^{Rs}\right)^{a}} {r^{\prime}_{25}} \frac{(a+M-1)!}{(M-1)!({\Psi_{2}}{\sigma})^{M}} \frac{1}{\left(\frac{(j+1)\left(2^{Rs}\right)}{\sigma{\Psi_{1}}}+\frac{1}{\sigma{\Psi_{2}}}\right)^{a+M}} e^{-\sigma\left(\frac{(j+1)\left(2^{Rs}-1\right)}{\sigma{\Psi_{1}}}+\frac{j{\Psi_{t}}}{\sigma{\Psi_{1}}}+\frac{1}{\Omega_{0}}\right)} \sum_{q=0}^{m-v+n-a}\frac{(m-v+n-a)!}{q!}\\ \left.\frac{(\sigma)^{p}}{\left(\frac{(j+1)\left(2^{Rs}-1\right)}{\sigma{\Psi_{1}}}+\frac{j{\Psi_{t}}}{\sigma{\Psi_{1}}}+\frac{1}{\Omega_{0}}\right)^{m-v+n-a-q+1}} \right] +\left[\frac{r'_{4}}{(M-1)!{(\sigma{\Psi_{2}})^{M}}} \sum_{n=0}^{w-2-k+m} \frac{1}{n!}\left(\frac{(w+j){\Psi_{t}}}{w{\sigma}{\Psi_{1}}}\right)^{n} e^{-\sigma \left(\frac{(w+j){\Psi_{t}}}{w{\sigma}{\Psi_{1}}}+\frac{1}{\Omega_{0}}\right)}\right.\\ \sum_{r=0}^{n}\frac{n!}{r!}\frac{(\sigma)^{r}}{\left(\frac{(w+j){\Psi_{t}}}{w{\sigma}{\Psi_{1}}}+\frac{1}{\Omega_{0}}\right)^{n-r+1}} -\frac{r^{\prime}_{4}}{(M-1)!{(\sigma{\Psi_{2}})^{M}}}\sum_{n=0}^{w-2-k+m}\sum_{b=0}^{n}\frac{1}{n!}\left(\frac{(w+j)}{w{\sigma}{\Psi_{1}}} \right)^{n} {n\choose{b}}\\ \left.\left. {}{\left(2^{Rs}-1\right)^{n-b}} {\left(2^{Rs}\right)^{b}} \frac{(b+M-1)!}{\left(\frac{(w+j){2^{Rs}}}{w{\sigma}{\Psi_{1}}} +\frac{1}{\sigma{\Psi_{2}}}\right)^{b+M}} e^{-\sigma\left(\frac{(w+j){\left(2^{Rs}-1\right)}}{w{\sigma}{\Psi_{1}}}+\frac{(w+j){2^{Rs}}}{w{\sigma}{\Psi_{1}}}+\frac{1}{\Omega_{0}} \right)} \sum_{s=0}^{n-b-M}\frac{(n-b-M)!}{s!} \frac{(\sigma)^{s}}{\left(\frac{(w+j){\left(2^{Rs}-1\right)}}{i{\sigma}{\Psi_{1}}}+\frac{(w+j){2^{Rs}}}{w{\sigma}{\Psi_{1}}}+\frac{1}{\Omega_{0}}\right)^{n-b-v-s+1} } \right]\right)\\ \\ {r^{\prime}_{1}}=\frac{M!}{(M-w)!(w-1)!}\sum_{k=0}^{w-2}\frac{(1-w)^{k}}{(w-2-k)!}\sum_{m=0}^{k}\frac{1}{(\Psi_{1}{\sigma)}^{w-1-k+m}}\sum_{v=0}^{m}\frac{(-1)^{v}}{(m-v)!v!}\frac{\Psi_{t}^{w-1-k+v}}{(w-1-k+l)},~~ {r^{\prime}_{5}}={\Psi_{t}^{m-v}}\left(1-\left(\frac{v-1}{w}\right)^{w-1-k+v}\right)\\ {r^{\prime}_{2}}=\sum_{j=1}^{M-w}\frac{(-1)^{j}M!}{(M-w-j)!(w-1)!j!({\sigma}\Psi_{1}^{w})}\sum_{k=0}^{w-2}\frac{(1-w)^{k}}{(w-2-k)!}\sum_{m=0}^{k}\left(\frac{j+1}{{\sigma}\Psi_{1}}\right)^{m-k-1}\sum_{v=0}^{m}\frac{(-1)^{l}(w-2-k+v)!}{(m-v)!v!} \left(\frac{-\Psi_{t}}{j}\right)^{w-1-k+v}\\ {r^{\prime}_{4}}=\sum_{j=0}^{M-w}\frac{(-1)^{j}M!}{(M-w-j)!(w-1)!j!({{\sigma}\Psi_{1}})^{w}}\sum_{k=0}^{w-2}\frac{(1-w)^{k}}{(w-2-k)!}\sum_{m=0}^{k}\frac{(w-2-k+m)!}{m!(w-1)^{m}}\left(\frac{j+1}{{\sigma}\Psi_{1}}\right)^{m-k-1}\left(\frac{(w-1){\sigma}\Psi_{1}}{w+j}\right)^{w-1-k+m},~~ {r^{\prime}_{25}}=\frac{1}{n!}\left(\frac{-j{\Psi_{t}}}{{\sigma}\Psi_{1}}\right)^{n}\\ \end{array} $$
(56)

Abbreviations

CRN:

Cognitive radio network

CSI:

Channel state information

ER:

Eavesdropper

GSC:

Generalized-selection combining

MRC:

Maximal ratio combining

MS-GSC:

Minimum selection GSC

PU:

Primary user

SOP:

Secrecy outage probability

SR:

Secondary receiver

SU:

Secondary user

TAS:

Transmit antenna selection

References

  1. N Yang, L Yeoh, M Elkashlan, Transmit antenna selection for security enhancement in MIMO wiretap channels. IEEE Trans. Commun. 61(1), 144–154 (2013).

    Article  Google Scholar 

  2. M Elkashlan, L Wang, TQ Duong, et al, On the security of cognitive radio networks. IEEE Trans. Veh. Technol. 64(8), 3790–3795 (2015).

    Article  Google Scholar 

  3. M Gastpar, On capacity under receive and spatial spectrum-sharing constraints. IEEE Trans. Inf. Theory. 53(2), 471–487 (2007).

    Article  MathSciNet  MATH  Google Scholar 

  4. A Goldsmith, SA Jafar, I Maric, Breaking spectrum gridlock with cognitive radios: an information theoretic perspective. Proc. IEEE. 64:, 3790–3795 (2009).

    Google Scholar 

  5. A Mukherjee, AL Swindlehurst, Robust beamforming for security in MIMO wiretap channels with imperfect CSI. IEEE Trans. Signal Process. 59:, 351–361 (2011).

    Article  MathSciNet  Google Scholar 

  6. J Huang, AL Swindlehurst, Cooperative jamming for secure communications in MIMO relay networks. IEEE Trans. Signal Process. 51:, 4871–4884 (2011).

    Article  MathSciNet  Google Scholar 

  7. HV Poor, Information and inference in the wireless physical layer. IEEE Wirel. Commun.19(1) (2012). February 2012.

  8. HE Fangming, M Hong, W Wang, Maximal ratio diversity combining enhanced security. IEEE Commun. Lett. 15:, 509–511 (2011).

    Article  Google Scholar 

  9. H Alves, RD Souza, M Debbah, Performance of transmit antenna selection physical layer security schemes. IEEE Signal Process. Lett. 19:, 372–375 (2012).

    Article  Google Scholar 

  10. N Yang, P Yeoh, M Elkashlan, Transmit antenna selection for security enhancement in MIMO wiretap channels. IEEE Trans. Commun. 61:, 144–154 (2013).

    Article  Google Scholar 

  11. J Huang, A Mukherjee, AL Swindlehurst, Secure communication via an untrusted non-regenerative relay in fading channels. IEEE Trans. Signal Process. 61:, 2536–2550 (2013).

    Article  MathSciNet  Google Scholar 

  12. H Zhao, D Wang, C Tang, et al, Physical layer security of underlay cognitive radio using maximal ratio combining. Front. Inf. Technol. Electron. Eng. 17(9), 929–937 (2016).

    Article  Google Scholar 

  13. H Liu, H Zhao, C Tang, et al, Physical-layer secrecy outage of spectrum sharing CR systems over fading channels. Sci. China Inf. Sci. 59(10), 102–302 (2016).

    Article  Google Scholar 

  14. H Zhao, Y Tan, et al, Secrecy outage on transmit antenna selection/maximal ratio combining in MIMO cognitive radio networks. IEEE Trans. Veh. Technol. 65((12)), 6–10242 (2016).

    Google Scholar 

  15. H Lei, M Xu, I Ansari, et al, On secure underlay MIMO cognitive radio networks with energy harvesting and transmit antenna selection. IEEE Trans. Green Commun. Netw. 1(2), 192–203 (2017).

    Article  Google Scholar 

  16. H Lei, H Zhang, IS Ansari, et al, On secrecy outage of relay selection in underlay cognitive radio networks over Nakagami- m fading channels. IEEE Trans. Cogn. Commun. Netw. 3(4), 614–627 (2017).

    Article  Google Scholar 

  17. G Pan, J Ye, et al, Secure hybrid VLC-RF systems with light energy harvesting. IEEE Trans. Commun. 65(10), 4348–4359 (2017).

    Google Scholar 

  18. C Tang, G Pan, et al, Secrecy outage analysis of underlay cognitive radio unit over Nakagami-m fading channels. IEEE Wirel. Commun. Lett. 3(6), 609–612 (2014).

    Article  Google Scholar 

  19. C Zhang, G Wang, et al, Secrecy outage analysis on underlay cognitive radio system with full-duplexmsecondary user. IEEE Wirel. Commun. Lett. IEEE Access. 3(6), 25696–25705 (2017).

    Google Scholar 

  20. MK Simon, MS Alouini, Performance analysis of generalized selection combining with threshold test per branch (T-GSC). IEEE Trans. Veh. Technol. 51(5), 1018–1029 (2002).

    Article  Google Scholar 

  21. A Annamalai, G Deora, C Tellambura, in Wireless Communications and Networking, 2003. WCNC 2003. 2003 IEEE, 2. Unified analysis of generalized selection diversity with normalized threshold test per branch (IEEE, 2003), pp. 752–756.

  22. X Zhang, NC Beaulieu, in Global Telecommunications Conference, 2004. GLOBECOM’04. IEEE, 1. Threshold-based hybrid selection/maximal-ratio combining over generalized fading channels (IEEE, 2004), pp. 462–468.

  23. H Lei, H Zhang, et al, Secrecy outage performance for SIMO underlay cognitive radio systems with generalized selection combining over Nakagami- m channels. IEEE Trans. Veh. Technol. 65(12), 10126–10132 (2016).

    Article  Google Scholar 

  24. N Yang, PL Yeoh, et al, MIMO wiretap channels: secure transmission using transmit antenna selection and receive generalized selection combining. IEEE Commun. Lett. 17(9), 1754–1757 (2013).

    Article  Google Scholar 

  25. L Wang, M Elkashlan, et al, Secure transmission with antenna selection in MIMO Nakagami- m fading channels. IEEE Trans. Wirel. Commun. 13(11), 6054–6067 (2014).

    Article  Google Scholar 

  26. Y Deng, L Wang, M Elkashlan, et al, Generalized selection combining for cognitive relay networks over Nakagami- m fading. IEEE Trans. Signal Process. 63(8), 1993–2006 (2015).

    Article  MathSciNet  Google Scholar 

  27. P Gupta, N Bansal, RK Mallik, in Communications, 2004 IEEE International Conference on, 6. Analysis of minimum selection GSC in Rayleigh fading (IEEE, 2004), pp. 3364–3368.

  28. HC Yang, New results on ordered statistics and analysis of minimum-selection generalized selection combining (GSC). IEEE Trans. Wirel. Commun. 5(7), 1876–1885 (2006).

    Article  Google Scholar 

  29. J Lee, JG Wang, et al, Outage probability of cognitive relay networks with interference constraints. IEEE Trans. Wirel. Commun. 10(2), 390–395 (2011).

    Article  Google Scholar 

  30. R Etkin, A Parekh, D Tse, Spectrum sharing for unlicensed bands. IEEE J. Sel. Areas Commun. 25(2), 517–528 (2007).

    Article  Google Scholar 

  31. IS Gradshteyn, IM Ryzhik, Table of integrals, 7th ed (Academic, San Diego, 2007).

    MATH  Google Scholar 

Download references

Acknowledgements

This research has been supported by the Department of Science and Technology (DST) project of India (grant code no. YSS / 2015 /001738 /ES).

Funding

This study was funded by the Department of Science and Technology, India, grant no. (YSS/2015/001738/ES).

Author information

Authors and Affiliations

Authors

Contributions

Both authors examine the secrecy performance of an underlay CRN with minimum selection-generalized selection combining (MS-GSC) over Rayleigh fading environment and derived closed-form expression for exact and asymptotic secrecy outage probability. Both authors read and approved the final manuscript.

Corresponding author

Correspondence to Shilpa Thakur.

Ethics declarations

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.

Rights and permissions

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.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Thakur, S., Singh, A. Secrecy analysis of cognitive radio network with MS-GSC/MRC scheme. J Wireless Com Network 2018, 114 (2018). https://doi.org/10.1186/s13638-018-1100-y

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1186/s13638-018-1100-y

Keywords