# Secure Cooperative Spectrum Sensing and Allocation in Distributed Cognitive Radio Networks

Authors: Hui Lin; Jia Hu; Chuan Huang; Li Xu; Bin Wu
Journal: International Journal of Distributed Sensor Networks
 (2015)

---

## Abstract

Cognitive radio networks (CRNs) are an emerging wireless communications technique for resolving the significant spectrum scarcity problem. Despite their promising characteristics, CRNs also introduce new security threats, especially the internal attacks during the spectrum sensing and allocation process, which can degrade the efficiency of spectrum sensing and allocation. To address this issue, this paper proposes a distributed secure cooperative spectrum sensing strategy (DSCS) based on a dynamic reputation model to defend against attacks and provide reliable spectrum sensing. Moreover, the reputation values are used as weights in a novel distributed cheat-proof spectrum allocation strategy (DCSA) based on the Vickrey-Clarke-Groves (VCG) mechanism. Both theoretical analysis and simulation results indicate that the proposed DSCS and DCSA strategies can provide an effective countermeasure against the internal spectrum sensing data falsification (SSDF) attacks through enabling secondary users to obtain more accurate cooperative sensing results in adversarial environments.


---

## Body

## 1. Introduction

Cognitive radio networks (CRNs) are promising wireless communications systems that can resolve the spectrum scarcity problem arising from the escalating demand of wireless radio frequency and spectrum underutilization by license holders [1]. The architecture of CRNs is depicted in Figure 1, which consists of base stations and cognitive terminals. The base stations (i.e., primary users) constitute a primary network using the licensed spectrum and the cognitive terminals (i.e., secondary users) form a secondary network that makes use of the licensed spectrum when it is not occupied by the primary users [2]. To avoid the potential interference with the primary users, secondary users firstly sense whether the spectrum of interest is being used by the primary users. If the spectrum is unoccupied, the secondary users apply certain spectrum allocation scheme to decide which of them may access the available spectrum [3].Figure 1
An architecture of cognitive radio networks.CRN can improve the efficiency of spectrum usage, but it also introduces new security threats including internal attacks during the spectrum sensing and allocation process, which can degrade the effectiveness of spectrum sensing and allocation dramatically. For example, an adversary may launch data or information falsification attacks during spectrum sensing and allocation process, where the adversary corrupts a subset of secondary users as illustrated in Figure2 to report falsified data or information, aiming to affect the final group decision [2].Figure 2
Cognitive radio networks with adversaries.Cooperation in spectrum sensing and allocation can be achieved in two models: centralized or distributed. The former uses a common receiver (i.e., fusion center) to collect sensing results from all SUs and to make final spectrum sensing and allocation decisions [1, 4]. In contrast, a distributed approach allows SUs to share individual sensing results with their neighbors and to make their own sensing and allocation decisions [3, 5]. Despite the many benefits cooperative spectrum sensing and allocation process entitles, it is vulnerable to many potential attacks. A distributed scheme is even more vulnerable to such attacks due to its distributed and cooperative natures.A number of papers [4–9] propose various methods to improve the security in spectrum sensing and allocation. These solutions are usually based on a centralized infrastructure, where a central authority plays an essential role in coordinating the attack defending. However, the centralized schemes will incur heavy communication overheads, and the malicious nodes can compromise the central authority to paralyze the entire system. Different distributed sensing schemes have also been proposed [10–14], using game theory [10], incentive design [11], consensus algorithm [3, 12], outlier detection, computation verification [14], and so forth. Most of the existing works ignore the internal attacks launched by an inside attacker that has the legal identity. To overcome the above-mentioned problems, in this paper, we firstly design a distributed secure sensing strategy based on a dynamic reputation model.The strategy establishes a distributed reputation database for nodes as a basis for the channel search sequence in spectrum sensing. Next, we design a novel Vickrey-Clarke-Groves (VCG) mechanism [3, 15] based on the reputation generated from exchanged sensing results and propose a novel cheat-proof spectrum resource allocation strategy to restrict the impact of the malicious behaviours. As an important mechanism design, the VCG mechanism studies how to design mechanisms to incent the players (i.e., users or nodes) to provide truthful information about their preferences over different outcomes [3, 15]. A VCG mechanism is a dominant strategy mechanism, which can achieve ex-post incentive compatibility (truth-telling is a dominant strategy for every player in the game) [3, 15].This paper makes the following main contributions.(1)
The reputation model and Vickrey-Clarke-Groves (VCG) mechanism are introduced into the cooperative sensing and spectrum allocation strategies. This combination can better reflect the real world nature of communication networks and defend against spectrum sensing data falsification (SSDF) attacks from internal malicious nodes.
(2)
A distributed algorithm is designed to help secondary users compute the sensing result and allocate the spectrum. Secondary users iteratively update their local values to arrive at consensus, without help from any central authority.
(3)
Simulation results demonstrate that the proposed strategies can provide an effective countermeasure against the internal SSDF attacks without relying on a central authority or a common control channel and are therefore applicable in distributed CRNs.In the rest of the paper, Section2 reviews related work. Section 3 introduces the network and adversary models. Section 4 presents the distributed secure cooperative sensing strategy. Section 5 presents the VCG based distributed cheat-proof spectrum allocation strategy. Section 6 presents the simulation results and performance analysis. Section 7 concludes the paper.


## 2. Related Work

### 2.1. Distributed Spectrum Sensing

Distributed spectrum sensing in CRNs has been widely studied, using game theory [10], incentive design [11], consensus algorithm [3, 12], outlier detection, computation verification [14], and so forth. For instance, Mukherjee [10] discussed cooperative sensing problem in distributed CRNs with the game-theoretic models. Mukherjee considered the utility function for secondary users as improved sensing accuracy and examined the impact of various sensing parameters. Li et al. [11] first identified a new selfishness model named entropy selfishness in distributed CRNs. They further proposed YouSense, a one-time pad based incentive design in which sensing reports were encrypted before sharing, to prevent the entropy selfish users from learning the sensing reports. And yet, the honest user can recover this plaintext by spectrum sensing. Li et al. [3, 12] proposed a distributed and scalable cooperative spectrum sensing scheme based on recent advances in consensus algorithms. In the proposed scheme, the secondary users can maintain coordination based on only local information exchange without a centralized common receiver and the proposed scheme used the consensus of secondary users to make the final decision. Zhang et al. [2, 13] designed a fully distributed security scheme ReDiSen to counter attacks in cooperative sensing. ReDiSen applied the reputation generated from exchanged sensing results as an aid to restrict the impact of the malicious behaviours. Yan et al. [14] proposed a robust distributed outlier detection scheme with adaptive local threshold to counter covert adaptive attacks by exploiting the state convergence property. In addition, they also presented a hash-based computation verification scheme to effectively defend against colluding attackers.


### 2.2. Spectrum Allocation

