Wiki » History » Version 5

« Previous - Version 5/14 (diff) - Next » - Current version
Michele Segata, 02/02/2017 10:38 AM


Setup

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

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

Installing and running mininet as local user

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

  1. 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
  2. Install mininet python modules
    python setup.py install --user
  3. 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
  4. 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

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

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