Next Article in Journal
DepthLux: Employing Depthwise Separable Convolutions for Low-Light Image Enhancement
Previous Article in Journal
Enhanced U-Net for Infant Brain MRI Segmentation: A (2+1)D Convolutional Approach
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Co-Simulation of Interconnection Between Smart Power Grid and Smart Cities Platform via Massive Machine-Type Communication

by
Luiz H. N. Rodrigues
1,*,
Carlos F. M. Almeida
1,
Nelson Kagan
1,
Luiz H. L. Rosa
2 and
Milana L. dos Santos
1
1
Electrical Engineering Department, Universidade de São Paulo, Sao Paulo 01000-000, Brazil
2
Instituto Federal de São Paulo Electrical Engineering Department, Sao Paulo 01000-000, Brazil
*
Author to whom correspondence should be addressed.
Sensors 2025, 25(5), 1517; https://doi.org/10.3390/s25051517
Submission received: 31 October 2024 / Revised: 3 February 2025 / Accepted: 6 February 2025 / Published: 1 March 2025
(This article belongs to the Section Communications)

Abstract

:
With the advent of Industry 5.0, the electrical sector has been endowed with intelligent devices that are propelling high penetration of distributed energy microgeneration, VPP, smart buildings, and smart plants and imposing new challenges on the sector. This new environment requires a smarter network, including transforming the simple electricity customer into a “smart customer” who values the quality of energy and its rational use. The SPG (smart power grid) is the perfect solution for meeting these needs. It is crucial to understand energy use to guarantee quality of service and meet data security requirements. The use of simulations to map the behavior of complex infrastructures is the best strategy because it overcomes the limitations of traditional analytical solutions. This article presents the ICT laboratory structure developed within the Department of Electrical Engineering of the Polytechnic School of the Universidade de São Paulo (USP). It is based on an architecture that utilizes LTE/EPC wireless technology (4G, 5G, and B5G) to enable machine-to-machine communication (mMTC) between SPG elements using edge computing (MEC) resources and those of smart city platforms. We evaluate this proposal through simulations using data from real and emulated equipment and co-simulations shared by SPG laboratories at POLI-USP. Finally, we present the preliminary results of integration of the power laboratory, network simulation (ns-3), and a smart city platform (InterSCity) for validation and testing of the architecture.

1. Introduction

We are currently witnessing the advent of Industry 5.0, which was estimated to enable approximately 50 billion devices to be connected via the Internet of Things (IoT) by the end of 2023 [1]. There are more than 1.8 M2M (machine-to-machine) connections for every person on the globe, which is a significant figure [2]. As a result of this revolution, the electrical power sector was also equipped with intelligent technology, which led to a significant increase in distributed and non-programmable electrical power microgeneration, smart buildings, smart homes, and smart meters (SM) [3]. This, in turn, has created new challenges for the operation of energy systems. This new environment calls for a smarter network, including the transformation of the traditional energy electricity customer into a “smart client” and, in many cases, into a “smart prosumer.” This has, in turn, led to the emergence of new challenges for the operation of power systems.
It becomes clear there is a need for a smarter grid [4]. InterSCity is a platform for smart cities that was developed by USP within a multidisciplinary project that uses digital technologies to make all city services more efficient and reliable, including the supply of electricity [5]. The implementation of the electric energy vertical on smart city platforms through applications (load prediction and monitoring, among others) in SPG requires (1) data analysis algorithms to evaluate the data generated by intelligent devices and meters and (2) performance evaluation of the various possible architectures to interconnect all SPG elements at the link and physical layer level. On the other hand, to connect these systems, a communication backbone is needed. Smart grids present many different communication challenges, and 5G cellular network technology helps address these challenges because it was designed to meet the heterogeneity of this demand [6]. Recent technologies, like MEC, NFV, and SDN, help 4G and 5G cellular networks [7,8].
In this sense, an architecture is proposed (Figure 1) based on MEC (multiaccess edge computing) and LTE (long-term evolution) technologies that allow mMTC (massive machine-type communications) between SPG components, legacy software resources, and smart city platforms. Our architecture was evaluated through simulations and emulations using data from real and simulated devices (Paravirtualization, HIL, and SIL) shared by the SPG laboratories at POLI-USP (NAPREI—Research Support Center at SPG, L-SISPOT—Power Systems Laboratory, and L-PROT—Electrical Grid Protection Laboratory [9,10,11,12,13,14]), in São Paulo, Brazil. The use of data generated by simulators and emulators available in these laboratories opens a range of options for performance and interoperability tests of the various possible solution architectures in the interconnection of applications and these network elements that meet the demands of “prosumer” customers [15,16]. These options are intended to explore communication (mMTC, MEC, B5G—beyond 5G) between real equipment (IEDs—intelligent electronics devices, SMs, etc.) that make up the network of devices installed in the laboratories.
The rest of this paper is divided as follows: Section 2 describes the objectives of this proposal. Section 3 describes the methodology used in developing the work. A survey of related works is presented in Section 4, and a description summary of the systems studied, that is, SPG and the interaction between the NAPREI laboratory and the architectural blocks and LTE, mMTC, and the InterSCity platform will be covered in Section 5. Section 6 presents the results of utilizing the laboratory to test and validate the architecture’s functionalities, and Section 7 presents the conclusions and future work.

2. Goals

This work presents a new system architecture that guarantees reliability and latency for SPG using a co-simulation platform that exploits a paravirtualized simulation approach to evaluate the performance of the integrated SPG with legacy information systems and simulated data networks (LTE and mMTC). This approach allows access and management of the devices necessary to enable the connection of smart microgrids, smart homes, smart buildings, smart factories, etc., in the context of smart cities.

3. Proposed Methodology

The steps that guided the methodology in this work were as follows:
  • Definition and execution of a series of benchmarks to evaluate the best experimental environment to perform simulations and emulations of LTE network communications in an SPG environment;
  • Survey of architecture proposals previously found in the literature and evaluation of them in terms of refined monitoring of the electrical grid and services for SPG systems;
  • Adaptation of the best architecture from the previous item so that it can support massive machine-to-machine communication expected in SPG environments;
  • Modification of the previous version of the InterSCity platform to support SPG applications with QoS guarantees.

4. Related Works

