1 Introduction

Based on measurement results unveiled by Federal Communications Commission (FCC) reports in [1, 2], precious radio spectrum resources are underutilized and a large number of spectrum holes exist under traditional fixed spectrum assignment rules, which grant exclusive access to primary users (PU) and pay little attention to spectrum usage efficiency. Considering the changing radio environment and low spectrum usage efficiency, cognitive radio (CR) [3] technologies have been introduced with flexible spectrum assignment schemes to improve the spectrum usage efficiency. Furthermore, based on software-defined radio (SDR) [4] and CR [3] technologies, novel cognitive techniques with multi-domain radio environment cognition, autonomous decision making, self-reconfiguration, and intelligent learning abilities are proposed to improve both the spectrum usage efficiency and end-to-end (e2e) network performance in cognitive radio networks (CRNs) [5].

However, challenges and problems on how to allocate spectrum to different secondary users (SU) with unbalanced spectrum resources and user demands in CRNs still exist which attract many attentions in recent research studies. By using vacant spectrum resources of PU for SU data transmission, cooperative relay technique, which utilizes the resource-rich nodes to serve the resource-starving nodes as a relay, has been considered as one of the key technologies to improve spectrum usage efficiency and enhance system throughput in CRNs. In the literature, many research works have been conceived on cooperative relay techniques in CRNs for spectrum efficiency enhancement. In [6], the cooperative spectrum sensing techniques are used to enhance the reliability of detecting PU in CRNs, and a cognitive space-time-frequency coding technique has been presented to adjust its coding structure by adapting itself to the dynamic spectrum environment. And the outage performance of relay-assisted cognitive wireless relay network is evaluated and quantified within the peak power constraints for spectrum sharing in [7]. Besides, the stable throughput techniques are designed in [8] by using SU as a relay for PU link, whose benefits depend on the network topology.

Furthermore, the distributed relay node (RN) selection and routing scheme is proposed with better system coverage and spectrum efficiency compared to the centralized scheme in [9, 10]. Based on buyer and seller game model, the distributed RN selection and power control algorithms have been designed in [11] to decrease the signalling cost in traditional centralized resource allocation scheme. Moreover, the joint RN assignment and fiow routing optimization scheme has been proposed by using novel components to speed-up computation time of branch-and-cut framework in multi-hop relay networks in [12]. Besides, the linear marking mechanism based optimal RN assignment scheme has been designed with formal proof of the linear complexity in [13]. Multi-hop relay routing strategies and the NNR and FNR strategies are proposed in [14] to enhance the spectrum usage and e2e system performance in a two-dimensional geometric network in Rayleigh fading channel. By introducing the pricing variables in OFDMA cellular system, a utility maximization framework has been proposed in [15] for joint RN selection, power and bandwidth allocation to optimize the physical-layer transmission strategies for user traffic demands. To maximize the throughput of relay network, the throughput optimal network control policy has been proposed in [16] to stabilize the network for any arrival rate in its stability region.

Due to equipment limitations in transceivers, RNs can not transmit and receive data on orthogonal channel at the same time for concurrent sessions. Thus, the half-duplex method by transmitting and receiving at different time slots for RNs is paid much attention for real implementation purposes. As described in [17, 18], a centralized heuristic solution has been proposed to address the relay selection and spectrum allocation problem under an infrastructure-based secondary network architecture in CRNs to improve spectrum efficiency. However, the constrains assumed by existing works in [18] that the transmission rate of each channel is identical and the time slot allocation scheme is fixed with half time to receive and the other half to transmit are not always applicable in terms of the time-varying channel condition in practical wireless network environment. Hence, how to achieve the high spectrum efficiency and system throughput under the condition of variant achievable rate on different channels and different user's demands with cooperative relay in CRNs is still an open issue.

