Description
In cluster mode, each controller node manages some switches, and for these switches the controller acts as the master role. Of course, other controller nodes for these switches is also not without meaning, they have been playing the role of slave. When the master controller shutdown or other reasons cause it can not work, those slave controllers will change the role become master. Under normal circumstances, they will master these switches equally.
This test case will config multiple switches connected to a cluster controllers. By shutdown one of the controllers to measure how long it will take for the role intimation time of the cluster.
During the role intimation, there will be lots of role_request packets, the results can be calculate by the time difference between the first role message and the last role message.
The number of nodes in the cluster and the number of switches are the variables of this test. The switches tested are with the sequence of 100、200、300、400 ... ...
Suggestions
- If the OF sessions are restricted to 1000 or 1024, please check the following points:
a) DPID configured by IxNetwork, they should exclusive with each switch.
b) File descriptor of the OS which running the controllers(default with 1024).
c) ARP tables volume of the OS which running the controllers(default with 1024).
- In order to test out the best performance of controllers, several ports of IxNetwork are suggested. In the test below, we used four ports to do the test, each ports with same number of switches, forexample, 100 switches test, we configed 25 switches each port.
- How to shutdown the controller(ONOS)
Active approach
onos> system:shutdownPassive approach
$ sudo killall -9java
Preparation
- Cluster formed
3 mode
$ $ONOS_INSTALL_DIR/bin/onos-form-cluster OC1 OC2 OC35 mode
$ $ONOS_INSTALL_DIR/bin/onos-form-cluster OC1 OC2 OC3 OC4 OC57 mode
$ $ONOS_INSTALL_DIR/bin/onos-form-cluster OC1 OC2 OC3 OC4 OC5 OC6 OC7
Features install
onos> feature:install onos-driversonos> feature:install onos-openflowonos> feature:install onos-openflow-base
Test steps