Simulations and experiments are crucial across various application subdomains within smart grids [11]. They offer a valuable opportunity to test recent technologies, models, and methodologies in a controlled setting before their implementation in real-world scenarios. The availability of vast amounts of data collected from smart grids has enabled many research approaches. In ref. [11], Rossi et al. conducted an extensive literature survey with the aim of gaining insights into different facets of data communication in smart grids, namely, load control, forecasting, clustering, tool support, experiments/simulations, and replicability, in addition to research reproducibility. According to Gavriluta et al. [17], regarding the communication system and distributed computing used in SPG simulation studies, in most of the previous literature, the communication and distributed computing aspects are ignored or missing. Therefore, in this survey, we decided to evaluate the available bibliography separately for data networks, electrical power grid simulators, and co-simulation with both systems, as presented in the following subsections. This bibliographical survey helped to create the methodology presented in this work, the importance of data communication simulation for smart grid laboratories, and many ways to study smart grids. So, there is room for innovative ideas in testing tools, communication protocols, and new smart grid features.

4.1. Data Network Simulator

In our literature review, several data network simulators were studied, and after selection, the network simulator ns-3 was tested. The ns-3 is a communications network simulator widely used in academia because it represents network behavior very close to the real thing and has a very active and connected community of developers, in addition to being open source. MATLAB 2024 software (R2024a) [18], together with its Simulink module, is very present in most theoretical scientific articles in the sense of a numerical and statistical approach to the various characteristics of communication technologies, such as channel capacity, frequency response, and quality prediction services [19], but without the flexibility of real-time simulations. Co-simulation environments for SPG are often preferred in the academic literature because of their enhanced flexibility, allowing the integration of specialized tools tailored to specific aspects of a system, thereby providing a more accurate and efficient simulation experience. The pure multi-domain simulators (e.g., MATLAB 2024/Simulink, Modelica [20,21]) are solutions to a specific tool, have restricted use, and do not show much friendly integration. The OMNeT++ simulator is composed of modules, libraries, and extensible C++ simulation procedures, which can work in real-time, and the simulator is distributed under the Academic Public License; this fact does not satisfy our criteria for using open-source technology. In ref. [22], Albagli et al. used the SPG co-simulation framework using high-level architecture (HLA) together with federated MATLAB/Simulink, simulated the electrical models, and sent attributes to the interface with the runtime infrastructure, in real-time, while the federated OMNeT++ was responsible for receiving the messages from the federated JADE agents and forwarding them to the rest of the system. QualNet was developed to help in the designing and simulation of communication networks [16,23]. According to the manufacturer’s official website [24], although it is not sold, SCALABLE software needs a license agreement to be used. The OPNET network simulator [25] has a fixed set of protocols/devices, so users cannot create new protocols or modify the behavior of existing ones, that is, despite being a simulator widely used by communication system designers, OPNET does not allow the flexibility necessary for the proposal of this article.

4.2. Electric Power Grid Simulators

Strasser et al. [26] presented a study on the difficulties faced by researchers who carry out studies with co-simulation, and a classification was also made for the different simulation modalities, which were analyzed. In classical simulation, a single respective tool was used to integrate the model equation, representing the entire operation of the studied system. In their article [27], Duy Le et al. presented co-simulation as necessary to model the interaction between the components of so-called CPS (cyber–physical systems). In the study, a general survey of several co-simulations for SPG research was carried out. They also concluded that the integrated use of the FCNS, GridLAB-D, and ns-3 simulators was a great contribution to research on smart grids, surpassing the co-simulation speed of other proposals by up to 20% [28]. Applying these tools and the IEEE standard model composed of 13 power buses (IEEE—13 buses), a study was carried out on threats, security, demand/response, and dynamic pricing for SPG. The authors also suggested using this tool for cybersecurity training [28]. Kelley et al. [29] presented, with FSKIT, a set of federated tools that perform a co-simulation of power and communication networks. To simulate the electrical network, a dynamic simulator of electrical power systems driven by high-performance computing (HPC), GridDyn, was used. Zhang et al. [30] discussed a typical SPG cyber physical system for monitoring and control of distributed energy resources (DERs). The integration of ns-3 with the energy network simulator, HELICS (Hierarchical Engine for Large Scale Infrastructure Co-Simulation) was proposed by the authors in an open-source cyber physical energy co-simulation platform. A case study was analyzed using an abstraction that unites common codes between several software projects, providing the generic functionality, framework of co-simulation, distribution, and high-performance communication based on HELICS for the coordination of DER. The co-simulation framework for ns-3 that integrates with HELICS was developed by the authors. Souza et al. [31] used the Mosaik framework to study SPG integrated with a power flow simulator. Venkataramanan et al. [32] presented a cyber physical test environment of loads in a microgrid in a co-simulation of the power system (RTDS) and emulation of a TCP/IP. An architecture adopted by Trajano et al. [33] makes use of the LTE/EPC module from the ns-3 simulator and implements MEC for 4G and 5G mobile cellular networks. This architecture demonstrates that it meets the great demands for an SPG deployment designed by electricity sector forecasts. Although it is not a co-simulation, the ease that ns-3 has in performing paravirtualization provides excellent possibilities for creating testbeds capable of allowing relevant studies in SPG.

4.3. Electric Power Grid and Data Communication Co-Simulations

Table 1 outlines how our proposal compares to previous smart grid co-simulation projects. The comparison covers several important criteria and shows our main contribution of co-simulation, which is to demonstrate the possibility of integration between smart city platforms and SPG labs via LTE cellular technology through the network simulator (ns-3). The EPOCHS platform [34] was indeed a breakthrough, as it allowed for integrated simulation of these two critical infrastructures and SPG and enabled better insights into how communication networks can affect the stability and performance of power systems. Gaouda et al. [35] used the Hampden 180 to simulate a power system on a reduced scale, using various electromechanical equipment. Kim et al. [36] presented a co-simulation framework that uses OPNET, a communication network simulator, and OpenDSS Version 10.1.0.1, a power system simulator applied to study demand response applications within smart grid scenarios. In the work by Mirz et al. [37], the authors proposed a co-simulation architecture designed to focus on the integration of power system communication and smart grid market analysis. In ref. [4], Barbierato et al. proposed a distributed multi-model co-simulation platform for SPG that exploits the communication paradigms of IoT platforms. In the architecture of the NAPREI’s smart power grids laboratory [9,10], applications were developed in an innovative smart grid emulator, which is the best experimental environment to perform simulations and emulations of LTE network communications. This structure used only a 6LoWPAN for data communication, a fact that was a problem when real-time simulations were needed, as it did not represent the real situations encountered in the day-to-day operations of an energy company. The current proposal corrects this gap, a need that was highly requested by the market.

