Seeking Knowledge on Designing a Co-Simulation Environment between Power Simulator and NS-3

79 views
Skip to first unread message

Kondety Tony

unread,
Jul 25, 2023, 12:32:38 PM7/25/23
to ns-3-users
Dear Community, 
I  I am reaching out to inquire about the possibility of designing a co-simulation environment that bridges the gap between a power simulator and NS-3. I am particularly interested in exploring how these two powerful tools can be integrated to facilitate more comprehensive research and analysis in the field of power systems and networking.

 If anyone in our community has prior experience or knowledge in setting up such a co-simulation environment, I would greatly appreciate your insights and guidance. Your expertise could prove invaluable in navigating the intricacies of this integration and understanding potential challenges that may arise during the process. For those who might not be familiar with co-simulation or have not attempted this specific combination before, any advice on how to get started would be equally appreciated. 

Pointers to relevant resources, research papers, or existing projects that may serve as a reference would be immensely helpful. To provide a bit of context, I am looking to establish a communication interface that allows information exchange between the power simulator and NS-3. This way, I aim to investigate and analyze the interactions between power systems and network protocols, enabling a more holistic understanding of complex systems. Thank you in advance for any contributions you can make to this endeavor. Your support and input will not only benefit me personally but also potentially open new avenues of exploration for our community.
 Looking forward to hearing from you and learning together.

Gabriel Ferreira

unread,
Jul 25, 2023, 1:51:47 PM7/25/23
to ns-3-users
I believe you are looking for HELICS https://docs.helics.org/en/latest/ 
There's a module for ns-3 Co-Simulation https://github.com/GMLC-TDC/helics-ns3 

Kondety Tony

unread,
Jul 25, 2023, 2:03:10 PM7/25/23
to ns-3-...@googlegroups.com
Thank you for your suggestion to use HELICS, which is undoubtedly a valuable option. However, I am also eager to explore the integration possibilities with other widely-used tools such as MATLAB Simulink, PSCAD, PowerWorld, OpenDSS, and PowerFactory.

--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to a topic in the Google Groups "ns-3-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ns-3-users/l1VzPeavlCE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ns-3-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ns-3-users/5f26e02b-84c8-4a44-9b4a-96df3089ae8bn%40googlegroups.com.

CONFIDENTIALITY NOTICE: The contents of this email message and any attachments are intended solely for the addressee(s) and may contain confidential and/or privileged information and may be legally protected from disclosure. If you are not the intended recipient of this message or their agent, or if this message has been addressed to you in error, please immediately alert the sender by reply email and then delete this message and any attachments. If you are not the intended recipient, you are hereby notified that any use, dissemination, copying, or storage of this message or its attachments is strictly prohibited.

Madan Kumar Pande

unread,
Jul 26, 2023, 4:36:40 AM7/26/23
to ns-3-...@googlegroups.com, Gabriel Ferreira

Hi,

         Gabriel is very correct in his advice, you should take it to heart.

2. If you are just doing a semester assignment, no sweat.

3.  I hope you are not assuming that Matlab is universally available, which it is not. Besides most of the deep functions are obfuscated on purpose. Matlab will not help you unless they see a profit somewhere, they are quite mercenary, having LEASED their product to many Colleges and Universities In addition, they have made modules to be bought extra, from extensions made to their basic product by many a researcher.

4. There many other approaches Like 'R', Python and Julia. Infact MIT.edu changed over from Matlab Lab work to Julia based Lab work.

5. But you are the best judge of your target audience.

With Regards,

M

P.S.  I did one such project with Octave and NS-3 successfully, but it was for one set of modules involved in the project. Both are opensource and both use C++, and maintainers on both products are extremely helpful and quick to respond. Having said that, it would not have addressed all modules in NS-3, as it spans a whole lot of areas....5GNR/LTE3G4G/WiFI-all variants/UAVs/WiMax/ /UnderWaterCommunications/ SATCom and son...

======================================

You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ns-3-users/CAFqPHc3X-bevZMdU0N13ChAvNeR9R9wupvL-XS9_-vaV_n2_pw%40mail.gmail.com.

Kondety Tony

unread,
Jul 26, 2023, 1:22:31 PM7/26/23
to ns-3-...@googlegroups.com
Dear Madan,
Thank you for getting back to me. 
I want to work on a cyber-physical systems project to be precise intelligent grid applications, and I need to integrate both the physical layer and the communication layer  I have licenses to all the software I mentioned above I want to know how CO-SIMULATION framework is done between them, and NS-3. If anyone has done it before please let me know the feasible solutions.
If possible share your documentation personally it would be helpful for my research.
Regards
Kondety Tony.

Madan Kumar Pande

unread,
Jul 28, 2023, 3:48:03 AM7/28/23
to ns-3-...@googlegroups.com

HI,

       You could write a shared memory or IPC based C++ code. Matlab has a C++ coder, so use that on the Matlab side and on NS-3 side, it will depend upon how often an IO is done with Matlab and by how many programs/scripts in your code would like to do such IO.

2. If you use UML based design the task becomes easier and elegant. Look at how Lena-5G-NR uses its UML classes.

3. you can also make a search on github for a possible code / code fragments.

4. I hope you realize that what you are attempting requires a good system design, and is extensible (version 0/1/2/...) starting from a small implementation with a limited functionality, keeping other functions only returning NYI-> "Not Ye Implemented".

5. If you are trying it alone it may take quite an effort...

Regards,

M

==========================================

Kondety Tony

unread,
Jul 28, 2023, 3:49:58 AM7/28/23
to ns-3-...@googlegroups.com
Is it possible through socket programming???

Madan Kumar Pande

unread,
Jul 28, 2023, 4:41:53 AM7/28/23
to 'Kondety Tony' via ns-3-users

HI,

      That is not a neat approach and limited in various ways. It would do a poor job. One such implementation exists in NS-3 archives for WiFi, done years ago.

Regards,

M.

==============================

Kondety Tony

unread,
Jul 30, 2023, 11:58:57 PM7/30/23
to ns-3-...@googlegroups.com
if possible can I get that example model??

Kondety Tony

unread,
Aug 20, 2023, 11:49:06 PM8/20/23
to ns-3-...@googlegroups.com
Is anyone using NS-3 for smart-grid applications?
Reply all
Reply to author
Forward
0 new messages