Energy-efficient resource allocation for OFDMA-based two-way relay channel with physical-layer network coding

Physical-layer network coding (PNC) is a novel cooperative technique for two-way relay channel (TRC), where two users exchange information via intermediate relay node(s). On the other hand, the issue of green communications to reduce energy consumption has recently started to arouse much attention. This article studies the energy-efficient resource allocation problem for orthogonal frequency division multiple access (OFDMA)-based TRC with PNC. In particular, resource allocation for multi-user, multi-relay OFDMA systems is vital for the optimization of power allocation, relay selection and subcarrier assignment. By applying convex optimization techniques, an optimal resource allocation scheme is proposed to minimize total transmit power with required rates. Numerical simulations show that the proposed scheme provides diversity gain compared to the single relay network, and PNC gain relative to the TRC without PNC.


Introduction
Wireless relay was introduced in 3GPP-LTE-Advanced [1] for throughput enhancement and coverage extension without requiring large transmit powers. However, practical relay systems typically consider half-duplex mode [2], where relay nodes cannot transmit and receive simultaneously. For the purpose of overcoming the spectral loss of half-duplex relay, physical-layer network coding (PNC) [3][4][5][6][7] was proposed in two-way relay channel (TRC), where two users wanted to exchange information with each other via relay node(s).
Compared with the traditional one-way relay schemes that need four time slots to finish information exchange in TRC, network coding (NC) scheme [8] needs three time slots. PNC makes use of the additive nature of simultaneously arriving electromagnetic waves for equivalent network coding operation at physical layer. The number of required time slots of PNC is reduced to two: in the first time slot, two users transmit their signals simultaneously to relay node(s); then in the second time slot, relay node(s) broadcast the processed version of the received superimposed signal to the two users. Distinguished by the process function of relay node(s), PNC has several sub-protocols, such as denoise-and-forward (PNC-DNF) [3,4], decode-and-forward (PNC-DF) [5] and amplify-and-forward (PNC-AF) [5][6][7]. To the best of authors' knowledge, PNC-AF is the only protocol of PNC that has been demonstrated in a practical system with a bit rate of 500 kbps [6]. Since PNC-AF is most likely to be realized in practical systems also more widely, this article will focus on PNC-AF.
OFDM/OFDMA is one of the most important transmission techniques for future wireless communication systems. In addition, TRC with PNC that employs OFDM/OFDMA has recently attracted considerable attention. Maximizing the system rate by varying the power allocation and tone permutation in TRC with single relay over OFDM was considered in [9]. Power allocation to maximize the sum-rate under the total power constraint was developed for a TRC exchanging OFDM signals via a single relay in [10,11]. The resource allocation problem for the OFDMA-based multiuser TRC system was investigated by [12], where an iterative algorithm was proposed to maximize the sum-rate. In [13], adaptive subcarrier allocation was proposed to maximize the achievable sum-rate for a multi-user multi-relay OFDMA-based TRC. In summary, the past literatures mainly focus on maximizing sum-rate to achieve full system load, which rarely happens in practical systems, even at peak traffic hours [14]. Hence, the systems optimized for full system load should be redesigned for arbitrary system load to achieve better energy efficiency.
In this article, an energy-efficient resource allocation to minimize transmit power consumption with required link rates is considered for OFDMA-based TRC with PNC. Additionally, OFDMA-based TRC indicates that the subcarriers of an OFDM symbol can be shared by multiple relay nodes. The main contributions of our study are: • An optimal energy-efficient resource allocation is proposed with joint power allocation, relay selection and subcarrier assignment. To the best of authors' knowledge, this problem is considered for the first time in OFDMA-based TRC with PNC and multiple relay nodes.
• The best energy-efficient subcarrier assignment for OFDMA-based TRC with PNC is proved to be an opportunistic subcarrier assignment, where each subcarrier is assigned to a unique relay node.
• The closed-form expressions of optimal power allocation, relay selection, subcarrier assignment and minimum transmit power consumption are derived through convex optimization techniques.
This article is organized as follows. In Section 2, the system model is given. In Section 3, energy-efficient resource allocation problem is formulated as an optimization problem, which has been decomposed to N persubcarrier problems. In Section 4, the per-subcarrier problem is solved and the joint power allocation, relay selection and subcarrier assignment scheme is proposed to achieve the minimum transmit power consumption. Section 5 gives numerical simulations and performance analysis under the energy efficiency evaluation framework (E 3 F) provided in EARTH project [15]. Conclusions are given in the last section.
Notation: [•] T denotes the transpose of vector. |•| denotes the scalar norm. For vectors, ≽ and = are used to indicate the componentwise inequality and equality, respectively.

