参考文章:
Installation - Nsnamhttps://www.nsnam.org/wiki/Installation#Installationubuntu18.04安装protobuf_tugouxp的专栏-CSDN博客关于protobuf的介绍和应用参考ONNX格式解析之google protobuf解析_tugouxp的专栏-CSDN博客ONNX模型是按照google protobuf格式保存的,模型训练的目的就是为了得到变量的权值,只不过是纯数字罢了,但是我们也不能就这样把这些数字一个一个地写入文件,因为在要保存的模型文件里,不光要保存权值,也要告诉之后用这个模型的人,模型结构是怎么样的,所以需要合理地设计保存文件的格式。不同的机器学习框架都有自己的模型保存格式,例如 Keras 的模型格式是 h5,而 Tenshttps://blog.csdn.net/tugouxp/article/details/120584775GitHub - tkn-tub/ns3-gym: ns3-gym - The Playground for Reinforcement Learning in Networking Researchns3-gym - The Playground for Reinforcement Learning in Networking Research - GitHub - tkn-tub/ns3-gym: ns3-gym - The Playground for Reinforcement Learning in Networking Researchhttps://github.com/tkn-tub/ns3-gym
NS3:3.29 环境:Ubuntu 20.04(必须得要20.04,18.04装3.29时会报错) 安装ns3首先,按照NS3官方给的教程安装ns3所需要的库,根据官方教程(见参考文档1)提示,对应安装。如果不知道装哪些,那就把代码全粘进命令行。
库装好后,再根据教程安装ns3.建议用官方教程中的bake安装,简单省事。
安装ns3-gym安装所需要的库:
# minimal requirements for C++: apt-get install gcc g++ python see https://www.nsnam.org/wiki/Installation
安装 ZMQ 和 Protocol Buffers 库:
#安装zmq apt-get install libzmq5 libzmq5-dev #如果按照GitHub的教程会发现protocol buffers已经装不了了,所以改用git安装 #安装protobuf git clone https://github.com/protocolbuffers/protobuf.git cd protobuf git submodule update --init --recursive #编译执行 ./autogen.sh ./configure #检查 make check sudo make install sudo ldconfig 查看版本 protoc --version
进入到ns3的目录中,编译ns3
./waf configure ./waf build
下载ns3-gym,然后复制ns3-gym/src的opengym文件夹到ns3的src中
#安装ns3-gym,报错就先编译 pip3 install ./src/opengym/model/ns3gym #编译 ./waf configure ./waf build
完成