Therefore, the dynamic time slot allocation (DyTSA) scheme is proposed in this article by dynamic tuning the time slots allocated on each relay link for receiving and transmitting, to improve spectrum efficiency and system capacity. The proposed DyTSA scheme considers the match up of variant achievable rate on different channels and user's demands. In multiple RNs serving multiple destinations (MR-MD) scenario, the DyTSA scheme is analyzed and proved thoroughly under different scenarios with closed-form solutions. Moreover, the joint RN selection, appropriate vacant channel allocation and DyTSA scheme is designed, which is also regarded as a cross-layer optimization solution. Numerical results with different SU density conditions verify the performance improvement on system capacity and spectrum efficiency in CRNs. The rest of the article is organized as follows. Section 2 describes the system scenario and assumptions. Section 3 focuses on problem formulation. Propositions and proofs are described in Section 4. Section 5 describes the joint RN selection, channel allocation and DyTSA scheme. Section 6 focuses on the analysis of simulation results. Finally, Section 7 conclude the article.

2 System scenario and assumptions

The centralized cooperative relay scenario is shown in Figure 1 with the secondary access point (SAP) serving each SU via a direct link in a cooperative manner. It is assumed that one destination node can be served by multiple RNs and each RN can also serve several different destination nodes at the same time. As proposed in [17], each SU can send or receive data on multiple channels simultaneously with one CR equipment, but it cannot send and receive data simultaneously. Figure 2 depicts the fiow of the transmission process and the time slot allocation solution in MR-MD scenario on different channels using graph theory [19], jointly considering both the channel allocation and the RN selection schemes.

Figure 1
figure 1

Scenario of DyTSA scheme in MR-MD scenario.

Figure 2
figure 2

Flow of DyTSA scheme in MR-MD scenario.

3 Problem formulation

The CRN with relay links is denoted as a graph G = (V, E). V = {v0, v1,..., v N } is a set of N + 1 nodes with v0 as the SAP and v i (i ≠ 0) as SU. E = {e ij } denotes the set of direct links between each pair of nodes, where e ij = 1 denotes that direct link between v i and v j exists, and 0 otherwise. It is assumed that the available spectrum resource is divided into K channels with equal bandwidth W and A= { a i k } denotes the set of available channel at each node, where a i k = 1 means that channel k is available at v i . R = { r i j } N × N denotes the set of relay relation between each pair of SUs except SAP, where r ij = 1 means that v j acts as a RN for v i , and 0 otherwise. X= { x i j k } denotes the set of channel allocation on each link, where x i j k =1 depicts that channel k is allocated to link e ij for data transmission, and 0 otherwise. C= { c i j k } denotes the set of achievable rate between v i and v j on channel k with bandwidth W and c i j k ( c i j k 0 ) is calculated in (1). H= { h i j k } denotes the channel-state of different channels on various links, where h i j k means the channel-state information of channel k on link e ij , P denotes the transmit power and N0 as the background noise power.

c i j k = W l o g 1 + | h i j k | 2 P N 0
(1)

There are two types of transmissions for cooperative relay in CRNs scenario: the direct transmission (from SAP to the destination node) and the relay transmission (from SAP to the destination node via the RN). Due to different channel conditions, the achievable rate on each link is not identical as assumed in [18] by c and the fixed equal time slot allocation scheme is neither efficient nor applicable with different achievable rates on different channels in dynamic changing wireless network environment. Therefore, the DyTSA scheme, which allocates different length of time slots for receiving and transmitting at the RN in terms of variant achievable rates on different channels and the demands from destinations, has been proposed to improve the spectrum efficiency and maximize the system throughput. Suppose the time frame of data transmission from SAP v0 to the destination node v j via RN v i is denoted by T s , which is divided into two time slots t0iand t ij for receiving and transmitting on two relay links in Figure 2, where r ji = 1. α ji (0 < α ji < 1) denotes the DyTSA ratio for relay link from v0 to v j via RN v i , where α ji = t0i/T s and T s = t0i+ t ij . Also, D = {d i } denotes the transmission demand of v i , where d i ≥ 0, ∀ i. The throughput of v i is denoted by θ i , which can be calculated in three scenarios below.

3.1 Scenario 1

Destination node v i has no relay link and is not acting as a RN either, which only receives data from v0 via direct link with r ij = 0 and r ji = 0, ∀ j. The throughput of v i is depicted by θ ̃ i in (2), where C 0 i = k = 1 K c 0 i k x 0 i k is the sum of achievable rate between v0 and v i and d i is its demand.

