The next version of VIoLET
"Digital twin" for IoT cyber-infrastructure
run the install script
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 10
sudo apt-get install git autoconf screen cmake build-essential sysstat python3-matplotlib uuid-runtime python3-pip -y
sudo apt-get install ansible aptitude -y
cd ~/Documents/UltraViolet
cd containernet/ansible && sudo ansible-playbook -i "localhost," -c local install.yml
cd .. && sudo make install
cd ~/Documents/UltraViolet
cd metis-5.1.0
make config
make
sudo make install
pip3 install Pyro4
cd ~/Documents/UltraViolet
cd MaxiNet3
sudo make install
Repeat above (1-5) steps for every pc you want to use as a worker or frontend.
On the frontend machine copy the MaxiNet-cfg-sample file to ~/.MaxiNet.cfg and edit the file.
cp share/MaxiNet.cfg ~/.MaxiNet.cfg
vi ~/.MaxiNet.cfg
Please note that every worker connecting to the MaxiNet Server will need an respective entry in the configuration file, named by its hostname and containing its ip. Although UltraViolet tries to guess the IP of the worker if not found in the configuration file.
More details here.
On the frontend machine call
sudo MaxiNetFrontendServer
On every worker machine call
sudo MaxiNetWorker
You should see that the workers are connecting to the frontend.
POX
git clone https://github.com/noxrepo/pox.git
Start an OpenFlow controller for example by calling
cd ~/documents/pox/ && python3 pox.py forwarding.l2_learning
Now run in a new terminal,
python3 /usr/local/share/MaxiNet/examples/simplePing.py
python3 /usr/local/share/MaxiNet/examples/testconfig.py
Congratulations, you just set up your own SDN!
Find examples code in Maxinet3/MaxiNet/Frondend/examples
To read violet file, read the pythonfile in Maxinet3/MaxiNet/Frontend/dev
Container related help