Wiki » History » Version 5

Michele Segata, 02/02/2017 10:38 AM

1 1 Luca Baldesi
h1. Setup
2 1 Luca Baldesi
3 1 Luca Baldesi
h2. Mininet
4 1 Luca Baldesi
5 1 Luca Baldesi
NePA TesT works in conjunction wit Mininet, but it requires advanced features for dealing with fine grained settings for the links.
6 1 Luca Baldesi
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
7 1 Luca Baldesi
8 1 Luca Baldesi
To install it follow the usual instructions for Mininet:
9 1 Luca Baldesi
@git clone https://ans.disi.unitn.it/redmine/mininet.git@
10 1 Luca Baldesi
@cd mininet@
11 1 Luca Baldesi
@mininet/util/install.sh@
12 1 Luca Baldesi
13 1 Luca Baldesi
or build the debian package:
14 1 Luca Baldesi
@git clone https://ans.disi.unitn.it/redmine/mininet.git@
15 1 Luca Baldesi
@cd mininet@
16 1 Luca Baldesi
@make deb@
17 1 Luca Baldesi
18 1 Luca Baldesi
You can check if your setup is correct with:
19 1 Luca Baldesi
@#>mn --test pingall@
20 1 Luca Baldesi
21 5 Michele Segata
h3. Installing and running mininet as local user
22 5 Michele Segata
23 5 Michele Segata
Instead of calling @util/install.sh@ do the following steps
24 5 Michele Segata
25 5 Michele Segata
# Installing prerequirements requires systemwide libraries in any case :(
26 5 Michele Segata
   @sudo apt-get install gcc make socat psmisc xterm ssh iperf iproute telnet \@
27 5 Michele Segata
   @    python-setuptools cgroup-bin ethtool help2man  pyflakes pylint pep8 python-pexpect@
28 5 Michele Segata
# Install mininet python modules
29 5 Michele Segata
   @python setup.py install --user@
30 5 Michele Segata
# Add mininet folders to your PATH in .bashrc, e.g.:
31 5 Michele Segata
   @export PATH=$PATH:/home/username/src/mininet@
32 5 Michele Segata
   @export PATH=$PATH:/home/username/src/mininet/bin@
33 5 Michele Segata
# Run mininet as sudo exporting the PATH env variable, e.g.:
34 5 Michele Segata
   @sudo env "PATH=$PATH" python nepa_test.py -f conf/ping.ini -t JSONTest@
35 5 Michele Segata
36 1 Luca Baldesi
h2. NePA TesT
37 1 Luca Baldesi
38 1 Luca Baldesi
Once installed the modified version of Mininet, to setup NePA TesT do the following:
39 1 Luca Baldesi
@git clone https://ans.disi.unitn.it/redmine/wcn_emulator.git@
40 1 Luca Baldesi
@cd wcn_emulator@
41 2 Luca Baldesi
@git submodule init@
42 2 Luca Baldesi
@git submodule update@
43 1 Luca Baldesi
44 1 Luca Baldesi
To run a sample test:
45 4 Luca Baldesi
@#>python nepa_test.py -f conf/ping.ini -t JSONTest@
46 3 Michele Segata
47 3 Michele Segata
h3. Troubleshooting
48 3 Michele Segata
49 3 Michele Segata
* *Exception: Could not find a default OpenFlow controller*: from within the mininet source directory run @./util/install -f@ to install OpenFlow
50 3 Michele Segata
* *ImportError: No module named [...]*: be sure to install the required python libraries with @sudo pip install networkx scipy numpy matplotlib psutil@