θ ̃ i = m i n ( C 0 i , d i )
(2)

3.2 Scenario 2

Node v i acts as the RN between v0 and v j with constraint that its demand is smaller than its achievable rate as d i < C 0 i , where r ji = 1 and r ij = 0. The throughputs of its own data and relay data are depicted by θ ¯ j i and θ ¯ j i R in (3).

θ ¯ j i = d i θ ¯ j i R = α j i C 0 i - d i
(3)

3.3 Scenario 3

Node v i acts as the destination node with multiple RNs v i (1 ≤ jN, ji), and the throughput of v i via v j is depicted by θ ^ i j R , where r ij = 1 and r ji = 0. Besides, the throughput of the direct link from v0 to v i is depicted by θ ^ i j D and the total throughput at node v i is depicted by θ ^ i j in (4), where C j i = k = 1 K c j i k x j i k .

θ ^ i j R = ( 1 - α i j ) C j i θ ^ i j D = C 0 i θ ^ i j = θ ^ i j R + θ ^ i j D
(4)

In summary, the total throughput θ i for node v i can be calculated by (5) in [18].

θ i = 1 - j = 1 N r i j 1 - j = 1 N r j i θ ̃ i + j = 1 N r j i θ ¯ j i + j = 1 N r i j θ ^ i j
(5)

4 Propositions and proofs

Considering the MR-MD scenario, five propositions and proofs are analyzed and proved below in detail, including the calculation of DyTSA ratio α ji and the system throughput improvement of DyTSA scheme.

4.1 Proposition 1

Assume the RN v i serves n destinations {v j , v j +1,..., v j+n -1}. D = {d i } depicts the demand of node v i and C i j = k = 1 K c i j k x i j k depicts the sum of the achievable rate between v i and v j . Due to the assumptions that the RN could not receive and transmit simultaneously, the optimal ratio from v i to its multiple destinations is depicted by α i in (6), where α i = α qi = t0i/T s , q ∈ {j, j + 1, .. ., j + n - 1}.

α i = α q i = d i + q = j j + n - 1 C i q C 0 i + q = j j + n - 1 C i q
(6)

Proof: For each relay link r qi = 1, where q ∈ {j, j + 1,..., j + n - 1}, the data transmitted from v0 to v i must equal to the total data received at destinations {v j , v j +1,..., v j+n -1} to maximize the system throughput as θ ¯ i R = q = j j + n - 1 θ ^ q i R . Based on the formulas in (3)-(4) where θ ¯ i R = α i C 0 i - d i and θ ^ q i R = ( 1 - α q i ) C i q , ratio α i is verified by (7), where C 0 i = k = 1 K c 0 i k x 0 i k 0, C i q = k = 1 K c i q k x i q k 0 and C 0 i + q = r r + m - 1 C i q 0 .

θ ¯ i R = q = j j + n - 1 θ ^ q i R θ ¯ i R = α i C 0 i - d i q = j j + n - 1 θ ^ q i R = q = j j + n - 1 ( 1 - α q i ) C i q = ( 1 - α i ) q = j j + n - 1 C i q α i C 0 i - d i = ( 1 - α i ) q = j j + n - 1 C i q α i = d i + q = j j + n - 1 C i q C 0 i + q = j j + n - 1 C i q
(7)

4.2 Proposition 2

For RN v i selection, it must confine to the condition that its demand is no bigger than its achievable rate in (8).

0 d i C 0 i
(8)

Proof: Chosen as the RN v i , its achievable rate C0iwill change to α i C0ibased on the DyTSA scheme, which should be no smaller than its demand d i as α i C0id i to fulfill the relay task to multiple destinations as shown in (9), where C 0 i 0, q = j j + n - 1 C i q >0 and C 0 i + q = j j + n - 1 C i q >0.

α i C 0 i d i α i C 0 i - d i = ( C 0 i - d i ) q = j j + n - 1 C i q C 0 i + q = j j + n - 1 C i q 0 0 d i C 0 i
(9)

