Research Article

Energy-Aware Routing Protocol with Fuzzy Logic in Industrial Internet of Things with Blockchain Technology

Algorithm 1

Parent selection algorithm.
Input: parentNodeList
Output: bestPreferredParentNode
1: procedure PARENT SELECTION
2: begin:
3: 
4: for preferredParentNodeId parentNodeList do
5:  rank(particpant)=rank(parentNode)+rankIncrease;
6:  rankIncrease=step + minHopRankIncrease
7:  Create linguistic variable and membership of Load, ETX, and RER
8:  Make fuzzy rule base
9:  Evaluate the generated rules with fuzzy rule base
10:  Perform the defuzzification process
12:  if bestParentNodeRank > preferredParentNodeRank then
13:   bestParentNodeRank=preferredParentRank
14:  end if
15: end for
16: while preferredParentNodeRank == bestParentNodeRank do
17:  participantNodeId=preferredParentNodeId
18: end while
19: Return bestPreferredParentNode
20: end procedure