1 Introduction

The 21st century has witnessed exponential growth in innovative wireless applications. These applications have fulfilled the demand of users. However, they have dramatically increased the tele-traffic as well as the usage of electromagnetic spectrum, particularly the sub − 2 GHz frequency bands [1]. The expansion in wireless services leads to the dilemma of spectrum scarcity. To solve the spectrum shortage issue, spectrum regulatory bodies such as Federal Communication Commission (FCC) of the United States (US) and the European Telecommunications Standards Institute (ETSI), have investigated the spectrum utilization in various countries at different time intervals [2,3,4,5,6,7]. These studies revealed that the electromagnetic spectrum is not physically limited but improperly allocated. The inappropriate allocation is due to the static allocation policy, using which the spectrum band is exclusively assigned to the licensed users, also known as primary users (PUs). The PUs are those users who pay for the license and are only authorised to use the assigned spectrum band. For example, the TV stations and cellular users are considered as PUs. The studies of [2,3,4,5] have demonstrated that 15-85% of the licensed spectrum are underutilized due to the current static spectrum allocation policy, resulting in spectrum scarcity. To overcome this dilemma, the concept of dynamic spectrum allocation (DSA) has been proposed which allows the unlicensed users to find the free spectrum, access it and use for data transmission without influencing the legal rights of PUs [2, 8,9,10]. This technique leads to the emergence of cognitive radio (CR) concept, which is widely accepted for solving spectrum scarcity problems.

The term cognitive radio was first coined by Joseph Mitola in 1999 [11], to solve the problem of spectrum scarcity by efficient utilization of the licensed spectrum. According to [12], the CR as a context-aware intelligent radio has the ability to learn from the environment and dynamically re-configure its transceiver, according to the communication environment. Using these capabilities, the CUs sense the licensed spectrum and transmit their data only when the spectrum band is free from PUs. However, each CU has to vacate the licensed spectrum band upon a PU arrival. The CR concept has been elaborated in [13,14,15,16]. These capabilities encouraged the regulatory bodies to officially allow the CR concept for maximising spectrum exploitation. In this regard, the phenomenon of CR has been widely adopted by various wireless standards like IEEE 802:11y, 802:16h, 802:22 and 1900, which has been thoroughly studied in [17].

In literature, various aspects of CR such as working cycles, designing architecture, spectrum sensing, spectrum sharing, spectrum management, cooperative sensing etc [14, 15, 18,19,20,21] have widely been studied. However, limited studies have been conducted in the direction of reliable data transmission. In contrast to conventional wireless systems, in CR systems, the reliability of data transmission is not merely dependant on channel quality but also upon the activity pattern of PUs. Hence, it is highly important to accurately model the PU activity on the channel [22,23,24]. There are numerous work performed on PU and channel modeling. In our previous studies [25,26,27,28,29], we have modelled the activities of PU over the channel using discrete-time-Markov chain (DTMC), in which each state represents the status of a channel. For instance, when the channel is deemed to be free from PUs, it is assumed to be free for CR and vice versa. Following our previous work, in this paper, we also modelled the PU’s channel by two-state Markov chain having free and busy states. To be precise, busy state depicts that the channel is occupied by the PU while free state represents the scenario in which the channel is free from PU and the CR uses it for data transmission.

Secondly, the CR systems face challenges similar to conventional wireless systems, such as noise, interference, fading etc [30, 31]. Apart from these challenges, the CR systems have to face the dynamic activities of PUs, resulting in more complex CR systems. In this regard, HARQ schemes remained a favourable choice for designing a reliable data transmission scheme. For instance, the authors in [32] studied the performance of HARQ in a third generation partnership project (3GPP) long term evolution (LTE) specification over OFDMA system. D. Nguyen et al. [33] introduced the idea of allowing a transmitter to combine and retransmits the lost packets in such a way that the receiver recovers the packets from a single received copy. Ngo and Hanzo [34] surveyed the HARQ techniques in the context of cooperative wireless communication and a novel relay-switching technique was proposed for enhancing the system’s throughput. The HARQ-based techniques are standardized by IEEE, for example, 802.20,802.16m and 802.16.1 [35,36,37].

