Research Article
Detection and Counter Measure of Packet Misrouting by GPS-Free Positioning of Ad-Hoc Nodes
Algorithm 4
Behavioural data Collection.
| Input: n = 0, N, A,CHN, LTN | | N: Number of nodes participated in cluster. | | A: Attacker node | | CHN: Cluster head node | | LTN: Local truster node | | Output: resistant to attacker | (1) | Regressive { | (2) | if (the test attacker information is not available in routing table of local-truster node and cluster head node) then | (3) | Release from this practice | (4) | else | (5) | Discover the attitude of attackers’ node = {attackersn}Є N | (6) | Approve action on attackers’ node | (7) | Discover action of attacker | (8) | if (all attacker nodes follow the approve action) then | (9) | The number of attacker’ node increases or decreases. | (10) | Update information into cluster head and local-truster node. | (11) | end if | (12) | n++} |
|