Skip to main content
. 2018 Sep 26;18(10):3237. doi: 10.3390/s18103237
Algorithm 2: Next-hop selection procedure
Notations:
Ni = Source node
NHi = Next-Hop node for Ni
BNC = Body Node Coordinator
NT = Neighbor Table
PCF = Path Cost Function
Input:
records in NT
Process:
1.start
2. if Ni  is at one hop to BNC then
3. send packet directly to BNC
4.else
5. for each record in NT do
6. Calculate PCF= [α×1ERes+β×1LE+γ×HC+δ×d]
7. List RT  PCF value of each neighbor node in NT
8. NHi  min(RT)
9. end for
10. end if
11. end