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
3 answers

Unable to set IP address in Mininet

I am new to Python and Mininet. I have been trying to emulate a network topology using mininet. I am trying to assign IP addresses to each of the hosts in the network but I'm getting an attribute error. Below is my code import sys from mininet.topo…
Curt cobain
  • 147
  • 1
  • 2
  • 8
3
votes
1 answer

How to execute a python program in Mininet environment in multiple xterm windows simultaneously?

I have a python program (mypro.py) in which i want to run on all the hosts of my topology simultaneously (i.e., without going to each xtrem window and typing python mypro.py). Is there a way to do that on the xterm of Mininet environment by using a…
OiaSam
  • 560
  • 7
  • 19
3
votes
1 answer

Can't establish a conection between two hosts in mininet using a Ryu REST controller

I create a custom topology in Mininet with the help of Mininets Python-API. The code to create the custom topology is: #!/usr/bin/python from mininet.net import Mininet from mininet.node import Controller, RemoteController from mininet.cli import…
André
  • 53
  • 2
  • 6
3
votes
1 answer

Launching shell on mininet hosts in terminal

Inside a tmux session on iTerm2, I'm running mininet on vagrant with ubuntu/trusty64 as base box. I'm looking for a solution to start shell on multiple hosts in mininet topology in iTerm2 (ideally as new pane/tab in my existing tmux session).…
system64
  • 909
  • 1
  • 11
  • 27
3
votes
1 answer

Sending "random" traffic through Mininet network

I want to test a data center routing algorithm using Mininet. The traffic needs to conform to certain parameters: It should consist of "files" of various sizes (note that these don't actually have to be files; traffic generated in, e.g., iperf is…
3
votes
1 answer

No module named inside virtualenv

I'm using Python virtualenv and I'm having a problem with a module (installed inside the virtualenv). First of all, I activate the virtualenv: source path_to_virtualenv/bin/activate The virtualenv is correctly activated (its name appears in the…
Gabriele
  • 31
  • 3
3
votes
2 answers

POX component listen to events

I want to discover the topology of a network emulated by mininet using POX components. I figured out that I need to write my own component, which is listening to LinkEvents. Something like: someObject.addListenerByName("LinkEvent",…
max
  • 677
  • 1
  • 9
  • 34
3
votes
2 answers

Mininet socket programming in python

I emulated a network topology using mininet. The topology contains two hosts connected by several switches. On host 1 we run a client application which creates a socket and tries to connect to the server application on host 2, it fails however. If I…
max
  • 677
  • 1
  • 9
  • 34
3
votes
7 answers

How to save Iperf result in an output file

I am running iperf between a set of hosts that are read from a txt file, here's how I am running it: h1,h2 = net.getNodeByName(node_id_1, node_id_2) net.iperf((h1, h2)) It runs well and displays the results. But, I want to save the output of iperf…
Rakhee Tiwari
  • 31
  • 1
  • 1
  • 3
2
votes
1 answer

Mininet install failed: unable to connect to github.com

I am trying to install mininet 2.3.0 on my Ubuntu machine and i get this following error message: root@Mininet-PC:/home/mininet# mininet/util/install.sh -a . . . Cloning into 'openflow'... fatal: unable to connect to github.com: github.com[0:…
pauliee
  • 31
  • 3
2
votes
0 answers

Mininet - Can a host be connected to two switches?

I have implemented the following topology in Python: from mininet.topo import Topo class internTopo(Topo): def build(self): h1 = self.addHost('h1') h2 = self.addHost('h2') h3 = self.addHost('h3') s1 =…
2
votes
0 answers

Mininet- how to simulate errors?

I would like to ask, how can I simulate errors on switches in mininet? Such as rx_errors, tx_errors, dropped packets, collisions, crc errors, frame errors and other. My topology consists of 6 switches, 6 clients, 1 origin and 2 surrogate servers. I…
Aninkan
  • 31
  • 3
2
votes
1 answer

ovs-ofctl add a flow to allow only ARP ethernet frames

I am starting to learn SDN with ovs-ofctl and mininet, and I am configuring a switch following some tutorials, but there's something I don't catch. When I start my topology with: sudo mn --topo single,2 --controller remote --switch ovsk Now if I…
juan carlos
  • 184
  • 1
  • 11
2
votes
1 answer

Mininet script sending traffic from virtual machine's IP instead of host machines'

In a python3/mininet script I have a tested, valid dictionary of host machines and their IP addresses. For each of the keys - by iterating dictOfAllHostsAndIPs.keys() - I execute a script on each emulated host's terminal for host in…
2
votes
1 answer

Capturing traffic of two hosts in Mininet with Python

I currently have two hosts which run a client and server Python program which send TLS traffic to one another - I have tested this outside of mininet to confirm it works (and it does!). However, the goal here is to use tcpdump/tshark/wireshark to…
rshah
  • 675
  • 2
  • 12
  • 32