Test Environment

Environment Versioning

CSIT test environment versioning has been introduced to track modifications of the test environment.

Any benchmark anomalies (progressions, regressions) between releases of a DUT application (e.g. VPP, DPDK), are determined by testing it in the same test environment, to avoid test environment changes clouding the picture. To beter distinguish impact of test environment changes, we also execute tests without any SUT (just with TRex TG sending packets over a link looping back to TG).

A mirror approach is introduced to determine benchmarking anomalies due to the test environment change. This is achieved by testing the same DUT application version between releases of CSIT test system. This works under the assumption that the behaviour of the DUT is deterministic under the test conditions.

CSIT test environment versioning scheme ensures integrity of all the test system components, including their HW revisions, compiled SW code versions and SW source code, within a specific CSIT version. Components included in the CSIT environment versioning include:

  • HW Server hardware firmware and BIOS (motherboard, processsor, NIC(s), accelerator card(s)), tracked in CSIT branch.

  • Linux Server Linux OS version and configuration, tracked in CSIT Reports.

  • TRex TRex Traffic Generator version, drivers and configuration tracked in TG Settings.

  • CSIT CSIT framework code tracked in CSIT release branches.

Following is the list of CSIT versions to date:

  • Ver. 1 associated with CSIT rls1908 branch (HW, Linux, TRex, CSIT).

  • Ver. 2 associated with CSIT rls2001 branch (HW, Linux, TRex, CSIT).

  • Ver. 4 associated with CSIT rls2005 branch (HW, Linux, TRex, CSIT).

  • Ver. 5 associated with CSIT rls2009 branch (HW, Linux, TRex, CSIT).

  • Ver. 6 associated with CSIT rls2101 branch (HW, Linux, TRex, CSIT).

    • The main change is TRex version upgrade: increase from 2.82 to 2.86.

  • Ver. 7 associated with CSIT rls2106 branch (HW, Linux, TRex, CSIT).

    • TRex version upgrade: increase from 2.86 to 2.88.

    • Ubuntu upgrade from 18.04 LTS to 20.04.2 LTS.

  • Ver. 8 associated with CSIT rls2110 branch (HW, Linux, TRex, CSIT).

    • Intel NIC 700/800 series firmware upgrade based on DPDK compatibility matrix.

  • Ver. 9 associated with CSIT rls2202 branch (HW, Linux, TRex, CSIT).

    • Intel NIC 700/800 series firmware upgrade based on DPDK compatibility matrix.

  • Ver. 10 associated with CSIT rls2206 branch (HW, Linux, TRex, CSIT).

    • Intel NIC 700/800 series firmware upgrade based on DPDK compatibility matrix.

    • Mellanox 556A series firmware upgrade based on DPDK compatibility matrix.

    • Intel IceLake all core turbo frequency turned off. Current base frequency is 2.6GHz.

    • TRex version upgrade: increase from 2.88 to 2.97.

  • Ver. 11 associated with CSIT rls2210 branch (HW, Linux, TRex, CSIT).

    • Intel NIC 700/800 series firmware upgrade based on DPDK compatibility matrix.

    • Mellanox 556A series firmware upgrade based on DPDK compatibility matrix.

    • Ubuntu upgrade from 20.04.2 LTS to 22.04.1 LTS. (2n-dnv and 3n-dnv keeps the Ubuntu 20.04.2LTS as a part of decomission).

    • TRex version upgrade: increase from 2.97 to 3.00.

SUT Settings - TRex

TG Settings - TRex

TG Version

TRex v3.00

DPDK Version

DPDK v21.02

TG Installation

T-Rex installation is managed via Ansible role.

TG Startup Configuration

$ sudo -E -S sh -c 'cat << EOF > /etc/trex_cfg.yaml
- version: 2
  c: 8
  limit_memory: 8192
  interfaces: ["${pci1}","${pci2}"]
  port_info:
      - dest_mac: [${dest_mac1}]
        src_mac: [${src_mac1}]
      - dest_mac: [${dest_mac2}]
        src_mac: [${src_mac2}]
  platform :
      master_thread_id: 0
      latency_thread_id: 9
      dual_if:
          - socket: 0
            threads: [1, 2, 3, 4, 5, 6, 7, 8]
EOF'

TG Startup Command (Stateless Mode)

$ sudo -E -S sh -c "cd '${trex_install_dir}/scripts/' && \
  nohup ./t-rex-64 -i --prefix $(hostname) --hdrh --no-scapy-server \
  --mbuf-factor 32 > /tmp/trex.log 2>&1 &" > /dev/null

Also, Python client is now starting traffic with:

core_mask=STLClient.CORE_MASK_PIN

TG Startup Command (Stateful Mode)

$ sudo -E -S sh -c "cd '${trex_install_dir}/scripts/' && \
  nohup ./t-rex-64 -i --prefix $(hostname) --astf --hdrh --no-scapy-server \
  --mbuf-factor 32 > /tmp/trex.log 2>&1 &" > /dev/null

TG API Driver

TRex driver