[Paper Review] Large-Scale Co-Simulation of Power Grid and Communication Network Models with Software in the Loop
This paper presents a large-scale co-simulation testbed integrating power grid, communication network, and containerized software-in-the-loop (SIL) simulations to validate resilient software roll-out protocols in smart grids. By leveraging mosaik for co-simulation orchestration and deploying iPerf3 in containers to emulate real-time network behavior, the study demonstrates feasible but latency- and throughput-limited performance due to communication bottlenecks in the simulation stack, highlighting key optimization needs for future scalability.
Power grids are transitioning from an infrastructure model based on reactive electronics towards a smart grid that features complex software stacks with intelligent, pro-active and decentralized control. As the power grid infrastructure becomes a platform for software, so does the need for a reliable roll-out of software updates on a large scale. In order to validate resilient large-scale software roll-out protocols, corresponding test beds are needed, which mirror not only ICT networks, but also include the actual software being deployed, and show the interaction between the power grid and the ICT network during the roll-out, and especially during roll-out failures. In this paper, we describe the design implementation of a large-scale co-simulation test bed that combines ICT and power grid simulators. We pay specific attention to the details of integrating containerized software in the simulation loop.
Motivation & Objective
- To address the lack of testbeds that realistically simulate software roll-out in smart grids, including full software stacks and their interaction with power and communication networks.
- To enable validation of resilient software update protocols under failure conditions by embedding actual containerized software in the simulation loop.
- To identify and analyze performance bottlenecks in co-simulation architectures when integrating real software components via containerized SIL.
- To explore the feasibility of using open-source co-simulation frameworks like mosaik for large-scale cyber-physical system testing in smart grids.
- To guide future improvements in communication efficiency, serialization, and process management within co-simulation environments for cyber-physical systems.
Proposed method
- The co-simulation framework integrates a power grid simulator (pandapower), an ICT network simulator (OMNeT++), and a software-in-the-loop (SIL) component using the mosaik co-simulator as the central orchestrator.
- Containerized applications (iPerf3) are deployed as clients and servers within virtualized network interfaces (vif) to simulate real-world data flows through the ICT network model.
- Data flows through a defined path: vif → vif-sim → mosaik → OMNeT++ → mosaik → vim-sim’ → vif’, enabling end-to-end measurement of network metrics.
- The system uses mosaik’s request-reply pattern with non-compressed JSON for inter-simulator communication, which introduces delays due to single-threaded polling and context switches.
- Performance bottlenecks are analyzed by measuring round-trip times and TCP bulk transfer speeds across increasing numbers of nodes (up to 100).
- The study identifies key inefficiencies in the current stack, including per-container process creation, multiple network stack traversals, and lack of event-driven signaling, and proposes multiplexing and ZeroMQ-based transport as future optimizations.
Experimental results
Research questions
- RQ1How can a large-scale co-simulation testbed be designed to include real containerized software in the loop while simulating power grid and ICT network interactions?
- RQ2What performance limitations arise from integrating software-in-the-loop in a co-simulation environment using mosaik and OMNeT++?
- RQ3How do communication overheads, serialization, and process management affect round-trip time and throughput in co-simulated cyber-physical systems?
- RQ4What architectural changes are needed to support scalable, low-latency software roll-out testing in smart grids?
- RQ5Can containerized applications be effectively emulated in a co-simulation to assess real-world behavior during software updates and failures?
Key findings
- Round-trip times increased from approximately 23 ms to 447 ms as the number of nodes rose from 10 to 100, indicating growing latency under load, though not exponentially.
- TCP bulk transfer speeds dropped to a range of 3654–6102 kB/s, significantly below standard Ethernet performance, due to communication stack inefficiencies.
- The mosaik co-simulator’s single-threaded, request-response communication model with non-compressed JSON introduced significant delays, especially under high polling frequency.
- Frequent context switches between kernel and user space during data transmission through multiple network stacks contributed to processing delays.
- Launching one vim-sim process per container led to high process and context switch overhead, suggesting that multiplexing could improve performance.
- The study identifies ZeroMQ integration and zero-copy primitives as promising optimization paths to reduce latency and improve throughput in future co-simulation stacks.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.