f17b2f8a709a93dd5f5631e489fbd6b81b356a33
[csit.git] / tests / suites / performance / Short_IPv4_Cop_Intel-X520-DA2.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
14 *** Settings ***
15 | Resource | resources/libraries/robot/performance.robot
16 | Library | resources.libraries.python.Cop
17 | Library | resources.libraries.python.IPv4Setup.Dut | ${nodes['DUT1']} | WITH NAME | dut1_v4
18 | Library | resources.libraries.python.IPv4Setup.Dut | ${nodes['DUT2']} | WITH NAME | dut2_v4
19 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | PERFTEST_SHORT
20 | ...        | NIC_Intel-X520-DA2
21 | Suite Setup | 3-node Performance Suite Setup with DUT's NIC model
22 | ... | L3 | Intel-X520-DA2
23 | Suite Teardown | 3-node Performance Suite Teardown
24 | Test Setup | Setup all DUTs before test
25 | Test Teardown | Run Keyword | Remove startup configuration of VPP from all DUTs
26 | Documentation | Minimal throughput acceptance test cases
27
28 *** Test Cases ***
29 | 1core VPP passes 64B frames through IPv4 forwarding with COP at 2x 3.5Mpps in 3-node topology
30 | | [Documentation]
31 | | ... | VPP with 1 core should pass 64B frames through IPv4 forwarding
32 | | ... | at 2x 3.5Mpps in 3-node topology
33 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD
34 | | ${framesize}= | Set Variable | 64
35 | | ${duration}= | Set Variable | 10
36 | | ${rate}= | Set Variable | 3.5mpps
37 | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs
38 | | And   Add all PCI devices to all DUTs
39 | | And   Add No Multi Seg to all DUTs
40 | | And   Apply startup configuration on all VPP DUTs
41 | | When  IPv4 forwarding initialized in a 3-node circular topology
42 | | And   Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
43 | | And   Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
44 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
45 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
46 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
47 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
48 | | Then  Traffic should pass with no loss | ${duration} | ${rate}
49 | | ...                                    | ${framesize} | 3-node-IPv4
50
51 | 1core VPP passes 1518B frames through IPv4 forwarding with COP at 2x 812,743pps in 3-node topology
52 | | [Documentation]
53 | | ... | VPP with 1 core should pass 1518B frames through IPv4 forwarding
54 | | ... | at 2x 812,743pps (2x 10Gbps) in 3-node topology with COP.
55 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD
56 | | ${framesize}= | Set Variable | 1518
57 | | ${duration}= | Set Variable | 10
58 | | ${rate}= | Set Variable | 812743pps
59 | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs
60 | | And   Add all PCI devices to all DUTs
61 | | And   Add No Multi Seg to all DUTs
62 | | And   Apply startup configuration on all VPP DUTs
63 | | When  IPv4 forwarding initialized in a 3-node circular topology
64 | | And   Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
65 | | And   Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
66 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
67 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
68 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
69 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
70 | | Then  Traffic should pass with no loss | ${duration} | ${rate}
71 | | ...                                    | ${framesize} | 3-node-IPv4
72
73 | 1core VPP passes 9000B frames through IPv4 forwarding with COP at 2x 138,580pps in 3-node topology
74 | | [Documentation]
75 | | ... | VPP with 1 core should pass 9000B frames through IPv4 forwarding
76 | | ... | at 2x 138,580pps (2x 10Gbps) in 3-node topology with COP.
77 | | [Tags] | 1_THREAD_NOHTT_RXQUEUES_1 | SINGLE_THREAD
78 | | ${framesize}= | Set Variable | 9000
79 | | ${duration}= | Set Variable | 10
80 | | ${rate}= | Set Variable | 138580pps
81 | | Given Add '1' worker threads and rxqueues '1' without HTT to all DUTs
82 | | And   Add all PCI devices to all DUTs
83 | | And   Apply startup configuration on all VPP DUTs
84 | | When  IPv4 forwarding initialized in a 3-node circular topology
85 | | And   Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
86 | | And   Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
87 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
88 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
89 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
90 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
91 | | Then Traffic should pass with no loss | ${duration} | ${rate}
92 | | ...                                   | ${framesize} | 3-node-IPv4
93
94 | 2core VPP with rxqueues 1 passes 64B frames through IPv4 forwarding with COP at 2x 7.5Mpps in 3-node topology
95 | | [Documentation]
96 | | ... | VPP with 2 cores should pass 64B frames through IPv4 forwarding
97 | | ... | at 2x 7.5Mpps (2x 10Gbps) in 3-node topology with COP.
98 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD
99 | | ${framesize}= | Set Variable | 64
100 | | ${duration}= | Set Variable | 10
101 | | ${rate}= | Set Variable | 7.5mpps
102 | | Given Add '2' worker threads and rxqueues '1' without HTT to all DUTs
103 | | And   Add all PCI devices to all DUTs
104 | | And   Add No Multi Seg to all DUTs
105 | | And   Apply startup configuration on all VPP DUTs
106 | | When  IPv4 forwarding initialized in a 3-node circular topology
107 | | And   Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
108 | | And   Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
109 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
110 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
111 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
112 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
113 | | Then Traffic should pass with no loss | ${duration} | ${rate}
114 | | ...                                   | ${framesize} | 3-node-IPv4
115
116 | 2core VPP with rxqueues 1 passes 1518B frames through IPv4 forwarding with COP at 2x 812,743pps in 3-node topology
117 | | [Documentation]
118 | | ... | VPP with 2 cores should pass 1518B frames through IPv4 forwarding
119 | | ... | at 2x 812,743pps (2x 10Gbps) in 3-node topology with COP.
120 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD
121 | | ${framesize}= | Set Variable | 1518
122 | | ${duration}= | Set Variable | 10
123 | | ${rate}= | Set Variable | 812743pps
124 | | Given Add '2' worker threads and rxqueues '1' without HTT to all DUTs
125 | | And   Add all PCI devices to all DUTs
126 | | And   Add No Multi Seg to all DUTs
127 | | And   Apply startup configuration on all VPP DUTs
128 | | When  IPv4 forwarding initialized in a 3-node circular topology
129 | | And   Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
130 | | And   Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
131 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
132 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
133 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
134 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
135 | | Then Traffic should pass with no loss | ${duration} | ${rate}
136 | | ...                                   | ${framesize} | 3-node-IPv4
137
138 | 2core VPP with rxqueues 1 passes 9000B frames through IPv4 forwarding with COP at 2x 138,580pps in 3-node topology
139 | | [Documentation]
140 | | ... | VPP with 2 cores should pass 9000B frames through IPv4 forwarding
141 | | ... | at 2x 138,580pps (2x 10Gbps) in 3-node topology with COP.
142 | | [Tags] | 2_THREAD_NOHTT_RXQUEUES_1 | MULTI_THREAD
143 | | ${framesize}= | Set Variable | 9000
144 | | ${duration}= | Set Variable | 10
145 | | ${rate}= | Set Variable | 138580pps
146 | | Given Add '2' worker threads and rxqueues '1' without HTT to all DUTs
147 | | And   Add all PCI devices to all DUTs
148 | | And   Apply startup configuration on all VPP DUTs
149 | | When  IPv4 forwarding initialized in a 3-node circular topology
150 | | And   Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
151 | | And   Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
152 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
153 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
154 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
155 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
156 | | Then Traffic should pass with no loss | ${duration} | ${rate}
157 | | ...                                   | ${framesize} | 3-node-IPv4
158
159 | 4core VPP with rxqueues 2 passes 64B frames through IPv4 forwarding with COP at 2x 7.8Mpps in 3-node topology
160 | | [Documentation]
161 | | ... | VPP with 4 cores and rxqueues 2 should pass 64B frames through IPv4
162 | | ... | forwarding at 2x 7.8Mpps in 3-node topology with COP.
163 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD
164 | | ${framesize}= | Set Variable | 64
165 | | ${duration}= | Set Variable | 10
166 | | ${rate}= | Set Variable | 7.8mpps
167 | | Given Add '4' worker threads and rxqueues '2' without HTT to all DUTs
168 | | And   Add all PCI devices to all DUTs
169 | | And   Add No Multi Seg to all DUTs
170 | | And   Apply startup configuration on all VPP DUTs
171 | | When  IPv4 forwarding initialized in a 3-node circular topology
172 | | And   Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
173 | | And   Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
174 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
175 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
176 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
177 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
178 | | Then Traffic should pass with no loss | ${duration} | ${rate}
179 | | ...                                   | ${framesize} | 3-node-IPv4
180
181 | 4core VPP with rxqueues 2 passes 1518B frames through IPv4 forwarding with COP at 2x 812,743pps in 3-node topology
182 | | [Documentation]
183 | | ... | VPP with 4 cores and rxqueues 2 should pass 1518B frames through IPv4
184 | | ... | forwarding at 2x 812,743pps (2x 10Gbps) in 3-node topology with COP.
185 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD
186 | | ${framesize}= | Set Variable | 1518
187 | | ${duration}= | Set Variable | 10
188 | | ${rate}= | Set Variable | 812743pps
189 | | Given Add '4' worker threads and rxqueues '2' without HTT to all DUTs
190 | | And   Add all PCI devices to all DUTs
191 | | And   Add No Multi Seg to all DUTs
192 | | And   Apply startup configuration on all VPP DUTs
193 | | When  IPv4 forwarding initialized in a 3-node circular topology
194 | | And   Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
195 | | And   Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
196 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
197 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
198 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
199 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
200 | | Then Traffic should pass with no loss | ${duration} | ${rate}
201 | | ...                                   | ${framesize} | 3-node-IPv4
202
203 | 4core VPP with rxqueues 2 passes 9000B frames through IPv4 forwarding with COP at 2x 138,580pps in 3-node topology
204 | | [Documentation]
205 | | ... | VPP with 4 cores and rxqueues 2 should pass 9000B frames through IPv4
206 | | ... | forwarding at 2x 138,580pps (2x 10Gbps) in 3-node topology with COP.
207 | | [Tags] | 4_THREAD_NOHTT_RXQUEUES_2 | MULTI_THREAD
208 | | ${framesize}= | Set Variable | 9000
209 | | ${duration}= | Set Variable | 10
210 | | ${rate}= | Set Variable | 138580pps
211 | | Given Add '4' worker threads and rxqueues '2' without HTT to all DUTs
212 | | And   Add all PCI devices to all DUTs
213 | | And   Apply startup configuration on all VPP DUTs
214 | | When  IPv4 forwarding initialized in a 3-node circular topology
215 | | And   Add fib table | ${dut1} | 10.10.10.0 | 24 | 1 | local
216 | | And   Add fib table | ${dut2} | 20.20.20.0 | 24 | 1 | local
217 | | And   COP Add whitelist Entry | ${dut1} | ${dut1_if1} | ip4 | 1
218 | | And   COP Add whitelist Entry | ${dut2} | ${dut2_if2} | ip4 | 1
219 | | And   COP interface enable or disable | ${dut1} | ${dut1_if1} | enable
220 | | And   COP interface enable or disable | ${dut2} | ${dut2_if2} | enable
221 | | Then Traffic should pass with no loss | ${duration} | ${rate}
222 | | ...                                   | ${framesize} | 3-node-IPv4