Skip to main content

Improved two-way double-relay selection technique for cooperative wireless communications

Abstract

In this article, a novel two-way double-relay selection strategy with its bit error rate (BER) performance analysis is proposed. In this novel strategy, as a first step we choose two relays out of a set of relay-nodes in a way to maximize the system performance in terms of BER and complexity. In the second step, the selected relays apply orthogonal space-time coding scheme using the three-phase protocol to establish a two-way communication between the transceivers, which will lead to a significant improvement in the achievable diversity and coding gain with a very low decoding complexity by using a symbol-wise decoder. Furthermore, the performance of the overall system is further enhanced through the use of a network coding method at the selected relay-nodes. Moreover, this paper proposes the analytical approximation of the BER performance. As well, we show that the analytical results match perfectly the simulated ones. In addition, we prove that our strategy outperforms the current state-of-the-art ones by proposing a better cooperative communication system in terms of BER.

1 Introduction

Multiuser interference and channel impairments such as multipath propagation and time-varying fading can affect the performance of wireless communications in terms of achievable data rate and bit error rate (BER) [1,2,3,4,5,6,7,8,9,10,11,12,13]. The use of distributed space-time coding techniques [2, 3, 8], distributed beam-forming techniques [4,5,6] and relay selection techniques [9,10,11,12,13,14,15,16,17,18,19,20,21,22] helps in reducing the impact of channel impairments and as a result enhancing the performance of wireless communication systems. The performance of these systems in terms of achievable data rate and BER can be enhanced through the use of these techniques by allowing the receiver side to receive different versions with different phases and amplitudes of the transmitted information symbols which will be combined efficiently together in order to achieve the former.

In relaying techniques, the relay-nodes receive and process the transmitted data before retransmitting the resulting signals in an orthogonal channels or using a specific technique to maximize the received signal-to-noise ratio or achievable data rate or to minimize the overall BER. By increasing the number of relays, the spatial diversity gain will be improved. These latter techniques, named as diversity techniques, use one-way or two-way relaying schemes [1,2,3,4,5,6,7]. Some of the diversity techniques consider that the availability of channel state information (CSI) is essential at all nodes of the network with slow fading channels [23, 24]. Other techniques consider that the availability of CSI is essential only at the receiving antennas [2, 13]. Recently, non-coherent and differential diversity techniques are proposed as new approaches with no need of CSI at both the transmitter and receiver nodes [2,3,4,5,6]. Due to the non-necessity of CSI, these techniques suffer from a low BER, a low spectral efficiency and high latency as well as high decoding complexity.

Bi-directional communication techniques are proposed in order to enhance system performance where they consider two entities send and receive their data through different relay-nodes [2,3,4,5,6,7]. Bi-directional relaying schemes are classified into three groups, two-phase [2, 3, 7, 8], three-phase [2, 3] and four-phase [4,5,6] protocols based on the number of time slots required for message exchanging between all the nodes. Decreasing the number of transmission periods from four phase to three phase or to two phase will lead to a significant improvement in the spectrum efficiency of these systems. This will make the performance of the two and three phase better than the performance of the four-phase system [2,3,4, 14]. Furthermore, through the use of orthogonal channels the relay-nodes can transmit the received signals, as well, they can encode them using orthogonal or non-orthogonal coding techniques. Orthogonal coding techniques such as space-time coding (STC) enjoy a full diversity gain with low decoding complexity [13]. Non-orthogonal coding techniques improve the overall system performance and achievable data rate as well as enjoy full diversity gain and high coding gain; however, they suffer from high decoding complexity. Full spatial diversity gain with low decoding complexity in non-orthogonal coding can be obtained through the use of relay selection techniques [8,9,10,11,12,13,14]. For this purpose, many relaying techniques with single- and dual-relay selection strategies have been investigated and proposed [8,9,10,11,12,13,14,15,16,17,18,19,20,21,22]. The authors in [25] introduced a general overview of channel-coded physical-layer network coding in bi-directional relay communications. In [26], the authors discussed a general overview of a protograph low-density parity check code called root-protograph code over fading channels from the code-design perspective. Note that both decode-and-forward physical network coding two-way relaying scheme [25] and the coded-aided relaying, i.e., coded cooperation scheme [26], can achieve capacity-approaching performance.

The authors in [10,11,12] proposed a max–min method that selects the optimal relay-node from a set of relay-nodes to maximize either the signal-to-noise ratio (SNR) or the overall achievable data rate. Several relay selection methods are recently suggested specifically to select the best one or two relay-nodes from a group of relays. For example, the authors in [11] proposed several techniques to select the best relay-node using max–min method and the best two relay-nodes using double-max method in certain scenarios to achieve the best performance. In [13, 14], the authors proposed double-relay selection strategy and proved that dual-relay selection strategies outperform single-relay ones.

The state-of-the-art articles investigating the single-relay selection techniques consider only the weakest or strongest channels to select the best one or two relay-nodes [10,11,12,13], e.g., they choose the best relay among all available relay-nodes that owns the strongest forward or backward channel or they select two relays where one of them has the strongest forward channel and the other owns the strongest backward channel. Therefore, the motivation of this work is that the current techniques are not considering the differences among the close value channels, while this can significantly improve the performance of relaying techniques. Therefore, in this paper, we propose a novel double-relay selection technique based on STC using the three-phase protocols. Furthermore, in the proposed technique, network coding is applied at the relay sides in order to decrease power consumption through the combination of symbols of the communicating transceivers in one symbol with the same constellation. From simulations and analytical results, we show that our novel technique delivers a better performance compared to the already existing relaying techniques. This article is summarized as follows: Sects. 2 and 3 explain the system model and the proposed technique, respectively. Section 4 demonstrates the BER analysis, while Sects. 5 and 6 show the experimental methods and the results and discussions, respectively. The conclusion is introduced in Sect. 7.

2 System model

In our system model shown in Fig. 1, we consider a half-duplex wireless relay network with R + 2 single-antenna nodes, i.e., two peripheral-nodes (\({\text{PN}}_{1}\) and \({\text{PN}}_{2}\)), that intend to communicate with each other, but they cannot communicate directly due to transmission range limitation. Therefore, a group of R intermediate single-antenna relay-nodes that are located between them need to facilitate this communication. More specifically, two intermediate relay-nodes will be chosen to facilitate the required communication. Also, we assume having independent Rayleigh flat-fading channels with zero mean and unit variance where the channel from \({\text{PN}}_{1}\) to relay-node \(i\) is denoted as \(f_{i }\) and from \({\text{PN}}_{2}\) to relay-node \(i\) as \(b_{i}\). Furthermore, all the communication channels between peripheral and relay-nodes are assumed to be reciprocal for the transmission from \({\text{PN}}_{1}\) to \({\text{PN}}_{2}\) and vice versa and perfect CSI is assumed to be available at all receiving nodes. The channels are assumed to stay constant during two time slots and change to an independent realization afterward. In addition, perfect synchronization and timing are considered. Finally, we assume here that all the relay-nodes and peripheral-nodes have limited average transmit powers denoted as \(P_{{{\text{PN}}_{j} }} , j = 1,2\) for peripheral-nodes and \(P_{{{\text{RN}}_{i} }} , i = 1,2, \ldots ,R\) for relay-nodes. In this article, we use the following notations |.|\(,.,.\), (.)* and \(E\left( . \right)\) to denote the absolute value, the floor function which rounds toward zero, the Frobenius norm, the complex conjugate and the statistical expectation, respectively.

Fig. 1
figure 1

Bi-directional relay network

Now, let us consider the example shown in Fig. 2 which illustrates the concept of this novel technique. We assume that all channel values between the intermediate relay-nodes and the two peripheral-nodes are given. Based on the max–min selection criterion [10,11,12], \({\mathcal{R}}{\text{N}}_{1}\) and \({\mathcal{R}}{\text{N}}_{3}\) will be chosen as the best two available relay-nodes since they have the maximum value links of (7 and 6.95) among the group of minimum value links (7, 6.9, 6.95, 6.85, 4, and 3). However, we can clearly see that \({\mathcal{R}}{\text{N}}_{2}\) and \({\mathcal{R}}{\text{N}}_{4}\) will probably have a much better performance as compared to \({\mathcal{R}}{\text{N}}_{1}\) and \({\mathcal{R}}{\text{N}}_{3}\), as the maximum difference between their minimum value links is less than 3% ((7–6.85)/7) × 100% in the best scenario, while the maximum value links for \({\mathcal{R}}{\text{N}}_{2}\) and \({\mathcal{R}}{\text{N}}_{4}\) are (20 and 25), respectively, compared to (8 and 7.5) for \({\mathcal{R}}{\text{N}}_{1}\) and \({\mathcal{R}}{\text{N}}_{3}\), which is at least 60% improvement in favor of \({\mathcal{R}}{\text{N}}_{2}\) and \({\mathcal{R}}{\text{N}}_{4}\). Therefore, our proposed two-relay-node selection technique, whose flowchart is shown in Fig. 3, will first find the minimum value link for each relay-node (w = 7, 6.9, 6.95, 6.85, 4, and 3). Then, it sorts those minimum value links in descending order, so (wn = 7, 6.95, 6.9, 6.85, 4, and 3). After that, it will check the successive difference between the minimum value links, to find a sub-group of relay-nodes that have close values of their minimum value links (i.e., successive difference less than threshold). Once the successive difference becomes above the specified threshold (e.g., Threshold = 10%), this comparison will terminate, and the technique will move for further processing of the selected sub-group of relay-nodes (wg = 7, 6.95, 6.9, 6.85). At this stage, the proposed technique will estimate the expected performance of each node in the selected sub-group by multiplying the values of their both channels (\(f_{i} \times b_{i}\)) to produce (7 × 8 = 56, 6.95 × 7.5 = 52, 6.9 × 20 = 138, and 6.85 × 25 = 171). After that it selects the two relay-nodes (\({\mathcal{R}}{\text{N}}_{2}\) and \({\mathcal{R}}{\text{N}}_{4}\)) with the highest possible performance (138, and 171). Section 3 explains the proposed dual-relay selection technique in more details.

Fig. 2
figure 2

Relay selection example

Fig. 3
figure 3

Flowchart of the proposed relay selection technique

3 The proposed bi-directional dual-relay selection technique

In this proposed technique, the three-phase decode-and-forward (DF) communication protocol will be executed [2, 3]. The first peripheral-node \({\text{ PN}}_{1}\) broadcasts its message vector \({\varvec{z}}_{{P_{1} }}\) in the first available time slot; then, the second peripheral-node \({\text{PN}}_{2}\) broadcasts its message vector \({\varvec{z}}_{{P_{2} }}\) in the second available time slot, so that the rth intermediate relay-node \({\text{RN}}_{r}\) receives the following during the first and second time slots, respectively:

$${\varvec{y}}_{{{\mathcal{R}}{\text{N}}_{1} ,r}} = \sqrt {P_{{{\text{PN}}_{1} }} } f_{r} {\varvec{z}}_{{P_{1} }} + {\varvec{n}}_{{{\mathcal{R}}{\text{N}}_{1} ,r}} ,$$
(1)
$${\varvec{y}}_{{{\mathcal{R}}{\text{N}}_{2} ,r}} = \sqrt {P_{{{\text{PN}}_{2} }} } b_{r} {\varvec{z}}_{{P_{2} }} + {\varvec{n}}_{{{\mathcal{R}}{\text{N}}_{2} ,r}} .$$
(2)