There are a number of works focused on spectrum allocation [16–21] in CRNs. For example, Xie et al. [16] formulated the energy-efficient resource allocation problem in heterogeneous CRNs with femtocells as a Stackelberg game and a gradient based iteration algorithm is proposed to obtain the Stackelberg equilibrium solution to the energy-efficient resource allocation problem. Jiang et al. [17] proposed a novel channel allocation scheme for the QoE-driven multimedia transmission over the CRNs. Moreover, a new analytical Markov model combining the ON/OFF model of PCs and the service queuing model is derived to evaluate the system performance. Xie et al. [18] studied the problem of resource allocation in CRNs supporting heterogeneous services with imperfect channel sensing. To reduce the computation complexity in the formulation with the imperfect channel information, Xie et al. formulated the problem of resource allocation as a mixed integer programming problem and proposed an aggressive discrete stochastic approximate algorithm based joint power and channel allocation. Tan and Le [19] first presented an optimal brute-force search algorithm to resolve the spectrum resource allocation problem for CRNs. And then, Tan and Le further proposed two channel assignment algorithms to resolve the high complexity of the optimal search. Wang et al. [20] proposed a mechanism to resolve the complex mixed integer programming program faced in the resource allocation process in CRNs. The proposed mechanism developed a fast barrier-based method which can achieve the optimal solution with an almost linear complexity and also proposed a method which can achieve nearly optimal solution with a constant complexity. Tachwali et al. [21] developed a new resource allocation optimization framework for single-cell multiuser multicarrier CRNs in the presence of multiple primary networks. The framework aims to minimize the spectral footprint of the CRN through the bandwidth-power product metric. The protection of PU from harmful interference is incorporated in the framework through PU activity index.


### 2.3. Joint Design of Spectrum Sensing and Spectrum Allocation

The joint design of spectrum sensing and spectrum allocation in CRNs has attracted much attention from both industry and academia. El-Sherif and Liu [22] proposed a novel joint design of the spectrum sensing and channel access mechanisms based on the observation that the value of the test statistics could be used as a confidence measure for the test outcome. Therefore, this value can be used to define different channel access probabilities for secondary users. Zhang et al. [3] designed a distributed scheme to incentivize participation of nodes in cooperative sensing, by connecting sensing and spectrum allocation, and offering incentive from the latter to the former. In the proposed scheme, reputation is used as a pricing factor to incentivize cooperative sensing and a reputation-based pricing method is proposed to offer strong incentive for secondary users to pursue a lower price in the spectrum allocation process.Existing spectrum sensing and allocation methods and security mechanisms are usually based on a centralized infrastructure, where a central authority plays an essential role in coordinating the defense against attacks and thus brings heavy communication overheads and the issue that central authority may be compromised by attackers. Moreover, few works took into account the joint design of spectrum sensing and spectrum allocation, but they only considered individual spectrum sensing or allocation. In particular, they did not consider the internal attacks launched by an inside attacker that has the legal identity. Consequently, it is still an open problem and a challenging task to design secure and distributed spectrum sensing and allocation schemes in CRNs to resist the internal attacks. The main notations and symbols used in this paper are summarized in Notations and Symbols.


## 2.1. Distributed Spectrum Sensing

Distributed spectrum sensing in CRNs has been widely studied, using game theory [10], incentive design [11], consensus algorithm [3, 12], outlier detection, computation verification [14], and so forth. For instance, Mukherjee [10] discussed cooperative sensing problem in distributed CRNs with the game-theoretic models. Mukherjee considered the utility function for secondary users as improved sensing accuracy and examined the impact of various sensing parameters. Li et al. [11] first identified a new selfishness model named entropy selfishness in distributed CRNs. They further proposed YouSense, a one-time pad based incentive design in which sensing reports were encrypted before sharing, to prevent the entropy selfish users from learning the sensing reports. And yet, the honest user can recover this plaintext by spectrum sensing. Li et al. [3, 12] proposed a distributed and scalable cooperative spectrum sensing scheme based on recent advances in consensus algorithms. In the proposed scheme, the secondary users can maintain coordination based on only local information exchange without a centralized common receiver and the proposed scheme used the consensus of secondary users to make the final decision. Zhang et al. [2, 13] designed a fully distributed security scheme ReDiSen to counter attacks in cooperative sensing. ReDiSen applied the reputation generated from exchanged sensing results as an aid to restrict the impact of the malicious behaviours. Yan et al. [14] proposed a robust distributed outlier detection scheme with adaptive local threshold to counter covert adaptive attacks by exploiting the state convergence property. In addition, they also presented a hash-based computation verification scheme to effectively defend against colluding attackers.


## 2.2. Spectrum Allocation

There are a number of works focused on spectrum allocation [16–21] in CRNs. For example, Xie et al. [16] formulated the energy-efficient resource allocation problem in heterogeneous CRNs with femtocells as a Stackelberg game and a gradient based iteration algorithm is proposed to obtain the Stackelberg equilibrium solution to the energy-efficient resource allocation problem. Jiang et al. [17] proposed a novel channel allocation scheme for the QoE-driven multimedia transmission over the CRNs. Moreover, a new analytical Markov model combining the ON/OFF model of PCs and the service queuing model is derived to evaluate the system performance. Xie et al. [18] studied the problem of resource allocation in CRNs supporting heterogeneous services with imperfect channel sensing. To reduce the computation complexity in the formulation with the imperfect channel information, Xie et al. formulated the problem of resource allocation as a mixed integer programming problem and proposed an aggressive discrete stochastic approximate algorithm based joint power and channel allocation. Tan and Le [19] first presented an optimal brute-force search algorithm to resolve the spectrum resource allocation problem for CRNs. And then, Tan and Le further proposed two channel assignment algorithms to resolve the high complexity of the optimal search. Wang et al. [20] proposed a mechanism to resolve the complex mixed integer programming program faced in the resource allocation process in CRNs. The proposed mechanism developed a fast barrier-based method which can achieve the optimal solution with an almost linear complexity and also proposed a method which can achieve nearly optimal solution with a constant complexity. Tachwali et al. [21] developed a new resource allocation optimization framework for single-cell multiuser multicarrier CRNs in the presence of multiple primary networks. The framework aims to minimize the spectral footprint of the CRN through the bandwidth-power product metric. The protection of PU from harmful interference is incorporated in the framework through PU activity index.


## 2.3. Joint Design of Spectrum Sensing and Spectrum Allocation

The joint design of spectrum sensing and spectrum allocation in CRNs has attracted much attention from both industry and academia. El-Sherif and Liu [22] proposed a novel joint design of the spectrum sensing and channel access mechanisms based on the observation that the value of the test statistics could be used as a confidence measure for the test outcome. Therefore, this value can be used to define different channel access probabilities for secondary users. Zhang et al. [3] designed a distributed scheme to incentivize participation of nodes in cooperative sensing, by connecting sensing and spectrum allocation, and offering incentive from the latter to the former. In the proposed scheme, reputation is used as a pricing factor to incentivize cooperative sensing and a reputation-based pricing method is proposed to offer strong incentive for secondary users to pursue a lower price in the spectrum allocation process.Existing spectrum sensing and allocation methods and security mechanisms are usually based on a centralized infrastructure, where a central authority plays an essential role in coordinating the defense against attacks and thus brings heavy communication overheads and the issue that central authority may be compromised by attackers. Moreover, few works took into account the joint design of spectrum sensing and spectrum allocation, but they only considered individual spectrum sensing or allocation. In particular, they did not consider the internal attacks launched by an inside attacker that has the legal identity. Consequently, it is still an open problem and a challenging task to design secure and distributed spectrum sensing and allocation schemes in CRNs to resist the internal attacks. The main notations and symbols used in this paper are summarized in Notations and Symbols.