Paucity of studies have take place in the direction of achieving a reliable data transmission in CR systems. For instance, the studies in [38,39,40,41,42,43,44,45,46,47,48,49,50] have assumed a reliable data transmission without considering the dynamic activity of the PU and its impact on the CR systems. In this regard, in our previous studies [25,26,27,28,29], we have incorporated various HARQ techniques in CR systems, assuming only a transmitter and a receiver. In contrast to our previous studies, in this paper, we considered an ad hoc CR-based sensor network, comprises of a cluster head (CH) and member nodes. The CH performs sensing and once it deems a free time-slot (TS), it initiates and broadcasts a clear-to-send (CTS) signal to the member nodes and waits for the response. The member nodes respond with a join-request and the CH selects the member node for data transmission, based on first-come-first-serve principle. The selected member node then starts transmitting its data, using a stop-and-wait HARQ approach. On the other hand, when the channel is found to be in busy state, the CH remains silent and starts sensing again in the subsequent TS. This process continues until a free TS is found.

This paper mainly focuses on the efficient utilization of licensed spectrum by allowing CR-based member nodes to use a PU channel, which results in a higher throughput and a lower delay. We have proposed a CRSW-assisted HARQ model for solving the problem of inefficient utilization of the spectrum. The main contributions of this paper are as follow.

  • Designing and modeling a CR-based ad hoc network, assisted by a HARQ scheme for the sake of introducing the cognitive capabilities with the conventional SW-HARQ scheme and apply it to sensor network to attain a reliable data delivery.

  • The CRSW-assisted HARQ model is analytically modelled using a probabilistic based approach, using which closed-form expressions for average packet delay and throughput are derived.

  • Theoretical results of CRSW-assisted HARQ model are validated through simulations using MATLAB. Moreover, the probability distribution, based on end-to-end packet delay, is investigated through Monte Carlo simulations.

The remaining paper is organized as follows. In Section 2, the system model is elaborated, with primary user system and assumptions in Section 2.1, whereas Section 2.2 describes modeling of cognitive radio sensor networks. The cognitive radio sense and wait assisted HARQ is discussed in Section 2.3, operation of a cluster head in Section 2.4, and operation of a sensor node in Section 2.5. Analysis of the CRSW assisted HARQ model is discussed in Section 3, delay analysis is performed in Section 3.1, and throughput analysis in Section 3.2, followed by results and discussion in Section 4. Finally, Section 5 elaborates future research scope and concludes the paper.

2 System model

In this section, we consider step-by-step description of the system model and assumptions.

2.1 Primary user system and assumptions

In this paper, we consider a wireless channel which is exclusively allocated to the PU. For simplicity, we assume the channel is divided into equal length time slots (TS), where each has a duration of T seconds, as illustrated in Fig. 1. In our proposed model, the PU is synchronized to access the channel, based on the TSs. Hence, PUs transmission resemble with the starting and ending of a TS. For example, as depicted in Fig. 1, if a TS is sensed and the activity of the PU is deemed, then PU remains active until the end of TS. However, if a TS is found unoccupied by the PU, then TS remains unoccupied till the end of its duration. With the help of the above procedure, the PU’s transmission always occur in the integer multiple of TSs, which means the transmission is always equal to 1,2,3,… but not in floating points.

Fig. 1
figure 1

TS of equal length, Busy or Free period

Moreover, preserving the legal rights of the PU, it can utilize any TS independently with the same probability. Hence, based on these assumptions, the activity of PU over a wireless channel may be modeled by a Discrete-Time Markov Chain (DTMC) having two states (free, busy), where the state to state traversing probabilities are depicted in Fig. 2. Specifically, the ‘free’ state symbolizes that the PU is inactive, whereas, the ‘busy’ state shows that the channel is occupied by the PU at the respective TS.

Fig. 2
figure 2

