mirror of
https://github.com/edoardoColi/Communication_Sandbox.git
synced 2026-10-06 22:55:17 +00:00
dependencies
This commit is contained in:
@@ -84,7 +84,9 @@ In addition to its network emulation capabilities, Mininet also provides support
|
|||||||
### Building Custom Network Topologies (MininetNetPractice.py)
|
### 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:
|
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.
|
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**).
|
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**).
|
||||||
|
|||||||
@@ -3,20 +3,20 @@ TODO better
|
|||||||
|
|
||||||
Per far funzionare le cose serve:
|
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
|
python3 --version //This command should display the version of Python 3.x that was installed
|
||||||
|
|
||||||
sudo apt-get install openvswitch-testcontroller //non serve davvero
|
5-sudo apt-get install openvswitch-testcontroller //non serve davvero
|
||||||
sudo apt-get install python3-pip
|
1-sudo apt-get install python3-pip
|
||||||
pip3 install configparser
|
pip3 install configparser
|
||||||
pip3 install colorama
|
2-pip3 install colorama
|
||||||
pip3 install mininet
|
4-pip3 install mininet
|
||||||
pip3 install ryu
|
5?-pip3 install ryu
|
||||||
pip3 install --upgrade pip
|
pip3 install --upgrade pip
|
||||||
pip3 install pillow
|
pip3 install pillow
|
||||||
pip3 install pox
|
pip3 install pox
|
||||||
pip3 install matplotlib
|
pip3 install matplotlib
|
||||||
sudo apt-get install mininet
|
3-sudo apt-get install mininet
|
||||||
|
|
||||||
# Vedo i dettagli con
|
# Vedo i dettagli con
|
||||||
> X route
|
> X route
|
||||||
|
|||||||
Reference in New Issue
Block a user