Developing Software-Defined Networks with Ryu controller
Ryu is an SDN controller written in Python. As a component-based application, Ryu is easy to extend for network management and control. It supports various SDN protocols, including OpenFlow, Netconf, and OF-CONFIG.
Getting ready
First we need to install Ryu:
$ sudo pip install ryu
It is very simple as it can be installed with pip
.
Confirm Ryu has been installed correctly by using the following command:
$ sudo mn --controller=ryu,ip=127.0.0.1 --topo linear,2*** Creating network*** Adding controllerwarning: no Ryu modules specified; running simple_switch only*** Adding hosts and stations:h1 h2 *** Adding switches and access point(s):s1 s2 *** Adding link(s):(h1, s1) (h2, s2) (s2, s1) *** Configuring hosts*** Starting controller(s)c0 *** Starting switches and/or access pointss1 s2 ...*** Starting CLI:mininet-wifi>
The preceding command uses ryu
as the controller in the network emulated by Mininet. It uses a simple switch in this process...