4.3 Proposition 3

The throughput of dynamic scheme for relay link is no smaller than that of the fixed scheme in [18] by (10), where r = i i + m - 1 θ ¯ r R = r = i i + m - 1 ( α r C 0 r - d r ) = r = i i + m - 1 ( 1 - α r ) q = j j + n - 1 C r q , q = j j + n 1 θ ¯ q r R f i x = m i n ( C 0 r / 2 d r , 1 2 q = j j + n 1 C r q ) ,

C 0 r 0, q = j j + n - 1 C r q >0, C 0 r + q = j j + n - 1 C r q >0,0 d r C 0 r /2.

r = i i + m 1 θ ¯ r R r = i i + m 1 q = j j + n 1 θ ¯ q r R f i x
(10)

Proof: Let us define Δ = r = i i + m 1 θ ¯ r R r = i i + m 1 q = j j + n 1 θ ¯ q r R f i x and the validity of (10) transforms to prove Δ ≥ 0, which are proved by three cases below.

4.3.1 Case 1

When 0 C 0 r /2- d r < 1 2 q = j j + n - 1 C r q , then C 0 r - q = j j + n - 1 C r q -2 d r <0 and q = j j + n 1 θ ¯ q r R f i x = C 0 r / 2 d r .

Δ 1 = r = i i + m - 1 ( 1 - α r ) q = j j + n - 1 C r q - r = i i + m - 1 C 0 r 2 - d r
(11)
= r = i i + m - 1 C 0 r - d r C 0 r + q = j j + n - 1 C r q q = j j + n - 1 C r q - C 0 r 2 + d r
(12)
= - r = i i + m - 1 C 0 r C 0 r - q = j j + n - 1 C r q - 2 d r 2 C 0 r + q = j j + n - 1 C r q > 0 Δ 1 > 0
(13)

4.3.2 Case 2

When C 0 r /2- d r > 1 2 q = j j + n - 1 C r q , then C 0 r - q = j j + n - 1 C r q -2 d r >0 and q = j j + n 1 θ ¯ q r R f i x = 1 2 q = j j + n 1 C r q .

Δ 2 = r = i i + m - 1 ( 1 - α r ) q = j j + n - 1 C r q - r = i i + m - 1 1 2 q = j j + n - 1 C r q
(14)
= r = i i + m - 1 C 0 r - d r C 0 r + q = j j + n - 1 C r q q = j j + n - 1 C r q - 1 2 q = j j + n - 1 C r q
(15)
= r = i i + m - 1 C 0 r - q = j j + n - 1 C r q - 2 d r q = j j + n - 1 C r q 2 C 0 r + q = j j + n - 1 C r q > 0
(16)
Δ 2 > 0
(17)

4.3.3 Case 3

When C 0 r /2- d r = 1 2 q = j j + n - 1 C r q , then C 0 r - q = j j + n - 1 C r q -2 d r =0 and q = j j + n 1 θ ¯ q r R f i x = C 0 r / 2 d r = 1 2 q = j j + n 1 C r q .

Δ 3 = r = i i + m - 1 ( 1 - α r ) q = j j + n - 1 C r q - r = i i + m - 1 1 2 q = j j + n - 1 C r q
(18)
= r = i i + m - 1 C 0 r - q = j j + n - 1 C r q - 2 d r q = j j + n - 1 C r q 2 C 0 r + q = j j + n - 1 C r q = 0
(19)
Δ 3 = 0
(20)

In summary, Δ ≥ 0 is correct based on the proofs in (13)-(20), which also proves the proposition in (10).

4.4 Proposition 4

The demand d j of destination node v j equals to the sum of data from both direct link and multiple relay links, where d j = C 0 j + r = i i + m - 1 θ ^ j r R . The demand of v j is depicted in (21).

d j = C 0 j + r = i i + m - 1 ( C 0 r - d r ) C r j C 0 r + q = j j + n - 1 C r q
(21)

Proof: Under the assumption that the demand d j of destination node v j equals to the sum of data from both direct link and multiple relay links, d j is verified in (25), where θ ^ j r R = ( 1 - α j r ) C r j and α r = α q r = d r + q = j j + n - 1 C r q C 0 r + q = j j + n - 1 C r q .