Considering that \(\left[ {{\varvec{z}}_{{P_{1} }} } \right]_{i} \in Z_{{P_{1} }}\), \(\left[ {{\varvec{z}}_{{P_{2} }} } \right]_{i} \in Z_{{P_{2} }}\), \(E\left\{ {\left| {\left[ {{\varvec{z}}_{{P_{1} }} } \right]_{i} } \right|^{2} } \right\} = 1\), \(E\left\{ {\left| {\left[ {{\varvec{z}}_{{P_{2} }} } \right]_{i} } \right|^{2} } \right\} = 1\), \(Z_{{P_{1} }}\) and \(Z_{{P_{2} }}\) are possibly two different constellations, and \({\varvec{n}}_{{{\mathcal{R}}{\text{N}}_{1} ,r}}\) and \({\varvec{n}}_{{{\mathcal{R}}{\text{N}}_{2} ,r}}\) represent the noise signal vectors at the rth relay-node \({\mathcal{R}}{\text{N}}\)r in the first and the second time slots. After that, the rth intermediate relay-node \({\text{RN}}\)r decodes the two received message vectors using the maximum likelihood (ML) decoder as:

$$\tilde{\user2{z}}_{{{\text{PN}}_{1,r} }} = \arg_{{{\varvec{z}}_{{P_{1} }} }} \min {\varvec{y}}_{{{\mathcal{R}}{\text{N}}_{1} ,r}} - \sqrt {P_{{{\text{PN}}_{1} }} } f_{r} {\varvec{z}}_{{P_{1} }} ,$$
(3)
$$\tilde{\user2{z}}_{{{\text{PN}}_{2,r} }} = {\text{arg}}_{{{\varvec{z}}_{{P_{2} }} }} {\text{min}}{\varvec{y}}_{{{\mathcal{R}}{\text{N}}_{2} ,r}} - \sqrt {P_{{{\text{PN}}_{2} }} } b_{r} {\varvec{z}}_{{p_{2} }} .$$
(4)

It is worth mentioning here that the encountered decoding complexity by the intermediate relay-nodes is very low, as they apply a symbol-wise decoding capable of providing a linear decoding complexity to detect the received messages. Later, the rth relay-node \({\mathcal{R}}{\text{N}}\)r will combine the two received message vectors \(\tilde{\user2{z}}_{{{\text{PN}}_{1,r} }}\) and \(\tilde{\user2{z}}_{{{\text{PN}}_{2,r} }}\) to form a single message vector as follows:

$${\varvec{z}}_{{{\mathcal{R}},r}} = {\mathcal{F}}\left( {\tilde{\user2{z}}_{{{\text{PN}}_{1,r} }} ,\tilde{\user2{z}}_{{{\text{PN}}_{2,r} }} ,} \right)$$
(5)

where \({\mathcal{F}}\left( {., .} \right)\) is a combination function of the two received message vectors used at the intermediate relay-nodes. Such combination functions have been recently discussed by many articles where modular arithmetic (MA) proposed in [2], XOR function discussed in [1, 2] and the combination function suggested in [2] are just some examples of the available combination functions. In the relay decoding described by Eqs. (3) and (4), the relay-nodes simply round the real and imaginary parts of the received messages to the nearest constellation point in case of an integer constellation. Furthermore, the use of the combination function \({\mathcal{F}}\left( {.,.} \right)\) in the proposed scheme has a negligible complexity.

The two selected intermediate relay-nodes (\({\text{RN}}_{i} \;{\text{and}}\;{\text{RN}}_{j}\)) will be chosen based on the proposed relay-nodes selection technique, discussed in Sect. 2, as follows:

Step 1 Select the first relay-node based on max–min selection criterion, such that:

$${\text{RN}}_{{a_{1} }} = \arg_{{a_{1} }} \max \left\{ {\min \left( {\left| {f_{{a_{1} }} \left| , \right|b_{{a_{1} }} } \right|} \right);\forall a_{1} = \left\{ {1,2, \ldots , R} \right\}} \right\}$$
(6a)

Step 2 Select the next relay-node based on max–min selection criterion when \(k = \left\{ {2, 3} \right\}\), such that:

$${\text{RN}}_{{a_{k} }} = \arg_{{a_{k} }} \max \left\{ {\min \left( {\left| {f_{{a_{k} }} } \right|,\left| {b_{{a_{k} }} } \right|} \right);\forall a_{k} = \left\{ {1,2, \ldots , R} \right\}, a_{k} \ne \{ a_{k - 1} ,a_{k - 2} , \ldots a_{1} \} } \right\}$$
(6b)

Step 3 The third step of the proposed technique consists of sorting the relay-nodes in a descending order based on their minimum value links, then calculating the difference in the quality of links between the second relay \({\text{RN}}_{{a_{2} }}\) and the third relay \({\text{RN}}_{{a_{3} }}\) using the following equation when \(k = 2\)

$${\text{Diff}} = \frac{{\min \left( {\left| {f_{{a_{k - 1} }} } \right|,\left| {b_{{a_{k - 1} }} } \right|} \right) - \min \left( {\left| {f_{{a_{k} }} } \right|,\left| {b_{{a_{k} }} } \right|} \right)}}{{\min \left( {\left| {f_{{a_{k - 1} }} } \right|,\left| {b_{{a_{k - 1} }} } \right|} \right)}} \times 100\%$$
(6c)

If Diff > Threshold, then the best selected relay-nodes are \({\text{RN}}_{{a_{k} }} , \;k = \left\{ {1,2} \right\}\). Since they have the best links between the two communicating peripheral-nodes that offer the best performance in the network.

Step 4 For Diff < Threshold, repeat Step 2 and 3 when \(k = 4\). After that, if Diff > Threshold, then \(M_{k} = 3\) else \(M_{k} = 4\). This step aims to shortlist all the intermediate relay-nodes that have very close minimum value links, and will be repeated once again as long as the Diff value is below the targeted threshold.

Step 5 Select the best two relay-nodes among the previous shortlisted relay-nodes based on their expected performance, which will be calculated as the multiplication of their forward and backward links as below:

$$\begin{aligned} {\text{RN}}_{i} & = \max_{{a_{k} }} \left( {\left| {f_{{a_{k} }} \left| \times \right|b_{{a_{k} }} } \right|} \right);a_{k} = \left\{ {1,2, \ldots M_{k} } \right\} \\ {\text{RN}}_{j} & = \max_{{a_{l} }} \left( {\left| {f_{{a_{l} }} \left| \times \right|b_{{a_{l} }} } \right|} \right);a_{l} = \{ 1,2, \ldots M_{k} ;a_{l} \ne a_{k} \} \\ \end{aligned}$$
(6d)

From (6d), it is clearly observed that \(i = a_{k}\) and \(j = a_{l}\). An example for the proposed selection technique is available in Sect. 2 as well as more details related to the previous steps are explained in the flowchart shown in Fig. 3. Let us now discuss the complexity of the proposed relay-selection technique. First of all, steps 1 and 2 have the same complexity of the best-known relay selection technique [10,11,12]. Therefore, we have added steps 3, 4, and 5 to modify the best-known technique. Note that the sorting of the forward and backward channels is already applied in steps 1 and 2. In general, the proposed algorithm terminates after checking two to four relay-nodes causing a negligible complexity in this case. However, let us discuss the worst-case scenario when the proposed algorithm checks all the available relay-nodes. In step 3, the algorithm performs (R − 1) subtractions and (R − 1) divisions, and in step 4, it compares the results of step 3 with the threshold value, resulting in (R − 1) comparisons. In step 5, it multiplies the forward channel value with the backward channel value for the selected relay-nodes and selects the ones with the highest two values resulting in (R − 1) multiplications and (2R − 3) comparisons. This means that the proposed algorithm performs (3R − 4) comparisons, (R − 1) subtractions, (R − 1) divisions and (R − 1) multiplications. Therefore, in the worst-case scenario, the complexity of these three added steps is linearly increasing with the increase of the number of available relay-nodes. However, in almost all scenarios, the algorithm terminates after 2–4 iterations only, without the need to go through R − 1 iterations. Note that the complexity of the proposed algorithm can be fixed by setting the number of iterations to K. This means that in steps 1 and 2, the algorithm selects the best K relays, e.g., K = 4. In step 3, the algorithm performs only (K − 1 = 3) subtractions and (K − 1 = 3) divisions. In step 4, it performs (K − 1 = 3) comparisons. In step 5, it performs (2K − 3 = 5) comparisons and (K − 1 = 3) multiplications. In the aforementioned scenario, the complexity of the proposed algorithm becomes negligible. After that, those two selected intermediate relay-nodes (\({\text{RN}}_{i} \;{\text{and}}\;{\text{RN}}_{j}\)) will perform orthogonal STC technique using Alamouti scheme to enhance the overall system’s diversity and gain without adding extra decoding complexity. In the following step, the two selected intermediate relay-nodes (\({\text{RN}}_{i} \;{\text{and}}\;{\text{RN}}_{j}\)) broadcast their combined and decoded message vectors in the third time slot toward the peripheral-nodes, so that, the second peripheral-node will receive:

$${\varvec{y}}_{{{\text{PN}}_{2} }} = \sqrt {{P}_{{{\text{RN}}_{i} }} } b_{i} A_{i} {\varvec{z}}_{R,i} + \sqrt {{P}_{{{\text{RN}}_{j} }} } b_{j} A_{j} ({\varvec{z}}_{R,j} )^{*} + {\varvec{n}}_{{{\text{PN}}_{2} }} ,$$
(7)

where \(A_{i} = \left[ {\begin{array}{*{20}c} 1 & 0 \\ 0 & 1 \\ \end{array} } \right], A_{j} = \left[ {\begin{array}{*{20}c} 0 & 1 \\ { - \,1} & 0 \\ \end{array} } \right]\), and \({\varvec{n}}_{{{\text{PN}}_{2} }}\) represents the noise signal vector at the second peripheral-node PN2 received in the third time slot. Similarly, ML decoding scheme will also be performed at the peripheral-nodes to recover the received message vectors. Note here that the concerned peripheral-node can retrieve the data message vectors using a symbol-by-symbol detector, instead of applying the ML decoder, which has a linear decoding complexity based on the knowledge of its own data message \({\varvec{z}}_{{P_{2} }} ,\user2{ }\) and by applying the inverse of the combination function used at the rth relay-node \({\mathcal{R}}{\text{N}}\)r similarly as in [2, 3]. Note that if only one relay (\(R = 1\)) is available between the communicating terminals, the selection technique does not have any option other than the available relay to be selected to facilitate the needed communication between them. In this case, the relay receives the information symbols from the communicating terminals, combine them using (5) and forward the resulting symbol to the terminals without applying any STC technique.

4 BER performance analysis

In this section, we derive the mathematical model of the average BER performance of the proposed relay selection technique using binary phase shift key (BPSK) modulation according to the assumptions proposed in Sect. 2. In this analysis, we assume that all relay-nodes are ideal as in [13, 14, 27] and all noise signals are drawn from an independently distributed Gaussian random variables with zero mean and covariance \(\sigma^{2} {\varvec{I}}_{T}\). Now, the proposed relay-node selection technique, defined in Eqs. (6a)–(6d) above, selects the ith and jth relay-nodes with \({P}_{{RN_{i} }} = {P}_{{{\text{RN}}_{j} }} = {P}_{{{\text{RN}} }} ,\) and considering that the SNR of the link between \({\mathcal{R}}{\text{N}}_{r}\) and \({\text{PN}}_{1}\) is denoted by \({\upgamma }_{r}^{{{\text{PN}}_{1} }} = \gamma \left| {f_{r} } \right|^{2}\), the SNR of the link between \({\mathcal{R}}{\text{N}}_{r}\) and \({\text{PN}}_{2}\) is denoted by \({\upgamma }_{r}^{{{\text{PN}}_{2} }} = \gamma \left| {b_{r} } \right|^{2}\), and \(\gamma = P_{{{\mathcal{R}}{\text{N}}}} /\sigma^{2}\) is the mean SNR at the \(r{{\rm th}}\) relay \({\mathcal{R}}{\text{N}}_{r}\). Let us rearrange \({\upgamma }_{r}^{{{\text{PN}}_{t} }} , r = 1, \ldots ,{\mathcal{R}},{{t}} = 1,{ }2\) increasingly such that \({\upgamma }_{1}^{{{\text{PN}}_{t} }} \le {\upgamma }_{2}^{{{\text{PN}}_{t} }} \le \ldots \le {\upgamma }_{R}^{{{\text{PN}}_{t} }}\) and denote \(w_{1}^{{{\text{PN}}_{t} }} = {\upgamma }_{1}^{{{\text{PN}}_{t} }}\) and \(w_{l}^{{{\text{PN}}_{t} }} = {\upgamma }_{l}^{{{\text{PN}}_{t} }} - {\upgamma }_{{\left( {l - 1} \right) }}^{{{\text{PN}}_{t} }}\) for \(l = 2, \ldots , R.\) Note here that the independent factors, \(w_{l}\) for \(l = 1, \ldots ,R\), are following a probability distribution function as depicted in the below equation [13, 14, 27]:

$$f_{{w_{l} }} \left( {w_{l} } \right) = \frac{{{\mathcal{R}} - l - 1}}{\gamma }\exp \left( { - \frac{{{\mathcal{R}} - l - 1}}{\gamma }w_{l} } \right)$$
(8)

In this relay selection technique, as a first step the ith relay-node \({\mathcal{R}}{\text{N}}_{i}\) is selected among the \(R\) available relay-nodes based on the selection criterion, explained in Eqs. (6a)–(6d), considering that \(b_{i}\) is the link between \({\mathcal{R}}{\text{N}}_{i}\) and \({\text{PN}}_{2}\) with \({\upgamma }_{{\alpha_{1} }}^{{{\text{PN}}_{2} }}\) and \(f_{i}\) is the link between \({\mathcal{R}}{\text{N}}_{i}\) and \({\text{PN}}_{1}\) with \({\upgamma }_{{u_{1} }}^{{{\text{PN}}_{1} }}\) where \({\upgamma }_{{u_{1} }}^{{{\text{PN}}_{1} }} \ge \gamma_{{{\raise0.7ex\hbox{$R$} \!\mathord{\left/ {\vphantom {R 2}}\right.\kern-\nulldelimiterspace} \!\lower0.7ex\hbox{$2$}}}}^{{{\text{PN}}_{2} }}\), and \(u_{1}\) could be any uth greater than \(\alpha_{1}\). For the second step, the jth relay-node \({\mathcal{R}}{\text{N}}_{j}\) is selected similarly from the remaining \(\left( {{\text{R}} - 1} \right)\) relay-nodes with \(b_{j}\) is the link between \({\mathcal{R}}{\text{N}}_{j }\) and \({\text{PN}}_{2}\) with \({\upgamma }_{{\alpha_{2} }}^{{{\text{PN}}_{2} }}\), and \(f_{j}\) is the link between \({\mathcal{R}}{\text{N}}_{j }\) and \({\text{PN}}_{1}\) with \({\upgamma }_{{u_{1} }}^{{{\text{PN}}_{1} }} \ge {\upgamma }_{{\alpha_{2} }}^{{{\text{PN}}_{2} }}\), and \(u_{2}\) could be any uth greater than \(\alpha_{2}\) and assuming that \({\upgamma }_{{\alpha_{1} }}^{{{\text{PN}}_{2} }} \ge {\upgamma }_{{\alpha_{2} }}^{{{\text{PN}}_{2} }} .\) As a result, the average BER of the proposed double-relay selection technique can be expressed as:

$$\begin{aligned} P\left( \gamma \right) & = \frac{1}{4}E\left\{ {Q\left( {\sqrt {\gamma_{{\alpha_{1} }}^{{{\text{PN}}_{2} }} + \gamma_{{\alpha_{2} }}^{{{\text{PN}}_{2} }} } } \right) + Q\left( {\sqrt {\gamma_{{u_{1} }}^{{{\text{PN}}_{1} }} + \gamma_{{u_{2} }}^{{{\text{PN}}_{1} }} } } \right)} \right\} \\ & \quad + \,\frac{1}{4}E\left\{ {Q\left( {\sqrt {\gamma_{{\alpha_{1} }}^{{{\text{PN}}_{2} }} + \gamma_{{u_{2} }}^{{{\text{PN}}_{1} }} } } \right) + Q\left( {\sqrt {\gamma_{{\alpha_{2} }}^{{{\text{PN}}_{2} }} + \gamma_{{u_{1} }}^{{{\text{PN}}_{1} }} } } \right)} \right\} \\ & = \frac{1}{4}\left( {P_{1} + P_{2} + P_{3} + P_{4} } \right) \\ \end{aligned}$$
(9)

It can be clearly seen that this equation is a combination of four terms where the first term (P1) can be calculated using the moment-generation function (MGF) as:

$$Q_{1} = \gamma_{{\alpha_{1} }}^{{{\text{PN}}_{2} }} + \gamma_{{\alpha_{2} }}^{{{\text{PN}}_{2} }} = \mathop \sum \limits_{i = 1}^{{\alpha_{2} }} \omega_{i} + \mathop \sum \limits_{i = 1}^{{\alpha_{1} }} \omega_{i} = 2\mathop \sum \limits_{i = 1}^{{\alpha_{2} }} \omega_{i} + \mathop \sum \limits_{{i = \alpha_{2} + 1}}^{{\alpha_{1} }} \omega_{i}$$
(10)

Then, the MGF of \(Q_{1}\) can be also calculated as [13, 14, 27]:

$$\begin{aligned} {M}_{{Q_{1} }} \left( s \right) & = \mathop \int \limits_{0}^{\infty } \ldots \mathop \int \limits_{0}^{\infty } \left( {\mathop \prod \limits_{i = 1}^{R} f_{{w_{l} }} \left( {w_{i} } \right)} \right)\exp \left( {sQ_{1} } \right){\text{d}}\omega_{1} \ldots {\text{d}}\omega_{R} \\ & = \mathop \prod \limits_{i = 1}^{R} \mathop \int \limits_{0}^{\infty } f_{{w_{i} }} \left( {w_{i} } \right)\exp \left( {2s\omega_{i} } \right){\text{d}}\omega_{i} \mathop \prod \limits_{{i = \alpha_{2} + 1}}^{{\alpha_{1} }} \mathop \int \limits_{0}^{\infty } f_{{w_{i} }} \left( {w_{i} } \right)\exp \left( {s\omega_{i} } \right){\text{d}}\omega_{i} \\ & = \frac{{\alpha_{1} !\left( { - 1} \right)^{{\alpha_{1} }} }}{{2^{{\alpha_{2} }} \gamma^{{\alpha_{1} }} }}\mathop \prod \limits_{i = 1}^{{\alpha_{2} }} \frac{1}{{s - \frac{{\alpha_{1} - i + 1}}{2\gamma }}}\mathop \prod \limits_{{i = \alpha_{2} + 1}}^{{\alpha_{1} }} \frac{1}{{s - \frac{{\alpha_{1} - i + 1}}{\gamma }}} \\ \end{aligned}$$
(11)

Now, we can use the partial fraction method to simplify the given equation above to:

$$\begin{aligned} {M}_{{Q_{1} }} \left( s \right) & = \frac{{\alpha_{1} !\left( { - 1} \right)^{{\alpha_{1} }} }}{{2^{{\alpha_{2} }} \gamma^{{\alpha_{1} }} }}\mathop \sum \limits_{i = 1}^{{\alpha_{2} }} \frac{1}{{\left( {s - \frac{{\alpha_{1} - i + 1}}{2\gamma }} \right)\mathop \prod \nolimits_{{\begin{array}{*{20}c} {j = 1} \\ {j \ne i} \\ \end{array} }}^{{{\raise0.7ex\hbox{$R$} \!\mathord{\left/ {\vphantom {R 2}}\right.\kern-\nulldelimiterspace} \!\lower0.7ex\hbox{$2$}}}} \left( {\frac{{\alpha_{1} - i + 1}}{2\gamma } - \frac{{\alpha_{1} - j + 1}}{2\gamma }} \right)}} \\ & \quad \times \,\mathop \sum \limits_{{p = \alpha_{2} + 1}}^{{\alpha_{1} }} \frac{1}{{\left( {s - \frac{{\alpha_{1} - p + 1}}{\gamma }} \right)\mathop \prod \nolimits_{{\begin{array}{*{20}c} {r = \alpha_{2} + 1} \\ {j \ne p} \\ \end{array} }}^{{\alpha_{1} }} \left( {\frac{{\alpha_{1} - p + 1}}{\gamma } - \frac{{\alpha_{1} - r + 1}}{\gamma }} \right)}} \\ & = \frac{{\alpha_{1} !\left( { - 1} \right)^{{\alpha_{1} }} }}{{2\gamma^{2} }}\mathop \sum \limits_{i = 1}^{{\alpha_{2} }} \mathop \sum \limits_{{p = \alpha_{2} + 1}}^{{\alpha_{1} }} \frac{1}{{\mathop \prod \nolimits_{{\begin{array}{*{20}c} {j = 1} \\ {j \ne i} \\ \end{array} }}^{{\alpha_{2} }} \left( {j - i} \right)\mathop \prod \nolimits_{{\begin{array}{*{20}c} {r = \alpha_{2} + 1} \\ {r \ne p} \\ \end{array} }}^{{\alpha_{1} }} \left( {r - p} \right)}} \times \frac{1}{{\left( {s - \frac{{\alpha_{1} - i + 1}}{2\gamma }} \right)\left( {s - \frac{{\alpha_{1} - p + 1}}{\gamma }} \right)}} \\ \end{aligned}$$
(12)

Therefore, the term \(P_{1}\) can now be expressed as [13, 14, 27]

$$P_{1} = \frac{1}{2\pi }\mathop \int \limits_{0}^{{{\raise0.7ex\hbox{$\pi $} \!\mathord{\left/ {\vphantom {\pi 2}}\right.\kern-\nulldelimiterspace} \!\lower0.7ex\hbox{$2$}}}} {M}_{{Q_{1} }} \left( {\frac{ - 1}{{2\sin^{2} \left( \varphi \right)}}} \right){\text{d}}\varphi$$
(13)

Finally, combining Eqs. (11), (12) and (13), then \(P_{1}\) can be rewritten as:

$$\begin{aligned} P_{1} & = \frac{{\alpha_{1} !\left( { - 1} \right)^{{\alpha_{1} }} }}{{4\gamma^{2} }}\mathop \sum \limits_{i = 1}^{{\alpha_{2} }} \mathop \sum \limits_{{p = \alpha_{2} + 1}}^{{\alpha_{1} }} \frac{1}{{\mathop \prod \nolimits_{{\begin{array}{*{20}c} {j = 1} \\ {j \ne i} \\ \end{array} }}^{{\alpha_{2} }} \left( {j - i} \right)\mathop \prod \nolimits_{{\begin{array}{*{20}c} {r = \alpha_{2} + 1} \\ {r \ne p} \\ \end{array} }}^{{\alpha_{1} }} \left( {r - p} \right)}} \\ & \quad \times \,\frac{1}{\pi }\mathop \int \limits_{0}^{{{\raise0.7ex\hbox{$\pi $} \!\mathord{\left/ {\vphantom {\pi 2}}\right.\kern-\nulldelimiterspace} \!\lower0.7ex\hbox{$2$}}}} \frac{1}{{\left( {\frac{1}{{2\sin^{2} \left( \varphi \right)}} + \frac{{\alpha_{1} - i + 1}}{2\gamma }} \right)\left( {\frac{1}{{2\sin^{2} \left( \varphi \right)}} + \frac{{\alpha_{1} - p + 1}}{\gamma }} \right)}}{\text{d}}\varphi \\ \end{aligned}$$
(14)