Two-state DTMC model of the PU system, where α and β represents the transition from busy to free and from free to busy state, respectively [26, 51]

Following the properties of DTMC, a TS could be in any state at time t, i.e., S(t) ∈{free(t), busy(t − 1),…busy(1)}. In other words, it can be expressed as

$$ \mathcal{S}= \{ S_{1}, S_{2}\}. $$
(1)

where state S1 represents a free TS and state S2 denotes a busy TS. To determine the state of the TS at time t, we have the condition probability that the TS was in state S j at TS (t + 1), given that it was in S i in TS t, which can be mathematically formulated as

$$\begin{array}{@{}rcl@{}} P_{i,j}&=& \{ S(t + 1)=S_{j} | S(t)=S_{i},\dots,S(1)=S_{1}\}, \\ &=& \{ S(t + 1)=S_{j} | S(t)=S_{i} \}, ~~~ \text{where} \\ &&i = 1,2,~j = 1,2~~ \text{and}~~t = 1,2,\dots \end{array} $$
(2)

Moreover, based on the principles of DTMC, each state must have a probability less than 1 (i.e., 0 ≤ Pi, j ≤ 1) and the outgoing transitions probabilities from state S i should be equal to one \({\sum }_{j \in S}P(i,j)= 1\) [52]. Hence, in our proposed model, we have

$$ P_{1,1}+P_{1,2}= 1, ~\text{and} ~P_{2,2}+P_{2,1}= 1. $$
(3)

The state-to-state transition matrix of two states DTMC is represented by P and expressed as,

$$ \pmb{P}=\left[\begin{array}{llllllllll} P_{1,1} & P_{1,2} \\ P_{2,1} & P_{2,2} \end{array} \right]. $$
(4)

where P1,1 and P2,2 represent the probability of being in same state whereas P1,2 and P2,1 denotes the traversing of states, i.e., from free to busy state and from busy to free state, respectively, as shown in Fig. 2. Then, when the Markov chain become steady i.e.,

$$\begin{array}{@{}rcl@{}} \pmb{p}(t + 1)&=& \pmb{P}^{T}\pmb{p}(t), \\ &&(\pmb{P}^{T})^{t}\pmb{p}(1). \end{array} $$
(5)

where p(1) represents the starting state (i.e., p(1) = [1,0]). Furthermore, PT is a left stochastic matrix due to the fact that summation of each column is equal to 1 [53], which is also verified in Eq. 3. Hence, when the Markov chain becomes steady, we have,

$$ \pmb{p}(t + 1)= \pmb{p}(t). $$
(6)

Moreover, let us symbolize the steady state probabilities by π = [π1, π2], then we have a recursive equation of [52]

$$ \pmb{\pi}= \pmb{P}^{T}\pmb{\pi}. $$
(7)

In Eq. 7, π is the right Eigen vector of the transition metric P with the Eigen value of 1. It is important to note that the steady state vector satisfies the condition of

$$ \pi_{1}+\pi_{2}= 1~~~\text{or}~~~\pmb{\pi}^{T}\pmb{1}= 1. $$
(8)

where 1 represents a column vector having all 1 values. For the sake of deriving close-form expressions for both states, let P f and P b represent the probability of being in the free state and busy state, then we have,

$$ P_{b} \alpha=P_{f} \beta. $$
(9)

which reaches to:

$$ \pi_{1}=\left( \frac{P_{2,1}}{P_{1,2}+P_{2,1}}\right)~~\text{and}~~\pi_{2}=\left( \frac{P_{1,2}}{P_{1,2}+P_{2,1}}\right). $$
(10)

which can also be represented by:

$$ P_{f} = \frac{\alpha}{\alpha + \beta } ~~\text{and}~~ P_{b} = \frac{\beta}{\alpha + \beta } $$
(11)

Following the above discussion, we may conclude that when a TS is not occupied by the PU, it will remain free for the whole T seconds duration. Thus, for the sake of improving the overall channel utilization, the SU may access the free TSs and transmits its own data packets [9, 54]. In the following subsection, we will discuss in detail the procedure of finding a free TS and data transmission.