## 3. Network and Adversary Models

### 3.1. Network Model

We consider a distributed CRN consisting of a primary user network and a secondary user network [3, 13]. There are N secondary users and K orthogonal frequency channels. Let Ω
N
=
1,2
,
…
,
N and Ω
K
=
1,2
,
…
,
K denote the sets of secondary users and channels, respectively. We suppose that each secondary user is equipped with a cognitive radio and they utilize omnidirectional antennas to communicate with each other. Meanwhile, secondary users are located within the transmission range of the primary users and can individually sense the environment to detect the existence of the primary users [3, 13]. In the cooperative sensing process, we use the energy sensing method for a secondary user to detect primary users’ presence. We also assume that an adversary can compromise a subset of honest secondary users. A secondary user may provide incorrect information (including attacking malicious users and honest users that sense channels incorrectly due to severe fading or system failure) or correct information (including honest users that sense channels correctly and nonattacking malicious users). An honest user has no a priori information on which of its neighbors are malicious. If the final sensing results indicate that the primary users are not transmitting on certain channels, the secondary users use the spectrum allocation scheme to allocate spectrum and transmit on these channels.


### 3.2. Adversary Model

In distributed CRNs, the secondary user network is vulnerable to both external and internal attacks. External attacks can be effectively solved by using the traditional cryptography theory and authentication method. The internal attacks are launched by an inside legal and certificated user, which makes the traditional encryption and authentication techniques no longer effective. In the internal attacks, the attackers may or may not participate in the cooperative sensing process and may report falsified values when participating.We assume that, in spectrum sensing, malicious secondary users strategically report falsified sensing results, aiming at incurring interference between the primary users and legitimate secondary users. In spectrum allocation, malicious secondary users may launch collusion attacks or bad mouthing attacks to report falsified reputation values, aiming to keep the legitimate secondary users away from using the spectrum resource.


## 3.1. Network Model

We consider a distributed CRN consisting of a primary user network and a secondary user network [3, 13]. There are N secondary users and K orthogonal frequency channels. Let Ω
N
=
1,2
,
…
,
N and Ω
K
=
1,2
,
…
,
K denote the sets of secondary users and channels, respectively. We suppose that each secondary user is equipped with a cognitive radio and they utilize omnidirectional antennas to communicate with each other. Meanwhile, secondary users are located within the transmission range of the primary users and can individually sense the environment to detect the existence of the primary users [3, 13]. In the cooperative sensing process, we use the energy sensing method for a secondary user to detect primary users’ presence. We also assume that an adversary can compromise a subset of honest secondary users. A secondary user may provide incorrect information (including attacking malicious users and honest users that sense channels incorrectly due to severe fading or system failure) or correct information (including honest users that sense channels correctly and nonattacking malicious users). An honest user has no a priori information on which of its neighbors are malicious. If the final sensing results indicate that the primary users are not transmitting on certain channels, the secondary users use the spectrum allocation scheme to allocate spectrum and transmit on these channels.


## 3.2. Adversary Model

In distributed CRNs, the secondary user network is vulnerable to both external and internal attacks. External attacks can be effectively solved by using the traditional cryptography theory and authentication method. The internal attacks are launched by an inside legal and certificated user, which makes the traditional encryption and authentication techniques no longer effective. In the internal attacks, the attackers may or may not participate in the cooperative sensing process and may report falsified values when participating.We assume that, in spectrum sensing, malicious secondary users strategically report falsified sensing results, aiming at incurring interference between the primary users and legitimate secondary users. In spectrum allocation, malicious secondary users may launch collusion attacks or bad mouthing attacks to report falsified reputation values, aiming to keep the legitimate secondary users away from using the spectrum resource.


## 4. Distributed Secure Cooperative Sensing Strategy (DSCS)

