Research Article
[Retracted] Self-Adaptive Framework for Rectification and Detection of Black Hole and Wormhole Attacks in 6LoWPAN
Algorithm 1
Pseudocode for implementation of sink hole with black hole attack.
| 1. start | | 2. if event==Network_In_Event then | | 3. if packet==control_packet then | | 4. check if node==MaliciousNode then | | 5. set the rank of the present node=Malicious Rank | | 6. else | | 7. process the message | | 8. endif | | 9. else | | 10. endif | | 11. if node==packet and malware node is notempty then | | 12. drop the message | | 13. endif |
|