Description
This This test case is designed to test cluster mode. It is used to test the time to complete the role assignment to the controller.
The time contain two parts:
...
2、The role calculation time of ONOS.
We measure this time by the first hello message and the last role request message of the controllers and switches.
The test was done with multiple switches with the sequence of 100、200、300、400 ... ...
...
Cluster formed(Three nodes)
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
...
6. Analyse the role intimation time from the messages captured by four ports and write down the result.
7. Clean the configuration of controllers and IxNetwork.
8. Repeat test step 1-7 Repeat the test with same switches for three times.
89. Restart the test with another number of switches.
Test Results
Three nodes
Devices First Second Third Average(S) 100s 0.682 0.731 0.861 0.76 200s 1.408 1.461 1.510 1.46 300s 1.944 2.148 1.938 2.01 400s 2.353 3.026 3.039 2.81 500s 3.578 3.263 3.576 3.47 600s 4.237 4.220 4.243 4.23 As shown in the histogram, the result is linear with the number of switches. When the number of switches after more than 600, the sessions will flapsessions is not support good enough, session flap occurs.

