负载均衡代理
运行模拟
可以通过启动router-game.py来运行仿真。
python3 router-game.py
配置
系统默认情况下设置了以下常量(可以在Node.py文件中找到):
THROUGHPUT_META_MEAN = 100 # the mean of the Gaussian from which the throu
THROUGHPUT_META_STD = 10
MAX_PERSISTENCE = 7
MIN_PERSISTENCE = 1
PACKETS_STD_MEAN = THROUGHPUT_META_STD
MARIAN_CONSTANT = 3.0
ALPHA = 2
BETA = 0.01
THROUGHPUT_META_MEAN 从中得出节点吞吐量2的高斯平均值。THROUGHPUT_META_STD 从中得出节点吞吐量的高斯平均值
MA