- Research
- Open Access
- Published:

# Successful transmission probability of cognitive device-to-device communications underlaying cellular networks in the presence of hardware impairments

*EURASIP Journal on Wireless Communications and Networking*
**volume 2017**, Article number: 208 (2017)

## Abstract

This paper studies the cognitive wireless powered device-to-device (D2D) communication underlaying a cellular network, where there are two types of communications, including peer-to-peer (P2P) communication and a multi-hop D2D communication, which are assumed to be affected by hardware impairments (HWIs). We investigate the one-hop P2P communication and the multi-hop D2D communication, where the relay node helps other two user equipments (UEs) exchange information with a two-time-slot physical-layer network coding scheme. To examine the system performance, we derive closed-form expressions for the average energy efficiency (EE) and spectral efficiency (SE). Besides that, we also obtain the successful transmission probability (STP) for the two considered communications, and the optimal values of time switching (TS) and power splitting (PS) ratios are achieved with the help of a genetic algorithm (GA)-based optimization algorithm in our proposed energy harvesting (EH) protocol so-called Hybrid TS-PS (HTPS) relaying protocol. Comparisons between amplify-and-forward (AF) and decode-and-forward (DF) transmission schemes are provided. The simulation results give evidence that the STP is significantly improved regardless of the presence of HWIs thanks to the derived parameters, i.e., average EE, SE, and the optimal TS and PS ratios.

## Introduction

It is clear that in wireless communications, energy efficiency (EE) and spectral efficiency (SE) are among the two most important design metrics to cope with environmental problems and the requirements for better wireless communication service. In recent years, simultaneous information and power transfer (SWIPT) has become a promising technology, which allows a wireless equipment to perform energy harvesting (EH) and information processing at the same time by using the ambient radio frequency signals [1–6]. In particular, the work in [7] focused on the analysis of EE in multiple relay orthogonal frequency-division multiplexing (OFDM) systems, in which the information transmission (IT) is assisted by the deployment of a decode-and-forward (DF) relay. In [8], the authors evaluated the successful transmission probability (STP) of cognitive relaying ad hoc networks, where primary users are supported by secondary users in transmitting data packets. Physical-layer network coding (PNC) schemes for two-way relay channels were studied comprehensively, where the transmission mode was studied over two, three, or four time slots [9]. In [10], the SWIPT for the non-regenerative multiple-input multiple-output OFDM relaying system was studied, where two protocols, including time switching-based relaying (TSR) and power splitting-based relaying (PSR) were deployed at relay nodes. Besides that, the work in [10] solved two optimization problems to optimize the information rate. In [11], a point-to-point wireless link over the flat-fading channel was investigated, in which the receiver is equipped with power supplies, so it needs energy harvested from signals transferred by transmitter. In [12], the group cooperation was investigated in a wireless EH network, in which it witnessed the communication of two groups with the help of wireless power transfer and time sharing to satisfy IT. However, in order to significantly enhance the use of spectrum, cognitive radio (CR) is considered as a prime candidate by enabling spectrum sharing [13]. Hence, the combination of cognitive radio networks (CRNs) and EH brings better energy and spectrum.

There have been a number of works on regarding CRNs, where EH were mentioned in [14–17]. In [14], a dual-hop multi-user underlay CRN was examined by using DF scheme and opportunistic scheduling at the destination nodes, where co-channel interference signals were carefully considered for the system design. A multi-antenna cognitive DF was investigated in terms of outage probability, in which the co-existence of secondary source and relay with the primary user (PU) can be maintained in case interference signals affecting PU are below a certain threshold [15]. Besides that, [16] focused on optimal resource allocation policies for CRNs under the spectrum leasing model and putting forward cooperative schemes, in which the time-slot is shared between primary users and secondary users for cooperation. In [17], a hybrid CRN with overlay and underlay models was considered, where a primary link gives the secondary users fractions of its transmission time for cooperation under outage constraints of both primary and secondary networks.

These days, due to the growing demand for better SE and data rates, standards like the 3rd Generation Partnership Project (3GPP) and Long-Term Evolution (LTE) were adopted. Thanks to the further development of LTE-Advanced, promising technologies have been comprehensively investigated, i.e., local area optimization [18]. Furthermore, device-to-device (D2D) communication was proposed as a potential technology in 3GPP Release 12 [19]. In [20], two resource allocating protocols were proposed, and to prove the performance degradation, the system efficiencies were examined in case the unknown channel quality problem was not taken into consideration. In [20, 21], the authors drastically reduced the total amount of power consumed by putting mobile devices (MDs) together in multi-hop D2D networks, while the minimum rate is satisfied to supply each MD. Besides that, the work in [22] tried to enhance throughput in D2D-aided underlaying cellular networks, where D2D devices can operate in FD mode to transmit and receive information concurrently with a single-frequency band.

In addition, the distortions stemming from both transmitters and receivers cause hardware impairments (HWIs). In [23], a model under the impact of HWIs at base stations equipped with arrays of large antennas (BSs) and MDs. Unlike ideal hardware conditions, the authors proved that finite ceilings on the channel estimation accuracy and on the downlink/uplink capacity at each UE are caused by HWIs. Similar to [21], the work in [24] examined the massive MIMO FD relaying network, in which the direct communication of D2D pairs is assisted by a FD relay with enormous arrays of antennas, a low complexity hardware impairments aware (HIA) transceiver scheme was proposed to cope with the distortion noises. In [25], the outage performance of multi-relay decode-and-forward (DF) cooperative networks was considered under the impact of energy constraints and HWIs, in which to address energy constraints at relay nodes, radio-frequency (RF) EH technique was used.

Motivated from our previous works [26–28], where we mainly focused on the impact of HWIs on particular nodes, i.e., relays. In particular, in [26] and [27], the impact of HWIs was considered in AF using TSR protocol and PSR protocol in EH relaying networks, while DF transmission scheme was investigated in [28] using TSR protocol. Regarding multi-hop D2D communication and P2P communication, there have been only a few investigations carried out on the impact of HWIs. Therefore, in order to expand our works on HWIs, we are going to quantify the energy consumption by giving closed-form expressions for the average EE and average SE in case all nodes in the network suffer from HWIs. In addition, we also provide comparisons between AF and DF transmission schemes in the multi-hop D2D communication and the direct P2P communication, and the optimization problem related to TS and PS ratios are also solved in our proposed protocol Hybrid TS-PS (HTPS) relaying protocol. Most importantly, our main goal is to optimize the STP.

