fab92e6b54790a7fe12a41b68dfe6e4d1c8c428a
[csit.git] / tests / suites / performance / long_xconnect.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.InterfaceUtil
16 | Library | resources.libraries.python.NodePath
17 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | PERFTEST_LONG
18 | Suite Setup | 3-node Performance Suite Setup | L2
19 | Suite Teardown | 3-node Performance Suite Teardown
20 | Test Setup | Setup all DUTs before test
21 | Test Teardown | Run Keywords | Show statistics on all DUTs
22 | ...           | AND          | Reset startup configuration of VPP on all DUTs
23 | Documentation | *Throughput search suite (based on RFC2544).*
24 | ...
25 | ... | Test suite uses 3-node topology TG - DUT1 - DUT2 - TG, with one link
26 | ... | between nodes. Traffic profile contain 2 L2 streams (1 stream per
27 | ... | direction). Packets contain Ethernet header, IPv4 header,
28 | ... | IP protocol=61 and random payload. Ethernet header MAC addresses are
29 | ... | matching MAC addresses of the TG node.
30
31 *** Test Cases ***
32 | Find NDR by using RFC2544 linear search and 64B frames through L2 cross connect in 3-node topology
33 | | [Documentation]
34 | | ... | Find throughput with non drop rate for 64B frames by using
35 | | ... | linear search starting at 5Mpps, stepping down with step of 0.1Mpps
36 | | [Tags] | 1_THREAD_NOHTT_RSS_1 | SINGLE_THREAD
37 | | # Variables
38 | | ${framesize}= | Set Variable | 64
39 | | ${start_rate}= | Set Variable | 4800000
40 | | ${step_rate}= | Set Variable | 100000
41 | | ${min_rate}= | Set Variable | 100000
42 | | ${max_rate}= | Set Variable | 14880952
43 | | Given Setup '1' worker threads and rss '1' without HTT on all DUTs
44 | | AND   L2 xconnect initialized in a 3-node circular topology
45 | | # Linear search
46 | | Then Find NDR using linear search and pps | ${framesize} | ${start_rate}
47 | | ...                                       | ${step_rate} | 3-node-xconnect
48 | | ...                                       | ${min_rate} | ${max_rate}
49
50 | Find NDR by using RFC2544 linear search and 1518B frames through L2 cross connect in 3-node topology
51 | | [Documentation]
52 | | ... | Find throughput with non drop rate for 1518B frames by using
53 | | ... | linear search starting at 812,743pps, stepping down with step of 10,000pps
54 | | [Tags] | 1_THREAD_NOHTT_RSS_1 | SINGLE_THREAD
55 | | # Variables
56 | | ${framesize}= | Set Variable | 1518
57 | | ${start_rate}= | Set Variable | 812743
58 | | ${step_rate}= | Set Variable | 10000
59 | | ${min_rate}= | Set Variable | 10000
60 | | ${max_rate}= | Set Variable | 812743
61 | | # VPP setup
62 | | Given Setup '1' worker threads and rss '1' without HTT on all DUTs
63 | | AND   L2 xconnect initialized in a 3-node circular topology
64 | | # Linear search
65 | | Then Find NDR using linear search and pps | ${framesize} | ${start_rate}
66 | | ...                                       | ${step_rate} | 3-node-xconnect
67 | | ...                                       | ${min_rate} | ${max_rate}
68
69 | Find NDR by using RFC2544 linear search and 9000B frames through L2 cross connect in 3-node topology
70 | | [Documentation]
71 | | ... | Find throughput with non drop rate for 9000B frames by using
72 | | ... | linear search starting at 138,580pps, stepping down with step 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   L2 xconnect 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-xconnect
86 | | ...                                       | ${min_rate} | ${max_rate}
87
88 | Find NDR with 2 cores and rss 1 by using RFC2544 linear search and 64B frames through L2 cross connect 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.2Mpps, 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 | 12000000
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   L2 xconnect 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-xconnect
105 | | ...                                       | ${min_rate} | ${max_rate}
106
107 | Find NDR with 4 cores and rss 2 by using RFC2544 linear search and 64B frames through L2 cross connect in 3-node topology
108 | | [Documentation]
109 | | ... | Find throughput on 4 cores and rss 2 with non drop rate for 64B
110 | | ... | frames by using linear search starting at 8.2Mpps, stepping down
111 | | ... | with step of 0.1Mpps
112 | | [Tags] | 4_THREAD_NOHTT_RSS_2 | MULTI_THREAD
113 | | # Variables
114 | | ${framesize}= | Set Variable | 64
115 | | ${start_rate}= | Set Variable | 12200000
116 | | ${step_rate}= | Set Variable | 100000
117 | | ${min_rate}= | Set Variable | 100000
118 | | ${max_rate}= | Set Variable | 14880952
119 | | # VPP setup
120 | | Given Setup '4' worker threads and rss '2' without HTT on all DUTs
121 | | AND   L2 xconnect initialized in a 3-node circular topology
122 | | # Linear search
123 | | Then Find NDR using linear search and pps | ${framesize} | ${start_rate}
124 | | ...                                       | ${step_rate} | 3-node-xconnect
125 | | ...                                       | ${min_rate} | ${max_rate}
126