Potable Water Management with Integrated Fog Computing and LoRaWAN Technologies
Potable water is a precious resource in many regions of the world, and particularly in semi-desertic areas such as the South of Spain . Over the previous decade, the EMIVASA company, which is in charge of water management in the city of València (Spain), has been active at the forefront of IoT technologies .
EMIVASA deployed more than 420,000 smart water meters in every household which periodically report their readings through wireless networking technologies. The data are transferred in a data center and processed in various ways such as detecting water leaks or other incidents leading to abnormal water usage, which in turn brings considerable efficiency improvements to the management of precious water resources. However, this system relies on 15-years-old technologies. The wireless networking infrastructure carries only limited numbers of meter readings per day, which delays any incident detection. Different vendors impose the usage of different proprietary and mutually incompatible standards. Finally, deploying new functionality is not trivial. It is time to transition to more modern and open technologies.
The FogGuru European project aims to develop innovative Fog computing technologies and to train the next generation of European Fog computing experts. For us, this constitutes an excellent opportunity to create a “Living Lab” with our partner Las Naves in València where we experiment Fog computing technologies in real settings and demonstrate their usefulness to address real-world problems . Fog computing extends cloud computing deployments with additional compute, storage and networking resources located in the proximity of users and IoT devices . Processing incoming data very close to their source allows one to reduce the pressure on the backhaul networking infrastructure, and may even allow disconnected operation in case of a failure of the device-to-cloud connection . In the specific case of water management, we expect Fog computing technologies to bring faster detection of abnormal water consumption patterns, independence from the smart water meter manufacturers, and improved resilience and flexibility of the overall smart metering platform.
Integrating LoRaWAN with Fog Computing Technologies
We base our proposed solutions on the LoRa low-power wide-area network technology. LoRa supports wireless communications over very long distances (10km+), yet at the expense of an extremely limited available bandwidth per node. This fits the requirements of our use-case because each water meter reports only dozens of bytes of data at a modest frequency such as once every hour. On the other hand, the long-range implies that we can cover an entire city with a small number of gateway nodes.
(a) Classical cloud-based architecture
(b) Proposed Fog-based architecture
Figure 1: Two potential system architectures.
LoRa technology addresses only low-level device-to-gateway communication. To design an entire infrastructure with multiple gateways, the LoRaWAN standard  defines additional elements depicted in Figure 1a. The network server is in charge of detecting and removing duplicate messages received by multiple gateways from the same IoT device. The application server(s) are in charge of processing incoming data. The recent LoRaWAN v1.1 specification introduces additional components for device authentication and registration.
However, this architecture addresses the requirements only partially, as useful and sensible as it is. In particular, the reliance on a centralized network server implies that the messages originating from the water meters must traverse long network links before being processed in a single location. On the other hand, our goal is to process incoming messages as close as possible to the water meters, in the same location as the gateways that have received them.<p">As shown in Figure 1b, we propose to equip each LoRa gateway node with its dedicated network server. This allows the introduction of Fog computing servers in the same location, where incoming messages are processed immediately after having been received. The architecture still contains backend servers located in the cloud, where a final aggregation of pre-processed results by different Fog servers takes place, and where the operators control and visualize the status of the system. Figure2 depicts parts of the experimental testbed.
Figure 2: The experimental testbed.
Building a prototype of an integrated Fog+LoRaWAN platform forces us to address some difficult research challenges.
LoRa vendor independence: every LoRa gateway vendor integrates additional software such as a network server and an application server inside their gateways. However, these components often turn out to be proprietary and incompatible with one another. Since vendor independence is an important goal for this project, we prefer relying only on the simplest possible functionality of a LoRa gateway (namely packet forwarding between two networking technologies) and making use of open-source software such as the Chirpstack network server  running in the Fog servers for all the other system components.
Packet deduplication: one obvious drawback of a system architecture with multiple network servers is that we cannot rely anymore on a single centralized network server to detect and filter duplicate messages received by multiple gateways. We are developing innovative techniques to allow multiple network servers to collaborate to realize the same function in a distributed way.
System configuration: deploying multiple nodes in different locations immediately creates practical difficulties, even at a modest scale, for maintaining the correct software versions and configurations across the whole system. We are thus designing mechanisms to centralize this information and distribute them on-demand to the respective nodes.
Application development: data being produced by the smart water meters can be seen as a set of unbounded data streams. We expect that the same property will be true in numerous other IoT scenarios. We, therefore, plan to make use of data stream processing engines in the Fog nodes as the standard application development middleware in our system. We expect to use Node-RED for simple scenarios, and Apache Flink for more complex ones.
Application deployment: we believe that a Fog computing platform should not be seen as a static environment dedicated to a single application. Instead, we envisage that many independent applications will be developed to process the incoming data in a variety of ways and that such applications will be frequently deployed, re-deployed and eventually retracted from part or all of the Fog platform. To facilitate application deployment, we rely on a modified version of Kubernetes designed for Fog computing scenarios .
The development of our experimental Fog+LoRaWAN platform is underway, and we expect to be able to start experimenting in real settings in the coming weeks. If everything goes according to plan, we will have demonstrated how Fog computing technologies may bring tangible benefits to the citizens of València thanks to improved management of their precious water resources.
This work is part of a project that has received funding from the European Union’s Horizon 2020 research and innovation program under the Marie Skłodowska-Curie grant agreement No 765452. The information and views set out in this publication are those of the author(s) and do not necessarily reflect the official opinion of the European Union. Neither the European Union institutions and bodies nor any person acting on their behalf may be held responsible for the use which may be made of the information contained therein.
- UNESCO Intangible Cultural Heritage, “Irrigators’ tribunals of the Spanish Mediterranean coast: The Council of Wise Men of the plain of Murcia and the Water Tribunal of the plain of Valencia,” 2009, https://bit.ly/3cgJA0K.
- SmartH2O European Project, “Validation report,” Deliverable F7.2, Jul. 2016, https://bit.ly/2uvBLD4.
- FogGuru Project, “The FogGuru Living Lab for improved water management,” YouTube video, Feb. 2020, https://youtu.be/uQdhUo17h7E.
- IEEE Standards Association, “IEEE standard for adoption of OpenFog reference architecture for fog computing,” 2018, https://bit.ly/38sXYjU.
- S. Noghabi, L. Cox, S. Agarwal, and G. Ananthanarayanan, “The emerging landscape of edge-computing,” ACM SIGMOBILE GetMobile, Mar. 2020, https://www.microsoft.com/en-us/research/publication/the-emerging-landscape- of-edge-computing/.
- LoRa Alliance, “About LoRaWAN®,” https://lora-alliance.org/about-lorawan.
- ChirpStack, “open-source LoRaWAN® Network Server stack,” https://www.chirpstack.io/.
- A. Fahs and G. Pierre, “Proximity-aware traffic routing in distributed fog computing platforms,” in Proc. CCGrid, May 2019, https://hal.inria.fr/hal-02048965/.
Hamidreza Arkian is a Ph.D. student at the University of Rennes 1 (France) and a student member of IEEE. His research interests are data stream processing, performance modeling, and elasticity in geo-distributed systems such as Fog computing.
Dimitrios Giouroukis is a Ph.D. student at TU Berlin (Germany), working at the DIMA research team. His research interest lies in the intersection of stream processing, resource management, sensor data analysis, and Fog computing.
Paulo Souza Jr is a Ph.D. student at the University of Rennes 1 (France) and a student member of IEEE. His research interests are Fog computing, resource management, and data stream processing.
Guillaume Pierre is a Professor at the University of Rennes 1 (France). His main interests are Fog computing, Cloud computing, and all other forms of large-scale distributed systems. He is the coordinator of the H2020 FogGuru Maria-Skłodowska Curie project, the leader of the Myriads research team at Inria/IRISA, the academic coordinator of the international “cloud and networking infrastructures” master program at the University of Rennes 1, and a member of IEEE. He can be contacted at email@example.com.
Sign Up for IoT Technical Community Updates
Calendar of Events
IEEE 8th World Forum on Internet of Things (WF-IoT) 2022
26 October-11 November 2022
Call for Papers
Special issue on Towards Intelligence for Space-Air-Ground Integrated Internet of Things
Submission Deadline: 1 November 2022
Special issue on Smart Blockchain for IoT Trust, Security and Privacy
Submission Deadline: 15 November 2022