The rest of the paper is organized as follows: The system model is discussed in Section 2. Meanwhile, in Section 3, we analyze the system performance in details by examining the impact of HWIs in both communication types and derive closed-form expressions for the STP, average EE, average SE in AF and DF schemes for two communication types, and the achievement of optimal TS and PS ratios is also presented. Section 4 provides numerical and simulation results with detailed analysis and comparisons. Finally, we draw a conclusion for the paper in Section 5.

## System model

As illustrated in Fig. 1, the cognitive device-to-device (D2D) communication underlaying a cellular network is presented, in which we consider in two different modes, including mode A and mode B for simplicity. In particular, in mode A, a multi-hop D2D communication is examined utilizing the two-time-slot physical-layer network coding scheme [9], where two primary user equipments (i.e., UE1 and UE2) establish communication with the help of a secondary EH relay (R) due to the far distance between UE1 and UE2, while mode B describes the one-hop peer-to-peer (P2P) wireless communication between UE2 and UE3, where UE2 and UE3 exchange information directly with each other. It is noted that R has ability to transfer information intended to UE3, so both primary and secondary information can be carried by R at the same time. All UEs operate in half-duplex (HD) mode and are equipped with a single antenna.

Let us start with mode A, the whole operation includes two phases. In particular, in phase 1, UE1 transmits the information to R. After harvesting energy from part of the received signal transmitted from UE1, R exploits the harvested energy to broadcast resulting signals as well as the information intended to UE2 and UE3 in phase 2. It is worth noting that UE3 can receive signals to conduct interference cancelation in phase 2. Meanwhile, in case of mode B, UE2 and UE3 will exchange information with each other via the P2P link within two time slots.

We assume that both the maximum threshold of the transmission power and the circuit power for UEs are the same, which are denoted as *E*
_{
Di
} and *E*
_{
Ci
}, respectively, with *i*=1,2,3, we denote *E*
_{
Di
}=*E*
_{
D
} and *E*
_{
Ci
}=*E*
_{
C
} for simplicity. In case R suffers from a lack of energy due to limited battery life, it needs to depend on external energy charging to keep the network active. Note that the transmit power of R is denoted as *E*
_{
R
}. Besides that, *n*
_{0} is the additive white Gaussian noise (AWGN) with mean power, *Ω*
_{0}.

In terms of system channels, the channel gains are denoted as *h*
_{
X
},*h*
_{
Y
}, and *h*
_{
Z
} for the link from UE1 to R, and R to UE2, UE3, respectively, while the corresponding channel gain for the P2P communication between UE2 and UE3 is *h*
_{
W
}. Furthermore, *r*
_{
k
} is the distances for the aforementioned links, where *k*∈{*X*,*Y*,*Z*,*W*}.

In addition, we denote *P*
*L*
_{
k
} as the path loss model which is defined as \(PL_{k} = {1}/{\phi r_{k}^{m}}\) with *m* being the path-loss exponent, and *ϕ* is the path-loss constant [29]. We model all channel gains between two nodes as Rayleigh fading channels with free space propagation path loss. Specifically, for the channel gain coefficient, we have |*h*
_{
k
}|^{2}=|*k*|^{2}
*P*
*L*
_{
k
}, in which *k* is the complex Gaussian distributed random variable (RV) to model fading phenomena with zero mean and variances, *Ω*
_{
k
}∼*C*
*N*(0,1).

Regarding the protocol deployed in the paper, a hybrid TS and PS receiver architecture is proposed so-called Hybrid TS-PS (HTPS) relaying protocol which results in a generalized version of PSR protocol and TSR protocol [4], in which *α* and *β* are denoted as TS and PS fraction, respectively. In the block time *T*, the portion, *α*
_{1}
*T* is used for EH at R with *E*
_{
D
}. Source signals transmitted from UE1 to R are split into two parts. In particular, during the portion, *α*
_{2}
*T*, *β*
*E*
_{
D
} is used for EH at R while a fraction, (1−*β*)*E*
_{
D
} belongs to IT between UE1 and R. Eventually, the remaining fraction, (*T*−*α*
_{1}
*T*−*α*
_{2}
*T*) is used for broadcasting signals from R to UE2, UE3 with power allocation, *λ* and (1−*λ*), respectively. Note that PSR protocol is a special case of this hybrid TS-PS relaying protocol when *α*
_{1}=0 and *α*
_{2}=0.5, while TSR protocol is a special case when *β*=0 and *α*
_{2}=0.5×(1−*α*
_{1}).

It is worth noting that all nodes suffer from HWIs caused by UEs [30]. The practical transceiver impairments at UEs denoting as *x* within the *a*→*b* link, while the HWIs of the receivers compromise the received signal during the reception phase. Each distortion of UE1 can be represented by a different model. We denote *H*
*I*
_{
a
} and *H*
*I*
_{
b
} as the aggregate distortions affecting the *a*→*b* link with zero mean variance *H*
*I*
_{
a
}∼*C*
*N*(0,*κ*
_{
a
}|*h*|^{2}
*E*
_{
D
}), *H*
*I*
_{
b
}∼*C*
*N*(0,*κ*
_{
b
}|*h*|^{2}
*E*
_{
D
}), respectively, and *κ*
_{
a
} and *κ*
_{
b
} are the levels of HWIs at *H*
*I*
_{
a
} and *H*
*I*
_{
b
}. Therefore, the received signal can be expressed as

where *h* is the channel gain for the *a*→*b* link, and an aggregate distortion at the receiver *b* is denoted as *H*
*I*
_{
ab
} with aggregate distortion power *H*
*I*
_{
a
b
}∼*C*
*N*(0,*κ*|*h*|^{2}
*E*
_{
D
}), such that \(\kappa \buildrel \Delta \over = {{\kappa _{a}} + {\kappa _{b}}}\) is the aggregate impairment level during the information processing phase [31].