System model
This article considers a TRC with multiple relay nodes as shown in Figure 1, which has two users, K halfduplex relay nodes and N subcarriers. Suppose that users S 1 and S 2 intend to exchange information with each other and there is no direct path between the two users. Hence, the exchange will be finished with the assistance of the relay nodes. It is assumed that all the nodes are equipped with a single antenna and operated in a time division duplexing (TDD) mode. Assuming channel reciprocity, which is justified by the TDD mode, given that the duplexing period is small compared to channel coherence time, the complex channel coefficient from S i to R i is same as channel from R i to S i . Since OFDM divides the wideband signal into many narrowband subcarriers, with proper cyclic prefixing, the individual subcarriers in an OFDM signal experience frequency-flat fading. For generality, we also assume that the subcarrier responses depend in the general case on subcarrier index which is denoted here by n. The amount of correlation between different subcarriers depends on the relation of channel coherence bandwidth and subcarrier spacing. In terms of mobility and Doppler spread, we assume that the channel coherence time is long compared to OFDM symbol duration. Accordingly, this article considers a quasi-static fading channel for which the channels are constant within one frame but change independently from one frame to another. Furthermore, we also assume that the radio channels corresponding to different relay nodes are ...      s,2 . Assuming perfect synchronization, the received signal at relay node R i on nth subcarrier is expressed as: Then, if the relay node R i is selected to participate in transmission and assigned with the nth subcarrier, R i will amplify the received signal on the nth subcarrier by multiplying y where N 0 is power spectral density of AWGN and W denotes the subcarrier bandwidth.
Let τ i and r i (n) be the relay selection indicator variable and subcarrier assignment indicator variable on nth subcarrier, respectively, where and ρ (n) i = 1, when the nth subcarrier is assigned to R i 0, otherwise By taking ρ (n) i and τ i into account, we use as a general scale factor for R i on nth subcarrier. It is noted that the nth subcarrier of relay node R i is marked as free subcarrier (as shown in Figure 1), while ρ (n) i is equal to zero. In the second time slot for broadcast phase, all the relay nodes broadcast the scaled signals to the two users. The received signals at S 1 and S 2 on the nth subcarrier are given, respectively, byz Assuming that channel state information (CSI) is available, each user can cancel its own transmit signal component from the received signal. Therefore, the resulting signals at S 1 and S 2 on the nth subcarrier can be written as

Problem formulation and simplification
In this section, the optimal energy-efficient resource allocation is formulated as a joint optimization of power allocation, relay selection and subcarrier assignment to achieve the minimum transmit power consumption with required link rates. With the mathematical analysis, the optimization problem has been decomposed into N subproblems. Then, the subproblems are simplified by using the Karush-Kuhn-Tucker (KKT) condition.

Problem formulation
The objective is to find the optimal subcarrier assignment {ρ (n) i } , relay selection {τ i } and power allocation {P r,i } that minimize the overall transmit power subject to satisfying each link's rate requirementr 1 and r 2 in bit/s for links S 1 relay(s) S 2 and S 2 relay (s) S 1 , respectively. The optimization is formulated as (Problem 3.1): where r (n) 1 and r (n) 2 are the achievable rates on the nth subcarrier for links S 1 relay(s) S 2 and S 2 relay (s) S 1 , respectively. From (7) and (8), the expressions of r (n) 1 and r (n) 2 are given by and The factor 1/2 comes from the two time slots required by messages exchange. However, Problem 3.1 has high computational complexity, while optimum values of K (2N+1)+2N variables need to be found. Some simplifications will be implemented in the following section.

