Research Article
Fault Activity Aware Service Delivery in Wireless Sensor Networks for Smart Cities
Require: , the neighbor set of node | Ensure: the next forwarder | () start a retransmission timer; | () select the forwarding set including candidates from | neighbor nodes ; | () for each node do | () if and | then | () add to ; ; | () end if | () end for | () prioritize the forwarder set using metric; | () broadcast the data packets; | () for each node do | () receive the data packet; | () check the sender ID and start a timer and , | where is a constant; | () end for | () if node which obtains the highest priority receives the data | packet correctly then | () reply an ACK to notify the sender as well as other candidates | to cancel their timers; | () else | () if the priority timer expire then | () set , node has the lower-priority; | () goto 14; | () end if | () end if | () if no forwarding candidate has successfully received the packet | then | () if the retransmission timer does not expire then | () goto 2; | () end if | () end if | () return |
|