Abstract
The limited radio spectrum has become a bottleneck for various wireless communications. To better utilize the scare radio spectrum, cognitive radios have recently attracted increasing attention, which makes spectrum sharing more viable. Sharing radio spectrum from primary users to secondary users is of great importance. A licensed primary user (PU) can lease its spectrum to secondary users (SUs) for wireless communications. This paper studies the problem of social welfare maximization of distributed spectrum sharing among a PU and SUs. We first formulate the problem of social welfare maximization which takes into account both the cost of the PU and the utility gained by each SU. The social welfare maximization is a convex optimization problem and thus can be solved by a centralized algorithm. However, the utility function of each SU may contain the private information. To avoid privacy leakage of SUs, we propose an iterative distributed algorithm based on a pricing-based decomposition framework. It is theoretically proved that our algorithm converges to the optimal solution. Simulation results are presented to show that our algorithm achieves the optimal social welfare and converges quickly in a practical setting.
1. Introduction
With the increasing development of wireless communications, the scarcity of spectrum becomes more and more serious. Some allocated spectrum may not be used all the time. Many prior studies [1–3] show that the radio spectrum is underutilized in the real world. To make better use of the limited radio spectrum resource, cognitive radios [4] are becoming popular. The spectrum utilization can be largely improved by sharing the allocated spectrum of a primary user (PU) with those of secondary users (SUs) when the radio spectrum is not in use.
In this paper, we consider the problem of sharing the allocated spectrum owned by a PU to a set of SUs. Essentially, we consider a cognitive radio network consisting of one PU, the licensed owner of spectrum, and several SUs without licenses. Each secondary user consists of a pair of nodes, a sender, and a receiver, which have the demand of transmitting data over a wireless channel. A cost is incurred from the primary user when allocating some radio spectrum to secondary users. Each secondary user obtains a certain utility for transmitting data. The objective of spectrum sharing in such a cognitive radio network is to maximize the social welfare, which is defined as the sum of the utilities obtained by all secondary users minus the cost paid by the primary user.
A number of existing studies [5, 6] have been conducted for spectrum sharing in cognitive radio networks. Some of these studies [7–9] apply game theory to model interactions between PU and SU in a cognitive radio network. However, they fail to achieve the objective of social welfare maximization. They assume that secondary users are rational and selfish. For example, Niyato and Hossain [7] proposed a competitive spectrum sharing scheme based on game theory in multihop cognitive radio networks, and Han et al. [9] studied the correlated equilibrium concept for distributive spectrum access.
Some studies [10, 11, 19] maximize the network utility for spectrum sharing. For example, Peng et al. [10] proposed a general model and utility functions for optimizing the utilization in cognitive radio networks. One of the main issues is that these studies assume the utility function of each secondary user is known to all parties. In practice, however, such assumption may not hold. The utility function may contain private information and may not be known to others for the privacy protection purpose. Since these studies adopt a centralized algorithm, the privacy of a secondary user could not be guaranteed.
In response to the issue on privacy leakage for existing work, we focus on spectrum sharing among a primary user and a set of secondary users. We aim at maximizing the social welfare while not releasing the privacy in the utility function of each secondary user.
We have to address several challenges. First, the utility function of each secondary user contains the user-specific information, which may be concerning the privacy of the secondary user. Such private information should not be released in the process of spectrum sharing. Second, there may be a large number of secondary users. Thus, a distributed algorithm is preferable. Finally, the objective in the problem, maximizing the social welfare, couples the cost function of the primary user and the utility function of each secondary user. In other words, the objective function cannot be directly decoupled into several independent subproblems.
In response to the challenges mentioned above, we propose a distributed algorithm for spectrum sharing in cognitive radio networks, based on the decomposition algorithm for coupled systems [12]. Since the shared spectrum is priced by the primary user, we find that the optimal social welfare can be obtained when the optimal solution of an equivalent pricing problem is derived. Then, we propose a pricing-based decomposition framework, which decouples the problem into several subproblems. The primary user and each secondary user are responsible for a subproblem, which only contains its own private information, respectively.
Based on the decomposition framework, a distributed algorithm is provided, which is executed iteratively. In each iteration, each secondary user informs the primary user of its demanded spectrum, according to the given price. The primary user updates the price based on the collected demands. We also propose a price updating rule, under which the iterative algorithm converges to the optimal solution in finite steps. Extensive simulations have been conducted to evaluate the optimality and the convergence speed achieved by the distributed algorithm.
The rest of this paper is structured as follows. We introduce the network model and problem formulation in Section 3. The optimal distributed approach is described in Section 4. In Section 5, simulation results are reported to show the performance of our algorithm and compared algorithms. We review related work in Section 2 and conclude the paper in Section 6.
2. Related Work
We have witnessed the rapid increase in the use of various wireless communications, for example, 3G/4G, wireless sensor networks [13, 14], vehicular communications [15, 16], and WLAN. The radio spectrum becomes a precious resource. Cognitive radios have received extensive research from both industry and academia. Some studies [7, 8, 10, 19] focus on spectrum allocation, and some studies [17, 18] focus on opportunistic spectrum access without any monetary rewards to primary users. In our paper, we focus on distributed spectrum allocation with monetary rewards to the primary user.
Spectrum Allocation Based on Auction. By taking advantage of the models in the game theory, some of the existing works solve the spectrum sharing problem by achieving Nash Equilibrium. Niyato and Hossain [7] formulate the problem of spectrum sharing as an oligopoly market competition and use a Cournot game to obtain the spectrum allocation. However, the static Cournot game only adapts to some special environment. Han et al. [9] propose a correlated equilibrium concept for users to have the distributive opportunistic spectrum access. Wang et al. [8] propose a competitive spectrum-sharing scheme according to auction theorem without achieving social welfare maximization.
Spectrum Allocation Based on Optimization. Some centralized algorithms in some other works can actually achieve the social welfare maximization. Shi and Hou [18] propose a distributed throughput maximization algorithm in multihop cognitive radio networks. Peng et al. [10] propose a framework that defines the spectrum sharing problem for some definitions of overall system utility. The central server is designed for allocation assignments. Raman et al. [19] propose a centralized spectrum server that coordinates users to sharing a common spectrum. However, these algorithms could not protect the privacy of each user.
3. Network Model and Problem Formulation
In this section, we first describe the model of cognitive radio networks and then formulate the problem solved in this paper.
3.1. Network Model
We consider a cognitive radio network which consists of a primary user and n secondary users. The set of secondary users is denoted by

