Bandwidth Allocation of Cognitive Relay Networks with Energy Harvesting for Smart Grid

,


Introduction
Spectral efficiency has attracted much attention in wireless smart grid communications networks due to the increasing demands of wireless services [1].It has been demonstrated that cognitive radio is a promising way to improve the efficiency of the radio spectrum by allowing spectrum sharing [2][3][4].On the contrary, energy efficiency is another aspect worth considering in wireless smart grid systems [5][6][7].In order to lower carbon emissions, reducing energy consumption from wireless systems has become more and more important.As a result, combining energy harvesting technology with cognitive radio networks offers a new opportunity to improve both spectral and energy efficiency for the smart grid [8].
In smart grid, harvesting energy from nature such as solar, radio frequency, or wind provides a new free source of energy for the wireless nodes.With nature energy harvesting technique, wireless devices can utilize the free renewable energy sources to improve the energy efficiency [9].In the field of cognitive networks, the energy harvesting has been developed in [10][11][12][13][14].In [10], the authors investigated the relationship between the optimal sensing threshold and sensing duration in order to maximize the average throughput of the secondary network in a cognitive radio.Park and Hong [11] applied energy harvesting to the cognitive radio network in which the secondary transmitter harvests energy from ambient sources.e theoretical upper bound on the maximum achievable throughput of secondary transmitter was derived, which is a function of the temporal correlation of the primary traffic and the energy arrival rate.In [12], a cognitive radio system was considered.Specifically, an energy harvesting secondary user attempts to access the primary channel randomly.
e impact of the multipacket reception capability, the primary queueing delay constraints, and the energy queue arrivals on the maximum secondary throughput was investigated.Park and Hong [13] provided an optimal spectrum sensing policy for an energy harvesting cognitive radio which is in purpose of maximizing the expected total throughput.Besides, an approximate solution to the optimal detection threshold was also presented.Similar researches include two-way channel [15], two-user MIMO interference channels [16], and cognitive radio systems [17][18][19][20][21][22][23].
In this paper, considering the massive potential of harvesting energy from nature resources, we adopt this technique to cognitive radio network where we assume the primary user lacks of energy and thus harvests energy from the nature resources.Due to the fluctuation of energy harvesting from nature sources, we model and propose an energy harvesting and relaying protocol with dynamic bandwidth allocation in cognitive relay networks.e protocol enables a secondary user dynamically sharing the primary spectrum by assisting the primary transmission if the direction transmission between two primary users cannot be effectively realized.In particular, the energy harvesting primary user first scavenges energy from ambient sources and then decides to cooperate with the secondary network or transmit information directly to its destination based on the intensity of the harvesting energy.If the direct transmission data rate meets the basic threshold requirement, the direct transmission between two primary users occurs and some bandwidth is allocated to the secondary network.If the direct transmission data rate is below the threshold, the secondary user acts as the relay to assist the primary transmission and the secondary network can share some bandwidth for its own transmission in return.We first derive the analytical expressions of the data rates for the primary and secondary networks.Accordingly, the system outage probabilities for PD and SD are then derived for different transmission schemes.In order to maximize the sum data rate, the optimal bandwidth allocation strategies are analyzed and proposed.Furthermore, the correspondingly analytical policies are derived to solve the optimization problems.Finally, numerical results provide us with the valuable insights into the performance under various system parameters, i.e., the energy arrival rate and the location of the relay.
An outline of the remainder of the paper is as follows.Section 2 describes the system model for the smart grid with the cooperative of cognitive radio technology and discusses the transmission protocol.Section 3 derives the system outage probabilities for PD and SD.Section 4 formulates the optimal bandwidth allocation for maximizing the sum rate and obtains the optimal allocation policy.e numerical results are presented in Section 5, and the conclusions are drawn in Section 6.