Distributed cooperative sensing strategy implements spectrum sensing through the distributed secondary users in a wide area. In distributed cooperative sensing, each secondary user obtains a local measurement in a time intervalT. After a sensing session, a series of value update sessions are executed by the secondary users. All secondary users exchange their local spectrum sensing results with their neighbors within its communication range and update their own values based on the received values.Since distributed cooperative sensing can enhance sensing accuracy, while reducing the need for sensitive and expensive sensing technology, it is proposed to enhance the sensing performance [3, 13]. However, it is vulnerable to the internal attacks threats. The internal adversary may control some nodes to report false sensing results to degrade the final sensing decision, which will make the performance of cooperative sensing degrade significantly.Reputation systems are widely used to cope with liars holding false positive/negative opinions [23]. The concept of reputation has been widely used in economics, ecology, anthropology, and other social sciences. A rich body of literature has been devoted to the investigation of different reputation systems for computer networks [24–26]. Recently, derived from the Dempster-Shafer theory [27] and with the ability to explicitly represent and manage a node’s uncertainty, subjective logic and uncertainty based reputation mechanism has emerged as an attractive tool for handling trust relationships and has attracted much attention in distributed CRNs.In this section, we propose DSCS, a reputation-based sensing strategy that is a distributed cooperative strategy using subject logic based reputation mechanism to defend against internal malicious secondary users’ attacks.Subjective logic [28, 29] represents a specific belief calculus that uses a belief metric called opinion to express subjective reputation. Since it is necessary to develop mechanisms to detect and manage malicious users in distributed CRNs, subjective logic with the ability to explicitly represent and manage a user’s uncertainty has emerged as an attractive tool for handling trust relationships in distributed CRNs.In subjective logic each opinion is denoted by a 4-tupleω
x
:
y
=
(
b
x
:
y
,
d
x
:
y
,
u
x
:
y
,
a
x
:
y
), where b
x
:
y, d
x
:
y, and u
x
:
y designate node x’s belief, disbelief, and uncertainty towards y, respectively. The base rate a
x
:
y designates x’s willingness to believe y which determines how uncertainty is viewed as belief when the reputation is used. The uncertainty reflects the confidence in node x’s knowledge of y; an uncertainty of 1.0 represents that a node has no basis for any conclusion. They satisfy the following conditions:(1)
b
x
:
y
+
d
x
:
y
+
u
x
:
y
=
1.0
,
b
x
:
y
,
d
x
:
y
,
u
x
:
y
,
a
x
:
y
∈
0.0,1.0
.When an opinion is used in a decision, it is projected onto the belief/disbelief axis through its expectation,E
ω
x
:
y, which is used to identify malicious nodes and can be computed as(2)
E
ω
x
:
y
=
b
x
:
y
+
a
x
:
y
u
x
:
y
.However, for the case that the belief, disbelief, uncertainty, and base rate change over time, the secondary users’ reputation evaluation and the trust relationship between the secondary users also changes over time. Therefore, the reputation evaluation and the trust relationship at present time depends not only on the values of the underlying parameters but also on the decayed values of the previous trust.Letϖ
n
,
x
:
y
d
i
r
e
c
t
(
b
n
,
d
n
,
u
n
,
a
n
) be the direct opinion of user x to user y at time t
n, which is stored in x’s local reputation table and can be computed at x as follows:(3)
b
n
≜
∑
c
∈
C
b
n
,
x
:
y
c
=
1
C
∑
c
∈
C
N
n
,
x
:
y
c
s
N
n
,
x
:
y
c
,
d
n
≜
∑
c
∈
C
d
n
,
x
:
y
c
=
1
C
∑
c
∈
C
1
-
p
c
u
n
c
e
r
t
a
i
n
N
n
,
x
:
y
c
f
N
n
,
x
:
y
c
,
u
n
≜
∑
c
∈
C
u
n
,
x
:
y
c
=
1
C
∑
c
∈
C
p
c
u
n
c
e
r
t
a
i
n
·
N
n
,
x
:
y
c
f
N
n
,
x
:
y
c
,
a
n
=
0.5
,where N
n
,
x
:
y (N
n
,
x
:
y
=
N
n
,
x
:
y
s
+
N
n
,
x
:
y
f) is the total number of the sensing results that x received from the user y. N
n
,
x
:
y
s is the number of the correct results and N
n
,
x
:
y
f is the number of the wrong results from y, respectively. a
n = 0.5 stands for the case that x’s willingness to believe y is 50%. p
c
u
n
c
e
r
t
a
i
n denotes the degree of uncertainty whether y is trustworthy. p
c
u
n
c
e
r
t
a
i
n can be computed as(4)
p
c
u
n
c
e
r
t
a
i
n
=
β
c
·
p
d
·
1
-
p
f
,
p
d
=
1
-
p
m
,where we assume that the channel is AWGN. β
c denotes the transition probability of the channel state from 1 to 0 after y has sent some sensing results. p
d is the detection probability of the secondary user, p
f is the false alarm rate, and p
m is the false negatives rate. p
f and p
d are defined as (5)
p
f
=
Pr
⁡
Y
>
τ
∣
H
0
=
1
-
Γ
L
2
,
τ
2
σ
0
2
,
p
d
=
Pr
⁡
Y
>
τ
∣
H
1
=
1
-
Γ
L
2
,
η
σ
0
2
σ
1
2
,where H
0 is the zero hypothesis, indicating that the sensed channel is idle, while H
1 is the alternative hypothesis, indicating that the channel is busy. Y is the output and τ denotes the threshold. The signal/noise ratio (SNR) is (
σ
1
2
-
σ
0
2
)
/
σ
0
2. L is the number of testing samples, η satisfies Γ
(
L
/
2
,
η
)
=
1
-
p
f, and Γ
(
·
,
·
) denotes the incomplete Gamma function.Considering the influence of time on opinion, the time-dependent value of a trust relationship from timet
i, computed at the present time t
n, is given by(6)
b
n
=
b
i
×
e
-
b
i
-
1
Δ
t
2
k
,
d
n
=
d
i
×
e
-
d
i
-
1
Δ
t
2
k
,
u
n
=
1
-
b
n
-
d
n
,
a
n
=
a
i
×
e
-
a
i
-
1
Δ
t
2
k
,
Δ
t
=
t
n
-
t
i
,where k (k
≥
1) is the decay rate determining the rate of change over time of the opinion. Δ
t (Δ
t
>
1) is the interval between t
i and t
n. When Δ
t
→
∞, e
-
(
(
b
i
)
-
1
Δ
t
)
2
k
→
0 and hence b
n
→
0. This corroborates that the past opinion value has less influence on the present opinion evaluation as the time interval between them increases.The dynamic final reputation considering the trust decay at the timet
n can be given by(7)
ϖ
n
,
x
:
y
f
i
n
a
l
=
η
1
×
b
i
,
d
i
,
u
i
,
a
i
+
η
2
×
b
n
,
d
n
,
u
n
,
a
n
,where η
1 and η
2 are the weight factors (η
1
+
η
2
=
1
,
(
η
1
,
η
2
∈
[
0,1
]
)) used to determine how much the reputation evaluation results at times t
i and t
n affect the dynamic final reputation. When E
(
ϖ
n
,
x
:
y
f
i
n
a
l
) is less than the threshold, the secondary user will start the recommendation reputation and final reputation evaluation [25, 26].Based on the abovementioned dynamic reputation model and combining with the characteristics of CRN, a reputation-based distributed secure cooperative sensing strategy (DSCS) is proposed. In DSCS, a secondary user combines its sensing results with the results of cooperative group members to evaluate the true state of the channel to improve the accuracy of sensing. Moreover, DSCS can also punish the untrustworthy user to reduce the influence of the false information to the network. The details of the DSCS are described in Algorithm1. It is worth noting that D
B
X
l
o
c
a
l is x’s local reputation table. The size of the table is 1Mb–10Mb depending on the number of cycles in the simulation, so the memory overhead is not much considering the memory size of modern devices.Algorithm 1:Distributed secure cooperative sensing strategy (DSCS).
Input: Wireless channel setC, detectable channel set C
X,
Output: Three most trustworthy secondary users (Trust1, Trust2, Trust3) and an untrustworthy secondary user (N
o
T
r
u
s
t
n)
(1) Begin
(2) Setup the spectrum detection collaborative group (CGSD) for secondary userx;
(3) Initialize the parameters of the reputation modelϖ
X
:
C
G
S
D
i
X
=
b
X
:
C
G
S
D
i
X
,
d
X
:
C
G
S
D
i
X
,
u
X
:
C
G
S
D
i
X
,
a
X
:
C
G
S
D
i
X, η
1, η
2
(4)and the reputation threshold (E
t
h
r
e
s
h
o
l
d), detection period of x(T
X) and data transmission sign (flag);
(5) If (t
i
<
t
<
t
i
+
T
X) then
(6)  Monitoring the common control channel (CCC);
(7)Else if receiveR
E
S
T
o
t
h
e
r
s
e
n
s
i
n
g
∈
C
G
S
D
X then
(8)Store the sensing result into the D
B
X
l
o
c
a
l;
(9)Else
(10)Discard this message;
(11) End if
(12) If ((t
=
t
i
+
T
X) && flag) then
(13)Detect the detectable channel set C
X;
(14)Store the sensing result into the D
B
X
l
o
c
a
l;
(15) End if
(16) If !(flag) then
(17)Compute the E
ϖ
X
:
C
G
S
D
i
X;
(18)Sort(E
ϖ
X
:
C
G
S
D
i
X);
(19)Select three most trustworthy secondary users Trust1, Trust2, Trust3;
(20)Select the secondary user whose reputation value is less than the E
t
h
r
e
s
h
o
l
d;
(21)Execute the channel search scheme (CSS): CSS(Trust1, Trust2, Trust3);
(22)Punish(N
o
T
r
u
s
t
n);
(23) End if
(24) End


## 5. Distributed Cheat-Proof Spectrum Allocation Strategy (DCSA)

After spectrum sensing, how to ensure the rationality and reliability of spectrum resource allocation is a new challenge for distributed CRNs. In this section, a novel cheat-proof spectrum allocation strategy based on Vickrey-Clarke-Groves (VCG) mechanism is proposed. With the mechanism, we formulate the utility function of system and malicious users and then analyze and proof the efficiency of the strategy through the utility function.In DCSA, we denote the channel set that can be controlled asC
=
{
c
1
,
c
2
,
…
,
c
m
∣
m
>
1
} and define the relevant bandwidth set as B
=
{
b
1
,
b
2
,
…
,
b
m
}, where m represents the number of channels. We model the spectrum allocation processes as a VCG based auctions process and define the user’s profit model, system’s profit model, and VCG based distributed cheat-proof mechanism as follows.


### 5.1. User’s Profit Model