5. Description of Co-Simulated Systems

This section describes the implementation of A co-simulation of an SPG environment in the context of smart cities. The individual systems are described below.

5.1. Smart Power Grids (SPG) and NAPREI Laboratory

According to Kagan [38], SPG must integrate automation, intelligent measurement and actuation systems, and distributed energy resources. Currently, the SEP (electrical power system) needs to provide functionalities to meet specific objectives and, therefore, requires ICT (information and communication technology) infrastructure. To manage such intelligent and complex electrical networks, SPG applications use advanced control strategies [39]. JRC’s “Smart Grid Laboratories Inventory 2020” report [40] states that the infrastructure necessary for research in the sector is of vital importance in validating prototypes and their solutions. The interoperability of new computer systems introduced and the performance evaluation of SPG are also proven by this infrastructure. In this sense, NAPREI developed an SPG emulator to study and test a range of functionalities of IEDs and SMs that need to interact with legacy distribution management systems, that is, SCADA, MDM, and DMS systems, among others. In ref. [9], Rosa presents in detail the SPG emulator and states that it proposes an original and innovative form of systemic testability of SPG functionalities in a controlled environment, as it includes IEDs, a measurement island, telecommunications infrastructure, and legacy systems of information, which are integrated into a diversity of simulations in complex and non-simplified electrical energy distribution networks. The block diagram of NAPREI’s SPG laboratory is presented in Figure 2, in schematic form, covering the research objects. The REI emulator (I) was developed for systemic testing of SPG functionalities involving equipment (hardware) and computer systems (software) in the laboratory environment. The measuring island (II) consists of load/generation emulators (Emuladores de cargas e geração), smart meters (Medidores Inteligentes), and communication infrastructure, and is capable of representing any consumption/generation situation of an electrical energy consumer belonging to an electrical distribution network. The telecommunications infrastructure (III) provides the interconnection of the whole system. The use of physical intelligent electronic devices (IEDs) (IV) is a fact of great importance in REIs, as they are increasingly making use of new systems spread across distribution networks and the IT systems (V).

5.2. Communication Systems

As can be seen in the central part of Figure 2, the telecommunications infrastructure (III) provides all the interconnection of the emulator (I), the measuring island (II), the IEDs (IV) to the center, and the IT systems (V). In our work, this functionality is carried out by connecting via LTE, as presented in the next section. The ability to interconnect a heterogeneous network (HetNet) is one of the advantages of using 5G that uses LTE, as it allows a connection with a macro-cell (Macro BS), that is, through a radio base station (RBS ou eNB, and in Portuguese ERB—Estação Rádio Base), to a connection through a Femtocell. The purpose of this study is to develop a communication architecture that serves as an IoT interface for NAPREI laboratory simulations by providing an energy control system perspective on the implementation of global services through SPG systems, such as residential load prediction and NILM (non-intrusive load monitoring). Thus, this architecture is intended to be the basis for future implementation of the energy vertical for smart city platforms.
The electricity sector is one of the most challenging “test cases” for 5G cellular mobile networks, as it has a huge number of different requirements that need to be addressed, such as managing smart metering and low latency in fault locations. There are still several issues related to automation, security, resilience, scalability, and portability of 5G network management. As one can see in Figure 2, typically, the literature just describes the needs of a communication system. Rossi et al. [11] presented several challenges of smart networks in the interconnection between the physical infrastructure with ICTs (information and communication technologies). One of today’s challenges dealing with the explosion in wireless traffic is the deployment of many small cells giving rise to networks. MEC is the most frequently indicated technology to support smart city needs [41], as its multi-access allows the connectivity of a wide variety of devices, including wired interfaces and Wi-Fi (GPRS/UMTS/LTE), simultaneously. Kagan [38] presented telecommunications in different communication protocols, that is, a heterogeneous network, so the proposal of this subproject is precisely to use 4G LTE to support 5G and thus carry out all communications in all protocols. The cloud communication technologies in Figure 2 are the focus of our proposal. Data transfer latency provoked by the security system (blockchain) is a very important theme in a system that integrates several heterogeneous components, like SPG [42].

5.3. Smart Cities Platform—InterSCity

The JRC report [43], which discusses smart grid labs, highlights that the theme of “smart cities” and its nature of connecting different layers of technology demand complete and holistic solutions, which adds value to the smart grid sector. The report highlights the increase in investments in smart grid labs and that there is no forecast of a reduction in the number of active labs in this area. The InterSCity platform is designed to simplify the management and integration of smart city services by offering a suite of high-level, web-based micro-services, as described in Figure 3 [4]. These services afford the necessary tools to handle the IoT technologies, enabling the finding of city services and devices, storing and processing data, and intermediating action commands. The platform supports a range of smart city applications across various domains, known as verticals, with a specific example being electrical energy vertical as the REIs in Figure 2. By mediating data transfer between city applications and services for citizens, InterSCity abstracts the complexities involved in city-scale data management and the specific communication protocols required by the underlying IoT devices. This abstraction layer ensures that users can focus on developing and deploying applications without needing to worry about the intricate details of the city’s infrastructure.

6. Results

Rodriques and Almeida [44] presented, in Portuguese, the preliminary results of the LTE/EPC cellular simulation for integration of laboratories for validation and testing of the architecture. However, in this article, it was decided to evaluate the available systems separately for data network and electrical network simulators, as presented in the following subsections.

6.1. LTE/MEC Data Network Simulation

