Received 14 March 2016; accepted 5 April 2016; published 23 August 2016
With the rapid development of wireless communications technology, radio spectrum resource is increasingly scarce. A Cognitive Radio Network (CRN) is composed of both the secondary users with CR-enabled radios and the primary users whose radios need not be CR-enabled  . For CR systems it was important to keep the interference to the Primary User (PU) band within a tolerable range. Since the joint subcarrier and power allocation problem was a non-convex integer problem and a closed form solution was difficult to find a suboptimal algorithm that separated subcarrier and power allocation. Thus a suboptimal subcarrier algorithm that could allocate subcarriers to CR users that not only increase the capacity, but also reduce the interference was introduced to the PU band.
The CRs are equipped in CRNs that can optimize the performance by adapting to network conditions. In this the radio can change its transmission parameters based on the perceived availability of the spectrum bands in its operating environment  . Applications of CRNs include intelligent transport systems, Public safety systems, Femtocells, Cooperative networks, Dynamic spectrum access, and Smart grid communications  . The power optimization problem in multiple input multiple output OFDM based CR systems is discussed  . An optimal power allocation scheme by capitalizing on the relationship between mutual information and minimum mean square error is derived. They have been planning to save transmit power compared to its conventional counterpart. Furthermore, the system achieves higher data rate compared to the Gaussian optimized power due to fewer number of subcarriers being null.
Sensing time and delay, Channel impairments, Wideband sensing, Energy efficiency, Interference, Spectral efficiency, Cooperation and Mobility are the issues of OFDM based CRN  . An energy-efficient resource allocation problem which maximizes the cognitive radio link capacity taking into account the availability of the subcarriers and the limits on total interference generated to the Pus is illustrated in  . They have considered it as an energy-aware capacity expression by taking into account another factor called subcarrier availability. Optimizing such an expression saves valuable resources such as battery life by selectively allocating power to underutilized subcarriers. Thus due to the complex structure of the optimal solution, three suboptimal schemes, namely, the step-ladder, nulling, and scaling schemes, are used.
Subcarrier power allocation (or power loading) is a common technique to improve the system performance of OFDM systems by optimally allocating transmits power to the different subcarriers  . If the channel state information is available at the transmitter, power loading can be used to either optimize error rate, transmission capacity, or transmit power  . The first goal is to achieve the maximum energy-efficiency. Unfortunately, the problem is non-convex. Thus we reformulate it into an equivalent convex one and illustrate the equivalent conditions using parametric programming. Second, the problem becomes even more complex because interference constraint must be considered to guarantee the reliable communication of primary users   .
Bandwidth and power allocation with amplify and forward (AF) or decode and forward (DF) relaying protocol is discussed in  to 1) maximize the sum network throughput; 2) minimize the total transmit power of the CR network with considering the fairness of power drain of relay SUs; 3) maximize the energy efficiency of the CR network. They have mentioned the DF relaying protocol that could achieve better performance when the decoding rate constraint was not considered. In contrast, when considering the decoding rate constraint in DF relaying protocol, the hybrid relaying protocol combines AF and DF relaying protocols. A greedy algorithm is developed to solve the joint optimization problem, which has much less computational complexity.
A power and subcarrier allocation for cooperative CR networks in the presence of spectrum sensing errors is designed in  . They have derived the mutual interference of primary and secondary networks affecting each other by taking into account spectrum sensing errors. Then, taking into account the interference constraint is imposed by the cognitive network to the primary user and the power budget constraint of cognitive network that will maximize the achievable data rates of secondary users.
The problem of resources allocation in decode and forward (DF) relayed OFDM based cognitive system is discussed in  . The dual decomposition technique was adopted to obtain an asymptotically optimal subcarrier pairing, relay selection, and power allocation. The resources were optimized under the individual power constraints in source and relays so that the sum rate was maximized while the interference induced to the primary system was kept below a pre-specified interference temperature limit. Furthermore, a sub-optimal scheme was shown to avoid the high computational complexity of the optimal scheme. The suboptimal algorithm allocated jointly the different resources taking into account the channel qualities, the DF-relaying strategy, the interference induced to the primary system, and the individual power budgets.
The resource allocation problem in multiuser OFDM based CRNs is demonstrated in  . The interference to Pus was fully measured, as well as a set of proportional rate constraints to ensure fairness among SUs. Since it was extremely computationally complex to obtain the optimal solution because of integer constraints, they have adopted a two-step method to address the formulated problem. Thus a heuristic sub channel assignment was developed based on the normalized capacity of each OFDM sub channel by jointly considering channel gain and the interference to PUs. It was a rough proportional fairness that removed the intractable integer constraints.
The objective of this work is to analyze the effect of interference introduced by the primary user signal to the CR signal and then solve the problem of power and subcarrier allocation in OFDM-CRN. As an extension to  , we develop a hybrid relaying protocol for joint power and subcarrier allocation. A suboptimal low complexity power and subcarrier allocation algorithm is then proposed considering the interference constraint imposed by the cognitive network to the primary user.
2. Methods and Materials
As an extension to this work, we develop a hybrid relaying protocol for bandwidth and power allocation. A suboptimal low complexity power and subcarrier allocation algorithm is then proposed considering the interference constraint imposed by the cognitive network to the primary user. In hybrid relaying protocol  , a relay SU uses the AF relaying protocolonly if it cannot reliably decode the source data. Otherwise, a relay SU uses the DF relaying protocol. A greedy algorithm is used to select the relay. The effect of interference introduced by the primary user signal to the CR signal is analyzed in terms of the false alarm probability  . Then the joint power and subcarrier allocation problem is solved.
Figure 1 represents the proposed block diagram. In our proposed technique, a hybrid relaying protocol is used for efficient allocation of bandwidth and power in the sub-band of CR network. For this SU uses AF relay protocol, only in case it is unable to decode the source data, else it uses the DF relaying protocol. The selection of relay is done using greedy algorithm to achieve optimal solution. After that estimation of interference introduced by primary signal to CR signal. The power allocation is done in order to enhance the possible information rate for the CR network whereas maintaining the instantaneous interference generated to the primary below a pre-defined threshold.
2.1. Hybrid Relaying Protocol
Usually it is assumed that relay SU can execute the DF relaying protocol in case the data rate between source
Figure 1. Proposed hybrid relaying protocol.
SU and relay SU is greater than zero. In this case, the data rate between the source SU and relay SU is greater than to assure reliable decoding in relay SU. This decoding rate limit can make some poor quality of relaying link to acquire more resource. Hence, it will lead to wastage of resources.
This section describes about a hybrid relaying protocol to overcome the above mentioned issue, in which a relay SU make use of AF relaying protocol only in case it cannot reliably decode the source data, else SU uses the DF relaying protocol. Hence, the joint bandwidth and power allocation issue with hybrid relaying protocol can be formulated as below:
where is a binary vector which represents the transmission mode of the relay SUs. In case, , then it represents that relay SU uses the DF relaying protocol(resp. the AF relaying protocol). represents the minimum acceptable throughput for the kth relaying link. v denotes the relay SU’s decoding rate constraint in case the relay SU adopts for DF relaying protocol. It is quite difficult to find the optimal solution for above framed problem. Hence, a greedy algorithm is used to find the optimal solution.
2.2. Greedy Algorithm
This section describes about the steps involved in the greedy algorithm  to obtain the optimal solution:
Algorithm: The objective is to find the optimal, , and.
Step 1: Initialize
J = 1
For jth iteration:
Step 2: if, then go to step 4.
for each relaying link do
Solve the optimization problem for specific v and obtain the sum throughput
if the optimization problem for specific v has no feasible solution,
then the throughput.
Step 3: if, go to step 4
Go to step 2.
Step 4: is the optimal v. Finally, the optimal, and can be obtained through solving optimization problem for the optimal v.
In the initialization stage, it is assumed that all relay SUs selects AF transmission mode. In the above mentioned greedy algorithm, is represented as candidate set which includes the indices of relay SU that have not selected DF transmission mode and are qualified to select DF transmission mode at the jth iteration.
includes the indices of the relay SUs that have selected DF transmission mode after the jth iteration. represents the transmission mode of all relay SU after jth iteration. denotes the sum throughput attained on the specific transmission mode. denotes the index of the relay SU that selects DF transmission mode at the jth iteration.
The main aim of adopting greedy algorithm is as follows:
1) For each iteration, all relay SUs that have not selected DF transmission mode can be selected separately.
2) For each of the selected relay SU at this specific iteration, its AF transmission mode can be changed to DF transmission mode that forms a new specific v.
3) By solving the optimization problem for the v, the sum throughput is achieved.
4) Relay SU that provides largest sum throughput at this iteration transforms initial transmission mode to DF transmission mode.
5) This algorithm repeats the process for the remaining SUs that have not selected DF transmission mode till all relay SUs have selected DF transmission mode or sum throughput terminates increasing from one-iteration to the next.
2.3. Effect of Interference Caused by False Alarm Probability
This section first describes about the effect of interference caused by false alarm probability. Figure 2 represents the availability of total bandwidth primary bandwidth which is available to the CR network. In Figure 2 the total available bandwidth is divided into Z sub-band with a bandwidth equal to. Due to lack of perfect spectrum sensing, accurate information about presence of primary signal in each sub-band is not available and, hence CR user can transmit data through each sub-band. For this first we need to define the probability as:
where represents the false-alarm probability in the ith sub-band. represents the detection probability in the ith sub-band. Now, by considering Equation (1), the conditional probability can be derived and defined as below:
Figure 2. Availability of total primary bandwidth for an opportunistic access to cognitive radio networks.
2.4. Estimation of Interference Introduced by Primary’s Signal to CR’s Signal
In this section, we will estimate the interference produced by primary’s signal to the CR’s signal. The power density spectrum of the primary signal after N-point fast Fourier transform (FFT), can be presented by the estimated value of the periodogram as below:
where u represents the frequency normalized to the sampling frequency. denotes the power density spectrum of the primary goal. The interference generated by the mth primary sub-carrier to the ith CR sub-carrier which is allocated to the kth secondary user, represented as can be represented as below:
where, i.e., represents the distance in frequency between the ith CR subcarrier and the mth primary subcarrier. The main goal is to derive the interference introduced by the mth primary subcarrier to the ith CR subcarrier under the consideration that the spectrum sensing process is imperfect. In other words, it can be said that, the primary and the CR both can potentially broadcasts simultaneously over the same sub-carrier, which means, in case the spectrum sensing process make inaccurate decision, then there exists interference scenario where.
It is assumed that the spectrum sensing process has made its decision in favor of one of the two hypothesis (i.e., the primary is operation in ith sub-band) or (i.e., the primary operation in ith sub-band. However, based on the spectrum sensing decision, the interference level is different. The main goal of this part is to derive and differentiate these interference levels under an imperfect spectrum sensing.
If the decision of spectrum sensing block is, then the secondary network can broadcast data in the ith sub-band. Whereas, if the decision is, then the secondary network will not transmit any data in the ith sub-band. If the decision of spectrum sensing block is, then one of the following two cases occurs:
1) The primary is not present in the ith sub-band. Hence, both primary and secondary will transmit data simultaneously on this sub-band and the wrong decision of spectrum generates intense interference. Moreover, it is significant to consider the primary interference in other sub-band on the secondary in ith sub-band.
2) In second case, the primary is not present in ith sub-band. The spectrum sensing block takes the right decision and there exist only primary interference in other sub-band on the secondary in the ith sub-band.
Hence, the average total interference forced by the primary network on the kth secondary operating in ith sub-band under imperfect spectrum sensing, represented, writes:
where represents the interference caused by simultaneous transmission of the primary and kth secondary over the ith sub-carrier.
2.5. Hybrid Power and Subcarrier Allocation Technique
The main goal is to allocate power to each subcarrier of the OFDM based CR in order to enhance the possible information rate for the CR network whereas maintaining the instantaneous interference generated to the primary below a pre-defined threshold.
Consider, an ideal coding scheme which uses the Shannon Capacity formula, then the cognitive attainable data rate at the ith subcarrier which is assigned to the kth secondary, represented as for and,
where represents total transmit power in the ith subcarrier which is assigned to the kth secondary, and denotes the additive white Gaussian noise (AWGN) variance.
By considering the Equation (10), hybrid cognitive power allocation under imperfect spectrum sensing is expressed as the following optimization problem:
where V denotes the transmission capacity of the CR user, Fth represents the total tolerable interference at primary and O represents the maximum power constraint at the CR network. is basically a binary variable representing that subcarrier i is assigned to secondary user k or not, while each subcarrier can be assigned to only one secondary user. The optimization problem represented in eq. Sohail, A., et al (2013) for K = 1 is a standard convex problem that can be solved easily with the help of Lagrange multiplier method. The overall algorithm is given below:
1) //Hybrid Relaying protocol//,
2) If SU can decode the data source,
3) Then use AF relaying protocol,
4) Else, it use DF relaying protocol,
5) Use Greedy Algorithm for relay selection,
6) Compute the effect of interference caused by false alarm probability,
7) Estimate the interference introduced by primary’s signal to CR’s signal,
8) Allocate power to each sub-carrier of the OFDM.
3. Results and Discussion
The simulation results and discussion shown below gives the efficiency of our proposed work. The simulation is done using Matlab7.12 (R2011a). The parameters used for our work is shown in the Table 1 below.
Here for simulation purpose, the user specifies the allocated band for the primary user so if you see the output below we have 3 primary user (1, 2 and 5) rest are free band (3 and 4) from which the secondary users can occupy but in the spectrum sensing method of Periodogram. It has given the wrong decision. Spectrum is assigned to secondary user but the user 1 is using by the primary user by this the interference is created. Figure 3 shows the command window of the proposed system.
The primary user1, primary user2 and primary user5 are present as shown in Figure 4 and if the secondary
Table 1. Parameters used for our simulation.
Figure 3. Output window.
Figure 4. Power/frequency vs. frequency for primary user 1, primary user 2, and primary user 5.
user wants to transmit the data, then sensing of spectrum occurs in which it finds the primary user 1 is not using the band as wrong decision and that particular band is allocated to that secondary user as shown in Figure 5.
Figure 6 depicts the maximum transmitted data rate of CR user versus the average interference imposed to the primary user band in which the transmit power budget is fixed and set to 3 Watt. This figure shows that the proposed scheme leads to higher CR data rates for a given interference level imposed to the primary user band.
Figure 5. Power/frequency vs. frequency for primary user1as well as secondary user 1, primary user 2 and primary user 4.
Figure 6. Maximum achieved data rate of CR user versus the average interference imposed to the primary user band.
Figure 7 gives the power allocation by associate waterfilling approach. It is observed that power allocation by associate waterfilling approach is better than the power allocation by conventional waterfilling because the reduction of error rate is higher for associate waterfilling method.
In Figure 8 and Figure 9, we have introduced the plot for the proposed work power allocation by hybrid relay using greedy algorithm. In both the graph our proposed work outperforms well than the existing method the data rate is higher for the proposed work which gives 91.9 Mbps of data rate as well as in the error rate the reduction of error is higher for the power allocation (hybrid relay using greedy algorithm) the error rate is reduced up to 10−4.6 at 20 dB.
Figure 7. BER vs. SNR for power allocation methods by conventional and associate waterfilling.
Figure 8. Maximum achieved data rate of CR user vs. the average inference imposed to the primary user band.
Figure 9. BER Vs SNR for power allocation methods by conventional, associate and hybrid relay with greedy algorithm.
In this paper, we have proposed a Hybrid Relaying Protocol for Joint Power and Subcarrier Allocation for OFDM based Cognitive Radio Networks. In hybrid relaying protocol, a secondary user uses amplify and forward (AF) protocol and decode and amplify (DF) protocol based on the requirement. SU uses AF, only in case it is unable to reliably decode the source data and hence it does not exceed the decoding rate threshold. Hence, it uses the resource efficiently and maintains the quality of the relaying link. A greedy algorithm is proposed for the selection of relay to get the optimal solution. Moreover, an efficient hybrid power and subcarrier algorithm is used by considering interference constraint imposed by cognitive network to the primary user. Hence, we achieve to maintain the interference below the pre-defined threshold.
 Bansal, G., Hasan, Z., Hossain, M.J. and Bhargava, V.K. (2010) Subcarrier and Power Adaptation for Multiuser OFDM-Based Cognitive Radio Systems. IEEE National Conference on Communications, Chennai, 29-31 January 2010, 1-5.
 Zhang, P., Yang, L.X. and Liu, X. (2010) Subcarrier and Power Allocation in OFDM-Based Cognitive Radio Systems. International Journal of Computer Network and Information Security, 2, 24-30.
 Sohail, A., Al-Imari, M., Xiao, P. and Evans, B.G. (2013) Optimal Power Allocation for MIMO-OFDM Based Cognitive Radio Systems with Arbitrary Input Distributions. Proceedings of IEEE 24th International Symposium on Personal, Indoor and Mobile Radio Communications, London, 8-11 September 2013, 1909-1913.
 Van Vinh, N. and Shouyi, Y. (2014) Power Allocation Algorithm in OFDM-Based Cognitive Radio Systems. 2014 International Conference on Computing, Management and Telecommunications, Da Nang, 27-29 April 2014, 13-18.
 Hasan, Z., Bansal, G., Hossain, E. and Bhargava, V.K. (2009) Energy-Efficient Power Allocation in OFDM-Based Cognitive Radio Systems: A Risk-Return Model. IEEE Transactions on Wireless Communications, 8, 6078-6088.
 Kang, X., Garg, H.K., Liang, Y.C. and Zhang, R. (2010) Optimal Power Allocation for OFDM-Based Cognitive Radio with New Primary Transmission Protection Criteria. IEEE Transactions on Wireless Communications, 9, 2066-2075.
 Wang, Y., Xu, W., Yang, K. and Lin, J. (2012) Optimal Energy-Efficient Power Allocation for OFDM-Based Cognitive Radio Networks. IEEE Communications Letters, 16, 1420-1423.
 Ekin, S., Abdallah, M.M., Qaraqe, K.A. and Serpedin, E. (2012) Random Subcarrier Allocation in OFDM-Based Cognitive Radio Networks. IEEE Transactions on Signal Processing, 60, 4758-4774.
 Yu, H., Tang, W. and Li, S. (2012) Bandwidth and Power Allocation for Cooperative Relay in Cognitive Radio Networks. EURASIP Journal on Advances in Signal Processing, 1, 1-10.
 Bhuvaneswari, M. and Madane, S.S.R. (2015) Power Allocation for OFDM Based AF Cooperative Diversity Systems Using Water Filling Algorithm in CRN. International Journal of Applied Engineering Research, 10, 4627-4644.