Suppose useri has got the permission to access the channel c (c
∈
C) and its throughput requirement is q, which is often private information known only to the user itself. Here, we adopt classical transmission model [30] as (8)
q
=
lo
g
2
⁡
1
+
Q
·
γ
,
Q
=
1.5
ln
⁡
0.2
/
B
E
R
t
a
r
,where Q is the transfer efficiency and γ is the signal-to-noise ratio of the receiver.The profit of the useri, u
i
(
q
i
,
c
), can be expressed as(9)
u
i
q
i
,
c
=
V
q
i
-
P
q
i
,
c
,
purchase
0
,
do  not  purchase
,where V
(
q
i
) is the profit function that the profits user i will gain when it gets the access permission. V
(
q
) can be computed as(10)
V
q
=
a
q
2
+
b
q
s
.
t
.
q
i
=
0
,
V
0
=
0
V
′
q
i
>
0
,
V
′
′
q
i
<
0in which a and b are the weight factors. P
(
q
i
,
c
) is the cost of user i and can be computed as (11)
P
q
i
,
c
=
p
c
q
i
,where p
c is the cost of channel c. p
c is relevant to the reputation; the higher the reputation the lower the cost.Hence, whenq
i
>
0, the profit of the user i, u
i
(
q
i
,
c
), can be computed as(12)
u
i
q
i
,
c
=
a
q
i
2
+
b
-
p
c
q
i
.


### 5.2. System’s Profit Model

We consider distributed CRNs consisting ofn (n
=
n
1
+
n
2
,
n
1
≥
1
,
n
2
≥
1) users, where n
1 and n
2 represent the number of the primary users and secondary users, respectively. In the round of channel allocation, let o
=
(
c
i
,
j
∣
i
=
1,2
,
…
,
m
;
j
=
1,2
,
…
,
n
) denote the set of channel allocation, where c
i
,
j indicates that the channel i is assigned to the user j. The system’s best profit π
∗ can be expressed as(13)
π
∗
=
∑
i
=
1
n
u
i
q
i
,
o
∗
=
max
o
k
∈
O
⁡
∑
i
=
1
n
u
i
q
i
,
o
k
,in whicho
∗ is the best allocation results and can be computed as (14)
o
∗
=
a
r
g
max
o
k
∈
O
⁡
∑
i
=
1
n
u
i
q
i
,
o
k
.


### 5.3. VCG Based Distributed Cheat-Proof Mechanism

In the distributed spectrum allocation process, some secondary users behave maliciously to maximize their own performance by providing the false resource demand. To offer stronger incentives for secondary users to honestly participate in the spectrum allocation process, we connect spectrum allocation to the reputation through a VCG based distributed cheat-proof mechanism.Based on the abovementioned analysis in Sections5.1 and 5.2, we first propose a distributed cheating-proof mechanism detailed description as follows.In the proposed mechanism, the secondary user must pay taxesT
(
q
,
o
)
>
0 in addition to the cost of channel to gain the spectrum resource. The taxes for a user i denoted by T
i
(
q
i
,
o
∗
) can be expressed as(15)
T
i
q
i
,
o
∗
=
∑
j
≠
i
u
j
q
j
,
o
-
i
-
∑
j
≠
i
u
j
q
j
,
o
∗
,in which∑
j
≠
i
u
j
(
q
j
,
o
i
∗
) is the total utility of all the other applicants when i participates in the mechanism. As opposed to ∑
j
≠
i
u
j
(
q
j
,
o
i
∗
), ∑
j
≠
i
u
j
(
q
j
,
o
-
i
) is the total utility of all the other applicants when i withdraws from the mechanism. Then, the best utility of user i can be expressed as(16)
u
i
∗
q
i
,
o
∗
=
u
i
q
i
,
o
∗
-
∑
j
≠
i
u
j
q
j
,
o
-
i
-
∑
j
≠
i
u
j
q
j
,
o
∗
.A mechanism is the VCG mechanism if it can satisfy the following conditions [15, 31, 32]:(1)
The mechanism is incentive compatible.
(2)
The mechanism is individual rational.Next, we will prove that the proposed distributed cheating-proof mechanism is a VCG mechanism.Theorem 1 (the mechanism is incentive compatible (IC)).
A mechanism is incentive compatible (IC) if truth-telling is the best strategy for the users, which means that the users have no incentive to reveal false information.Proof.
Suppose useri needs q
i unit resource, but it applies for q
^
i and declares that u
i
(
q
^
i
)
>
u
i
(
q
i
), which gets the outcome o
^. According to the above description, user i needs to pay the taxes as (17)
T
i
q
i
,
o
^
=
∑
j
≠
i
u
j
q
j
,
o
-
i
-
∑
j
≠
i
u
j
q
j
,
o
^
.
Hence, the final utility of useri is turned to (18)
u
^
i
q
i
,
o
^
=
u
i
q
i
,
o
^
-
∑
j
≠
i
u
j
q
j
,
o
-
i
-
∑
j
≠
i
u
j
q
j
,
o
^
=
u
i
q
i
,
o
^
+
∑
j
≠
i
u
j
q
j
,
o
^
-
∑
j
≠
i
u
j
q
j
,
o
-
i
=
π
o
^
-
∑
j
≠
i
u
j
q
j
,
o
-
i
.
Forπ
(
o
^
)
≤
π
∗, we can get u
^
i
(
q
i
,
o
^
)
≤
u
i
∗
(
q
i
,
o
∗
), which incents user i to give true application resources and truth-telling is the best strategy for user i.Theorem 2 (the mechanism is individual rational (IR)).
In an individual rational (IR) mechanism, rational users are expected to gain a higher utility from actively participating in the mechanism than from avoiding it.Proof.
In the proposed mechanism, we consider the following two malicious behaviors:(1)
The user does not have the requirement, but it still applies for resources.
(2)
The user does not have enough to pay the cost and taxes for the resource, but it still applies for resources.
The utility of the user with these malicious behaviors,u
^
i
(
q
^
i
,
o
^
), can be computed as(19)
u
^
i
q
^
i
,
o
^
=
u
i
q
^
i
,
o
^
-
T
i
q
^
i
,
o
^
.
It is easy to show that in both cases theu
^
i
(
q
^
i
,
o
^
)
<
0 when the incentive compatible is achieved. Therefore, for each user i, u
t
i
l
i
t
y
>
0 and participation into the recommendation is an optimal choice, which means that the mechanism is individual rational.
In conclusion, according to the definition of VCG, the proposed mechanism is a VCG mechanism.
The details of the DCSA are described in Algorithm2. In DCSA, the application and allocation of channels are done in competing slots, which have two stages. At the first stage, the base station calculates the best allocation results and then allocates the channels based on the demands from primary users. Primary users can apply for consecutive slots to complete its transmission. At the second stage, base station allocates the remaining vacant channels to secondary users, who can only apply for one slot in order to avoid the interference with primary users. After the allocation, base station waits for the users to complete transmission and then reallocate channels in the next competing slot.Algorithm 2:Distributed cheating-proof spectrum allocation strategy (DCSA).
Input: Channel setC, bandwidth set B, number of user n and iterations loop
Output: The resource allocation results, the total profit of the PU and SU secondary usersπ
P
U
∗, π
S
U
∗
(1) Begin
(2) While (loop > 0)
(3)  Receive (user’s resource request);
(4)  Compute theo
P
U
∗
=
K
M
(
q
P
U
) according to the PUs’ resource requirement q
P
U;
(5)  Allocate the channel to the PU according to theo
P
U
∗;
(6)  Compute the total profit of the PUπ
P
U
∗ according to the o
P
U
∗;
(7) if there have the idle channel then
(8)   Compute theo
^
S
U
∗
=
K
M
(
q
S
U
) according to the SUs’ resource requirement q
S
U;
(9)   Allocate the channel to the SU according to theo
^
S
U
∗;
(10)Compute the total profit of the SU π
S
U
∗ according to the o
S
U
∗;
(11)End if
(12)  loop–;
(13) End While
(14) End


