Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Warning
titleDeprecated

This page is deprecated and may be removed in a near future.
The new entry point of Trellis underlay fabric installation guide can be found at Fabric Test Guide

Table of Contents

OpenFlow Conformance Test

In order to guarantee conformance of the switches we created few test cases using the OFTEST framework.

...

In this document we describe how you can setup your own testbed as well as describe the test cases implemented.

OFTEST Overview 

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:

...

Code Block
$ cd oftest
$ sudo ./oft -V1.3 --test-dir=ofdpa flows.PacketInArp -i 12@eth1 -i 24@eth2
WARNING: No route found for IPv6 destination :: (no default route?)
flows.PacketInArp ... ok
----------------------------------------------------------------------
Ran 1 test in 4.044s
OK

Segment Routing Tests

 The command below should give you the following result:

...

Warning

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

...