Research Article
An Efficient Anycast Mechanism for 802.15.4-TSCH to Improve QoS in IIoT
Algorithm 3
Scheduling process in the proposed method.
| 1: Inputs: | | routesList: List of all routes to root, respectively | | 2: Outputs: | | MX: 2D scheduling matrix | | 3: for route ∈ routeList do | | 4: slot ← getFirstAvailableTimeSlot(MX) ⊳ allocation of the first timeslot | | 5: forhop ∈ routedo | | 6: slot++ | | 7: whileslot < slotFrameLengthdo | | 8: iftimeSlotCollision(hop, slot) then | | ⊳ Checks whether there is an collision in timeslot or not | | 9: slot++ | | 10: continue | | 11: else | | ⊳ Return available channeloffset for hop(sender, receiver) in timeslot slot | | 12: channel ← getChannelOffSetAvailable(hop, slot) | | 13: ifchannelthen | | ⊳ set hop(sender, receiver) in timeslot slot and channeloffset channel | | 14: setMX(hop, slot,channel) | | 15: else | | 16: slot++ | | 17: continue | | 18: end if | | 19: end if | | 20: end while | | 21: end for | | 22: End for | | 23: ReturnMX |
|