Research Article
Detection and Countermeasure of Node Misbehaviour in Clustered Wireless Sensor Network
Algorithm 1
Algorithm for deciding whether the node is attacker or not.
(1) if () then | (2) if () then | // where | (3) = + 1 | (4) end if | (5) end if | (6) if () then | (7) if ( && CH- > avg (CH-Count)) | (7) confirm attacker | (8) Attacker-list = {Attacker-list | (9) else | (10) Attack is not confirmed | (11) end if | (12) end if |
|