System Model and Protocol Description
In this section, we begin by describing the smart grid system with the cognitive relay model based on energy harvesting.
2.1.System Model.We consider a cognitive network which is composed of four nodes, as shown in Figure 1.Let us denote the primary source node as "PS," the primary destination node as "PD," the secondary source node as "SS," and the secondary destination node as "SD." e PS is capable of harvesting energy from nature resources and has a rechargeable battery which is modeled as a queue.E u is the amount of Joules per energy packet.We assume that PS has an infinite length buffer to store the arrived energy packets which is a reasonable assumption if the packet length is very small compared with the buffer's size [21].
We suppose that the secondary user SS has a constant power supply, i.e., P, while there is no fixed energy provided for the primary node PS, and it thus requires harvesting energy from the nature resources.We adopt a Rayleigh flat fading channel model, and assume that the channel gains remain constant over the duration of a time slot, T. Besides, the channel state information (CSI) is perfect known by the transmitting terminals PS and SS (we can use a short CSI training phase prior to the transmission to obtain the CSI.For example, PD and SD can estimate the channel gains based on the pilot transmitted from PS and SS in a predetermined sequence and then broadcast their corresponding channel gains to PS and SS. is short CSI training phase overhead is reasonably negligible in an assumed quasi-static fading channel).Let h 1 , h 2 , h 3 , and h 4 be the channel coefficient between PS and SS, SS and PD, PS and PD, and SS and SD, respectively.We thus have h i ∼ CN(0, Ω i ) for i � 1, 2, 3, 4.
e joint instantaneous channel coefficient is denoted by h ≜ [h 1 , h 2 , h 3 , h 4 ].We also assume that σ 2 0 is the additive white Gaussian (AWGN) noise with power per unit frequency.e spectrum licensed to the primary network is denoted as W.
e time slot T is divided into small intervals, which has a length of δ.We then have n � T/δ mini slots.Besides, the probability of receiving one energy packet within a mini slot is assumed to be p.erefore, the number of harvested nature energy packets during one time slot T meets Bernoulli distribution with parameters n and p.If n is large enough and p is small enough, the number of harvested nature energy packets within one time slot T can be approximated as Poisson distribution with a parameter λ e T � np, where λ e is the energy arrival rate.e probability of harvesting i packets from nature resources within one time slot T is expressed as follows: Accordingly, the mean transmitted power can be expressed as (i) When the harvesting energy is powerful enough to support the direct transmission between two primary nodes, the primary network operates in the direct transmission mode and w 1 spectrum will be allocated to the primary network while the rest to the secondary network.erefore, the transmission consists of only one phase which lasts for one slot time T. (ii) If the data rate of the direct transmission between two primary nodes cannot meet the threshold requirement, the secondary node SS acts as the relay to assist the primary transmission.As return, the primary network allocates some bandwidth to the secondary network for its own transmission and the rest bandwidth w 1 for the primary transmission.
Here, we assume that SS always has data to transmit.In this scenario, the transmission operates in two phases.During the first phase, PS exploits all the harvested energy to transmit the information to SS.During the second phase, SS forwards the received signals along with the information intended for SD based on the AF or DF scheme.In this paper, we assume that each phase is T/2.

AF Scheme.
At the beginning of each time slot, PS ascertains the availability of direct transmission between two primary users, and the test function is given as where Wσ 2 0 follows the fact that the unit of power P S is watt, but the unit of σ 2 0 is watt per unit frequency.If R exceeds the primary data rate threshold R th , then w 1 spectrum is allocated to the primary network and PS sends its information to PD without the assistance of SS.In this scenario, the secondary network has w 2 spectrum for its transmission, where w 1 + w 2 � W. erefore, the data rate for primary and secondary network is given by If R is below R th , SS acts as the relay to assist the primary transmission.Bandwidth w 1 is allocated to the primary network, while rest bandwidth w 2 is allocated to the secondary network.During the first phase, the primary node PS sends its information to the relay SS. e received signal of SS in frequency band w 1 can thus be formulated as where x 1 is the unit-power signal intended for PD.n 1 ∼ CN(0, σ 2 1 ) denotes the narrow-band AWGN introduced by the antenna at SS [22].e coefficient 2 is due to the fact that the time duration of each phase is T/2.
During the second phase, SS uses half of its power to broadcast the received primary signals and employs the rest power to transfer signals intended for SD. e information transmitted in frequency band w 1 is given by

Journal of Computer Networks and Communications
where n b1 ∼ CN(0, σ 2 b1 ) denotes AWGN introduced by the signal conversion from passband to baseband at SS, and the coefficient 1/2 is account of the half power allocated to the primary transmission.e power normalization factor β of the relay SS is where the approximation is tight at high SNR.e corresponding received signal at primary user PD in frequency band w 1 can be expressed as where n 2 ∼ CN(0, σ 2 2 ) denotes the AWGN at PD. Accordingly, we the data rates for PD and SD, respectively, as follows: In fact, the noise introduced by the received antenna is much smaller than that of the baseband noise power.Without loss of generality, we assume the antenna noise power to be zero [23], i.e., σ 2  1 � 0. Consequently, we have σ 2  2 � σ 2 b1 � σ 2 0 .As a result, we rewrite the data rate of PD as follows:

DF Scheme.
If R meets need of the primary rate threshold R th , the data rate for the primary and secondary network are given by respectively.
If R is below the primary rate threshold, the transmission mechanism is the same with the AF scheme.e data rate achieved at PD and SD can be given by where )) denotes the rate from PS to SS in the first phase and )) denotes the rate from SS to PD in the second phase.

