Coder Social home page Coder Social logo

maccc's Introduction

MACCC

Multi-Agents Constrained Congestion Control

Duo Zhang, Yuhao Fan

Achieved dynamic congestion control over one with multiple senders and fairness control using Reinforcement Learning.

Overview

This repo contains the gym environment required for training reinforcement learning models used in the MACC project.

We re-implemented the PCC-RL with stable-baselines3 and PyTorch.

We collect the bandwidth share of each sender from the bottleneck queue of the link for the fairness control

We developed better APIs for visualization and interactions with training(tensorboard and wandb)

Training

  1. Create the environment from the environment.yml file:
conda env create -f environment.yml
  1. Activate the new environment:
conda activate networks
  1. Train:
python src/gym/stable_solve.py 

Arguments:

--steps, type=int, default=1600 * 410 * 50, Timesteps of model learning

--num_senders, type = int, default=1, Sender numbers

--num_links, type = int, default=1, Links numbers

--throughput_coefficient, type = float, default=20, Reward function coefficient of throughtput part

--loss_coefficient, type = float, default=1e3, Reward function coefficient of loss rate part

--latency_coefficient, type = float, default=2e3, Reward function coefficient of latency part

--fairness_coefficient, type = float, default=1e3, Reward function coefficient of fairness part

--PCC, type = int, default=0, Whether use PCC reward function

Visualization

  1. Generate the result image
python src/gym/graph_runall.py
  1. Generate the compare of result image
src/gym/compare.sh

maccc's People

Contributors

kraftoreo avatar yuhao-fan avatar

Stargazers

 avatar  avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.