Algorithm 2: Next-hop selection procedure |
Notations: = Source node = Next-Hop node for BNC = Body Node Coordinator NT = Neighbor Table PCF = Path Cost Function Input: records in NT Process: 1. start 2. if is at one hop to BNC then 3. send packet directly to BNC 4. else 5. for each record in NT do 6. Calculate 7. List RT value of each neighbor node in NT 8. min(RT) 9. end for 10. end if 11. end |