System Outage Probability Analysis
In this section, we investigate the system outage performance in Rayleigh fading environments.If the transmission rates of PD or SD is lower than the given target rate, the system occurs an outage event.
erefore, we have the following proposition for the primary user PD. and c 1 � 1/(2 2R th /w 1 − 1).Given a target rate R th , the system outage probability for the primary user PD with the AF scheme can be expressed as And for the DF scheme, we have Proof.Accordingly, we have the outage probability 4 Journal of Computer Networks and Communications , where the corresponding probability density function (PDF) can be presented as erefore, we have

□
Based on ( 17) and ( 20), we can easily to obtain the proposition.
Similarly, the system outage probability for the secondary user SD is given by the following proposition.Proposition 2. For both the AF and DF scheme, the system outage probability for the secondary user SD is Proof.Similar to the proof of Proposition 1, we can have this proposition.

Optimization Problem: Sum Data Rate
In this section, we attempt to maximize the sum rate of the whole system for both the AF and DF scheme.However, this depends on the value of R. If R exceeds the data threshold, then the exact value is given by ( 4) and (12).If R is below the threshold, the primary network will allocate some bandwidth to the secondary network for its own transmission.e data rate in (10), ( 11), (13), and ( 14) depends on bandwidth distribution.

AF Scheme.
e Optimization Problem 1 (OP1) for the AF scheme can be formulated as (OP1): max where we use w 1 (h, λ e ) and w 2 (h, λ e ) to replace w 1 and w 2 since w 1 and w 2 are in dynamic adjustment in correspondence with the instantaneous channel coefficients and energy arrival rate.
In order to simplify the expression of R AF PD and R AF SD , we rewrite R AF PD + R AF SD as follows: where φ 1 , φ 3 , and ] 1 are given in Table 1.
(1) R ≤ R th : first, we do not consider the restricted condition of R AF PD ≥ R th .en, we use G i (w i (h, λ e )) to represent the data rate of each network user, where is a concave and increasing function of w i (h, λ e ) and m i is a constant, i.e., m 1 � φ 1 and e first part of ( 23) resembles the classical waterfilling power distribution problem [24].As a result, we obtain the requirement for the optimal solution of the problem, denoted by w †b iAF (h, λ e ): where the function ] is monotonically increasing.From (24), we obtain that as w †b 1AF (h, λ e ) + w †b 2AF (h, λ e ) � W. Furthermore, from (26), we have the optimal solution for bandwidth allocation: where, we take the restricted condition of R AF PD ≥ R th into consideration.G 1 (w 1 (h, λ e )) must exceed the threshold R th , so we suppose that w ‡b 1AF (h, λ e ) is the solution to G 1 (w 1 (h, λ e )) � R th .Since G 1 (w 1 (h, λ e )) is increasing in w 1 (h, λ e ), the optimal w * b 1AF (h, λ e ) must exceed w ‡b 1AF (h, λ e ).As a result, we obtain the optimal bandwidth for the primary network: (2) R > R th : similar to the situation of R ≤ R th , we have the optimal bandwidth for the primary network:

DF Scheme.
e Optimization Problem 2 (OP2) for the DF scheme can be formulated as For the sake of simplicity, we rewrite where where φ 2 and ] 2 are given in Table 1.
(1) R ≤ R th : similar to the AF scheme, we obtain the optimal bandwidth allocation policy for the primary network user: where Journal of Computer Networks and Communications (2) R > R th : the optimal bandwidth allocation solution is the same as the AF scheme: where

