Cooperative Spectrum Sensing for Cognitive Radio-Wireless Sensors Network Based on OR Rule Decision to Enhance Energy Consumption in Greenhouses

Wireless sensors networks (WSNs) combined with cognitive radio have developed and solved the limited space of the frequency spectrum. In this paper, we propose different types of spectrums sensing and their own decisions depend on the probabilities that applied into fusion center, and how these probabilities’ techniques help to enhance the energy consumption of WSNs. In the same way, the importance of designing balanced distribution between the wireless sensors networks and their own sinks. This research also provides an overview of security issues in CR-WSN, especially in Spectrum Sensing Data Falsification (SSDF) attacks that enforces harmful effects on spectrum sensing and spectrum sharing. We adopt OR rule as four types of CRSN sensing protocolin greenhouses application by using Matlab and Netsim simulators. Our results show that the designing balanced wireless sensors and their sinks in greenhouses are very significant to decrease the energy, which is due to the traffic congestion in the sink range area. Furthermore, by applying OR rule has enhanced the energy consumption, and improved the sensors network lifetime compared to cognitive radio network.


Introduction
Wireless sensor networks (WSNs) are one of the communication systems that have been recently adopted by technological advancements of the modern world.This type of communication has greatly helped several people to share data with others in different geographic locations.Conversely, sending and receiving information through WSNs has risen which may cause the spectrum scarcity problem due to some limitations of the available frequencies regulation that conducted by Federal Communication Commission (FCC) [1].FCC controls the radio spectrum and its availability and giving the authorization to the primary user to use the spectrum.Using some methods, such as cognitive radio based in wireless sensors networks (CR-WSNs), can overcome the spectrum scarcity.Cognitive Radio system generally has four components: Primary Users (PUs), Base station for the PUs, Cognitive Radio Users or Secondary Users (SUs), and Base station for the SUs.The PUs as the name implies, are the main users who have license as such are authorized to use the channel spectrum by the PU-base station.Whereas, the SUs are not regular users as such must request channel spectrum from the CR-base station.Cognitive radio allows the communication devices to use some of the unoccupied frequencies in white space (unused space) without any interference to other users that use occupied frequencies in black space (used space).There are some characteristics in CR-WSNs, one of which is management spectrum which consists of four main fundamental components to allow wireless sensor networks to dynamically access the available channels and benefits from the opportunistic channels: 1) Spectrum sensing, 2) Spectrum Decision, 3) Spectrum Sharing and 4) Spectrum Mobility.In this research, large-scale implementation of the fully observed greenhouses attracts the investors these days.However, large-scale implementation of wireless sensor networks WSNs in greenhouses rise with the spectrum scarcity problem.But by applying cognitive radio in wireless sensors networks, overcome the limitation of the covering wide-ranging fields [2].In this paper, we discuss energy efficient based in spectrum sensing and OR technique to increase the network life time, in addition to an overview of security issues in cognitive radio system.

