Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Mininet is a container orchestration system for network emulation. With Mininet and onos.py, you can easily start up an ONOS cluster in a single VM.

Getting Mininet

It's easy to install Mininet on Ubuntu from a package:

...

cd ~/onos/tools/dev/mininet
sudo mn --custom onos.py --controller onos,3 --switch onosovs --topo torus,4,4

What does this do?

...

--controller onos,3: tells Mininet to start up an ONOS controller cluster with 3 ONOS nodes--switch onosovs: this is currently necessary to enable Mininet to automatically connect to a controller with multiple IP addresses (you can also just use --switch onos)

--topo torus,4,4: tells Mininet to use a 4x4 torus topology for the data network

What software switch does this use?

By default, it uses Open vSwitch. onos.py replaces the default switch with a new switch class called ONOSOVSSwitch or --switch onosovs. This switch class knows how to connect to an ONOS cluster with multiple IP addresses.

How can I use the user switch (or CPqD switch if I have it installed?)

In order to select the user switch (either Stanford reference switch or CPqD switch, depending on which one you have installed), you can use --switch onosuser.

How can I get more information on Mininet?

...