Numerical Results
In this section, we present some numerical results to verify the effectiveness of the proposed protocol and the analytical optimization solutions.Besides, the derived analytical results are employed to provide insights into the different parameter's impact on the whole system.In the simulation, the distance between PS and PD is normalized.Let d 1 , d 2 , d 3 , and d 4 denote the distance between PS and SS, SS and PD, PS and PD, and SS and SD, respectively.Considering the largescale fluctuation, we have 3  3 , and Ω 4 � 1/d 3  4 for h 1 , h 2 , h 3 , and h 4 , respectively.e parameters used to generate the figure are T � 1 ms, E u � 0.006 J, W � 20 kHz , n � 20, and σ 2 0 � 10 −6 W/Hz.In Figure 2, the analytical results for system outage probability are evaluated.For either PD and SD, the analytical expressions are given in (15), (16), and (21).We observe that the system outage probability of PD with the AF scheme is very close to that of the DF scheme.Also, we find that SD can achieve a better outage probability than PD.
In Figure 3, the analytically results for optimized sum rates of the AF and DF scheme are examined and verified through simulation under different distance d 1 .For either AF or DF scheme, the analytical optimization solutions are given in (28), (29), (34), and (36).To test the optimized results, we present one pair of AF and DF results with fixed bandwidth allocation, i.e., w 1 /W � 1/2.We notice from Figure 3 that the optimized sum data rates achieve evident improvement compared with fixed bandwidth allocation.For the AF scheme, the sum rate first increases with increase of d 1 and then decreases with increase of d 1 , and it achieves maximum when d 1 � 0.85.While for the DF scheme, the situation is inverse.is can be explained as following: for the AF scheme, the harvested energy of PS is impotent compared with SS's transmitted power.As a result, the SS's power become dominating which generates the situation where the distance between SS and PD has a vital influence on the sum rate.When d 1 increases, the distance between SS and PD decreases, which leads to less path loss and more sum rate.When d 1 is too large, PS and SS cannot communicate effectively which leads to reduction of the sum data rate.For the DF sheme, the PS's power is dominating and the distance between PS and SS has a major influence on the sum rate.erefore, with increase of d 1 , the pass loss between PS and SS increases which results in less sum rate.Moreover, when d 1 is below approximate 0.5, DF scheme outperforms the AF scheme.e situation is opposite when d 1 exceeds 0.5.
In Figure 4, we present numerical examples of sum data rates under different energy arrival rates.Compared with fixed w 1 /W, the optimized results are extremely improved.Besides, Figure 4 shows that the sum data rates of the AF and DF scheme increase as the energy arrival rate increases.is is due to the fact that large energy arrival rate leads to more energy allocated to data transmission which increases the sum data rates.Furthermore, compared with direct transmission, we find that the proposed protocol can achieve a better transmission data rate of the primary user.Figure 5 PD with AF PD with DF SD depicts the impact of P on the performance of sum data rates.We firstly observe that the optimized results are conspicuously enhanced.Besides, Figure 5 illustrates that, with increase of P, the sum rate for either case increases, which can be interpreted by its physical meaning.Larger P means that more power is employed to assist the primary and secondary transmission which boosts the sum data rate.Moreover, the DF scheme outperforms the AF scheme which is on account of specific d 1 .
In Figure 6, we evaluate the impact of λ e on the optimal w 1 .It is interesting to note that w 1 /W decreases when λ e increases.is is because when λ e is small, more bandwidth is allocated to the primary network in order to meet the threshold requirement, thus resulting in large w 1 /W.We also note that when λ e increases, the difference of w 1 /W between AF and DF scheme shrinks. is can be explained as follows: when λ e is large, more energy is harvested to assist the primary transmission, which tends to do direct transmission.As result, the gap between AF and DF decreases.Besides, when λ e is large enough, the curve of the DF scheme changes smoothly.is is due to the fact that, for large λ e , the primary data rate is more likely determined by the rate between SS and PD, which is a constant value.erefore, w 1 /W varies slowly when λ e increases in the large range of values.Moreover, compared with the DF scheme, w 1 /W is larger under the AF scheme.
is is because for the AF scheme, the secondary signals interfere with the primary transmission which leads more bandwidth distributed to the primary network so as to meet the threshold requirement.Furthermore, for each scheme, w 1 /W under R th /W � 1 bps/Hz is larger than the situation under R th /W � 1/2 bps/Hz.is is on account of the reason that larger R th means more threshold requirement for the primary transmission which leads to more bandwidth allocated to the primary network.

Conclusion
In this paper, we have investigated an energy harvesting and relaying protocol in the smart grid with cognitive relay networks.
e proposed protocol enables the secondary network opportunistically share the spectrum licensed to the primary network by assisting the primary transmission if the direct transmission between two primary users cannot meet the threshold requirement.e exact expressions of data rate for both primary and secondary networks are derived under different relaying schemes, namely, AF and DF schemes.We then derive the system outage probability of PD and SD for both two transmission schemes.Furthermore, in order to improve the performance of whole system, we formulate optimization problems which are in purpose of achieving the maximum sum data rates.For each scheme, we derive the

8
Journal of Computer Networks and Communications correspondingly analytical solution.Subsequently, the numerical results verify the accuracy of theoretical derivations.Besides, simulation results demonstrate that the proposed spectrum sharing with energy harvesting in this protocol can achieve better transmission rate compared with the direct transmission.Finally, the numerical results provide us with valuable insights into the influence of various system parameters on the system performance.

Figure 1 :
Figure 1: System model of the energy harvesting and relaying protocol for the cognitive relay networks.