Research Article
Detecting and Isolating Black-Hole Attacks in MANET Using Timer Based Baited Technique
Source Node | 1if CurrentTime ==Bait_Time then | 2Create Bait request; | 3Generate a random ID and Set it in Bait request; | 4Set TTL of Bait request to 1;// TTL (Time-To-Live) | 5Broadcast Bait request; | 6Reset Bait-time to a random time; | 7end if | 8for each received Reply to the Bait request do | 9Store NWSP ID in the Black-hole list;// NWSP (Node With the Shortest Path) | 10end for |
|