An illustration of spectrum allocation in a cognitive radio network.
3.2. Problem Formulation
In this subsection, we formulate the social welfare of a cognitive radio network, including two parts: the cost paid by the primary user for spectrum allocation and the utilities obtained by the secondary users for data transmission.
Cost for Spectrum Allocation. The spectrum sharing with secondary users may impact the data transmission of the primary user. This leads to a highly increasing cost associated with the allocated bandwidth, which is formulated as an exponential function. We define the cost function as follows.
Definition 1.
The cost function of the primary user is formulated as
Remarks. The cost function emphasizes the cost of primary user for allocating the bandwidth to the secondary users. The larger the size of bandwidth allocated to the secondary users, the more the cost for the primary user. The cost may derive from the fact that the primary user can not use bandwidth as the primary user wants at any time. The exponential function indicates cost of primary user reasonably.
The primary user expects a payment in return from secondary users for using spectrum. The primary user provides a price
Definition 2.
The primary user obtains a profit for sharing spectrum as
Utility for Data Transmission. It is intuitive that each secondary user obtains a utility for transmitting data. According to the bandwidth
Definition 3.
The utility function of secondary user
Remarks. The utility function emphasizes the utility obtained by each secondary user. The utility function of secondary user indicates the marginal utility. According to the law of diminishing marginal utility in economics [20], the
Thus, the payoff of
Definition 4.
The payoff of secondary user
In this paper, we consider that the secondary users are rational, trying to maximize their own payoffs given a price
Social Welfare. We introduce the concept of social welfare, which is equal to the utilities gained by the secondary users minus the cost paid by the primary user, which is formulated in the following definition.
Definition 5.
The social welfare of a cognitive radio network is defined as
In this paper, we aim to maximize the social welfare of a cognitive radio network. The problem of social welfare maximization is defined in the following.
Definition 6.
The problem of maximizing the social welfare of a cognitive radio network is defined as
Note that the problem defined in Definition 6 is a convex optimization problem. According to [21], the problem must have an optimal solution
The problem of maximizing the social welfare in a cognitive radio network should be solved in a distributed manner. First, if the problem is centrally solved in one point, it incurs a huge computation load on the single point. Second, the utility function of each secondary user is privacy, which leads to unknowing the exact formulation of social welfare.
4. Pricing-Based Decomposition Approach
In response to the difficulties described above, we design a distributed algorithm based on a pricing-based decomposition method, inspired by [12]. The algorithm can achieve the maximal social welfare and protect the private information for each secondary user at the same time.
We first convert the original problem in (6) into an equivalent pricing problem. The optimal spectrum allocation can be obtained when the optimal prices are achieved. Then, we propose a decomposition framework, which decouples the optimization problem into several subproblems. In the framework, each secondary user maximizes its own payoff based on the price given by the primary user. The primary user updates the price after collecting the returned spectrum demand from the secondary users. The above operations are executed iteratively until the spectrum allocation converges to the optimal solution. A price updating rule is also provided, given the insight of the condition that the optimal prices should satisfy. At last, we theoretically prove that our iterative algorithm converges to the optimum in finite steps. The notations that appeared in this paper are summarized in “Major Adopted Notations” section.
4.1. Equivalent Optimal Pricing Problem
As mentioned above, the primary user gives a price
Considering secondary users are rational, they will choose the bandwidth of allocated spectrum by maximizing their own payoffs given a spectrum price
We denote
We illustrate why the pricing problem is equivalent to the original problem briefly. Assume that the optimal solution of problem (10) is
4.2. Pricing-Based Decomposition Framework
In this subsection, we introduce a pricing-based decomposition framework, which is shown in Figure 2.

