1. Introduction
Cognitive radio technology can effectively alleviate the tension of spectrum resources and improve spectrum utilization because it allows secondary users to opportunistically access and simultaneously share spectrum resources by spectrum hole technology. In the meantime, relaying technology has shown its great potential to expand the cell coverage radius and save energy in long distance communications. Therefore, the introduction of cognitive radio into the relay network can further help the secondary user to increase its throughput.
For instance, the false alarm and missed detection events were considered in [
1] in two-way cognitive cooperative networks, where secondary users accessed the spectrum in a hybrid interweave underlay way. Incorporating these practical issues into the hybrid cognitive networks, a suboptimal power allocation strategy for the aim of sum rate maximization and outage probability minimization of the secondary users was proposed in [
1]. Unlike rate mission in most works, an outage probability target was developed in [
2] in cognitive two-way relay networks, where a power allocation scheme was proposed to meet a qualify of service constraint of the primary users without channel state information. A probabilistic admission control of the primary users and a randomized service of the secondary users were designed in [
3] in cooperative cognitive radio networks, where the average delay of the secondary users was optimized. The authors proved the equivalence of throughput maximization and delay minimization and developed a line search method. Different from traditional power allocation in previous works, the authors in [
4] chose the number of power levels as optimization variables to define the throughput of secondary users. An energy efficiency problem was studied in [
5] in cognitive relay networks with energy harvesting, where the secondary user was allowed to collect energy from the primary user. The goal of [
6] was to obtain an approximate symbol error probability in a multi-antenna relay system. However, the direct link between a source and a relay was absent. Although a direct link was included in [
7], power allocation was absent due to the simplicity in the process of deriving approximate symbol error probability.
Incorporation of orthogonal frequency division multiplexing (OFDM) technology in broadband communications can alleviate multipath fading against fluctuating channel conditions. In [
8], the optimal power allocation, subcarrier pairing, and relay selection matrix were found in OFDM cognitive two-way relay networks with imperfect spectrum sensing. However, the authors in [
8] operated a discrete searching method instead of a closed form solution to find optimal power due to the complex rate formula in the presence of imperfect spectrum sensing. In addition, the step size needs to be adjusted according to the actual implement to ensure the power precision. A similar sum rate maximization problem of secondary users was considered in [
9] in OFDM based two-way cognitive relaying networks, where a per subcarrier interference constraint was introduced to protect the primary users. A full duplex relaying mode was provided in [
10], where a secondary relay established a two-way link for a pair of primary users. As a reward, this full duplex relay station acted as a secondary user and transmitted its own messages with the remaining OFDM subcarriers. This mutually beneficial cooperation not only satisfied the requirements of primary users, but also benefited secondary users. A carrier aggregation technology was investigated in [
11] to overcome spectrum limitation challenges. Different frequency bands were treated differently: low frequency band for direct link and high frequency band for dual-hop link. A bit error rate constraint was incorporated in [
12] in OFDM based cooperative cognitive radio networks, where the secondary user adapted its constellation size according to the distance to primary user. The heterogeneous genetic algorithm was adopted in [
13] to resolve a non convex problem in cognitive decode and forward (DF) relay networks. An interference control problem was proposed in [
14,
15] in cognitive radio networks, but they were both based on traditional point to point communication instead of cooperative communication. In [
16], the system capacity was optimized under the constraints of total power and interference level. However, no cooperative technology was used in [
16].
This paper considers cognitive amplify and forward (AF) relay networks operating in OFDM scheme. A concise comparison between previous works and our paper is shown in
Table 1. The differences between our paper and previous works mainly lie in three aspects. Firstly, different links: previous works often only considered either relaying link [
6,
17] or only direct link [
7], so there was no problem in choosing which link for the source to convey messages. However, the relaying link is not always better than the direct link and vice versa due to the fluctuating channel quality. In our paper, both relaying link and direct link are included and the selection criteria are provided according to the strength of both links. Secondly, different goals: although some work involves both links, their goal is to calculate accurate performance formulas rather than resource optimization [
12,
18,
19]. However, what we are concerned about is the joint optimization of power allocation and subcarrier pairing. Thirdly, different system models: different from most works [
18,
19,
20,
21,
22], where a primary user selected a secondary user acting as a relay to help the primary user forward the message. However, in our model, the secondary user doesn’t participate in the communication process of the primary user as long as the secondary user meets the interference management condition.
Through the above analysis, the cognitive radio technology based on relay assistance has not been fully explored. In this paper, we design a joint optimization algorithm in the cognitive relaying networks, where the secondary user can switch between direct link and relaying link depending on the channel conditions while maintaining an acceptable interference size at the primary user. Two types of typical problems are studied. One is to look for sum rate maximum of secondary network subject to total power budget of secondary network and tolerable interference level of primary network. The other one is to seek for sum rate maximum of secondary network subject to individual power budget of secondary network and tolerable interference level of primary network. In order to find the maximum value, we propose a joint optimization algorithm, in which power allocation and subcarrier pairing are decomposed into two subproblems. The first step is to find a closed form solution of power allocation without violating the interference constraint of the primary network. In particular, when the direct link is active, the power allocation reduces to a classical water-filling form. Then, the subcarrier pairing is found when the power has been solved at the first step.
2. System Model
Consider a relay aided cognitive network where a secondary source user
establishes a link with a secondary destination user
via a secondary AF relay station
. Unlike [
17], where the direct path from
to
is ignored, we consider a more general scenario with a direct path. The primary network consists of a pair of primary source user
and primary destination user
. The secondary users share the whole spectrum with the primary users in underlay mode. Assume that the spectrum is divided into
N subcarriers in OFDM mode. Denote the channel coefficients from
to
and to
over subcarrier
i as
and
, respectively. Similarly, the channel coefficient from
to
over subcarrier
j is represented by
. The subcarrier pairing technique is applied here. Subcarrier
i of the received signal and subcarrier
j of the forwarded signal form a subcarrier pair
. Then,
and
denote the interference channel coefficients of
link and
link, respectively. It is well known that interference is mutual. The equivalent channel coefficients from
to
and from
to
are denoted by
and
, respectively.
The transmission powers at
and
are given by
and
, respectively. Similarly, the transmission power at
is denoted by
. The data rate of the secondary user over the subcarrier pair
is given by
where
and
is noise variance. The approximation in Equation (
1) has been widely applied, such as [
17].
3. Resource Allocation under Total Power Constraint
Although joint optimization of physical layer, medium layer, and application layer can achieve better performance [
23], the successful establishment of communication depends first on the connection of the physical layer. Hence, this section focuses on the optimization of the physical layer. In this section, we prepare to seek for the maximum value of the sum rate of the secondary network subject to the available power budget and the tolerable interference threshold at the primary user. This problem is formulated by
where
,
,
is the total power budget at the secondary network,
and
denote the tolerable interference threshold that
can maintain at the first phase and the second phase, respectively.
is a binary variable indicating whether the subcarrier pairing
is successful. If subcarrier pairing is formed, then
; otherwise,
. Although our problem is a mixed integer programming problem due to the existence of discrete variables, the dual gap is asymptotically zero according to the time sharing property of OFDM [
24].
3.1. Power Allocation
The Lagrangian in Equation (
3) is given by
where
,
and
are dual variables associated with the power and interference constraints. According to the Karush–Kuhn–Tucker criterion [
25], we take a partial derivative on
L with respect to
and
as
Setting the partial derivative Equations (
5) and (
6) to be zero, we get the optimal power allocation given by
where
and
. Different from the standard water-filling form, the powers in Equations (
7) and (
8) are tailored for the interference management constraints by interference channel gains
and
. As can be seen from the formula Equation (
9),
is the criterion for choosing the relaying link and the direct link. If the condition
holds, the relaying link is more advantageous than the direct link. Otherwise,
would prefer to choose a direct link rather than the aid from
. In particular, in the case of direct transmission, power allocation degenerates into a classical water filling algorithm given by
and
.
Next, let’s look at an interesting special case. When there is only one subcarrier (N = 1), corresponding to a narrow band flat fading scenario, there are four different cases of optimal power allocation.
(1) If the interference threshold of the primary network is large enough to tolerate the power value at which the secondary network achieves its maximum rate without interference constraint, then the optimal power allocation is exactly the same as that without interference constraint. Mathematically, the optimal power allocation is given by
if
and
hold. Note the superscript indicates the first case and the subcarrier index subscript is omitted for brevity due to
.
(2) If the interference threshold of the primary network is less than the power constraint of the secondary network, then the power allocation is determined entirely by the interference threshold. In this case, the power allocation is given by and if holds.
(3) If the interference threshold is too small for the secondary source while too large for the secondary relay, then the power allocation is constrained by the source’s interference threshold. Under this circumstance, the power allocation is given by and if and hold.
(4) If the interference threshold is too large for the secondary source while too small for the secondary relay, then the power allocation is constrained by the relay’s interference threshold. Under this circumstance, the power allocation is given by , and if and hold.
3.2. Subcarrier Pairing
By substituting the optimal power allocation into Equation (
4), the dual function becomes
where
is given by
when
and
hold;
when
and
hold; and
when
holds. By comparing the two Equations (
14) and (
15), it is not difficult to find that as long as
x >
y is satisfied, the value of the relaying link is greater than that of the direct link. This again proves that the selection criteria are correct. Now, only the subcarrier pairing variables are left. Obviously, the problem (
13) is a typical linear assignment problem, which has been solved in [
26]. Finally, dual variables have to be searched iteratively to satisfy the power and interference threshold constraints.
5. Simulation Results
Simulation results are provided in this section to prove our proposed optimization algorithm. Assume six tap channels taken from COST207 model for all links [
27]. We define the average SNR as
. Furthermore, the transmission signal to noise ratio (SNR) of the primary user is assumed to be
dB,
. In addition, the number of subcarriers are set to be
. For simplicity,
and
share the same peak power
. We consider a common simulation layout, where the source, the relay, and the destination are deployed in a straight line and the relay is deployed at the midpoint unless otherwise specified. The path loss exponent is assumed 3.
Figure 1 compares the performance of our proposed algorithm with that of Musbah’s method [
16] and Guftaar’s method [
17], where normal means that all channel gains are normalized to unit one, while strong means that the channel quality of the direct link is 10 dB higher than that of the relaying link. It can be seen from
Figure 1 that, when the channel quality of the direct link is good, the rate of Musbah’s exceeds that of Guftaar’s. Conversely, when the channel quality of direct link deteriorates, the rate of Musbah’s method drops sharply and is lower than that of Guftaar’s. This phenomenon fully shows that Musbah’s method focuses on the direct link instead of the relaying link, while Guftaar’s focuses on the relaying link instead of the direct link. However, our proposed algorithm outperforms the other two approaches in the same environment because we can adaptively access the two links according to the decision criteria:
Next, we prepare to compare the performance of the following suboptimal algorithms. (1) Fixed subcarrier: The subcarriers received and forwarded by the relay are the same, i.e., for and otherwise. This method is equivalent to power allocation without subcarrier pairing in case with the proposed algorithm; (2) Equal power: Equal power is distributed across all subcarriers at secondary users. Specifically, the powers have to be respectively adjusted as and under total power constraint and and under separate power constraints due to the interference condition of the primary user. (4) Fixed subcarrier and equal power (FSEP): The subcarrier pairing is fixed as in case (1) and power is evenly distributed as in case (2).
The impact of the average SNR on the sum rate is showed in
Figure 2. We observe that the joint algorithm exhibits a substantial increase in promoting the sum rate of the secondary users at all SNR values. For example, at a target rate 1 bps/Hz, the optimal algorithm can save about 2 dB SNR in contrast to a fixed subcarrier case. Even the equal power case and FSEP case can not reach this target rate in this simulation experiment. Moreover, by comparing fixed subcarrier case and equal power case, we find that the power allocation is more efficient than subcarrier pairing in the aspect of sum rate promotion. Part of the fact is that, in the equal power scheme, the subcarrier pairing is not optimal due to the existence of interference constraints.
Next, the effect of the interference constraint level
on the sum rate is plotted in
Figure 3, where
. The higher the level of interference the primary user can tolerate, the higher the transmission rate of the secondary user is because more power can be consumed by the secondary user as long as the interference to the primary user is lower than the threshold value. Obviously, when the interference level is relatively low, the sum rate of the secondary user is dominated by strict protection criteria imposed by the primary user. In this case, the secondary user does not use the full transmission power. When the interference level is high, the sum rate of the secondary user is governed by the total power budget. In this case, the interference caused by the secondary user to the primary user does not reach the maximum tolerable interference level. Thus, in the high interference threshold regime, the sum rate remains unchanged. In fact, at a low interference level, the power constraint is inactive while at a high interference level, the interference constraint condition is inactive.
Then, the impact of relay position on the sum rate is drawn in
Figure 4, where the relay moves between the source and destination. The key observation is that the relay prefers to stay at midway. This phenomenon shows that the relay can effectively help the source node in data transmission, especially in the scenario where the destination node is far from the source node.
The influence of the average interference SNR
of the primary user on the sum rate of the secondary user is illustrated in
Figure 5. The transmission power of the primary user is an interference from the perspective of the secondary user. Thus, the sum rate decreases when the primary user increases its transmission power.
Finally, the impact of the power ratio
on the sum rate is described in
Figure 6, where
is always maintained to ensure fairness under the separate power constraint. When
and
are subject to the total power constraint, they can adaptively adjust to find the optimal power allocation scheme. Thus, the sum rate of the total power case, which can be regarded as the upper bound of separate power case, always keeps flat in all ratios. Moreover, from a separate case, more power should be provided to the source node because sometimes the relay may turn off its transceiver when direct link is more efficient than relaying link.