load-balance-agents

  • n0_576111
    了解作者
  • 67.4KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-06-12 10:33
    上传日期
负载均衡代理 运行模拟 可以通过启动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
load-balance-agents-master.zip
  • load-balance-agents-master
  • Coalition.py
    2KB
  • movie.sh
    173B
  • new-router.py
    2.8KB
  • graph_writer.py
    1.3KB
  • images
  • dropped_packets_15_agents_3_coalition_30_steps.png
    18.2KB
  • coalitions.png
    21.4KB
  • cost_history_15_agents_3_coalition_30_steps.png
    27KB
  • Game.py
    7.1KB
  • __init__.py
    0B
  • router-game.py
    1.4KB
  • README.md
    1.4KB
  • Node.py
    6.3KB
  • .gitignore
    1.2KB
内容介绍
# load-balance-agents ## Running the simulation The simulation can be run by launching the `router-game.py`. ```bash python3 router-game.py ``` ## Configuration The system has the following constants set by default (these can be found in the `Node.py` file): ```python 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 ``` 1. **THROUGHPUT_META_MEAN** Mean of the Gaussian from which we draw the Node's throughput 2.**THROUGHPUT_META_STD** Mean of the Gaussian from which we draw the Node's throughput 3. **MAX_PERSISTENCE and MIN_PERSISTENCE** These two variables restrict the node's ability to change coalitions. Each node is assigned a persistence value from the range (MIN_PERSISTENCE, MAX_PERSISTENCE). This number determines the minimum number of turns the node has to stay in the coalition. 4. **PACKETS_STD_MEAN** The mean of the standard deviation for drawing the packets in a given turn for a given node. This determines the std of the distribution from which a given node will have its packets drawn. 5. **ALPHA and BETA** Two variables influencing the cost function. ALPHA diminishes the packet loss if the node is in the coalition and BETA amplifies the penalty for having too large coalitions
评论
    相关推荐