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: sourceaddress
2: nexthopoptimal_nexthop
3: success_ratiooptimal_success
4: path_lengthoptimal_hop+1
5: neighbor_numn_number
6: repairfalse
7: i←0
8: whilepdo
9:  ifpalive=truethen
10:   address_info[i]←address[i]
11:   PRR[i]←calculate(i)
12:  end if
13:  next p
14: end while