Wireless Communications and Mobile Computing / 2020 / Article / Alg 2

Research Article

USPF: Underwater Shrewd Packet Flooding Mechanism through Surrogate Holding Time

Algorithm 2

Link reparation.
(1)Input: αi(Sh_L), αj(St_L), αk(Nr_L), Prefix_v, FHAp Output: Next hop relay node Q
(2)Node P broadcasts packet (Pktbr) towards Q While , count β
(3)Endwhile
(4)If Sh_L is shaky than Prefix_v
(5)FHAp = ;
(6)if then
(7)FHAp = 
(8)if FHAp = 
(9)End if
(10)else rebroadcast (Pktbr); detour (Algorithm 1, perform line 6)
(11)End if rebuff (Pktbr)