CSIT-604: Bootstrap file for vpp-csit-verify-master-centos7-nightly
[csit.git] / tests / perf / 10ge2p1x520-ethip4-ip4base-eth-2vhost-1vm-ndrpdrdisc.robot
1 # Copyright (c) 2017 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_setup.robot
16 | Library | resources.libraries.python.QemuUtils
17 | ...
18 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDRDISC
19 | ... | NIC_Intel-X520-DA2 | ETH | IP4FWD | BASE | VHOST | VM
20 | ...
21 | Suite Setup | Set up 3-node performance topology with DUT's NIC model
22 | ... | L3 | Intel-X520-DA2
23 | Suite Teardown | Tear down 3-node performance topology
24 | ...
25 | Test Setup | Set up performance test
26 | Test Teardown | Tear down performance test with vhost and VM with dpdk-testpmd
27 | ... | ${min_rate}pps | ${framesize} | ${traffic_profile}
28 | ... | dut1_node=${dut1} | dut1_vm_refs=${dut1_vm_refs}
29 | ... | dut2_node=${dut2} | dut2_vm_refs=${dut2_vm_refs}
30 | ...
31 | Documentation | *RFC2544: Pkt throughput IPv4 test cases with vhost*
32 | ...
33 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology
34 | ... | with single links between nodes.
35 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4 for IPv4 routing.
36 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with IPv4
37 | ... | routing and two static IPv4 /24 route entries. Qemu Guest is connected
38 | ... | to VPP via vhost-user interfaces. Guest is running DPDK testpmd
39 | ... | interconnecting vhost-user interfaces using 5 cores pinned to cpus 5-9
40 | ... | and 2048M memory. Testpmd is using socket-mem=1024M (512x2M hugepages),
41 | ... | 5 cores (1 main core and 4 cores dedicated for io), forwarding mode is
42 | ... | set to mac, rxd/txd=256, burst=64. DUT1, DUT2 are tested with 2p10GE
43 | ... | NIC X520 Niantic by Intel.
44 | ... | *[Ver] TG verification:* TG finds and reports throughput NDR (Non Drop
45 | ... | Rate) with zero packet loss tolerance or throughput PDR (Partial Drop
46 | ... | Rate) with non-zero packet loss tolerance (LT) expressed in percentage
47 | ... | of packets transmitted. NDR and PDR are discovered for different
48 | ... | Ethernet L2 frame sizes using either binary search or linear search
49 | ... | algorithms with configured starting rate and final step that determines
50 | ... | throughput measurement resolution. Test packets are generated by TG on
51 | ... | links to DUTs. TG traffic profile contains two L3 flow-groups
52 | ... | (flow-group per direction, 253 flows per flow-group) with all packets
53 | ... | containing Ethernet header, IPv4 header with IP protocol=61 and static
54 | ... | payload. MAC addresses are matching MAC addresses of the TG node
55 | ... | interfaces.
56 | ... | *[Ref] Applicable standard specifications:* RFC2544.
57
58 *** Variables ***
59 # X520-DA2 bandwidth limit
60 | ${s_limit} | ${10000000000}
61 | ${sock1}= | /tmp/sock-1
62 | ${sock2}= | /tmp/sock-2
63 | ${fib_table_1}= | 100
64 | ${fib_table_2}= | 101
65 # Traffic profile:
66 | ${traffic_profile} | trex-sl-3n-ethip4-ip4src253
67
68 *** Test Cases ***
69 | tc01-64B-1t1c-ethip4-ip4base-eth-2vhost-1vm-ndrdisc
70 | | [Documentation]
71 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core, \
72 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames \
73 | | ... | using binary search start at 10GE linerate, step 10kpps.
74 | | [Tags] | 64B | 1T1C | STHREAD | NDRDISC
75 | | ${framesize}= | Set Variable | ${64}
76 | | ${min_rate}= | Set Variable | ${10000}
77 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
78 | | ${binary_min}= | Set Variable | ${min_rate}
79 | | ${binary_max}= | Set Variable | ${max_rate}
80 | | ${threshold}= | Set Variable | ${min_rate}
81 | | ${dut1_vm_refs}= | Create Dictionary
82 | | ${dut2_vm_refs}= | Create Dictionary
83 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
84 | | And Add PCI devices to DUTs in 3-node single link topology
85 | | And Add no multi seg to all DUTs
86 | | And Apply startup configuration on all VPP DUTs
87 | | When Initialize IPv4 forwarding with vhost in 3-node circular topology
88 | | ... | ${sock1} | ${sock2}
89 | | ${vm1}= | And Configure guest VM with dpdk-testpmd-mac connected via vhost-user
90 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1 | ${dut1_vif1_mac}
91 | | ... | ${dut1_vif2_mac}
92 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
93 | | ${vm2}= | And Configure guest VM with dpdk-testpmd-mac connected via vhost-user
94 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1 | ${dut2_vif1_mac}
95 | | ... | ${dut2_vif2_mac}
96 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
97 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
98 | | ... | ${binary_max} | ${traffic_profile}
99 | | ... | ${min_rate} | ${max_rate} | ${threshold}
100
101 | tc02-64B-1t1c-ethip4-ip4base-eth-2vhost-1vm-pdrdisc
102 | | [Documentation]
103 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core, \
104 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames \
105 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
106 | | [Tags] | 64B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
107 | | ${framesize}= | Set Variable | ${64}
108 | | ${min_rate}= | Set Variable | ${10000}
109 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
110 | | ${binary_min}= | Set Variable | ${min_rate}
111 | | ${binary_max}= | Set Variable | ${max_rate}
112 | | ${threshold}= | Set Variable | ${min_rate}
113 | | ${dut1_vm_refs}= | Create Dictionary
114 | | ${dut2_vm_refs}= | Create Dictionary
115 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
116 | | And Add PCI devices to DUTs in 3-node single link topology
117 | | And Add no multi seg to all DUTs
118 | | And Apply startup configuration on all VPP DUTs
119 | | When Initialize IPv4 forwarding with vhost in 3-node circular topology
120 | | ... | ${sock1} | ${sock2}
121 | | ${vm1}= | And Configure guest VM with dpdk-testpmd-mac connected via vhost-user
122 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1 | ${dut1_vif1_mac}
123 | | ... | ${dut1_vif2_mac}
124 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
125 | | ${vm2}= | And Configure guest VM with dpdk-testpmd-mac connected via vhost-user
126 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1 | ${dut2_vif1_mac}
127 | | ... | ${dut2_vif2_mac}
128 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
129 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
130 | | ... | ${binary_max} | ${traffic_profile}
131 | | ... | ${min_rate} | ${max_rate} | ${threshold}
132 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
133
134 | tc03-1518B-1t1c-ethip4-ip4base-eth-2vhost-1vm-ndrdisc
135 | | [Documentation]
136 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core, \
137 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames \
138 | | ... | using binary search start at 10GE linerate, step 10kpps.
139 | | [Tags] | 1518B | 1T1C | STHREAD | NDRDISC
140 | | ${framesize}= | Set Variable | ${1518}
141 | | ${min_rate}= | Set Variable | ${10000}
142 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
143 | | ${binary_min}= | Set Variable | ${min_rate}
144 | | ${binary_max}= | Set Variable | ${max_rate}
145 | | ${threshold}= | Set Variable | ${min_rate}
146 | | ${dut1_vm_refs}= | Create Dictionary
147 | | ${dut2_vm_refs}= | Create Dictionary
148 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
149 | | And Add PCI devices to DUTs in 3-node single link topology
150 | | And Add no multi seg to all DUTs
151 | | And Apply startup configuration on all VPP DUTs
152 | | When Initialize IPv4 forwarding with vhost in 3-node circular topology
153 | | ... | ${sock1} | ${sock2}
154 | | ${vm1}= | And Configure guest VM with dpdk-testpmd-mac connected via vhost-user
155 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1 | ${dut1_vif1_mac}
156 | | ... | ${dut1_vif2_mac}
157 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
158 | | ${vm2}= | And Configure guest VM with dpdk-testpmd-mac connected via vhost-user
159 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1 | ${dut2_vif1_mac}
160 | | ... | ${dut2_vif2_mac}
161 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
162 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
163 | | ... | ${binary_max} | ${traffic_profile}
164 | | ... | ${min_rate} | ${max_rate} | ${threshold}
165
166 | tc04-1518B-1t1c-ethip4-ip4base-eth-2vhost-1vm-pdrdisc
167 | | [Documentation]
168 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core, \
169 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames \
170 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
171 | | [Tags] | 1518B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
172 | | ${framesize}= | Set Variable | ${1518}
173 | | ${min_rate}= | Set Variable | ${10000}
174 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
175 | | ${binary_min}= | Set Variable | ${min_rate}
176 | | ${binary_max}= | Set Variable | ${max_rate}
177 | | ${threshold}= | Set Variable | ${min_rate}
178 | | ${dut1_vm_refs}= | Create Dictionary
179 | | ${dut2_vm_refs}= | Create Dictionary
180 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
181 | | And Add PCI devices to DUTs in 3-node single link topology
182 | | And Add no multi seg to all DUTs
183 | | And Apply startup configuration on all VPP DUTs
184 | | When Initialize IPv4 forwarding with vhost in 3-node circular topology
185 | | ... | ${sock1} | ${sock2}
186 | | ${vm1}= | And Configure guest VM with dpdk-testpmd-mac connected via vhost-user
187 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1 | ${dut1_vif1_mac}
188 | | ... | ${dut1_vif2_mac}
189 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
190 | | ${vm2}= | And Configure guest VM with dpdk-testpmd-mac connected via vhost-user
191 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1 | ${dut2_vif1_mac}
192 | | ... | ${dut2_vif2_mac}
193 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
194 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
195 | | ... | ${binary_max} | ${traffic_profile}
196 | | ... | ${min_rate} | ${max_rate} | ${threshold}
197 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
198
199 | tc05-IMIX-1t1c-ethip4-ip4base-eth-2vhost-1vm-ndrdisc
200 | | [Documentation]
201 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core, \
202 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame \
203 | | ... | size using binary search start at 10GE linerate, step 10kpps.
204 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
205 | | [Tags] | IMIX | 1T1C | STHREAD | NDRDISC
206 | | ${framesize}= | Set Variable | IMIX_v4_1
207 | | ${min_rate}= | Set Variable | ${10000}
208 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
209 | | ${binary_min}= | Set Variable | ${min_rate}
210 | | ${binary_max}= | Set Variable | ${max_rate}
211 | | ${threshold}= | Set Variable | ${min_rate}
212 | | ${dut1_vm_refs}= | Create Dictionary
213 | | ${dut2_vm_refs}= | Create Dictionary
214 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
215 | | And Add PCI devices to DUTs in 3-node single link topology
216 | | And Add no multi seg to all DUTs
217 | | And Apply startup configuration on all VPP DUTs
218 | | When Initialize IPv4 forwarding with vhost in 3-node circular topology
219 | | ... | ${sock1} | ${sock2}
220 | | ${vm1}= | And Configure guest VM with dpdk-testpmd-mac connected via vhost-user
221 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1 | ${dut1_vif1_mac}
222 | | ... | ${dut1_vif2_mac}
223 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
224 | | ${vm2}= | And Configure guest VM with dpdk-testpmd-mac connected via vhost-user
225 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1 | ${dut2_vif1_mac}
226 | | ... | ${dut2_vif2_mac}
227 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
228 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
229 | | ... | ${binary_max} | ${traffic_profile}
230 | | ... | ${min_rate} | ${max_rate} | ${threshold}
231
232 | tc06-IMIX-1t1c-ethip4-ip4base-eth-2vhost-1vm-pdrdisc
233 | | [Documentation]
234 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core, \
235 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for IMIX_v4_1 frame \
236 | | ... | size using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
237 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
238 | | [Tags] | IMIX | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
239 | | ${framesize}= | Set Variable | IMIX_v4_1
240 | | ${min_rate}= | Set Variable | ${10000}
241 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
242 | | ${binary_min}= | Set Variable | ${min_rate}
243 | | ${binary_max}= | Set Variable | ${max_rate}
244 | | ${threshold}= | Set Variable | ${min_rate}
245 | | ${dut1_vm_refs}= | Create Dictionary
246 | | ${dut2_vm_refs}= | Create Dictionary
247 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
248 | | And Add PCI devices to DUTs in 3-node single link topology
249 | | And Add no multi seg to all DUTs
250 | | And Apply startup configuration on all VPP DUTs
251 | | When Initialize IPv4 forwarding with vhost in 3-node circular topology
252 | | ... | ${sock1} | ${sock2}
253 | | ${vm1}= | And Configure guest VM with dpdk-testpmd-mac connected via vhost-user
254 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1 | ${dut1_vif1_mac}
255 | | ... | ${dut1_vif2_mac}
256 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
257 | | ${vm2}= | And Configure guest VM with dpdk-testpmd-mac connected via vhost-user
258 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1 | ${dut2_vif1_mac}
259 | | ... | ${dut2_vif2_mac}
260 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
261 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
262 | | ... | ${binary_max} | ${traffic_profile}
263 | | ... | ${min_rate} | ${max_rate} | ${threshold}
264 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
265
266 | tc07-64B-2t2c-ethip4-ip4base-eth-2vhost-1vm-ndrdisc
267 | | [Documentation]
268 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores, \
269 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames \
270 | | ... | using binary search start at 10GE linerate, step 10kpps.
271 | | [Tags] | 64B | 2T2C | MTHREAD | NDRDISC
272 | | ${framesize}= | Set Variable | ${64}
273 | | ${min_rate}= | Set Variable | ${10000}
274 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
275 | | ${binary_min}= | Set Variable | ${min_rate}
276 | | ${binary_max}= | Set Variable | ${max_rate}
277 | | ${threshold}= | Set Variable | ${min_rate}
278 | | ${dut1_vm_refs}= | Create Dictionary
279 | | ${dut2_vm_refs}= | Create Dictionary
280 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
281 | | And Add PCI devices to DUTs in 3-node single link topology
282 | | And Add no multi seg to all DUTs
283 | | And Apply startup configuration on all VPP DUTs
284 | | When Initialize IPv4 forwarding with vhost in 3-node circular topology
285 | | ... | ${sock1} | ${sock2}
286 | | ${vm1}= | And Configure guest VM with dpdk-testpmd-mac connected via vhost-user
287 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1 | ${dut1_vif1_mac}
288 | | ... | ${dut1_vif2_mac}
289 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
290 | | ${vm2}= | And Configure guest VM with dpdk-testpmd-mac connected via vhost-user
291 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1 | ${dut2_vif1_mac}
292 | | ... | ${dut2_vif2_mac}
293 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
294 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
295 | | ... | ${binary_max} | ${traffic_profile}
296 | | ... | ${min_rate} | ${max_rate} | ${threshold}
297
298 | tc08-64B-2t2c-ethip4-ip4base-eth-2vhost-1vm-pdrdisc
299 | | [Documentation]
300 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores, \
301 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 64 Byte frames \
302 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
303 | | [Tags] | 64B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
304 | | ${framesize}= | Set Variable | ${64}
305 | | ${min_rate}= | Set Variable | ${10000}
306 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
307 | | ${binary_min}= | Set Variable | ${min_rate}
308 | | ${binary_max}= | Set Variable | ${max_rate}
309 | | ${threshold}= | Set Variable | ${min_rate}
310 | | ${dut1_vm_refs}= | Create Dictionary
311 | | ${dut2_vm_refs}= | Create Dictionary
312 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
313 | | And Add PCI devices to DUTs in 3-node single link topology
314 | | And Add no multi seg to all DUTs
315 | | And Apply startup configuration on all VPP DUTs
316 | | When Initialize IPv4 forwarding with vhost in 3-node circular topology
317 | | ... | ${sock1} | ${sock2}
318 | | ${vm1}= | And Configure guest VM with dpdk-testpmd-mac connected via vhost-user
319 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1 | ${dut1_vif1_mac}
320 | | ... | ${dut1_vif2_mac}
321 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
322 | | ${vm2}= | And Configure guest VM with dpdk-testpmd-mac connected via vhost-user
323 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1 | ${dut2_vif1_mac}
324 | | ... | ${dut2_vif2_mac}
325 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
326 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
327 | | ... | ${binary_max} | ${traffic_profile}
328 | | ... | ${min_rate} | ${max_rate} | ${threshold}
329 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
330
331 | tc09-1518B-2t2c-ethip4-ip4base-eth-2vhost-1vm-ndrdisc
332 | | [Documentation]
333 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores, \
334 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames \
335 | | ... | using binary search start at 10GE linerate, step 10kpps.
336 | | [Tags] | 1518B | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
337 | | ${framesize}= | Set Variable | ${1518}
338 | | ${min_rate}= | Set Variable | ${10000}
339 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
340 | | ${binary_min}= | Set Variable | ${min_rate}
341 | | ${binary_max}= | Set Variable | ${max_rate}
342 | | ${threshold}= | Set Variable | ${min_rate}
343 | | ${dut1_vm_refs}= | Create Dictionary
344 | | ${dut2_vm_refs}= | Create Dictionary
345 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
346 | | And Add PCI devices to DUTs in 3-node single link topology
347 | | And Add no multi seg to all DUTs
348 | | And Apply startup configuration on all VPP DUTs
349 | | When Initialize IPv4 forwarding with vhost in 3-node circular topology
350 | | ... | ${sock1} | ${sock2}
351 | | ${vm1}= | And Configure guest VM with dpdk-testpmd-mac connected via vhost-user
352 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1 | ${dut1_vif1_mac}
353 | | ... | ${dut1_vif2_mac}
354 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
355 | | ${vm2}= | And Configure guest VM with dpdk-testpmd-mac connected via vhost-user
356 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1 | ${dut2_vif1_mac}
357 | | ... | ${dut2_vif2_mac}
358 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
359 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
360 | | ... | ${binary_max} | ${traffic_profile}
361 | | ... | ${min_rate} | ${max_rate} | ${threshold}
362
363 | tc10-1518B-2t2c-ethip4-ip4base-eth-2vhost-1vm-pdrdisc
364 | | [Documentation]
365 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores, \
366 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for 1518 Byte frames \
367 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
368 | | [Tags] | 1518B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
369 | | ${framesize}= | Set Variable | ${1518}
370 | | ${min_rate}= | Set Variable | ${10000}
371 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
372 | | ${binary_min}= | Set Variable | ${min_rate}
373 | | ${binary_max}= | Set Variable | ${max_rate}
374 | | ${threshold}= | Set Variable | ${min_rate}
375 | | ${dut1_vm_refs}= | Create Dictionary
376 | | ${dut2_vm_refs}= | Create Dictionary
377 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
378 | | And Add PCI devices to DUTs in 3-node single link topology
379 | | And Add no multi seg to all DUTs
380 | | And Apply startup configuration on all VPP DUTs
381 | | When Initialize IPv4 forwarding with vhost in 3-node circular topology
382 | | ... | ${sock1} | ${sock2}
383 | | ${vm1}= | And Configure guest VM with dpdk-testpmd-mac connected via vhost-user
384 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1 | ${dut1_vif1_mac}
385 | | ... | ${dut1_vif2_mac}
386 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
387 | | ${vm2}= | And Configure guest VM with dpdk-testpmd-mac connected via vhost-user
388 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1 | ${dut2_vif1_mac}
389 | | ... | ${dut2_vif2_mac}
390 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
391 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
392 | | ... | ${binary_max} | ${traffic_profile}
393 | | ... | ${min_rate} | ${max_rate} | ${threshold}
394 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
395
396 | tc11-IMIX-2t2c-ethip4-ip4base-eth-2vhost-1vm-ndrdisc
397 | | [Documentation]
398 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores, \
399 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame \
400 | | ... | size using binary search start at 10GE linerate, step 10kpps.
401 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
402 | | [Tags] | IMIX | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
403 | | ${framesize}= | Set Variable | IMIX_v4_1
404 | | ${min_rate}= | Set Variable | ${10000}
405 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
406 | | ${binary_min}= | Set Variable | ${min_rate}
407 | | ${binary_max}= | Set Variable | ${max_rate}
408 | | ${threshold}= | Set Variable | ${min_rate}
409 | | ${dut1_vm_refs}= | Create Dictionary
410 | | ${dut2_vm_refs}= | Create Dictionary
411 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
412 | | And Add PCI devices to DUTs in 3-node single link topology
413 | | And Add no multi seg to all DUTs
414 | | And Apply startup configuration on all VPP DUTs
415 | | When Initialize IPv4 forwarding with vhost in 3-node circular topology
416 | | ... | ${sock1} | ${sock2}
417 | | ${vm1}= | And Configure guest VM with dpdk-testpmd-mac connected via vhost-user
418 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1 | ${dut1_vif1_mac}
419 | | ... | ${dut1_vif2_mac}
420 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
421 | | ${vm2}= | And Configure guest VM with dpdk-testpmd-mac connected via vhost-user
422 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1 | ${dut2_vif1_mac}
423 | | ... | ${dut2_vif2_mac}
424 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
425 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
426 | | ... | ${binary_max} | ${traffic_profile}
427 | | ... | ${min_rate} | ${max_rate} | ${threshold}
428
429 | tc12-IMIX-2t2c-ethip4-ip4base-eth-2vhost-1vm-pdrdisc
430 | | [Documentation]
431 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores, \
432 | | ... | 1 receive queue per NIC port. [Ver] Find PDR for IMIX_v4_1 frame \
433 | | ... | size using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
434 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
435 | | [Tags] | IMIX | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
436 | | ${framesize}= | Set Variable | IMIX_v4_1
437 | | ${min_rate}= | Set Variable | ${10000}
438 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
439 | | ${binary_min}= | Set Variable | ${min_rate}
440 | | ${binary_max}= | Set Variable | ${max_rate}
441 | | ${threshold}= | Set Variable | ${min_rate}
442 | | ${dut1_vm_refs}= | Create Dictionary
443 | | ${dut2_vm_refs}= | Create Dictionary
444 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
445 | | And Add PCI devices to DUTs in 3-node single link topology
446 | | And Add no multi seg to all DUTs
447 | | And Apply startup configuration on all VPP DUTs
448 | | When Initialize IPv4 forwarding with vhost in 3-node circular topology
449 | | ... | ${sock1} | ${sock2}
450 | | ${vm1}= | And Configure guest VM with dpdk-testpmd-mac connected via vhost-user
451 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1 | ${dut1_vif1_mac}
452 | | ... | ${dut1_vif2_mac}
453 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
454 | | ${vm2}= | And Configure guest VM with dpdk-testpmd-mac connected via vhost-user
455 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1 | ${dut2_vif1_mac}
456 | | ... | ${dut2_vif2_mac}
457 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
458 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
459 | | ... | ${binary_max} | ${traffic_profile}
460 | | ... | ${min_rate} | ${max_rate} | ${threshold}
461 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
462
463 | tc13-64B-4t4c-ethip4-ip4base-eth-2vhost-1vm-ndrdisc
464 | | [Documentation]
465 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores, \
466 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 64 Byte frames \
467 | | ... | using binary search start at 10GE linerate, step 10kpps.
468 | | [Tags] | 64B | 4T4C | MTHREAD | NDRDISC
469 | | ${framesize}= | Set Variable | ${64}
470 | | ${min_rate}= | Set Variable | ${10000}
471 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
472 | | ${binary_min}= | Set Variable | ${min_rate}
473 | | ${binary_max}= | Set Variable | ${max_rate}
474 | | ${threshold}= | Set Variable | ${min_rate}
475 | | ${dut1_vm_refs}= | Create Dictionary
476 | | ${dut2_vm_refs}= | Create Dictionary
477 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
478 | | And Add PCI devices to DUTs in 3-node single link topology
479 | | And Add no multi seg to all DUTs
480 | | And Apply startup configuration on all VPP DUTs
481 | | When Initialize IPv4 forwarding with vhost in 3-node circular topology
482 | | ... | ${sock1} | ${sock2}
483 | | ${vm1}= | And Configure guest VM with dpdk-testpmd-mac connected via vhost-user
484 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1 | ${dut1_vif1_mac}
485 | | ... | ${dut1_vif2_mac}
486 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
487 | | ${vm2}= | And Configure guest VM with dpdk-testpmd-mac connected via vhost-user
488 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1 | ${dut2_vif1_mac}
489 | | ... | ${dut2_vif2_mac}
490 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
491 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
492 | | ... | ${binary_max} | ${traffic_profile}
493 | | ... | ${min_rate} | ${max_rate} | ${threshold}
494
495 | tc14-64B-4t4c-ethip4-ip4base-eth-2vhost-1vm-pdrdisc
496 | | [Documentation]
497 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores, \
498 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for 64 Byte frames \
499 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
500 | | [Tags] | 64B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
501 | | ${framesize}= | Set Variable | ${64}
502 | | ${min_rate}= | Set Variable | ${10000}
503 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
504 | | ${binary_min}= | Set Variable | ${min_rate}
505 | | ${binary_max}= | Set Variable | ${max_rate}
506 | | ${threshold}= | Set Variable | ${min_rate}
507 | | ${dut1_vm_refs}= | Create Dictionary
508 | | ${dut2_vm_refs}= | Create Dictionary
509 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
510 | | And Add PCI devices to DUTs in 3-node single link topology
511 | | And Add no multi seg to all DUTs
512 | | And Apply startup configuration on all VPP DUTs
513 | | When Initialize IPv4 forwarding with vhost in 3-node circular topology
514 | | ... | ${sock1} | ${sock2}
515 | | ${vm1}= | And Configure guest VM with dpdk-testpmd-mac connected via vhost-user
516 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1 | ${dut1_vif1_mac}
517 | | ... | ${dut1_vif2_mac}
518 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
519 | | ${vm2}= | And Configure guest VM with dpdk-testpmd-mac connected via vhost-user
520 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1 | ${dut2_vif1_mac}
521 | | ... | ${dut2_vif2_mac}
522 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
523 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
524 | | ... | ${binary_max} | ${traffic_profile}
525 | | ... | ${min_rate} | ${max_rate} | ${threshold}
526 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
527
528 | tc15-1518B-4t4c-ethip4-ip4base-eth-2vhost-1vm-ndrdisc
529 | | [Documentation]
530 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores, \
531 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 1518 Byte frames \
532 | | ... | using binary search start at 10GE linerate, step 10kpps.
533 | | [Tags] | 1518B | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
534 | | ${framesize}= | Set Variable | ${1518}
535 | | ${min_rate}= | Set Variable | ${10000}
536 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
537 | | ${binary_min}= | Set Variable | ${min_rate}
538 | | ${binary_max}= | Set Variable | ${max_rate}
539 | | ${threshold}= | Set Variable | ${min_rate}
540 | | ${dut1_vm_refs}= | Create Dictionary
541 | | ${dut2_vm_refs}= | Create Dictionary
542 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
543 | | And Add PCI devices to DUTs in 3-node single link topology
544 | | And Add no multi seg to all DUTs
545 | | And Apply startup configuration on all VPP DUTs
546 | | When Initialize IPv4 forwarding with vhost in 3-node circular topology
547 | | ... | ${sock1} | ${sock2}
548 | | ${vm1}= | And Configure guest VM with dpdk-testpmd-mac connected via vhost-user
549 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1 | ${dut1_vif1_mac}
550 | | ... | ${dut1_vif2_mac}
551 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
552 | | ${vm2}= | And Configure guest VM with dpdk-testpmd-mac connected via vhost-user
553 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1 | ${dut2_vif1_mac}
554 | | ... | ${dut2_vif2_mac}
555 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
556 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
557 | | ... | ${binary_max} | ${traffic_profile}
558 | | ... | ${min_rate} | ${max_rate} | ${threshold}
559
560 | tc16-1518B-4t4c-ethip4-ip4base-eth-2vhost-1vm-pdrdisc
561 | | [Documentation]
562 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores, \
563 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for 1518 Byte frames \
564 | | ... | using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
565 | | [Tags] | 1518B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
566 | | ${framesize}= | Set Variable | ${1518}
567 | | ${min_rate}= | Set Variable | ${10000}
568 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
569 | | ${binary_min}= | Set Variable | ${min_rate}
570 | | ${binary_max}= | Set Variable | ${max_rate}
571 | | ${threshold}= | Set Variable | ${min_rate}
572 | | ${dut1_vm_refs}= | Create Dictionary
573 | | ${dut2_vm_refs}= | Create Dictionary
574 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
575 | | And Add PCI devices to DUTs in 3-node single link topology
576 | | And Add no multi seg to all DUTs
577 | | And Apply startup configuration on all VPP DUTs
578 | | When Initialize IPv4 forwarding with vhost in 3-node circular topology
579 | | ... | ${sock1} | ${sock2}
580 | | ${vm1}= | And Configure guest VM with dpdk-testpmd-mac connected via vhost-user
581 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1 | ${dut1_vif1_mac}
582 | | ... | ${dut1_vif2_mac}
583 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
584 | | ${vm2}= | And Configure guest VM with dpdk-testpmd-mac connected via vhost-user
585 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1 | ${dut2_vif1_mac}
586 | | ... | ${dut2_vif2_mac}
587 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
588 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
589 | | ... | ${binary_max} | ${traffic_profile}
590 | | ... | ${min_rate} | ${max_rate} | ${threshold}
591 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
592
593 | tc17-IMIX-4t4c-ethip4-ip4base-eth-2vhost-1vm-ndrdisc
594 | | [Documentation]
595 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores, \
596 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for IMIX_v4_1 frame \
597 | | ... | size using binary search start at 10GE linerate, step 10kpps.
598 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
599 | | [Tags] | IMIX | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
600 | | ${framesize}= | Set Variable | IMIX_v4_1
601 | | ${min_rate}= | Set Variable | ${10000}
602 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
603 | | ${binary_min}= | Set Variable | ${min_rate}
604 | | ${binary_max}= | Set Variable | ${max_rate}
605 | | ${threshold}= | Set Variable | ${min_rate}
606 | | ${dut1_vm_refs}= | Create Dictionary
607 | | ${dut2_vm_refs}= | Create Dictionary
608 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
609 | | And Add PCI devices to DUTs in 3-node single link topology
610 | | And Add no multi seg to all DUTs
611 | | And Apply startup configuration on all VPP DUTs
612 | | When Initialize IPv4 forwarding with vhost in 3-node circular topology
613 | | ... | ${sock1} | ${sock2}
614 | | ${vm1}= | And Configure guest VM with dpdk-testpmd-mac connected via vhost-user
615 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1 | ${dut1_vif1_mac}
616 | | ... | ${dut1_vif2_mac}
617 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
618 | | ${vm2}= | And Configure guest VM with dpdk-testpmd-mac connected via vhost-user
619 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1 | ${dut2_vif1_mac}
620 | | ... | ${dut2_vif2_mac}
621 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
622 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
623 | | ... | ${binary_max} | ${traffic_profile}
624 | | ... | ${min_rate} | ${max_rate} | ${threshold}
625
626 | tc18-IMIX-4t4c-ethip4-ip4base-eth-2vhost-1vm-pdrdisc
627 | | [Documentation]
628 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores, \
629 | | ... | 2 receive queues per NIC port. [Ver] Find PDR for IMIX_v4_1 frame \
630 | | ... | size using binary search start at 10GE linerate, step 10kpps, LT=0.5%.
631 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
632 | | [Tags] | IMIX | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
633 | | ${framesize}= | Set Variable | IMIX_v4_1
634 | | ${min_rate}= | Set Variable | ${10000}
635 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
636 | | ${binary_min}= | Set Variable | ${min_rate}
637 | | ${binary_max}= | Set Variable | ${max_rate}
638 | | ${threshold}= | Set Variable | ${min_rate}
639 | | ${dut1_vm_refs}= | Create Dictionary
640 | | ${dut2_vm_refs}= | Create Dictionary
641 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
642 | | And Add PCI devices to DUTs in 3-node single link topology
643 | | And Add no multi seg to all DUTs
644 | | And Apply startup configuration on all VPP DUTs
645 | | When Initialize IPv4 forwarding with vhost in 3-node circular topology
646 | | ... | ${sock1} | ${sock2}
647 | | ${vm1}= | And Configure guest VM with dpdk-testpmd-mac connected via vhost-user
648 | | ... | ${dut1} | ${sock1} | ${sock2} | DUT1_VM1 | ${dut1_vif1_mac}
649 | | ... | ${dut1_vif2_mac}
650 | | Set To Dictionary | ${dut1_vm_refs} | DUT1_VM1 | ${vm1}
651 | | ${vm2}= | And Configure guest VM with dpdk-testpmd-mac connected via vhost-user
652 | | ... | ${dut2} | ${sock1} | ${sock2} | DUT2_VM1 | ${dut2_vif1_mac}
653 | | ... | ${dut2_vif2_mac}
654 | | Set To Dictionary | ${dut2_vm_refs} | DUT2_VM1 | ${vm2}
655 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
656 | | ... | ${binary_max} | ${traffic_profile}
657 | | ... | ${min_rate} | ${max_rate} | ${threshold}
658 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}