In their article [33], Trajano et al. proposed and evaluated an architecture based on MEC (mobile edge computing), which is efficient in meeting reliability and latency demands. This considers the distributed applications for SPG via mobile cellular networks utilizing LTE/EPC (4G and B5G). The authors used ns-3 to demonstrate the proposal’s ability to handle a realistic number of SMs, supporting many SPG deployment use cases. MEC is a technology standardized by the ETSI (European Telecommunications Standards Institute) [8]. In our data network simulation, there is a similar proposal, as shown in Figure 4.
To revalidate the simulation in this article, mainly determining whether the simulated network can support many SPG devices, the LTE network was set up using the parameters listed in the ITU-R M.2135-1 report [45]. In the experiments, the topologies extracted from deployments are used with real LTE/EPC from neighborhoods in the cities of São Paulo, Brazil, which is one of the largest cities in Latin America and has 11.4 million inhabitants with 7528.26 hab/km2 population density, according to the last census [46]. Figure 5 shows the actual locations of the base stations (ERBs) of a cellular mobile telephone operator on a map implemented from Google Maps, in São Paulo. The Cerqueira César neighborhood used in the simulation, located between the neighborhoods of Jardins da Bandeira, Sumaré and Bixiga. This region includes a big shopping center (Shopping Pátio Higienópolis) and two famous museums: football (Football Museum) and art (MASP—São Paulo Art Museum).
The experiments were conducted using ns-3 version 3.28, leveraging its built-in LTE/EPC module, which provides robust support for LTE-based simulations. The setup involved a machine equipped with an Intel Core i5 8th Generation processor, 12 cores, and 4 GB of RAM. From the central limit theorem (95% confidence interval is used to calculate the error), the margin repeats all simulations 30 times. Each process for the different scenarios took about 5 h to complete. Smart devices and meters had their positions randomly generated within a circle with a radius of 1 km from the center of the chosen region (InCor Hospital) and represented in ns-3 with fixed positions using model-defined ConstantPositionMobilityModel. The coordinates for the LTE BS were sourced from those installed in the city (Figure 4) in alignment with the macro urban cell scenario. Figure 6 illustrates the average perceived delay, measured in milliseconds, in communication between devices and the MEC servers. The aggregation factor (AF) (percentage of SMs connected via concentrators) is a crucial parameter to consider for designing a robust intelligent network deployment, as demonstrated in Figure 6.
In Figure 6, as observed in the scenario with 10,000 SMs without any aggregation device, the delay of 90 ms for application requirements is deemed high for certain SPG use cases. According to IEC, this value is not accepted for services proposed for communication in SPG [47,48]. However, with aggregation, the delay decreased. For an AF of 25%, the delay dropped to 60 ms, and for an AF of 50%, the delay dropped to 35 ms, which are considered acceptable [49,50].
As can be seen in Figure 5, there is a relatively large region in the upper part of the circle surrounding our area of interest, including the center of the circle and the Football Museum, which is serviced by eNBs very far apart (ERB 1 to 5 and 11). Therefore, after a simple cellular service optimization technique, a relocation was proposed for the eNB identified as ERB 3. In Figure 7, the ERB 3 actual position is marked with the red “X”, and the new proposal position is denoted with the yellow pin inside the red circle.
Figure 8 shows how effective the relocation was; the average delay perceived in milliseconds reduced to about 65 ms without aggregation. For an AF of 25%, the delay dropped to 43 ms, and for an AF of 50%, the delay dropped to 25 ms. These values are acceptable in the services proposed for SPG.

6.2. Integration of the InterSCity Platform Between SPG and Other Smart City Verticals

In ref. [5], del Esporte et al. focused on the architecture of InterSCity, highlighting its flexibility, extensibility, and scalability. They presented experimental results that demonstrate how well the platform can scale, likely in various urban or IoT-based scenarios.
In ref. [51], Viana et al. provided an experience report on the software engineering practices involved in developing applications using the InterSCity platform. This likely includes insights into the development of the lifecycle, challenges faced, and how these practices impacted the creation of smart city solutions. In our experiments, we show how the platform can serve several competing verticals without presenting any scalability problems. During three periods (2023–2024), 17 computer engineering undergrad students’ teams used InterSCity and developed their projects, creating software documentation in GitHub repositories [52,53,54,55,56,57,58,59,60,61,62,63,64,65]. Those projects were deployed in only one instance of the platform, at the Intelligent Distributed Systems Laboratory (LSDi—Laboratório de Sistemas Distribuídos Inteligentes) of the Universidade Federal do Maranhão (UFMA). Several projects of different verticals of service provision for smart cities were implemented. As a study of NILM, the Hedwig project [66], which is developed by students from the POLI-USP postgraduate program, integrates grouped data with the InterSCity API [67,68]. After collecting real data from September 22nd to October 21st, 2020, in a connected home testbed in the city of Santo André (10 PIR motion sensors, 10 lamp status sensors, and 8 non-current sensors, invasive—total consumption—and 4 sectors—stored in modules installed in the connected home), pre-processing (one-hot encoding) and data grouping were carried out with unsupervised learning algorithms. The k-means algorithm performs the grouping of movement events and lighting status of the connected home.
In terms of scalability [5] and security [42], other experiments with the InterSCity platform using a blockchain-based management model were conducted. These experiments have proven that the InterSCity platform perfectly meets the requirements demanded for SPG.

7. Conclusions and Future Works

This work presents massive machine-to-machine communication applications for SPG on a smart cities platform (InterSCity), which uses data generated by the POLI-USP Laboratories (NAPREI, L-SISPOT, and L-PROT) to implement mMTC architecture via MEC for the InterSCity platform as applications that manage SPG functionalities. The most significant contribution of this work is filling the gap found in network integration of electrical and telecommunications infrastructure necessary for its management and operation. The use of co-simulation demonstrates the effectiveness of the proposed solution without the need to physically implement any equipment in the field, which would be expensive and traumatic in the operation of a real electrical network. The use of NAPREI simulators and emulators opened a range of options for performance and interoperability testing of the various possible solution architectures in the interconnection of applications and smart microgrids, smart buildings, smart electronic devices (IDEs), and smart meters. Of these possibilities, we highlight the generation of data for the future development of testing applications in big data to access the levels of real off-shore equipment (IDEs, smart meters, etc.), emulations/simulations of specific configurations for scalability testing, heterogeneity, data management, privacy, and security, among other challenges that are intended to be implemented in a vertical of smart electric grids on the InterSCity platform, including the implementation of global energy management. It is proposed, as one of the most important future works of the proposal, to replicate this prediction methodology in the NAPREI network. The project’s proximity to NAPREI is a very promising partnership to add to the expertise of SPG laboratories and the InterSCity platform. The various advances achieved at NAPREI demonstrate the laboratory’s capacity and that the development of global management is one of the possibilities envisioned in a partnership. Paravirtualization is the hybrid of co-simulation and virtualization. This technology is very interesting because it has all the elements developed so far in research and can then be integrated into the physical infrastructure of the NAPREI laboratory, that is, all its equipment and ICT equipment (NAPREI software) and the data network simulator paravirtualization modules simulated in ns-3. Integration of the physical infrastructure of the NAPREI laboratory with two other laboratories at POLI-USP, namely, L-PROT (Protection Laboratory), which includes a real-time digital simulator (RTDS), and the Power Systems Laboratory, which includes four mini generation systems with digital interface, was implemented with NI’s LabView2024 software [69].