The pricing-based decomposition framework.
Each secondary user computes the value of
Intuitively, the price updating rule is significant to guarantee the iterative operations eventually converge to the optimal solution. Here, we propose a pricing updating rule according to the Karuth-Kuhn-Tucker (KKT) condition. According to the convex optimization theory [22], the optimal solution
Proposition 7.
An optimal price vector
The proof is provided in the appendix.
Given the insight of Proposition 7, we propose a price updating rule as follows:
Note that, in our decomposition framework, updating price is unnecessary to be executed after all
4.3. Distributed Algorithm
In this subsection, we propose a distributed algorithm to maximize the social welfare of a cognitive radio network. In the distributed algorithm, the primary user and all secondary users should participate as follows.
For each secondary user For the primary user, it updates the value of
The primary user generates a new price based on an original price and partial derivative
(1) Set (2) (3) (4) (5) (6) (7) (8) (9) (10) (11) (12)
4.4. Illustrative Example
We give an example in Figure 3, in which there are three secondary users and one primary user with the bandwidth of 73 MHZ. The parameter β of the cost function is equal to 10. The specific parameter

Illustrative example for spectrum allocation.
At the beginning of our algorithm, the primary user provides the value of

Convergence of illustrative example.
4.5. Convergence Analysis
Contraction Mapping. Many iterative algorithms can be expressed as
The convergence property of contraction or pseudocontractions is given in Theorem 8.
Theorem 8 (geometric convergence).
Suppose the mapping or the pseudocontraction and the modulus of φ are
For simplicity, we use
Convergence of Algorithm
1
with
Briefly, a solution to (9) is equivalent to
Therefore, when
Algorithm 1 applied with
Proposition 9.
Supposing
The proof is provided in the appendix.
Convergence of Algorithm
1
with
Applied with (20), Algorithm 1 can achieve optimal under a convergence condition in the following proposition.
Proposition 10.
Set
The proof is provided in the appendix.
5. Simulations
5.1. Methodology and Simulation Setup
We perform simulations to evaluate the performance of our optimal distributed algorithm, compared with two baseline algorithms as follows.
Distributed Weighted Allocation Scheme (DWAS). First, the primary user provides an initial value
Centralized Heuristic Algorithm (CHA). To illustrate the good performance of our algorithm, we add another heuristic algorithm to compare with our algorithm. Our objective is maximizing social welfare which is defined as utilities of all the secondary users minus the cost of primary user. The utility function of secondary user is concave and the cost function of primary user is convex. When utilities of all the secondary users equal cost of primary user, there is a size of bandwidth called
In addition to the DWAS and CHA, we also compare our algorithm with the optimal value. The optimal value is obtained by maximizing the social welfare directly.
The evaluation of our algorithm is performed from two aspects, including the network performance and the convergence speed. The metrics of network performance are the social welfare and the total allocated spectrum. We perform the simulations with varying two factors: the number of secondary users and the value of β. The metric of convergence speed is the number of iterations. The simulations are performed under different numbers of secondary users and values of ε. The initial values of
5.2. Impact of Number of Secondary Users
We first study the performance of our algorithm, the DWAS, and the CHA under different numbers of secondary users, compared with the optimum. The results are shown in Figures 6 and 9.
Figure 6 shows that the social welfare obtained by our algorithm performs as well as the optimum and much better than the DWAS and the CHA. The social welfare obtained by the DWAS performs much better than the CHA. The social welfare obtained by our algorithm, the DWAS, and the CHA increases with the increasing number of secondary users. When there are 20 secondary users, the social welfare obtained by our algorithm is 50.34% higher than the DWAS. The social welfare obtained by our algorithm is 20.20% higher than the CHA.
In Figure 9, the spectrum allocated by our algorithm is the same as the optimum and more than the DWAS and the CHA. The spectrum obtained by our algorithm, the DWAS, and the CHA increases with the increasing number of secondary users. However, the spectrum allocated by DWAS is always less than the spectrum allocated by our algorithm. The spectrum allocated by CHA is always less than the spectrum allocated by the DWAS. When there are 20 secondary users, the allocated spectrum obtained by our algorithm is 96.23% more than the DWAS. The allocated spectrum obtained by the DWAS is 80.43% more than the CHA.
5.3. Effect of β
We next study the performance of our algorithm, the DWAS, and the CHA under different β, compared with the optimum. The results are shown in Figures 7 and 10.
Figure 7 shows that the social welfare achieved by our algorithm performs as well as the optimum, more than the DWAS and the the CHA. The social welfare achieved by the DWAS performs more than the CHA. The social welfare obtained by our algorithm, the DWAS, and the CHA decreases with the increasing value of β. When there are 20 secondary users, the social welfare obtained by our algorithm is 40% more than the DWAS. The social welfare obtained by the DWAS is 20.23% more than the CHA.
In Figure 10, the spectrum allocated by our algorithm is the same as the optimum, more than the DWAS and the CHA. For our algorithm, the DWAS, and the CHA, the allocated spectrum decreases when the value of β increases. When there are 20 secondary users, the allocated spectrum obtained by our algorithm is 97.43% more than the DWAS. The allocated spectrum obtained by the DWAS is 89.45% more than the CHA.
5.4. Convergence Speed
In this subsection, we study the convergence speed of our algorithm under different numbers of secondary users and values of ε. The results are shown in Figures 5, 8, and 11.