Problem simplification
Equal rate allocation is considered in this article to simplify the complexity of problem. On average, the rate of each subcarrier is¯r 1 N bps for link S 1 relay(s) S 2 and r 2 N bps in the reverse direction. Since the separate rate requirement on each subcarrier is known, Problem 3.1 is decomposed to N independent subproblems to find the minimum transmit power consumption on per-subcarrier basis. The optimization problem on the nth subcarrier can be expressed now as (Problem 3.2): subject to r The overall transmit power consumption will be the sum of individual transmit power consumptions on each subcarrier.
In mathematics, Problem 3.2 is a nonlinear programming, where some of the constraints or the objective function are nonlinear. Karush-Kuhn-Tucker (KKT) conditions are necessary and sufficient for a solution in nonlinear programming to be optimal [16]. By substituting (2), (13), and (14) into Problem 3.2 and applying the KKT optimality conditions, the transmit power of S 1 and S 2 on the nth subcarrier can be expressed as: and P (n) Observation 1: It is observed that at least one subcarrier should be assigned to relay node R i , if R i is selected. Hence the relay selection indicator variable can be expressed as Hence, it is shown that ρ i for the per-subcarrier optimization on the nth subcarrier.
By substituting (2), (19), and (20) into Problem 3.2 and using Observation 1, the optimization Problem 3.2 is reduced to the following problem formulated as (Problem 3.3): where The expression ofP (n) α (n) , ρ (n) is given bȳ where m = ⎛ ⎝ 2 should be nonnegative and ρ (n) i ∈ {0, 1}. Remark 1: Problem 3.3 is to find the minimum power consumption on the nth subcarrier. If Problem 3.3 is solved, the minimum power consumption on the other subcarriers can also be obtained with the similar steps. Accordingly, the overall minimum power consumption will be the sum of transmit power consumptions on each subcarrier. In the following section, more detailed mathematical analysis will be carried out around the per-subcarrier optimization Problem 3.3.

Per-subcarrier optimization
Problem 3.3 is a mixed binary integer programming problem, which considers the minimum power consumption on the nth subcarrier. However, it is prohibitive to find the global optimum in terms of computational complexity. To obtain the global optimum, an exhaustive search is needed throughout the subcarrier assignment vectors r (n) and amplification factor vectors a (n) to find the overall minimum transmit power. Before solving the Problem 3.3 with optimal subcarrier assignment vector r (n) , we first propose an energy-efficient resource allocation scheme with opportunistic subcarrier assignment in 4.1. Then, the proposed heuristic scheme is proved to be the optimal solution of Problem 3.3 in Section 4.2.

Energy-efficient resource allocation with opportunistic subcarrier assignment
This section considers the Problem 3.3 with an opportunistic subcarrier assignment, where each subcarrier is assigned to an unique relay node. Hence, Problem 3.3 is divided into a power allocation and a opportunistic subcarrier assignment problem.
Power allocation criterion: It is assumed that the nth subcarrier is only assigned to relay node R d . Under this assumption, we can determine the subcarrier assignments r (n) , which are directly given by By substituting (25) into Problem 3.3, the problem becomes easy to solve. Hence, the solution is given directly as: is the optimum point to achieve the minimum transmit power consumptionP (n) (d) on nth subcarrier, while it is only assigned to relay node R d . By substitutingᾱ (n) d and (25) into (9), (19), and (20), the closed-form expression of power allocated to two users and relay node R d on nth subcarrier can be expressed as:P Opportunistic subcarrier assignment criterion: The indexd of the relay node assigned with the nth subcarrier is determined as Remark 2: To summarize shortly, the energy-efficient resource allocation algorithm on the nth subcarrier with opportunistic subcarrier assignment approach proposed above has two steps: First, the nth subcarrier is assigned to the best relay Rd by opportunistic subcarrier assignment criterion. Then, optimal transmit power determined by power allocation criterion will be allocated to S 1 , S 2 , and Rd on the nth subcarrier. The minimum transmit power consumption P

