Research Article
Multihop Uplink Communication Approach Based on Layer Clustering in LoRa Networks for Emerging IoT Applications
Algorithm 1
Formation of the network layers.
| layer_id = ; | | if id = = 0 then | | CREATE_DIS_MESSAGE (1, 0, 0, 0); | | BROADCAST (DIS); | | end if | | if DIS message then | | if DIS. ¡ then | | = | | CREATE_DIA_MESSAGE ( + 1, + 1, + 1, ID); | | UNICAST (DIA); | | CREATE_DIS_MESSAGE (, ID); | | BROADCAST (DIS); | | EXPIRER (timer); | | ; | | if EXPIRER (timer) then | | if Not DIA reception then | | CREATE_DIN_MESSAGE (id, layer_id, ); | | UNICAST (DIN) | | end if | | end if | | end if | | end if | | if DIN message then | | CREATE_DIN_MESSAGE (ID, gtwlayer_id, layer_id); | | UNICAST (DIN); | | end if |
|