Similarly, the terms \(P_{2} ,\) \(P_{3}\), and \(P_{4}\) presented in Eq. (9) can be found by following the same procedure that leads to the calculation of \(P_{1 }\) presented in Eq. (14). For \(P_{2}\), considering that \(u_{1} \ge u_{2}\) and using the MGF of \(Q_{2} = {\upgamma }_{{u_{1} }}^{{{\text{PN}}_{1} }} + {\upgamma }_{{u_{2} }}^{{{\text{PN}}_{1} }}\), for \(P_{3}\) given that \(u_{2} \ge \alpha_{1}\), and using MGF of \(Q_{3} = {\upgamma }_{{u_{2} }}^{{{\text{PN}}_{1} }} + {\upgamma }_{{\alpha_{1} }}^{{{\text{PN}}_{2} }}\), and for \(P_{4}\) given that \(u_{1} \ge \alpha_{2}\) and using MGF of \(Q_{4} = {\upgamma }_{{u_{1} }}^{{{\text{PN}}_{1} }} + {\upgamma }_{{\alpha_{2} }}^{{{\text{PN}}_{2} }} , P_{2}\), \(P_{3}\) and \(P_{4}\) can be calculated as follows:

$$Q_{2} = \gamma_{{\alpha_{1} }}^{{{\text{PN}}_{2} }} + \gamma_{{\alpha_{2} }}^{{{\text{PN}}_{2} }} = \mathop \sum \limits_{i = 1}^{{u_{1} }} \omega_{i} + \mathop \sum \limits_{i = 1}^{{u_{2} }} \omega_{i} = 2\mathop \sum \limits_{i = 1}^{{u_{2} }} \omega_{i} + \mathop \sum \limits_{{i = u_{2} + 1}}^{{u_{1} }} \omega_{i}$$
(15)
$$\begin{aligned} {M}_{{Q_{2} }} \left( s \right) & = \mathop \int \limits_{0}^{\infty } \ldots \mathop \int \limits_{0}^{\infty } \left( {\mathop \prod \limits_{i = 1}^{R} f_{{w_{l} }} \left( {w_{i} } \right)} \right)\exp \left( {sQ_{2} } \right){\text{d}}\omega_{1} \ldots {\text{d}}\omega_{R} \\ & = \mathop \prod \limits_{i = 1}^{{u_{2} }} \mathop \int \limits_{0}^{\infty } f_{{w_{i} }} \left( {w_{i} } \right)\exp \left( {2s\omega_{i} } \right){\text{d}}\omega_{i} \mathop \prod \limits_{{i = u_{2} + 1}}^{{u_{1} }} \mathop \int \limits_{0}^{\infty } f_{{w_{i} }} \left( {w_{i} } \right)\exp \left( {s\omega_{i} } \right){\text{d}}\omega_{i} \\ & = \frac{{u_{1} !\left( { - 1} \right)^{{u_{1} }} }}{{2^{{u_{2} }} \gamma^{{u_{1} }} }}\mathop \prod \limits_{i = 1}^{{u_{2} }} \frac{1}{{s - \frac{{u_{1} - i + 1}}{2\gamma }}}\mathop \prod \limits_{{i = u_{2} + 1}}^{{u_{1} }} \frac{1}{{s - \frac{{u_{1} - i + 1}}{\gamma }}} \\ \end{aligned}$$
(16)
$$Q_{3} = \gamma_{{u_{2} }}^{{{\text{PN}}_{1} }} + \gamma_{{\alpha_{1} }}^{{{\text{PN}}_{2} }} = \mathop \sum \limits_{i = 1}^{{u_{2} }} \omega_{i} + \mathop \sum \limits_{i = 1}^{{\alpha_{1} }} \omega_{i} = 2\mathop \sum \limits_{i = 1}^{{\alpha_{1} }} \omega_{i} + \mathop \sum \limits_{{i = \alpha_{1} + 1}}^{{u_{2} }} \omega_{i}$$
(17)
$$\begin{aligned} {M}_{{Q_{3} }} \left( s \right) & = \mathop \int \limits_{0}^{\infty } \ldots \mathop \int \limits_{0}^{\infty } \left( {\mathop \prod \limits_{i = 1}^{R} f_{{w_{l} }} \left( {w_{i} } \right)} \right)\exp \left( {sQ_{2} } \right){\text{d}}\omega_{1} \ldots {\text{d}}\omega_{R} \\ & = \mathop \prod \limits_{i = 1}^{{\alpha_{1} }} \mathop \int \limits_{0}^{\infty } f_{{w_{i} }} \left( {w_{i} } \right)\exp \left( {2s\omega_{i} } \right){\text{d}}\omega_{i} \mathop \prod \limits_{{i = \alpha_{1} + 1}}^{{u_{2} }} \mathop \int \limits_{0}^{\infty } f_{{w_{i} }} \left( {w_{i} } \right)\exp \left( {s\omega_{i} } \right){\text{d}}\omega_{i} \\ & = \frac{{u_{2} !\left( { - 1} \right)^{{u_{2} }} }}{{2^{{\alpha_{1} }} \gamma^{{u_{2} }} }}\mathop \prod \limits_{i = 1}^{{\alpha_{1} }} \frac{1}{{s - \frac{{u_{2} - i + 1}}{2\gamma }}}\mathop \prod \limits_{{i = \alpha_{1} + 1}}^{{u_{2} }} \frac{1}{{s - \frac{{u_{2} - i + 1}}{\gamma }}} \\ \end{aligned}$$
(18)
$$Q_{4} = \gamma_{{u_{1} }}^{{{\text{PN}}_{1} }} + \gamma_{{\alpha_{2} }}^{{{\text{PN}}_{2} }} = \mathop \sum \limits_{i = 1}^{{u_{1} }} \omega_{i} + \mathop \sum \limits_{i = 1}^{{\alpha_{2} }} \omega_{i} = 2\mathop \sum \limits_{i = 1}^{{\alpha_{2} }} \omega_{i} + \mathop \sum \limits_{{i = \alpha_{2} + 1}}^{{u_{1} }} \omega_{i}$$
(19)
$$\begin{aligned} {M}_{{Q_{4} }} \left( s \right) & = \mathop \int \limits_{0}^{\infty } \ldots \mathop \int \limits_{0}^{\infty } \left( {\mathop \prod \limits_{i = 1}^{R} f_{{w_{l} }} \left( {w_{i} } \right)} \right)\exp \left( {sQ_{2} } \right){\text{d}}\omega_{1} \ldots {\text{d}}\omega_{R} \\ & = \mathop \prod \limits_{i = 1}^{{\alpha_{2} }} \mathop \int \limits_{0}^{\infty } f_{{w_{i} }} \left( {w_{i} } \right)\exp \left( {2s\omega_{i} } \right){\text{d}}\omega_{i} \mathop \prod \limits_{{i = \alpha_{2} + 1}}^{{u_{1} }} \mathop \int \limits_{0}^{\infty } f_{{w_{i} }} \left( {w_{i} } \right)\exp \left( {s\omega_{i} } \right){\text{d}}\omega_{i} \\ & = \frac{{u_{1} !\left( { - 1} \right)^{{u_{1} }} }}{{2^{{\alpha_{2} }} \gamma^{{u_{1} }} }}\mathop \prod \limits_{i = 1}^{{\alpha_{2} }} \frac{1}{{s - \frac{{u_{1} - i + 1}}{2\gamma }}}\mathop \prod \limits_{{i = \alpha_{2} + 1}}^{{u_{1} }} \frac{1}{{s - \frac{{u_{1} - i + 1}}{\gamma }}} \\ \end{aligned}$$
(20)

Again, using partial fraction expansion we get:

$${M}_{{Q_{2} }} \left( s \right) = \frac{{u_{1} !\left( { - 1} \right)^{{u_{1} }} }}{{2\gamma^{2} }}\mathop \sum \limits_{i = 1}^{{u_{2} }} \mathop \sum \limits_{{p = u_{2} + 1}}^{{u_{1} }} \frac{1}{{\mathop \prod \nolimits_{{\begin{array}{*{20}c} {j = 1} \\ {j \ne i} \\ \end{array} }}^{{u_{2} }} \left( {j - i} \right)\mathop \prod \nolimits_{{\begin{array}{*{20}c} {r = u_{2} + 1} \\ {r \ne p} \\ \end{array} }}^{{u_{1} }} \left( {r - p} \right)}} \times \frac{1}{{\left( {s - \frac{{u_{1} - i + 1}}{2\gamma }} \right)\left( {s - \frac{{u_{1} - p + 1}}{\gamma }} \right)}}$$
(21)
$${M}_{{Q_{3} }} \left( s \right) = \frac{{u_{2} !\left( { - 1} \right)^{{u_{2} }} }}{{2\gamma^{2} }}\mathop \sum \limits_{i = 1}^{{\alpha_{1} }} \mathop \sum \limits_{{p = \alpha_{1} + 1}}^{{u_{2} }} \frac{1}{{\mathop \prod \nolimits_{{\begin{array}{*{20}c} {j = 1} \\ {j \ne i} \\ \end{array} }}^{{\alpha_{1} }} \left( {j - i} \right)\mathop \prod \nolimits_{{\begin{array}{*{20}c} {r = \alpha_{1} + 1} \\ {r \ne p} \\ \end{array} }}^{{u_{2} }} \left( {r - p} \right)}} \times \frac{1}{{\left( {s - \frac{{u_{2} - i + 1}}{2\gamma }} \right)\left( {s - \frac{{u_{2} - p + 1}}{\gamma }} \right)}}$$
(22)
$${M}_{{Q_{4} }} \left( s \right) = \frac{{u_{1} !\left( { - 1} \right)^{{u_{1} }} }}{{2\gamma^{2} }}\mathop \sum \limits_{i = 1}^{{\alpha_{2} }} \mathop \sum \limits_{{p = \alpha_{2} + 1}}^{{u_{1} }} \frac{1}{{\mathop \prod \nolimits_{{\begin{array}{*{20}c} {j = 1} \\ {j \ne i} \\ \end{array} }}^{{\alpha_{2} }} \left( {j - i} \right)\mathop \prod \nolimits_{{\begin{array}{*{20}c} {r = \alpha_{2} + 1} \\ {r \ne p} \\ \end{array} }}^{{u_{1} }} \left( {r - p} \right)}} \times \frac{1}{{\left( {s - \frac{{u_{1} - i + 1}}{2\gamma }} \right)\left( {s - \frac{{u_{1} - p + 1}}{\gamma }} \right)}}$$
(23)

Then, the term of P2, P3 and P4 can be rewritten as:

$$P_{2} = \frac{1}{2\pi }\mathop \int \limits_{0}^{{{\raise0.7ex\hbox{$\pi $} \!\mathord{\left/ {\vphantom {\pi 2}}\right.\kern-\nulldelimiterspace} \!\lower0.7ex\hbox{$2$}}}} {M}_{{Q_{2} }} \left( {\frac{ - 1}{{2\sin^{2} \left( \varphi \right)}}} \right){\text{d}}\varphi$$
(24)
$$P_{2} = \frac{{u_{1} !\left( { - 1} \right)^{{u_{1} }} }}{{4\gamma^{2} }}\mathop \sum \limits_{i = 1}^{{u_{2} }} \mathop \sum \limits_{{p = u_{2} + 1}}^{{u_{1} }} \frac{1}{{\mathop \prod \nolimits_{{\begin{array}{*{20}c} {j = 1} \\ {j \ne i} \\ \end{array} }}^{{u_{2} }} \left( {j - i} \right)\mathop \prod \nolimits_{{\begin{array}{*{20}c} {r = u_{2} + 1} \\ {j \ne p} \\ \end{array} }}^{{u_{1} }} \left( {r - p} \right)}} \times \frac{1}{\pi }\mathop \int \limits_{0}^{{{\raise0.7ex\hbox{$\pi $} \!\mathord{\left/ {\vphantom {\pi 2}}\right.\kern-\nulldelimiterspace} \!\lower0.7ex\hbox{$2$}}}} \frac{1}{{\left( {\frac{1}{{2\sin^{2} \left( \varphi \right)}} + \frac{{u_{1} - i + 1}}{2\gamma }} \right)\left( {\frac{1}{{2\sin^{2} \left( \varphi \right)}} + \frac{{u_{1} - p + 1}}{\gamma }} \right)}}{\text{d}}\varphi$$
(25)
$$P_{3} = \frac{1}{2\pi }\mathop \int \limits_{0}^{{{\raise0.7ex\hbox{$\pi $} \!\mathord{\left/ {\vphantom {\pi 2}}\right.\kern-\nulldelimiterspace} \!\lower0.7ex\hbox{$2$}}}} {M}_{{Q_{3} }} \left( {\frac{ - 1}{{2\sin^{2} \left( \varphi \right)}}} \right){\text{d}}\varphi$$
(26)
$$P_{3} = \frac{{u_{2} !\left( { - 1} \right)^{{u_{2} }} }}{{4\gamma^{2} }}\mathop \sum \limits_{i = 1}^{{\alpha_{1} }} \mathop \sum \limits_{{p = \alpha_{1} + 1}}^{{u_{2} }} \frac{1}{{\mathop \prod \nolimits_{{\begin{array}{*{20}c} {j = 1} \\ {j \ne i} \\ \end{array} }}^{{\alpha_{1} }} \left( {j - i} \right)\mathop \prod \nolimits_{{\begin{array}{*{20}c} {r = \alpha_{1} + 1} \\ {r \ne p} \\ \end{array} }}^{{u_{2} }} \left( {r - p} \right)}} \times \frac{1}{\pi }\mathop \int \limits_{0}^{{{\raise0.7ex\hbox{$\pi $} \!\mathord{\left/ {\vphantom {\pi 2}}\right.\kern-\nulldelimiterspace} \!\lower0.7ex\hbox{$2$}}}} \frac{1}{{\left( {\frac{1}{{2\sin^{2} \left( \varphi \right)}} + \frac{{u_{2} - i + 1}}{2\gamma }} \right)\left( {\frac{1}{{2\sin^{2} \left( \varphi \right)}} + \frac{{u_{2} - p + 1}}{\gamma }} \right)}}{\text{d}}\varphi$$
(27)
$$P_{4} = \frac{1}{2\pi }\mathop \int \limits_{0}^{{{\raise0.7ex\hbox{$\pi $} \!\mathord{\left/ {\vphantom {\pi 2}}\right.\kern-\nulldelimiterspace} \!\lower0.7ex\hbox{$2$}}}} {M}_{{Q_{4} }} \left( {\frac{ - 1}{{2\sin^{2} \left( \varphi \right)}}} \right){\text{d}}\varphi$$
(28)
$$P_{4} = \frac{{u_{1} !\left( { - 1} \right)^{{u_{1} }} }}{{4\gamma^{2} }}\mathop \sum \limits_{i = 1}^{{\alpha_{2} }} \mathop \sum \limits_{{p = \alpha_{2} + 1}}^{{u_{1} }} \frac{1}{{\mathop \prod \nolimits_{{\begin{array}{*{20}c} {j = 1} \\ {j \ne i} \\ \end{array} }}^{{\alpha_{2} }} \left( {j - i} \right)\mathop \prod \nolimits_{{\begin{array}{*{20}c} {r = \alpha_{2} + 1} \\ {r \ne p} \\ \end{array} }}^{{u_{1} }} \left( {r - p} \right)}} \times \frac{1}{\pi }\mathop \int \limits_{0}^{{{\raise0.7ex\hbox{$\pi $} \!\mathord{\left/ {\vphantom {\pi 2}}\right.\kern-\nulldelimiterspace} \!\lower0.7ex\hbox{$2$}}}} \frac{1}{{\left( {\frac{1}{{2\sin^{2} \left( \varphi \right)}} + \frac{{u_{1} - i + 1}}{2\gamma }} \right)\left( {\frac{1}{{2\sin^{2} \left( \varphi \right)}} + \frac{{u_{1} - p + 1}}{\gamma }} \right)}}{\text{d}}\varphi$$
(29)

Finally, using the final equations of \(P_{1}\), \(P_{2} ,\) \(P_{3} ,\) and \(P_{4}\) then the average BER of the suggested relay-node selection technique can be now calculated using:

$$P\left( \gamma \right) = \frac{1}{4}\left( {P_{1} + P_{2} + P_{3} + P_{4} } \right)$$
(30)

Now, assuming that the threshold value is equal to zero, then the ith relay-node \({\mathcal{R}}{\text{N}}_{i}\) is selected among the \(R\) available relay-nodes based on the selection criterion explained in Sect. 2, given that \(b_{i}\) is the link between \({\mathcal{R}}{\text{N}}_{i}\) and \({\text{PN}}_{2}\) with \({\upgamma }_{{{\raise0.7ex\hbox{$R$} \!\mathord{\left/ {\vphantom {R 2}}\right.\kern-\nulldelimiterspace} \!\lower0.7ex\hbox{$2$}}}}^{{{\text{PN}}_{2} }}\) and \(f_{i}\) is the link between \({\mathcal{R}}{\text{N}}_{i}\) and \({\text{PN}}_{1}\) with \({\upgamma }_{{u_{1} }}^{{{\text{PN}}_{1} }}\) where \({\upgamma }_{{u_{1} }}^{{{\text{PN}}_{1} }} \ge \gamma_{{{\raise0.7ex\hbox{$R$} \!\mathord{\left/ {\vphantom {R 2}}\right.\kern-\nulldelimiterspace} \!\lower0.7ex\hbox{$2$}}}}^{{{\text{PN}}_{2} }}\), and \(u_{1}\) could be any uth greater than \({\raise0.7ex\hbox{$R$} \!\mathord{\left/ {\vphantom {R 2}}\right.\kern-\nulldelimiterspace} \!\lower0.7ex\hbox{$2$}}\). After that, the jth relay-node \({\mathcal{R}}{\text{N}}_{j}\) is selected similarly from the remaining \(\left( {{{R}} - 1} \right)\) relay-nodes with \(b_{j}\) which is the link between \({\mathcal{R}}{\text{N}}_{j }\) and \({\text{PN}}_{2}\) with \({\upgamma }_{{{\raise0.7ex\hbox{${\left( {R - 1} \right)}$} \!\mathord{\left/ {\vphantom {{\left( {R - 1} \right)} 2}}\right.\kern-\nulldelimiterspace} \!\lower0.7ex\hbox{$2$}}}}^{{{\text{PN}}_{2} }}\), and \(f_{j}\) is the link between \({\mathcal{R}}{\text{N}}_{j }\) and \({\text{PN}}_{1}\) with \({\upgamma }_{{u_{2} }}^{{{\text{PN}}_{1} }}\) where \({\upgamma }_{{u_{1} }}^{{{\text{PN}}_{1} }} \ge {\upgamma }_{{{\raise0.7ex\hbox{${\left( {R - 1} \right)}$} \!\mathord{\left/ {\vphantom {{\left( {R - 1} \right)} 2}}\right.\kern-\nulldelimiterspace} \!\lower0.7ex\hbox{$2$}}}}^{{{\text{PN}}_{2} }}\) and \(u_{2}\) could be any \(u{{\rm th}}\) greater than \({\raise0.7ex\hbox{${\left( {R - 1} \right)}$} \!\mathord{\left/ {\vphantom {{\left( {R - 1} \right)} 2}}\right.\kern-\nulldelimiterspace} \!\lower0.7ex\hbox{$2$}}.\) Then, the average BER of the proposed double-relay-node selection technique can be expressed as:

$$\begin{aligned} P\left( \gamma \right) & = \frac{1}{4}E\left\{ {Q\left( {\sqrt {\gamma_{R/2}^{{{\text{PN}}_{2} }} + \gamma_{{\left( {R - 1} \right)/2}}^{{{\text{PN}}_{2} }} } } \right) + Q\left( {\sqrt {\gamma_{{u_{1} }}^{{{\text{PN}}_{1} }} + \gamma_{{u_{2} }}^{{{\text{PN}}_{1} }} } } \right)} \right\} \\ & \quad + \,\frac{1}{4}E\left\{ {Q\left( {\sqrt {\gamma_{R/2}^{{{\text{PN}}_{2} }} + \gamma_{{u_{2} }}^{{{\text{PN}}_{1} }} } } \right) + Q\left( {\sqrt {\gamma_{{\left( {R - 1} \right)/2}}^{{{\text{PN}}_{2} }} + \gamma_{{u_{1} }}^{{{\text{PN}}_{1} }} } } \right)} \right\} \\ & = \frac{1}{4}\left( {P_{1} + P_{2} + P_{3} + P_{4} } \right) \\ \end{aligned}$$
(31)

Again, this equation is composed of four terms, where the first term \(P_{1}\) can be calculated using the MGF, such that:

$$Q_{1} = \gamma_{R/2}^{{{\text{PN}}_{2} }} + \gamma_{{\left( {R - 1} \right)/2}}^{{{\text{PN}}_{2} }} = \mathop \sum \limits_{i = 1}^{{\left( {R - 1} \right)/2}} \omega_{i} + \mathop \sum \limits_{i = 1}^{R/2} \omega_{i} = 2\mathop \sum \limits_{i = 1}^{{\left( {R - 1} \right)/2}} \omega_{i} + \mathop \sum \limits_{{i = \left( {R - 1} \right)/2 + 1}}^{R/2} \omega_{i}$$
(32)

Then, the MGF of \(Q_{1}\) can be also calculated as [13, 14, 27]:

$$\begin{aligned} {M}_{{Q_{1} }} \left( s \right) & = \mathop \int \limits_{0}^{\infty } \ldots \mathop \int \limits_{0}^{\infty } \left( {\mathop \prod \limits_{i = 1}^{R} f_{{w_{l} }} \left( {w_{i} } \right)} \right){\text{exp}}\left( {sQ_{1} } \right){\text{d}}\omega_{1} \ldots {\text{d}}\omega_{R} \\ & = \mathop \prod \limits_{i = 1}^{{\left( {R - 1} \right)/2}} \mathop \int \limits_{0}^{\infty } f_{{w_{i} }} \left( {w_{i} } \right){\text{exp}}\left( {2s\omega_{i} } \right){\text{d}}\omega_{i} \mathop \prod \limits_{{i = \left( {R - 1} \right)/2 + 1}}^{R/2} \mathop \int \limits_{0}^{\infty } f_{{w_{i} }} \left( {w_{i} } \right){\text{exp}}\left( {s\omega_{i} } \right){\text{d}}\omega_{i} \\ & = \frac{{R/2!\left( { - 1} \right)^{R/2} }}{{2^{{\left( {R - 1} \right)/2}} \gamma^{R/2} }}\mathop \prod \limits_{i = 1}^{{\left( {R - 1} \right)/2}} \frac{1}{{s - \frac{R/2 - i + 1}{{2\gamma }}}}\mathop \prod \limits_{{i = \left( {R - 1} \right)/2 + 1}}^{R/2} \frac{1}{{s - \frac{R/2 - i + 1}{\gamma }}} \\ \end{aligned}$$
(33)

Now, we can use the partial fraction method to simplify the given equation above to:

$${M}_{{Q_{1} }} \left( s \right) = \frac{{R/2!\left( { - 1} \right)^{R/2} }}{{2\gamma^{2} }}\mathop \sum \limits_{i = 1}^{{\left( {R - 1} \right)/2}} \mathop \sum \limits_{{r = \left( {R - 1} \right)/2 + 1}}^{R/2} \frac{1}{{\mathop \prod \nolimits_{{\begin{array}{*{20}c} {j = 1} \\ {j \ne i} \\ \end{array} }}^{{\left( {R - 1} \right)/2}} \left( {j - i} \right)\mathop \prod \nolimits_{{\begin{array}{*{20}c} {r = \left( {R - 1} \right)/2 + 1} \\ {r \ne p} \\ \end{array} }}^{R/2} \left( {r - p} \right)}} \times \frac{1}{{\left( {s - \frac{R/2 - i + 1}{{2\gamma }}} \right)\left( {s - \frac{R/2 - p + 1}{\gamma }} \right)}}$$
(34)

