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