Multicore VPP setup for performance testing
[csit.git] / tests / suites / performance / long_bridge_domain.robot
1 # Copyright (c) 2016 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 *** Settings ***
14 | Resource | resources/libraries/robot/performance.robot
15 | Library | resources.libraries.python.NodePath
16 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | PERFTEST_LONG
17 | Suite Setup | 3-node Performance Suite Setup | L2
18 | Suite Teardown | 3-node Performance Suite Teardown
19 | Test Setup | Setup all DUTs before test
20 | Test Teardown | Run Keywords | Show statistics on all DUTs
21 | ...           | AND          | Reset startup configuration of VPP on all DUTs
22 | Documentation | *Throughput search suite (based on RFC2544).*
23
24 *** Test Cases ***
25 | Find NDR by using RFC2544 linear search and 64B frames through bridge domain in 3-node topology
26 | | [Documentation]
27 | | ... | Find throughput with non drop rate for 64B frames by using
28 | | ... | linear search starting at 4.1Mpps, stepping down with step of 0.1Mpps
29 | | [Tags] | 1_THREAD_NOHTT_RSS_1 | SINGLE_THREAD
30 | | # Variables
31 | | ${framesize}= | Set Variable | 64
32 | | ${start_rate}= | Set Variable | 4100000
33 | | ${step_rate}= | Set Variable | 100000
34 | | ${min_rate}= | Set Variable | 100000
35 | | ${max_rate}= | Set Variable | 14880952
36 | | # VPP setup
37 | | Given Setup '1' worker threads and rss '1' without HTT on all DUTs
38 | | AND   L2 bridge domain initialized in a 3-node circular topology
39 | | # Linear search
40 | | Then Find NDR using linear search and pps | ${framesize} | ${start_rate}
41 | | ...                                       | ${step_rate} | 3-node-bridge
42 | | ...                                       | ${min_rate} | ${max_rate}
43
44 | Find NDR by using RFC2544 linear search and 1518B frames through bridge domain in 3-node topology
45 | | [Documentation]
46 | | ... | Find throughput with non drop rate for 1518B frames by using
47 | | ... | linear search starting at 812,743pps, stepping down with step of
48 | | ... | 10,000pps
49 | | [Tags] | 1_THREAD_NOHTT_RSS_1 | SINGLE_THREAD
50 | | # Variables
51 | | ${framesize}= | Set Variable | 1518
52 | | ${start_rate}= | Set Variable | 812743
53 | | ${step_rate}= | Set Variable | 10000
54 | | ${min_rate}= | Set Variable | 10000
55 | | ${max_rate}= | Set Variable | 812743
56 | | # VPP setup
57 | | Given Setup '1' worker threads and rss '1' without HTT on all DUTs
58 | | AND   L2 bridge domain initialized in a 3-node circular topology
59 | | # Linear search
60 | | Then Find NDR using linear search and pps | ${framesize} | ${start_rate}
61 | | ...                                       | ${step_rate} | 3-node-bridge
62 | | ...                                       | ${min_rate} | ${max_rate}
63
64 | Find NDR by using RFC2544 linear search and 9000B frames through bridge domain in 3-node topology
65 | | [Documentation]
66 | | ... | Find throughput with non drop rate for 9000B frames by using
67 | | ... | linear search starting at 138,580pps, stepping down with step of
68 | | ... | 5,000pps
69 | | [Tags] | 1_THREAD_NOHTT_RSS_1 | SINGLE_THREAD
70 | | # Variables
71 | | ${framesize}= | Set Variable | 9000
72 | | ${start_rate}= | Set Variable | 138580
73 | | ${step_rate}= | Set Variable | 5000
74 | | ${min_rate}= | Set Variable | 5000
75 | | ${max_rate}= | Set Variable | 138580
76 | | # VPP setup
77 | | Given Setup '1' worker threads and rss '1' without HTT on all DUTs
78 | | AND   L2 bridge domain initialized in a 3-node circular topology
79 | | # Linear search
80 | | Then Find NDR using linear search and pps | ${framesize} | ${start_rate}
81 | | ...                                       | ${step_rate} | 3-node-bridge
82 | | ...                                       | ${min_rate} | ${max_rate}
83
84 | Find NDR with 2 cores and rss 1 by using RFC2544 linear search and 64B frames through bridge domain in 3-node topology
85 | | [Documentation]
86 | | ... | Find throughput on 2 cores with non drop rate for 64B frames by using
87 | | ... | linear search starting at 8.2Mpps, stepping down with step of 0.1Mpps
88 | | [Tags] | 2_THREAD_NOHTT_RSS_1 | MULTI_THREAD
89 | | # Variables
90 | | ${framesize}= | Set Variable | 64
91 | | ${start_rate}= | Set Variable | 8200000
92 | | ${step_rate}= | Set Variable | 100000
93 | | ${min_rate}= | Set Variable | 100000
94 | | ${max_rate}= | Set Variable | 14880952
95 | | # VPP setup
96 | | Given Setup '2' worker threads and rss '1' without HTT on all DUTs
97 | | AND   L2 bridge domain initialized in a 3-node circular topology
98 | | # Linear search
99 | | Then Find NDR using linear search and pps | ${framesize} | ${start_rate}
100 | | ...                                       | ${step_rate} | 3-node-bridge
101 | | ...                                       | ${min_rate} | ${max_rate}
102
103 | Find NDR with 4 cores and rss 2 by using RFC2544 linear search and 64B frames through bridge domain in 3-node topology
104 | | [Documentation]
105 | | ... | Find throughput on 4 cores and rss 2 with non drop rate for 64B
106 | | ... | frames by using linear search starting at 9.8Mpps, stepping down
107 | | ... | with step of 0.1Mpps
108 | | [Tags] | 4_THREAD_NOHTT_RSS_2 | MULTI_THREAD
109 | | # Variables
110 | | ${framesize}= | Set Variable | 64
111 | | ${start_rate}= | Set Variable | 9800000
112 | | ${step_rate}= | Set Variable | 100000
113 | | ${min_rate}= | Set Variable | 100000
114 | | ${max_rate}= | Set Variable | 14880952
115 | | # VPP setup
116 | | Given Setup '4' worker threads and rss '2' without HTT on all DUTs
117 | | AND   L2 bridge domain initialized in a 3-node circular topology
118 | | # Linear search
119 | | Then Find NDR using linear search and pps | ${framesize} | ${start_rate}
120 | | ...                                       | ${step_rate} | 3-node-bridge
121 | | ...                                       | ${min_rate} | ${max_rate}
122