scieee AI-readable full text Open interactive document viewer

Study of opportunistic routing algorithms for multi-hop cognitive radio networks

Casanovas Suriñach, Josep

Abstract

As a consequence of the growing spectrum saturation, new alternatives like Cognitive Radio are considered. Cognitive Radio (CR) networks have as a purpose to route information through the CR network without interfering the present licensed users or decreasing their quality of service as less as possible. Some alternatives to solve this routing difficulties have been investigated. The existent users can have quite diverse kind of activity models. This project wants to study if the PU activity model is critical for the used algorithm and if there exists any routing algorithm which runs better indistinctly of the assumed model. According to this, an existing routing algorithm [7] based on local spectrum knowledge has been taken as a benchmark to assess the behaviour of routing algorithms under different primary users’ activity models. At the same time, a new routing algorithm is proposed that does not need too much PU activity information and shows, in some situations, an acceptable routing cost deterioration regardless of the statistical model considered.

Full text

STUDY OF OPPORTUNISTIC ROUTING ALGORITHMS FOR MULTI-HOP COGNITIVE RADIO NETWORKS A Degree Thesis Submitted to the Faculty of the Escola Tècnica d'Enginyeria de Telecomunicació de Barcelona Universitat Politècnica de Catalunya by Josep Casanovas Suriñach In partial fulfilment of the requirements for the degree in SCIENCES AND TELECOMMUNICATION TECHNOLOGIES ENGINEERING Advisors Javier Villares Francesc Rey Barcelona, May 2016 1 Abstract As a consequence of the growing spectrum saturation, new alternatives like Cognitive Radio are considered. Cognitive Radio (CR) networks have as a purpose to route information through the CR network without interfering the present licensed users or decreasing their quality of service as less as possible. Some alternatives to solve this routing difficulties have been investigated. The existent users can have quite diverse kind of activity models. This project wants to study if the PU activity model is critical for the used algorithm and if there exists any routing algorithm which runs better indistinctly of the assumed model. According to this, an existing routing algorithm [7] based on local spectrum knowledge has been taken as a benchmark to assess the behaviour of routing algorithms under different primary users’ activity models. At the same time, a new routing algorithm is proposed that does not need too much PU activity information and shows, in some situations, an acceptable routing cost deterioration regardless of the statistical model considered. 2 Resum Com a conseqüència de la creixent saturació de l’espectre radioelèctric, s’han començat a considerar noves alternatives com la Radio Cognitiva. Les xarxes Cognitives tenen com a propòsit encaminar la informació a través de la xarxa sense interferir els usuaris amb llicència ja existents o bé, empitjorant la seva qualitat de servei en la menor mesura possible. Algunes alternatives per abordar aquests problemes ja s’han començat a investigar. Els usuaris amb llicència poden tenir diversos tipus de models d’activitat radioelèctrica. Aquest projecte el que vol és estudiar si en efecte, els models d’activitat són crucials en base l’algorisme utilitzat i si existeix algun algorisme d’encaminament que funcioni millor independentment del model utilitzat. Per tant, un algorisme ja existent [7] basat en el coneixement de l’espectre a nivell local, s’ha agafat com a punt de referència per avaluar el comportament dels algorismes en funció del model d’activitat dels usuaris primaris. Alhora, s’ha proposat un nou algorisme que no necessita massa informació de l’activitat dels usuaris primaris i mostra en alguns casos, un empitjorament acceptable del cost d’encaminament sense tenir en compte el model estadístics considerat. 3 Resumen Como consecuencia de la creciente saturación del espectro radioeléctrico, se han empezado a considerar nuevas alternativas como la Radio Cognitiva. Las redes Cognitivas tienen como propósito encaminar la información a través de la red sin interferir a los usuarios con licencia o bien, empeorando su cualidad de servicio en la menor medida de lo posible. Algunas alternativas para abordar estos problemas ya se han empezado a investigar. Los usuarios con licencia pueden tener diversos tipos de modelos de actividad radioeléctrica. En este proyecto, se pretende estudiar, si los modelos de actividad son cruciales de acuerdo con el algoritmo utilizado i si existe algún algoritmo de enrutamiento que funcione mejor independientemente del modelo utilizado. Por consiguiente, un algoritmo ya existente [7] basado en el conocimiento del espectro a nivel local, se ha tomado como punto de referencia para avaluar el comportamiento de los algoritmos en función del modelo de actividad de los usuarios primarios. Al mismo tiempo, se ha propuesto un nuevo algoritmo que no necesita demasiada información de la actividad de los usuarios primarios y muestra en algunos casos, un empeoramiento aceptable del coste de enrutamiento sin tener en cuenta el modelo estadístico considerado. 4 Acknowledgements First of all, I would like to thank my advisors Javier Villares and Francesc Rey. Since September of 2015, we have had innumerable talks and a lot of exchange of opinions by mail. I’m too proud of have had these unbelievable tutors who help me during these months to carry out this project but more important, they teach me many things that will be too useful for my future life. Thanks to both! These are my last words in my university degree experience. I have had diverse kinds of moments: some bad and others very good. I think that one of the most important things that I have learnt is responsibility and become a true liven up person. Just thank to others lectures that I had, especially Albert Aguasca and all the partners that I had during the degree. Thanks to all. 5 Revision history and approval record Revision Date Purpose 0 11/02/2016 Document creation 1 12/05/2016 Document revision DOCUMENT DISTRIBUTION LIST Name e-mail Josep Casanovas Suriñach [email protected] Javier Villares [email protected] Francesc Rey [email protected] Written by: Reviewed and approved by: Date 12/05/2016 Date 12/05/2016 Name Josep Casanovas Suriñach Name Javier Villares Position Project Author Position Project Supervisor 6 Table of contents Abstract ............................................................................................................................ 1 Resum .............................................................................................................................. 2 Resumen .......................................................................................................................... 3 Acknowledgements .......................................................................................................... 4 Revision history and approval record ................................................................................ 5 Table of contents .............................................................................................................. 6 List of Figures ................................................................................................................... 8 List of Tables .................................................................................................................... 9 1. Introduction .............................................................................................................. 10 1.1. Inception ........................................................................................................... 10 1.2. Statement of purpose, requirements and specifications .................................... 10 1.3. Work Plan ......................................................................................................... 11 1.3.1. Work Packages ......................................................................................... 11 1.3.2. Gantt Diagram ........................................................................................... 13 1.3.3. Incidences ................................................................................................. 13 2. State of the art of the technology used or applied in this thesis: ............................... 15 2.1. Cognitive Radio ................................................................................................ 15 2.1.1. Underlay Paradigm .................................................................................... 15 2.1.2. Overlay Paradigm ...................................................................................... 16 2.1.3. Interweave Paradigm ................................................................................. 16 2.2. Cognitive Radio Routing ................................................................................... 16 2.2.1. Routing Metrics ......................................................................................... 17 2.2.1.1. Potential Fields ........................................................................................ 17 3. Methodology / project development: ........................................................................ 19 3.1. Simulator .......................................................................................................... 19 3.2. System Model ................................................................................................... 20 3.2.1. Path Loss .................................................................................................. 20 3.2.2. PU User ..................................................................................................... 21 3.2.2.1. Bernoulli Statistical Model ....................................................................... 22 3.2.2.2. Markov Statistical Model.......................................................................... 22 3.2.3. SU Users ................................................................................................... 23 3.2.3.1. Neighbours .............................................................................................. 24 7 3.2.3.2. SU Deployment ....................................................................................... 24 3.2.3.3. Spectrum Sensing ................................................................................... 25 3.2.3.4. SU Power Control.................................................................................... 25 3.2.4. Multiple Access Control Layer ................................................................... 27 3.3. Minimum Potential Based Routing – MPBR [7] ................................................. 27 3.3.1. Scenario MPBR ......................................................................................... 27 3.3.2. Algorithm MPBR ........................................................................................ 28 3.4. Geometric Filtering Routing - GFR ................................................................... 29 3.4.1. Scenario GFR ............................................................................................ 29 3.4.2. Algorithm GFR ........................................................................................... 30 4. Results .................................................................................................................... 33 4.1. Coding scheme ................................................................................................ 34 4.2. Metric Settings .................................................................................................. 36 4.2.1. Delay Metric Setting .................................................................................. 36 4.2.2. Energy Metric Setting ................................................................................ 37 4.3. MPBR Assessment ........................................................................................... 38 4.3.1. MPBR Bernoulli scenario ........................................................................... 39 4.3.2. MPBR Markov scenario ............................................................................. 41 4.4. GFR Assessment ............................................................................................. 43 4.4.1. GFR Bernoulli Scenario ............................................................................. 43 4.4.2. GFR Markov Scenario ............................................................................... 45 5. Budget ..................................................................................................................... 49 6. Conclusions and future development: ...................................................................... 50 Bibliography: ................................................................................................................... 51 Glossary ......................................................................................................................... 53 8 List of Figures Figure 1 Expected Gantt diagram of degree thesis ......................................................... 13 Figure 2 Final Gantt diagram of degree thesis ................................................................ 14 Figure 3 Phase diagram of a Markov chain with transition probabilities .......................... 22 Figure 4 The worst case location for the PU receiver, when the SU transmitter is inside the PU coverage region. 𝜆∈ 0,1 and 𝛽∈ 𝜆,1. ..................................................................... 26 Figure 5 Geometric Filter Schematic with probability PU transmitting equal to 0.8 .......... 31 Figure 6 Routing algorithm routes example .................................................................... 33 Figure 7 Packet Error Rate vs Signal Interference Noise Rate using LDPC-codes ......... 35 Figure 8 Delay metric results with Bernoulli Statistical Model .......................................... 39 Figure 9 Energy metric results with Bernoulli Statistical Model ....................................... 40 Figure 10 Delay metric with Markov Statistical Model assuming different PU transmitting probabilities .................................................................................................................... 41 Figure 11 Energy metric with Markov Statistical Model assuming different PU transmitting probabilities .................................................................................................................... 42 Figure 12 Comparison Delay metric results with Bernoulli Statistical Model .................... 43 Figure 13 Comparison Energy metric results with Bernoulli Statistical Model ................. 44 Figure 14 Comparison Delay metric with Markov Statistical Model assuming P(1) = 0.2. 45 Figure 15 Comparison Energy metric with Markov Statistical Model assuming P(1) = 0.2 ....................................................................................................................................... 45 Figure 16 Comparison Delay metric with Markov Statistical Model assuming P(1) = 0.5. 46 Figure 17 Comparison Energy metric with Markov Statistical Model assuming P(1) = 0.5 ....................................................................................................................................... 47 Figure 18 Comparison Delay metric with Markov Statistical Model assuming P(1) = 0.8. 47 Figure 19 Comparison Energy metric with Markov Statistical Model assuming P(1) = 0.8 ....................................................................................................................................... 48 15 2. State of the art of the technology used or applied in this thesis: Radio is a broadcast medium, in which can coexist different users in the same frequency band interfering with each other. In the last two decades the number of wireless devices has grown exponentially demanding higher quality and higher data rate and it leads to a severely limited spectrum. In order to find out some solutions a new kind of communications has been thought calling Cognitive Radio. There exist different frequency bands: with license (i.e. GSM) or not (i.e. ISM band). In the licensed band users have an assigned spectrum or a multiple access control which allows avoiding hypothetical interferences and thus improving its quality-of-service (QoS). For the other hand, in unlicensed bands, users transmit in a chaotic way (just following a little set of rules) where high interference levels can be reached and hence lead to unsuccessful communications. At the same time, these unlicensed bands can contain a large number of users which occupy whole spectrum and consequently let it saturated (without reliability). Both types of bands may accommodate many additional wireless devices if these devices are able to exploit some advanced technology to only minimally disrupt and lead to an increase of successful communications of coexisting non-cognitive devices. 2.1. Cognitive Radio Cognitive Radio was born to solve the impact problem to non-cognitive users and at the same time can establish own cognitive radio communications. So, cognitive radio can be understood as a wireless communications system which collects channel and users’ information and uses them in an astute way: improve or degrade just a little bit noncognitive QoS and allow unlicensed users use spectrum for communicate too. Based on large kind of network types, cognitive radio can be faced in three different paradigms which can be complementary: underlay, overlay and interweave paradigms [1]. 2.1.1. Underlay Paradigm Assuming a knowledge of the interference cause by its transmitter to the receivers of all non-cognitive users it’s allowed a communication by the cognitive radio. According this scenario, is often called the cognitive users as secondary users (SU) and the users which cannot be too much interfered are referred as primary users (PU). Basically, the underlay paradigm points to allow secondary users’ communications with the limitation of no-interfere non-cognitive receivers under a threshold pre-established. In [1], talks about improve this interference-aware making use of multiple antennas to guide cognitive signals or using ultra-wide bands where the signals can be covered up by noise floor. This paradigm is closer to secondary users’ power control which implemented making use of low-power transceivers can limit cognitive users range. 16 2.1.2. Overlay Paradigm Overlay paradigm is based in main terms of the non-cognitive users’ codebooks and alternatively its messages as well. Basically this model assumes the non-cognitive message is known at the cognitive transmitter when the primary user begins its transmission. A non-cognitive user message might be obtained by decoding the message at the cognitive receiver. A hypothetical no-correct decoding of a non-cognitive message due to fading or interference allows cognitive users that have decode correctly a message send it to primary user and transmit part of power for his own communication. On the one hand, can exploit the scenario of a retransmission and at the same time a secondary user transmit his own information in order to cancel or mitigate the interference produced at cognitive receiver by sophisticated techniques like dirty paper coding [1]. On the other hand, cognitive users have the message knowledge which will be utilized for transmit the non-cognitive message and his own message. In this way the non-cognitive transmissions will be relayed. 2.1.3. Interweave Paradigm The major part of the spectrum is not being utilized while time passes. “There exist temporary space-time-frequency voids, referred to as spectrum holes that are not in constant use in both the licensed and unlicensed bands. Thus, the utilization of spectrum is improved by opportunistic frequency reuse over the spectrum holes” [1]. Interweave cognitive radio paradigm can be explained as a smart wireless communication system that periodically knows the spectrum status. Using different kinds of techniques (in this project, a sensing spectrum), spectrum can be detected as occupied or idle and then opportunistically communicates over spectrum holes with minimal interference to the active users. 2.2. Cognitive Radio Routing Most of the research on cognitive radio networks has focused on Physical Layer and Medium Access Control layer issues [2]. Recently, the research community has started to apply the cognitive radio in network layer to further extend its applications. The work in the area of routing protocols in cognitive ad-hoc wireless networks can be classified into two main categories: full spectrum knowledge and local spectrum knowledge. In this thesis, local spectrum knowledge is assumed. Making use of an opportunistic technique which broadcast spectrum and network information between closer cognitive users, each node will be able to reach appreciate network state information useful for forward packets. Moreover, according to the need of the network, a different routing strategy could be selected because the large number of routing metrics that exist leads to different feasible solutions [3]. Some routing strategies like greedy geometric or gradient routing [4-5] makes use of local spectrum knowledge. Opportunistically each node can obtain cost tables according stablished metrics and use them for routing decisions. In greedy routing [4] is required global topology information to decide which route is the best. Using location information, the SU source and each SU intermediate will select the next-hop node closest to the destination. Thus, packets will be greedily forwarded (in some cases these routes can 17 seem unappropriated at first glance but always have an intelligent reason) with the purpose to decrease their distance until destination is reached. In that case, it is done using geometric distance between nodes using a decay power constant. Basically, the main regards in cognitive radio networks are delay routing schemes generally based on end-to-end delay and energy routing schemes to minimize the total power consumption between source and destination too. One of the things to take into account is world’s future has a tendency to smart what can make our lives easier. It could be done taking use of wireless sensor networks or any transceiver object, which have as a critical point the energy consumption and delay aspects. In Wireless Sensors Networks (WSNs) [6] some design challenges, routing issues and routing protocols are list in different purposes and detached as guidelines. 2.2.1. Routing Metrics The rules of a routing scheme are: to reach the final destination and at each node to choose the best option as possible according network status. The most part of cognitive routing researches point to delay and energy aware parameters to optimize. Probably, an increase of connections and throughput will lead to use many additional transceivers in CRN. Therefore, these devices can become out of energy (life-time) depending of their use. At the same time, latency requirement has become critical due to new live user applications. Delay problems in wireless sensors are not too much important. However, wireless sensors are designed to be placed with a long life-time. So, energy quandary is quite important in wireless sensor networks. Some researches [7-11] in this way evaluate these routing metrics searching different solutions making use of novel strategies. 2.2.1.1. Potential Fields Potential fields can be one of the ways to carry on a routing decision scheme. At each node the best route is known according the assumed statistical model. In [4,7], use of potential fields have been done. It is inspired by robotics that use these techniques for navigating autonomous robots and avoiding obstacles [5]. In potential field based routing, packets are forwarded in the descent direction of potential field 𝜙. Assuming a fixed destination, exact rules of how to determine the next hop depend on the used potential field. The routing condition is usually based on choose the node which has as less as possible cost. This cost is computed as the addition of: cost to reach the node and the potential field in this node. Therefore, the established route will be optimal if the potential values have converged perfectly. As said above, these potential fields can be selected using different potential fields metrics, putting an emphasis on delay and energy metrics. 2.2.1.1.1. Delay Aware Cognitive radio paradigms have been tackled to get success routing algorithms. In this way, some delay based routing algorithms have been proposed. An interesting research can be found in [8] which mixes delay metrics (originally based on multi-channel environments and then adapted to Cognitive Radio Networks (CRNs)) and metrics specifically designed for CRNs based especially in careful analysis of primary users assuming statistically models. In order to stablish another routing protocol based on a single channel spectrum sensing 18 (no exploit the diversity channel effect) and at the same time have an accuracy knowledge of cognitive radio channel, a recent paper [7] has been considered as a benchmark. This paper [7] lay the basis for an optimal routing protocol with the goal of minimize routing delay using potential fields. The main idea is that each node knows the potential field using delay metric based on a statistically potential field (form other users) broadcasted recurrently along the users deployed. The delay cost used is reviewed in this project in order to improve and reconsider it in a more real problematic case. 2.2.1.1.2. Energy Aware There already exist some energy routing schemes [9,10,11]. Basically, they have as cornerstone the energy consumption in transmission mode. Moreover, cognitive users have an idle, reception and processing energy consumption which can be dealt with. In [9] authors propose an algorithm that uses energy potential fields with the purpose to get some CRNs metrics like energy density and transmission energy which can ensure an energybalanced routing scheme. Moreover, some realistic power consumption models and energy-aware WSNs have been reviewed to relate in a routing protocol scheme [10-11]. Any metric can be selected and exported in the optimal-efficient routing scheme [7] to minimize routing energy cost and reach the destination as better as possible. 2.2.1.1.3. Other Metrics Energy and delay metrics have been tackled but it could be the chance to explore different types of metrics and consider some hybrid cases. It can be extrapolated to a function cost making more regard using weighting-aware metric. 19 3. Methodology / project development: As a cognitive radio routing casuistry some paradigms exposed above should be taken as a reference. In this case it will be a mix of underlay paradigm and interweave paradigm. On the one hand, some cognitive users will transmit interfering non-cognitive users but guaranteeing a QoS provided that the interference level signal received by non-cognitive users doesn’t exceed a threshold. On the other hand, interweave paradigm is been assumed because its verified that non-cognitive users have an intermittent behaviour generating some spectral holes that cognitive users will take as a benefit. This project first evaluates the routing algorithm proposed in [7] which aims to transmit packets through the path that minimizes the aggregated delay between transmitter and receiver nodes. As complement to this work the project extends the paper algorithm to introduce a different optimization criterion while keeping the same routing strategy. Specifically, the project designs the optimum route that minimizes delay and energy consumption. In order to analyse from a critical perspective the routing algorithm in [7], the statistically of the primary user activity is also reviewed having in mind that, one of the more critical aspects when designing the optimum routing algorithm in the presence of a primary user is the amount of information that the secondary users have of the primary user activity. In particular, the paper in [7] assumes a Bernoulli statistic to model this activity and performs simulations implementing the same statistic. In order to evaluate how critical the algorithm is to the statistical model, the algorithm in [7] has been tested when the primary user activity is modelled with a Markov chain. This aspect, a relevant contribution of the project, is important because it allows to introduce and control the primary user coherence time, a critical parameter when evaluating the performance of the routing algorithm as it will be shown in section 4. Finally, to complete the analysis of the routing algorithm in [7] an alternative algorithm has been presented and evaluated. The motivation for presenting this novel alternative algorithm is the large amount of prior information that the algorithm in [7] requires to design the optimum route using potential fields. Although the performance of the proposed algorithm will be poorer in some cases it will allow us to better understand the behavior of the routing algorithm. In this thesis, a MATLAB simulator has been programmed to simulate the operation of a Cognitive Radio Network explained above using a system model detailed in the following sections. 3.1. Simulator The programmed simulator has a main script ‘point_creator.m’ which is formed by a set of another scripts. These scripts deploy in a space region a number of cognitive users and each one carries out operations and steps to achieve all the network parameters and useful information for itself. The simulator is sensitive to some tuneable parameters which describe the CR scenario and are list as follows: - Link budget parameters 20 - Primary users parameters - Density of secondary users deployed - PHY layer parameters - Sensing parameters - Metrics parameters 3.2. System Model Next, we will describe the scenario planned to carry out the routing protocol and which are the aspects and features to take into account focusing in the critical requirements that will allow to communicate the devices. Let us assume a SU network composed by N SUs, whose are without available licensed spectrum. The SUs exploit opportunistically a licensed frequency band used by a PU that is active at random with probability 𝑃1 ∈[0,1]. Therefore, this random behaviour becomes as a key point to understanding the scenario and will be useful for following routing guidelines. PU is assumed that operates at one frequency band but the extensions to multiple PU transmitters and multiple frequency bands could be interesting to be analysed. This issue that will not take part in this thesis. However, it’s an interesting system which can be left for future work. 3.2.1. Path Loss The propagation model adopted in these scenarios for both kind of users follows a Line-of- Sight (LOS) model, where the losses caused by propagation from transmitter to receiver depends on distance [12]. 𝑃𝐿(𝑑)=(𝑑 𝑑0+1)−𝛼 ( 1 ) Where 𝛼 is the path loss exponent and 𝑑0 is the distance reference. The path loss exponent is assumed to be known and his value, typically between 2 and 5, depends on the environment as shown in next table. Environment Path Loss exponent 𝜶 Free space 2 Urban Area 2.7 to 3.5 Suburban Area 3 to 5 Indoor (Line-Of-Sight) 1.6 to 1.8 Table 1 Path Loss exponent values according to environment 21 In this project, the path loss exponent has been chosen as 𝛼 =4. This will lead an urban/suburban scenario where communications will be enough close and this exponent is considered more restrictive. With respect to the distance reference this parameter is chosen according to scenario environment: Environment Reference Distance 𝒅𝟎 Indoor 1m Outdoor 100m to 1km Table 2 Reference distance used depending environment Until electromagnetic wave doesn’t achieve the reference distance, receiver power can be assumed, approximately, like transmit power. It can be seen as a near-field region environment where electromagnetic radiation is reactive. In order to avoid the first region of the path loss, the scenario will try to stablish distance between SUs over reference distance set to 𝑑0=1. 3.2.2. PU User As said above, just one PU user is placed in the scenario. The location of the PU receiver may be either known or unknown. PU uses a licensed frequency band and stablish communications with other PU receivers opportunistically. Thus producing some spectral holes which SUs transmitters will profit. Packets send between PUs will assumed to be received correctly if the SINR receiver is above a desired threshold by 𝛾𝑝. The transmit power of the PU transmitter is set such that the SINR of a PU receiver at the edge of its coverage area is 𝐺𝛾𝑝, where 𝐺 ≥1 and fading casuistry is considered. Therefore, scalar 𝐺 simulates the loss caused by fading and hypothetical interferences caused by secondary users’ network. This scalar is a tuned parameter that can be more restrictive or aid SU communications reliability. The transmit power of the PU is then assumed to be given by 𝑃𝑝𝑡𝑟𝑎𝑛= 𝐺𝛾𝑝𝜎𝑝2 𝑃𝐿(𝑑𝑐), where 𝜎𝑝2 is the noise variance at the primary receiver and 𝑑𝑐 is the PU coverage distance. These primary users can transmit when either they want or under a multiple access protocol. The basic idea is that PU transmits when a new packet is available. The arrived packets should be transmitted as soon as possible. Therefore, PU activity will be considered as active when it would be transmitting packets. The spectrum will be occupied using the same frequency band that SUs uses for communicate. When SUs will sense the spectrum they will see it as occupied. When the PU is active the state of the spectrum is denoted as 𝑆 = 1 and when the PU is idle the state is denoted by 𝑆 = 0, leading to 𝑆∈{0,1}. SUs recollect information about the occupancy of sensed spectrum and can consider it as a statistically conduct. This statistically behaviour can be focused in several ways. 22 3.2.2.1. Bernoulli Statistical Model The status of PU can be assumed like a random variable which at each time slot with probability 𝑝 can be transmitting or contrary with probability 1−𝑝 not transmitting. Thus 𝑝 ∈ [0,1] it’s the parameter used for describe a Bernoulli statistical model. One of the interesting things computable is the coherence time. In other words, the average number of time slots before an idle state is observed. Notice that for a Bernoulli random variable this is not a tuneable parameter but can be calculated and potentially used in the design of the routing algorithm. 𝜇0= 1 1−𝑝 ( 2 ) 3.2.2.2. Markov Statistical Model An alternative model to characterize the primary user activity is a Markov model with two states and its associated transition probabilities, where state 0 means an idle PU status and state 1 means that PU is transmitting. Unlike the Bernoulli model, that assumes that packets are transmitted in a single slot without memory, this model can be interesting to consider a scenario in which PU transmits long packets that take more than one slot to be transmitted. Moreover, if the observation includes ∞ time slots, the Markov Chain can be considered like a Bernoulli statistical model with two state probabilities. Figure 3 Phase diagram of a Markov chain with transition probabilities Both state probabilities can be easily computed combining state transitions probabilities according to probability theory 𝑞=1 − 𝑝 . 𝑃(1)= 𝑝 1+𝑝−(1−𝑞)= 𝑝 𝑝+𝑞 𝑃(0)=1−𝑃(1)= 𝑞 𝑝+𝑞 ( 3 ) In fact, these stabilized status can be tackled relating them to an average number of time slots until the other state is observed calling them as coherences times. So, μ01 means the average number of time slots until a PU transmitting state is observed and μ10 means the average number of time slots until a PU idle state is observed and they are calculated as follows: 23 𝜇01= ∑ 𝑛(1−𝑝)𝑛−1𝑝= 1 1−(1−𝑝)= 1𝑝 ∞ 𝑛=1 𝜇10= ∑ 𝑛(1−𝑞)𝑛−1𝑞= 1 1−(1−𝑞)= 1𝑞 ∞ 𝑛=1 ( 4 ) In addition, the coherence time is the average numbers of time slots to change the state so, mandatorily should be more than 1 or equal. 𝜇10,𝜇01≥1 Substituting equation (4) into (3), a relationship between average number of time slots and state probabilities can be obtained: 𝑃(1) = 𝑝 𝑝+𝑞= 1 1+𝑞𝑝= 1 1 + 𝜇01 𝜇10 𝑃(0) = 𝑞 𝑝+𝑞= 1 1+𝑝 𝑞= 1 1 + 𝜇10 𝜇01 ( 5 ) Notice that in order to maintain the same state probability when one of the coherence times is increased the other one should be increased proportionally. These coherence times should fulfil a bound to maintain real state probabilities. 𝑃(1)= 𝑝 𝑝+𝑞→𝑝= 𝑞𝑃(1) 1−𝑃(1)≤1 𝑃(1)≤ 𝜇10 𝜇10+1 ( 6 ) 3.2.3. SU Users A set of SUs are deployed setting a CRN which want as a purpose interfere as less as possible guarantying the correct reliability of PU communications. At the same time, SUs will profit the same frequency band for stablish their own communications. SU packets are assumed to be received correctly if SINR at the receiver is above a desired threshold denoted by 𝛾𝑠. This threshold is given by a Packet Error Rate (PER) previously established. In linear scale, the SINR observed at the receiver when SU 𝑗 transmits to SU 𝑘 is: 𝛾𝑗,𝑘= 𝑃𝑗𝑡𝑟𝑎𝑛𝑃𝐿(𝑑𝑗,𝑘) 𝜎𝑘2+ 𝐼𝑘 ( 7 ) Where 𝑃𝑗𝑡𝑟𝑎𝑛 is the transmit power of SU 𝑗 and it must be bounded by a maximum transmit power and maximum bearable interference (both explained in section 3.3.), 𝜎𝑘2 and 𝐼𝑘 are the noise variance and the received interference power caused by PU and other SUs, respectively. 24 In this project we consider that only a SU is transmitting in a time slot. So, if SU 𝑗 is transmitting not one else SU can’t transmit at the same time except PU transmitter. 3.2.3.1. Neighbours To ensure the capability of stablish a CRN each SU must have a set of neighbours in both status conditions, PU transmitting or idling. The neighbours of SU 𝑗 are determined based on the observed SINRs at each SU receiver. Denote the set of neighbours of SU 𝑗 according to the spectrum status to 𝑆∈{0,1} as 𝒩𝑗(𝑆). Denote the SINR between SU 𝑗 and 𝑘 when the state of the spectrum is 𝑆 by 𝛾𝑗,𝑘(𝑆). If 𝛾𝑗,𝑘(𝑆) ≥ 𝛾𝑠, then 𝑘∈𝒩𝑗(𝑆). If the spectrum is occupied, the SU transmitter will route with one of 𝒩𝑗(1). When an occupied status is considered, it means that PU presence is nearby. Consequently, the number of neighbours in 𝒩𝑗(1) will be more limited than 𝒩𝑗(0). This reduction is due to a fewer SINR at SU 𝑘 receiver caused by PU interference power and the reduction of SU power available commented in 3.2.3.4. Otherwise, when the spectrum is considered to be idle 𝒩𝑗(0) will be used. 3.2.3.2. SU Deployment It’s assumed that all the SUs are deployed randomly in a region space where a PU is present. The fact is that the number of SU and the size of the region should ensure connectivity between all of them or with a highly probability of connection. In [13] a deep research about connectivity have been done. In this paper it is computed and expression which ensures with a probability of connection 𝑝𝑐𝑜𝑛 that there are no isolated nodes. 𝑝𝑐𝑜𝑛 ≅(1 − 𝑒−𝜋𝜌𝑟02)𝑛 ( 8 ) Where 𝑟0 is the coverage radius of SU, 𝑛 the number of SUs and 𝜌 SUs density. The coverage radius can be obtained by SUs SINR expression (7). The radius 𝑟0 correspond to 𝑑𝑗,𝑘 at the edge of coverage area. 𝑟0= (𝑃𝑆𝑈 𝑚𝑎𝑥 𝐺𝛾𝑠𝜎𝑠2)1/𝛼−1 ( 9 ) Then, setting a SU density deployment and the number of SUs, the probability 𝑝𝑐𝑜𝑛 can be calculated. This probability in our scenario should be very high about 0.99 or higher. Remember that a routing scenario is planned and each node have to ensure more than 1 link to get more options when a packet must be forwarded. Then the needed density to comply a specified connectivity probability is calculated as follows: 𝜌= −log(1−𝑝𝑐𝑜𝑛 1/𝑛) 𝜋𝑟02 ( 10 ) 31 Figure 5 Geometric Filter Schematic with probability PU transmitting equal to 0.8 Where ∢ 𝑗 is an angle calculated in SU 𝑗 and 𝑒𝑑𝑔𝑒 corresponds to the point which passes the tangent defined between 𝑗 position and the point where tangent cuts the maximum PU Area edge. The set obtained after filter 𝒩𝑗(1)  has neighbours of 𝑗 SU with status occupied. This way will avoid links near to PU. Besides exists the possibility that SU 𝑗 could be inside PU Area. Then it’s assumed that angles condition is fulfilled. In the Figure 5, PU coverage area corresponds to the circular blue area, PU Safety area is the red one and there is represented the exclusion zone defined by tangent lines. b) Communications Status: for both sets of neighbours 𝒩𝑗(1)  and 𝒩𝑗(0) of 𝑗 has knowledge about bidirectional communications 𝐶𝑆𝑗(𝑆) between all their neighbours. 𝐶𝑆𝑗(𝑆) is formed by binary variables which indicate if the link establish with this SU is bidirectional or not. At the same time, it allows to know each SU which bidirectional links are available according capability and route conditions. In fact, a link without response after a Timeout will assumed as no bidirectional. It will be useful to avoid dead-ends or inability to return a packet. It can happen that 𝑗 do not detect spectrum occupied and transmit to 𝑘 SU which detects PU activity and have to return back the packet to 𝑗. Using this system will allow to prevent these situations. The cost definitions SU 𝑗 to SU 𝑘 are the same like explained above in 3.3.2. Once upon prior actions are done the algorithm can be run as follows: 32 a. Initially all potential values are set to ∞, except for the potential value at the final destination which is 0. SU 𝑗 iterates its potential value until convergence after receiving the information about the potential value of its one-hop neighbours. Denote the old potential value of SU 𝑗 after the (𝑡−1)𝑡ℎ update as 𝜙𝑗(𝑡−1). Then 𝜙(𝑡) is updated as 𝜙𝑗(𝑡)= min {𝜙𝑗(𝑡−1); 𝑀0(𝑡)} ( 18 ) In the rest of the thesis the converged potential values are denoted by 𝜙𝑗. This potential values are exempted to PU movements and position changes. b. After the potential values have converged, SU 𝑗 determines the next hop based on the sensed state of the spectrum as follows. If the spectrum is sensed idle the next hop is 𝑘∗= arg min 𝑘 ∈ 𝒩𝑗(0)⋃𝑘 ∈ 𝐶𝑆𝑗(0){𝐶𝑗,𝑘(0)+ 𝜙𝑘}. If the spectrum is occupied 𝑗 will wait for an idle slot if min 𝑘 ∈ 𝒩𝑗(0)⋃𝑘 ∈ 𝐶𝑆𝑗(0){ 𝐶𝑗,𝑘 𝑤𝑎𝑖𝑡+ 𝜙𝑘}<min 𝑘 ∈ 𝒩𝑗(1) ⋃𝑘 ∈ 𝐶𝑆𝑗(1){𝐶𝑗,𝑘(1)+ 𝜙𝑘}, but otherwise it forwards the packet to 𝑘∗= arg min 𝑘 ∈ 𝒩𝑗(1) ⋃𝑘 ∈ 𝐶𝑆𝑗(1){𝐶𝑗,𝑘(1)+ 𝜙𝑘}. Once determined the 𝑘∗, it is necessary to check if this SU belongs to the established route until actual SU is reached. If so indicate the no ability 𝑘∗ in 𝐶𝑆𝑗(𝑆) to set a next hop and search again a new SU to transmit according to the method explain above. This routing algorithm is appropriate for PUs with high mobility. A hypothetical mobility will not affect potential field values. Merely, only SU filter will have to be recalculated if PU is moving. 33 4. Results The purposed and studied routing algorithm in [7] (MPBR) is optimum in a Bernoulli statistical model or if the primary user is active or inactive all the time (i.e. with probability one). By optimum, we mean that it selects the route of minimum average cost. The intention of this chapter is to assess which behaviour has MPBR in a Bernoulli statistical model and compare it with the performance it has in a Markov statistical model. According to the results obtained, the designed routing algorithm GFR is assessed and it is checked in both statistical models whether GFR can beat MPBR. As said before, the MPBR algorithm has a deep knowledge of the network and its chosen route is assumed to be statistically optimal if potential values have been converged perfectly and spectrum sensing works without error probability. On the other hand, the purposed GFR algorithm uses more network data than the MPBR algorithm and these extra data make GFR more robust and consistent to any PU movement in the interest space region. This Figure 6 shows the scenario set out in this section. Four different routes are painted using: both algorithms and delay and energy metrics exposed previously. The blue and red circular areas corresponds to the PU Coverage area and PU Safety area respectively. Let’s take a look to the routing algorithms behaviours assuming a PU transmitting probability of 0.8 with a Bernoulli statistical model. Especially, when an idle spectrum sense is assumed by SUs. Figure 6 Routing algorithm routes example 34 GFR delay route, in third hop, sense the spectrum and consider that it is idle. Then, transmit to another SU which is inside the PU Safety area. Hereafter, GFR will have to transmit with the CR links available inside that and if spectrum sensing allows it. Otherwise, GFR energy route starts transmitting with the spectrum occupied. After some hops, GFR has avoid the most conflict region (the case when SU destination is behind the PU areas). The MPBR in this figure seems to work quite good in both metrics. 4.1. Coding scheme To assess the implemented and designed algorithms, a coding scheme based on digital modulations should be defined. Each packet it is assumed to be composed of 133 bytes like the frame length of ZigBee and WSN protocol (IEEE 802.15.4)[14] and with a baud rate of about 1Mbaud. The modulation chosen is QPSK and the error correcting code is a LDPC code of code rate 0.5. According to this packet size, the duration of time slots is set to: 𝑇𝑠𝑙𝑜𝑡=1.1𝑏𝑖𝑡𝑠 𝑝𝑎𝑐𝑘𝑒𝑡 𝑏𝑖𝑡𝑟𝑎𝑡𝑒 ( 199 ) The penalty factor 1.1 corresponds to an increase of time slot to sense the spectrum and know PU activity status. Bitrate after coding stage and modulator process is computed as follows: 𝑏𝑖𝑡𝑟𝑎𝑡𝑒=𝑅𝑏= 𝑏𝑅𝑐𝑅𝑠 ( 20 ) In which 𝑏 means the number of bits represented in just one symbol. In the case of QPSK modulation, 𝑏 = 2. The system bandwidth can be computed using the following formula: 𝐵𝑊= 𝑅𝑠(1+𝛼)=𝑅𝑏 𝑏𝑅𝑐(1+𝛼) ( 21 ) Parameter 𝛼 is the roll-off factor of transmitted pulses, which is set to 0 for simplicity. In this way, in the studied set-up, the bitrate and bandwidth are considered to be equal. The coding system chosen for transmit information is based in LDPC-codes. From tables that emulate a relation between PER and SINR of LDPC-codes, an accurate PER vs SINR have been used to simulate the different scenarios, previously presented. 35 Figure 7 Packet Error Rate vs Signal Interference Noise Rate using LDPC-codes To sum up all the values presented before, we have included the following table: Coding Scheme Parameters 𝑅𝑠 1Mbauds 𝑏 2 𝑅𝑐 0.5 𝑅𝑏 1 Mbps Frame length (𝑁𝑏𝑖𝑡𝑠) 1064 bits Bandwidth 1 MHz 𝑇𝑠𝑙𝑜𝑡 1.064 ms Table 3 Coding Scheme parameters used for simulate different scenarios 36 4.2. Metric Settings Routing algorithms exposed above are based on forwarding packets according to potential values that are calculated using different metrics for particular statistical models. It has been selected two kinds of metrics: delay and energy. These metrics will be used in the two routing algorithms previously presented: MPBR and GFR. The following metric expressions in 1.2.1 and 1.2.2 define the whole cost, in terms of the adopted metric, of transmitting a packet from a SU transmitter to a neighbouring SU receiver. These expressions assume that both SUs are neighbours or, additionally, 𝐶𝑆𝑗(𝑆) should be available. One important factor that will appear recurrently is the number of retransmissions 𝑁𝑟𝑡𝑥 . According to the 𝑃𝐸𝑅 (packet error rate), which provides the fraction of incorrectly decoded packets and is assumed to be 0.01, we can compute the average number of retransmissions as follows: 𝑁𝑟𝑡𝑥= ∑ 𝑛(1−𝑃𝐸𝑅)𝑃𝐸𝑅𝑛−1 ∞ 𝑛=0 = 1 1−𝑃𝐸𝑅 ( 20 ) 4.2.1. Delay Metric Setting In order to route packets making use of the studied algorithms, a delay metric has been developed. This metric contemplates three situations: 1) PU is transmitting (an information that is obtained after sensing the spectrum and observing that the primary is active). In that case, the delay of transmitting the packet from node j to node k is given by: 𝐶𝑗,𝑘(1)=𝑁𝑟𝑡𝑥(𝑇𝑝𝑟𝑜𝑐,𝑗+ 𝑑𝑗,𝑘(1) 𝑐+ 𝑇𝑠𝑙𝑜𝑡+ 𝑇𝑞𝑢𝑒𝑢𝑒,𝑘+ 𝑇𝑝𝑟𝑜𝑐,𝑘)+ 𝑇𝑟𝑜𝑢𝑡𝑒,𝑘 ( 213 ) 2) PU has an idle status. In that case, we have the same expression for the delay but the set of neighbours of node j has changed and the transmitted power of node j will be higher than in case 1. 𝐶𝑗,𝑘(0)=𝑁𝑟𝑡𝑥(𝑇𝑝𝑟𝑜𝑐,𝑗+ 𝑑𝑗,𝑘(0) 𝑐+ 𝑇𝑠𝑙𝑜𝑡+ 𝑇𝑞𝑢𝑒𝑢𝑒,𝑘+ 𝑇𝑝𝑟𝑜𝑐,𝑘)+ 𝑇𝑟𝑜𝑢𝑡𝑒,𝑘 ( 224 ) 3) Finally, if the primary is transmitting, we can decide not to transmit immediately but waiting some time slots until the primary stops to transmit. In that case, the delay will be as follows: 𝐶𝑗,𝑘 𝑤𝑎𝑖𝑡= 𝐶𝑗,𝑘(0)+ 𝜇𝑇𝑠𝑙𝑜𝑡 ( 235 ) These expressions above are composed of different terms. The delay of reading and decoding a packet is 𝑇𝑝𝑟𝑜𝑐. The time spent in the buffer before the packet is processed is 𝑇𝑞𝑢𝑒𝑢𝑒. The required time to know which is the best option to route packets is 𝑇𝑟𝑜𝑢𝑡𝑒 (delay of the routing algorithm) and 𝑐 is the speed of light. According to CC2420 specifications [15], 𝑇𝑝𝑟𝑜𝑐 is 3 µs and 𝑃𝐸𝑅 is considered to be 0.01. 37 To simplify the analysis, 𝑇𝑟𝑜𝑢𝑡𝑒,𝑘 is assumed to be negligible. In this project the simulations are done considering single simultaneous SU transmissions, that is, only one SU transmits simultaneously. So, we are implicitly considering that the SU network is hardly congested. Consequently, 𝑇𝑞𝑢𝑒𝑢𝑒,𝑘 is disregarded for simplicity. The rest of values are assumed to be known by secondary users and they are listed in the following table: Delay Metric Parameters 𝑃𝐸𝑅 0.01 𝑁𝑟𝑡𝑥 1.0101 𝑇𝑠𝑙𝑜𝑡 1.064 ms 𝑇𝑝𝑟𝑜𝑐 3 µs 𝑐 3·108 m/s Table 4 Delay Metric Parameters used for simulate different scenarios 4.2.2. Energy Metric Setting The energy metric setting is particularized like in the delay case: three situations in which the metric value will be different. 1) PU is transmitting. The energy cost is computed as: 𝐶𝑗,𝑘(1)= 𝑁𝑟𝑡𝑥(𝐸𝑠𝑒𝑛𝑠+ 𝐸𝑇0+ 𝐸𝑝𝑎𝑞+ 𝐸𝑅0) = 𝑁𝑟𝑡𝑥(0.1 1.1𝑃𝑠𝑒𝑛𝑠,𝑗𝑇𝑠𝑙𝑜𝑡+1 1.1𝑃𝑇0𝑇𝑠𝑙𝑜𝑡+ 𝐸𝑏𝑡𝑥𝑗(1)𝑁𝑏𝑖𝑡𝑠+𝑃𝑅0𝑇𝑠𝑙𝑜𝑡 ) ( 246 ) 2) PU is idle. In that case, the expression is identical to the previous one but the energy per bit is not limited by the maximum tolerated interference on the PU receivers and, at the same time, the set of neighbours changes: 𝐶𝑗,𝑘(0)= 𝑁𝑟𝑡𝑥(𝐸𝑠𝑒𝑛𝑠+ 𝐸𝑇0+ 𝐸𝑝𝑎𝑞+ 𝐸𝑅0) = 𝑁𝑟𝑡𝑥(0.1 1.1𝑃𝑠𝑒𝑛𝑠,𝑗𝑇𝑠𝑙𝑜𝑡+1 1.1𝑃𝑇0𝑇𝑠𝑙𝑜𝑡+ 𝐸𝑏𝑡𝑥𝑗(0)𝑁𝑏𝑖𝑡𝑠+𝑃𝑅0𝑇𝑠𝑙𝑜𝑡 ) ( 257 ) 3) A waiting scenario is also taken into account. This happens when the SU senses the spectrum and it observes that is occupied and decide to remain idle. After time slot finishes, SU wakes up and follows the same strategy until PU is idle. The energy cost is calculated as follows: 𝐶𝑗,𝑘 𝑤𝑎𝑖𝑡= 𝐶𝑗,𝑘(0)+ 𝜇𝑇𝑠𝑙𝑜𝑡(0.1 1.1𝑃𝑠𝑒𝑛𝑠,𝑗+1 1.1𝑃𝑖𝑑𝑙𝑒) ( 268 ) When a transmitter wants to forward packets, a part of time slot is dedicated to sense spectrum if there is PU presence. According to the scenario contemplated, exists different 38 factors which are part of the metric cost expressions exposed above. These factors are explained as follows: sensing power is set to be 𝑃𝑠𝑒𝑛𝑠, baseband digital signal processing circuit and Tx and Rx circuits consumes power called 𝑃𝑇0 and 𝑃𝑅0 respectively. In the case of waiting until next time slot the SU transmitter will remain in idle status consuming 𝑃𝑖𝑑𝑙𝑒. Finally, the energy per bit that is transmitted is defined as 𝐸𝑏𝑡𝑥𝑗, where this energy is determined based on the available power at the transmitter, the intended PER at the receiver (which determines the required SINR 𝛾𝑠), the interference generated by the PU when it is transmitting 𝐼𝑘, the sensibility of the receiver 𝜎𝑘2 and the target bit rate 𝑅𝑏 (throughput). So, energy per bit should ensure that not exceed the SU maximum transmit power. On the contrary, the link will not have reliability. 𝐸𝑏𝑡𝑥𝑗=𝛾𝑠(𝐼𝑘+𝜎𝑘2) 𝜂𝑃𝐿(𝑑𝑗,𝑘)𝑅𝑏 ( 279 ) Fixing the communications PER rate, SINR 𝛾𝑠 is obtained from the PER curve (see Figure7). We have also considered in the energy per bit expression the power amplifier drain efficiency by means of parameter 𝜂. This is a factor to take into account when transmitter power is not high (about a few mW). Power values selected come from an analysis of energy-aware consumption in wireless sensor networks [10, 11]. Power Consumption Parameters 𝑃𝑆𝑈,𝑚𝑎𝑥 𝑡𝑟𝑎𝑛 0 dBm 𝑃𝑠𝑒𝑛𝑠 22.2 mW 𝑃𝑇0 26.5 mW 𝑃𝑅0 59.1 mW 𝑃𝑖𝑑𝑙𝑒 22.06 mW 𝜂 3.7% Table 5 Power Consumption parameters used for simulate different scenarios 4.3. MPBR Assessment In order to evaluate the routing algorithm proposed in [7], the following parameters characterize the assessed scenario: - 500 secondary users that are deployed randomly - Region of 1300 m2 - PU coverage radius of 120m - SU coverage radius of 182m - SU sensibility 𝜎𝑠2 of -95dBm [15] - PU sensibility 𝜎𝑝2 of -90dBm [7] 39 - SINR 𝛾𝑝 of 10 dB - PER equal to 0.01 - SU origin transmitter and SU destination receiver placed at the opposite ends of the simulated area. - PU transmitter placed in the centre of the simulated area. 4.3.1. MPBR Bernoulli scenario With a Bernoulli statistical model for the PU transmitter, delay and energy metrics have been simulated. The results for each probability have been averaged over 500 realizations. Next figures illustrate the cost until the packet transmitted by SU origin reach the SU destination. The simulated costs are two: delay and energy. In x-axis shows the PU transmitting probability and the y-axis the total cost according to the selected metric. The purpose is observe and assess which effect has the PU transmitting probability to the total cost when this probability is increased. Figure 8 Delay metric results with Bernoulli Statistical Model 40 Figure 9 Energy metric results with Bernoulli Statistical Model In both metrics as the probability of PU transmitting is increased the delay cost too. For high values of the PU probability, packets are not routed through the PU coverage area but they are deviated in order to avoid this forbidden area, resulting in an increase of spent time slots and hops until the destination is reached. For low levels of PU activity, these results seem that wait cases have been produced because the Bernoulli coherence time (2) is quite low (around 𝜇0 = [1.11-1.67] for 𝑝=[0.1 − 0.4] respectly). 47 Figure 17 Comparison Energy metric with Markov Statistical Model assuming P(1) = 0.5 Figure 18 Comparison Delay metric with Markov Statistical Model assuming P(1) = 0.8 48 Figure 19 Comparison Energy metric with Markov Statistical Model assuming P(1) = 0.8 As PU transmitting probability is increased, there is no improvement of the GFR algorithm anymore. In Figure 15, the delay cost is quite higher with GFR than the cost in MPBR. The same happens with a probability of 0.8 in Figure 17. For the energy metric, it occurs the same deterioration of total cost as with the delay metric. However, in Figure 16 (i.e. P(1)=0.5), the energy cost, as the coherence time grows, the total cost loss is not as high as happens in Figure 18 (i.e. P(1) = 0.8). This similarity points to consider that the improvement of GFR with respect to MPBR could be produced for some higher probabilities than P(1) = 0.2 but not exceeding P(1) = 0.5 (they are not just simulated). This improvement of GRF between MPBR can also be considered for higher probabilities than P(1)=0.5 but with an enhancement of GFR scheme or at the same time, use more suitable metric costs. As a last comparison, for a PU transmitting probability of 0.8 (Fig. 18), the energy cost shoots up regarding to GFR and there is not any improvement observed. 49 5. Budget The budget of this thesis has consisted basically in the elaboration of a simulator in MATLAB becoming the backbone of the project. Consequently, the entire budget collects all those things that can produce a charge as following: the license of MATLAB software and wages for human work which has spent time in preparing, developing and concluding the thesis mentioned. Task Weeks Hours Cost per hour (€) Cost (€) Planning & State of The Art Researches 4 60 12 720 Analysis the thesis simulator 2 30 12 360 Programming the simulator 15.5 232.5 12 2790 Simulation & Results 5.75 86.25 12 1035 Degree Thesis Redaction 6.75 101.25 12 1215 Software License - - - 2000 TOTAL 8120 Table 6 Degree Thesis Budget 50 6. Conclusions and future development: Cognitive radio is one of the hot topics in the field of wireless communications which in the next years we will hear to talk about. The demand of low latency, the increase of devices and the apparition of new services leads to the saturation of the spectrum due to an increment of devices’ activity and wider bandwidths. Cognitive Radio tries to solve this allowing more devices to operate in the same frequency band but without decreasing the quality of service of the present ones. Some novel strategies are required to route the information across the cognitive radio network. In this project, a few of them have been explored. There already exist novel routing algorithms but always under the assumption of minimizing some routing metrics. In this degree thesis I just explored an existing routing scheme and a new one proposed by myself which has as a purpose to beat the first one. The proposed algorithm is not tied to the present PU statistical model. This is an advantage because it can be used under any PU model and be robust to hypothetical PU movements just knowing the PU location. In fact, the routing scheme developed in [7] uses a PU activity that follows a Bernoulli distribution but without knowing the PU position. Our intention is to doubt this statistical model and to simulate the two routing algorithms under a Markov statistical model, which is more realistic when the packets lengths of PU network are larger than the time slots of SU network. In this way, SUs could take this model as an advantage and transmit using variable packet lengths (more than one time slot depending on coherence times) instead of one packet for each time slot. On the whole, it can be concluded that with a Bernoulli statistical model MPBR algorithm is optimum and GFR has a similar performance for low PU transmitting probabilities. MPBR was designed to be used under the Bernoulli model and, when PU activity model is changed, its behaviour is not anymore as good as with the Bernoulli model. On the other hand, GFR is a versatile routing algorithm that can be applied to any statistical model on the primary network activity. This is why GFR has the capability to beat MPBR in some Markov scenarios. For PU transmitting probabilities of 0.2, GFR is able to route a packet towards the final destination with less metric cost than MPBR. In delay metric scenario, it is produced by 𝜇10=[3−5] and 𝜇10=[7−11] for energy case. For the others two probabilities assessed, there is not possibility of enhancement. Additionally, the probabilities between 0 and 0.5 could present some cases where the GFR cost would be fewer. At the same time, MPBR is an algorithm which works rather well in all the simulated scenarios but some reconsiderations like a statistical update of potential values taking into account transition probabilities and coherence times, could be done in order to enhance its performance in case the Markov statistical model is considered. This could be one of the potential future developments to improve this routing algorithm. Finally, GFR could be also considered for a future development looking for reach better metric settings and reducing its high routing cost in case of high PU transmitting probabilities. Then, a reassessment of Markov scenarios could show better performance for higher probabilities. 51 Bibliography: [1] Goldsmith, A., S.a. Jafar, I. Maric, and S. Srinivasa. "Breaking Spectrum Gridlock With Cognitive Radios: An Information Theoretic Perspective." Proceedings of the IEEE Proc. IEEE, vol 97, no. 5, pp. 894-914, April 2009. DOI: 10.1109/JPROC.2009.2015717 [2] Dung, Le The, and Beongku An. "A Stability-Based Spectrum-Aware Routing Protocol in Mobile Cognitive Radio Ad-Hoc Networks." 2014 International Symposium on Computer, Consumer and Control, June 2014, Taichung, Taiwan. pp. 1014-1017 DOI: 10.1109/IS3C.2014.265. [3] Garg, Kartikay, Pratibha, and Shailender Gupta. "A Novel Routing Strategy for Cognitive Radio Adhoc Network." Computing for Sustainable Global Development (INDIACom), 2015 2nd International Conference on Computing for Sustainable Global Development, March 2015, New Delhi, India. pp. 1379-1385. ISBN: 978-9-3805-4415-1 [4] Na. J, Soroker. D, Kim. C. k. "Greedy Geographic Routing Using Dynamic Potential Field for Wireless Ad Hoc Networks." IEEE Communications Letters, vol. 11, no. 3, pp. 243-245, March 2007. DOI: 10.1109/LCOMM.2007.061612 [5] Poor, Robert D. "Gradient Routing in Ad Hoc Networks." [Online] Available: http://www.media.mit.edu/pia/Research/ESP/texts/poorieeepaper.pdf. [Accessed: 19 April 2016]. [6] Singh. S. k., Singh. M P, Singh. D K. “Routing Protocols in Wireless Sensor Networks – A Survey”. International Journal of Computer Science & Engineering Survey (IJCSES), vol. 1, no. 2, November 2010. DOI: 10.5121/ijcses.2010.1206 [7] Oksanen. J, Kaufman. B, Koivunen. V, Poor. H. V. “Minimizing the Routing Delay in Cognitive Radios Using Potential Fields”. 2015 IEEE 16th International Workshop on Signal Processing Advances in Wireless Communications (SPAWC), Stockholm, Sweden. pp. 625-629. DOI: 10.1109/SPAWC.2015.7227113 [8] Caleffi. M, Akyildiz. I. F., Paura. L. “OPERA: Optimal Routing Metric for Cognitive Radio Ad Hoc Networks”. IEEE Transactions on Wireless Communications, vol. 11, no. 8, pp. 2884-2894, August 2012. DOI: 10.1109/TWC.2012.061912.111479 [9] Ren. F, Zhang. J, He. T, Lin. C. “EBRP: Energy-Balanced Routing Protocol for Data Gathering in Wireless Sensor Networks”. IEEE Transactions on Parallel and Distributed Systems, vol. 22, no. 12, pp. 2108-2125, October 2011. DOI: 10.1109/TPDS.2011.40 [10] Wang. Q, Hempstead. M, Yang. W. “A Realistic Power Consumption Model for Wireless Sensor Network Devices”. 2006 3rd Annual IEEE Communications Society on Sensor and Ad Hoc Communications and Networks, vol. 1, pp. 286-295, September 2006. DOI: 10.1109/SAHCN.2006.288433 [11] Raghunathan. V, Schurgers. C, Park. S, Srivastava. M. B. “Energy-Aware Wireless Microsensor Networks”. IEEE Signal Processing Magazine, vol. 19, no. 2, pp. 40-50, March 2002. DOI: 10.1109/79.985679 [12] Torlak. M “Path Loss”. EE4367 Telecom. Switching & Transmission. [Online] Available: https://www.utdallas.edu/~torlak/courses/ee4367/lectures/lectureradio.pdf. [Accessed: 19 April 2016]. [13] Barbarossa. S, Bucciarelli. F. “On the connectivity of cooperative and no cooperative wireless communication networks”. IEEE 6th Workshop on Signal Processing Advances in Wireless Communications, June 2005, New York, USA. pp. 905-909. DOI: 10.1109/SPAWC.2005.1506271 [14] IEEE Standard for Local and metropolitan area networks. Specific requirements. Part 15.4: Low- Rate Wireless Personal Area Networks (LR-WPANs). IEEE Std 802.15.4-2011 52 [15] Chipcon Products from Texas Instruments. “2.4 GHz IEEE 802.15.4/ZigBee-ready RFTransceiver”. [Online] Available: http://www.ti.com/lit/ds/symlink/cc2420.pdf. [Accessed: 28 April 2016] 53 Glossary SU: Secondary User PU: Primary User QoS: Quality-of-Service WSN: Wireless Sensors Network CRN: Cognitive Radio Network CR: Cognitive Radio SINR: Signal Interference Noise Rate PER: Packet Error Rate RF: Radio Frequency CSMA/CA: Carrier sense multiple access with collision avoidance MPBR: Minimal Potential Based Routing GFR: Geometric Filtering Routing LDPC: Low Density Parity Check QPSK: Quadrature Phase-Shift Keying