Helps you understand the inner workings of the Spanning Tree protocol. An algorithm was used to solve the tree for you, where you get questions on how each edge should be defined.
There are 3 types of questions in this script:
- Identifying the root bridge
- Definitions of the edge type abbreviations
- Identifying edge types in a network
Example image:
It is possible to scale up the network by modifying the global variables "networkWidth" and "networkHeight". Be sure to make it an uneven amount larger than 5, since you need 3 components per connection: Bridge <-> Edge <-> Network (<-> Edge <-> Bridge).
Clone the repository:
SSH: git clone git@github.com:/f13rce/SpanningTreePractiser.git && cd SpanningTreePractiser
HTTPS: git clone https://github.com/f13rce/SpanningTreePractiser.git && cd SpanningTreePractiser
Install the required packages:
pip3 install -r requirements.txt --user
If this doesn't work try:
python3.6 -m pip install -r requirements.txt --user
Then run the script:
python3 stp.py
See requirements.txt. Also requires a terminal with non-personalized output colors for proper coloring, which is needed to answer questions about highlighted sections.
To install the requirements, type in your terminal: pip3 install -r requirements.txt --user