Professional Documents
Culture Documents
1|P a g e
2|P a g e
List of Figures...Page No
3|P a g e
Preface
We would like to show gratitude to our supervisor Mr. Urban Bilstrup for his guidance,
feedback and supportive attitude throughout this thesis work. His supervision and feedback motivated us to overcome all the problems we had during implementation. We are
indebted to our supervisor for his help in understanding the Matlab and research papers.
We would like to offer a special dedication to Swedish Agency for Higher Education providing extra ordinary environment and a platform for free education.
We are also thankful to our parents for their financial and moral support during our study
abroad.
5|P a g e
Introduction
Table of Contents
Preface ............................................................................................................................................. 5
1. Introduction ............................................................................................................................. 13
1.2 Motivation................................................................................................................................ 14
1.3 Problem Description .............................................................................................................. 16
2. Background.............................................................................................................................. 18
2.1 Evolution in Cognitive Radio ................................................................................................ 18
2.2 Concept of multiplexing multiple users on a shared medium ......................................... 18
2.3 Elastic Spectrum Management ........................................................................................... 19
2.4 Cognitive Radio Network ...................................................................................................... 19
2.4 Physical Architecture of Cognitive Radio ........................................................................... 20
2.4.1
2.4.2
a) RF Filter ................................................................................................................................... 21
b) Low Noise Amplifier (LNA) .................................................................................................... 21
c) Mixer ......................................................................................................................................... 21
d) Voltage Control Oscillator ..................................................................................................... 21
e) Phase Locked loop ................................................................................................................. 22
f) Channel Selection Filter ........................................................................................................ 22
a) Low pass Filter ...................................................................................................................... 22
b) Bands pass Filter .................................................................................................................... 22
g) Automatic Gain Control .......................................................................................................... 22
6|P a g e
Introduction
2.4.3
Cyclostationary sensing................................................................................................ 26
3.1.3
3.1.4
3.1.5
3.1.6
3.1.7
3.3.1
3.3.2
Reconfiguration .............................................................................................................. 29
a) Operating Frequency............................................................................................................ 29
b) Modulation.............................................................................................................................. 29
3.3.3
7|P a g e
Introduction
4.2 BPSK Modulation .............................................................................................................. 33
4.3 QPSK Modulation .............................................................................................................. 33
4.4 Signal to Noise Ratio ........................................................................................................ 34
4.6 Fast Fourier Transform (FFT) .......................................................................................... 35
4.7 Autocorrelation ................................................................................................................... 36
4.8 Signal Detection ................................................................................................................. 37
5. Results....................................................................................................................................... 40
5.1 Performance of detector ................................................................................................... 40
5.2 Performance of detector ................................................................................................... 40
6. Conclusion ................................................................................................................................ 42
References .................................................................................................................................... 43
8|P a g e
Introduction
Nomenclature
BPSK:
QPSK:
CN:
AWGN:
FFT:
FCC:
PTS:
SDR:
TDMA:
FDMA:
FHSS:
OFDM:
ADC:
CSMA:
CT2:
IF:
A/D:
Pd:
LNA:
VCO:
SNR:
DFT:
N:
P signal:
P noise:
Ca:
Cb:
Cc:
Cd:
9|P a g e
Introduction
Performance Analysis of Cyclostationary Sensing in Cognitive Radio Networks
10 | P a g e
Introduction
Abstract
Cognitive radio is one of the modern techniques for wireless communication systems to utilize
the unused spread spectrum effectively. This novel paradigm makes wireless communication
possible with less interference. In our work we have investigated one of the functions of cognitive radio called spectrum sensing. We have specifically used the method of Cyclostationary feature detection. Spectrum sensing is also a very effective method to detect spectrum holes and to
utilize them. We have implemented spectrum sensing technique in these experiments. A signal is
randomly generated which could be Binary shift phase keying (BPSK) or Quadrature phase shift
keying (QPSK), then this modulated signal is passed through Additive white Gaussian noise
(AWGN), The output signal of AWGN is then passed to cyclostationary detector, various functions are pre-implemented inside cyclostationary detector and this includes Fast Fourier transform (FFT), Auto correlation, Sliding window to identify that signal. Finally we have demonstrated the results of signal to noise ratio to show the performance evaluation of our experiments.
The results have shown a decreasing trend in the probability of incorrect detection by increasing
signal to noise ratio.
11 | P a g e
12 | P a g e
Introduction
Introduction
1. Introduction
Different communication systems such as medical, broadband mobile telecommunication, marine
communication, defense and emergency services utilize the radio spectrum. Wireless services and
communication is very important for social and economic development in todays world. The
requirement of radio spectrum is increasing rapidly because of this advancement in wireless systems. To enable future wireless communication services, the radio spectrum management is a very
important element. The utilization of the radio spectrum must be responsive, active, and flexible
to the present needs. Today, every wireless system has its own license to avoid interference. In
case of new technologies it is difficult to operate in their radio spectra because they are already
engaged by government and commercial operators.
For example, it is not so easy to reclaim spectrum bands which are already licensed. A new
scheme of spectrum licensing was adopted by the Federal Communication Commission (FCC) [1]
and the Swedish Post and Telecom Agency (PTS) [3]. Both parties have chosen to divide users
into two categories; such as a licensed user (primary user) and an unlicensed user (secondary
user). Cognitive radio provides an opportunity to secondary users to use spectrum that are free for
the moment (white space). Cognitive radio also provides the ability for the radio to take decisions
about its operations and behavior according to its surrounding environment in order to improve
the service.
13 | P a g e
Introduction
Introduction
1.2 Motivation
The basic idea is that a cognitive radio is able to find free spectrum (white space) in the overall
available radio spectrum. It has the ability to analyze its radio environment. Spectrum holes can
be identified by detecting the presence of primary users. Cognitive radio is a flexible device for a
wide range of broadband wireless systems. Cognitive radio is a flexible system because it can
change the communication parameters to adopt the channel condition. Flexibility is possible because cognitive radio includes what is known as Software Defined Radio (SDR).
In software defined radios (SDR), the radio hardware (e.g. mixer, filters, modulator and demodulator) are implemented by software. By using software components, functionalities and performances can be changed dynamically without changing the hardware. SDR are used in programmable wireless networks to increase the access of spectrum in an efficient manner. SDR are also
dynamically programmable and reconfigurable because they are based on software instead of
hardware. SDR also provide flexibility to the communication system design and implementation
in a robust way.
The signal classifier could be an interesting part of an application, which can determine modulated signals, without the requirement of any pre-knowledge. In this application, the randomly
selected modulated signal will be detected using a cyclostationary detector. A signal classifier is
added to the output of the cyclostationary detector to determine which kind of signal that is
present at the moment [2].
Our study will only focus on the performance analysis of cyclostationary feature detection a
spectrum sensing technique in cognitive radio. There are several Spectrum Sensing methods in
cognitive radio present in the literature which are theoretically analyzed and interpreted in the
sense of advantages and disadvantages.
There are generally different signal detection methods
1. Cyclostationary Feature Detection
2. Matched Filtering
3. Energy Detection
Our main focus is on cyclostationary feature detection which depends on the fact that modulated
signals are generally coupled with sine wave carriers and pulse trains which result in periodicity
and their statistics, mean and autocorrelation, exhibit periodicity in wide sense. This periodicity
trend is used for analyzing various signal processing tasks such as detection, recognition and estimation of the received signals.
Despite having a drawback of high computationally complexity, cyclostationary feature detection
performs satisfyingly well under low SNR regimes due to its robustness against unknown level of
noise. Moreover
1. Cyclostationary feature detection is more robust to changing noise level than energy detection.
2. Cyclostationary detectors can work in lower SNR compared to energy detection because
feature detectors exploit information embedded in the received signal.
3. Feature detectors can achieve a huge processing gain compared to energy detectors.
14 | P a g e
Introduction
Introduction
Performance Analysis of Cyclostationary Sensing in Cognitive Radio Networks
15 | P a g e
Introduction
Introduction
16 | P a g e
17 | P a g e
2. Background
To overcome the lack of radio spectrum Federal Communication Commission FCC [4] has proposed four different scenarios for improving spectrum sharing.
1. To increase the efficiency of bandwidth utilization in the internal network, the specific license can require dynamic spectrum management i.e. cognitive radio.
2. Sharing of radio spectrum between licenses users and third party secondary users is the possible by deployment of cognitive radio.
3. Automated frequency allocation can be facilitated by cognitive radio when primary services
are required for licenses
4. Unlicensed devices can use spectrum when there is no licensed spectrum.
Figure 2.4(Cognitive Radio Architecture) [16] [18] (a) CR Transceiver (b) wideband RF/Analog front-end architecture
20 | P a g e
a) RF Filter
This unit basically is a band pass filter which selects the desired frequency range and removes
the unnecessary signal frequency.
c) Mixer
The mixer basically mixes the incoming signal frequency with a locally generated signal to convert
it to an intermediate frequency (IF).
21 | P a g e
22 | P a g e
23 | P a g e
Idea
Investigated
IdeatotobeBe
Investigated
3. Cognitive Cycle
A cognition cycle is a cycle by which cognitive radio may interact with the environment. Conceptual Operation includes
Observe outside world
Orient to infer meaning of observations
Adjust waveform as needed to achieve goal
Implement processes needed to change waveform
Adjust goals (Plan)
Learn about the outside world, needs of user.
This cycle implements the capabilities required of CR in a reactive sequence. Stimuli enter the CR
as sensory interrupts, dispatched to the cognition cycle for a response. Such as CR continually
observes (senses and perceives) the environment, orients itself, creates plans, decides, and then
acts. To determine communication parameters, cognitive radio capability allows the radio device
to interact with the environment. From a spectrum access perspective, the cognitive cycle consists of
three steps, shown in figure 3.
1.
Spectrum Sensing
2.
Spectrum Analysis
3.
Spectrum Decision
24 | P a g e
Idea
Investigated
IdeatotobeBe
Investigated
Idea
Investigated
IdeatotobeBe
Investigated
ing. The secondary users (non-licensed user) may not have the knowledge of the whole spectrum,
so we need to detect primary users (licensed users) i.e. their local presence in a particular spectrum. Detection of primary users can be done using several techniques as shown in figure 3.1 [23].
1. Cyclostationary sensing
2. Matched Filter detection
3. Energy Detection
26 | P a g e
Idea
Investigated
IdeatotobeBe
Investigated
27 | P a g e
Idea
Investigated
IdeatotobeBe
Investigated
3.2.1 Interference
Some spectrum bands might be more crowded compared to others in a cognitive radio network.
Thus, interference characteristic of the channel can be determined by the amount of interference at the spectrum band in use. The amount of power a secondary user can use is then computed from the interference at primary user [34].
28 | P a g e
Idea
Investigated
IdeatotobeBe
Investigated
3.3.2 Reconfiguration
A cognitive radio has the ability to provide awareness of spectrum and conduct reconfiguration, which enables adaption according to the environment. The hardware design of cognitive
radio needs to supports a large bandwidth for transmission [17].Some configurable parameters
of a cognitive radio are: operating frequency, modulation transmission power and communication technology.
a) Operating Frequency
Cognitive radio can change their operating frequency by considering the user information and
the radio environment. The cognitive radio selects the operating frequency dynamically, but
with the change in operating frequency, network protocol has to change its mode. Therefore,
the transition should be made smoothly and quickly.
b) Modulation
A cognitive radio adopts the modulation scheme by itself to meet the user requirements
and adapts to the channel conditions. Cognitive radio will select the modulation scheme which
enables the spectrum with the highest efficiency.
c) Transmission Power
Reconfiguration of transmission power is possible within the transmission power constraints.
The transmitter power can be reduced when high power is not required, which allows spectrum
sharing and reduces the level of interference between users.
d) Communication Technology
Cognitive radios enable different communication systems to work with each other. This is referred to as interoperability. As the wireless technology is becoming convergent, the evolution
of cognitive radio will enable users to select among available services and make them more
cost effective. Cellular connectivity might swap with WIMAX or vice versa depending on the
users activity.
29 | P a g e
Idea
Investigated
IdeatotobeBe
Investigated
30 | P a g e
31 | P a g e
32 | P a g e
(i)
In BPSK, a carrier sinusoidal wave with center frequency fc is generated and multiplied by the
NRZ encoded binary signal. This part of model can be implemented physically by using a
simple multiplier circuitry [30].
( ii )
(iii)
(iv)
(v)
Where x(t) represents the incoming signal, while X(w) gives the FFT of x(t).
After sampling and quantizing, we get the discrete version of x(t) in both the time and amplitude
domain, which is referred to as x(n).
FFT model is a discrete implementation of the Fourier transform, so the formulae used to calculate the transform of the signal x(n) is given below in equation (vi) [33].
(vi)
4.7 Autocorrelation
Autocorrelation of a signal is the cross correlation of the signal with itself [32]. It portrays
the energy density distribution of the signal. The formulae to calculate the autocorrelation [32]
of the signal is according to equation (vii),
R(
(vii)
x(t)=Signal
x(t+
=Shift
Equation (viii) is used to calculate the autocorrelation in a continuous environment but in a discrete environment to calculate autocorrelation of a signal.
=
(viii)
In figure 4.7 describes Auto correlation plot which indicates how well a signal correlates with
itself, with the peak value indicating maximum correlation. The analysis of the stationary random
signals is based on autocorrelation function and spectral density. On the other hand, cyclostationary signals exhibit correlation function between widely separated spectral components due to the
spectral redundancy caused by periodicity. Where x-axis represents its frequency and y-axis
represents its amplitude.
(ix)
Afterwards, the cyclostationary detector compares the absolute of each correlation with the other
the first condition is that any of the values must be greater than 0.5, which ensures that the receiver actually receives some signal and is not receiving only noise. Now if the value with cosine is
greater, it means the modulation is BPSK because the carrier of BPSK is cosine. On the other
hand, if the value with (sine + cosine) or (sine cosine) is greater as shown in the condition (x), it
means the value is QPSK because the carrier may be (sine + cosine) or (sine cosine), or the additive inverse of them, due to multiplication with NRZ signal.
if ca>.5 || cc>.5
if ca>cc && cb<.5
display('BPSK')
(x)
else
display('QPSK')
Where
ca= correlation of signal with carrier frequency cosine wave
cb= correlation of signal with carrier frequency sine wave
cc= correlation of signal with carrier frequency cosine plus sine wave
cd= correlation of signal with carrier frequency cosine minus sine wave
One of the important observations during the implementation is that detection of signal becomes
better even at low SNR with the increase in observation data. In our implementation the length of
observation data is 16 bits. As we increase the number of trials, the output curve becomes
smoother.
One of the major limitations with cyclostationary based detection in cognitive radio is that with
the increase in observation data length, the performance of detector enhances but at the cost of
complexity. Energy consumption might be another issue while implementing cyclostationary
based sensing as battery life is limited in mobile environment.
38 | P a g e
39 | P a g e
5. Results
5.1 Performance of detector
Performance is related with the probability of correct and probability of incorrect detection as
shown in equation (xi).p is the probability of correct detection. Then q=1-p must be the probability of incorrect detection.
We know that
P
(xi)
n = number of trails
Now we generate n random signals (also mentioned as number of trials) repeatedly, and modulate them by BPSK add some white noise in to achieve SNR and then detect the signal with
the help of above mentioned detector. Finally we count the correct number of detections by
using the detector. a/n will give approximately the probability of correct detection at given
SNR if n is very huge.
The performance chart contains the values of probability of correction detection p at different
SNR levels by just iterating the above mentioned method at different values of SNR.
Then the graph of performance is SNR versus p which shows the trend and shows the value of
p increases as SNR increases as shown in figure 5.1.
41 | P a g e
6. Conclusion
In this thesis we have evaluated a model in which the transmitter has an ability to switch between BPSK/QPSK modulation schemes. For the signal classification we use a cyclostationary detection method. We have performed signal classification and detection in a noisy environment such as the AWGN channel. By increasing the length of observation data from 10 to
16, the performance curve plotted between probabilities of incorrect detection corresponding
to different SNR values shifts left. This indicates that as we increase the length of observation
data, the accuracy of signal detection increases even at low SNR values reflecting better performance of the detector.
42 | P a g e
References
1. Aldo Buccardo, A Signal Detector for Cognitive Radio System, Master Thesis University of
Gvle, June 2010. Available from.
http://hig.diva-portal.org/smash/get/diva2:326273/FULLTEXT01
7. Mitola J., and Maguire, G. Cognitive radio: Making software radios more personal. IEEE
Personal Communications, Vol. 6, pp 16-18, 1999.
8. Hsiao-Hwa Chen,On Next Generation CDMA technology for Future wireless Networking,
IEEE Communication society Globecom 2004, pp. 126-127, 2004.
9. Bertsekas, D., and Gallager, R., Data Networks, Prentice Hall, U.S. 1992.
10. Mitola, J. Software Radio Architecture. IEEE Communications Magazine, Vol. 33, pp 2629, May 1995.
11. Alexander M. Wyglinski, Maziar Nekovee and Y. Thomas Hou Cognitive radio communications and networks, pp 199-221, publisher Academic Press,Nov 2009.
12. Farrukh Javed and Asas Mahmood,The Use of Time Frequency Analysis For spectrum
Sensing in Cognitive Radio, IEEE signal processing and communication systems,
ISBN: 9781424479085, pp 2-4, Dec 2010.
13. Allen Ginsberg and William D.Horne, Towards Cognitive Radio Architecture, Integrating
Knowledge Representation with Software defined Radio Technologies, IEEE Milatray
Communication Conference (MILCOM) 2006, pp 3-6, 2006
14. S. Haykin, Cognitive radio: brain-empowered wireless communications, IEEE Journal on
Selected Areas in Communications, Vol 23, No.2 Feb 2005.
15. Wayne Stark and Pierre de Vries, Detection of White Spaces in a Cognitive Radio Architecture, IEEE 3rd international Conference on Cognitive Radio Oriented Wireless networks and
Communication, 2008.
16. F.K. Jondral, Software-defined radio-basic and evolution to cognitive radio, EURASIP
Journal on Wireless Communication and Networking, ISBN: 9781424423019, pp 3-4, 2005.
17. D. Cabric, S.M. Mishra and R.W. Brodersen, Implementation issues in spectrum sensing for
cognitive radios, IEEE in Proc.of 38th Conference on Signals, Systems and Computers, Vol
1, pp 772-776. 2004.
18. D. Cabric and R.W Brodersen, Physical layer design issues unique to cognitive radio
systems, in: Proc. of IEEE Personal Indoor and Mobile Radio Communications (PIMRC
43 | P a g e
44 | P a g e
45 | P a g e