Discover and explore top open-source AI tools and projects—updated daily.
RL toolkit for networking research using OpenAI Gym and ns-3 network simulator
Top 52.7% on SourcePulse
This project provides a framework for applying reinforcement learning (RL) to network simulation research by integrating the OpenAI Gym toolkit with the ns-3 network simulator. It enables researchers to develop and test RL agents for network optimization tasks, offering a standardized interface for RL experimentation within a powerful simulation environment.
How It Works
ns3-gym acts as a bridge between ns-3 simulations and RL agents. It exposes ns-3 simulation parameters and events as Gym environments, allowing RL algorithms to interact with the network simulation by observing states, taking actions, and receiving rewards. The framework leverages ZeroMQ (ZMQ) for inter-process communication between the ns-3 simulator and the Python-based RL agent.
Quick Start & Requirements
contrib
directory, checkout the correct branch (app-ns-3.36+
), and build ns-3. Install ns3gym Python package using pip3 install --user ./model/ns3gym
.Highlighted Details
Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
gym.make('ns3-v0')
interface may cause errors with newer OpenAI Gym versions; ns3env.Ns3Env()
is the recommended alternative.3 months ago
1 day