Research Article
A Hybrid Reliable Routing Algorithm Based on LQI and PRR in Industrial Wireless Networks
Algorithm 3
Generation algorithm of routing information packet.
Require: Collection of link quality information | Ensure: Routing packets | 1: source←address | 2: nexthop←optimal_nexthop | 3: success_ratio←optimal_success | 4: path_length←optimal_hop+1 | 5: neighbor_num←n_number | 6: repair←false | 7: i←0 | 8: whilepdo | 9: ifp→alive=truethen | 10: address_info[i]←address[i] | 11: PRR[i]←calculate(i) | 12: end if | 13: next p | 14: end while |
|