Energy-efficient resource allocation with optimal subcarrier assignment
In this section, it is proved that the above opportunistic two-step resource allocation algorithm is also the optimum method in terms of energy-efficiency. This is formulated with the following Theorem: Theorem 1 In multi-relay OFDMA-based TRC with PNC, the opportunistic subcarrier assignment is the optimal energy-efficient subcarrier assignment scheme, in which the nth subcarrier is assigned to the best relay node from the K candidate relay nodes.
Proof: Two steps are needed to complete the proof. We first consider the necessary and sufficient conditions of Theorem 1, and then solve its corresponding mathematical problem.
Step 1: Necessary and sufficient conditions of Theorem 1: If opportunistic subcarrier assignment is the optimal scheme, the minimum transmit power consumption on the nth subcarrier is P (n) o , which is given in Section 4.1. SinceP (n) α (n) , ρ (n) is the transmit power consumption on the nth subcarrier, Theorem 1 will be proved if we can prove thatP (n) α (n) , ρ (n) cannot have a value less than P Thus to prove Theorem 1, we start by showing that the left-hand side of (32) is positive. Let i . Sincē P (n) α (n) , ρ (n) has positive denominator, proof of (32) transforms to solving the following optimization problem where f(Ξ 1 × K ) is the left-hand side of (32) multiplied by its denominator and is expressed in more details by (35).
Hence, the necessary and sufficient condition of Theorem 1 is that the minimum value of f(Ξ 1 × K ) is nonnegative in the feasible region.
Step 2: Solution of the corresponding optimization problem of necessary and sufficient conditions: Let It is obvious that f(Ξ 1 × K ) is strictly increasing with ζ i , when ζ i >g. So the minimum value of f (Ξ 1 × K ) is not changed while we change the constrained condition Ξ 1 × K ≽ 0 to g ≽ Ξ 1 × K ≽ 0. So the corresponding mathematical problem can be rewritten as: The first-order leading principal minors of f(Ξ 1 × K ) is ψ(1), which is positive. The second-order leading principal minors of f(Ξ 1 × K ) is that: According to the Sylvester's criterion [ [18], Theorem 7.2.5], ∇ 2 f(Ξ 1 × K )must be positive semi-definite matrix (PSM) or indefinite matrix (IM). Next, we will prove that minimum value of f( (1) ∇ 2 f(Ξ 1 × K ) is PSM: It means all the second-order principal minors of ∇ 2 f(Ξ 1 × K ) must be zero. So, it is derived that k . In this condition, it is obvious that where f min (Ξ 1 × K ) is the minimum value of function f (Ξ 1 × K ) in the feasible region.
With the similar discussion repeated from step 2 and K-2 times iteration, the problem will degenerate to prove f(Ξ 1 × 1 ) = f(ζ i ) ≥ 0. We know that The minimum value of f (ζ i ) is denoted by f min (ζ i ), which is given by (43).
Since b g (w) ≥ 0 and b 0 (w) ≥ 0, ∀w = {1, 2, . . . , K} are proved, the following result has been achieved From (40) and (46), it is then clear that the minimum value of f(Ξ 1 × K ) is nonnegative. The necessary and sufficient conditions of Theorem 1 discussed in step 1 are thus satisfied. Theorem 1 is proved. ■ From Theorem 1, it is known that the proposed opportunistic subcarrier assignment criterion is the optimal energy-efficient criterion in multi-user multi-relay OFDMA-based TRC with PNC-AF.
Remark 3: The overall optimal energy-efficient resource allocation algorithm is described in the Figure   2. As discussed in Section 3.2, resource allocation has been decomposed into N independent subproblems on the subcarriers. Then, the per-subcarrier resource allocation is implemented from the subcarrier 1 to N. Finally, the subcarrier assignment, relay selection indicator variables are calculated and the minimum power consumption is achieved.

