Questions tagged [mininet]

Mininet is a network emulator.

Mininet can be used to deploy a full network topology on your system. It runs a collection of end-hosts, switches, routers, and links on a single Linux kernel. It uses lightweight virtualization to make a single system look like a complete network, running the same kernel, system, and user code.

Resources:

636 questions
3
votes
2 answers

How to log all flow table entries periodically in mininet by Python code?

In my understanding, dpctl dump-flows command only helps to view current state of flow table. Flow table gets flushed often. I want to record the flow table entries. Which class do I need to look into to record flow table? I am using POX controller…
3
votes
1 answer

ovs-ofctl doen not work - connection refused

I am following openflow tutorial on openflow tutorial. I am using mininet and ryu controller and openvswitch version 2.8.0. When I try to use command: sudo ovs-ofctl show s1 It gives error as below: asd@asd:~/ryu/ryu/mpls$ sudo ovs-ofctl show…
Ashwin
  • 63
  • 1
  • 7
3
votes
2 answers

How to add flow table on each two switches? (mininet)

I set topology as can seen in the image below. I want to add different flow-tables to each switch. But if I type dpctl add-flow in_port=1,nw_dst=10.0.0.2,actions=output:3 the flow table is added to both s1 and s2! How can I add a different…
Jungwon
  • 35
  • 1
  • 6
3
votes
1 answer

Asymmetric links in mininet

I want to use mininet to test a small network with some asymmetric links, but I have not found any information about it. Could someone have an idea to simulate these kind of links.
3
votes
1 answer

Executing commands in batch inside Mininet

Given a Mininet network, I want to simulate flows, e.g. using iperf. To do this, I can run the following: h5 iperf3 -s -p 1337 & h6 iperf3 -s -p 1338 & h1 iperf3 -c h5 -n 10G -b 11M -p 1337 & h2 iperf3 -c h6 -n 10G -b 11M -p 1338 & Within the…
Tama Yoshi
  • 303
  • 2
  • 15
3
votes
1 answer

mininet simulation without controller and with

Whats the difference between using mininet simulation without controller and with controller? Whats the point to use simulation without controller? Sorry for noob question. Many thanks,
Boruncik
  • 31
  • 1
3
votes
2 answers

Mininet's CLI get error:Error setting resource limits. Mininet's performance may be affected

I'm new to mininet,I try two ways to install the lastest mininet: sudo apt-get install mininet install mininet by source code I get this message: Error setting resource limits. Mininet's performance may be affected when I using sudo mn command to…
richard
  • 49
  • 6
3
votes
3 answers

How to run the commands inside the mininet prompt using python scripts from outside

I am new to mininet. I want to run the mininet commands to run from the python scripts like "nodes","dump". I can create the topology but cannot use these commands through my script. I am using Ubuntu 14.04. import subprocess as sb import os print…
user7369931
  • 193
  • 1
  • 11
3
votes
1 answer

How to customize the page sent by SimpleHTTPServer?

I am using SimpleHTTPServer class in my code to respond to client requests (it is actually mininet python script for networking project). The client sends a request every 5 seconds to the server 10.0.0.1: server.cmd('python -m SimpleHTTPServer 80…
A_D
  • 595
  • 1
  • 5
  • 12
3
votes
2 answers

Connect mininet to external host

I have just set up a mininet topology. And now I want to connect one port on the switch in Mininet to an external port through an interface in Ubuntu. The Ubuntu server has two ports: ens33 connected to a real network ens38 connected to VMnet2 My…
3
votes
1 answer

connecting open vswitch with two virtual machines

I'm running an Open VSwitch on a VirtualBox VM, i want to connect 2 VMs that are running on VirtualBox into OpenVswitch. i did these things: 1)first i made an VM running ubuntu (lubuntu), and installed ovs using the following command sudo apt-get…
pouya
  • 51
  • 1
  • 7
3
votes
1 answer

How to run sudo mn --custom option in Mininet?

I am trying to run .py script in Mininet with --custom option. My code is as follows: from mininet.topo import Topo from mininet.net import Mininet from mininet.util import dumpNodeConnections from mininet.log import setLogLevel from mininet.util…
KristinaP
  • 33
  • 1
  • 4
3
votes
1 answer

move hosts dynamically in mininet

How to dynamically move hosts in mininet? Any CLI commands or a script? I tried the code at https://github.com/mininet/mininet/blob/master/examples/mobility.py but I get this error: anusha@anusha-Lenovo-IdeaPad-Z500:~$ sudo python…
Anusha
  • 647
  • 11
  • 29
3
votes
3 answers

Ping is not working on single topology created on mininet

I am new to Mininet and ODL,so please do guide me When I create a simple topology using below command in mininet i.e sudo mn –topo=single,2 –mac –controller=remote –switch=ovsk,protocols=OpenFlow13 ** network topology is created h1 ping h2 …
Bhavana
  • 43
  • 4
3
votes
1 answer

iptables on Mininet OVS

I want running iptables on Mininet OVS. I do this 'xterm s1' 'iptables -A INPUT(or FOWARD or OUTPUT) -i s1-eth1 -j DROP' on s1 terminal. But it is not work. When I use iptables on Mininet Host, it is work. How can I running iptables or different…
NWOWN
  • 399
  • 1
  • 4
  • 17
1 2
3
42 43