867c3177d5c4217a559acb9a649aa4b74f8caf97
[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/performance/performance_setup.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 | Set up 3-node performance topology with wrk and DUT's NIC model
24 | ... | Intel-XL710
25 | ...
26 | Test Setup | Set up performance test
27 | Test Teardown | Tear down performance test with wrk
28 | ...
29 | Documentation | *HTTP requests per seconds, connections per seconds and
30 | ... | throughput measurement.*
31 | ...
32 | ... | *[Top] Network Topologies:* TG-DUT-TG 2-node topology
33 | ... | with single link between nodes.
34 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4 for IPv4 routing.
35 | ... | *[Cfg] DUT configuration:*
36 | ... | *[Ver] TG verification:*
37 | ... | *[Ref] Applicable standard specifications:*
38
39 *** Keywords ***
40 | Measure throughput or rps or cps
41 | | [Arguments] | ${traffic_profile} | ${wt} | ${rxq} | ${test_type}
42 | | ...
43 | | Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
44 | | Add PCI devices to DUTs in 3-node single link topology
45 | | ${duts}= | Get Matches | ${nodes} | DUT*
46 | | :FOR | ${dut} | IN | @{duts}
47 | | | Import Library | resources.libraries.python.VppConfigGenerator
48 | | | ... | WITH NAME | ${dut}
49 | | | Run keyword | ${dut}.Add TCP preallocated connections | 1000000
50 | | | Run keyword | ${dut}.Add TCP preallocated half open connections | 1000000
51 | | | Run keyword | ${dut}.Add session event queue length | 1000000
52 | | | Run keyword | ${dut}.Add session preallocated sessions | 1000000
53 | | | Run keyword | ${dut}.Add session v4 session table buckets | 500000
54 | | | Run keyword | ${dut}.Add session v4 session table memory | 1g
55 | | | Run keyword | ${dut}.Add session v4 halfopen table buckets | 2500000
56 | | | Run keyword | ${dut}.Add session v4 halfopen table memory | 3g
57 | | | Run keyword | ${dut}.Add session local endpoints table buckets | 2500000
58 | | | Run keyword | ${dut}.Add session local endpoints table memory | 3g
59 | | Apply startup configuration on all VPP DUTs
60 | | Set up HTTP server on the VPP node | 192.168.10.2 | 24
61 | | Run Keyword If | '${test_type}' == 'bw'
62 | | ... | Measure throughput | ${traffic_profile}
63 | | ... | ELSE IF | '${test_type}' == 'rps'
64 | | ... | Measure requests per second | ${traffic_profile}
65 | | ... | ELSE IF | '${test_type}' == 'cps'
66 | | ... | Measure connections per second | ${traffic_profile}
67
68 *** Test Cases ***
69 | tc01-1t1c-ethip4tcphttp-httpserver-cps
70 | | [Documentation]
71 | | ... | Measure number of connections per second using wrk.
72 | | ...
73 | | [Tags] | 1T1C | TCP_CPS
74 | | ...
75 | | [Template] | Measure throughput or rps or cps
76 | | traffic_profile=wrk-sf-2n-ethip4tcphttp-1u1c1con-cps | wt=1 | rxq=1
77 | | ... | test_type=cps
78
79 | tc02-2t2c-ethip4tcphttp-httpserver-cps
80 | | [Documentation]
81 | | ... | Measure number of connections per second using wrk.
82 | | ...
83 | | [Tags] | 2T2C | TCP_CPS
84 | | ...
85 | | [Template] | Measure throughput or rps or cps
86 | | traffic_profile=wrk-sf-2n-ethip4tcphttp-1u1c1con-cps | wt=2 | rxq=1
87 | | ... | test_type=cps
88
89 | tc03-4t4c-ethip4tcphttp-httpserver-cps
90 | | [Documentation]
91 | | ... | Measure number of connections per second using wrk.
92 | | ...
93 | | [Tags] | 4T4C | TCP_CPS
94 | | ...
95 | | [Template] | Measure throughput or rps or cps
96 | | traffic_profile=wrk-sf-2n-ethip4tcphttp-1u1c1con-cps | wt=4 | rxq=2
97 | | ... | test_type=cps
98
99 | tc04-1t1c-ethip4tcphttp-httpserver-rps
100 | | [Documentation]
101 | | ... | Measure and report number of requests per second using wrk.
102 | | ...
103 | | [Tags] | 1T1C | TCP_RPS
104 | | ...
105 | | [Template] | Measure throughput or rps or cps
106 | | traffic_profile=wrk-sf-2n-ethip4tcphttp-1u1c50con-rps | wt=1 | rxq=1
107 | | ... | test_type=rps
108
109 | tc05-2t2c-ethip4tcphttp-httpserver-rps
110 | | [Documentation]
111 | | ... | Measure and report number of requests per second using wrk.
112 | | ...
113 | | [Tags] | 2T2C | TCP_RPS
114 | | ...
115 | | [Template] | Measure throughput or rps or cps
116 | | traffic_profile=wrk-sf-2n-ethip4tcphttp-1u1c50con-rps | wt=2 | rxq=1
117 | | ... | test_type=rps
118
119 | tc06-4t4c-ethip4tcphttp-httpserver-rps
120 | | [Documentation]
121 | | ... | Measure and report number of requests per second using wrk.
122 | | ...
123 | | [Tags] | 4T4C | TCP_RPS
124 | | ...
125 | | [Template] | Measure throughput or rps or cps
126 | | traffic_profile=wrk-sf-2n-ethip4tcphttp-1u1c50con-rps | wt=4 | rxq=2
127 | | ... | test_type=rps