single_core_forward_perf Test Suite

Single core forwarding performance test suite.

This suite measures the amount of packets which can be forwarded by DPDK using a single core. The testsuites takes in as parameters a set of parameters, each consisting of a frame size, Tx/Rx descriptor count, and the expected MPPS to be forwarded by the DPDK application. The test leverages a performance traffic generator to send traffic at two paired TestPMD interfaces on the SUT system, which forward to one another and then back to the traffic generator’s ports. The aggregate packets forwarded by the two TestPMD ports are compared against the expected MPPS baseline which is given in the test config, in order to determine the test result.

class Config

Bases: BaseConfig

Performance test metrics.

class TestSingleCoreForwardPerf

Bases: TestSuite

Single core forwarding performance test suite.

set_up_suite()

Set up the test suite.

single_core_forward_perf() None

Validate expected single core forwarding performance.

Steps:
  • Create a packet according to the frame size specified in the test config.

  • Transmit from the traffic generator’s ports 0 and 1 at above the expect.

  • Forward on TestPMD’s interfaces 0 and 1 with 1 core.

Verify:
  • The resulting MPPS forwarded is greater than expected_mpps*(1-delta_tolerance).