## 5.1. User’s Profit Model

Suppose useri has got the permission to access the channel c (c
∈
C) and its throughput requirement is q, which is often private information known only to the user itself. Here, we adopt classical transmission model [30] as (8)
q
=
lo
g
2
⁡
1
+
Q
·
γ
,
Q
=
1.5
ln
⁡
0.2
/
B
E
R
t
a
r
,where Q is the transfer efficiency and γ is the signal-to-noise ratio of the receiver.The profit of the useri, u
i
(
q
i
,
c
), can be expressed as(9)
u
i
q
i
,
c
=
V
q
i
-
P
q
i
,
c
,
purchase
0
,
do  not  purchase
,where V
(
q
i
) is the profit function that the profits user i will gain when it gets the access permission. V
(
q
) can be computed as(10)
V
q
=
a
q
2
+
b
q
s
.
t
.
q
i
=
0
,
V
0
=
0
V
′
q
i
>
0
,
V
′
′
q
i
<
0in which a and b are the weight factors. P
(
q
i
,
c
) is the cost of user i and can be computed as (11)
P
q
i
,
c
=
p
c
q
i
,where p
c is the cost of channel c. p
c is relevant to the reputation; the higher the reputation the lower the cost.Hence, whenq
i
>
0, the profit of the user i, u
i
(
q
i
,
c
), can be computed as(12)
u
i
q
i
,
c
=
a
q
i
2
+
b
-
p
c
q
i
.


## 5.2. System’s Profit Model

We consider distributed CRNs consisting ofn (n
=
n
1
+
n
2
,
n
1
≥
1
,
n
2
≥
1) users, where n
1 and n
2 represent the number of the primary users and secondary users, respectively. In the round of channel allocation, let o
=
(
c
i
,
j
∣
i
=
1,2
,
…
,
m
;
j
=
1,2
,
…
,
n
) denote the set of channel allocation, where c
i
,
j indicates that the channel i is assigned to the user j. The system’s best profit π
∗ can be expressed as(13)
π
∗
=
∑
i
=
1
n
u
i
q
i
,
o
∗
=
max
o
k
∈
O
⁡
∑
i
=
1
n
u
i
q
i
,
o
k
,in whicho
∗ is the best allocation results and can be computed as (14)
o
∗
=
a
r
g
max
o
k
∈
O
⁡
∑
i
=
1
n
u
i
q
i
,
o
k
.


## 5.3. VCG Based Distributed Cheat-Proof Mechanism

In the distributed spectrum allocation process, some secondary users behave maliciously to maximize their own performance by providing the false resource demand. To offer stronger incentives for secondary users to honestly participate in the spectrum allocation process, we connect spectrum allocation to the reputation through a VCG based distributed cheat-proof mechanism.Based on the abovementioned analysis in Sections5.1 and 5.2, we first propose a distributed cheating-proof mechanism detailed description as follows.In the proposed mechanism, the secondary user must pay taxesT
(
q
,
o
)
>
0 in addition to the cost of channel to gain the spectrum resource. The taxes for a user i denoted by T
i
(
q
i
,
o
∗
) can be expressed as(15)
T
i
q
i
,
o
∗
=
∑
j
≠
i
u
j
q
j
,
o
-
i
-
∑
j
≠
i
u
j
q
j
,
o
∗
,in which∑
j
≠
i
u
j
(
q
j
,
o
i
∗
) is the total utility of all the other applicants when i participates in the mechanism. As opposed to ∑
j
≠
i
u
j
(
q
j
,
o
i
∗
), ∑
j
≠
i
u
j
(
q
j
,
o
-
i
) is the total utility of all the other applicants when i withdraws from the mechanism. Then, the best utility of user i can be expressed as(16)
u
i
∗
q
i
,
o
∗
=
u
i
q
i
,
o
∗
-
∑
j
≠
i
u
j
q
j
,
o
-
i
-
∑
j
≠
i
u
j
q
j
,
o
∗
.A mechanism is the VCG mechanism if it can satisfy the following conditions [15, 31, 32]:(1)
The mechanism is incentive compatible.
(2)
The mechanism is individual rational.Next, we will prove that the proposed distributed cheating-proof mechanism is a VCG mechanism.Theorem 1 (the mechanism is incentive compatible (IC)).
A mechanism is incentive compatible (IC) if truth-telling is the best strategy for the users, which means that the users have no incentive to reveal false information.Proof.
Suppose useri needs q
i unit resource, but it applies for q
^
i and declares that u
i
(
q
^
i
)
>
u
i
(
q
i
), which gets the outcome o
^. According to the above description, user i needs to pay the taxes as (17)
T
i
q
i
,
o
^
=
∑
j
≠
i
u
j
q
j
,
o
-
i
-
∑
j
≠
i
u
j
q
j
,
o
^
.
Hence, the final utility of useri is turned to (18)
u
^
i
q
i
,
o
^
=
u
i
q
i
,
o
^
-
∑
j
≠
i
u
j
q
j
,
o
-
i
-
∑
j
≠
i
u
j
q
j
,
o
^
=
u
i
q
i
,
o
^
+
∑
j
≠
i
u
j
q
j
,
o
^
-
∑
j
≠
i
u
j
q
j
,
o
-
i
=
π
o
^
-
∑
j
≠
i
u
j
q
j
,
o
-
i
.
Forπ
(
o
^
)
≤
π
∗, we can get u
^
i
(
q
i
,
o
^
)
≤
u
i
∗
(
q
i
,
o
∗
), which incents user i to give true application resources and truth-telling is the best strategy for user i.Theorem 2 (the mechanism is individual rational (IR)).
In an individual rational (IR) mechanism, rational users are expected to gain a higher utility from actively participating in the mechanism than from avoiding it.Proof.
In the proposed mechanism, we consider the following two malicious behaviors:(1)
The user does not have the requirement, but it still applies for resources.
(2)
The user does not have enough to pay the cost and taxes for the resource, but it still applies for resources.
The utility of the user with these malicious behaviors,u
^
i
(
q
^
i
,
o
^
), can be computed as(19)
u
^
i
q
^
i
,
o
^
=
u
i
q
^
i
,
o
^
-
T
i
q
^
i
,
o
^
.
It is easy to show that in both cases theu
^
i
(
q
^
i
,
o
^
)
<
0 when the incentive compatible is achieved. Therefore, for each user i, u
t
i
l
i
t
y
>
0 and participation into the recommendation is an optimal choice, which means that the mechanism is individual rational.
In conclusion, according to the definition of VCG, the proposed mechanism is a VCG mechanism.
The details of the DCSA are described in Algorithm2. In DCSA, the application and allocation of channels are done in competing slots, which have two stages. At the first stage, the base station calculates the best allocation results and then allocates the channels based on the demands from primary users. Primary users can apply for consecutive slots to complete its transmission. At the second stage, base station allocates the remaining vacant channels to secondary users, who can only apply for one slot in order to avoid the interference with primary users. After the allocation, base station waits for the users to complete transmission and then reallocate channels in the next competing slot.Algorithm 2:Distributed cheating-proof spectrum allocation strategy (DCSA).
Input: Channel setC, bandwidth set B, number of user n and iterations loop
Output: The resource allocation results, the total profit of the PU and SU secondary usersπ
P
U
∗, π
S
U
∗
(1) Begin
(2) While (loop > 0)
(3)  Receive (user’s resource request);
(4)  Compute theo
P
U
∗
=
K
M
(
q
P
U
) according to the PUs’ resource requirement q
P
U;
(5)  Allocate the channel to the PU according to theo
P
U
∗;
(6)  Compute the total profit of the PUπ
P
U
∗ according to the o
P
U
∗;
(7) if there have the idle channel then
(8)   Compute theo
^
S
U
∗
=
K
M
(
q
S
U
) according to the SUs’ resource requirement q
S
U;
(9)   Allocate the channel to the SU according to theo
^
S
U
∗;
(10)Compute the total profit of the SU π
S
U
∗ according to the o
S
U
∗;
(11)End if
(12)  loop–;
(13) End While
(14) End


