CSIT-501: Perf tests re-tagging
[csit.git] / tests / perf / 40ge2p1xl710-ethip4-ip4base-ndrdisc.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.topology.Topology
17 | Library | resources.libraries.python.NodePath
18 | Library | resources.libraries.python.InterfaceUtil
19 | Library | resources.libraries.python.IPv4Setup.Dut | ${nodes['DUT1']} | WITH NAME | dut1_v4
20 | Library | resources.libraries.python.IPv4Setup.Dut | ${nodes['DUT2']} | WITH NAME | dut2_v4
21 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDRDISC
22 | ...        | NIC_Intel-XL710 | ETH | IP4FWD | BASE
23 | Suite Setup | 3-node Performance Suite Setup with DUT's NIC model
24 | ... | L3 | Intel-XL710
25 | Suite Teardown | 3-node Performance Suite Teardown
26 | Test Setup | Setup all DUTs before test
27 | Test Teardown | Run Keywords
28 | ...           | Run Keyword If Test Failed
29 | ...           | Traffic should pass with no loss | 10
30 | ...           | ${min_rate}pps | ${framesize} | 3-node-IPv4
31 | ...           | fail_on_loss=${False}
32 | ...           | AND | Remove startup configuration of VPP from all DUTs
33 | ...           | AND | Show vpp trace dump on all DUTs
34 | Documentation | *RFC2544: Pkt throughput IPv4 routing test cases*
35 | ...
36 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology
37 | ... | with single links between nodes.
38 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4 for IPv4 routing.
39 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with IPv4
40 | ... | routing and two static IPv4 /24 route entries. DUT1 and DUT2 tested with
41 | ... | 2p40GE NIC XL710 by Intel.
42 | ... | *[Ver] TG verification:* TG finds and reports throughput NDR (Non Drop
43 | ... | Rate) with zero packet loss tolerance or throughput PDR (Partial Drop
44 | ... | Rate) with non-zero packet loss tolerance (LT) expressed in percentage
45 | ... | of packets transmitted. NDR and PDR are discovered for different
46 | ... | Ethernet L2 frame sizes using either binary search or linear search
47 | ... | algorithms with configured starting rate and final step that determines
48 | ... | throughput measurement resolution. Test packets are generated by TG on
49 | ... | links to DUTs. TG traffic profile contains two L3 flow-groups
50 | ... | (flow-group per direction, 253 flows per flow-group) with all packets
51 | ... | containing Ethernet header, IPv4 header with IP protocol=61 and static
52 | ... | payload. MAC addresses are matching MAC addresses of the TG node
53 | ... | interfaces.
54 | ... | *[Ref] Applicable standard specifications:* RFC2544.
55
56 *** Variables ***
57 #XL710-DA2 bandwidth limit ~49Gbps/2=24.5Gbps
58 | ${s_24.5G} | ${24500000000}
59 #XL710-DA2 Mpps limit 37.5Mpps/2=18.75Mpps
60 | ${s_18.75Mpps} | ${18750000}
61
62 *** Test Cases ***
63 | TC01: 64B NDR binary search - DUT IPv4 - 1thread 1core 1rxq
64 | | [Documentation]
65 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core, \
66 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames
67 | | ... | using binary search start at 18.75Mpps rate, step 100kpps.
68 | | [Tags] | 1T1C | STHREAD | NDRDISC
69 | | ${framesize}= | Set Variable | ${64}
70 | | ${min_rate}= | Set Variable | ${100000}
71 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
72 | | ${binary_min}= | Set Variable | ${min_rate}
73 | | ${binary_max}= | Set Variable | ${max_rate}
74 | | ${threshold}= | Set Variable | ${min_rate}
75 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
76 | | And   Add PCI devices to DUTs from 3-node single link topology
77 | | And   Add No Multi Seg to all DUTs
78 | | And   Apply startup configuration on all VPP DUTs
79 | | And   IPv4 forwarding initialized in a 3-node circular topology
80 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
81 | | ...                                       | ${binary_max} | 3-node-IPv4
82 | | ...                                       | ${min_rate} | ${max_rate}
83 | | ...                                       | ${threshold}
84
85 | TC03: 1518B NDR binary search - DUT IPv4 - 1thread 1core 1rxq
86 | | [Documentation]
87 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core, \
88 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames
89 | | ... | using binary search start at 24.5G rate, step 10kpps.
90 | | [Tags] | 1T1C | STHREAD | NDRDISC
91 | | ${framesize}= | Set Variable | ${1518}
92 | | ${min_rate}= | Set Variable | ${10000}
93 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
94 | | ${binary_min}= | Set Variable | ${min_rate}
95 | | ${binary_max}= | Set Variable | ${max_rate}
96 | | ${threshold}= | Set Variable | ${min_rate}
97 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
98 | | And   Add PCI devices to DUTs from 3-node single link topology
99 | | And   Add No Multi Seg to all DUTs
100 | | And   Apply startup configuration on all VPP DUTs
101 | | And   IPv4 forwarding initialized in a 3-node circular topology
102 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
103 | | ...                                       | ${binary_max} | 3-node-IPv4
104 | | ...                                       | ${min_rate} | ${max_rate}
105 | | ...                                       | ${threshold}
106
107 | TC07: 64B NDR binary search - DUT IPv4 - 2threads 2cores 1rxq
108 | | [Documentation]
109 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores, \
110 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 64 Byte frames
111 | | ... | using binary search start at 18.75Mpps rate, step 100kpps.
112 | | [Tags] | 2T2C | MTHREAD | NDRDISC
113 | | ${framesize}= | Set Variable | ${64}
114 | | ${min_rate}= | Set Variable | ${100000}
115 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
116 | | ${binary_min}= | Set Variable | ${min_rate}
117 | | ${binary_max}= | Set Variable | ${max_rate}
118 | | ${threshold}= | Set Variable | ${min_rate}
119 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
120 | | And   Add PCI devices to DUTs from 3-node single link topology
121 | | And   Add No Multi Seg to all DUTs
122 | | And   Apply startup configuration on all VPP DUTs
123 | | And   IPv4 forwarding initialized in a 3-node circular topology
124 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
125 | | ...                                       | ${binary_max} | 3-node-IPv4
126 | | ...                                       | ${min_rate} | ${max_rate}
127 | | ...                                       | ${threshold}
128
129 | TC09: 1518B NDR binary search - DUT IPv4 - 2threads 2cores 1rxq
130 | | [Documentation]
131 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores, \
132 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames
133 | | ... | using binary search start at 24.5G rate, step 10kpps.
134 | | [Tags] | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
135 | | ${framesize}= | Set Variable | ${1518}
136 | | ${min_rate}= | Set Variable | ${10000}
137 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
138 | | ${binary_min}= | Set Variable | ${min_rate}
139 | | ${binary_max}= | Set Variable | ${max_rate}
140 | | ${threshold}= | Set Variable | ${min_rate}
141 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
142 | | And   Add PCI devices to DUTs from 3-node single link topology
143 | | And   Add No Multi Seg to all DUTs
144 | | And   Apply startup configuration on all VPP DUTs
145 | | And   IPv4 forwarding initialized in a 3-node circular topology
146 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
147 | | ...                                       | ${binary_max} | 3-node-IPv4
148 | | ...                                       | ${min_rate} | ${max_rate}
149 | | ...                                       | ${threshold}
150
151 | TC13: 64B NDR binary search - DUT IPv4 - 4threads 4cores 2rxq
152 | | [Documentation]
153 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores, \
154 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 64 Byte frames
155 | | ... | using binary search start at 18.75Mpps rate, step 100kpps.
156 | | [Tags] | 4T4C | MTHREAD | NDRDISC
157 | | ${framesize}= | Set Variable | ${64}
158 | | ${min_rate}= | Set Variable | ${100000}
159 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
160 | | ${binary_min}= | Set Variable | ${min_rate}
161 | | ${binary_max}= | Set Variable | ${max_rate}
162 | | ${threshold}= | Set Variable | ${min_rate}
163 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
164 | | And   Add PCI devices to DUTs from 3-node single link topology
165 | | And   Add No Multi Seg to all DUTs
166 | | And   Apply startup configuration on all VPP DUTs
167 | | And   IPv4 forwarding initialized in a 3-node circular topology
168 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
169 | | ...                                       | ${binary_max} | 3-node-IPv4
170 | | ...                                       | ${min_rate} | ${max_rate}
171 | | ...                                       | ${threshold}
172
173 | TC15: 1518B NDR binary search - DUT IPv4 - 4threads 4cores 2rxq
174 | | [Documentation]
175 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores, \
176 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 1518 Byte frames
177 | | ... | using binary search start at 24.5G rate, step 10kpps.
178 | | [Tags] | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
179 | | ${framesize}= | Set Variable | ${1518}
180 | | ${min_rate}= | Set Variable | ${10000}
181 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
182 | | ${binary_min}= | Set Variable | ${min_rate}
183 | | ${binary_max}= | Set Variable | ${max_rate}
184 | | ${threshold}= | Set Variable | ${min_rate}
185 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
186 | | And   Add PCI devices to DUTs from 3-node single link topology
187 | | And   Add No Multi Seg to all DUTs
188 | | And   Apply startup configuration on all VPP DUTs
189 | | And   IPv4 forwarding initialized in a 3-node circular topology
190 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
191 | | ...                                       | ${binary_max} | 3-node-IPv4
192 | | ...                                       | ${min_rate} | ${max_rate}
193 | | ...                                       | ${threshold}
194
195 | TC19: IMIX_v4_1 NDR binary search - DUT IPv4 - 1thread 1core 1rxq
196 | | [Documentation]
197 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core, \
198 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame size
199 | | ... | using binary search start at 24.5G rate, step 100kpps.
200 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
201 | | [Tags] | 1T1C | STHREAD | NDRDISC
202 | | ${framesize}= | Set Variable | IMIX_v4_1
203 | | ${min_rate}= | Set Variable | ${100000}
204 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
205 | | ${binary_min}= | Set Variable | ${min_rate}
206 | | ${binary_max}= | Set Variable | ${max_rate}
207 | | ${threshold}= | Set Variable | ${min_rate}
208 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
209 | | And   Add all PCI devices to all DUTs
210 | | And   Add No Multi Seg to all DUTs
211 | | And   Apply startup configuration on all VPP DUTs
212 | | And   IPv4 forwarding initialized in a 3-node circular topology
213 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
214 | | ...                                       | ${binary_max} | 3-node-IPv4
215 | | ...                                       | ${min_rate} | ${max_rate}
216 | | ...                                       | ${threshold}
217
218 | TC20: IMIX_v4_1 NDR binary search - DUT IPv4 - 2thread 2core 1rxq
219 | | [Documentation]
220 | | ... | [Cfg] DUT runs IPv4 routing config with 2 thread, 2 phy core, \
221 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame size
222 | | ... | using binary search start at 24.5G rate, step 100kpps.
223 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
224 | | [Tags] | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
225 | | ${framesize}= | Set Variable | IMIX_v4_1
226 | | ${min_rate}= | Set Variable | ${100000}
227 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
228 | | ${binary_min}= | Set Variable | ${min_rate}
229 | | ${binary_max}= | Set Variable | ${max_rate}
230 | | ${threshold}= | Set Variable | ${min_rate}
231 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
232 | | And   Add all PCI devices to all DUTs
233 | | And   Add No Multi Seg to all DUTs
234 | | And   Apply startup configuration on all VPP DUTs
235 | | And   IPv4 forwarding initialized in a 3-node circular topology
236 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
237 | | ...                                       | ${binary_max} | 3-node-IPv4
238 | | ...                                       | ${min_rate} | ${max_rate}
239 | | ...                                       | ${threshold}
240
241 | TC21: IMIX_v4_1 NDR binary search - DUT IPv4 - 4thread 4core 2rxq
242 | | [Documentation]
243 | | ... | [Cfg] DUT runs IPv4 routing config with 4 thread, 4 phy core, \
244 | | ... | 2 receive queue per NIC port. [Ver] Find NDR for IMIX_v4_1 frame size
245 | | ... | using binary search start at 24.5G rate, step 100kpps.
246 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
247 | | [Tags] | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
248 | | ${framesize}= | Set Variable | IMIX_v4_1
249 | | ${min_rate}= | Set Variable | ${100000}
250 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
251 | | ${binary_min}= | Set Variable | ${min_rate}
252 | | ${binary_max}= | Set Variable | ${max_rate}
253 | | ${threshold}= | Set Variable | ${min_rate}
254 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
255 | | And   Add all PCI devices to all DUTs
256 | | And   Add No Multi Seg to all DUTs
257 | | And   Apply startup configuration on all VPP DUTs
258 | | And   IPv4 forwarding initialized in a 3-node circular topology
259 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
260 | | ...                                       | ${binary_max} | 3-node-IPv4
261 | | ...                                       | ${min_rate} | ${max_rate}
262 | | ...                                       | ${threshold}
263