2.2 Modeling the cognitive radio sensor network (CRSN)

We assume that a CRSN is employed in an area of a PU system, where signal-to-noise ratio is very high. A sensor network has low power, low processing capability, and exposed to noise, so these networks cannot perform well in the presence of high noise and interference in the unlicensed band. In this paper, CRSN consists of one cluster comprise of Cluster Head (CH) and member nodes. The CH communicates with member nodes, where the member nodes use time division multiple access mechanism for transmitting data packets in a specified time-frame. Specifically, the CH perform sensing in order to ideally detect the activity (free/busy) of the PU over the channel, regardless of false-alarm and miss-detection. Hence, when a free TS is detected, a member node transmits a packet to the CH. On the other hand, when CH detects a busy TS, then it waits until a free TS is deemed. The member nodes follows the stop and wait hybrid automatic repeat request (SW-HARQ) approach for data transmission, which will be explained in the following sections.

2.3 Cognitive radio sense and wait (CRSW) assisted HARQ

The proposed CRSN perform two vital functions of sensing PU channel and data transmission. For instance, when a free TS is deemed, then the member node uses the classic SW-HARQ approach for the sake of reliably transmitting data packet to the CH. To achieve high reliability, the CH incorporates Reed-Solomon (RS) encoding/decoding technique, in order to detect and/or rectify errors in the received packet. To do so, we assume that each data packet is encoded with RS codeword RS(N d ,K d ) [55], where K d is number of information and N d is coded symbol. The propagation time of each coded packet from member node to the CH is T r seconds, where T r < T. The RS code is assumed to be capable of perfectly detecting errors as well as rectifies \(e=\frac {N_{d}-K_{d}}{2}\) error symbols. Hence, when a received packet has more than e errors, it is considered as erroneous which requires retransmission. The round-trip-time of a packet is T seconds, which can be defined as, the time duration from the transmission until the reception of its feedback.

Based on the above assumptions, the data is exchanged between member nodes and CH over PU channel using the principal of CRSW assisted HARQ model depicted in Fig. 3, and explained in Algorithm 1. The detail operations of CH and member nodes are provided below.

Fig. 3
figure 3

Flow chart of CRSW assisted HARQ model

2.4 Operations of cluster head

In our proposed model, the CH performs the following operations. First, it performs sensing operation for the sake of detecting the activity of a PU over the channel. Once it detects the activity of a PU, it will wait for a while and then starts sensing again. This process continues until a free TS is found. Secondly, we assume that the CH has a finite buffer for storing the index number of packets that is expected to be received. The buffer follows First-in-First-out (FIFO) principle. Thirdly, when a free TS is detected, the CH broadcasts an Clear-to-Send (CTS) signal to the member nodes and waits for them to respond. We assume that the CH selects a member node for transmission based on the First-Come-First-Serve (FCFS) principle. In other words, it means that the member node which receives the CTS signal and respond earlier is allowed to transmit new/old packet. It is worth mentioning that each member node acknowledges the CTS signal with a join-request (Ready-to-Send) response. When the corresponding member node finishes its transmission, it then starts waiting for the reception of feedback signal from the CH, which will be explained in the following subsection.

figure a

On the other side, when CH receives a complete RS coded packet, it performs decoding/correction process in order to generate positive acknowledgment (ACK) or negative acknowledgment (NACK) signal for an error-free or erroneous packet respectively. Specifically, when an error-free packet is received, the CH increments its buffer index by one and generates immediately an ACK signal and transmits to the respective member node. In contrast, when an erroneous packet is received, the buffer index remains unchanged and the CH responds back with a NACK signal to the member node. This process continues until all packets are correctly received.

2.5 Operation of member node

