Research Article
A Secure 3-Way Routing Protocols for Intermittently Connected Mobile Ad Hoc Networks
Algorithm 5
Pseudocode for B-LA.
Initialize | OV = 0; | Repeat | For all nodes | Bee_Route(); | Until route found | Bee_Route() | If no route found | Fwd_phase()//search for relay nodes | End if | If route found | Bwd_phase()//estimate the path using OV | OV += 1; | End if | For OV = max | Deliver data packet | End Bee_Route() |
|