Author Contributions

Conceptualization, C.F.M.A., N.K. and L.H.N.R.; methodology, L.H.L.R. and M.L.d.S.; software, L.H.N.R., L.H.L.R. and M.L.d.S.; validation, L.H.L.R., C.F.M.A. and M.L.d.S.; formal analysis, M.L.d.S.; investigation, L.H.N.R., L.H.L.R. and C.F.M.A.; resources, L.H.N.R., L.H.L.R. and C.F.M.A.; data curation, N.K.; writing—original draft preparation, L.H.N.R.; writing—review and editing, L.H.L.R. and C.F.M.A.; visualization, M.L.d.S.; supervision, N.K. and C.F.M.A.; project administration, N.K. and C.F.M.A.; funding acquisition, C.F.M.A. and N.K. All authors have read and agreed to the published version of the manuscript.

Funding

This study was financed in part by the Coordenação de Aperfeiçoamento de Pessoal de Nível Superior—Brasil (CAPES)—Finance Code 001.

Informed Consent Statement

Not applicable.

Data Availability Statement

The original contributions presented in this study are included in this article; further inquiries can be directed to the corresponding author.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. MDPI. Special Issue: Vertical iot Solutions and Their Applications in Smart Cities, Smart Agriculture, Smart Environment and Disaster Management. 2024. Available online: https://www.mdpi.com/ (accessed on 20 September 2024).
  2. Cisco. Cisco Visual Networking Index: Forecast and Trends, 2017–2022 White Paper. Available online: https://www.cisco.com (accessed on 29 August 2024).
  3. Bahmanyar, A.; Jamali, S.; Estebsari, A.; Pons, E.; Bompard, E.; Patti, E.; Acquaviva, A. Emerging smart meters in electrical distribution systems: Opportunities and challenges. In Proceedings of the 2016 24th Iranian Conference on Electrical Engineering (ICEE), Shiraz, Iran, 10–12 May 2016; pp. 1082–1087. [Google Scholar]
  4. Barbierato, L.; Estebsari, A.; Bottaccioli, L.; Macii, E.; Patti, E. A distributed multimodel cosimulation platform to assess general purpose services in smart grids. IEEE Trans. Ind. Appl. 2020, 56, 5613–5624. [Google Scholar] [CrossRef]
  5. Del Esposte, A.d.M.; Santana, E.F.Z.; Kanashiro, L.; Costa, F.M.; Braghetto, K.R.; Lago, N.; Kon, F. Design and evaluation of a scalable smart city software platform with large-scale simulations. Future Gener. Comput. Syst. 2019, 93, 427–441. [Google Scholar] [CrossRef]
  6. Abd El-atty, S.M.; Gharsseldien, Z.M. On performance of hetnet with coexisting small cell technology. In Proceedings of the 6th Joint IFIP Wireless and MobileNetworking Conference (WMNC), Dubai, United Arab Emirates, 23–25 April 2013; pp. 1–8. [Google Scholar]
  7. Leligou, H.C.; Zahariadis, T.; Sarakis, L.; Tsampasis, E.; Voulkidis, A.; Veliv-assaki, T.E. Smart grid: A demanding use case for 5g technologies. In Proceedings of the 2018 IEEE International Conference on Pervasive Computing and Communications Workshops (PerCom Workshops), Athens, Greece, 19–23 March 2018; pp. 215–220. [Google Scholar]
  8. Hu, Y.C.; Patel, M.; Sabella, D.; Sprecher, N.; Young, V. Mobile edge computing—A key technology towards 5g. ETSI White Pap. 2015, 11, 1–16. [Google Scholar]
  9. Rosa, L.H.L. Metodologia para Desenvolvimento e Aplicação de um Emulador de Redes Elétricas Inteligentes em Ambiente Controlado. Ph.D. Thesis, Universidade de Sâo Paulo, São Paulo, SP, Brazil, 2018. [Google Scholar]
  10. Rosa, L.H.L.; Kagan, N.; Almeida, C.F.M.; Labronici, J.; Duarte, S.X.; Morais, R.F.; Gouvea, M.R.; Mollica, D.; Dominice, A.; Zamboni, L.; et al. A laboratory infrastructure to support utilities in attaining power quality and smart grid goals. In Proceedings of the 2016 17th International Conference on Harmonics and Quality of Power (ICHQP), Belo Horizonte, Brazil, 16–19 October 2016; pp. 312–317. [Google Scholar]
  11. Rossi, B.; Chren, S. Smart grids data analysis: A systematic mapping study. IEEE Trans. Ind. Inform. 2020, 16, 3619–3639. [Google Scholar] [CrossRef]
  12. Lopes, V.J.S.; Grimoni, J.A.B. Utilizando o Labview em uma Experiência de Mini-Sistemas de Energia Possibilitando Acesso Remoto. Experimentações Metodológicas. Available online: http://www.abenge.org.br/cobenge/legado/arquivos/14/artigos//SP-5-69336440144-1118345337845.PDF (accessed on 23 March 2024).
  13. Postigo, M.A.O.; Pellini, E.L.; Silva, J.R. Proposta de método sistêmico baseado em modelos para Smart Grid [Not available in English]. In Proceedings of the 2021 14th IEEE International Conference on Industry Applications (INDUSCON), São Paulo, Brazil, 15–18 August 2021; pp. 1063–1070. [Google Scholar] [CrossRef]
  14. de Vasconcelos, F.M.; Rocha, C.H.S.; Almeida, C.F.M.; Pereira, D.d.S.; Rosa, L.H.L.; Kagan, N. Methodology for Inspection Scheduling in Power Distribution Networks Based on Power Quality Indexes. IEEE Trans. Power Deliv. 2021, 36, 1211–1221. [Google Scholar] [CrossRef]
  15. Mets, K.; Ojea, J.A.; Develder, C. Combining power and communication network simulation for cost-effective smart grid analysis. IEEE Commun. Surv. Tutor. 2014, 16, 1771–1796. [Google Scholar] [CrossRef]
  16. Omnetpp.org. Omnet++ Discrete Event Simulator. Available online: https://omnetpp.org/intro/ (accessed on 14 September 2024).
  17. Gavriluta, C.; Boudinet, C.; Kupzog, F.; Gomez-Exposito, A.; Caire, R. Cyber-physical framework for emulating distributed control systems in smart grids. Int. J. Electr. Power Energy Syst. 2020, 114, 1–11. [Google Scholar] [CrossRef]
  18. Mathworks. Available online: https://www.mathworks.com/products/matlab.html (accessed on 31 January 2024).
  19. Ding, Y.; Li, X.; Tian, Y.; Ledwich, G.; Mishra, Y.; Zhou, C. Generating scale-free topology for wireless neighborhood area networks in smart grid. IEEE Trans. Smart Grid 2019, 10, 4245–4252. [Google Scholar] [CrossRef]
  20. Bogodorova, T.; Sabate, M.; Leon, G.; Vanfretti, L.; Halat, M.; Heberger, J.B.; Panciatici, P. A modelica power system library for phasor time-domain simulation. In Proceedings of the IEEE PES ISGT Europe 2013, Lyngby, Denmark, 6–9 October 2013; pp. 1–5. [Google Scholar]
  21. Gu, Y.; Chen, Z.; Yang, J.; Qin, C. Simulation and evaluation of distributed energy system based on modelica. In Proceedings of the 2020 5th International Conference on Power and Renewable Energy (ICPRE), Shanghai, China, 12–14 September 2020; pp. 199–202. [Google Scholar]
  22. Albagli, A.N.; de Rezende, J.F.; Falcão, D.M. Smart grid framework co-simulation using hla architecture. Electr. Power Syst. Res. 2016, 130, 22–33. [Google Scholar] [CrossRef]
  23. Gong, P.; Li, M.; Kong, J.; Li, P.; Kim, D.K. An interactive approach for qualnet-based network model evaluation and testing at real time. In Proceedings of the 16th International Conference on Advanced Communication Technology, Pyeong Chang, South Korea, 16–19 February 2014; pp. 978–982. [Google Scholar]
  24. SCALABLE Network Technology. Qualnet—Network Simulation Software. Available online: https://www.scalable-networks.com/products/qualnet-network-simulation-software-tool/ (accessed on 31 March 2022).
  25. Bian, D.; Kuzlu, M.; Pipattanasomporn, M.; Rahman, S.; Shi, D. Performance evaluation of communication technologies and network structure for smart grid applications. IET Commun. 2019, 13, 1025–1033. [Google Scholar] [CrossRef]
  26. Strasser, T.; Stifter, M.; Andrén, F.; Palensky, P. Co-simulation training platform for smart grids. IEEE Trans. Power Syst. 2014, 29, 1989–1997. [Google Scholar] [CrossRef]
  27. Duy Le, T.; Anwar, A.; Beuran, R.; Loke, S.W. Smart grid co-simulation tools: Review and cybersecurity case study. In Proceedings of the 2019 7th International Conference on Smart Grid (icSmartGrid), Newcastle, Australia, 9–11 December 2019; pp. 39–45. [Google Scholar]
  28. Sarbhai, A.; Merwe, J.V.d.; Kasera, S. Privacy-aware peak load reduction in smart homes. In Proceedings of the 2019 11th International Conference on Communication Systems Networks (COMSNETS), Bangalore, India, 7–11 January 2019; pp. 312–319. [Google Scholar]
  29. Kelley, B.M.; Top, P.; Smith, S.G.; Woodward, C.S.; Min, L. A federated simulation toolkit for electric power grid and communication network co-simulation. In Proceedings of the 2015 Workshop on Modeling and Simulation of Cyber-Physical Energy Systems (MSCPES), Seattle, WA, USA, 13 April 2015; pp. 1–6. [Google Scholar]
  30. Zhang, J.; Daily, J.; Mast, R.A.; Palmintier, B.; Krishnamurthy, D.; Elgindy, T.; Florita, A.; Hodge, B.M. Development of helics-based high-performance cyber-physical co-simulation framework for distributed energy resources applications. In Proceedings of the 2020 IEEE International Conference on Communications, Control, and Computing Technologies for Smart Grids (SmartGridComm), Virtual, 11–13 November 2020; pp. 1–5. [Google Scholar]
  31. de Souza, E.; Ardakanian, O.; Nikolaidis, I. A co-simulation platform for evaluating cyber security and control applications in the smart grid. In Proceedings of the ICC 2020—2020 IEEE International Conference on Communications (ICC), Dublin, Ireland, 7–11 June 2020; pp. 1–7. [Google Scholar]
  32. Venkataramanan, V.; Srivastava, A.; Hahn, A. Real-time co-simulation testbed for microgrid cyber-physical analysis. In Proceedings of the 2016 Workshop on Modeling and Simulation of Cyber- Physical Energy Systems (MSCPES), Vienna, Austria, 11 April 2016; pp. 1–6. [Google Scholar]
  33. Trajano, A.F.R.; de Sousa, A.A.M.; Rodrigues, E.B.; de Souza, J.N.; de Castro Callado, A.; Coutinho, E.F. Leveraging mobile edge computing on smart grids using lte cellular networks. In Proceedings of the 2019 IEEE Symposium on Computers and Communications (ISCC), Barcelona, Spain, 29 June–3 July 2019; pp. 1–7. [Google Scholar]
  34. Hopkinson, K.; Wang, X.; Giovanini, R.; Thorp, J.; Birman, K.; Coury, D. Epochs: A platform for agent-based electric power and communication simulation built from commercial off-the-shelf components. IEEE Trans. Power Syst. 2006, 21, 548–558. [Google Scholar] [CrossRef]
  35. Gaouda, A.M.; Abd-Rabou, A.; Dahir, A. Developing educational smart grid laboratory. In Proceedings of the 2013 IEEE International Conference on Teaching, Assessment and Learning for Engineering (TALE), Bali, Indonesia, 26–29 August 2013; pp. 404–409. [Google Scholar]
  36. Kim, H.; Kim, K.; Park, S.; Kim, H.; Kim, H. Cosimulating communication networks and electrical system for performance evaluation in smart grid. Appl. Sci. 2018, 8, 85. [Google Scholar] [CrossRef]
  37. Mirz, M.; Razik, L.; Dinkelbach, J.; Tokel, H.A.; Alirezaei, G.; Mathar, R.; Monti, A. A cosimulation architecture for power system, communication, and market in the smart grid. Complexity 2018, 2018, 7154031. [Google Scholar] [CrossRef]
  38. Kagan, N. Redes Elétricas Inteligentes no Brasil: Análise de Custos e Benefícios de um Plano Nacional de Implantação; Synergia 1ª edição: Mumbai, Maharashtra, 2013; ISBN-10: 8561325879, ISBN-13: 978-8561325879. (In Portuguese) [Google Scholar]
  39. Maniatopoulos, M.; Lagos, D.; Kotsampopoulos, P.; Hatziargyriou, N. Combined control and power hardware in-the-loop simulation for testing smart grid control algorithms. IET Gener. Transm. Distrib. 2017, 11, 3009–3018. [Google Scholar] [CrossRef]
  40. Joint Research Centre. Smart Grid Laboratories Inventory. Available online: https://ses.jrc.ec.europa.eu/smart-grid-laboratories-inventory (accessed on 5 September 2022).
  41. Spinelli, F.; Mancuso, V. Toward enabled industrial verticals in 5g: Asurvey on mec-based approaches to provisioning and flexibility. IEEE Commun. Surv. Tutor. 2021, 23, 596–630. [Google Scholar] [CrossRef]
  42. Cardoso, A.; Rotondaro, B.; Penha, L.; Endler, M.; da Conceição, A.; da Silva e Silva, F. Gerenciamento Descentralizado de Identidades para Cidades Inteligentes Baseado na Tecnologia Blockchain. In Anais do XXII Simpósio Brasileiro de Segurança da Informação e de Sistemas Computacionais; SBC-OpenLib (SOL): Santa Maria, Brazil, 2022; pp. 57–70. [Google Scholar] [CrossRef]
  43. Chamoso, P.; González-Briones, A.; Rodríguez, S.; Corchado, J.M. Tendencies of technologies and platforms in smart cities: A state-of-the-art review. Wirel. Commun. Mob. Comput. 2018, 2018, 3086854. [Google Scholar] [CrossRef]
  44. Neves Rodrigues, L.H.; Frederico Meschini Almeida, C. Cossimulação de Interconexão entre Redes Elétricas Inteligentes e Plataforma de Cidades Inteligentes via Comunicação Massiva do Tipo Máquina-Máquina. In Proceedings of the 2023 XV Brazilian Conference on Quality of Power (CBQEE), São Luís, Brazil, 4–6 September 2023; pp. 1–7. [Google Scholar] [CrossRef]
  45. ITU-R. Guidelines for Evaluation of Radio Interface Technologies for IMT-Advanced; Tech.Rep. M.2135-1; International Telecommunication Union (ITU): Geneva, Switzerland, 2009; Available online: https://www.itu.int/dms_pub/itu-r/opb/rep/r-rep-m.2135-1-2009-pdf-e.pdf (accessed on 14 September 2024).
  46. Available online: https://www.ibge.gov.br/cidades-e-estados/sp/sao-paulo.html (accessed on 16 August 2024).
  47. IEC—Institute Electrotechnical Comission (IEC 61850-5). Available online: https://www.iec.ch/homepage (accessed on 29 August 2024).
  48. Kalalas, L.T.; Alonso-Zarate, J. Cellular Communications for Smart Grid Neighborhood Area Networks: A Survey. IEEE Access 2016, 4, 1469–1493. [Google Scholar] [CrossRef]
  49. Pau, M.; Patti, E.; Barbierato, L.; Estebsari, A.; Pons, E.; Ponci, F.; Monti, A. A cloud-based smart metering infrastructure for distribution grid services and automation. Sustain. Energy Grids Netw. 2018, 15, 14–25. [Google Scholar] [CrossRef]
  50. Orlando, M.; Estebsari, A.; Pons, E.; Pau, M.; Quer, S.; Poncino, M.; Bottaccioli, L.; Patti, E. A Smart Meter Infrastructure for Smart Grid IoT Applications. IEEE Internet Things J. 2022, 9, 12529–12541. [Google Scholar] [CrossRef]
  51. Viana, D.; de Oliveira Rosa, T.; Silva, F.; Durans, P.; Aragão, A.; Kon, F.; Goldman, A. Software engineering practices in the development of applications for smart cities: An experience report of teaching in a contemporary context. In SBES’19: Proceedings of the XXXIII Brazilian Symposium on Software Engineering; ACM: New York, NY, USA, 2019. [Google Scholar] [CrossRef]
  52. Available online: https://github.com/Joaofelipe14/Sensor-de-Gas (accessed on 14 September 2024).
  53. Available online: https://github.com/DanielKGM/estacionamento_inteligente (accessed on 14 September 2024).
  54. Available online: https://github.com/batista-neto/Integra-o_HomeHub-Sistemas_Distribuidos (accessed on 14 September 2024).
  55. Available online: https://github.com/xp-ednac/monitoramento_de_temperatura/blob/main/connectInterscity.py (accessed on 14 September 2024).
  56. Available online: https://github.com/xp-ednac/monitoramento_de_temperatura (accessed on 14 September 2024).
  57. Available online: https://github.com/brennopacheco/Monitoramento_de_Nivel/tree/main (accessed on 14 September 2024).
  58. Available online: https://github.com/nervaljunior/Distributed-Systems (accessed on 14 September 2024).
  59. Available online: https://github.com/thalesgmendes/Sensor-de-Umidade-e-Temperatura-com-InsterSCity (accessed on 14 September 2024).
  60. Available online: https://github.com/luanc202/MQTT-data-collector (accessed on 14 September 2024).
  61. Available online: https://colab.research.google.com/drive/19YwALkKljvacalAPYsQ93TCMKG0GoEEj (accessed on 14 September 2024).
  62. Available online: https://colab.research.google.com/drive/1aAkH1qwRdsEgRD6JhbTYNsWYBVfcQub-?usp=sharing (accessed on 14 September 2024).
  63. Available online: https://colab.research.google.com/drive/18CA8IMxIe0Zz3uRP1KnH87BrSfGvf9tx?usp=sharing (accessed on 14 September 2024).
  64. Available online: https://drive.google.com/drive/u/0/folders/1tcSndnvPq7gjpI6M_0H2B9nRJ6PIJgsk (accessed on 14 September 2024).
  65. Available online: https://drive.google.com/drive/folders/1egmwAsoHOCsB1XZwgEAE6DEhjlW0iS0i (accessed on 14 September 2024).
  66. Edwigs. Available online: https://github.com/hedwig-project (accessed on 14 September 2024).
  67. Available online: https://colab.research.google.com/drive/1ztdIMDvVSyWk3VTKXAX7NL6ek7IUs6mc?usp=sharingColabEdwigs (accessed on 14 September 2024).
  68. Hayashi, V.T.; Arakaki, R.; Ruggiero, W.V. OKIoT: Trade Off Analysis of Smart Speaker Architecture on Open Knowledge IoT Project. Internet Things 2020, 12, 100310. [Google Scholar] [CrossRef]
  69. LabVIew—NATIONAL INSTRUMENTS. Available online: https://www.ni.com/pt-br/shop/labview.html (accessed on 31 January 2024).
