Wiki » History » Version 6

Version 5 (Michele Segata, 02/02/2017 10:38 AM) → Version 6/14 (Michele Segata, 02/02/2017 11:38 AM)

h1. Setup

h2. Mininet

NePA TesT works in conjunction wit Mininet, but it requires advanced features for dealing with fine grained settings for the links.
To this end we have been developing and releasing a "patched version of Mininet":https://ans.disi.unitn.it/redmine/projects/community-newtork-emulator/repository/mininet

To install it follow the usual instructions for Mininet:
@git clone https://ans.disi.unitn.it/redmine/mininet.git@
@cd mininet@
@mininet/util/install.sh@

or build the debian package:
@git clone https://ans.disi.unitn.it/redmine/mininet.git@
@cd mininet@
@make deb@

You can check if your setup is correct with:
@#>mn --test pingall@

h3. Installing and running mininet as local user

Instead of calling @util/install.sh@ do the following steps

# Installing prerequirements requires systemwide libraries in any case :(
@sudo apt-get install gcc make socat psmisc xterm ssh iperf iproute telnet \@
@ python-setuptools cgroup-bin ethtool help2man pyflakes pylint pep8 python-pexpect@
# Install mininet python modules
@python setup.py install --user@
# Compile mnexec
@make mnexec@
#
Add mininet folders to your PATH in .bashrc, e.g.:
@export PATH=$PATH:/home/username/src/mininet@
@export PATH=$PATH:/home/username/src/mininet/bin@
# Run mininet as sudo exporting the PATH env variable, e.g.:
@sudo env "PATH=$PATH" python nepa_test.py -f conf/ping.ini -t JSONTest@

h2. NePA TesT

Once installed the modified version of Mininet, to setup NePA TesT do the following:
@git clone https://ans.disi.unitn.it/redmine/wcn_emulator.git@
@cd wcn_emulator@
@git submodule init@
@git submodule update@

To run a sample test:
@#>python nepa_test.py -f conf/ping.ini -t JSONTest@

h3. Troubleshooting

* *Exception: Could not find a default OpenFlow controller*: from within the mininet source directory run @./util/install -f@ to install OpenFlow
* *ImportError: No module named [...]*: be sure to install the required python libraries with @sudo pip install networkx scipy numpy matplotlib psutil@