Research Article
A Hybrid Reliable Routing Algorithm Based on LQI and PRR in Industrial Wireless Networks
Algorithm 6
Node failure recovery mechanism.
| Require: Failure confirmation information during node failure detection | | Ensure: Information on alternate paths and new routing information | | 1: whilepdo | | 2: ifthen | | 3: | | 4: | | 5: end if | | 6: | | 7: end while | | 8: if the suboptimal solution exists and is not the solution of the minimum hop route then | | 9: | | 10: | | 11: | | 12: | | 13: else | | 14: reverse the routing result record to find the solution with the highest success rate and regarded it as the current optimal solution | | 15: end if | | 16: generate routing packets according to Algorithm 3 | | 17: | | 18: sent routing packets to neighboring nodes | | 19: return |
|