Performance analysis
To capture the energy efficiency perspective in the analysis, we employ the energy consumption index (ECI) from EARTH project [15]. ECI provides the energy per bit, which is defined as the energy consumption (E) during the observation period (T) divided by the total  number of bits (B) that were correctly delivered in the network during the same time period. For the two-way relay networks, ECI can be expressed as: where P total is the overall transmit power required to deliver required ratesr 1 andr 2 , and the factor 1/2 comes from the two time slots required by messages exchange. We assume that the spectral density of noise, denoted by N 0 , is equal to -174 dBm/Hz and all the subcarrier complex gains are realized independently through complex normal distribution of the form CN 0, 1 (1+d i,j ) /2 , where d i,j is the distance between node i and node j, and the path loss exponent Δ is 3. We assume that L is the distance between two users and all the relay nodes are randomly distributed between them.  The ECI of each scheme is averaged over 1 × 10 8 independent realizations of relay' location by Monte-Carlo simulation.
PNC gain is depicted in Figures 3 and 4, in which ECI of PNC-AF, NC, one-way relay AF and one-way relay DF with Optimal Energy-efficient Resource Allocation (OERA) are compared for TRC with single relay (SR-TRC). ECI with symmetric rates denoted byr 1 =r 2 is shown in Figure 3, which depicts that ECI increases with the sum-rate and that PNC-AF achieves PNC gain to greatly reduce the ECI compared with the other schemes. ECI with asymmetric rates is shown in Figure  4, where the X-coordinate is the ratio ofr 1 to the fixed sum-rate withr 1 +r 2 = 3.84 Mbit/s. Compared with other schemes, Figure 4 depicts PNC gain increases with the gap betweenr 1 andr 2 and minimum ECI is achieved whiler 1 =r 2 .
Diversity gain is demonstrated in Figure 5, in which PNC-AF with OERA in SR-TRC and TRC with K = [2,5,20] relay nodes (KR-TRC) are compared. The simulation depicts that PNC-AF with multiple relay nodes achieves great diversity gain which is directly proportional to the number of relay nodes, and the minimum ECI is achieved whiler 1 =r 2 . Figure 6 depicts the power allocation between S 1 , S 2 and relay node(s). The X-coordinate is the ratio of 1000 to fixed sum-rate. Simulation shows that the average transmit power allocated to S 1 is directly proportional to the ratio ofr 1 to fixed sum-rate, while average transmit power allocated to S 2 is inversely proportional to the ratio. The transmit power of relay node(s) is minimum in symmetric rate pair condition, in whichr 1 =r 2 .

Conclusion and discussion
In this article, we studied multi-user, multi-relay OFDMA-based two-way relay network with PNC-AF protocol. An optimal energy-efficient resource allocation with joint power allocation, relay selection and subcarrier assignment to achieve the minimum transmit power consumption with required link rate pair were derived. From the analysis, we proved that the optimal subcarrier assignment criterion in energy efficiency sense is an opportunistic subcarrier assignment, in which a subcarrier is assigned to a unique relay node. Based on the proof, the closed-form expressions of power allocation, relay selection, subcarrier assignment and minimum transmit power consumption were derived. The simulations confirmed the proposed scheme is far superior to the other existing schemes in terms of energy efficiency. It was also observed that energy efficiency of TRC is generally better with symmetric symmetric rate pair than asymmetric rate pair.
Beside the scenario considered in this article, energy efficiency can be further improved with more complex schemes, e.g., adaptive bit allocation on subcarriers and phase alignment operation at relay nodes. Furthermore, the analysis of energy efficiency is based on Shannon capacity expressions in this article, which do not take into account the impact of practical channel coding, modulation and retransmission methods. Hence, the