|
1 |
| -# healthor |
| 1 | +# Healthor: Protecting the Weak in Heterogeneous DLTs with Health-aware Flow Control |
| 2 | + |
| 3 | +Healthor is a novel heterogeneity-aware flow-control mechanism for DLT networks with unstructured P2P overlay network. It formalizes existing heterogeneity in a notion of health of a node. Sending rates to neighbors are adjusted individually by by adhering to reported health states. This enables high-end nodes to protect weaker nodes from wasting unnecessary processing power, rapidly changing network load and bursts so that every node can stay in sync and actively participate in consensus. |
| 4 | + |
| 5 | +This repository contains an OMNeT++-based simulator written in C++ and a Python framework to analyze and plot results. |
| 6 | + |
| 7 | +## How to run |
| 8 | + |
| 9 | +**Prerequisites:** |
| 10 | +- [OMNeT++ 5.6.2](https://omnetpp.org/download/) |
| 11 | +- Python 3 |
| 12 | + |
| 13 | +```bash |
| 14 | +git clone https://github.com/jonastheis/healthor.git |
| 15 | + |
| 16 | +# compile simulation |
| 17 | +cd healthor/simulation |
| 18 | +make |
| 19 | + |
| 20 | +# set up Python venv |
| 21 | +cd ../plot |
| 22 | +python3 -m venv venv |
| 23 | +source venv/bin/activate |
| 24 | +pip install -r requirements.txt |
| 25 | + |
| 26 | +# run simulation, collect data & create plots |
| 27 | +python main.py |
| 28 | +``` |
| 29 | + |
| 30 | +The simulation to be run can be configured in `main.py` by setting the parameters for `config_name` and `network_name` accordingly. The available configurations can be found in `simulation/omnetpp.ini`. |
| 31 | + |
| 32 | + |
| 33 | +## License |
| 34 | + |
| 35 | +This project is licensed under the [Apache Software License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0). |
| 36 | + |
| 37 | +See [`LICENSE`](LICENSE) for more information. |
| 38 | + |
| 39 | + Copyright 2020 Jonas Theis |
| 40 | + |
| 41 | + Licensed under the Apache License, Version 2.0 (the "License"); |
| 42 | + you may not use this file except in compliance with the License. |
| 43 | + You may obtain a copy of the License at |
| 44 | + |
| 45 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 46 | + |
| 47 | + Unless required by applicable law or agreed to in writing, software |
| 48 | + distributed under the License is distributed on an "AS IS" BASIS, |
| 49 | + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 50 | + See the License for the specific language governing permissions and |
| 51 | + limitations under the License. |
0 commit comments