I’m working on a network simulation project where I need to connect two different systems that run at the same time. My main simulator is built with OMNeT++ version 4.6 and uses the INET framework for networking features.
The challenge is that I need my simulator to talk to a machine learning model written in Python while both are running. Here’s what needs to happen:
- The OMNeT++ simulator collects network performance data like signal quality measurements and device positions.
- This information gets sent to the Python ML model in real time.
- The Python model processes this data and learns from it continuously.
- The model then sends back control commands to optimize network performance.
- The simulator receives these commands and applies them immediately.
I’m looking for the best way to set up this two-way communication between the OMNeT++ process and the Python process. Both need to exchange data back and forth during runtime without stopping either program. What’s the most reliable approach to implement this kind of inter-process communication?