Low-Power Wide-Area Network (LPWAN) is one of the enabling technologies of the Internet of Things (IoT), and focuses on providing long distance connectivity for a vast amount of smart devices. Currently, LoRa is one of the leading LPWAN solutions available for public use. In LPWANs, especially in LoRa, security is a major concern due to the resource constraints of the devices, the sensitivity level of the transmitted data, the large amount of connected devices, among other reasons. This paper studies the key management mechanism of LoRaWAN environments. A secure architecture for key management based on smart contracts and permissioned blockchain to enhance security and availability in LoRaWAN networks is proposed. To demonstrate the feasibility of the proposed blockchain-based LoRaWAN architecture, a working prototype has been created using open-source tools and commodity hardware. Performance analysis shows that the prototype presents similar execution time and latency values, when compared to a traditional system, especially for small and medium-sized LoRaWAN networks. We also discuss why the proposed solution can be used in environments with a large number of end-devices.
Low-Power Wide-Area Network (LPWAN) is a new type of wireless technology that offers long range communication for devices in the Internet of Things (IoT) and LoRaWAN is one of the main technologies currently available to enable LPWAN environments. In the LoRaWAN architecture, the Join Server is a key component and is responsible for security tasks, such as authentication and key management. However, the Join Server acts as a Single Point of Failure (SPOF) since all encryption keys are stored centrally. Then, this paper presents a secure and fault-tolerant architecture to increase the levels of security and availability in LoRaWAN. A permissioned blockchain and smart contracts are used to replace the Join Server and solve the SPOF problem. A working prototype was created using open-source tools in order to evaluate the feasibility of the proposed architecture. Additionally, the performance of a blockchain network was analyzed in a cloud environment under multiple workloads and fault-tolerance experiments were performed to evaluate the impact of network failures. The results show a trade-off between availability and performance when choosing the number of blockchain peers in small scenarios. However, this behavior is reversed in large scenarios where the performance of multiple peers is best suited.