The member nodes of a CH has a joint buffer in which all the packets are stored in an ascending order. Each member node transmits only one packet at a time from this buffer due to the implementation of SW-HARQ approach. Once a member node receives CTS signal and the CH authorizes it for packet transmission, it then transmits either new/old packet waiting in the joint buffer. At this time interval, the rest of the member nodes are assumed to remain silent (even if they have responded with an RTS signal) until the advertisement of another CTS signal and this concept is out of the scope of this paper. Furthermore, after the transmission of the i th packet, the corresponding member node waits for T w seconds to receive the feedback of the transmitted packet. Hence, when an ACK is received, the member node deletes the copy of the successfully received packet from the joint buffer and increments its sequence by one. On the other hand, when a NACK signal is received, the corresponding packet remains in the joint buffer with the same index number. Note that the erroneous packet will be retransmitted again by any member node in the next free TS. This process continues until all the packets are correctly transmitted from the member nodes joint buffer.

3 Analysis of CRSW assisted HARQ model

In this section, we analyze CRSW assisted HARQ model both in terms of two performance metrics 1) the average block delay and 2) the Average throughput.

3.1 Average block delay (T D )

The average block delay can be defined as the average number of TSs or \(T^{\prime }_{r} \)s required for the error-free transmission of a packet. In contrast to conventional transmission schemes, in our proposed model, the delay is not only imposed by channel errors, but also comprise of the delay introduced the unavailability of the PU channel for CR transmission. Therefore, let D P represents the delay caused by the utilization the channel by PU and D e is the delay induced by one or more retransmissions of a packet. In order to analyze the total delay T D of the proposed CRSW assisted HARQ system, we will first investigate the delay induce by the PU activity.

Based on the probability, P b of the PU system defined in Eq. 11, the average delay D P for a CH to detect a free TS can be calculated as

$$ \begin{array}{rcl} D_{P} &=& E[D_{P}(i)]\\ &=& E[(i - 1)T]\\ &=& \sum\limits_{i = 1}^{\infty} (i - 1) TP_{b}^{i - 1}(1 - P_{b})\\ &=& \frac{P_{b}T}{1 - P_{b}} \end{array} $$
(12)

where D P (i) represents the delay for detecting an i th free TS which can be used by the member node for data transmission, while the prior (i − 1) TS were occupied by PU which causes a delay of (i-1)T. Upon substituting \(P_{b} = \frac {\beta }{\alpha +\beta }\) presented in Eq. 11 into Eq. 12, we reach to the following closed-form expression

$$ T_{DP} = \frac{\beta T}{\alpha}. $$
(13)

Secondly, when an i th free TS is detected by the CH, it requests the member node for the transmission of a packet which is explained in Sections 2.4 and 2.5. The authorized member node transmit a packet to the CH, however, due to communication impairments, there is a possibility that the packet might be received erroneously, which requires retransmission. The retransmission process continues until the corresponding packet is received without errors. Hence, to accommodate the case of one or more transmissions of a single packet, let us assume that probability of packet being in error is P e , then have

$$\begin{array}{@{}rcl@{}} D_{e}&=&\sum\limits_{i = 1}^{\infty} (i ) P_{e}^{i - 1}(1 - P_{e}) \\ &=&\frac{1}{1-P_{e}}. \end{array} $$
(14)

Now the total block delay can be achieved as

$$\begin{array}{@{}rcl@{}} T_{D}&=& (D_{P}+T) \times D_{e}, \\ &=& \left( \frac{\beta T}{\alpha}+T \right) \times \frac{1}{1-P_{e}}, \\ &=& \left( \frac{\alpha + \beta }{\alpha} \right) \times \frac{T}{1-P_{e}}~~ \text{(seconds).} \end{array} $$
(15)

Moreover, the normalized T D in terms of packet transmission (T r ) can be expressed as

$$ T_{D}= \left( \frac{\alpha + \beta }{\alpha} \right) \times \frac{1}{1-P_{e}} \times \frac{T_{r}+T_{w}}{T_{r}}~~ (T_{r}^{\prime} s). $$
(16)

From Eqs. 15 and 16, we may conceive that the block delay increases with increase in the utilization level of the PU, decrease in the channel quality and with the increase in the waiting time spend for the reception of feedback.

