Research Article
Location Aided Cooperative Detection of Primary User Emulation Attacks in Cognitive Wireless Sensor Networks Using Nonparametric Techniques
Algorithm 2
Nonparametric PUE attack detection.
| Inputs: | | PU position: | | Set of SU positions: , | | Vector of RSS values: | | Detection threshold and “PFA adjustment” parameter: , | | Steps: | | (1) Obtain the PU to SUs distances , . | | (2) Compute the test statistic using (16). | | (3) if then | | (4) attack_flag ← true | | (5) else if then | | (6) attack_flag ← true with probability | | (7) else | | (8) attack_flag ← false | | (9) end if | | (10) return attack_flag |
|