Research Article
An Efficient Anycast Mechanism for 802.15.4-TSCH to Improve QoS in IIoT
Algorithm 1
Parent selection in the proposed method.
| 1: Inputs: | | linksPDR: List of all links with their PDR | | nodes: List of all nodes in topology | | 2: Outputs: | | parentList: List of three parents, respectively | | 3: Initialization: | | parentsList ← () | | maxChild ← 2 ⊳ maximum number of child a parent can have | | maxParents ← 3 ⊳ maximum number of parent a node can have | | 4: sortedParentsByPDR ← sortParentByPDR (nodes, linksPDR) | | ⊳ descending sort of all parents by PDR joining node can have | | 5: forparent ∈ sortedParentsByPDRdo | | 6: ifnumChild(parent) < maxChildthen | | 7: parentsList.insert(parent) | | 8: ifparentList.size() = maxParentsthen | | 9: break | | 10: end if | | 11: end if | | 12: End if |
|