Mininet enables you to quickly create, customize, interact with, and share an OpenFlow prototype. Mininet's command line can be used to create a network (hosts and switches). Its CLI allows you to control and manage your entire virtual network from a single console. Furthermore, Mininet's API allows you to develop custom network applications with a few lines of Python script. Once a prototype works on Mininet, it can be deployed on a real network.
In this sample experiment, we will use the default topology of Mininet (by running $ sudo mn). This topology includes one OpenFlow switch connected to two hosts, plus the OpenFlow reference controller. This topology can also be specified on the command line with --topo=minimal ...