Wiki » History » Version 3

Michele Segata, 01/18/2017 01:53 PM

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 1 Luca Baldesi
h2. NePA TesT
22 1 Luca Baldesi
23 1 Luca Baldesi
Once installed the modified version of Mininet, to setup NePA TesT do the following:
24 1 Luca Baldesi
@git clone https://ans.disi.unitn.it/redmine/wcn_emulator.git@
25 1 Luca Baldesi
@cd wcn_emulator@
26 2 Luca Baldesi
@git submodule init@
27 2 Luca Baldesi
@git submodule update@
28 1 Luca Baldesi
29 1 Luca Baldesi
To run a sample test:
30 1 Luca Baldesi
@#>python wcn_simulator.py -f conf/ping.ini -t JSONTest@
31 3 Michele Segata
32 3 Michele Segata
h3. Troubleshooting
33 3 Michele Segata
34 3 Michele Segata
* *Exception: Could not find a default OpenFlow controller*: from within the mininet source directory run @./util/install -f@ to install OpenFlow
35 3 Michele Segata
* *ImportError: No module named [...]*: be sure to install the required python libraries with @sudo pip install networkx scipy numpy matplotlib psutil@