TY - GEN
T1 - Ns3-Ai
T2 - 12th Workshop on ns-3, WNS3 2020
AU - Yin, Hao
AU - Liu, Pengyu
AU - Liu, Keshu
AU - Cao, Liu
AU - Zhang, Lytianyang
AU - Gao, Yayu
AU - Hei, Xiaojun
N1 - Publisher Copyright:
© 2020 ACM.
PY - 2020/6/17
Y1 - 2020/6/17
N2 - Recently, Artificial Intelligence (AI) has achieved its momentum in various areas such as image processing and natural language processing thanks to the advances in processing speed, data acquisition and storage. Many research efforts have been exerted to apply AI to computer networking. Performance evaluation of network systems using AI techniques can be conducted using ns-3, and such studies can be facilitated if ns-3 is able to interact with the existing open-source AI frameworks. In the past year, an ns-3 extension module called ns3-gym connecting ns-3 with the OpenAI Gym toolkit has been developed, which utilizes Zero MQ sockets as an interprocess communications (IPC) mechanism. In this paper, we propose a newly designed module between ns-3 and multiple Python-based AI frameworks, namely ns3-Ai, to provide efficient and high-speed data exchange between the AI engines and ns-3. This module is built based on a shared memory implementation for IPC, which can achieve an IPC transfer speed up to 100 times faster than that of ns3-gym on a benchmark example. We also present our high-level interface design to improve the abstraction between ns-3 and different AI frameworks, and provide an example use case based on a 5G NR scenario. Our evaluation results show that this ns3-Ai framework offers performance advantages over ns3-gym, especially for the use cases where large amounts of data must be transferred between ns-3 and the AI framework. This ns-3 extension module may foster the performance evaluation of AI algorithms in computer networking research with much reduced development workload.
AB - Recently, Artificial Intelligence (AI) has achieved its momentum in various areas such as image processing and natural language processing thanks to the advances in processing speed, data acquisition and storage. Many research efforts have been exerted to apply AI to computer networking. Performance evaluation of network systems using AI techniques can be conducted using ns-3, and such studies can be facilitated if ns-3 is able to interact with the existing open-source AI frameworks. In the past year, an ns-3 extension module called ns3-gym connecting ns-3 with the OpenAI Gym toolkit has been developed, which utilizes Zero MQ sockets as an interprocess communications (IPC) mechanism. In this paper, we propose a newly designed module between ns-3 and multiple Python-based AI frameworks, namely ns3-Ai, to provide efficient and high-speed data exchange between the AI engines and ns-3. This module is built based on a shared memory implementation for IPC, which can achieve an IPC transfer speed up to 100 times faster than that of ns3-gym on a benchmark example. We also present our high-level interface design to improve the abstraction between ns-3 and different AI frameworks, and provide an example use case based on a 5G NR scenario. Our evaluation results show that this ns3-Ai framework offers performance advantages over ns3-gym, especially for the use cases where large amounts of data must be transferred between ns-3 and the AI framework. This ns-3 extension module may foster the performance evaluation of AI algorithms in computer networking research with much reduced development workload.
KW - AI
KW - network simulation
KW - ns-3
UR - https://www.scopus.com/pages/publications/85086224471
U2 - 10.1145/3389400.3389404
DO - 10.1145/3389400.3389404
M3 - 会议稿件
AN - SCOPUS:85086224471
T3 - ACM International Conference Proceeding Series
SP - 57
EP - 64
BT - Proceedings of the 2020 Workshop on ns-3, WNS3 2020
PB - Association for Computing Machinery
Y2 - 17 June 2020 through 18 June 2020
ER -