OpenFlow Conformance Test
In order to guarantee conformance of the switches we created few test cases using the OFTEST framework.
The OFTEST code can be fetched by
In this document we describe how you can setup your own testbed as well as describe the test cases implemented.
The corresponding GiHub repo can be found here: https://github.com/opencord/fabric-oftest
The oftest framework consists of a test server connected to a target switch through an OpenFlow channel and directly to the dataplane ports of the OFswitch. After programming the switch, oftest inserts packets in the dataplane and verifies if the output is as expected.
We recommend using a server connected to a management network, a switch connected to the same management network, and then a minimum of 2 ports directly connected between the server and the switch. A few tests will fail if you have less than 3 ports.
OFTEST Installation guide
To install OFTEST on ubuntu, type the following:
Now let's configure the switch and point it to the testserver. Notice that we are pointing to port 6653 rather than 6633.
Now, assuming that you plugged the ports 12 and 24 of the switch to interfaces eth1 and eth2 of the server, respectively, then the following command can tell you if everything is working.
Segment Routing Tests
The command below should give you the following result:
For example, in this case, all the multicast failed because we don't have three ports, the test L3VPN failed as well, and that is a bug of the current build. The PacketInSrcMac Miss failed because Mac learning is not enabled.
Oftest can't successfully delete all groups using an OF message, because of that some tests interfere with others. If the results seem suspicious, erase the flowtables and group tables and run the test alone.
Baseline results from OFTEST
New releases of the ofdpa software come out reasonably fast, in order to be able to test multiple software versions we use different branches for each version.
The version used by the cord project is i12_1.7 and it's the most stable one up to date.
Full test results can be found in the README file in the repository.
How to test a new switch
- Install OFTEST
- Run PacketIn test to make sure ports are properly connected.
- Run baseline test and create a new branch
- Update the OFDPA software
- Run/fix OF test until it's stable
- Document changes and at the wikipage or JIRA