Research Article
Location Prediction-Based Data Dissemination Using Swarm Intelligence in Opportunistic Cognitive Networks
Algorithm 6
LOPSI_Sec(
): the function executes one-hop data dissemination to the forwarding node set.
(1) senses the contact nodes set ; | (2) for | (3) update intimacy(); | (4) end for | /* the source node deliver the data directly to the destination node if the destination node is in the contact | nodes set and update the node set | (5) if | (6) transmits data to ; | (7) ; | (8) break the Algorithm 5; | (9) else | (10) sends REQ to the server; | (11) the server executes LoP_Service(); | (12) receives SEI; | (13) sends to the nodes in ; | (14) for | (15) Send intimacy() to ; | (16) end for | (17) calculates according to (21); | (18) if () // is the number of forwarding nodes | (19) ; | (20) else | (21) | (22) end if | (23) sends data to ; | (24) ; | (25) delete the data copy in its buffer; | (26) end if |
|