Read the latest Real Python tutorials
Project description
Distributed Load Routing
Simulates a network and runs a networking protocol aimed to distribute packet load in order to distribute battery depletion.
Prerequisites
pip install numpy
Configuration File
Field | Description | Accepted Values |
---|---|---|
num_nodes | Number of nodes in the network | [2, inf) |
max_connections | Maximum number of connections a node can have | [2, num_nodes) |
router_ratio | Percentage of routers in the network | [0.0, 1.0] |
buffer_size | Number of packets the link layer receive buffer can hold at a time | [0, inf) |
battery_weight | Higher the battery_weight, the more the path avoids low battery | [0.0, inf) |
beautify | Determines whether the simulation debugs readable information or csv formatted information | [0, 1] |
Running
python main.py config.txt
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for load-distributed-routing-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06bd171d6ebb62ad00467bde40661a0f916068d326005bdfc6a56614cf4caeff |
|
MD5 | 636ce53724a1191d7e50bc4fb5dc960d |
|
BLAKE2b-256 | cab95cc5a9847ba5a0eeaea41d76a58581d702c3ea856b9f4b6e2f94b9ffada6 |
Close
Hashes for load_distributed_routing-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee12bea93144e6fef630c330d61a4987f202206186deab07efb1d5204778bfee |
|
MD5 | f1e69343bfb088646aaa4ed4d597959e |
|
BLAKE2b-256 | 0b8157abe96a617f4a8ee0bf23e616e3e3794761f7c0fb8b8802f8f80ff9faf7 |