## 6. Performance Evaluation

In this section, we implement our strategies and conduct extensive simulation experiments using MATLAB to verify the efficacy of the proposed strategies. We assume that the malicious nodes can launch SSDF attacks in the sensing and allocation process by reporting falsified values. They can also implement the Random Attack strategy or the Intermittent Attack strategy which means that the attacks are launched intermittently in a random way. For the Intermittent Attack strategy, we simulate the scenario where the malicious nodes attack with a 50% intensity. The intensity stands for the probability that the malicious node launches an attack during an interaction.


### 6.1. Performance of the DSCS

In this subsection, the performance of the proposed DSCS is compared to the distributed Random [33] and EDSO [34] schemes in terms of the sensing accuracy rate denoted by A
C
C.In our simulations, the number of secondary users is 5 (secondary user is denoted byx in the simulations) and the number of detectable channels of each secondary user is 4. The initial reputation of x toward y is ω
x
:
y
=
(
0.5,0.25,0.25,0.5
); the threshold of the reputation expectation, E
t
h
r
e
s
h
o
l
d, is 0.5. The parameters η
1
,
η
2 are 0.5 and 0.5, which are empirical values obtained from multiple experiments. The time slot is 1s and the simulation results are the average values obtained from 1000 runs of simulation experiments.First, we compare theA
C
C of the three strategies without SSDF attacks (i.e., without dishonest recommendations). Suppose that there are 6 available channels and each secondary user can detect up to 4 channels. The A
C
C can be computed as(20)
A
C
C
=
N
s
u
c
c
e
s
s
N
s
e
l
e
c
t
,where N
s
u
c
c
e
s
s is the number of successful channel accesses and N
s
e
l
e
c
t is the number of channel accesses.We can observe in Figure3 that all the three strategies can detect the channels from 1–4. But, since both the Random and EDSO strategies do not adopt the cooperative sensing scheme, they cannot detect channels 5 and 6. The proposed DSCS adopts the cooperative sensing scheme, which makes it possible to receive the sensing results recommended by the other cooperative users, so it can gain the status of channels 5 and 6 and use them to improve the channel utilization rate. Moreover, it is seen that the sensing accuracy performance of the DSCS is better than that of the Random and EDSO scheme. In the Random and EDSO scheme the channel status information is computed and obtained only from the local sensing results, while in DSCS the secondary users gather channel status information from the cooperative users and compute the final sensing results through combining the local sensing result with these cooperative sensing results.Figure 3
Comparison of ACC without SSDF attacks.Next, we compare the sensing accuracy performance of DSCS to that of the Random and EDSO scheme under the random SSDF and Intermittent SSDF attacks. The results are shown in Figures4–6.Figure 4
Comparison of ACC with SSDF attacks.Figure 5
Comparison of ACC with random SSDF attacks.Figure 6
Comparison of ACC with intermittent SSDF attacks.In Figure4, we analyze the A
C
C performance of DSCS when malicious users exist. The results indicate that the sensing results are affected by the malicious users, and the A
C
C of DSCS decreases from 0.6 to less than 0.4 as the number of malicious users increases from 20 to 30. In DSCS, the proposed reputation mechanism will identify the malicious users and then punish them by isolating them from the network. The punishment will decrease the number of cooperative users and the cooperative sensing information; as a result, the accuracy of the DSCS drops.As shown in Figure5, the A
C
C of all the three strategies decreases when the number of the channels increases. Since the SSDF is randomly launched and cannot be detected effectively, the A
C
C of the Random and EDSO scheme decreases at a percentage up to 70% and 73%, respectively. However, for the DSCS, because the cooperative users can provide additional sensing information combined with the local sensing information to compute the final sensing result, its A
C
C only decreases by 35%.In Figure6, we compare the A
C
C of all the three strategies when the Intermittent SSDF attacks are present. In the simulation, we consider the scenario where the malicious nodes attack with a 50% intensity. The results in Figure 6 are similar to those in Figure 5; the A
C
C of Random and EDSO scheme decreases at a percentage up to 80% and 83% (in Figure 5, they are 70% and 73%), respectively. For the DSCS, its A
C
C only decreases by 40% (in Figure 5, it is 35%), which is much lower than that of the Random and EDSO scheme.


### 6.2. Performance of the DCSA

In this subsection, the performance of the proposed DCSA is verified in terms of the spectrum allocation accuracy rate denoted by ACR. We consider that there are 10 primary users and 10 secondary users. We setB
E
R
t
a
r
=
1
0
-
4 and γ
∈
[
5
d
B
,
20
d
B
]. The values of parameters a and b in (13) are −10, 40.In Figure7, we set the deception rate λ
=
0.2 and compare the ACR of the spectrum allocation process without DCSA under SSDF attacks to that with no SSDF attacks. The results in Figure 7 indicate that the ACR of both scenarios increases when the time increases. As expected, The ACR under no SSDF attacks is better than that under SSDF attacks, since the spectrum allocation will be affected by the SSDF attacks. Then, we investigate the impact of deception rates λ on the ACR. The simulation results are shown in Figure 8. It can be seen that the average ACR when λ
=
0.2 is higher than that when λ
=
2. The simulation results demonstrate that the deception rate has a big impact on the ACR: the higher is the deception rate, the lower is the ACR.Figure 7
Comparison of ACR with and without SSDF attacks.Figure 8
Comparison of ACR with different deception rates.The above analysis shows that it is necessary to build a SSDF-proof spectrum allocation strategy. In the following, we will compare the ACR performance of the strategy with DCSA to that of the strategy without DCSA.As shown in Figures9 and 10, under the SSDF attack, the ACR of both strategies (with or without DCSA) decreases when the time or the percentage of the malicious users increases, while the ACR of strategy with DCSA decreases slower than that without DCSA. In this simulation, the malicious users are assumed to be rational, so the proposed DCSA can effectively incentivize secondary users to honestly participate in the spectrum allocation process by reducing its reputation when it provides dishonest information. Since the reputation of a secondary user will be the reference for the next round of spectrum allocation and cooperative user selection, the reduction of reputation will keep the malicious users away from lying because they cannot get utility from lying. As a result, the ACR of the strategy with DCSA is better than that without DCSA.Figure 9
ACR as a function of slot.Figure 10
ACR as a function of the percentage of malicious users.