Figure 1. Our proposed integration architecture that uses data generated by POLI laboratories (POLI Labs: L-PROT, Lab-SISPOT, and NAPREI), the USP campus PS (power substation), and the smart cities platform (InterSCity) through ns-3 simulation, which implements mMTC via MEC for applications that manage SPG functionalities.
Figure 1. Our proposed integration architecture that uses data generated by POLI laboratories (POLI Labs: L-PROT, Lab-SISPOT, and NAPREI), the USP campus PS (power substation), and the smart cities platform (InterSCity) through ns-3 simulation, which implements mMTC via MEC for applications that manage SPG functionalities.
Sensors 25 01517 g001
Figure 2. Block diagram of the NAPREI’s SPG laboratory with emphasis on elements (I, II, III, IV, and V) of each research block. Source: [9].
Figure 2. Block diagram of the NAPREI’s SPG laboratory with emphasis on elements (I, II, III, IV, and V) of each research block. Source: [9].
Sensors 25 01517 g002
Figure 3. InterSCity is a web-based microservice. IoT gateway for SPG is emphasized in the red ellipse.
Figure 3. InterSCity is a web-based microservice. IoT gateway for SPG is emphasized in the red ellipse.
Sensors 25 01517 g003
Figure 4. MEC applications in simulation eNB’s.
Figure 4. MEC applications in simulation eNB’s.
Sensors 25 01517 g004
Figure 5. A Google Maps® view of the Cerqueira César neighborhood (São Paulo—SP) utilized in the simulation. The BSs are marked by blue pin icons with white flags, while the red pin denotes the central area of interest for the experiments.
Figure 5. A Google Maps® view of the Cerqueira César neighborhood (São Paulo—SP) utilized in the simulation. The BSs are marked by blue pin icons with white flags, while the red pin denotes the central area of interest for the experiments.
Sensors 25 01517 g005
Figure 6. Average message delay (in milliseconds) sent from multiple smart meters to MEC server in simulation of 0%, 25%, and 50% aggregation.
Figure 6. Average message delay (in milliseconds) sent from multiple smart meters to MEC server in simulation of 0%, 25%, and 50% aggregation.
Sensors 25 01517 g006
Figure 7. Relocation of ERB 3 within the region of interest.
Figure 7. Relocation of ERB 3 within the region of interest.
Sensors 25 01517 g007
Figure 8. Average message delay after the relocation of ERB 3.
Figure 8. Average message delay after the relocation of ERB 3.
Sensors 25 01517 g008
Table 1. Comparison between our co-simulation infrastructure and the literature’s solutions.
Table 1. Comparison between our co-simulation infrastructure and the literature’s solutions.
ReferenceSimulatorNet SimulHILIoTSmart City
[34]PSCAD/EMTDC PSLFns-2NoNoNo
[35]Hampden 180LANNoNoNo
[36]OpenDSSOPMETNoNoNo
[37]Python Modelicans-3NoNoNo
[4]Python MATLAB Simulinkns-3 Mininet Omnet++YesYesNo
[9,10]NAPREI6LoWPANYesNoNo
Our ProposalNAPREI InterSCityns-3YesYesYes
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Rodrigues, L.H.N.; Almeida, C.F.M.; Kagan, N.; Rosa, L.H.L.; dos Santos, M.L. Co-Simulation of Interconnection Between Smart Power Grid and Smart Cities Platform via Massive Machine-Type Communication. Sensors 2025, 25, 1517. https://doi.org/10.3390/s25051517

AMA Style

Rodrigues LHN, Almeida CFM, Kagan N, Rosa LHL, dos Santos ML. Co-Simulation of Interconnection Between Smart Power Grid and Smart Cities Platform via Massive Machine-Type Communication. Sensors. 2025; 25(5):1517. https://doi.org/10.3390/s25051517

Chicago/Turabian Style

Rodrigues, Luiz H. N., Carlos F. M. Almeida, Nelson Kagan, Luiz H. L. Rosa, and Milana L. dos Santos. 2025. "Co-Simulation of Interconnection Between Smart Power Grid and Smart Cities Platform via Massive Machine-Type Communication" Sensors 25, no. 5: 1517. https://doi.org/10.3390/s25051517

APA Style

Rodrigues, L. H. N., Almeida, C. F. M., Kagan, N., Rosa, L. H. L., & dos Santos, M. L. (2025). Co-Simulation of Interconnection Between Smart Power Grid and Smart Cities Platform via Massive Machine-Type Communication. Sensors, 25(5), 1517. https://doi.org/10.3390/s25051517

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop