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