Ⅰ. Introduction
Cognitive Radio Networks (CRNs) offer a promising solution to address the inefficient utilization of the radio spectrum, a critical resource in the modern era of connected devices. This approach has been extensively explored, emphasizing its potential to enhance spectrum utilization in dynamic environments[1-3]. This paradigm is particularly relevant for applications in 5G and beyond, where dynamic spectrum sharing becomes crucial[4,5]. These networks allow Secondary Users (SUs) to dynamically access unused frequency bands without interfering with Primary Users (PUs), enhancing spectrum efficiency. However, a key challenge in CRNs is achieving rendezvous, the process by which two SUs synchronize on a common channel to establish ommunication. This challenge has been analyzed in depth, highlighting issues such as asynchrony and dynamic channel availability[5,6,9]. This task is complicated by asynchrony, dynamic channel availability, and the lack of prior coordination. Algorithms such as the Enhanced Jump-Stay (EJS) have been developed to address these issues using a deterministic approach that ensures rendezvous in a finite time[1,7].
While EJS is effective in stable environments, its performance can be limited in highly dynamic or unpredictable conditions. To address these limitations, we propose probabilistic enhancements to the EJS algorithm, incorporating randomized elements to improve its flexibility and robustness in challenging scenarios. Such adaptations are particularly relevant for large-scale underlay CRNs with dynamic spectrum access[6]. These randomized modifications aim to adapt better to variable channel conditions, offering potential improvements in rendezvous success rates and efficiency.
The rest of this paper is structured as follows. Section Ⅱ provides a detailed explanation of the Enhanced Jump-Stay (EJS) algorithm, including its channel hopping sequences and theoretical properties for achieving rendezvous. Section Ⅲ introduces the Randomized Enhanced Jump-Stay (REJS) algorithm, explaining its probabilistic modifications designed to enhance flexibility and robustness in dynamic environments. Section Ⅳ evaluates the performance of EJS and REJS through simulations, comparing their efficiency using Time to Rendezvous (TTR) as a key metric under various conditions. Finally, Section Ⅴ concludes the paper by summarizing key findings and discussing potential future improvements.
Ⅱ. EJS algorithm
The EJS method creates channel hopping (CH) sequences with jump patterns and stay patterns. This method has been extensively analyzed for its efficiency in stable environments, providing theoretical guarantees for rendezvous[5]. Such guarantees have been explored further, demonstrating deterministic properties under symmetric and asymmetric scenarios[7]. Before presenting the theoretical foundation of this algorithm, we define the total number of available channels as M and the smallest prime number greater than M as P. During a jump pattern, SUs hop among channels during P time- slots, starting froma channel whose index is i0 (included in [1,P]). These SUs jump with a step-length r (included in [1,M]). Astay pattern is designed to stay P time-slots on the channel indexed r. The purpose of the stay period is to ensure that if another SU is hopping through channels, there is a higher probability of rendezvous occurring. By staying on a fixed channel for a designated period, the SU increases the chances of aligning with another SU that may be following a different hopping pattern. Meanwhile, the jump period serves to explore different channels systematically, allowing the SU to discover potential rendezvous opportunities across a broader range of available channels. The EJS rendezvous algorithm makes SUs jump 3 time-slots in a row and stay one time-slot on the channel r. In the EJS scheme, the channel hopping sequence in the jump-pattern is determined by the following formula:
[TeX:] $$\begin{equation}c_i=\left(i_0+t_i \times r-1\right) \bmod P+1\end{equation}$$
where ci represents the channel assigned at the i-th time slot, i0 is the initial channel index, selected within the range [1,P], ti denotes the current time slot index, r is the step length used for hopping between channels, P is the smallest prime number greater than the total number of available channels, M. And, if ci > M, we remap ci as:
[TeX:] $$\begin{equation}c_i=c_i \bmod M+1\end{equation}$$
For instance, if an SU starts from channel c0=2, step length r=1, and prime number P=5, the channel at the first time slot (i=1) is computed as:
[TeX:] $$\begin{equation}c_1=(2+1 \times 1-1) \bmod 5+1=3\end{equation}$$ similarly, for i=2:
[TeX:] $$\begin{equation}c_2=(2+2 \times 1-1) \bmod 5+1=4\end{equation}$$
This structured approach ensures a systematic channel hopping sequence while maintaining deterministic rendezvous properties.
EJS channel hopping example
Ⅲ. REJS Algorithm
The EJS scheme was proposed to enhance the previous JS system, reducing the Expected Time to Rendezvous (ETTR) for the asymmetric model from O(P3) to O(P2). EJS appears to be one of the best blind rendezvous algorithms for CRNs due to its non-deterministic CH sequences and its guaranteed rendezvous times for both symmetric and asymmetric models. For this reason, we chose it as a foundation to study the not well developed REJS algorithm.
The REJS algorithm, in turn, strengthens the asymmetric EJS scheme by replacing biased channel selections with random selections, both for remapping channels and for replacing unavailable channels. In the REJS algorithm, randomness is introduced in two key aspects: the selection of hopping channels and the determination of the stay pattern. Unlike EJS, which follows a strict modular-based approach for channel selection, REJS allows for probabilistic channel allocation to increase adaptability in dynamic conditions. By replacing deterministic remapping with randomized selection, REJS minimizes the risk of repeated unsuccessful rendezvous attempts and enhances performance in asymmetric scenarios.
The channel hopping sequence in REJS is formulated as follows. At each time slot k, the selected channel ck is determined based on whether the previously selected channel belongs to the set of available channels for the SU. The hopping rule is given by:
[TeX:] $$\begin{equation}c_k= \begin{cases}\text { rand_sample }\left(S U_A, 1\right), & \text { if } k=0 \\ \left(c_{k-1}+r-1\right) \bmod M+1, & \text { if } c_{k-1} \in S U_A \\ \text { rand_sample }\left(S U_A, 1\right), & \text { if } c_{k-1} \notin S U_A\end{cases}\end{equation}$$
where ck represents the selected channel at the k-th time slot, r denotes the step length used for hopping, and M refers to the total number of available channels. The function rand_sample(SUA,1) selects a random channel from the set of available channels for SUA. If the computed channel does not belong to SUA's available set, it is replaced with a randomly selected channel, ensuring that the sequence remains dynamic and unpredictable. Consequently, the channel ck of thejump pattern is determined by the Algorithm 1 and 2.
Pseudo code of REJS CH sequence
Pseudo code of REJS rendezvous
In addition to modifying the hopping sequence, REJS introduces a probabilistic stay pattern. Unlike EJS, where the stay channel follows a fixed rule, REJS selects the stay channel dynamically based on the available channels of the secondary user. This process is expressed as:
[TeX:] $$\begin{equation}c_s=\text { rand_sample }\left(S U_B, 1\right)\end{equation}$$
where cs represents the stay channel, and rand_sample(SUB,1) selects a random channel from the set of available channels for SUB. By employing this probabilistic approach, REJS reduces the likelihood of persistent mismatches between hopping sequences, thereby improving the overall rendezvous success rate. The reason for selecting a new stay channel each time is to increase the probability of rendezvous by diversifying the channel selection. If the same stay channel were used repeatedly, the rendezvous opportunity could be limited to specific conditions where another SU happens to be following a matching sequence.
To illustrate the effectiveness of REJS, consider a scenario where an SU starts at channel c0=2, with a step length of r=1 and a total of M=4 available channels. The hopping sequence proceeds as follows:
[TeX:] $$\begin{equation} \begin{aligned} & c_1=\left(c_0+r-1\right) \bmod M+1=3 \\ & c_2=\left(c_1+r-1\right) \bmod M+1=4 \end{aligned} \end{equation}$$
If the computed channel c3 is unavailable in the set of SUA's available channels, it is replaced by a randomly selected channel:
[TeX:] $$\begin{equation}c_3=\text { rand } \_ \text {sample }\left(S U_A, 1\right)\end{equation}$$
This approach ensures that the hopping sequence remains adaptable to changing conditions, allowing for a higher probability of successful rendezvous in environments with fluctuating channel availability. Examples of channel hopping sequences of REJS are depicted in Figure 2 and 3.
REJS channel hopping example
Another REJS channel hopping example with a different step-length and number of channels
The introduction of randomness in REJS provides several advantages over the deterministic EJS algorithm. By incorporating probabilistic channel selection, REJS is more resilient to jamming attacks and unpredictable interference. The flexibility of randomized hopping reduces the likelihood of repeated collisions, making the algorithm particularly effective in asymmetric scenarios where common channels are scarce[9]. Furthermore, the improved adaptability allows REJS to perform well in highly dynamic environments, where fixed hopping patterns may not be optimal.
Overall, the REJS algorithm represents a significant improvement over the traditional EJS approach by introducing a dynamic and probabilistic hopping mechanism. By modifying both the channel hopping sequence and the stay pattern, REJS enhances the robustness and flexibility of the rendezvous process in CRNs. The next section presents a comprehensive performance evaluation, comparing REJS and EJS under various conditions to assess their effectiveness in achieving successful rendezvous.
Ⅳ. Performance evaluation
We then studied our algorithm written in Matlab by modifying numerous parameters to conclude on the guarantee of rendezvous and to assess whether the performance of our algorithm was better than the existing algorithms.
It can be observed that in this Figure 4, in general, the TTR increases with M. This means that as the number of available channels increases, it becomes more difficult and takes more time for SUs to synchronize on a common channel to establish communication. In particular, the curve shows a more moderate increase in TTR when M is low (up to around 70 channels), which indicates that the algorithm handles situations with a limited number of channels fairly well. However, when M exceeds 70, the TTR increases more rapidly, suggesting that synchronization becomes increasingly complex as the number of channels grows. The shaded area between the upper and lower bounds represents the 95% confidence interval for the TTR values, allowing for the visualization of the possible deviation around the estimated average value. This area also shows that, while the algorithm remains relatively stable for low values of M, it becomes more uncertain as the number of channels increases.
The rapid increase in TTR for large M indicates a potential limitation of REJS in highly dynamic environments with a large channel pool. To mitigate this issue, one possible enhancement is to introduce a hybrid mechanism where REJS initially employs a semi-random selection method, prioritizing channels with historically higher successful rendezvous rates. Another approach is to integrate an adaptive stay duration, where the stay period dynamically adjusts based on recent unsuccessful attempts, reducing unnecessary randomization and improving synchronization efficiency. Future work can focus on optimizing these enhancements to balance adaptability and efficiency.
Figure 5 compares the performance of the EJS and REJS algorithms in terms of TTR, considering two scenarios: G1, where there is only 1 common channel between the two users, and G10, where there are 10 common channels.
In the G1 case, a clear difference in performanceis observed between EJS and REJS. The EJS G1 curve exhibits a steep increase in TTR as the number of channels grows, particularly when there are more than 70 channels. By the time there are 100 channels, the TTR reaches nearly 10,000, showing that EJS struggles significantly in this scenario. In contrast, REJS G1 shows a much more moderate increase in TTR. The randomized enhancements in REJS allow it to locate the single common channel far more efficiently than EJS, resulting in consistently lower TTR values. This demonstrates that REJS is particularly effective in challenging situations where there is only one common channel.
Average TTR for REJS Rendezvous
Average TTR for the asymmetric EJS and REJS schemes
In the G10 case, the performance trend changes. Both algorithms benefit from the larger number of shared channels, leading to significantly lower TTR values compared to G1. However, EJS G10 performs better than REJS G10. EJS G10 maintains lower TTR values across all channel counts, showing its efficiency in scenarios with multiple common channels. The deterministic nature of EJS appears to be more advantageous in these cases, as it systematically explores the channels and leverages the increased availability of common resources. On the other hand, the randomness in REJS, while helpful in G1, seems to slightly hinder its efficiency in G10 scenarios, where a deterministic approach like EJS performs better. To make the above explanation easier to understand, the performance differences between the two algorithms are summarized in Table 1.
Comparison of EJS and REJS Algorithms
The results highlight the differing strengths of EJS and REJS depending on the scenario. In the G1 case, where there is only one common channel, REJS clearly outperforms EJS, showcasing its ability to adapt to more challenging and dynamic environments. However, in the G10 case, where there are multiple common channels, EJS proves to be more effective, achieving lower TTR values than REJS. This suggests that while REJS significantly outperforms EJS in G1 due to its adaptive nature, EJS is more efficient in G10, benefiting from its deterministic structure when multiple common channels are available. However, it is important to note that G1 represents a more challenging and realistic scenario in many CRN applications, particularly in highly dynamic or congested environments where common channels are scarce. In such cases, REJS provides a robust solution by reducing the risk of repeated failures due to fixed hopping sequences. Furthermore, EJS relies on strict deterministic patterns that can be exploited in adversarial environments. Since REJS introduces randomness in both channel hopping and stay selection, it is more resilient to jamming attacks and unpredictable interference. This adaptability makes REJS a preferable option in security-sensitive applications and dynamic spectrum access scenarios, even in environments with a larger number of common channels.
Therefore, it would be wise to create an adaptive algorithm. On the one hand, in the overlay approach, it is feasible to use only the EJS algorithm to take advantage of its performance when no jamming occurs and then switch to our REJS algorithm when there is a suspicion of jamming. On the other hand, if the underlay approach is possible in an environment, it would be more prudent to use our algorithm, as it outperforms when a large number of channelsis available. Future research can further enhance its adaptability by incorporating hybrid approaches that adjust the balance between randomness and determinism based on network conditions. Additionally, REJS can be optimized to perform better in G10 scenarios by refining its channel selection strategy or incorporating learning-based adjustments to its hopping sequence.
Ⅴ. Conclusion
This paper explores the efficiency and limitations of the EJS and REJS algorithms for CRNs. The EJS algorithm, while effective in stable environments with multiple common channels (G10 scenario), shows its limitations in situations where only one common channel is available (G1 scenario) or when the total number of channels significantly increases. In contrast, the REJS algorithm, with its randomized enhancements, outperforms EJS in more challenging scenarios, particularly in dynamic conditions or when the number of common channels is low. The findings highlight the importance of adapting the strategy based on environmental conditions: using EJS in favorable situations with multiple common channels and no interference, and favoring REJS in the presence of jamming or under less predictable conditions. Future development should focus on creating an adaptive approach that combines the strengths of both algorithms. Incorporating adaptive cognitive techniques aligned with evolving 5G architectures could further optimize performance in real-world scenarios[10]. A hybrid strategy could leverage EJS in the absence of jamming while switching to REJS when disruptions are suspected. This work lays a solid foundation for improving performance in complex and dynamic CRN environments.