Hence, the distortion noise stemming from HWIs at R is represented by *H*
*I*
_{1} with variance *H*
*I*
_{1}∼*C*
*N*(0,*κ*
*E*
_{
D
}
*P*
*L*
_{
X
}|*X*|^{2}), while the corresponding distortion noise caused by HWIs at UE2 and UE3 are denoted by *H*
*I*
_{2} and *H*
*I*
_{3} with variance *H*
*I*
_{2}∼*C*
*N*(0,*κ*
*λ*
*E*
_{
R
}|*Y*|^{2}
*P*
*L*
_{
Y
}), *H*
*I*
_{3}∼*C*
*N*(0,*κ*(1−*λ*)*E*
_{
R
}|*Z*|^{2}
*P*
*L*
_{
Z
}), respectively.

For simplicity, we list important notations used in this paper in Table 1.

## Performance analysis under the impact of HWIs

In this section, in terms of analyzing the system performance, we are going to examine the proposed HTPS relaying protocol in mode A, and closed-form expressions for the successful transmission probability (STP), average energy efficiency (EE), and average spectral efficiency (SE) are derived. More importantly, we achieve the optimal values of TS and PS ratios.

### Energy harvesting and information transmission under the impact of HWIs

#### Mode A: multi-hop cognitive D2D wireless communication

In this section, we investigate the impact of HWIs based on the architecture of HTPS relaying protocol.

##### Phase 1

At first, the amount of energy harvested at R can be expressed as

where *η* is the energy conversion efficiency and *η*∈(0,1].

Hence, the transmit power of R can be computed by

The received information at R can be depicted as

where the normalized data signal from UE1 is *x*
_{1}, which satisfies \(\mathbb {E}\left \{ {{{\left | {{x_1}} \right |}^{2}}} \right \} = 1\).

Due to the wireless broadcast nature, the harvested power at R is split into two streams, *λ*
*E*
_{
R
} is utilized for forwarding signals to the primary node, UE2 while (1−*λ*)*E*
_{
R
} is for transferring signals to the secondary node, UE3. It is worth noting that we are going to consider both AF and DF transmission scheme.

Therefore, let us start with DF scheme, where the the transmitted signal at R, *x*
_{
R
} can be expressed by

where *x*
_{2} and *x*
_{3} are the unit power of the transmitted information intended for UE2 and UE3, respectively, which satisfies \(\mathbb {E}\left \{ {{{\left | {{x_2}} \right |}^{2}}} \right \} = 1\), and \(\mathbb {E}\left \{ {{{\left | {{x_3}} \right |}^{2}}} \right \} = 1\).

Regarding the transmitted signal at R in AF scheme, *x*
_{
R
} can be expressed as

where the amplification factor at R [26] is calculated as

\(G = \sqrt {{{\left ({\left ({1 - \beta } \right){E_D}{{\left | {X} \right |}^{2}}P{L_X} + {\Omega _0} + {\kappa E_D {{\left | {X} \right |}^{2}}P{L_X}}} \right)}^{- 1}}} \approx \sqrt {{{\left ({\left ({1 - \beta + \kappa } \right){E_D}{{\left | {X} \right |}^{2}}P{L_X}} \right)}^{- 1}}}\).

###
**Remark 1**

It is worth noting that choosing the power allocation, *λ* is the main point because it is essential to balance the received information at UE2 and UE3. Hence, in order to maintain the quality of UE2 at an acceptable condition, as *λ* increases, the amount of signal received at UE3 falls. Later on in this paper, we are going to explain this scenario in details in Remark 2.

##### Phase 2

In terms of the IT process between R and UE2, the corresponding received signal at UE2 can be shown by

and the received signal at UE3 can be written as

#### Mode B: P2P wireless communication

In this mode, the P2P communication between UE2 and UE3 is carried out in two time slots. We assume the same signal is received at UE2 and UE3, which can be expressed by

where *x*
_{4} is the transmitted data from UE2 to UE3 and vice versa, which satisfies \(\mathbb {E}\left \{ {{{\left | {{x_4}} \right |}^{2}}} \right \} = 1\), and the distortion noise caused by HWIs at UE2 and UE3 are denoted as *H*
*I*
_{4}, where *Ω*
_{4}∼*C*
*N*(0,*κ*
*E*
_{
D
}|*W*|^{2}
*P*
*L*
_{
W
}). Note that \(P{L_W} = {\left ({\phi r_{W}^{m}} \right)^{- 1}}\).

### The end-to-end signal-to-noise-plus-distortion ratio (SNDR)

In this part, we investigate the end-to-end signal-to-noise-plus-distortion ratio (SNDR), *γ*, where \(\gamma ={\mathbb {E}\left \{ {{\left |signal\right |}^{2}} \right \}}/{\mathbb {E}\left \{ {{\left |\textrm {overall noise}\right |}^{2}} \right \}}\) for AF and DF scheme under the impact of HWIs. Let us start with AF scheme.

#### AF case

By substituting (3), (4) into (6), then we combine with (7), the end-to-end SNDR at UE2 can be expressed when UE2 considers *x*
_{3} as interference and then decodes the primary information, *x*
_{1} as

