ns3-ai: Fostering Artificial Intelligence Algorithms for Networking Research

Hao Yin, Pengyu Liu, Keshu Liu, Liu Cao, Lyutianyang Zhang, Yayu Gao, Xiaojun Hei
{"title":"ns3-ai: Fostering Artificial Intelligence Algorithms for Networking Research","authors":"Hao Yin, Pengyu Liu, Keshu Liu, Liu Cao, Lyutianyang Zhang, Yayu Gao, Xiaojun Hei","doi":"10.1145/3389400.3389404","DOIUrl":null,"url":null,"abstract":"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.","PeriodicalId":388630,"journal":{"name":"Proceedings of the 2020 Workshop on ns-3","volume":"46 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2020-06-06","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"37","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings of the 2020 Workshop on ns-3","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/3389400.3389404","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 37

Abstract

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.
ns3-ai:促进网络研究中的人工智能算法
最近,人工智能(AI)在图像处理和自然语言处理等各个领域取得了发展势头,这得益于处理速度、数据采集和存储方面的进步。在将人工智能应用于计算机网络方面已经进行了许多研究工作。使用人工智能技术的网络系统的性能评估可以使用ns-3进行,如果ns-3能够与现有的开源人工智能框架进行交互,则可以促进此类研究。在过去的一年里,一个名为ns3-gym的ns-3扩展模块被开发出来,它将ns-3与OpenAI Gym工具包连接起来,它利用Zero MQ套接字作为进程间通信(IPC)机制。在本文中,我们提出了在ns-3和多个基于python的AI框架之间新设计的模块ns3-ai,以提供AI引擎和ns-3之间高效、高速的数据交换。该模块是基于IPC共享内存实现构建的,在一个基准示例中,它可以实现比ns3-gym快100倍的IPC传输速度。我们还介绍了我们的高级接口设计,以改进ns-3和不同AI框架之间的抽象,并提供了一个基于5G NR场景的示例用例。我们的评估结果表明,这个ns3-ai框架提供了优于ns3-gym的性能优势,特别是对于必须在ns3和AI框架之间传输大量数据的用例。该ns-3扩展模块可促进人工智能算法在计算机网络研究中的性能评估,大大减少了开发工作量。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信