Kubernetes-Based Real-Time LoRaWAN Emulation Toward Network Digital Twins
Abstract
LoRaWAN has become a widely adopted Low Power Wide Area Network technology for massive IoT deployments, but evaluating large-scale scenarios remains challenging because real testbeds with thousands of devices are costly, difficult to reproduce, and limited in controllability. This work presents a Kubernetes-based framework for supporting large-scale real-time emulation of LoRa networks using NS-3 and ELoRa. The proposed approach combines detailed LoRaWAN radio and MAC-layer modeling with transparent interaction between simulated Gateways and real LoRaWAN Network Server (LNS) components. By relying on NS-3 TapBridge integration, each emulated Gateway preserves its own network identity when forwarding UDP-encapsulated LoRaWAN traffic to external services, enabling the LNS to operate without awareness of the underlying simulation environment. Kubernetes is used to automate deployment, replication, resource isolation, and orchestration of multiple emulation instances, making the framework suitable for scalable experimentation, network digital-twin construction, and infrastructure stress testing. To assess the approach, we evaluate representative LoRaWAN emulation use cases, including network partitioning, multi-antenna configurations, and parallel configuration variants, while measuring the resource consumption, synchronization drift, server performance under high synthetic traffic, and multi-cell partitioning feasibility. Overall, the framework enables reproducible, scalable, and integrated emulation campaigns, supporting studies on adaptive data rate, server scalability, and large-scale LoRaWAN deployment.