d j = C 0 j + r = ι i + m - 1 θ ^ j r R
(22)
d j = C 0 j + r = i i + m - 1 ( 1 - α j r ) C r j
(23)
d j = C 0 j + r = i i + m - 1 1 - d r + q = j j + n - 1 C r q C 0 r + q = j j + n - 1 C r q C r j
(24)
d j = C 0 j + r = i i + m - 1 ( C 0 r - d r ) C r j C 0 r + q = j j + n - 1 C r q
(25)

4.5 Proposition 5

The calculation formula of the throughput θ i for node v i , which is applicable in the scenario of one RN serving one destination node in [18], is also applicable in the MR-MD scenario as shown in (5).

Proof: Under the scenario of MR-MD nodes, the sum of the relay links for destination node v i via RN v j is larger than 1, where j = 1 N r i j >1. For destination node v i , its throughput is calculated as in (5), which is proved by (29) based on (2) and (4), where j = 1 N r i j > 1 , j = 1 N r j i = 0 and d i > C0i. Finally, the throughput of v i equals to its demand d i via relay links.

θ i = 1 - j = 1 N r i j 1 - j = 1 N r j i θ ̃ i + j = 1 N r j i θ ¯ j i + j = 1 N r i j θ i j
(26)
θ i = 1 - j = 1 N r i j θ ̃ i + j = 1 N r i j θ i j
(27)
θ i = 1 - j = 1 N r i j C 0 i + j = 1 N r i j ( θ i j R + C 0 i )
(28)
θ i = C 0 i + j = 1 N r i j θ i j R = d i
(29)

5 Joint RN selection, channel allocation and DyTSA scheme

Based on the theoretical model and analysis of the throughput θ i for node v i in (5), the total throughput of all nodes in CRNs is depicted by i = 1 N θ i in (30). Considering the MR-MD scenario in CRNs, the constraints in [17, 18], where j = 1 N r i j 1 , 1 i N and i = 1 N r i j 1,1jN, will not be satisfied by all nodes. So by appropriately applying the joint RN selection, channel allocation and DyTSA scheme (R, X, α), the maximal total system throughput can be achieved by using the max fiow theory [19] as shown in (35).

i = 1 N θ i = i = 1 N 1 - j = 1 N r i j 1 - j = 1 N r j i θ ̃ i + j = 1 N r j i θ ¯ j i + j = 1 N r i j θ i j
(30)
R , X , α max i = 1 N θ i
(31)
s .t . r i j j = 1 N r j i = 0 , 1 i N , 1 j N
(32)
r i j e i j , 1 i N , 1 j N
(33)
e i j E N x i j k 1 , k
(34)
x i j k a i k a j k , i , j , k
(35)

The process of proposed joint RN selection, channel allocation and DyTSA scheme takes six steps as shown in Figure 3 and is depicted below in detail.

Figure 3
figure 3

Process of joint RN selection, channel allocation and DyTSA scheme.

Step 1: Allocate available channels to direct links from SAP node v0 to all SU nodes v i , (1 < i < N) in the centralized cooperative scenario.

Step 2: Divide nodes into two categories: spectrum "rich" nodes (0 ≤ d i C0i) as relay and "starving" nodes (d i > C0i) as destination.

Step 3: Sort all "starving" destination nodes based on its resource starving intensity as depicted by (d i - C0i) in descending order which is denoted by the set D = {v i |d i > C0i, 1 ≤ iNstrv}, where Nstrv is the total number of starving nodes and (1< Nstrv < N).

Step 4: First, select the most "starving" node D j from set D as the destination node which need RNs, where D j = {j|j = argmaxdj > C0j, 1 ≤ jNstrv}. Second, apply the augmenting path algorithm for max fiow to select appropriate RN v i for destination node D j and allocate channel for relay data transmission for D j . Third, based on the DyTSA scheme design optimal DyTSA ratio α ji between RN v i and destination node D j . And the fiow of original RN v i is depicted by f0iwhere f0i= d i . Therefore, the relay data from v i to D j via path P j is denoted by τ (P j ), where τ (P j ) = α ji C0i- f0i. By applying the augmenting path algorithm, the fiow for D j has been changed to f i , where f i = f i +τ ( P j ) . Finally, delete node Dv from the set D and update the order in "starving" destination set D.

