Posts

Showing posts with the label mn

multicast join failed: No such device

If you try to generate multicast traffic with iperf, this message could probably appear, especially if you are using mininet: multicast join failed: No such device  To solve it, you need to create an entry in the route table for multicast traffic like this: ip route add 224.0.0.0/4 dev eth0 On the server side use: iperf -s -u -B 225.0.0.5 -i 1 On the client side use: iperf -c 225.0.0.5 -i -i 1 -l 100 -b 1k Enjoy it!

Running Faucet and Gauge on localhost

Image
In my post about how to configure  mininet-ryu-faucet-gauge-influxdb  I used faucet in a remote machine (as virtual machine). Now, I going to explain how to install and configure it in localhost. First, download it form github: git clone https://github.com/onfsdn/faucet.git cd faucet sudo python setup.py install Probably, you will see this message: build/temp.linux-x86_64-2.7/check_libyaml.c:2:18: fatal error: yaml.h: No such file or directory To avoid it, you need to install yaml: apt-get install libyaml-dev If you try to install it again you will see this message: ERROR:root:Error parsing Traceback (most recent call last):   File "/usr/local/lib/python2.7/dist-packages/pbr/core.py", line 111, in pbr     attrs = util.cfg_to_args(path, dist.script_args)   File "/usr/local/lib/python2.7/dist-packages/pbr/util.py", line 248, in cfg_to_args     kwargs = setup_cfg_to_setup_kwargs(config, script_args)   File "/usr/local/lib...

How to import a graphml topology in mininet

If you want to load topologies in your network emulation with mininet, the best option is use grahpml format. I compared a lot extesions available from Gephi and Cytoscape (software for work with topologies) and graphml is one of the extensions that gives more information about the topology. You can export your topologies and save information like label, geolocalization, delay, bw, loss, etc. If you want real topologies, you can get them from Topology Zoo website . To import these topologies to mininet, you can use  Auto-Mininet (for mininet 2.0.0): git clone https://github.com/uniba-ktr/assessing-mininet.git cd assessing-mininet/parser wget  http://topology-zoo.org/files/Chinanet.graphml ./GraphML-Topo-to-Mininet-Network-Generator.py -f Chinanet.graphml -o chinaNet.py python chinaNet.py   File "test", line 44     Xi'an = self.addSwitch( 's18' )                             ^ Syn...