where *δ*
_{1}=*κ*
*λ*+*κ*
*λ*(1−*β*+*κ*)+(1−*λ*)(1−*β*+*κ*), \({{\tau }_{0}} = \frac {{\left ({1 - \beta +\kappa } \right)\left ({1 - {\alpha _1} - {\alpha _2}} \right)}}{{\eta \left ({{\alpha _1} + {\alpha _2}\beta } \right)}}\), and \(\left \{ \begin {array}{l} {{\tau }_{1,a}} = \frac {{{E_D}}}{{\Omega _0}}\left ({1 - \beta } \right)\lambda P{L_X}P{L_Y}\\ {{\tau }_{1,b}} = \frac {{{E_D}}}{{\Omega _0}}\delta _1P{L_X}P{L_Y}\\ {{\tau }_{1,c}} = \lambda P{L_Y}. \end {array} \right.\)

Likewise, replacing (3), (4), and (6) into (8), we derive the end-to-end SNDR at UE3 in case UE3 treats *x*
_{1} as interference and then decodes the secondary information, *x*
_{3} as follows

where *δ*
_{2}=*κ*
*λ*+*κ*(1−*λ*)(1−*β*+*κ*)+*λ*(1−*β*−*κ*)+*κ*, *τ*
_{0} is mentioned in the above expression, and \(\left \{ \begin {array}{l} {{\tau }_{2,a}} = \frac {{{E_D}}}{{\Omega _0}}\left ({1 - \beta } \right)\left ({1 - \lambda } \right) P{L_X}P{L_Z}\\ {{\tau }_{2,b}} = \frac {{{E_D}}}{{\Omega _0}}{\delta _2} {L_X}P{L_Z}\\ {{\tau }_{2,c}} = \lambda P{L_Z}. \end {array} \right.\)

As a result, the data rate achieved at UE2 and UE3 can be given by

where *B* denotes the channel bandwidth.

###
**Remark 2**

In order to clarify and expand Remark 1, since the end-to-end SNDR at UE2 is expressed to satisfy the quality of service. In particular, when secondary signals are treated as interference, it is straightforward to obtain from (10) that if *E*
_{
D
}→*∞* in case all parameters are fixed, \({{\lim }_{{E_{D \to \infty }}}}\gamma _{1}^{AF} = \lambda /\left ({1 - \lambda } \right)\). In contrast, since the end-to-end SNDR at UE3 (11) is computed, primary signals are considered as interference, where if *E*
_{
D
}→*∞*, \({{\lim }_{{E_{D \to \infty }}}}\gamma _{2}^{AF} =\left ({1 - \lambda } \right) /\lambda \). These phenomena are going to be examined by simulations.

#### DF case

Similarly, regarding DF scheme, the end-to-end SNDR at both UE2 and UE3 can be written as

where the instantaneous SNDR at R, UE2, and UE3 can be computed, respectively, based on (4), (7), and (8) as follows \(\left \{ \begin {array}{l} \gamma _{1,a}^{DF} = \gamma _{2,a}^{DF} = \frac {{\left ({1 - \beta } \right)\frac {{{E_D}}}{{\Omega _0}}P{L_X}{{\left | {X} \right |}^{2}}}}{{1 + \kappa \frac {{{E_D}}}{{\Omega _0}}P{L_X}{{\left | {X} \right |}^{2}}}}\\ \gamma _{1,b}^{DF} = \frac {{{{\psi }_{1,a}}{{\left | {X} \right |}^{2}}{{\left | {Y} \right |}^{2}}}}{{{{\psi }_{1,b}}{{\left | {X} \right |}^{2}}{{\left | {Y} \right |}^{2}} + {{\psi }_0}}}\\ \gamma _{2,b}^{DF} = \frac {{{{\psi }_{2,a}}{{\left | {X} \right |}^{2}}{{\left | {Z} \right |}^{2}}}}{{{{\psi }_{2,b}}{{\left | {X} \right |}^{2}}{{\left | {Z} \right |}^{2}} + {{\psi }_0}}} \end {array} \right.\), and \({{\psi }_0} = \frac {{\left ({1 - {\alpha _1} - {\alpha _2}} \right)}}{{\eta \left ({{\alpha _1} + {\alpha _2}\beta } \right)}}\), \({{\psi }_{1,a}} = \frac {{{E_D}}}{{\Omega _0}}\lambda P{L_X}P{L_Y}\), \({{\psi }_{2,a}} = \frac {{{E_D}}}{{\Omega _0}}\left ({1 - \lambda } \right)P{L_X}P{L_Z}\), \({{\psi }_{1,b}} = \frac {{{E_D}}}{{\Omega _0}}\left ({\kappa \lambda + 1 - \lambda } \right)P{L_X}P{L_Y}\), \({{\psi }_{2,b}} = \frac {{{E_D}}}{{\Omega _0}}\left (\kappa {\left ({1 - \lambda } \right) + \lambda } \right)P{L_X}P{L_Z}\).

Therefore, the transmission rate for DF protocol is given by

#### Peer-to-peer case

In this part, we are going to study the SNDR under the impact of HWIs in P2P communication as follows

### Analysis on successful transmission probability, average energy efficiency, and average spectral efficiency

In this section, we are going to study on the successful transmission probability (STP), the average energy efficiency (EE), and the average spectral efficiency (SE) in the presence HWIs based on SNDR. Besides that, comparisons between AF and DF schemes are evaluated in multi-hop D2D communication and P2P communication, and we also provide closed-form expressions for each factor. Most importantly, the optimization problem regarding TS and PS ratios are solved.

#### Successful transmission probability

It is noted that the STP based on SNDR represents the probability that a receiver could receive successfully packets in the up-link from the transmitter in a time slot. Considering the STP in the one-hop P2P communication, packets are successfully received if the SNDR is greater than the SNDR threshold, *Γ*
_{
D
}, Pr(*γ*≥*Γ*
_{
D
}). Otherwise, UE2 and UE3 will receive a negative feedback and the packets are still put first in the queue for being retransmitted. Therefore, the STP in P2P communication can be derived as follows

In terms of multi-hop D2D communication in the presence of HWIs with the help of the secondary relay, we are going to obtain the STP which undergoes large-scale path loss and small-scale Rayleigh fading at UE2 and UE3 in AF and DF scheme in Propositions 1 and 2, respectively.

###
**Proposition 1**

Therefore, the STP at UE2 and UE3 in AF scheme in case *Γ*
_{
D
}≥*τ*
_{
i,a
}/*τ*
_{
i,b
} is given by

Otherwise, in case *Γ*
_{
D
}<*τ*
_{
i,a
}/*τ*
_{
i,b
}, we derive the STP at UE2 and UE3 as

where \(\omega _{i}^{AF} = \frac {{{\Gamma _D}{{\tau }_{i,c}}}}{{{\Omega _X}\left ({{{\tau }_{i,a}} - {\Gamma _D}{{\tau }_{i,b}}} \right)}}\), and \(\vartheta _{i}^{AF} = \frac {{{{\Gamma _D}{\tau }_{0}}}}{{{\Omega _X}{\Omega _Y}\left ({{{\tau }_{i,a}} - {\Gamma _D}{{\tau }_{i,b}}} \right)}}\).

###
*Proof*

Let us start with AF scheme, where the general SNDR for both UE2 and UE3 can be written as

where *a*,*b*,*c*, and *d* are constant values, and the exponential random variables, i.e., *X* and *Y* are independent with means, *Ω*
_{
X
} and *Ω*
_{
Y
}, respectively.

Based on (19), the CDF of SNDR can be written as

where we take advantage of the formula [[32], 3.324.1], under the condition, *Γ*
_{
D
}<*τ*
_{
i,a
}/*τ*
_{
i,b
}. In contrast, if *Γ*
_{
D
}≥*τ*
_{
i,a
}/*τ*
_{
i,b
}, \(\Pr \left ({X < \frac {{{\Gamma _D}\left ({cY + d} \right)}}{{Y\left ({a - {\Gamma _D}b} \right)}}} \right) = 1\), due to the fact that the probability will be greater than negative values and equal to 1.

To this point, the STP at UE2 can be expressed as

This ends the proof for Proposition 1. □

###
**Proposition 2**

Similar to AF scheme, the STP in case of DF at UE2 and UE3 is computed by

where \(\omega _{i}^{DF} = {{ \frac {{{\Gamma _D}\Omega _0}}{{{\Omega _X}{E_D}P{L_X}\left ({\left ({1 - \beta } \right) - {\Gamma _D}\kappa } \right)}}}}\), \(\vartheta _{i}^{DF} = \frac {{{\Gamma _D}{{\psi }_0}}}{{{\Omega _X}{\Omega _Z}\left ({{{\psi }_{i,a}} - {\Gamma _D}{{\psi }_{i,b}}} \right)}}\).

###
*Proof*

First, we use (4), so the CDF of the instantaneous SNDR in the first hop from UE1 to R is given by

Following that, based on (23), the STP in the first hop from UE1 to R can be written by

If *Γ*
_{
D
}<*ψ*
_{
i,a
}/*ψ*
_{
i,b
}, the STP of the instantaneous SNDR from R to UE2, UE3 in the second hop can be computed based on (7), (8) as

Otherwise, if *Γ*
_{
D
}≥*ψ*
_{
i,a
}/*ψ*
_{
i,b
}, then \({\Pr \left ({\frac {{{{\psi }_{i,a}}XY}}{{{{\psi }_{i,b}}XY + {{\psi }_0}}} \ge {\Gamma _D}} \right)} = 0\).

Eventually, by denoting the end-to-end SNDR at UE2, UE3 in DF scheme as \(\gamma _{i}^{DF}=\text {min}\left (\gamma _{ia}^{DF},\gamma _{ib}^{DF}\right)\) with *i*∈{1,2}, the STP of \(\gamma _{i}^{DF}\) can be given by

Replacing (24), (25) into (26), we can easily end the proof for Proposition 2. □

###
**Remark 3**

Finding the joint optimal values of TS and PS for EH that help maximize the STP is essential. It may be challenging to evaluate the joint optimal values of TS and PS ratios in terms of the STP with Bessel function for the given system parameters, including maximum transmission power, distance, power allocation and HWIs level, etc. Due to the non-convex optimization problem which cannot be solved easily, we are going to analyze in details how we deploy a genetic algorithm (GA)-based optimization algorithm in Section 3.4.

#### Average energy efficiency and average spectral efficiency

In this part, we are going to further obtain average EE and average SE. Note that EE is defined as the average transmission rate under unit-energy consumption. In order to achieve energy-efficient communication, both the transmission power and the circuit power can be examined [5].

###
**Proposition 3**

We derive the expression for the average EE and average SE, respectively, in AF scheme as

and

where \({M_{i}^{AF}}=\frac {{2{{\tau }_{i,a}}{e^{- \omega _{i}^{AF}}}\vartheta _{i}^{AF}{K_0}\left ({2\sqrt {\vartheta _{i}^{AF}}} \right)}}{{x\left ({{{\tau }_{i,a}} - x{{\tau }_{i,b}}} \right)}}\), \({N_{i}^{AF}}= \frac {{2{{\tau }_{i,a}}\omega _{i}^{AF}{e^{- \omega _{i}^{AF}}}\sqrt {\vartheta _{i}^{AF}} {K_1}\left ({2\sqrt {\vartheta _{i}^{AF}}} \right)}}{{x\left ({{{\tau }_{i,a}} - x{{\tau }_{i,b}}} \right)}}\), and the total power consumption of mode A is defined as *E*
_{
sum
}=2*E*
_{
D
}+2*E*
_{
C
}+*E*
_{
R
}.

###
*Proof*

Following that, based on Proposition 1, the CDF of SNDR at UE2, UE3 in AF scheme is given by

where \(\vartheta _{i}^{AF} = \frac {{{{\tau }_0}x}}{{{\Omega _X}{\Omega _Y}\left ({{{\tau }_{i,a}} - x{{\tau }_{i,b}}} \right)}}\), \(\omega _{i}^{AF} = \frac {{x{{\tau }_{i,c}}}}{{{\Omega _X}\left ({{{\tau }_{i,a}} - x{{\tau }_{i,b}}} \right)}}\).

By evaluating the derivative of \(F_{\gamma _{i}^{AF}}(x)\) with respect to *x*, the PDF of \({\gamma _{i}^{AF}}\) can be written as

where \({M_{i}^{AF}}=\frac {{2{{\tau }_{i,a}}{e^{- \omega _{i}^{AF}}}\vartheta _{i}^{AF}{K_0}\left ({2\sqrt {\vartheta _{i}^{AF}}} \right)}}{{x\left ({{{\tau }_{i,a}} - x{{\tau }_{i,b}}} \right)}}\), \({N_{i}^{AF}}=\frac {{2{{\tau }_{i,a}}\omega _{i}^{AF}{e^{- \omega _{i}^{AF}}}\sqrt {\vartheta _{i}^{AF}} {K_1}\left ({2\sqrt {\vartheta _{i}^{AF}}} \right)}}{{x\left ({{{\tau }_{i,a}} - x{{\tau }_{i,b}}} \right)}}\), and we derive the expression above by using the property of Bessel function in [[32], 8.486.18].

Thus, the closed-form expression for the average EE over Rayleigh fading channels can be given by

This proof is provided to prove Proposition 3. □

Similar to Proposition 3, the analytical average EE and average SE in DF scheme in Mode A can be expressed as

and

where \({M_{i}^{DF}}=\frac {{2{{\psi }_{i,a}}{e^{- \omega _{i}^{AF}}}\vartheta _{i}^{AF}{K_0}\left ({2\sqrt {\vartheta _{i}^{DF}}} \right)}}{{x\left ({{{\psi }_{i,a}} - x{{\psi }_{i,b}}} \right)}}\), \({N_{i}^{DF}}=\frac {{2{\left ({1-\beta }\right)}\omega _{i}^{DF}{e^{- \omega _{i}^{DF}}}\sqrt {\vartheta _{i}^{DF}} {K_1}\left ({2\sqrt {\vartheta _{i}^{DF}}} \right)}}{{x\left ({{{\psi }_{i,a}} - x{{\psi }_{i,b}}} \right)}}\).

Meanwhile, when *Γ*
_{
D
}<1/*κ*, we derive the expression for both average EE and average SE in P2P communication with the transmission power and the circuit power, *P*
_{
sum
}=2*E*
_{
D
}+2*E*
_{
C
} as

and

### Optimization problem

Regarding the HTPS relaying protocol, we try to solve the optimization problem of time switching (TS) and power spitting (PS) ratios with the aim to maximizing the STP. Therefore, we have the expression as follows

where the expression is subject to *α*
_{1},*α*
_{2},*β*∈(0,1], and \({\omega _{i}^{j}}\), \({\vartheta _{i}^{j}}\) are defined in Propositions 1 and 2, respectively, *i*∈{1,2},*j*∈{*A*
*F*,*D*
*F*}.

Due to the fact that the expression (33) is a non-convex function and it is difficult to derive analytic solution of *α*, *β* for HTPS relaying protocol, the achievement of optimal system configuration parameters cannot be done, since exhaustive search is not effective, where multiple parameters need to be optimized. To overcome this complication, we take advantage of a genetic algorithm (GA)-based optimization algorithm to obtain the optimal values of TS and PS to maximize the STP.

###
**Definition 1**

The generation of a random population is what GA begins with, which is defined as a set of chromosomes consisting of a group of genes and it holds values for the optimization variables *[*
33
*]*. Thanks to the evaluation of chromosome against an objective function, the fitness of each one is determined. In order to provide simulations for the natural survival of the fittest process, only best chromosomes can exchange information (via crossover or mutation) to produce offspring chromosomes. If offspring solutions are more feasible solutions than weak population members, they are investigated and used for population evolution. The process is continued for a vast number of generations to find a best-fit (near-optimum) solution. Note that the performance of GAs is affected by primary parameters, including number of generations, population size, crossover rate, and mutation rate *[*
34
*,*
35
*]*.

We regard TS fraction, *α*, and PS fraction, *β* as genes, respectively; we create a chromosome by the combination of *α* and *β*. In order to obtain each chromosome’s fitness, objective function in (33) is used. *H*
_{
max
} denotes the optimal solution of the *t*-th generation, and the predefined precision with constraint tolerance of GA is denoted by *ε*. Therefore, we present some steps of the GA-based optimization Algorithm 1 as follows:

As a result, the use of a genetic algorithm (GA)-based optimization helps us achieve the joint optimal TS and PS ratios to guarantee the best STP.

## Numerical results and discussion

In this section, we verify the accuracy of the analytical expressions through simulations and provide insight into the impact of HWIs on the STP and average EE and average SE in two transmission modes in the proposed HTPS relaying protocol, where comparisons between AF and DF in multi-hop D2D communication and P2P communication are provided. In addition, we also simulate the joint optimal values of TS and PS after the optimization problem is solved. In this part, primary parameters and default values are depicted in Table 2 which are used when UE1, R and UE2 are located at (0,0), (0.5,0), and (1,0) on the X-Y plane, respectively while UE3 is located at (1,0.5). The simulation results are averaged over 10^{5} channel realizations.

### Successful transmission probability versus the maximum transmission, *E*
_{
D
} at UE2 and UE3

As illustrated in Figs. 2 and 3, the successful transmission probability (STP) versus the maximum transmission, *E*
_{
D
} at UE2 and UE3 is considered, in which we compare AF and DF scheme using the HTPS protocol and TSR protocol under the impact HWIs. It is observed that the analytical results match well with simulation results. In particular, the increase in *E*
_{
D
} leads to better STP. It is clear that DF outperforms AF scheme, in which HTPS relaying protocol is better than TSR in terms of the STP. In addition, UE2 is much better than UE3 in the scenario without spectrum sharing, for example, when *E*
_{
D
}=10 *d*
*B*, the STP at UE2 is at approximately 0.55 and 0.72 for AF and DF, respectively, while the STP at UE3 is at around 0.48 and 0.59 for AF and DF, respectively.

### Successful transmission probability versus hardware impairment levels, *κ* at UE2 and UE3

Figures 4 and 5 illustrate the STP with levels of HWIs for AF and DF transmission scheme. The impact of HWIs on the evaluated STP is obvious, since some HWIs, i.e., transmit RF and receiver RF affect wireless communication systems. In particular, as *κ* increases, it leads to the decrease in the STP, in which the STP in AF scheme drops remarkably when *E*
_{
D
}=5 dB.

### Average energy efficiency and average spectral efficiency at UE2 and UE3 versus *E*
_{
D
}

In Figs. 6 and 7, we depict average energy efficiency (EE) and average spectral efficiency (SE) at UE2 as a function of *E*
_{
D
} (W). It is evident that average EE increases as *E*
_{
D
} rises in the first half of the given period before declining steadily when *E*
_{
D
} is at around 0.2, since the maximum transmission power, *E*
_{
D
} rises, which leads to the increase in *E*
_{
sum
} while the average SE is linear. Particularly, in Fig. 6, with two different levels of HWIs, *κ*=0.15, *κ*=0.3, the average EE is significantly affected, i.e, when *κ*=0.3, the average EE falls dramatically. Meanwhile, Fig. 7 shows the locations of R in two cases, including case 1: R is located at (0.5,0) and case 2: R is located at (0.3,0). As a result, the figure for case 2 is more remarkable, since the distance between UE2 and R is close, which accordingly leads to better SE. Furthermore, the similar trends at UE3 are presented in Figs. 8 and 9, it is evident that average EE falls as *E*
_{
D
} rises while the average SE increase gradually in the given period, in which the performance gap between case 1 and case 2 is clear when the nearer the communication between R and UE3 is, the better SE is achieved. It is worth noting that the increase in *λ* helps the primary node, UE2 achieves better EE and SE compared to UE3.

### Average energy efficiency and average spectral efficiency versus *E*
_{
D
} in the P2P communication

The average EE and average SE as functions of *E*
_{
D
}(W) in P2P communication are depicted in Fig. 10 in case the distance between UE2 and UE3 is 5 km, while in Fig. 11, we compare two cases of the distance between the two nodes, including case 1 is 5 km and case 2 is 10 km, respectively. The EE increases with SE at first, and after reaching a peak at approximately 87 and 68 when *κ*=0.15 and *κ*=0.3, respectively, it drops when average SE increases. Note that *κ*=0.15 means that SE suffers less from HWIs, so it goes up rapidly compared to the scenario when *κ*=0.3.

### Time switching and power splitting ratios under HWis at UE2 and UE3

In Figs. 12 and 13, we provide visual results under different TS and PS ratios for UE2 and UE3 under the impact of HWIs. As illustrated in the two figures, the STP in case of the hybrid HTPS relaying protocol achieves its optimal values when the TS and PS fraction pair ranges from 0 to 0.7, 0 to 0.4, respectively, with parameters, i.e., *E*
_{
D
}=10 dB and *κ*=0.15.

### The joint optimal value of *α* and *β* versus *E*
_{
D
} at UE2 and UE3

Figures 14 and 15 present the results of optimization problem achieved in Section 3.4 with number of generations, *N*=100, constraint tolerance, *ε*=10^{−5}, mutation probability, *p*
_{
m
}=0.05, respectively. The joint optimization results are compared with fixed values of TS and PS fraction with *α*
_{1}=*α*
_{2}=*β*=0.1 at UE2 and UE3 in AF and DF scheme. It can be observed that all curves are going up as *E*
_{
D
} increases because the higher *E*
_{
D
} means larger SDNR, which increases the STP. Furthermore, the performance gain of the joint optimized TS and PS achieves maximum value when *E*
_{
D
} is at approximately 25 dB and the performance gap is more obvious in DF scheme.

## Conclusions

In this paper, we addressed the impact of HWIs on the cognitive energy harvesting-based D2D communication underlaying cellular network consisting of two communication types, i.e., multi-hop D2D and P2P. Closed-form expressions for the successful transmission probability, average EE and SE were derived, and we also solved the optimization problem with respect to TS and PS ratios using a genetic algorithm (GA)-based optimization algorithm. Simulation results were given to verify the comparisons between AF and DF transmission schemes, where DF outperforms AF in terms of every parameter. Most importantly, although all nodes suffered from HWIs, the STP was still guaranteed.

## References

- 1
VD Nguyen, TQ Duong, HD Tuan, OS Shin, H Vincent, Poor, Spectral and Energy Efficiencies in full-duplex wireless information and power transfer. IEEE Trans. Commun.

**65**(6), 2220–2233 (2017). doi:10.1109/TCOMM.2017.2665488. - 2
Y Ren, T Lv, H Gao, Y Li, Secure wireless information and power transfer in heterogeneous networks. IEEE Access.

**5:**, 4967–4979 (2017). doi:10.1109/ACCESS.2017.2682277. - 3
X Di, K Xiong, P Fan, HC Yang, Simultaneous wireless information and power transfer in cooperative relay networks with rateless codes. IEEE Trans. Veh. Technol.

**66**(4), 2981–2996 (2016). doi:10.1109/TVT.2016.2588441. - 4
AA Nasir, X Zhou, S Durrani, RA Kennedy, Relaying protocols for wireless energy harvesting and information processing. IEEE Trans. Wirel. Commun.

**12**(7), 3622–3636 (2013). doi:10.1109/TWC.2013.062413.122042. - 5
Z Wang, Z Chen, B Xia, L Luo, J Zhou, Cognitive relay networks with energy harvesting and information transfer: design, analysis and optimization. IEEE Trans. Wirel. Commun.

**15**(4), 2562–2576 (2016). doi:10.1109/TWC.2015.2504581. - 6
HS Nguyen, DT Do, M Voznak, Two-way relaying networks in green communications for 5G: optimal throughput and tradeoff between relay distance on power splitting-based and time switching-based relaying SWIPT. AEUE. Int. J. Electron. Commun.

**70**(3), 1637–1644 (2016). doi:10.1016/j.aeue.2016.10.002. - 7
K Xiong, P Fan, C Zhang, KB Letaief, Wireless information and energy transfer for two-hop non-regenerative MIMO-OFDM relay networks. IEEE J. Sel. Areas Commun.

**33**(8), 1595–1611 (2015). doi:10.1109/JSAC.2015.2391931. - 8
J Gao, On the successful transmission probability of cooperative cognitive radio ad hoc networks. Ad Hoc Netw.

**58:**, 99–104 (2017). doi:10.1016/j.adhoc.2016.10.012. - 9
RHY Louie, Y Li, B Vucetic, Practical physical layer network coding for two-way relay channels: performance analysis and comparison. IEEE Trans. Wirel. Commun.

**9**(2), 764–777 (2010). doi:10.1109/TWC.2010.02.090314. - 10
K Xiong, C Chen, G Qu, P Fan, KB Letaief, Group cooperation with optimal resource allocation in wireless powered communication networks. IEEE Trans. Wirel. Commun.

**16**(6), 1536–1276 (2017). doi:10.1109/TWC.2017.2689011. - 11
L Liu, R Zhang, KC Chua, Wireless information and power transfer: a dynamic power splitting approach. IEEE Trans. Commun.

**61**(9), 3990–4001 (2013). doi:10.1109/TCOMM.2013.071813.130105. - 12
K Xiong, P Fan, Y Lu, KB Letaief, Energy efficiency with proportional rate fairness in multirelay OFDM networks. IEEE J. Sel. Areas Commun.

**34**(5), 0733–8716 (2016). doi:10.1109/JSAC.2016.2545479. - 13
A Singh, MR Bhatnagar, RK Mallik, Secrecy outage of a simultaneous wireless information and power transfer cognitive radio system. IEEE Commun. Lett.

**5**(3), 288–291 (2016). doi:10.1109/LWC.2016.2544828. - 14
K An, J Ouyang, M Lin, T Liang, Outage analysis of multi-antenna cognitive hybrid satellite-terrestrial relay networks with beamforming. IEEE Wirel. Commun. Lett.

**19**(7), 1157–1160 (2015). doi:10.1109/LCOMM.2015.2428256. - 15
R Manna, RHY Louie, Y Li, B Vuceticg, Cooperative spectrum sharing in cognitive radio networks with multiple antennas. IEEE Trans. Signal Process.

**59**(11), 5509–5522 (2011). doi:10.1109/TSP.2011.2163068. - 16
M Karaca, K Khalil, E Ekici, O Ercetin, Optimal scheduling and power allocation in cooperate-to-join cognitive radio networks. IEEE/ACM Trans. Netw.

**21**(6), 1708–1721 (2013). doi:10.1109/TNET.2012.2230187. - 17
X Bao, P Martins, T Song, L Shen, Capacity of hybrid cognitive network with outage constraints. IET Commun.

**5**(18), 2712–2729 (2011). doi:10.1049/iet-com.2011.0236. - 18
Feasibility Study for Proximity Service (ProSe). 3GPP TR 22.803 V12.2.0, (2013).

- 19
K Doppler, M Rinne, C Wijting, C Ribeiro, K Hugl, Device-to-device communications as an underlay to LTE-advanced networks. IEEE Commun. Mag.

**47**(12), 42–49 (2010). doi:10.1109/WCNC.2010.5506248. - 20
ST Su, BY Huang, CY Wang, CW Yeh, HY Wei, Protocol design and game theoretic solutions for device-to-device radio resource allocation. IEEE Trans. Veh. Technol.

**66**(5), 4271–4286 (2017). doi:10.1109/TVT.2016.2602658. - 21
Z Xia, J Yan, Y Liu, Cooperative content delivery in multicast multihop device-to-device networks. IEEE Access.

**5:**, 6314–6324 (2017). doi:10.1109/ACCESS.2017.2672996. - 22
X Chai, T Liu, C Xing, H Xiao, Z Zhang, Throughput improvement in cellular networks via full-duplex based device-to-device communications. IEEE Access.

**4:**, 7645–7657 (2017). doi:10.1109/ACCESS.2016.2619379. - 23
E Bjornson, J Hoydis, M Kountouris, M Debbah, Massive MIMO systems with non-ideal hardware: Energy efficiency, estimation, and capacity limits. IEEE Trans. Inf. Theory.

**60**(11), 7112–7139 (2014). doi:10.1109/TIT.2014.2354403. - 24
X Xia, D Zhang, K Xu, W Ma, Y Xu, Hardware impairments aware transceiver for full-duplex massive MIMO relaying. IEEE Trans. Signal Process.

**63**(24), 6565–6580 (2015). doi:10.1109/TSP.2015.2469635. - 25
NT Do, DBD Costa, B An, Performance analysis of multirelay RF energy harvesting cooperative networks with hardware impairments. IET Commun.

**10**(18), 2551–2558 (2016). doi:10.1049/iet-com.2016.0392. - 26
TP Huynh, HS Nguyen, DT Do, M Voznak, in

*Proc.of International Conference on Electronics, Information, and Communications, (ICEIC)*. Impact of hardware impairments in AF relaying network for WIPT: TSR and performance analysis, (2016), pp. 1–4. doi:10.1109/ELINFOCOM.2016.7562967. - 27
HS Nguyen, H Nguyen, SD Sau, M Voznak, TP Huynh, in

*Proc.of International Conference on Electronics, Information, and Communications, (ICEIC)*. Impact of hardware impairments for power splitting relay with wireless information and EH, (2016), pp. 1–4. doi:10.1109/ELINFOCOM.2016.7562941. - 28
TN Nguyen, PT Tran, HG Hoang, HS Nguyen, M Voznak, in

*Proc.of International Conference on Advances in Information and Communication Technology, (ICACT)*. On the performance of decode-and-forward half-duplex relaying with time switching based energy harvesting in the condition of hardware impairment, (2017), pp. 421–430. doi:10.1007/978-3-319-49073-1_46. - 29
L Wei, RQ Hu, Y Qian, G Wu, Energy efficiency and spectrum efficiency of multihop device-to-device communications underlaying cellular networks. IEEE Trans. Veh. Technol.

**65**(1), 367–380 (2016). doi:10.1109/TVT.2015.2389823. - 30
T Schenk,

*RF Imperfections in high-rate wireless systems: impact and digital compensation*(Springer Publishing, 2010). doi:10.1007/978-1-4020-6903-1. - 31
M Matthaiou, A Papadogiannis, E Bjornson, Debbah M, Two-way relaying under the presence of relay transceiver hardware impairments. IEEE Commun. Lett.

**17**(6), 1136–1139 (2013). doi:10.1109/LCOMM.2013.042313.130191. - 32
IS Gradshteyn, IM Ryzhik,

*Table of integrals, series, and products*, 4th edn (Academic Press Inc., New York, 1980). - 33
DE Goldberg,

*Genetic algorithms in search, optimization and machine learning*(Addison-Wesley Longman Publishing Co., Inc., Boston, 1989). - 34
KF Man, KS Tang, S Kwong, Genetic algorithms: concepts and applications. IEEE Trans. Ind. Electron.

**43**(5), 519–534 (1996). doi:10.1109/41.538609. - 35
G Du, K Xiong, Y Zhang, Z Qiu, Outage analysis and optimization for time switching-based two-way relaying with energy harvesting relay node. KSII Trans. Internet Inf Syst.

**9**(2), 1–19 (2014). doi:10.3837/tiis.2015.02.004.

## Author information

### Affiliations

### Contributions

HSN contributed in the conception and design of the study; he also carried out the simulation and revised the manuscript. HSN helped to perform the analysis with constructive discussions. Meanwhile, TSN was responsible for producing simulation analysis and writing the manuscript carefully. Furthermore, MV went through and approved the final manuscript. All authors read and approved the final manuscript.

### Corresponding author

## Ethics declarations

### Competing interests

The authors declare that they have no competing interests.

### Publisher’s Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

## Rights and permissions

**Open Access** This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made.

## About this article

### Cite this article

Nguyen, HS., Nguyen, TS. & Voznak, M. Successful transmission probability of cognitive device-to-device communications underlaying cellular networks in the presence of hardware impairments.
*J Wireless Com Network* **2017, **208 (2017). https://doi.org/10.1186/s13638-017-0994-0

Received:

Accepted:

Published:

DOI: https://doi.org/10.1186/s13638-017-0994-0

### Keywords

- Device-and-device
- Peer-to-peer
- Hardware impairments
- Energy harvesting
- Power splitting
- Time switching
- Successful transmission probability
- Energy efficiency
- Spectral efficiency