Step 5: Check whether the set D is empty. If the "starving" destination set Dϕ and augmenting path exists, then go back to Step 4 to find the possible augmenting path for the existing "starving" nodes. Otherwise, if D = ϕ or no possible augmenting path could be found, it means that all nodes' demands are satisfied or no more spectrum and link resources are available in CRNs, then go to Step 6.

Step 6: Stop the process and calculate the system throughput of all nodes i = 1 N θ i .

6 Simulation results and analysis

6.1 Simulation setup

Considering the MR-MD scenario in CRNs as shown in Figure 4, parameters for simulation are shown in Table 1 which are based on 3GPP Case 1 relay scenario [20]. The signal to noise ratio (SNR) of RN and SU are depicted in (36)-(37). Suppose each user occupies only one resource block (RB) and the achievable capacity of each RB in cooperative relay network is depicted by (38).

Figure 4
figure 4

Simulation scenario of MR-MD in CRNs.

Table 1 Parameters for cooperative relay in CRNs
SN R RN ( R 0 i ) = P SAP - P L RN ( R 0 i ) - NP
(36)
SN R SU ( R i j ) = P RN - P L SU ( R i j ) - NP
(37)
c i j = log 2 1 + SNR ( R i j )
(38)

6.2 Results analysis

Based on the parameters in Table 1, the SUs are randomly deployed in the simulation region with SAP radius 100 m. The capacity of CRNs by using DyTSA and fix relay schemes are simulated and analyzed with different SU density. As shown in Figures 5, 6, and 7, respectively, by dynamically tuning the DyTSA ratio α ji to maximize the relay data transmission with different capacity on receiving and transmitting links, the maximum system throughput of CRNs can be achieved by applying the DyTSA scheme in contrast to the fixed scheme. Moreover, as the RNs increase, the vacant spectrum can be utilized much more efficiently, which greatly improve the system capacity in CRNs.

Figure 5
figure 5

Capacity improvement with N SU = 10 (DyTSA scheme vs. fix scheme).

Figure 6
figure 6

Capacity improvement with N SU = 30 (DyTSA scheme vs. fix scheme).

Figure 7
figure 7

Capacity improvement with N SU = 50 (DyTSA scheme vs. fix scheme).

Furthermore, the system capacity improvement by using DyTSA scheme is analyzed and compared to the fixed scheme with the increase of DyTSA ratio α ji as shown in Figure 8. Results shown that the system capacity of DyTSA scheme is no smaller than that of fixed scheme and the equilibrium point of two schemes is α ji = 0.5. Apart from the equilibrium point, α ji = 0.5, the system capacity of DyTSA scheme is always bigger than that of fixed scheme as α ji increases, where 0 < α ji < 1. Two regions of system capacity improvement are highlighted in Figure 8. Moreover, the fixed scheme is only effective when 0 ≤ d i C0i/2, while the DyTSA scheme is applicable in the general cases when 0 ≤ d i C0i, which is considered as a great improvement to the existing research works.

Figure 8
figure 8

Comparison of normalized system capacity with different DyTSA ratio α ji (DyTSA scheme vs. fix scheme).

7 Conclusion and future work

As a novel solution to improve the spectrum efficiency and system capacity in CRNs, the DyTSA based joint cooperative relay optimal scheme has been proposed and proved theoretically in this article. By dynamically tuning the DyTSA ratio on different relay links, the system capacity has increased tremendously comparing to the traditional fixed scheme. Moreover, by applying the joint RN selection, channel allocation and DyTSA scheme in MR-MD scenario, both the spectrum efficiency and system capacity have been improved greatly and verified by numerous results.

Further studies on multi-hop cooperative relay schemes in CRNs need pay much attention on interference constraints from neighbor PUs and appropriate power control scheme for RNs.