We use the Ubuntu [39] as the operating system to install Mininet and RYU controller and don't use the VM because the VM have some problem to test and open terminal from windows OS.
4.2 Run the Mininet and RYU To run Mininet must be to open terminal from Ubuntu and then write some codes:
Sudo mn custom ~/mininet/custom/4sw-4host.py --topo mytopo --controller=remote
This code as example to run the application saved in Mininet emulator Sudo: run root from Ubuntu
Mn: Mininet emulator
~/Mininet/custom/4sw-4host.py:link of application saved in Mininet
--topo mytopo: type of topology is defined in script of application
--controller=remote: type of controller is remote or not, here controller is remote that mean open the Xterm window and run RYU controller …show more content…
Mininet>Xterm c0 c0
The above script is open two Xterm windows from the controller, first, is run the methods and second is sent order to switches.
Run the RYU controller by using the code:
Ryu-manager ryu.app.simple_switch_stp_13 ryu.app.multipath
Then the second of Xterm to send the order to switch to take the queue for every port in switches to send packets, as an example to send the order for port eth5 in switch No.1.
ovs-vsctl -- set Port s1-eth5 qos=@newqos \
-- --id=@newqos createQoS type=linux-htb other-config:max-rate=250000000 queues=0=@q0\ -- --id=@q0 create Queue other-config:min-rate=8000000 other-config:max-rate=150000000
Then open Xterm for switches to inform the switch which OpenFlow version must be working in our experiment using the OpenFlow version