Cooperative Spectrum Sensing for Cognitive Radio-Wireless Sensors Network
Spectrum sensing is considered one of the most essential methods of CR-WSNs.This feature allows sensors to sense, analyze, and monitor parameters of the radio channel that are used for communication without causing harmful interference that may happen between these sensors.There are some factors cognitive radio system must accommodate and consider to perform sufficiently:  Transmission Recognition: cognitive radio should be able to sense and determine the type of transmission that is detected, especially for the primary users to avoid any interventions that may be caused. Regularly spectrum sensing: necessary for the cognitive radio system to regularly sense the spectrum to observe the primary user arrival. Alternative spectrum: during the arrival of the primary user to occupy the spectrum, the cognitive radio system must have an alternative spectrum available to substitute the channels.Spectrum Decision is the approach to conduct the best available spectrum which can examine the spectrum if it is qualified and meet the secondary user's requirements and decided that spectrum is ready to be occupied by SUs and free of any conflict may be caused with the (PUs).
Spectrum Sharing in this method, it can control the area of spectrum in case of having many cognitive radio users that attempt to access in the spectrum and manage it to avoid any interference between PUs and SUs.
Spectrum Mobility the basic concept of spectrum mobility is when the SUs are occupied in some holes of the spectrum during the Primary user's arrival, it can move on the SUs to another available unoccupied place to ensure there is no interruption during this movement.In cognitive radio, there are two sensing techniques: 1) Non-cooperative sensing and 2) Cooperative sensing. Non-cooperative spectrum sensing, this kind of spectrum sensing happens when each cognitive radio user performs by itself which is independently not relying on other users. Cooperative spectrum sensing, this method of spectrum sensing is conducted by some multiple numbers of various radios in the cognitive radio network.Specifically, the fusion center (FC) will gather information of the signals from different radios through the node in the network and check, modify and accommodate all the cognitive radio network to be fully set.The key advantage of cooperative sensing is it can be used to prevent the multipath fading and interference of the SUs with licensed users PUs.In Cooperative spectrum sensing, we can use binary hypothesis testing to predict the presence and the absence of the signals as shown below: available for currently Occupied by where ( ) s n is the transmitted signals for the primary user, ( )   Probabilities of miss detection and false alarm based in spectrum sensing of cognitive radio systems are essential to enhance the energy consumption of wireless sensor nodes in cognitive radio domain, also they help to decide the status of the spectrum, either it is occupied/busy or it is available and free to be taken.
Our goal in this research, is increasing the probability of all channels by allowing SUs to pick the channel subsets, these subsets size can make an arrangement between the energy decreasing and the enhancement in the probability of miss-detection (MD).The cooperative slotted target has fixed decision delay to allow the sensor node as the secondary users in sleep mode during cooperation and in idle mode to be ready for receiving data signals depending on its channel map (CM) which is a sequence.Moreover, in case of the secondary user transmitting data packet to one specific channel and in the same time prevents other SUs to sense the same channel to keep saving the sensors node energy and decreasing the entire delay [4].
The probability of detection can be computed by the equation shown below The probability of miss detection can be computed by the equation shown below The probability of false alarm can be computed by, where N is the number of signal samples, ED β is the threshold, 2 s σ is the signal power, 2 n σ is the noise power derivation and ( ) Channel sensing can be recognized by energy detection, that is known as a method to detect the signals either Pus signal if the signal power is above the threshold or SUs signal if the signal power is below the threshold [5], if the signals detected as secondary user then all the consequence information of the sensing is gathered and analyzed at a FC to generate a decision by using OR rule on the channel occupancy.Wireless Sensor Network OR rule means if at least one N SU detects the primary users that are occupied, then final decision confirms that there is a primary user in use of the channel.The OR-rule technique is an excellent choice for cooperative spectrum sensing in cognitive radio networks compared to other techniques and it can be applied as:

Security Issues in Cognitive Radio
CR-WSNs is more challenging than in traditional WSNs.This is due to the limitations of WSNs; low battery power, storage, communications speed, and computational capability.These limitations open doors to security challenges of the use of CR-WSNs, among other challenges.CR-WSNs suffer from similar security issues existing in the traditional wireless sensor networks, such as Physical security issues.Because sensors are mostly left idle, they are liable to be physically manipulated to steal data going in and out of it, or they can be tempered with or destroyed.In a typical Physical layer attack, the attacker interferes and disrupts the communications between CR wireless sensors by jamming the radio signals being transmitted on the wireless channel [7].Attackers also target the upper layers; the MAC layer and the Network/Routing layer to perpetrate attacks such as Denial of Service (DoS), Sybil, and Wormhole.In addition to these security challenges similar to those of the traditional wireless sensor network, CR-WSNs are vulnerable to other security threats, such as the lack of proper coordination between PUs and SUs.This lack of proper coordination between these two entities may result in data being exchanged, to be stolen, modified or injected with some false data by unauthorized users.Attackers can also use a technique called Spectrum Sensing Data Falsification(SSDF) [8] [9] to interfere with the channel spectrum used by the PUs to appear to be in use or on the other hand, not in use, so as to prevent the SUs from using it or cause Denial of Service (DoS), among other threats.Typically, the CR-Base station collects sensing information from the SUs about channel spectrums that are not being used by the PUs and make a prudent decision about the spectrums' availability, and then assign them to the SUs.In SSDF attack, one or more malicious or compromised SUs send(s) false sensing information to the CR-Base station in an effort to maliciously influence its decision to assign SUs perceived free channel spectrums under erroneous judgement as shown in Figure 4.This could lead to threats such as DoS.On the other hand, SSDF attack could lead to channel spectrum underutilization and hence reduce the overall performance of the network.

