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:
6 # http://www.apache.org/licenses/LICENSE-2.0
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.
15 | Resource | resources/libraries/robot/shared/default.robot
16 | Resource | resources/libraries/robot/hoststack/hoststack.robot
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
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
27 | Test Template | Local Template
29 | Documentation | *TCP requests per seconds.*
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:*
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
51 | ${r_total}= | ${1000000}
52 | ${c_total}= | ${2000}
53 | ${listen_port}= | ${80}
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
65 | | [Arguments] | ${frame_size} | ${phy_cores} | ${rxq}=${None}
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
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}
91 | 0B-1c-eth-ip4tcphttp-ldpreload-nginx-1.14.2-rps
93 | | frame_size=${0} | phy_cores=${1}
95 | 0B-2c-eth-ip4tcphttp-ldpreload-nginx-1.14.2-rps
97 | | frame_size=${0} | phy_cores=${2}
99 | 64B-1c-eth-ip4tcphttp-ldpreload-nginx-1.14.2-rps
100 | | [Tags] | 64B | 1C
101 | | frame_size=${64} | phy_cores=${1}
103 | 64B-2c-eth-ip4tcphttp-ldpreload-nginx-1.14.2-rps
104 | | [Tags] | 64B | 2C
105 | | frame_size=${64} | phy_cores=${2}
107 | 1024B-1c-eth-ip4tcphttp-ldpreload-nginx-1.14.2-rps
108 | | [Tags] | 1024B | 1C
109 | | frame_size=${1024} | phy_cores=${1}
111 | 1024B-2c-eth-ip4tcphttp-ldpreload-nginx-1.14.2-rps
112 | | [Tags] | 1024B | 2C
113 | | frame_size=${1024} | phy_cores=${2}
115 | 2048B-1c-eth-ip4tcphttp-ldpreload-nginx-1.14.2-rps
116 | | [Tags] | 2048B | 1C
117 | | frame_size=${2048} | phy_cores=${1}
119 | 2048B-2c-eth-ip4tcphttp-ldpreload-nginx-1.14.2-rps
120 | | [Tags] | 2048B | 2C
121 | | frame_size=${2048} | phy_cores=${2}