Therefore, the term \(P_{1}\) can now be expressed as [13, 14, 27]

$$P_{1} = \frac{1}{2\pi }\mathop \int \limits_{0}^{{{\raise0.7ex\hbox{$\pi $} \!\mathord{\left/ {\vphantom {\pi 2}}\right.\kern-\nulldelimiterspace} \!\lower0.7ex\hbox{$2$}}}} {M}_{{Q_{1} }} \left( {\frac{ - 1}{{2\sin^{2} \left( \varphi \right)}}} \right){\text{d}}\varphi$$
(35)

Finally, combining Eqs. (33), (34) and (35), then \(P_{1}\) can be rewritten as:

$$\begin{aligned} P_{1} & = \frac{{R/2!\left( { - 1} \right)^{R/2} }}{{4\gamma^{2} }}\mathop \sum \limits_{i = 1}^{{\left( {R - 1} \right)/2}} \mathop \sum \limits_{{p = \left( {R - 1} \right)/2 + 1}}^{R/2} \frac{1}{{\mathop \prod \nolimits_{{\begin{array}{*{20}c} {j = 1} \\ {j \ne i} \\ \end{array} }}^{{\left( {R - 1} \right)/2}} \left( {j - i} \right)\mathop \prod \nolimits_{{\begin{array}{*{20}c} {r = \left( {R - 1} \right)/2 + 1} \\ {r \ne p} \\ \end{array} }}^{R/2} \left( {r - p} \right)}} \\ & \quad \times \,\frac{1}{\pi }\mathop \int \limits_{0}^{{{\raise0.7ex\hbox{$\pi $} \!\mathord{\left/ {\vphantom {\pi 2}}\right.\kern-\nulldelimiterspace} \!\lower0.7ex\hbox{$2$}}}} \frac{1}{{\left( {\frac{1}{{2sin^{2} \left( \varphi \right)}} - \frac{R/2 - i + 1}{{2\gamma }}} \right)\left( {\frac{1}{{2sin^{2} \left( \varphi \right)}} + \frac{R/2 - p + 1}{\gamma }} \right)}}d\varphi \\ \end{aligned}$$
(36)

Similarly, the terms \(P_{2} ,\) \(P_{3}\) and \(P_{4}\) in Eq. (31) can be found by following the same procedure. For \(P_{2}\), considering that \(u_{1} \ge u_{2}\), and using the MGF of \(Q_{2} = {\upgamma }_{{u_{1} }}^{{{\text{PN}}_{1} }} + {\upgamma }_{{u_{2} }}^{{{\text{PN}}_{1} }}\), for \(P_{3}\) given that \(u_{2} \ge {\raise0.7ex\hbox{$R$} \!\mathord{\left/ {\vphantom {R 2}}\right.\kern-\nulldelimiterspace} \!\lower0.7ex\hbox{$2$}}\), and using MGF of \(Q_{3} = {\upgamma }_{{u_{2} }}^{{{\text{PN}}_{1} }} + {\upgamma }_{{{\raise0.7ex\hbox{$R$} \!\mathord{\left/ {\vphantom {R 2}}\right.\kern-\nulldelimiterspace} \!\lower0.7ex\hbox{$2$}}}}^{{{\text{PN}}_{2} }}\), and for \(P_{4}\) given that \(u_{1} \ge {\raise0.7ex\hbox{${\left( {R - 1} \right)}$} \!\mathord{\left/ {\vphantom {{\left( {R - 1} \right)} 2}}\right.\kern-\nulldelimiterspace} \!\lower0.7ex\hbox{$2$}}\) and using MGF of \(Q_{4} = {\upgamma }_{{u_{1} }}^{{{\text{PN}}_{1} }} + {\upgamma }_{{{\raise0.7ex\hbox{${\left( {R - 1} \right)}$} \!\mathord{\left/ {\vphantom {{\left( {R - 1} \right)} 2}}\right.\kern-\nulldelimiterspace} \!\lower0.7ex\hbox{$2$}}}}^{{{\text{PN}}_{2} }}\), then:

$$Q_{2} = \gamma_{{u_{1} }}^{{{\text{PN}}_{1} }} + \gamma_{{u_{2} }}^{{{\text{PN}}_{1} }} = \mathop \sum \limits_{i = 1}^{{u_{1} }} \omega_{i} + \mathop \sum \limits_{i = 1}^{{u_{2} }} \omega_{i} = 2\mathop \sum \limits_{i = 1}^{{u_{2} }} \omega_{i} + \mathop \sum \limits_{{i = u_{2} + 1}}^{{u_{1} }} \omega_{i}$$
(37)
$$\begin{aligned} {M}_{{Q_{2} }} \left( s \right) & = \mathop \int \limits_{0}^{\infty } \ldots \mathop \int \limits_{0}^{\infty } \left( {\mathop \prod \limits_{i = 1}^{R} f_{{w_{l} }} \left( {w_{i} } \right)} \right)\exp \left( {sQ_{2} } \right){\text{d}}\omega_{1} \ldots {\text{d}}\omega_{R} \\ & = \mathop \prod \limits_{i = 1}^{{u_{2} }} \mathop \int \limits_{0}^{\infty } f_{{w_{i} }} \left( {w_{i} } \right)\exp \left( {2s\omega_{i} } \right){\text{d}}\omega_{i} \mathop \prod \limits_{{i = u_{2} + 1}}^{{u_{1} }} \mathop \int \limits_{0}^{\infty } f_{{w_{i} }} \left( {w_{i} } \right)\exp \left( {s\omega_{i} } \right){\text{d}}\omega_{i} \\ & = \frac{{u_{1} !\left( { - 1} \right)^{{u_{1} }} }}{{2^{{u_{2} }} \gamma^{{u_{1} }} }}\mathop \prod \limits_{i = 1}^{{u_{2} }} \frac{1}{{s - \frac{{u_{1} - i + 1}}{2\gamma }}}\mathop \prod \limits_{{i = u_{2} + 1}}^{{u_{1} }} \frac{1}{{s - \frac{{u_{1} - i + 1}}{\gamma }}} \\ \end{aligned}$$
(38)
$$Q_{3} = \gamma_{{u_{2} }}^{{{\text{PN}}_{1} }} + \gamma_{R/2}^{{{\text{PN}}_{2} }} = \mathop \sum \limits_{i = 1}^{{u_{2} }} \omega_{i} + \mathop \sum \limits_{i = 1}^{R/2} \omega_{i} = 2\mathop \sum \limits_{i = 1}^{R/2} \omega_{i} + \mathop \sum \limits_{i = R/2 + 1}^{{u_{2} }} \omega_{i}$$
(39)
$$\begin{aligned} {M}_{{Q_{3} }} \left( s \right) & = \mathop \int \limits_{0}^{\infty } \ldots \mathop \int \limits_{0}^{\infty } \left( {\mathop \prod \limits_{i = 1}^{R} f_{{w_{l} }} \left( {w_{i} } \right)} \right)\exp \left( {sQ_{3} } \right){\text{d}}\omega_{1} \ldots {\text{d}}\omega_{R} \\ & = \mathop \prod \limits_{i = 1}^{R/2} \mathop \int \limits_{0}^{\infty } f_{{w_{i} }} \left( {w_{i} } \right)\exp \left( {2s\omega_{i} } \right){\text{d}}\omega_{i} \mathop \prod \limits_{i = R/2 + 1}^{{u_{2} }} \mathop \int \limits_{0}^{\infty } f_{{w_{i} }} \left( {w_{i} } \right)\exp \left( {s\omega_{i} } \right){\text{d}}\omega_{i} \\ & = \frac{{u_{2} !\left( { - 1} \right)^{{u_{2} }} }}{{2^{R/2} \gamma^{{u_{2} }} }}\mathop \prod \limits_{i = 1}^{R/2} \frac{1}{{s - \frac{{u_{2} - i + 1}}{2\gamma }}}\mathop \prod \limits_{i = R/2 + 1}^{{u_{2} }} \frac{1}{{s - \frac{{u_{2} - i + 1}}{\gamma }}} \\ \end{aligned}$$
(40)
$$Q_{4} = \gamma_{{u_{1} }}^{{{\text{PN}}_{1} }} + \gamma_{{\left( {R - 1} \right)/2}}^{{{\text{PN}}_{2} }} = \mathop \sum \limits_{i = 1}^{{u_{1} }} \omega_{i} + \mathop \sum \limits_{i = 1}^{{\left( {R - 1} \right)/2}} \omega_{i} = 2\mathop \sum \limits_{i = 1}^{{\left( {R - 1} \right)/2}} \omega_{i} + \mathop \sum \limits_{{i = \left( {R - 1} \right)/2 + 1}}^{{u_{1} }} \omega_{i}$$
(41)
$$\begin{aligned} {M}_{{Q_{4} }} \left( s \right) & = \mathop \int \limits_{0}^{\infty } \ldots \mathop \int \limits_{0}^{\infty } \left( {\mathop \prod \limits_{i = 1}^{R} f_{{w_{l} }} \left( {w_{i} } \right)} \right)\exp \left( {sQ_{2} } \right){\text{d}}\omega_{1} \ldots {\text{d}}\omega_{R} \\ & = \mathop \prod \limits_{i = 1}^{{\left( {R - 1} \right)/2}} \mathop \int \limits_{0}^{\infty } f_{{w_{i} }} \left( {w_{i} } \right)\exp \left( {2s\omega_{i} } \right){\text{d}}\omega_{i} \mathop \prod \limits_{{i = \left( {R - 1} \right)/2 + 1}}^{{u_{1} }} \mathop \int \limits_{0}^{\infty } f_{{w_{i} }} \left( {w_{i} } \right)\exp \left( {s\omega_{i} } \right){\text{d}}\omega_{i} \\ & = \frac{{u_{1} !\left( { - 1} \right)^{{u_{1} }} }}{{2^{{\left( {R - 1} \right)/2}} \gamma^{{u_{1} }} }}\mathop \prod \limits_{i = 1}^{{\left( {R - 1} \right)/2}} \frac{1}{{s - \frac{{u_{1} - i + 1}}{2\gamma }}}\mathop \prod \limits_{{i = \left( {R - 1} \right)/2 + 1}}^{{u_{1} }} \frac{1}{{s - \frac{{u_{1} - i + 1}}{\gamma }}} \\ \end{aligned}$$
(42)

Again, using partial fraction expansion we get:

$${M}_{{Q_{2} }} \left( s \right) = \frac{{u_{1} !\left( { - 1} \right)^{{u_{1} }} }}{{2\gamma^{2} }}\mathop \sum \limits_{i = 1}^{{u_{2} }} \mathop \sum \limits_{{r = u_{2} + 1}}^{{u_{1} }} \frac{1}{{\mathop \prod \nolimits_{{\begin{array}{*{20}c} {j = 1} \\ {j \ne i} \\ \end{array} }}^{{u_{2} }} \left( {j - i} \right)\mathop \prod \nolimits_{{\begin{array}{*{20}c} {r = u_{2} + 1} \\ {r \ne p} \\ \end{array} }}^{{u_{1} }} \left( {r - p} \right)}} \times \frac{1}{{\left( {s - \frac{{u_{1} - i + 1}}{2\gamma }} \right)\left( {s - \frac{{u_{1} - p + 1}}{\gamma }} \right)}}$$
(43)
$${M}_{{Q_{3} }} \left( s \right) = \frac{{u_{2} !\left( { - 1} \right)^{{u_{2} }} }}{{4\gamma^{2} }}\mathop \sum \limits_{i = 1}^{R/2} \mathop \sum \limits_{p = R/2 + 1}^{{u_{2} }} \frac{1}{{\mathop \prod \nolimits_{{\begin{array}{*{20}c} {j = 1} \\ {j \ne i} \\ \end{array} }}^{R/2} \left( {j - i} \right)\mathop \prod \nolimits_{{\begin{array}{*{20}c} {r = R/2 + 1} \\ {r \ne p} \\ \end{array} }}^{{u_{2} }} \left( {r - p} \right)}} \times \frac{1}{{\left( {s - \frac{{u_{2} - i + 1}}{2\gamma }} \right)\left( {s - \frac{{u_{2} - p + 1}}{\gamma }} \right)}}$$
(44)
$$P_{2} = \frac{{u_{1} !\left( { - 1} \right)^{{u_{1} }} }}{{4\gamma^{2} }}\mathop \sum \limits_{i = 1}^{{u_{2} }} \mathop \sum \limits_{{p = u_{2} + 1}}^{{u_{1} }} \frac{1}{{\mathop \prod \nolimits_{{\begin{array}{*{20}c} {j = 1} \\ {j \ne i} \\ \end{array} }}^{{u_{2} }} \left( {j - i} \right)\mathop \prod \nolimits_{{\begin{array}{*{20}c} {r = u_{2} + 1} \\ {r \ne p} \\ \end{array} }}^{{u_{1} }} \left( {r - p} \right)}} \times \frac{1}{\pi }\mathop \int \limits_{0}^{{{\raise0.7ex\hbox{$\pi $} \!\mathord{\left/ {\vphantom {\pi 2}}\right.\kern-\nulldelimiterspace} \!\lower0.7ex\hbox{$2$}}}} \frac{1}{{\left( {\frac{1}{{2\sin^{2} \left( \varphi \right)}} - \frac{{u_{1} - i + 1}}{2\gamma }} \right)\left( {\frac{1}{{2\sin^{2} \left( \varphi \right)}} + \frac{{u_{1} - p + 1}}{\gamma }} \right)}}{\text{d}}\varphi$$
(45)

Then, the terms of P2, P3 and P4 can be rewritten as:

$$P_{2} = \frac{1}{2\pi }\mathop \int \limits_{0}^{{{\raise0.7ex\hbox{$\pi $} \!\mathord{\left/ {\vphantom {\pi 2}}\right.\kern-\nulldelimiterspace} \!\lower0.7ex\hbox{$2$}}}} {M}_{{Q_{2} }} \left( {\frac{ - 1}{{2\sin^{2} \left( \varphi \right)}}} \right){\text{d}}\varphi$$
(46)
$$P_{2} = \frac{{u_{1} !\left( { - 1} \right)^{{u_{1} }} }}{{4\gamma^{2} }}\mathop \sum \limits_{i = 1}^{{u_{2} }} \mathop \sum \limits_{{p = u_{2} + 1}}^{{u_{1} }} \frac{1}{{\mathop \prod \nolimits_{{\begin{array}{*{20}c} {j = 1} \\ {j \ne i} \\ \end{array} }}^{{u_{2} }} \left( {j - i} \right)\mathop \prod \nolimits_{{\begin{array}{*{20}c} {r = u_{2} + 1} \\ {r \ne p} \\ \end{array} }}^{{u_{1} }} \left( {r - p} \right)}} \times \frac{1}{\pi }\mathop \int \limits_{0}^{{{\raise0.7ex\hbox{$\pi $} \!\mathord{\left/ {\vphantom {\pi 2}}\right.\kern-\nulldelimiterspace} \!\lower0.7ex\hbox{$2$}}}} \frac{1}{{\left( {\frac{1}{{2\sin^{2} \left( \varphi \right)}} - \frac{{u_{1} - i + 1}}{2\gamma }} \right)\left( {\frac{1}{{2\sin^{2} \left( \varphi \right)}} + \frac{{u_{1} - p + 1}}{\gamma }} \right)}}{\text{d}}\varphi$$
(47)
$$P_{3} = \frac{1}{2\pi }\mathop \int \limits_{0}^{{{\raise0.7ex\hbox{$\pi $} \!\mathord{\left/ {\vphantom {\pi 2}}\right.\kern-\nulldelimiterspace} \!\lower0.7ex\hbox{$2$}}}} {M}_{{Q_{3} }} \left( {\frac{ - 1}{{2\sin^{2} \left( \varphi \right)}}} \right){\text{d}}\varphi$$
(48)
$$P_{3} = \frac{{u_{2} !\left( { - 1} \right)^{u2} }}{{4\gamma^{2} }}\mathop \sum \limits_{i = 1}^{R/2} \mathop \sum \limits_{p = R/2 + 1}^{{u_{2} }} \frac{1}{{\mathop \prod \nolimits_{{\begin{array}{*{20}c} {j = 1} \\ {j \ne i} \\ \end{array} }}^{R/2} \left( {j - i} \right)\mathop \prod \nolimits_{{\begin{array}{*{20}c} {r = R/2 + 1} \\ {r \ne p} \\ \end{array} }}^{{u_{2} }} \left( {r - p} \right)}} \times \frac{1}{\pi }\mathop \int \limits_{0}^{{{\raise0.7ex\hbox{$\pi $} \!\mathord{\left/ {\vphantom {\pi 2}}\right.\kern-\nulldelimiterspace} \!\lower0.7ex\hbox{$2$}}}} \frac{1}{{\left( {\frac{1}{{2\sin^{2} \left( \varphi \right)}} - \frac{{u_{2} - i + 1}}{2\gamma }} \right)\left( {\frac{1}{{2\sin^{2} \left( \varphi \right)}} + \frac{{u_{2} - p + 1}}{\gamma }} \right)}}{\text{d}}\varphi$$
(49)
$$P_{4} = \frac{1}{2\pi }\mathop \int \limits_{0}^{{{\raise0.7ex\hbox{$\pi $} \!\mathord{\left/ {\vphantom {\pi 2}}\right.\kern-\nulldelimiterspace} \!\lower0.7ex\hbox{$2$}}}} {M}_{{Q_{4} }} \left( {\frac{ - 1}{{2\sin^{2} \left( \varphi \right)}}} \right){\text{d}}\varphi$$
(50)
$$\begin{aligned} P_{4} & = \frac{{u_{1} !\left( { - 1} \right)^{{u_{1} }} }}{{4\gamma^{2} }}\mathop \sum \limits_{i = 1}^{{\left( {R - 1} \right)/2}} \mathop \sum \limits_{{p = \left( {R - 1} \right)/2 + 1}}^{{u_{1} }} \frac{1}{{\mathop \prod \nolimits_{{\begin{array}{*{20}c} {j = 1} \\ {j \ne i} \\ \end{array} }}^{{\left( {R - 1} \right)/2}} \left( {j - i} \right)\mathop \prod \nolimits_{{\begin{array}{*{20}c} {r = \left( {R - 1} \right)/2 + 1} \\ {r \ne p} \\ \end{array} }}^{{u_{1} }} \left( {r - p} \right)}} \\ & \quad \times \,\frac{1}{\pi }\mathop \int \limits_{0}^{{{\raise0.7ex\hbox{$\pi $} \!\mathord{\left/ {\vphantom {\pi 2}}\right.\kern-\nulldelimiterspace} \!\lower0.7ex\hbox{$2$}}}} \frac{1}{{\left( {\frac{1}{{2\sin^{2} \left( \varphi \right)}} - \frac{{u_{1} - i + 1}}{2\gamma }} \right)\left( {\frac{1}{{2\sin^{2} \left( \varphi \right)}} + \frac{{u_{1} - p + 1}}{\gamma }} \right)}}{\text{d}}\varphi \\ \end{aligned}$$
(51)

Finally, using the final equations of \(P_{1}\),\(P_{2} ,\) \(P_{3} ,\) and \(P_{4}\) then the average BER of the suggested relay-node selection technique can be now calculated using:

$$P\left( \gamma \right) = \frac{1}{4}\left( {P_{1} + P_{2} + P_{3} + P_{4} } \right)$$
(52)

5 Methods/experimental

In this section, we present the results obtained from both our conducted simulations and mathematical model presented in Sect. 4. In the simulation results, Monte Carlo runs have been used to generate the simulated performance of the proposed technique to be compared with the best known techniques and the theoretical performance attained from the mathematical equation given by (30) in Sect. 4. Note that in our system model shown in Fig. 1, we consider a half-duplex relay network with R + 2 single-antenna nodes consisting of two communicating terminals, i.e., (PN1 and PN2), that intend to communicate with each other through R intermediate single-antenna relay-nodes. We assume independent slow Rayleigh flat-fading channels with zero mean and unit variance. Furthermore, all CSI is perfectly known at all receiving nodes and all communication channels between the terminals and relays are assumed to be reciprocal. The channels are assumed to stay constant during two time slots and change to an independent realization afterward. Moreover, perfect synchronization and timing are considered. In Fig. 4, we show the simulated performance of the proposed relay-selection technique in terms of BER with the theoretical performance attained from the mathematical equation given by (30) in Sect. 4 under the scenario of a wireless cooperative network with various number of available intermediate relay-nodes R = {2; 4; 6} using BPSK constellation and assuming no direct link available between the first peripheral-node \({\text{PN}}_{1}\) and the second peripheral-node \({\text{PN}}_{2}\). This figure shows a very close matching between our simulations and mathematical model. Figure 5 shows a performance comparison in terms of the BER between our proposed double-relay selection technique with the double-max technique proposed in [11], the max–min technique proposed in [12], and the dual-relay selection technique proposed in [14] under the scenario of R = {2, 4} intermediate relay-nodes using 4-QAM constellation. Figure 6 also shows a performance comparison between the previously mentioned relay-node selection techniques but under the scenario of R = {2, 4, 6} intermediate relay-nodes using 8-PSK constellation. Both figures clearly show that our proposed technique outperforms the best available state-of-the-art relay-node selection techniques. Figure 7 shows the BER performance of our proposed dual-relay selection technique using the scenario of four available intermediate relay-nodes (R = 4) and 4-QAM constellation under different threshold values, i.e., threshold varies between 0 and 5. Note here that our proposed technique with threshold value set to zero is equivalent to the selection strategy proposed in [14]. The figure clearly shows that the best performance is achieved when the threshold value is two. To confirm this result, Fig. 8 shows the BER results of our proposed relay selection technique using 4-QAM modulation with four available intermediate relay-nodes and SNR of 20 dB under different threshold values. This figure clearly supports our findings in Fig. 7.

Fig. 4
figure 4

Theoretical and simulated BER performance versus SNR

Fig. 5
figure 5

BER versus SNR for several single- and dual-relay selection strategies using the three-phase relaying protocol with R = {2; 4} and 4-QAM modulation

Fig. 6
figure 6

BER versus SNR for several single- and dual-relay selection strategies using the three-phase relaying protocol with 8-PSK modulation and R = 2, R = 4 and R = 6

Fig. 7
figure 7

BER versus SNR for several single- and dual-relay selection strategies using the three-phase relaying protocol with R = {2; 4} and 4-QAM modulation

Fig. 8
figure 8

BER versus threshold value for dual-relay selection strategies using the three-phase relaying protocol with 4-QAM modulation, R = 4, SNR = 20 dB

Similarly, Fig. 9 shows the BER performance of our proposed dual-relay selection technique using the scenario of six available intermediate relay-nodes (R = 6) using 4-QAM constellation under different threshold values, i.e., threshold varies between 0 and 5. Again, this figure clearly shows also that the best performance is achieved when the threshold value is two. Figure 10 shows the BER results of our proposed relay selection technique using 4-QAM modulation with six available intermediate relay-nodes and SNR of 15 dB under different threshold values. This figure clearly supports our findings in Figs. 7, 8 and 9.

Fig. 9
figure 9

BER versus SNR for dual-relay selection strategies using the three-phase relaying protocol with 4-QAM modulation and R = 6

Fig. 10
figure 10