3.2 Average throughput

The throughput of the proposed CRSW assisted HARQ model can be defined as the successful transmission rate of a packet in TS. The successful transmission of packets depends on the successful detection of free TS by a CH and error-free transmission of packet to the CH. To investigate throughput of the proposed system, let us represent the probability of successfully delivering a packet to CH by P S (i) in i th TS, while the remaining (i - 1) TSs were either occupied by PU or packet was received in error. Then, P S (i) can be calculated as shown in Eq. 17 below,

$$ PS(i) = \sum\limits_{j = 1}^{i} P_{f}(j|i) P_{S}(j|i), $$
(17)

where the probability that PU channel is free in j/i TS is represented by P f (j|i), while P S (j|i) is the probability that the member node successfully transmits a packet in j TS. Therefore, we can write Eq. 18 based on Eq. 17 as follow,

$$ \begin{array}{rcl} P_{S}(i) &=& {\sum}_{j = 1}^{i} \binom{i}{j} {P_{f}^{j}} P_{b}^{(i-j)}P_{e}^{(j-1)}(1 - P_{e}),\\ &=& {\sum}_{j = 1}^{i} \binom{i}{j} \left( \frac{\alpha}{\alpha + \beta}\right)^{j}\left( \frac{\beta}{\alpha + \beta}\right)^{(i-j)} P_{e}^{(j-1)}(1 - P_{e}). \end{array} $$
(18)

Based on the above equation, we can readily obtain the normalized throughput as:

$$ \begin{array}{rcl} \eta &=& {\sum}_{i = 1}^{\infty} \frac{1}{i} \times P_{S}(i),\\ &=& \left[ {\sum}_{i = 1}^{\infty} {\sum}_{j = 1}^{i} \binom{i}{j} \left( \frac{\alpha}{\alpha + \beta}\right)^{j} \left( \frac{\beta}{\alpha + \beta}\right)^{(i-j)} \times P_{e}^{(j-1)}\times \right.\\ & &~~~~~~~~~~~~\left.\times(1 - P_{e}) \right]~(\text{packets per TS}). \end{array} $$
(19)

Moreover, the normalized throughput in terms of packets per T r can be expressed as

$$ \bar{\eta} = \frac{T_{r}}{T} \times \eta = \frac{T_{r}}{T_{r} + T_{w}} \times \eta ~(\text{packets per \(T_{r}\)}). $$
(20)

4 Performance results

In this section, we evaluate both the delay and throughput performance of the proposed CRSW assisted HARQ scheme in terms of PU channel utilization and channel reliability. We illustrate the effect of packet error probability (P e ) and the probability of a channel being in busy state (P b ) on the performance of the proposed scheme. The CRSW assisted HARQ mode has been build with the help MATLAB, where sixty thousands packets have been transferred for each scenario. The simulation start from the sensing of the first TS and ends on the successful reception of total N s packets.

Figure 4 depicts the throughput achieved by CRSW assisted HARQ model against P e and P b of the channel. The formula used for calculating the throughput is given in Eq. 21 as

$$ \eta_{S}^{\prime}=\frac{N_{s}}{N_{ts}} \cdot \frac{T_{r}}{T_{r}+T_{w}}~~(\text{packets per \(T_{r}\)}), $$
(21)

where N s is the sum of packets correctly transmitted by the member nodes in the total N t s TSs.

Fig. 4
figure 4

Throughput versus packet error probability P e for the CRSW assisted HARQ model related with different P b , when presuming T r = 1 and T w = 1 seconds. Average throughput performance is examined for different values of P e , where results are calculated in terms of T r

