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
2
votes
1 answer

Ping fails in Mininet, RYU - OpenFlow 1.3

I am using Mininet, RYU controller and OpenFlow 1.3, to create a topology where host h1 is connected to host h2 using a switch p0es0 in the following way: h1 h1-eth0:p0es0-eth3 h2 h2-eth0:p0es0-eth4 In my Ryu Controller application, I have the…
Abhishek Balaji R
  • 665
  • 10
  • 25
2
votes
3 answers

Parsing Packets as they get received by a switch in Mininet

I have been reading about creating a learning switch in Mininet with different controllers (POX, Ryu ..etc). However, there are few things which are not clear to me and I hope to get help from here. My questions is: I need to have control over the…
OiaSam
  • 560
  • 7
  • 19
2
votes
0 answers

Quagga routers with ospf emulated in mininext: Ping failing randomly

I am using mininext to run emulate Quagga routers which are running ospf. But the pingall command fails randomly. Any ideas? mininext> pingall *** Ping: testing ping reachability a1 -> b1 c1 d1 h1 h2 h3 h4 h5 h6 h7 h8 b1 -> a1 c1 d1 h1 h2 h3 h4 h5…
sinhayash
  • 2,693
  • 4
  • 19
  • 51
2
votes
3 answers

Mininet Script Error: type object 'OVSSwitch' has no attribute 'OVSVersion'

I am receiving the following error: File "build/bdist.linux-x86_64/egg/mininet/node.py", line 1162, in start File "build/bdist.linux-x86_64/egg/mininet/node.py", line 1163, in File "build/bdist.linux-x86_64/egg/mininet/node.py", line…
sinhayash
  • 2,693
  • 4
  • 19
  • 51
2
votes
1 answer

How to add scapy traffic in mininet?

I know that we can use scapy to create packet but how to detect this packet in controller of mininet (It can be any controller like POX, Pyretic, Frenetic, RYU, etc). Can anyone explain this with the proper code to run in mininet environment?
2
votes
0 answers

Running mininet in screen with sudo password

I am trying to run Mininet with screen in Ubuntu Server using the following command: screen -d -m sudo mn --topo single,2 --switch ovsk --controller=remote The screen is detached. But if I reattach, I see that the password is required for sudo to…
asm_nerd1
  • 445
  • 1
  • 7
  • 23
2
votes
2 answers

How to add a variable of a method of a class in aonther program in python?

I have a class called WIFISegment as below in ns3.py : class WIFISegment( object ): """Equivalent of radio WiFi channel. Only Ap and WDS devices support SendFrom().""" def __init__( self ): # Helpers instantiation. …
user226876
  • 51
  • 8
2
votes
1 answer

How to decrement the ttl/hoplimit of packets at OpenFlow switches?

I know it is possible to add or modify single flows of OpenFlow switches to decrement the TTL(IPv4) or the hop limit (IPv6). I tested it with the floodlight controller and the following flow entry ovs-ofctl -O OpenFlow13 add-flow s1…
Simon Schürg
  • 2,134
  • 2
  • 20
  • 31
2
votes
1 answer

How to do a mininet hard shutdown for switch

With mininet is there a way to make the switch do a hard shutdown (ie power cord pulled) so that the normal graceful switch going down messages are not sent to the controller?
P D
  • 21
  • 3
2
votes
1 answer

how to can install mininet v2.0.0 on ubuntu 14.4?

how to can install mininet v2.0.0 on ubuntu 14.4? I've installed Ubuntu in a virtual machine (vmware workstation) ubuntu version 14.4, now I want to install the mininet v2.0.0,but I have no solution, please guide me. Thanks
behnam
  • 1,095
  • 2
  • 11
  • 30
2
votes
3 answers

iperf Server and Client Differences

Forgive me if this is the wrong place - this is my first post. I've set up a network in Mininet - created two nodes with the same bandwidth and delay (Bandwidth: 10Mbps, Delay: 10ms). When using iperf to test this, I perform the following…
Ben Freke
  • 21
  • 3
2
votes
1 answer

Mininet script for generic Tree topology with custom bandwidth links

Previously I created mininet topology using the command: sudo mn --topo tree,depth=2,fanout=5 --controller=remote,ip=10.0.0.1,port=6633 --switch ovsk,protocols=OpenFlow13, --link tc,bw=1,delay=10ms I need to specify custom bw values for different…
sinhayash
  • 2,693
  • 4
  • 19
  • 51
2
votes
1 answer

Mininet pingall fails when there is loop in topo

I am using Ryu as my SDN controller to control a topo that has a loop. I am using a learning switch technique to route packets. My main functions/handlers are: @set_ev_cls(ofp_event.EventOFPSwitchFeatures, CONFIG_DISPATCHER) def…
Ehsan Ab
  • 679
  • 5
  • 16
2
votes
1 answer

Initializing a Mininet topology from a bash script

I'd like to automate the process of setting up a Mininet virtual machine, SSHing into the VM, starting Mininet within the VM, and initializing a topology. I need the session to remain open so I can issue commands to Mininet using the created…
Toni
  • 131
  • 2
  • 11
2
votes
1 answer

How to enable brctl stp using python script?

In mininet I am building a topology using LinuxBridge from mininet.nodelib.LinuxBridge) instead of OVSKernelSwitch. s1 = net.addSwitch('s1', cls=LinuxBridge) we can enable the stp of s1 from the command line by brctl stp s1 on How to enable the…
Goutam
  • 31
  • 4