0b548fadcd1857be2c35bc911b071ac65379b4a7
[csit.git] / tests / vpp / perf / hoststack / 2n1l-10ge2p1x710-eth-ip4tcphttp-ldpreload-nginx-1_15_0-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_15_0
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}= | rps
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}= | 300
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.15.0
66
67 *** Keywords ***
68 | Local template
69 | | [Arguments] | ${frame_size} | ${phy_cores} | ${rxq}=${None}
70 | |
71 | | Set Test Variable | \${frame_size}
72 | | Set Test Variable | ${dpdk_no_tx_checksum_offload} | ${False}
73 | | Given Set Max Rate And Jumbo
74 | | And Add worker threads to all DUTs | ${phy_cores} | ${rxq}
75 | | And Pre-initialize layer driver | ${nic_driver}
76 | | FOR | ${dut} | IN | @{duts}
77 | | | Import Library | resources.libraries.python.VppConfigGenerator
78 | | | ... | WITH NAME | ${dut}
79 | | | Run keyword | ${dut}.Add Session Event Queues Memfd Segment
80 | | | Run keyword | ${dut}.Add tcp congestion control algorithm
81 | | | Run keyword | ${dut}.Add session enable
82 | | END
83 | | And Apply startup configuration on all VPP DUTs
84 | | When Initialize layer driver | ${nic_driver}
85 | | And Initialize layer interface
86 | | And Set up LDP or VCL Nginx on DUT node | ${dut1} | ${mode}
87 | | ... | ${rps_cps} | ${phy_cores} | ${qat} | ${tls_tcp}
88 | | And Additional Suite Setup Action For ab
89 | | Then Measure TLS requests or connections per second
90 | | ... | ${ciphers} | ${frame_size} | ${tls_tcp} | ${rps_cps}
91
92 *** Test Cases ***
93 | 0B-1c-eth-ip4tcphttp-ldpreload-nginx-1_15_0-rps
94 | | [Tags] | 0B | 1C
95 | | frame_size=${0} | phy_cores=${1}
96
97 | 0B-2c-eth-ip4tcphttp-ldpreload-nginx-1_15_0-rps
98 | | [Tags] | 0B | 2C
99 | | frame_size=${0} | phy_cores=${2}
100
101 | 64B-1c-eth-ip4tcphttp-ldpreload-nginx-1_15_0-rps
102 | | [Tags] | 64B | 1C
103 | | frame_size=${64} | phy_cores=${1}
104
105 | 64B-2c-eth-ip4tcphttp-ldpreload-nginx-1_15_0-rps
106 | | [Tags] | 64B | 2C
107 | | frame_size=${64} | phy_cores=${2}
108
109 | 1024B-1c-eth-ip4tcphttp-ldpreload-nginx-1_15_0-rps
110 | | [Tags] | 1024B | 1C
111 | | frame_size=${1024} | phy_cores=${1}
112
113 | 1024B-2c-eth-ip4tcphttp-ldpreload-nginx-1_15_0-rps
114 | | [Tags] | 1024B | 2C
115 | | frame_size=${1024} | phy_cores=${2}
116
117 | 2048B-1c-eth-ip4tcphttp-ldpreload-nginx-1_15_0-rps
118 | | [Tags] | 2048B | 1C
119 | | frame_size=${2048} | phy_cores=${1}
120
121 | 2048B-2c-eth-ip4tcphttp-ldpreload-nginx-1_15_0-rps
122 | | [Tags] | 2048B | 2C
123 | | frame_size=${2048} | phy_cores=${2}