CSIT-1041: Trending dashboard
[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 | | Run Keyword If | '${test_type}' == 'bw'
61 | | ... | Run keywords
62 | | ... | Set up HTTP server with paramters on the VPP node
63 | | ... | 500000 | 4 | 4000m | AND
64 | | ... | Measure throughput | ${traffic_profile}
65 | | ... | ELSE IF | '${test_type}' == 'rps'
66 | | ... | Run keywords
67 | | ... | Set up HTTP server with paramters on the VPP node
68 | | ... | 500000 | 4 | 4000m | AND
69 | | ... | Measure requests per second | ${traffic_profile}
70 | | ... | ELSE IF | '${test_type}' == 'cps'
71 | | ... | Run keywords
72 | | ... | Set up HTTP server with paramters on the VPP node
73 | | ... | 10000 | 64 | 4000m | AND
74 | | ... | Measure connections per second | ${traffic_profile}
75
76 *** Test Cases ***
77 | tc01-1t1c-ethip4tcphttp-httpserver-cps
78 | | [Documentation]
79 | | ... | Measure number of connections per second using wrk.
80 | | ...
81 | | [Tags] | 1T1C | TCP_CPS
82 | | ...
83 | | [Template] | Measure throughput or rps or cps
84 | | traffic_profile=wrk-sf-2n-ethip4tcphttp-8u8c50con-cps | wt=1 | rxq=1
85 | | ... | test_type=cps
86
87 | tc02-2t2c-ethip4tcphttp-httpserver-cps
88 | | [Documentation]
89 | | ... | Measure number of connections per second using wrk.
90 | | ...
91 | | [Tags] | 2T2C | TCP_CPS
92 | | ...
93 | | [Template] | Measure throughput or rps or cps
94 | | traffic_profile=wrk-sf-2n-ethip4tcphttp-8u8c50con-cps | wt=2 | rxq=2
95 | | ... | test_type=cps
96
97 | tc03-4t4c-ethip4tcphttp-httpserver-cps
98 | | [Documentation]
99 | | ... | Measure number of connections per second using wrk.
100 | | ...
101 | | [Tags] | 4T4C | TCP_CPS
102 | | ...
103 | | [Template] | Measure throughput or rps or cps
104 | | traffic_profile=wrk-sf-2n-ethip4tcphttp-8u8c50con-cps | wt=4 | rxq=4
105 | | ... | test_type=cps
106
107 | tc04-1t1c-ethip4tcphttp-httpserver-rps
108 | | [Documentation]
109 | | ... | Measure and report number of requests per second using wrk.
110 | | ...
111 | | [Tags] | 1T1C | TCP_RPS
112 | | ...
113 | | [Template] | Measure throughput or rps or cps
114 | | traffic_profile=wrk-sf-2n-ethip4tcphttp-8u8c50con-rps | wt=1 | rxq=1
115 | | ... | test_type=rps
116
117 | tc05-2t2c-ethip4tcphttp-httpserver-rps
118 | | [Documentation]
119 | | ... | Measure and report number of requests per second using wrk.
120 | | ...
121 | | [Tags] | 2T2C | TCP_RPS
122 | | ...
123 | | [Template] | Measure throughput or rps or cps
124 | | traffic_profile=wrk-sf-2n-ethip4tcphttp-8u8c50con-rps | wt=2 | rxq=2
125 | | ... | test_type=rps
126
127 | tc06-4t4c-ethip4tcphttp-httpserver-rps
128 | | [Documentation]
129 | | ... | Measure and report number of requests per second using wrk.
130 | | ...
131 | | [Tags] | 4T4C | TCP_RPS
132 | | ...
133 | | [Template] | Measure throughput or rps or cps
134 | | traffic_profile=wrk-sf-2n-ethip4tcphttp-8u8c50con-rps | wt=4 | rxq=4
135 | | ... | test_type=rps