BER versus threshold value for dual-relay selection strategies using the three-phase relaying protocol with 4-QAM modulation, R = 6, SNR = 15 dB

Furthermore, Fig. 11 shows the BER performance of our proposed dual-relay selection technique using the scenario of four available intermediate relay-nodes (R = 4) using 8-PSK constellation under different threshold values, i.e., threshold varies between 0 and 5. Again, this figure clearly shows also that the best performance is achieved when the threshold value is two. Figure 12 shows the BER results of our proposed relay selection technique using 8-PSK modulation with four available intermediate relay-nodes and SNR of 25 dB under different threshold values. This figure clearly supports our findings in Figs. 7, 8 and 9.

Fig. 11
figure 11

BER versus SNR for dual-relay selection strategies using the three-phase relaying protocol with 8-PSK modulation and R = 4

Fig. 12
figure 12

BER versus threshold value for dual-relay selection strategies using the three-phase relaying protocol with 8-PSK modulation, R = 4, SNR = 25 dB

Similarly, Fig. 13 shows the BER performance of our proposed dual-relay selection technique using the scenario of six available intermediate relay-nodes (R = 6) using 8-PSK constellation under different threshold values, i.e., threshold varies between 0 and 5. Again, this figure clearly shows also that the best performance is achieved when the threshold value is two. Figure 14 shows the BER results of our proposed relay selection technique using 8-PSK modulation with six available intermediate relay-nodes and SNR of 20 dB under different threshold values. This figure clearly supports our findings in Figs. 7, 8 and 9.

Fig. 13
figure 13

BER versus SNR for dual-relay selection strategies using the three-phase relaying protocol with 8-PSK modulation and R = 6

Fig. 14
figure 14

BER versus threshold value for dual-relay selection strategies using the three-phase relaying protocol with 8-PSK modulation, R = 6, SNR = 20 dB

6 Results and discussion

From Fig. 4, we observe that the simulated performance of the suggested strategy in terms of BER is very close to the theoretical BER performance attained from Eq. (30) in Sect. 4. In Figs. 5 and 6, it can be observed that the suggested strategy that uses the three-phase relaying protocol outperforms the current state-of-the-art strategies that perform the same relaying protocol.

From Fig. 7, it is clearly shown that our proposed three-phase dual-relay-node selection technique under different threshold values outperforms the three-phase double-relay-node selection technique proposed in [14]. Noting that our proposed technique using a threshold value of zero is similar to the three-phase double-relay-node selection technique proposed in [14]. It is worth mentioning that the proposed technique which implements a three-phase relaying protocol outperforms the current state-of-the-art strategies that perform the same relaying protocol. From Fig. 8, it is observed that the BER improves while increasing the threshold value until the best performance is achieved at threshold value of two (threshold = 2); then, the performance will degrade for threshold values greater than three.

Figure 9 clearly shows that our proposed three-phase dual-relay-node selection technique under different threshold values outperforms the three-phase double-relay-node selection technique proposed in [14]. Figure 10 shows the relation between the BER performance of the relay-node network scenario discussed for Fig. 9 and the threshold values. It is very obvious that this relation is similar to that noticed in Fig. 8, the BER will improve while increasing the threshold value until the best performance is achieved at threshold value of two (Threshold = 2), then the performance will degrade for threshold values greater than three. Furthermore, we note here that the BER has been reduced by almost 3 dB when we change the threshold value in our proposed technique from zero (standard max–min selection criteria) to two.

Finally, observed results from Figs. 11 and 13 are similar to those found in Figs. 7 and 9. In addition, observed results from Figs. 12 and 14 are similar to those found in Figs. 8 and 10.

7 Conclusion

In this work, we have proposed a novel dual-relay selection strategy using the three-phase protocol based on STC. Furthermore, in this technique we have applied a network coding scheme at the selected relays in order to combine the symbols of the communicating symbols into one symbol with the same constellation. As a result, additional coding gain will be achieved. Furthermore, the analytical BER of this novel technique is investigated and proposed. The BER expression is compared to the simulation results in order to validate the analytical results. We proved as well that our novel method outperforms the most recent work and the current techniques.

Availability of data and materials

A part of the simulation data used or analyzed during the current study is available from the corresponding author on reasonable request.

Abbreviations

BER:

Bit error rate

bpcu:

Bit per channel use

BPSK:

Binary phase shift key

CSI:

Channel state information

MGF:

Moment generation function

QAM:

Quadrature amplitude modulation

SNR:

Signal-to-noise ratio

STC:

Space-time coding

ML:

Maximum likelihood

QAM:

Quadrature amplitude modulation

References

  1. P. Larsson, N. Johansson, K. Sunell, Coded bi-directional relaying. Proc. IEEE Veh. Technol. Conf. 2, 851–855 (2006)

    Google Scholar 

  2. S. Alabed, J. Paredes, A.B. Gershman, A simple distributed space-time coded strategy for two-way relay channels. IEEE Trans. Wirel. Commun. 11(4), 1260–1265 (2012)

    Article  Google Scholar 

  3. S. Alabed, M. Pesavento, A. Klein, Non-coherent distributed space-time coding techniques for two-way wireless relay networks. EURASIP Spec. Issue Sens. Array Process. 93(12), 3371–3381 (2013)

    Google Scholar 

  4. S. Alabed, M. Pesavento, A simple distributed differential transmit beamforming technique for two-way wireless relay networks, in 16th International IEEE/ITG Workshop on Smart Antennas (WSA 2012),pp. 243–247, Dresden, Germany (2012).

  5. A. Schad, S. Alabed, H. Degenhardt, M. Pesavento, Bi-directional differential beamforming for multi-antenna relaying, in 40th IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP) (2015)

  6. S. Alabed, Performance analysis of differential beamforming in decentralized networks. Int. J. Electr. Comput. Eng. 8(3), 1692–1700 (2018)

    Google Scholar 

  7. S. Alabed, Computationally efficient multi-antenna techniques for multi-user two-way wireless relay networks. Int. J. Electr. Comput. Eng. 8(3), 1684–1691 (2018)

    Google Scholar 

  8. S. Alabed, J. Paredes, A. Gershman, A low complexity decoder for quasi-orthogonal space-time block codes. IEEE Trans. Wirel. Commun. 10(3), 988–994 (2011)

    Article  Google Scholar 

  9. S. Alabed, M. Pesavento, A. Klein, Relay selection based space-time coding for two-way wireless relay networks using digital network coding, in Proceedings of the 10th International Symposium on Wireless Communication Systems (IEEE ISWCS 2013), Ilmenau, Germany (2013)

  10. Y. Li, R. Louie, B. Vucetic, Relay selection with network coding in two-way relay channels. IEEE Trans. Veh. Technol. 59(9), 4489–4499 (2010)

    Article  Google Scholar 

  11. G. Chen, Z. Tian, Y. Gong, Z. Chen, J. Chambers, Max-ratio relay selection in secure buffer-aided cooperative wireless networks. IEEE Trans. Inf. Forensics Secur. 9(4), 719–729 (2014)

    Article  Google Scholar 

  12. S. Atapattu, Y. Jing, H. Jiang, C. Tellambura, Relay selection schemes and performance analysis approximations for two-way networks. IEEE Trans. Commun. 61(3), 987–998 (2012)

    Article  Google Scholar 

  13. S. Alabed, Performance analysis of two-way DF relay selection techniques. Spec. Issue ICT Converg. Internet Things (IOT) 2(3), 91–95 (2016). https://doi.org/10.1016/j.icte.2016.08.008

    Article  Google Scholar 

  14. S. Alabed, Performance analysis of bi-directional relay selection strategy for wireless cooperative communications. EURASIP J. Wirel. Commun. Netw. (2019). https://doi.org/10.1186/s13638-019-1417-1

    Article  Google Scholar 

  15. G. Cai, Y. Fang, G. Han, J. Xu, G. Chen, Design and analysis of relay-selection strategies for two-way relay network-coded DCSK systems. IEEE Trans. Veh. Technol 67(2), 1–13 (2017)

    Google Scholar 

  16. T. Nguyen, T. Minh, P. Tran, M. Voznak, T. Duy, T. Nguyen, P. Tin, Performance enhancement for energy harvesting based two-way relay protocols in wireless ad-hoc networks with partial and full relay selection methods. Ad Hoc Netw. 84, 178–187 (2019)

    Article  Google Scholar 

  17. S. Zhou, J. Xu, Z. Niu, Interference-aware relay selection technique for two-hop relay networks with multiple source-destination pairs. IEEE Trans. Veh. Technol 62(5), 2327–2338 (2013)

    Article  Google Scholar 

  18. M. Ju, K. Hwang, H. Song, Relay selection of cooperative diversity networks with interference-limited destination. IEEE Trans. Veh. Technol 62(9), 4658–4665 (2013)

    Article  Google Scholar 

  19. Y. Fang, G. Han, P. Chen, F.C.M. Lau, G. Chen, L. Wang, A survey on DCSK-based communication systems and their application to UWB scenarios. IEEE Commun. Surv. Tuts 18(3), 1804–1837 (2016)

    Article  Google Scholar 

  20. G. Cai, Y. Fang, G. Han, Design of an adaptive multiresolution M-ary DCSK system. IEEE Commun. Lett. 21(1), 60–63 (2017)

    Article  Google Scholar 

  21. G. Cai, Y. Fang, G. Han, F.C.M. Lau, L. Wang, A square constellation-based M-ary DCSK communication system. IEEE Access 4, 6295–6303 (2016)

    Article  Google Scholar 

  22. G. Cai, L. Wang, L. Kong, G. Kaddoum, in IEEE 83rd Vehicular Technology Conference (VTC Spring). SNR estimation for FM DCSK system over multipath Rayleigh fading channels, pp. 1–5, Nanjing (2016)

  23. X. Wen, K. Law, S. Alabed, M. Pesavento, Rank-two beamforming for single-group multicasting networks using OSTBC, in Proceedings of the 7th IEEE Sensor Array and Multichannel Signal Processing Workshop (SAM), pp. 65–68 (2012)

  24. D. Taleb, S. Alabed, M. Pesavento, Optimal general-rank transmit beamforming technique for multicasting service in modern wireless networks using STTC, in Proceedings of the 19th International IEEE/ITG Workshop on Smart Antennas (WSA 2015), Ilmenau, Germany (2015)

  25. P. Chen, Z. Xie, Y. Fang, Z. Chen, S. Mumtaz, J. Rodrigues (2020) Physical-layer network coding: an efficient technique for wireless communications. IEEE Netw. Mag. 34(2), 1–7

  26. Y. Fang, P. Chen, G. Cai, F. Lau, S. Chang Liew, G. Han, Outage-limit-approaching channel coding for future wireless communications: root-protograph low-density parity-check codes. IEEE Veh. Technol. Mag. 13(2), 85–93 (2019)

    Article  Google Scholar 

  27. M. Simon, M. Alouini, Digital Communication Over Fading Channels: A Unified Approach to Performance Analysis (Wiley, Amsterdam, 2002) https://doi.org/10.1002/0471200697

    Book  Google Scholar 

Download references

Funding

This work was supported by College of Engineering and Technology, the American University of the Middle East, Kuwait.

Author information

Authors and Affiliations

Authors

Contributions

All contributions are jointly done by all authors starting from proposing the system model analyzing the system performance, optimizing the system model, verifying the correctness of the derivations, till writing and modifying the paper writing and smoothing the words in the paper. All authors read and approved the final manuscript.

Corresponding author

Correspondence to Samer Alabed.

Ethics declarations

Competing interests

The author declares that they have no competing interests.

Additional information

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 licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Alabed, S., Maaz, I. & Al-Rabayah, M. Improved two-way double-relay selection technique for cooperative wireless communications. J Wireless Com Network 2021, 57 (2021). https://doi.org/10.1186/s13638-020-01846-7

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1186/s13638-020-01846-7

Keywords