Trendig: Fix processing of trex data
[csit.git] / tests / vpp / perf / hoststack / 2n1l-10ge2p1x710-eth-ip4tcphttp-ldpreload-nginx-1.14.2-rps.robot
1 # Copyright (c) 2021 Intel and/or its affiliates.
2 # Licensed under the Apache License, Version 2.0 (the "License");
3 # you may not use this file except in compliance with the License.
4 # You may obtain a copy of the License at:
5 #
6 #     http://www.apache.org/licenses/LICENSE-2.0
7 #
8 # Unless required by applicable law or agreed to in writing, software
9 # distributed under the License is distributed on an "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 # See the License for the specific language governing permissions and
12 # limitations under the License.
13
14 *** Settings ***
15 | Resource | resources/libraries/robot/shared/default.robot
16 | Resource | resources/libraries/robot/hoststack/hoststack.robot
17 |
18 | Force Tags | 2_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV
19 | ... | LDP_NGINX | TCP | NIC_Intel-X710 | DRV_VFIO_PCI
20 | ... | TCP_RPS | eth-ip4tcphttp-ldpreload-nginx-1.14.2
21 |
22 | Suite Setup | Setup suite topology interfaces | ab | nginx
23 | Suite Teardown | Tear down suite | ab
24 | Test Setup | Setup test
25 | Test Teardown | Tear down test | nginx
26 |
27 | Test Template | Local Template
28 |
29 | Documentation | *TCP requests per seconds.*
30 |
31 | ... | *[Top] Network Topologies:* TG-DUT-TG 2-node topology\
32 | ... | with single link between nodes.
33 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4-TCP-HTTP for TCP
34 | ... | *[Cfg] DUT configuration:*
35 | ... | *[Ver] TG verification:*
36 | ... | *[Ref] Applicable standard specifications:*
37
38 *** Variables ***
39 | @{plugins_to_enable}= | dpdk_plugin.so | perfmon_plugin.so
40 | ${nic_name}= | Intel-X710
41 | ${crypto_type}= | ${None}
42 | ${nic_driver}= | vfio-pci
43 | ${nic_rxq_size}= | 0
44 | ${nic_txq_size}= | 0
45 | ${nic_pfs}= | 2
46 | ${nic_vfs}= | 0
47 | ${overhead}= | ${0}
48 | ${ciphers}= | 0
49 | ${rps_cps}= | rps
50 | ${qat}= | ${0}
51 | ${r_total}= | ${1000000}
52 | ${c_total}= | ${2000}
53 | ${listen_port}= | ${80}
54 | ${mode}= | ldp
55 | ${tls_tcp}= | tcp
56 | ${keep_time}= | 300
57 | ${ab_ip_prefix}= | 24
58 | @{ab_ip_addrs}= | 192.168.10.2
59 | ${dut_ip_prefix}= | 24
60 | @{dut_ip_addrs}= | 192.168.10.1
61 | ${nginx_version}= | 1.14.2
62
63 *** Keywords ***
64 | Local template
65 | | [Arguments] | ${frame_size} | ${phy_cores} | ${rxq}=${None}
66 | |
67 | | Set Test Variable | \${frame_size}
68 | | Set Test Variable | ${dpdk_no_tx_checksum_offload} | ${False}
69 | | Given Set Max Rate And Jumbo
70 | | And Add worker threads to all DUTs | ${phy_cores} | ${rxq}
71 | | And Pre-initialize layer driver | ${nic_driver}
72 | | FOR | ${dut} | IN | @{duts}
73 | | | Import Library | resources.libraries.python.VppConfigGenerator
74 | | | ... | WITH NAME | ${dut}
75 | | | Run keyword | ${dut}.Add DPDK Dev Default RXQ | ${dp_count_int}
76 | | | Run keyword | ${dut}.Add DPDK Dev Default RXD | ${512}
77 | | | Run keyword | ${dut}.Add Session Event Queues Memfd Segment
78 | | | Run keyword | ${dut}.Add tcp congestion control algorithm
79 | | | Run keyword | ${dut}.Add session enable
80 | | END
81 | | And Apply startup configuration on all VPP DUTs
82 | | When Initialize layer driver | ${nic_driver}
83 | | And Initialize layer interface
84 | | And Set up LDP or VCL Nginx on DUT node | ${dut1} | ${mode}
85 | | ... | ${rps_cps} | ${phy_cores} | ${qat} | ${tls_tcp}
86 | | And Additional Suite Setup Action For ab
87 | | Then Measure TLS requests or connections per second
88 | | ... | ${ciphers} | ${frame_size} | ${tls_tcp} | ${rps_cps}
89
90 *** Test Cases ***
91 | 0B-1c-eth-ip4tcphttp-ldpreload-nginx-1.14.2-rps
92 | | [Tags] | 0B | 1C
93 | | frame_size=${0} | phy_cores=${1}
94
95 | 0B-2c-eth-ip4tcphttp-ldpreload-nginx-1.14.2-rps
96 | | [Tags] | 0B | 2C
97 | | frame_size=${0} | phy_cores=${2}
98
99 | 64B-1c-eth-ip4tcphttp-ldpreload-nginx-1.14.2-rps
100 | | [Tags] | 64B | 1C
101 | | frame_size=${64} | phy_cores=${1}
102
103 | 64B-2c-eth-ip4tcphttp-ldpreload-nginx-1.14.2-rps
104 | | [Tags] | 64B | 2C
105 | | frame_size=${64} | phy_cores=${2}
106
107 | 1024B-1c-eth-ip4tcphttp-ldpreload-nginx-1.14.2-rps
108 | | [Tags] | 1024B | 1C
109 | | frame_size=${1024} | phy_cores=${1}
110
111 | 1024B-2c-eth-ip4tcphttp-ldpreload-nginx-1.14.2-rps
112 | | [Tags] | 1024B | 2C
113 | | frame_size=${1024} | phy_cores=${2}
114
115 | 2048B-1c-eth-ip4tcphttp-ldpreload-nginx-1.14.2-rps
116 | | [Tags] | 2048B | 1C
117 | | frame_size=${2048} | phy_cores=${1}
118
119 | 2048B-2c-eth-ip4tcphttp-ldpreload-nginx-1.14.2-rps
120 | | [Tags] | 2048B | 2C
121 | | frame_size=${2048} | phy_cores=${2}