Revert "fix(jobspec): Delete ipsec nfv density tests"
[csit.git] / tests / vpp / perf / hoststack / 2n1l-10ge2p1x710-eth-ip4tcphttp-ldpreload-nginx-1_21_5-cps.robot
1 # Copyright (c) 2023 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 | ... | HOSTSTACK | LDP_NGINX | TCP | NIC_Intel-X710 | DRV_VFIO_PCI
20 | ... | TCP_CPS | eth-ip4tcphttp-ldpreload-nginx-1_21_5
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 | ... |
34 | ... | - **[Enc] Packet Encapsulations:** Eth-IPv4-TCP-HTTP for TCP
35 | ... |
36 | ... | - **[Cfg] DUT configuration:**
37 | ... |
38 | ... | - **[Ver] TG verification:**
39 | ... |
40 | ... | - **[Ref] Applicable standard specifications:**
41
42 *** Variables ***
43 | @{plugins_to_enable}= | dpdk_plugin.so | perfmon_plugin.so
44 | ${nic_name}= | Intel-X710
45 | ${crypto_type}= | ${None}
46 | ${nic_driver}= | vfio-pci
47 | ${nic_rxq_size}= | 0
48 | ${nic_txq_size}= | 0
49 | ${nic_pfs}= | 2
50 | ${nic_vfs}= | 0
51 | ${overhead}= | ${0}
52 | ${ciphers}= | 0
53 | ${rps_cps}= | cps
54 | ${qat}= | ${0}
55 | ${r_total}= | ${1000000}
56 | ${c_total}= | ${2000}
57 | ${listen_port}= | ${80}
58 | ${mode}= | ldp
59 | ${tls_tcp}= | tcp
60 | ${keep_time}= | 0
61 | ${ab_ip_prefix}= | 24
62 | @{ab_ip_addrs}= | 192.168.10.2
63 | ${dut_ip_prefix}= | 24
64 | @{dut_ip_addrs}= | 192.168.10.1
65 | ${nginx_version}= | 1.21.5
66 | ${sess_evt_q_length}= | 100000
67 | ${sess_prealloc_sess}= | 1100000
68 | ${v4_sess_tbl_buckets}= | 250000
69 | ${v4_sess_tbl_mem}= | 1g
70 | ${local_endpts_tbl_buckets}= | 250000
71 | ${local_endpts_tbl_mem}= | 1g
72 | ${tcp_prealloc_conns}= | 1100000
73 | ${tcp_prealloc_ho_conns}= | 1100000
74
75 *** Keywords ***
76 | Local template
77 | | [Arguments] | ${frame_size} | ${phy_cores} | ${rxq}=${None}
78 | |
79 | | Set Test Variable | \${frame_size}
80 | | Set Test Variable | ${dpdk_no_tx_checksum_offload} | ${False}
81 | | Given Set Max Rate And Jumbo
82 | | And Add worker threads to all DUTs | ${phy_cores} | ${rxq}
83 | | And Pre-initialize layer driver | ${nic_driver}
84 | | And Configure VPP startup configuration for NGINX | ${sess_prealloc_sess}
85 | | ... | ${sess_evt_q_length} | ${v4_sess_tbl_buckets} | ${v4_sess_tbl_mem}
86 | | ... | ${local_endpts_tbl_buckets} | ${local_endpts_tbl_mem}
87 | | ... | ${tcp_prealloc_conns} | ${tcp_prealloc_ho_conns}
88 | | And Apply startup configuration on all VPP DUTs
89 | | When Initialize layer driver | ${nic_driver}
90 | | And Initialize layer interface
91 | | And Set up LDP or VCL Nginx on DUT1 node | ${mode}
92 | | ... | ${rps_cps} | ${phy_cores} | ${qat} | ${tls_tcp}
93 | | And Additional Suite Setup Action For ab
94 | | Then Measure TLS requests or connections per second
95 | | ... | ${ciphers} | ${frame_size} | ${tls_tcp} | ${rps_cps}
96
97 *** Test Cases ***
98 | 0B-1c-eth-ip4tcphttp-ldpreload-nginx-1_21_5-cps
99 | | [Tags] | 0B | 1C
100 | | frame_size=${0} | phy_cores=${1}
101
102 | 0B-2c-eth-ip4tcphttp-ldpreload-nginx-1_21_5-cps
103 | | [Tags] | 0B | 2C
104 | | frame_size=${0} | phy_cores=${2}
105
106 | 64B-1c-eth-ip4tcphttp-ldpreload-nginx-1_21_5-cps
107 | | [Tags] | 64B | 1C
108 | | frame_size=${64} | phy_cores=${1}
109
110 | 64B-2c-eth-ip4tcphttp-ldpreload-nginx-1_21_5-cps
111 | | [Tags] | 64B | 2C
112 | | frame_size=${64} | phy_cores=${2}
113
114 | 1024B-1c-eth-ip4tcphttp-ldpreload-nginx-1_21_5-cps
115 | | [Tags] | 1024B | 1C
116 | | frame_size=${1024} | phy_cores=${1}
117
118 | 1024B-2c-eth-ip4tcphttp-ldpreload-nginx-1_21_5-cps
119 | | [Tags] | 1024B | 2C
120 | | frame_size=${1024} | phy_cores=${2}
121
122 | 2048B-1c-eth-ip4tcphttp-ldpreload-nginx-1_21_5-cps
123 | | [Tags] | 2048B | 1C
124 | | frame_size=${2048} | phy_cores=${1}
125
126 | 2048B-2c-eth-ip4tcphttp-ldpreload-nginx-1_21_5-cps
127 | | [Tags] | 2048B | 2C
128 | | frame_size=${2048} | phy_cores=${2}