1 Introduction

In the last few years, there was a decay of using wired communications and a growth of using wireless communications. However, there is a restriction of this growth, because spectrum resources are limited all over the world. Each country government regulates the use of frequency bands by a national organization such as the Federal Communication Commission (FCC) in USA. The FCC allocates frequencies to systems within geographical area, and other systems are prohibited from using these bands. Figure 1 shows the FCC frequency allocation. From this chart, we notice that the spectrum is very crowded with nearly all usable bands licensed to governments and other organizations for special services. Due to FCC study of spectrum band utilization, it is clear that 15% to 85% of the band below 3GHz are not utilized efficiently, which indicates that there is a need to improve spectrum utilization. The best technology to overcome inefficient use of spectrum resources is CR [14, 19].

Fig. 1
figure 1

FCC spectrum allocation chart

CR is defined as a network that can adapt its communication parameters according to communication environment to get efficient use of network resources. CR has the ability to sense radio environment, identify the spectrum that is unused by the PU to change its parameters to enable an SU to use it without making any interference to the PU. CR networks enable the SU to detect the presence or absence of licensed users to use free spectrum holes. CR enables the SU to use the PU spectrum holes and switch to any other available spectrum holes without any interference with the PUs [2, 4, 5, 26]. CR has four functional blocks: spectrum sensing, spectrum sharing, spectrum management, and spectrum mobility. Spectrum sharing is used to distribute access to the free-license spectrum between SUs. Spectrum management enables the choice of the best free spectrum holes, and the determination of the spectrum holes periods for use by SUs, and the spectrum mobility is responsible for the best transition between spectrum holes, when the PU is detected [18, 21].

Spectrum sensing plays an important rule in spectrum access in CR by enabling unlicensed users to use the unutilized spectrum by the PU without any harmful effects on this PU [2, 5]. Spectrum sensing is considered as the main functional block of CR network, because it enables the network to estimate system and transmission media parameters such as communication frequencies and any other parameters related to the transmission media to prevent any interference to the PU. The SU should have the capability of spectrum sensing to check if the spectrum is used by the PU, and the capability of changing the radio parameters to use the unused spectrum [4, 26]. Spectrum sensing can also be used in several wireless applications such as wireless sensor networks (WSNs). A WSN may contain a cognitive transceiver, which enables catching the available free hole to use it for communication [10,12,12].

There are several spectrum sensing methods such as waveform, matched filter, cyclo-stationary and energy detection methods. The matched filter is considered to be the best detector if the transmitted signal of the PU is known. The basic idea of the matched filter is to compare between an unknown signals with saved templates according to a pilot template, preamble, or spreading code to decide the presence or absence of the PU. So, the matched filter has advantages over other detectors as it takes a small sensing time and achieves a certain probability of false alarm and probability of detection. The cyclo-stationary detector detects unique features and signatures of the PU such as the mean and auto-correlation. So, the cyclo-stationary detector is able to detect the PU form noise, because it has a small auto-correlation and a weak spectral density [6]. There is a large problem facing local spectrum sensing called the hidden user. The hidden user appears in the system with multi-path fading and shadowing media. Cooperative spectrum sensing overcomes the hidden-user problem and enhances the performance of spectrum sensing in fading and shadowing environments in terms of the probability of miss-detection and the probability of false alarm [1, 3, 9].

Cooperative spectrum sensing can greatly increase the detection probability and minimize both miss-detection probability and false alarm probability. In cooperative spectrum sensing, more than one user cooperate to sense the spectrum and share their information about the PU with a common center called the fusion center. This fusion center combines the decisions of all users to obtain a final decision according to a fusion rule such as K-OUT-OF-M fusion rule, AND fusion rule, OR fusion rule, or MAJORITY fusion rule [1, 24, 25]. So, cooperative spectrum sensing is an efficient solution for the problems facing CR networks with the detection of the PU in the cases of multi-path fading, hidden nodes, and shadowing media, and it provides a good protection of the PU from any interference [3, 9].

In cooperative spectrum sensing, the SU throughput and the efficient spectrum sensing are two contradictions. Good protection of the PU requires a large sensing time ( τ), which minimizes the time of data transmission leading to a restriction on the achieved CR throughput [23, 27]. To overcome the restrictions of cooperative spectrum sensing with fixed a sensing time, the sensing time must be estimated adaptively according to the received SNR. So, in this paper, we propose a scheme, which adaptively computes the optimum sensing time for the SUs based on the received SNR by investigating the achieved throughput for every value over the SNR range of −20 dB to 10 dB with different values of the sensing time (0.1 ms to 2 ms) with a step of 0.1 ms. We evaluate the value of the sensing time that provides the maximum achievable throughput for each value of the SNR by curve fitting to get an empirical equation that enables calculation of the optimal sensing time, which provides the maximum throughput for each value of the SNR.

