|
Algorithm 3 Failure recovery algorithm. |
Input: physical WSN ; VSNR ; node mapping results set ;
Fault physical sensor node
Output: Failure recovery result
Initialization: Failure recovery result
if fault then
Rank invalid m VSNs in descending order by penalty
end if
fordo
for
in VSNi do
if
is critical virtual sensor node then
Remap to through formula (24)
Add to
else
find feasible nodes in the remaining WSN network
Add to
end if
end for
end for
return the physical node failure recovery successfully
|