c995a586af570a1f7e409bfbf9e46b4285918f6f
[csit.git] / tests / vpp / perf / tcp / 10ge2p1x520-ethip4tcphttp-httpserver.robot
1 # Copyright (c) 2018 Cisco 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
16 | Library  | resources.tools.wrk.wrk
17 | Resource | resources/libraries/robot/wrk/wrk_utils.robot
18 | Resource | resources/libraries/robot/shared/default.robot
19 | Resource | resources/libraries/robot/tcp/tcp_setup.robot
20 | ...
21 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | HTTP | TCP
22 | ...
23 | Suite Setup | Setup suite single link | wrk
24 | Suite Teardown | Tear down suite
25 | Test Setup | Setup test
26 | Test Teardown | Tear down test
27 | ...
28 | Test Template | Local template
29 | ...
30 | Documentation | *HTTP requests per seconds, connections per seconds and
31 | ... | throughput measurement.*
32 | ...
33 | ... | *[Top] Network Topologies:* TG-DUT-TG 2-node topology
34 | ... | with single link between nodes.
35 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4 for IPv4 routing.
36 | ... | *[Cfg] DUT configuration:*
37 | ... | *[Ver] TG verification:*
38 | ... | *[Ref] Applicable standard specifications:*
39
40 *** Variables ***
41 | @{plugins_to_enable}= | dpdk_plugin.so
42
43 *** Keywords ***
44 | Local template
45 | | [Arguments] | ${traffic_profile} | ${phy_cores} | ${test_type}
46 | | ... | ${rxq}=${None}
47 | | ...
48 | | Add worker threads and rxqueues to all DUTs | ${phy_cores} | ${rxq}
49 | | Add PCI devices to all DUTs
50 | | ${duts}= | Get Matches | ${nodes} | DUT*
51 | | :FOR | ${dut} | IN | @{duts}
52 | | | Import Library | resources.libraries.python.VppConfigGenerator
53 | | | ... | WITH NAME | ${dut}
54 | | | Run keyword | ${dut}.Add api segment global size | 2G
55 | | | Run keyword | ${dut}.Add api segment api size | 1G
56 | | | Run keyword | ${dut}.Add TCP preallocated connections | 1000000
57 | | | Run keyword | ${dut}.Add TCP preallocated half open connections | 1000000
58 | | | Run keyword | ${dut}.Add session event queue length | 1000000
59 | | | Run keyword | ${dut}.Add session preallocated sessions | 1000000
60 | | | Run keyword | ${dut}.Add session v4 session table buckets | 500000
61 | | | Run keyword | ${dut}.Add session v4 session table memory | 1g
62 | | | Run keyword | ${dut}.Add session v4 halfopen table buckets | 2500000
63 | | | Run keyword | ${dut}.Add session v4 halfopen table memory | 3g
64 | | | Run keyword | ${dut}.Add session local endpoints table buckets | 2500000
65 | | | Run keyword | ${dut}.Add session local endpoints table memory | 3g
66 | | Apply startup configuration on all VPP DUTs
67 | | Run Keyword If | '${test_type}' == 'bw'
68 | | ... | Run keywords
69 | | ... | Set up HTTP server with paramters on the VPP node
70 | | ... | 500000 | 4 | 4000m | AND
71 | | ... | Measure throughput | ${traffic_profile}
72 | | ... | ELSE IF | '${test_type}' == 'rps'
73 | | ... | Run keywords
74 | | ... | Set up HTTP server with paramters on the VPP node
75 | | ... | 500000 | 4 | 4000m | AND
76 | | ... | Measure requests per second | ${traffic_profile}
77 | | ... | ELSE IF | '${test_type}' == 'cps'
78 | | ... | Run keywords
79 | | ... | Set up HTTP server with paramters on the VPP node
80 | | ... | 31000 | 64 | 4000m | AND
81 | | ... | Measure connections per second | ${traffic_profile}
82
83 *** Test Cases ***
84 | tc01-1t1c-ethip4tcphttp-httpserver-cps
85 | | [Documentation]
86 | | ... | Measure number of connections per second using wrk.
87 | | ...
88 | | [Tags] | 1C | TCP_CPS
89 | | traffic_profile=wrk-sf-2n-ethip4tcphttp-8u8c50con-cps | phy_cores=${1}
90 | | ... | test_type=cps
91
92 | tc02-2t2c-ethip4tcphttp-httpserver-cps
93 | | [Documentation]
94 | | ... | Measure number of connections per second using wrk.
95 | | ...
96 | | [Tags] | 2C | TCP_CPS
97 | | traffic_profile=wrk-sf-2n-ethip4tcphttp-8u8c50con-cps | phy_cores=${2}
98 | | ... | test_type=cps
99
100 | tc03-4t4c-ethip4tcphttp-httpserver-cps
101 | | [Documentation]
102 | | ... | Measure number of connections per second using wrk.
103 | | ...
104 | | [Tags] | 4C | TCP_CPS
105 | | traffic_profile=wrk-sf-2n-ethip4tcphttp-8u8c50con-cps | phy_cores=${4}
106 | | ... | test_type=cps
107
108 | tc04-1t1c-ethip4tcphttp-httpserver-rps
109 | | [Documentation]
110 | | ... | Measure and report number of requests per second using wrk.
111 | | ...
112 | | [Tags] | 1C | TCP_RPS
113 | | traffic_profile=wrk-sf-2n-ethip4tcphttp-8u8c50con-rps | phy_cores=${1}
114 | | ... | test_type=rps
115
116 | tc05-2t2c-ethip4tcphttp-httpserver-rps
117 | | [Documentation]
118 | | ... | Measure and report number of requests per second using wrk.
119 | | ...
120 | | [Tags] | 2C | TCP_RPS
121 | | traffic_profile=wrk-sf-2n-ethip4tcphttp-8u8c50con-rps | phy_cores=${2}
122 | | ... | test_type=rps
123
124 | tc06-4t4c-ethip4tcphttp-httpserver-rps
125 | | [Documentation]
126 | | ... | Measure and report number of requests per second using wrk.
127 | | ...
128 | | [Tags] | 4C | TCP_RPS
129 | | traffic_profile=wrk-sf-2n-ethip4tcphttp-8u8c50con-rps | phy_cores=${4}
130 | | ... | test_type=rps