Experimental Setup
We evaluate the performance of the proposed schemes using Matlab and Net Simsimulators.We consider 20 Greenhouses in a network and four CRSN types for temperature, humidity, CO 2 and soil composed of 6 nodes/type/greenhouse.
We assume that the power profile follows that of a typical Atheros Wi-Fi [10].
Transmission is based on CSMA/CA contention-based access.All channels undergo typical Rayleigh fading.Table 1 summarizes the simulation parameters.
These parameters are selected based on similar previous works in [11] [12] but with some modifications, such as, the numbers of greenhouses that applied into the simulators, total number of nodes, size of data packets, size of network area and balanced distribution of wireless sensors network in the greenhouses instead of random distribution on previous works.

Energy Consumption
We compare the results between CR-WSN and the OR rule applied in CR-WSN.
The CRSN energy consumption per node in a single day ranges from 14 to 30 mJ.The OR rule technique energy consumption per node in a single day ranges from 8 to 16 mJ.As shown in Figure 5, OR rule technique consumes less energy consumed that is due to low packet transmission rate, collisions, retransmissions and the avoidance of putting sensors in the sinks range area since they balanced distribution.
Figure 5. Energy consumption per node.

Network Lifetime
After a period of time T, some nodes drain their batteries and they are treated as dead nodes.In this section, we present the comparison of CR-WSN and CR-WSN that uses OR rule.Figure 6 and Figure 7 show the CR-WSNs nodes and CR-WSNs with OR rule nodes after the time period T. In Figure 6, in CR-WSNs too many nodes are dead due to the CR energy-hungry techniques.

Conclusion
In this paper, we proposed an overview of security issues in cognitive radio system and the capability of OR-rule technique, especially in greenhouses application.
Unlocalized sensors nodes estimate their position from the base-station node which required much power due to traffic congestion between sinks and the sensors in range area of the sinks.The use of OR-rule is considered as energy saving protocol that enables the investors to have desire of fully observed greenhouses while maintaining the minimum energy consumption and extend the sensor network lifetime.The proposed OR-rule has better improvement rather than other rules, in addition OR rule does not only save the consumed energy but also reduce the required capabilities of the nodes to be more simple nodes.
Our results show that OR-rule has less energy consumption and has a longer lifetime compared to CR-WSN.
n is the Additive White Gaussian Noise (AWGN) of variance 2 σ and h is the amplitude gain of the channel.OR Rule Decision in Cognitive Radio-Wireless Sensors Network.The fusion techniques in cooperative spectrum sensing can be classified into soft and hard decisions schemes [3], as shown in Figure 1.
As shown in Figure2and the flow chart in Figure3, the localization of WSNs can be affected positively or negatively on sensors network lifetime depending on the design of the wireless sensors and their sinks for instance, centralized approach or distributed approach.The area around sinks is crowded, that is due to heavy traffic congestion of the communication between the sensors in sinks range area which ended up to consume excessively high energy consumption[6], so as a result limitation of the network lifetime in WSNs.

Figure 2 .
Figure 2. Explanation of the process of OR rule decisions.

Figure 3 .
Figure 3. Flow chart explains the process of OR rule decisions.

Figure 4 .
Figure 4. Explanation of SSDF attack in cognitive radio-wireless sensors network.
that shows OR-rule protocol nodes have low energy consumption, CR-WSN nodes that use OR rule are better and still operating excellent condition and only few of them are dead.The network lifetime can be observed for a time period of 38 months for the CR-WSNs and CR-WSNs with OR rule applied as shown in Figure8.The existing CRSN techniques drain the node's battery fast and some sensors network died in 26 months, while the OR rule network is still alive for more than 38 months with excellent condition.

Figure 6 .
Figure 6.CR-WSN sensors after a period T (too many nodes are dead).

Figure 7 .
Figure 7.The OR-rule in CR-WSN sensors after a period T (operating in an excellent condition).
The decision between the two hypotheses 0 H or 1 H in OR rule decisions explained in the table as shown below: D P