Institute Instituteof ofAdvanced AdvancedEngineering Engineeringand andScience Science International Journal of Electrical and Computer Engineering (IJECE) Vol. No. August 2017, pp. 1934 Ae 1940 ISSN: 2088-8708 . DOI: 10. 11591/ijece. Performance Evaluation of Energy Detector Based Spectrum Sensing for Cognitive Radio using NI USRP-2930 El Bahi. Ghennioui, and M. Zouak Laboratoire Signaux. SysteAmes et Composants (LSSC). FaculteA des Sciences et Techniques de FeAs (FSTF) UniversiteA Sidi Mohamed Ben Abdellah (USMBA). Route Immouzzer. FeAs-Maroc Article Info ABSTRACT Article history: Received: Feb 18, 2017 Revised: May 28, 2017 Accepted: Jun 12, 2017 This paper presents the performance evaluation of the Energy Detector technique, which is one of the most popular Spectrum Sensing (SS) technique for Cognitive Radio (CR). is the ability to detect the presence of a Primary User (PU) . licensed use. in order to allow a Secondary User (SU) . e unlicensed use. to access PUAos frequency band using CR, so that the available frequency bands can be used efficiently. We used for implementation an Universal Software Radio Peripheral (USRP), which is the most used Software Defined Radio (SDR) device for research in wireless communications. Experimental measurements show that the Energy Detector can obtain good performances in low Signal to Noise Ratio (SNR) values. Furthermore, computer simulations using MATLAB are closer to those of USRP measurements. Keyword: Energy Detector Spectrum Sensing Cognitive Radio Primary User Secondary User USRP MATLAB Copyright c 2017 Institute of Advanced Engineering and Science. All rights reserved. Corresponding Author: Fatima Zahra EL BAHI. Laboratoire Signaux. SysteAmes et Composants (LSSC). FaculteA des Sciences et Techniques de FeAs (FSTF). UniversiteA Sidi Mohamed Ben Abdellah (USMBA). Route Immouzzer. FeAs-Maroc. Email: fatimazahra. elbahi@usmba. INTRODUCTION In recent years, the wireless applications and devices have developed and increased rapidly. Since the access to electromagnetic spectrum is fixed and limited, thus the available frequency bands are inefficiently utilized which causes the spectrum scarcity problem . In order to use the available spectrum efficiently, many studies and researches have proposed a new concept called Cognitive Radio (CR). This concept is based on the opportunistic usage of radio frequency bands by allowing Secondary Users (SUs, i. unlicensed user. to exploit frequency bands of Primary Users (PUs, i. licensed user. CR is a radio for wireless communications able to change its parameters, related to either transmission or reception, autonomously and dynamically based on the electromagnetic environment and communication requirements, in order to perform an efficient communication without interfering with PUs . CR has the capability of sensing the spectrum, thus detect the presence PUAos signal, using different spectrum sensing techniques. These techniques are subdivided into two categories: cooperative and non-cooperative sensing The first category is based on sharing information, in other words, the detection of Primary UserAos signal is performed by combining results from multiple cognitive radios that works together . The most important advantage of this technique is the capability of decreasing sensing time and improving the sensing accuracy. The second category, non-cooperative sensing techniques, is also known as primary transmitter detection, because the detection of PUAos signal is based only on the received signal at a SU. The most common sensing techniques that belong to this category are: energy detector . , matched filter detector and cyclostationary detector . Energy detector is the most popular spectrum sensing technique, it can also be considered as the most spectrum sensing technique used in practice because of its low implementation complexity. The concept of Energy detector is based only on computing the total energy of the received signal, then comparing is to a specified threshold in order to decide the presence or absence of a PUAos signal, thus no prior knowledge of the PUAos signal is required, only the variance of the noise is needed. In this paper, we present an implementation of the Energy Detector Based Spectrum Sensing, using an Universal Software Radio Peripheral (USRP), a Software Defined Radio (SDR) device, in order to evaluate the performance Journal Homepage: http://iaesjournal. com/online/index. php/IJECE ww ww ww . i i aa ee ss j j oo uu rr nn aa l l . cc oo m IJECE ISSN: 2088-8708 of the spectrum sensing technique. We used for the implementation an NI USRP-2930, which belongs to the USRP series of the National InstrumentsAo brand. For the programming, we used LabVIEW and MATLAB for both transmission and reception. We implemented for transmission an OFDM (Orthogonal Frequency Division Multiplexin. Signal, which is used as a Primary UserAos signal. We chooses the OFDM modulation because it is the most used in wireless communication, due to its high bandwidth efficiency . , such as WiFi . , 3GPP/LTE . rd Generation Partnership Project/Long Term Evolutio. for the downlink. DVBT . (Digital Video Broadcast Terrestria. and WiMAX . (Worldwide Interoperability for Microwave Acces. The performance evaluation of the Energy Detector is based on experimental measurements obtained using USRPAos receiver, which included the Energy Detector algorithm. The rest of this paper is organized as follows. In section 2, we introduce the Energy Detector based sensing after defining the problem formulation. Section 3 defines the implementation details using NI USRP-2930. Finally, in section 4, the experimental results obtained from the implementation are provided in order to illustrate the performance of Energy Detector. ENERGY DETECTOR BASED SENSING Problem Formulation In our system model, a SU senses the presence of a PU. In order to perform a good detection of a spectrum opportunity, two hypotheses. H0 and H1 are defined respectively for the absence and the presence of a PU signal. Hence, our hypothesis model for transmitter detection can be expressed as follows: H0 : s. = n. H1 : s. = x. where, s. represents the received data, x. is the transmitted signal by the primary user and n. denotes the White Gaussian noise independent from the transmitted signal, with zero mean and variance En2 . From the two hypotheses, two probabilities describe the performance of the spectrum sensing technique: the false-alarm probability Pf a , which is the probability of declaring wrongly H1 and the detection probability Pd , which is the probability of declaring correctly H1 . The main purpose of all spectrum sensing techniques is to maximize the detection probability for a low false-alarm probability. Energy Detector Energy Detector, also known as radiometry, is the most popular and widely used spectrum sensing technique because of its low computational and implementation complexities. It is a simple sensing technique that does not need prior knowledge of the PUAos signal, only the value of the White Gaussian Noise is needed. Urkowitz . was the first to investigate the detection of an unknown signal in a White noise channel using the energy detector based sensing. The PU signal is detected by comparing the total energy of the received signal, over a specified time duration, with a Thus, the test statistics of the energy detector is written as: TED = , . L denotes the size of the observation sequence. The presence of a PUAos signal is thus detected if the energy is greater than the threshold. The decision is then expressed as follows: TED O , where, denotes the threshold. The Probability Density Function (PDF) of the test statistics TED can be modeled as a Gaussian distribution . according to the two hypothesis as follows: H0 : TED O N En2 . 2 (Ex En ) H1 : TED O N Ex En . Performance Evaluation of Energy Detector using NI USRP-2930 (F. El Bah. ISSN: 2088-8708 where. En2 represents the variance of the White Gaussian noise and Ex2 denotes the variance of the transmitted PUAos Based on the PDF of the test statistics, the detection probability Pd and the false-alarm probability Pf a can be expressed as: Oe1 Pf a = P r(TED > |H0 ) = Q En2 Pd = P r(TED > |H1 ) = Q OeAOe1 En2 2A 1 A = Ex2 denotes the Signal to Noise Ratio (SNR) and Q(. ) is the Marcum Q-function defined as: Q. = R O Oe u2 n Oo1 e 2 du. For a target false-alarm probability, the value of the threshold can be calculated by inverting the 2A y relation described in Eq. 6 as follows: Oe1 Q (Pf a ) Oo = En where. QOe1 (. ) is the inverse Marcum Q-function. IMPLEMENTATION DETAILS In this section, we provide the practical implementation details of the Energy Detector based sensing. used for both transmission and reception an NI USRP-2930 (Universal Software Radio Periphera. and a Desktop Computer with LabVIEW 2014 and MATLAB R2013a to control the USRP using a Gigabit Ethernet Cable as shown in Figure 1. Figure 1. ImplementationAos structure NI USRP-2930 NI USRP-2930 is a Software Defined Radio (SDR) transceiver, able to transmit and receive RF (Radio Frequenc. signals, from the USRP series of the National InstrumentsAo brand, it is widely used for both teaching and research in wireless communications. Furthermore, it enables a wide range of RF applications covering common standards such as GSM Cellular, broadcast radio. WiFi. GPS and digital TV. The USRP hardware is a straightforward RF platform for rapid prototyping applications such as spectrum monitoring and physical layer communication. has the ability to transmit and receive RF signals across a frequency range from 50 MHz to 2. 2 GHz. Moreover, the NI USRP-2930 has an integrated GPS-disciplined clock that provides GPS position information, improved frequency accuracy and synchronization capabilities . Transmitter The programming and design parts of the transmitter are implemented in LabVIEW in order to control the NI USRP-2930. For our experiment, we consider an OFDM (Orthogonal Frequency Division Multiplexin. transmitted signal with a carrier frequency set to 200 Mhz. As seen in Figure 2, the transmitterAos front panel is divided into two parts. The left part contains three USRP Parameters. OFDM signal parameters and Debug (Figure . In the OFDM signal parameters block, we can choose the OFDM standard to transmit among the following ones: 3GPP/LTE. WiMax 802. DVBT-2K and 22-1K. The right part of the transmitter represents the PSD (Power Spectrum Densit. of the OFDM transmitted IJECE Vol. No. August 2017: 1934 Ae 1940 IJECE ISSN: 2088-8708 Figure 2. TransmitterAos front panel. Figure 3. TransmitterAos tab control. Receiver In the same way as the transmitter, we have implemented the receiver in LabVIEW as shown in Figure 4. The receiverAos front panel is also divided into two parts, the left one contains three blocks. the USRP Parameters. Energy Detector and Debug. The receiverAos debug part is the same as the one of the transmitter. In the Energy Detector part, as shown in Figure 5, we calculate the Pd (Detection Probabilit. for a specific value of Pf a (False-alarm Probabilit. and realizations. The right part of the receiver contains the PSD of the received OFDM signal, which is almost the same as the one of the OFDM transmitted signal. Figure 4. ReceiverAos front panel. Performance Evaluation of Energy Detector using NI USRP-2930 (F. El Bah. ISSN: 2088-8708 Figure 5. ReceiverAos tab control. RESULTS AND DISCUSSION In this section, we present experimental results of the implementation of the Energy Detector based sensing using NI USRP-2930 and averaged over 1000 realizations. Effect of SNR In this experiment, we test the impact of different SNR (Signal to Noise Rati. values on the Detection Probability (Pd ). We fix the False-alarm Probability (Pf a ) to 0. 01 and vary the SNR value from -24 dB to 0 dB with a step of 2 dB. Each measurement result is the average value of 1000 measurement results for the same SNR value. generated an OFDM signal with 64 subcarriers, 10 symbols and cyclic prefix equals to 8. Figure 6a and 6b show the MATLAB simulation (Computer simulation. and measurement results (USRP implementatio. of the Pd versus SNR of a 3GPP/LTE signal and DVBT-2K signal respectively. We can notice from both figures that the Pd increases with the SNR values. Thus, the larger SNR, the better the detection of the OFDM PU. Furthermore. USRP implementations are closer to MATLAB simulations. Figure 6. Detection probability (Pd ) vs. Signal to Noise Ratio (SNR) . ith Pf a =0. 3GPP/LTE signal and . DVBT-2K signal. IJECE Vol. No. August 2017: 1934 Ae 1940 IJECE ISSN: 2088-8708 Receiver Operation Characteristic In order to examine the effect of Pf a on the detection performance of the Energy Detector, we fix the value of the SNR to -10. 4 dB and vary the Pf a from 0. 1 to 1 with a step of 0. The achieved Pd as a function of Pf a is called the ROC (Receiver Operating Characteristi. With the same way as the above experiment, each result is averaged over 1000 measurements. Figure 7a and 7b represent the MATLAB simulation and USRP implementation of the Pd versus Pf a of a 3GPP/LTE signal and DVBT-2K signal respectively. As shown in those figures. USRP implementations are closer to MATLAB simulations and the Energy Detector achieves good performance for all Pf a values. Figure 7. Detection probability (Pd ) vs. False-alarm probability (Pf a ) . ith SNR=-10. 4 dB) of . 3GPP/LTE signal and . DVBT-2K signal. CONCLUSION In this paper, we have provided an experimental performance evaluation of the Energy Detector based sensing using NI USRP-2930, which is a Software Defined Radio (SDR) transceiver. We have tested the impact of SNR on the detection probability. Furthermore, a ROC curve was obtained for a low SNR value. Experimental results shows that the Energy Detector achieves good performances for low SNR values and for all Pf a values and are closer to those of computer simulations using MATLAB. REFERENCES