Social welfare achieved with the number of iterations.

Social welfare comparison of different algorithms with varying number of secondary users.

Social welfare comparison of different algorithms with varying β.

Convergence of Algorithm 1 with different number of secondary users.

Allocated spectrum comparison of different algorithms with varying number of secondary users.

Allocated spectrum comparison of different algorithms with varying β.

Convergence of Algorithm 1 with different value of parameter ε.
Figure 5 plots the social welfare achieved by our algorithm in each iteration, when the value of system parameter ε is 0.1 and 0.15, respectively. Under the two settings, we can see that 99.9% of the optimal social welfare is achieved in the first ten iterations, which implies that our algorithm converges quickly.
In Figure 8, we study simulations of our algorithm when the number of secondary users is 20, 40, 60, 80, and 100, respectively. The value of parameter ε is 0.1 and 0.15. The numbers of iterations under different numbers of secondary users and different values of ε are close, which illustrates our algorithm is adapted to large-scale cognitive radio networks.
Figure 11 shows that the convergence speed of our algorithm under the condition of the value of ε varying from 0.1 to 0.15. The number of secondary users is 60 and 100. The number of iterations under different values of ε is less than 32. The higher the value of system parameter ε, the faster the convergence speed. Our algorithm converges fast under varying values of ε.
6. Conclusion
We have studied the problem of maximizing the social welfare in spectrum sharing in a cognitive radio network. We first formulate the cost of the primary user and the utility of each secondary user. To protect the private information of secondary users, we propose a distributed algorithm based on the pricing-based decomposition framework. The distributed algorithm is executed iteratively by the primary user and each secondary user in turn. Theoretical analysis is conducted to demonstrate that the algorithm converges to the optimal solution. Extensive simulation results show that our proposed algorithm achieves the maximum social welfare and converges quickly.
Footnotes
Appendices
Major Adopted Notations
Conflict of Interests
The authors declare that there is no conflict of interests regarding the publication of this paper.
Acknowledgments
The research is supported by China 863 Program (no. 2013AA01A601). This work is also supported by the Program for Changjiang Scholars and Innovative Research Team in University (IRT1158, PCSIRT), China.