We can see in Fig. 4 that the throughput is at its peak for P e = 0, this means that the channel is highly reliable and therefore, the rate of retransmission is minimum. However, as shown in Fig. 4, the throughput drops when P e increases. This is because, the channel reliability reduces which results in low throughput. The decrease in throughput is almost linear, this is due retransmission of packets. For certain P e , the throughput reaches to its maximum level, when there is no PU activity on the channel, i.e. when P b = 0. But when, P b increases, the achievable throughput considerably decreases, as the CH has to wait longer duration for detecting free TSs. For instance, both when P e and P b are zero, then the throughput is at its maximum with the value of .5 seconds. This means that the channel is always free from PU and packet transmission is always successful in the first TS. Furthermore, it is pretty clear form Fig. 4 that the analytical results calculated from Eq. 20 agree well with our simulation results.

After investigating the throughput performance, we now explain on the delay of the CRSW assisted HARQ model. First we study average block delay, as presented in Fig. 5. It is worth mentioning here that for simulation results, we have calculated the average packet delay using Eq. 22

$$ T_{DS}= \frac{N_{ts}\cdot(T_{r}+T_{w})}{N_{s}}~~(\text{seconds}). $$
(22)

where N s is the sum of packets correctly transmitted by member nodes in the total number of TSs N t s . The results shown in Fig. 5 are normalized by T r , producing Eq. 23

$$ T^{\prime}_{DS}= \frac{T_{DS}}{T_{r}}~~~~ (T_{r}s). $$
(23)
Fig. 5
figure 5

Average block delay of the CRSW assisted HARQ model against probability of packet error for different P b values

Figure 5, depicts the average packet delay of the CRSW assisted HARQ model. For certain P b , the average packet delay reaches to a minimum level, particularly when the channel is reliable, i.e. when P e = 0. But when, P b and/or P e increases, the average packet delay considerably increases. This increase in average packet delay is due to the fact that the high value P e causes more retransmissions while increase in P b value decreases the chances of transmission for a member node. Furthermore, it is pretty clear form Fig. 5 that the analytical results calculated from Eq. 16 agree well with our simulation results.

In Fig. 6, we illustrate the end-to-end (E2E) packet delay of the CRSW assisted HARQ model. In our simulations, the E2E delay is defined as the time taken by a packet from its first transmission attempt to its final successful reception divided by total total number of packet.

Fig. 6
figure 6

Characterizing the probability distribution of the E2E packet delay for P b = {0.1,0.3,0.5} and P e = {0.3}

For E2E, we consider a vector v having length of N s for storing E2E delay of each transmitted packet; then let v(i) denotes the E2E delay of the i th packet, then the probability distribution (P d ) of E2E packet delay shown in Fig. 6 may be calculated as:

$$ \pmb{P}_{d}=\frac{{\sum}_{i = 1}^{N_{s}}\delta\left( v(i)-n\right)}{N_{s}}, ~~1\le n\le \max(\pmb{v}). $$
(24)

where δ function is used for finding the number of TS took by each packet. For example, if 100 packets are successfully received in their first transmission attempt in and 80 packets have taken two T r s then the distribution becomes P d = [100/N s ,80/N s ,… ] as illustrated in Figs. 6 and 7.

Fig. 7
figure 7

Investigation of probability distribution of the E2E packet delay for P e = {0.1,0.3,0.5} when P b = {0.5}

5 Conclusion

The latest trends in wireless communication technologies have given the notion that the spectrum is scarce. The spectrum scarcity is due to the static allocation of spectrum, and to overcome this issue we need a perfect PU detection model. In this paper, we have proposed and examined the performance of CRSW assisted HARQ model for efficient detection the PU channel. The throughput and delay of CRSW assisted HARQ model has been analyzed mathematically and validated via simulations. Accuracy of the derived closed-form expressions of CRSW assisted HARQ model has been verified using MATLAB simulation. We conclude from simulation results that delay and throughput performances of CRSW assisted HARQ model are mainly affected by both the activities of the PU as well as by the reliability of the PU channel used by SU. When the PU channel is not free, this causes low throughput of the CRSW assisted HARQ model and higher delay, though the channel might be reliable, i.e., P e = 0. In future research we aim to evaluate the performance of CRSW assisted HARQ model in a realistic imperfect sensing scenarios and multi-cluster scenarios.