## 6.1. Performance of the DSCS

In this subsection, the performance of the proposed DSCS is compared to the distributed Random [33] and EDSO [34] schemes in terms of the sensing accuracy rate denoted by A
C
C.In our simulations, the number of secondary users is 5 (secondary user is denoted byx in the simulations) and the number of detectable channels of each secondary user is 4. The initial reputation of x toward y is ω
x
:
y
=
(
0.5,0.25,0.25,0.5
); the threshold of the reputation expectation, E
t
h
r
e
s
h
o
l
d, is 0.5. The parameters η
1
,
η
2 are 0.5 and 0.5, which are empirical values obtained from multiple experiments. The time slot is 1s and the simulation results are the average values obtained from 1000 runs of simulation experiments.First, we compare theA
C
C of the three strategies without SSDF attacks (i.e., without dishonest recommendations). Suppose that there are 6 available channels and each secondary user can detect up to 4 channels. The A
C
C can be computed as(20)
A
C
C
=
N
s
u
c
c
e
s
s
N
s
e
l
e
c
t
,where N
s
u
c
c
e
s
s is the number of successful channel accesses and N
s
e
l
e
c
t is the number of channel accesses.We can observe in Figure3 that all the three strategies can detect the channels from 1–4. But, since both the Random and EDSO strategies do not adopt the cooperative sensing scheme, they cannot detect channels 5 and 6. The proposed DSCS adopts the cooperative sensing scheme, which makes it possible to receive the sensing results recommended by the other cooperative users, so it can gain the status of channels 5 and 6 and use them to improve the channel utilization rate. Moreover, it is seen that the sensing accuracy performance of the DSCS is better than that of the Random and EDSO scheme. In the Random and EDSO scheme the channel status information is computed and obtained only from the local sensing results, while in DSCS the secondary users gather channel status information from the cooperative users and compute the final sensing results through combining the local sensing result with these cooperative sensing results.Figure 3
Comparison of ACC without SSDF attacks.Next, we compare the sensing accuracy performance of DSCS to that of the Random and EDSO scheme under the random SSDF and Intermittent SSDF attacks. The results are shown in Figures4–6.Figure 4
Comparison of ACC with SSDF attacks.Figure 5
Comparison of ACC with random SSDF attacks.Figure 6
Comparison of ACC with intermittent SSDF attacks.In Figure4, we analyze the A
C
C performance of DSCS when malicious users exist. The results indicate that the sensing results are affected by the malicious users, and the A
C
C of DSCS decreases from 0.6 to less than 0.4 as the number of malicious users increases from 20 to 30. In DSCS, the proposed reputation mechanism will identify the malicious users and then punish them by isolating them from the network. The punishment will decrease the number of cooperative users and the cooperative sensing information; as a result, the accuracy of the DSCS drops.As shown in Figure5, the A
C
C of all the three strategies decreases when the number of the channels increases. Since the SSDF is randomly launched and cannot be detected effectively, the A
C
C of the Random and EDSO scheme decreases at a percentage up to 70% and 73%, respectively. However, for the DSCS, because the cooperative users can provide additional sensing information combined with the local sensing information to compute the final sensing result, its A
C
C only decreases by 35%.In Figure6, we compare the A
C
C of all the three strategies when the Intermittent SSDF attacks are present. In the simulation, we consider the scenario where the malicious nodes attack with a 50% intensity. The results in Figure 6 are similar to those in Figure 5; the A
C
C of Random and EDSO scheme decreases at a percentage up to 80% and 83% (in Figure 5, they are 70% and 73%), respectively. For the DSCS, its A
C
C only decreases by 40% (in Figure 5, it is 35%), which is much lower than that of the Random and EDSO scheme.


## 6.2. Performance of the DCSA

In this subsection, the performance of the proposed DCSA is verified in terms of the spectrum allocation accuracy rate denoted by ACR. We consider that there are 10 primary users and 10 secondary users. We setB
E
R
t
a
r
=
1
0
-
4 and γ
∈
[
5
d
B
,
20
d
B
]. The values of parameters a and b in (13) are −10, 40.In Figure7, we set the deception rate λ
=
0.2 and compare the ACR of the spectrum allocation process without DCSA under SSDF attacks to that with no SSDF attacks. The results in Figure 7 indicate that the ACR of both scenarios increases when the time increases. As expected, The ACR under no SSDF attacks is better than that under SSDF attacks, since the spectrum allocation will be affected by the SSDF attacks. Then, we investigate the impact of deception rates λ on the ACR. The simulation results are shown in Figure 8. It can be seen that the average ACR when λ
=
0.2 is higher than that when λ
=
2. The simulation results demonstrate that the deception rate has a big impact on the ACR: the higher is the deception rate, the lower is the ACR.Figure 7
Comparison of ACR with and without SSDF attacks.Figure 8
Comparison of ACR with different deception rates.The above analysis shows that it is necessary to build a SSDF-proof spectrum allocation strategy. In the following, we will compare the ACR performance of the strategy with DCSA to that of the strategy without DCSA.As shown in Figures9 and 10, under the SSDF attack, the ACR of both strategies (with or without DCSA) decreases when the time or the percentage of the malicious users increases, while the ACR of strategy with DCSA decreases slower than that without DCSA. In this simulation, the malicious users are assumed to be rational, so the proposed DCSA can effectively incentivize secondary users to honestly participate in the spectrum allocation process by reducing its reputation when it provides dishonest information. Since the reputation of a secondary user will be the reference for the next round of spectrum allocation and cooperative user selection, the reduction of reputation will keep the malicious users away from lying because they cannot get utility from lying. As a result, the ACR of the strategy with DCSA is better than that without DCSA.Figure 9
ACR as a function of slot.Figure 10
ACR as a function of the percentage of malicious users.


## 7. Conclusions

In this paper, we have investigated the challenging problems of secure spectrum sensing and spectrum allocation in CRNs and have proposed a distributed cooperative sensing strategy (DSCS) and a cheat-proof spectrum allocation strategy (DCSA). Based on the combination of the proposed dynamic reputation model and VCG mechanism, the DSCS and DCSA can effectively defend against the internal SSDF attacks. Moreover, the DSCS and DCSA do not rely on a central authority or a common control channel and are therefore applicable in distributed CRNs. Nevertheless, the proposed algorithm imposes some communications and computing overhead caused by nodes interactions which is not calculated in this work, as we focus on the security and effectiveness of the cooperative spectrum sensing and allocation scheme in CRNs. We intend to investigate and analyze the overhead issue in our future work. The elaborated simulation tests and performance analysis have verified that the DSCS and DCSA are secure and efficient. More specifically, in the presence of SSDF attacks, the sensing accuracy rate and the spectrum allocation accuracy rate of the proposed DSCS and DCSA are much better than those of the existing strategies.



---

*Source: 674591-2015-10-29.xml*