The rest of this paper is organized as follows. In section 2, the energy detector is described. In addition, cooperative spectrum sensing with different fusion rules is described in Section 3. Section 4 presents the throughput of cooperative CR. Section 5 presents the proposed scenarion for adaptively computed optimal sensing times. Section 6 gives the simulation results and discussion. Section 7 gives a comparison between the fusion rules. Finally, section 8 gives the concluding remarks of the paper.

2 Energy detection

Energy detection is used to identify the absence or presence of a signal in a specific band. It is the simplest and the widely-used spectrum sensing technique. Energy detection does not need any prior knowledge about the PU. It also ignores the structure of the signal. It needs information about the noise power to determine the threshold of detection. Energy detection is not the optimal but the simplest detection technique to be implemented with low computational cost. In energy detection, the PU is detected by comparing the output energy with an energy threshold [1, 9, 21]. So, there are challenges that face the energy detection such as the selection of the detection threshold, the poor performance of detection in the case of low SNR, and the inability to distinguish between the PU and noise [22]. Based on the energy detection concept, both cooperative and non-cooperative spectrum sensing scenarios using K-OUT-OF-M, logical OR, and logical AND are studied in this paper.

The SU has to sense the spectrum to know if the PU is present or absent. If the SU detects that PU is absent, it begins to use the PU spectrum. The received signal at the SU with bandwidth w, sampling frequency fs, and carrier frequency fc can be modeled as follows [23, 26]:

