From cd3d870b877e1493ea780f96b70201b73ff9c9ac Mon Sep 17 00:00:00 2001 From: edoardocoli Date: Sat, 7 Oct 2023 03:22:12 +0200 Subject: [PATCH] dependencies --- README.md | 4 +++- setup.txt | 14 +++++++------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index e5f54a8..cc0492e 100644 --- a/README.md +++ b/README.md @@ -84,7 +84,9 @@ In addition to its network emulation capabilities, Mininet also provides support ### Building Custom Network Topologies (MininetNetPractice.py) In order to build a custom network topology I used Mininet and Python tools; in front of all to run the program we need to install those dependencies: ``` -TODO dependencies +apt install python3 python3-pip openvswitch-testcontroller mininet +pip3 install --upgrade pip +pip3 install mininet colorama configparser ryu pillow pox matplotlib ``` The *MininetNetPractice.py* program showcases the ability to parse and extract data from the configuration file to define the desired network topology. Using the Mininet API, the program reads and parses the *MininetTopo.conf* file, which contains information about the network topology. By leveraging the parsed data, the program creates a virtual network with the desired topology, replicating the specified network configuration. This allows for the creation of custom and complex network scenarios tailored to specific research or testing requirements. Referring to a random topology, like the one in the figure below, we can create a configuration file that brings back exactly these parameters within the Mininet topology in order to interact with them. The configuration file *MininetTopo.conf* represents it. Some notes for the creation are reported there as a structure model, together with some constraints to be respected. Another important aspect to allow the network to function is to manage the routers routing table(**TODO inside MininetTopo.conf**). diff --git a/setup.txt b/setup.txt index f22bc51..4396efa 100644 --- a/setup.txt +++ b/setup.txt @@ -3,20 +3,20 @@ TODO better Per far funzionare le cose serve: -sudo apt-get install python3 +0-sudo apt-get install python3 python3 --version //This command should display the version of Python 3.x that was installed -sudo apt-get install openvswitch-testcontroller //non serve davvero -sudo apt-get install python3-pip +5-sudo apt-get install openvswitch-testcontroller //non serve davvero +1-sudo apt-get install python3-pip pip3 install configparser -pip3 install colorama -pip3 install mininet -pip3 install ryu +2-pip3 install colorama +4-pip3 install mininet +5?-pip3 install ryu pip3 install --upgrade pip pip3 install pillow pip3 install pox pip3 install matplotlib -sudo apt-get install mininet +3-sudo apt-get install mininet # Vedo i dettagli con > X route