$$ r(n)=\Big\{{\displaystyle \begin{array}{cc}u(n)&, {H}_0\\ {}h\ast s(n)+u(n)&, {H}_1\end{array}} $$
(1)

where s(n) represents the transmitted signal from the PU, r(n) represents the received signal at the SU, h represents the complex channel gain, and u(n) represents the Additive White Gaussian Noise (AWGN). Hypotheses H1, and H0 represent the presence and absence of the PU, respectively. In channel sensing, we are interested in the probability of false alarm (Pf). A false alarm occurs, when the sensing algorithm detects a PU under hypothesis H0. The lower the Pf, the higher the ability to use the PU channel. On the other hand, the probability of detection Pd is required to be high. The correct detection takes place, when the sensing algorithm detects the PU under hypothesis H1 [121].

In this work, we use the energy detector as a channel sensing algorithm. The test statisty of the energy detector is given by:

$$ T\ (y)=\frac{1}{N}\kern0.50em \sum \limits_{n=1}^N{\left|y(n)\right|}^2 $$
(2)

Under H0, T(y) is a random variable with Chi-square Probability Density Function (PDF) having 2N degrees of freedom. With central limit theorem for a large N, the PDF of T(y) can be approximated by a Gaussian distribution with

$$ {\displaystyle \begin{array}{l}\mathrm{Mean}\;{\mu}_0={\sigma}_u^2,\\ {}\mathrm{Variance}\;{\sigma}_0^2=\frac{1}{N}\left[E{\left|u(n)\right|}^4-{\sigma}_u^4\right]\end{array}} $$

If u(n) is circular symmetric complex Gaussian, then

$$ E{\left|u(n)\right|}^4=2.{\sigma}_u^4,\mathrm{and}\ \mathrm{hence}\ {\sigma}_0^2=\frac{1}{N}.{\upsigma}_u^4 $$

For a chosen threshold ϵ, the probability of false alarm is given by:

$$ {\displaystyle \begin{array}{c}{P}_f\left(\epsilon \right)={P}_r\left(T(y)>\epsilon |{H}_0\right)=\frac{1}{\sqrt{2\pi {\sigma}_0}}/\underset{\epsilon }{\overset{\infty }{\int }}{e}^{-{\left(T(y)-{\mu}_0\right)}^2/2{\upsigma_0}^2}\\ {}=Q\left(\left(\frac{\epsilon }{\sigma_u^2}-1\right)\sqrt{N}\right)\end{array}} $$
(3)

With central limit theorem, the PDF of T(y) under H1 can be approximated by Gaussian distribution with

$$ {\displaystyle \begin{array}{l}\mathrm{Mean}:{\mu}_1=\left({\sigma}_u^2+{\sigma}_s^2\right)\\ {}\mathrm{Variance}:{\sigma}_1^2=\frac{1}{N}\left[E{\left|s(n)\right|}^4+E{\left|u(n)\right|}^4-{\left({\sigma}_u^2-{\sigma}_s^2\right)}^2\right]\end{array}} $$

where s(n) and u(n) are both circular symmetric and complex.

Assume that s (n) is a complex PSK modulated signal and \( E{\left|s(n)\right|}^4={\sigma}_s^4 \). Then,

$$ {\sigma}_1^2=\frac{1}{N}{\sigma}_u^4\left(1+\gamma \right) $$

where γ = \( \frac{\sigma_s^2}{\sigma_u^2} \) is the primary user’s signal power-to-noise ratio received at the SU. For a chosen threshold ϵ, the probability of detection is given by:

$$ {P}_d\left(\epsilon \kern0.50em \right)={P}_r\left(T(y)>\epsilon |{H}_1\right)=Q\left(\left(\frac{\epsilon }{\sigma_u^2}-\gamma -1\right)\sqrt{\frac{N}{2\gamma +1}}\right) $$
(4)

where Q(.) refers to Q-function, y refers to the received SNR from the PU at the SU, τ refers to the sensing time,\( {\sigma}_u^2 \) is the noise variance, and ϵ refers to the decision threshold, which can be determined for a known target probability of detection \( \left(\overline{P_d}\right) \) form Eq. (3) as follows:

$$ \epsilon ={\sigma}_u^2\ \left({Q}^{-1}\ \left(\overline{P_d}\right)\sqrt{\frac{2\gamma +1}{N}}+\gamma +1\right) $$
(5)

3 Cooperative spectrum sensing

For multi-path fading or networks with shadowing, it is difficult to detect the presence of the PU by a single user due to the low received SNR from the PU to the SU. As shown from Fig. 2, the received SNR from the PU at SU1 and SU2 is affected by trees and buildings. So, the detection of SU1 and SU2 is inaccurate. Hence, all users must cooperate to detect the PU in order to minimize the probability of miss detection and the probability of false alarm [1, 26].

Fig. 2
figure 2

Cooperative spectrum sensing model

Cooptation for detection of the PU presence can be performed with two methods: centralized and decentralized. In centralized schemes, there is a central Base Station (BS) or fusion center. Each SU preforms its local sensing, determines its local decision about the PU, and sends its decision to the central fusion center. The fusion center combines all SUs decisions according to a fusion rule. In decentralized schemes, there is no central fusion center. Each SU sends its local decision to the neighboring SU. Then, each SU combines the received decisions with its local decision to get the final decision according to the fusion rule. Assuming that the Di binary local decisions of the SUs є{0,1} refer to the local spectrum sensing of SUs. Specifically, {0} indicates PU absence, and {1} indicates PU presence. In the fusion center, all bits are fused according to the following rule,

$$ I=\sum \limits_{i=1}^M{D}_i\Big\{{\displaystyle \begin{array}{cc}<K&\ for\kern0.50em {H}_0\\ {}\ge K& for\kern0.50em {H}_1\end{array}} $$
(6)

It can be seen that AND rule decides primary user existence if K = M, the OR decides primary user existence if K = 1 and MAJORITY rule decides primary user existence if K ≥ M /2 [13, 15].

In centralized and decentralized schemes, cooperation in detection of the PU can be performed as follows [9]:

  1. 1-

    Every SU preforms its local sensing and creates its local decision or measured value depending on the type of the fusion center.

  2. 2-

    Every cooperative SU sends its decision to the fusion center or the other SUs.

  3. 3-

    The fusion center of the SU combines all user decisions depending on the fusion rule.

Centralized and decentralized cooperative network fusion rules are adopted in the literature. The performance of these rules is discussed in the following sub-sections [7, 13, 15]:

3.1 AND rule

In this fusion rule, the fusion center decides that the PU is present if all SUs decide that it is present. Otherwise, the absence of the PU is decided. The AND rule provides a very small false alarm probability, which makes efficient spectrum utilization. On the other hand, it may not provide good protection for the PU form interferences from the SUs. As a result, quality of service for the PU is not sufficient [9]. Performance of cooperative spectrum using AND fusion rule is evaluated by the calculation of the following probabilities:

$$ {Q}_f=\prod \limits_{i=1}^M{P}_{f,i} $$
(7)
$$ {Q}_d=\prod \limits_{i=1}^M{P}_{d,i} $$
(8)
$$ {Q}_m=1-{Q}_d=1-\prod \limits_{i=1}^M{P}_{d,i} $$
(9)

where Pf, i denotes the probability of false alarm of each SU independently and Pd, i denotes the probability of detection of each cognitive user independently, M denotes the number of cooperative users, Qf denotes the cooperative probability of false alarm, and Qd denotes the cooperative probability of detection.

3.2 OR fusion rule

The OR fusion rule, in contrast to the AND fusion rule, gives a positive decision if K = 1. It provides very low probability of mis-detection and good protection to the PU. On the other hand, it provides slightly high probability of false alarm, which makes it inefficient in the utilization of the spectrum resources. Performance of cooperative energy detection using OR fusion rule is evaluated by the calculation of the following probabilities as follows:

$$ {Q}_f=1-\prod \limits_{i=1}^M\left(1-{P}_{f,i}\right) $$
(10)
$$ {Q}_d=1-\prod \limits_{i=1}^M\left(1-{P}_{d,i}\right) $$
(11)
$$ {Q}_m=1-{Q}_d=\prod \limits_{i=1}^M\left(1-{P}_{d,i}\right) $$
(12)

3.3 MAJORITY fusion rule

MAJORITY fusion rule gives a positive decision if K = M/2. The fusion center decides that the PU is present if more than M/2 SUs decisions belong to H1. Performance of cooperative energy detection using MAJOURITY fusion rule is evaluated by the calculation of the following probabilities as follows [7, 13, 17]:

$$ {Q}_f=\sum \limits_{i=M/2}^M\left(\begin{array}{c}M\\ {}i\end{array}\right){\left({P}_{f,i}\right)}^i{\left(1-{P}_{f,i}\right)}^{M-i} $$
(13)
$$ {Q}_d=\sum \limits_{i=M/2}^M\left(\begin{array}{c}M\\ {}i\end{array}\right){\left({P}_{d,i}\right)}^i{\left(1-{P}_{d,i}\right)}^{M-i} $$
(14)
$$ {Q}_m=1-{Q}_d=1-\sum \limits_{i=\frac{M}{2}}^M\left(\begin{array}{c}M\\ {}i\end{array}\right){\left({P}_{d,i}\right)}^i{\left(1-{P}_{d,i}\right)}^{M-i} $$
(15)

4 Throughput performance of cooperative CR using fixed sensing time

In the previous explanation, probability of detection, probability of false alarm and probability of miss-detection have been considered as the main indicators of detection performance. In this section, we will explain the relation between the sensing time and the achievable throughput of the SU [20]. Transmission frame structure is shown in Fig. 3. It consists of the sensing time denoted by τ and the transmission time denoted by (T- τ).

Fig. 3
figure 3

Frame structure

Study of the achievable CR throughput is explained in two cases: the achievable throughput of the SU when it operates in the absence of the PU ( C0 = log2(1 + SNRS)), and the achievable throughput of the SU when it operates in the presence of the PU (\( {C}_1=\left(1+\frac{SNR_s}{SNR_P+1}\right)\Big) \), where SNRS is SNR of the SU and SNRp is the SNR of the PU received at the SU [8, 16]. The average throughput can be evaluated as follows:

  • Case 1: when the PU is abscent and no false alarm is generated by the SU.

$$ {R}_0=\frac{T-\tau }{T}\ \left(1-{Q}_f\right)\ P\ \left({H}_0\right){C}_0 $$
(16)
  • Case 2:- when the PU is present and not detected by the SU

$$ {R}_1=\frac{T-\tau }{T}\ \left(1-{Q}_d\right)P\ \left({H}_1\right){C}_1 $$
(17)

Total average achievable throughput is,

$$ R={R}_1+{R}_0 $$
(18)

It is seen from Eqs. (16) and (17) that the achievable throughput is a function of the sensing time, the probability of detection, the probability of false alarm, and PU activity. Also, we can see from Eq. (16) that maximization of R0 requires minimization of the probability of false alarm. To decrease the probability of false alarm, the sensing time should be increased, which leads to a decrease of R0. So, we have to find the optimal sensing time, which maximizes the achievable throughput with an acceptable probability of false alarm. Performance of cooperative spectrum sensing using a fixed sensing time is investigated with two values of the sensing time τ = 0.1 ms and τ =2 ms, P(H1) = 0.2, \( \overline{Q_d} \) = 0.9, fs=106 Hz, and number of cooperative users equal to five users as a function of the received SNR at the SU.

4.1 Throughput performance using logical AND fusion rule

Figures 4 and 5 present the performance of cooperative spectrum sensing using a fixed sensing time in terms of throughput and probability of false alarm at a long sensing time τ = 2 ms and a short sensing time τ =0.1 ms. Figure 4 shows that the utilization of a long sensing time in the low SNR range (SNR < −9 dB) provides a high CR throughput. On the other hand, it provides an efficient performance (lower probability of false alarm) as shown in Fig. 5. In this low range of SNR, there is high noise power, which needs a long sensing time to provide a small probability of false alarm and high throughput at the same time. In this low range of SNR, probability of false alarm is considered as the main factor to achieve high throughput.

Fig. 4
figure 4

Achievable throughput versus SNR at τ = 0.1 ms and τ = 2 ms for logical AND fusion rule

Fig. 5
figure 5

Probability of detection and probability of false alarm versus SNR at τ = 0.1 ms and τ= 2 ms for logical AND fusion rule

In the higher SNR range (SNR > −9 dB), Fig. 4 shows that the utilization of a short sensing time provides higher throughput than that can be achieved by using a long sensing time and provides an accepted level of probability of false alarm as shown in Fig. 5. In this range of SNR, the probability of false alarm goes to zero, and the achievable CR throughput mainly depends on the sensing time value.

4.2 Throughput performance using logical OR fusion rule

As shown in Fig. 6, the achievable throughput for τ = 0.1 ms is nearly a constant value of 5.3 bits/s for SNR ≥ −5 dB due to the very low probability of false alarm, which tends to zero in this range as shown in Fig. 7. For τ = 2 ms, the achievable throughput is significantly lower than that at τ = 0.1 ms, and has a constant value of 3.2 bit/s for SNR ≥ −12 dB due to the very low probability of false alarm, which tends to zero in this range as shown in Fig. 7.

Fig. 6
figure 6

Achieved throughput as a function of SNR at τ = 0.1 ms and τ = 2 ms for logical OR fusion rule

Fig. 7
figure 7

Probability of detection and probability of false alarm as a function of SNR at τ = 0.1 ms and τ= 2 ms for logical OR fusion rule

In addition, it is shown that in the low range of SNR (SNR < −10 dB), the achievable throughput using a long sensing time (τ = 2 ms) is higher than that can be obtained using a short sensing time (τ = 0.1 ms) due to the low SNR values, which need a long sensing time to minimize the probability of false alarm and to get a high throughput. On the other hand, when SNR > −10 dB, the utilization of a short sensing time (τ = 0.1 ms) provides a higher throughput than that can be achieved using a long sensing time (τ =2 ms), because in this range of SNR, a short sensing time is fair enough to minimize the probability of false alarm, which leads to maximizing the throughput.

From these simulation experiments, we can notice that to get a maximum throughput, we have to use a long sensing time at low levels of SNR and a short sensing time at high levels of SNR. This proves that the utilization of a fixed sensing time does not provide a maximum throughput for all values of SNR.

4.3 Throughput performance using MAJORITY fusion rule

Figure 8 shows that using a long sensing time at low SNR (SNR < −11) provides a high throughput. On the other hand, it provides a lower probability of false alarm as shown in Fig. 9. In this low range of SNR, there is a high noise power, which needs long sensing time to provide a small probability of false alarm and a high throughput at the same time.

Fig. 8
figure 8

Achievable throughput versus SNR at τ = 0.1 ms and τ = 2 ms for MAJORITY fusion rule

Fig. 9
figure 9

Probability of detection and probability of false alarm versus SNR at τ = 0.1 ms and τ= 2 ms for MAJORITY fusion rule

In the higher SNR range (SNR > -11 dB), Fig. 8 shows that using a short sensing time provides higher throughput than that can be achieved by using a long sensing time and provides an accepted level of probability of false alarm as shown in Fig. 9. In this range of SNR, the probability of false alarm goes to zero, and the achievable throughput mainly depends on the sensing time. So, we can conclude that using a fixed sensing time does not provide efficient performance for all values of SNR. At high SNR values, the utilization of a short sensing time enhances the throughput performance. So in this paper, a cooperative spectrum sensing scheme is proposed to adaptively control the sensing process according to the value of the SNR to maximize the CR throughput using MAJORITY fusion rule.

Form the simulation of all fusion rules, we conclude that the utilization of a fixed sensing time does not provide an efficient performance for all values of SNR, and at high SNR values, the sensing time should be smaller than that used at low SNR values to enhance the throughput performance. So in this paper, a cooperative spectrum sensing scheme is proposed to adaptively compute the optimal sensing according to the value of the SNR to optimize the CR throughput.

5 The proposed adaptive sensing time scheme for Cooperative CR

The main goal of the proposed adaptive sensing time scheme is to minimize the sensing time to maximize the transmission time, which consequently maximizes the achievable data throughput for cooperative CR with different fusion rules. It is also required to eliminate the problem of inefficient performance due to using a fixed sensing time for all values of SNR, and seek for the acceptable probability of false alarm with the maximum achievable throughput. In the proposed scheme, the sensing time is dynamically adapted according to the received SNR at the SU to get the maximum throughput as shown from Fig. 10.

Fig. 10
figure 10

Flowchart of the proposed sensing time adaptation scheme according to the SNR value

Figure 10 shows that proposed scheme dynamically adapts the sensing time for cooperative spectrum sensing by determining the optimal sensing time according to the received SNR at the SU. Each SU estimates its optimal sensing time, which achieves the maximum throughput depending on the received SNR form the PU as will be explained in the following sub-sections for each fusion rule. Then, each SU estimates the received signal energy, and compares it with a known threshold to decide if the PU is present or not. Finally, the fusion center collects all SUs decisions and combines them according the used fusion rule using Eq. (6) to take the final decision about the presence or absence of the PU.

To obtain the optimum value of the sensing time (number of samples), which maximizes the achievable throughput and minimizes the probability of false alarm for each SNR value, we simulate the achievable throughput versus SNR in the range of −20 to 10 dB with a step of 1 dB for a sensing time ranging form τ = 0.1 ms to τ = 2 ms for each fusion rule as will be shown below.

5.1 Adaptive sensing time estimation for AND fusion rule

In Table 1, we investigate the achievable throughput versus SNR with a sensing time (τ) ranging from 0.1 ms to 2 ms and step 0.1 ms using AND fusion rule. From the table, we can find the optimum sensing time, which gives the maximum achievable throughput for each value of the SNR and plot it versus SNR as shown in Fig. 11.

Table 1 Achievable throughput for various values of SNR using τ ranging from 0.1 ms to 2 ms for AND fusion rule
Fig. 11
figure 11

Sensing time, which achieves the maximum throughput versus SNR using AND fusion rule

Figure 11 shows a curve for the sensing time versus SNR. It provides the maximum throughput for the utilized SNR range. Since the proposed scheme aims to find a relationship for the optimum sensing time to maximize the throughput based on SNR, curve fitting will be adopted to find the mathematical relationship between sensing time (τ) and the SNR as follows:

$$ \tau (x)=\left\{\begin{array}{c}1.7 ms\\ {}-0.00062{x}^4-0.024{x}^3-0.32{x}^2-1.8{x}^1-3.7\\ {}0.1 ms\end{array}\kern0.72em \begin{array}{c};x\le -16\\ {};-16<x<-5\\ {};x\ge -5\end{array}\right\} $$
(19)

where x = SNR.

Equation (19) demonstrates that the sensing time should be decreased form τ = 1.7 to 0.1 ms according to the SNR value to maximize the throughput and to get an efficient performance with all values of SNR.

5.2 Adaptive sensing time estimation using OR fusion rule

In Table 2, we investigate the achievable throughput versus SNR with a sensing time (τ) ranging from 0.1 ms to 2 ms with a step of 0.1 ms using OR fusion rule. From Table 2, we can find the optimum sensing time, which gives the maximum throughput for each value of SNR and plot it versus SNR as presented in Fig. 12.

Table 2 Achievable throughput for various values of SNR using a value of τ ranging from τ =0.1 ms to τ =2 ms with logical OR fusion rule
Fig. 12
figure 12

Sensing time, which achieves the maximum throughput versus SNR using OR fusion rule

Curve fitting is applied to the plotted points of Fig. 12 to obtain a mathematical relationship for the optimum sensing time (τ) as a function of SNR as follows:

$$ \tau (x)=\left\{\begin{array}{l}1.6 ms\kern10.31999em ;x<-16\\ {}-2.9\ast {10}^{-5}{x}^6-0.002{x}^5-0.055{x}^4-0.81{x}^3\\ {}\kern1.68em -6.5{x}^2-27\ast {x}^1-47\kern1.92em ;-16<x<-6\\ {}0.1 ms\kern10.55999em ;x\ge -6\end{array}\right\} $$
(20)

where x = SNR.

Form Eq. (20), we can notice that the sensing time should be decreased form τ = 1.6 ms to 0.1 ms as the SNR increases to maximize the throughput.

5.3 Adaptive sensing time estimation using MAJORITY fusion rule

The achievable throughput versus SNR with a sensing time ranging from 0.1 ms to 2 ms and a step of 0.1 ms using MAJORTY fusion rule is given in Table 3. From table 3, we can find the optimum sensing time which gives the maximum throughput for each value of the SNR and plot it as a function of the SNR as shown in Fig. 13.

Table 3 Achievable throughput for various values of SNR using τ ranging from τ =0.1 ms to 2 ms using MAJORTY fusion rule
Fig. 13
figure 13

Sensing time versus SNR using MAJORTY fusion rule

Curve fitting operation is applied to obtain a mathematical relationship for the optimum sensing time (τ), which maximizes the throughput as a function of SNR as follows:

$$ \tau (x)=\Big\{{\displaystyle \begin{array}{c}1.6\ ms\kern0.50em \ \ \ \ \ \ \ \ \ \ x<-16\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \\ {}-0.00066{x}^3-0.0091{x}^2\ 0.1x-0.4\\ {}0.1\ ms\kern0.50em \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ x>-8\end{array}}-16\le x<-8 $$
(21)

where x = SNR.

Equation (21) demonstrates that the sensing time should be decreased form τ = 2 to 0.1 ms according to SNR to maximize throughput for all values of SNR.

In the following section, we will investigate the performance of proposed scheme compared to the performance of the fixed sensing time scheme with different fusion rules. In addition, a comparative performance evaluation study of the proposed scheme with different fusion rules is presented.

6 Performance evaluation and simulation results

6.1 Performance of the proposed scheme with AND rule

In this section, the performance of the proposed scheme compared to the performance of the fixed sensing time scheme with τ =0.1 ms and τ = 2 ms using AND fusion rule is presented. Figure 14 shows that the proposed scheme achieves significantly higher throughput than that achieved by the fixed sensing time scheme with long sensing time (τ =2 ms), when SNR is greater than −15 dB, because the adaptively computed sensing time with the proposed scheme is significantly lower than 2 ms, when SNR is greater than −15 dB. Also, it is shown that the proposed scheme significantly outperforms the fixed sensing time scheme with a small sensing time (τ =0.1 ms), when the SNR is lower than −5 dB. Both schemes provide the same throughput as SNR becomes greater than −5 dB. This is because the proposed scheme provides a lower probability of false alarm than that provided by the fixed sensing time scheme with a small sensing time (τ =0.1 ms), when the SNR is lower than −5 dB and both schemes provide the same probability of false alarm, when the SNR is greater than −5 dB, as shown in Fig. 15. Also, it is shown that the fixed sensing time scheme with large sensing time (τ =2 ms) provides the lowest probability of false alarm at the expense of the lowest achievable throughput. From these simulation results, we can notice that the proposed adaptively computed sensing time scheme provides the maximum throughput for all values of SNR with respect to the fixed sensing time scheme.

Fig. 14
figure 14

Achievable throughput versus SNR at τ adaptive, τ = 0.1 ms, and τ = 2 ms for AND fusion rule

Fig. 15
figure 15

Probability of detection and probability of false alarm versus SNR at τ adaptive, τ = 0.1 ms, and τ= 2 ms for AND fusion rule

Effect of the number of SUs on the performance of the proposed adaptive sensing time scheme is investigated in Fig. 16. It is shown that at low SNR values (SNR < 10 dB), the achievable throughput slightly increases as the number of SUs increases, while at high SNR values (SNR > 10 dB), there is no significant increase in the achievable throughput as the number of SUs increases.

Fig. 16
figure 16

Achievable throughput versus SNR at τ adaptive for a number of SUs =3, 4,5,6,7 using AND fusion rule

6.2 Performance of the proposed scheme with OR fusion rule

In this section, the performance of the proposed adaptive sensing time scheme compared to the performance of the fixed sensing time scheme with τ =0.1 ms and τ =2 ms using OR fusion rule is investigated. As shown from Fig. 17, the achievable throughput by the proposed scheme becomes significantly higher than that of the fixed sensing time scheme with a long sensing time (τ =2 ms) as SNR becomes greater than −16 dB. On the other hand, the proposed scheme significantly outperforms the fixed sensing time scheme with a small sensing time (τ =0.1 ms), when SNR is lower than −6 dB, and both schemes provide the same throughput as SNR becomes greater than −6 dB. So, it is obvious that the proposed scheme outperforms the fixed sensing time scheme with a short sensing time (τ =0.1 ms), and with long sensing time (τ =2 ms) as SNR ranges from −16 dB to −6 dB. Figure 18 shows that the proposed scheme provides a significantly lower probability of false alarm than that provided by the fixed sensing time scheme with small sensing time (τ =0.1 ms), when the SNR is lower than −6 dB and both schemes provide the same throughput as SNR becomes greater than −6 dB. On the other hand, the fixed sensing time scheme with long sensing time (τ =2 ms) provides the lowest probability of false alarm at the expense of the lowest achievable throughput.

Fig. 17
figure 17

Achievable throughput versus SNR at τ adaptive, τ = 0.1 ms, and τ = 2 ms for OR fusion rule

Fig. 18
figure 18

Probability of detection and probability of false alarm versus SNR at τ adaptive, τ = 0.1 ms and τ = 2 ms forl OR fusion rule

Effect of the number of SUs on the performance of the proposed adaptive sensing time scheme is investigated in Fig. 19. It is shown that at low SNR values (SNR < 11 dB), the achievable throughput slightly increases as the number of SUs increases, while at high SNR values (SNR > 11 dB), there is no significant improvement in the achievable throughput as the number of SUs is increased.

Fig. 19
figure 19

Achievable throughput versus SNR at τ adaptive for number of SUs =3, 4,5,6,7 using OR fusion rule

6.3 Performance of the proposed scheme with MAJORITY fusion rule

In this section, the performance of the proposed adaptive sensing time scheme compared to the performance of the fixed sensing time scheme with τ =0.1 ms and τ =2 ms using MAJORITY fusion rule is investigated. Figure 20 shows that proposed scheme significantly outperforms the fixed sensing time scheme, since it achieves significantly higher throughput than that achieved by using a long sensing time (τ = 2 ms), when SNR is higher than −16 dB and significantly higher throughput than that achieved by the fixed sensing time scheme using a short sensing time (τ = 0.1 ms) when SNR is lower than −8 dB. In addition, the proposed scheme achieves the same throughput as that achieved by the fixed sensing time scheme using τ = 0.1 ms when SNR is higher than −8 dB, and provides throughput similar to that achieved by the fixed sensing time scheme using τ = 2 ms, when SNR is lower than −16 dB. With respect to the probability of false alarm, the proposed scheme provides a lower probability of false alarm than that provided by using a fixed short sensing time (τ = 0.1 ms) when SNR is lower than −7 dB as shown in Fig. 21. On the other hand, the fixed sensing time scheme with a long sensing time (τ = 2 ms) provides the lowest probability of false alarm for all values of SNR at the expense of the lowest achievable throughput.

Fig. 20
figure 20

Achievable throughput versus SNR at τ adaptive, τ = 0.1 ms, and τ = 2 ms for MAJORITY fusion rule

Fig. 21
figure 21

Probability of detection and probability of false alarm versus SNR at τ adaptive, τ = 0.1 ms, and τ = 2 ms for MAJORITY fusion rule

The effect of the number of SUs on the performance of the proposed adaptive sensing time scheme is presented in Fig. 22. It is shown that at low SNR values (SNR < −7 dB), the achievable throughput slightly increases as the number of SUs increases, while at high SNR values (SNR > −7 dB), there is no significant improvement in the achievable throughput as the number of SUs is increased.

Fig. 22
figure 22

Achievable throughput versus SNR at τ adaptive for numbers of SUs =3, 4,5,6,7 using MAJORITY fusion rule

6.4 Performance comparison of the proposed scheme with different fusion rules

This section introduces a performance comparison of the proposed scheme with different fusion rules (AND, OR and Marjory). As shown form Fig. 23, the proposed scheme achieves the highest throughput using MAJORITY fusion rule and the lowest throughput using AND fusion rule, especially as SNR ≤ -5 dB. This is because the MAJORITY fusion rule not only provides the lowest probability of false alarm as shown in Fig. 24, but also requires the shortest sensing time as shown in Fig. 25. On the other hand, the AND fusion rule provides a slightly lower probability of false alarm than that of the OR fusion rule as shown in Fig. 24, but it provides a lower throughput at SNR ≤ -12 dB, because it requires the longest sensing time as shown in Fig. 25. The effect of the number of SUs on the achievable throughput of the proposed adaptive sensing time scheme with different fusion rules at SNR = -15 dB is presented in Fig. 16. It is clear that the MAJORITY fusion rule provides the maximum throughput for all numbers of SUs and the AND fusion rule provides the lowest throughput. In addition, the achievable throughput of the proposed adaptive sensing time scheme with different fusion rules increases as the numbers of SUs is increased Fig. 26.

Fig. 23
figure 23

Achievable throughput versus SNR at τ adaptive for AND rule, OR rule and MAJORITY rule

Fig. 24
figure 24

Probability of detection and probability of false alarm versus SNR at τ adaptive for AND rule, OR rule and MAJORITY rule

Fig. 25
figure 25

Sensing time versus SNR with τ adaptive for AND rule, OR rule and MAJORITY rule

Fig. 26
figure 26

Achievable throughput for SNR −15 dB with numbers of SUs =3, 4, 5, 6 and 7 for AND rule, OR rule and MAJORITY rule

7 Conclusion

In this paper, a cooperative spectrum sensing optimization scheme for CR using different fusion rules has been proposed. This scheme aims to avoid the inefficient spectrum utilization and throughput of fixed sensing time schemes. So, the proposed scheme adaptively computes the optimally minimized sensing time based on the value of the SNR at the receiver to maximize the throughput at all SNRs. Simulation results showed that proposed scheme significantly outperforms the fixed sensing time scheme in terms of the achievable throughput and the probability of false alarm. In addition, the proposed scheme provides a better performance as the number of SUs increases and with the Marjory fusion rule.