dff612f0a92b34d9fae6da24698650474487345c
[csit.git] / tests / perf / 10ge2p1x520-eth-l2bdbasemaclrn-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.robot
16 | ...
17 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDRDISC
18 | ... | NIC_Intel-X520-DA2 | ETH | L2BDMACLRN | BASE
19 | ...
20 | Suite Setup | 3-node Performance Suite Setup with DUT's NIC model
21 | ... | L2 | Intel-X520-DA2
22 | Suite Teardown | 3-node Performance Suite Teardown
23 | ...
24 | Test Setup | Performance test setup
25 | Test Teardown | Performance test teardown | ${min_rate}pps | ${framesize}
26 | ... | 3-node-bridge
27 | ...
28 | Documentation | *RFC2544: Pkt throughput L2BD test cases*
29 | ...
30 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology\
31 | ... | with single links between nodes.
32 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4 for L2 switching of IPv4.
33 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with L2 bridge-\
34 | ... | domain and MAC learning enabled. DUT1 and DUT2 tested with 2p10GE NI
35 | ... | X520 Niantic by Intel.
36 | ... | *[Ver] TG verification:* TG finds and reports throughput NDR (Non Drop\
37 | ... | Rate) with zero packet loss tolerance or throughput PDR (Partial Drop\
38 | ... | Rate) with non-zero packet loss tolerance (LT) expressed in percentage\
39 | ... | of packets transmitted. NDR and PDR are discovered for different\
40 | ... | Ethernet L2 frame sizes using either binary search or linear search\
41 | ... | algorithms with configured starting rate and final step that determines\
42 | ... | throughput measurement resolution. Test packets are generated by TG on\
43 | ... | links to DUTs. TG traffic profile contains two L3 flow-groups\
44 | ... | (flow-group per direction, 253 flows per flow-group) with all packets\
45 | ... | containing Ethernet header, IPv4 header with IP protocol=61 and static\
46 | ... | payload. MAC addresses are matching MAC addresses of the TG node\
47 | ... | interfaces.
48 | ... | *[Ref] Applicable standard specifications:* RFC2544.
49
50 *** Variables ***
51 # X520-DA2 bandwidth limit
52 | ${s_limit} | ${10000000000}
53
54 *** Keywords ***
55 | L2 Bridge Domain NDR Binary Search
56 | | [Arguments] | ${framesize} | ${min_rate} | ${wt} | ${rxq}
57 | | Set Test Variable | ${framesize}
58 | | Set Test Variable | ${min_rate}
59 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
60 | | ${binary_min}= | Set Variable | ${min_rate}
61 | | ${binary_max}= | Set Variable | ${max_rate}
62 | | ${threshold}= | Set Variable | ${min_rate}
63 | | Add '${wt}' worker threads and rxqueues '${rxq}' in 3-node single-link topo
64 | | Add PCI devices to DUTs from 3-node single link topology
65 | | ${get_framesize}= | Get Frame Size | ${framesize}
66 | | Run Keyword If | ${get_framesize} < ${1522} | Add No Multi Seg to all DUTs
67 | | Apply startup configuration on all VPP DUTs
68 | | L2 bridge domain initialized in a 3-node circular topology
69 | | Find NDR using binary search and pps
70 | | ... | ${framesize} | ${binary_min} | ${binary_max} | 3-node-bridge
71 | | ... | ${min_rate} | ${max_rate} | ${threshold}
72
73 | L2 Bridge Domain PDR Binary Search
74 | | [Arguments] | ${framesize} | ${min_rate} | ${wt} | ${rxq}
75 | | Set Test Variable | ${framesize}
76 | | Set Test Variable | ${min_rate}
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 | | Add '${wt}' worker threads and rxqueues '${rxq}' in 3-node single-link topo
82 | | Add PCI devices to DUTs from 3-node single link topology
83 | | ${get_framesize}= | Get Frame Size | ${framesize}
84 | | Run Keyword If | ${get_framesize} < ${1522} | Add No Multi Seg to all DUTs
85 | | Apply startup configuration on all VPP DUTs
86 | | L2 bridge domain initialized in a 3-node circular topology
87 | | Find PDR using binary search and pps
88 | | ... | ${framesize} | ${binary_min} | ${binary_max} | 3-node-bridge
89 | | ... | ${min_rate} | ${max_rate} | ${threshold}
90 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
91
92 *** Test Cases ***
93 | tc01-64B-1t1c-eth-l2bdbasemaclrn-ndrdisc
94 | | ... | ${64} | ${100000} | 1 | 1
95 | | [Tags] | 1T1C | STHREAD | NDRDISC
96 | | [Documentation]
97 | | ... | [Cfg] DUT runs L2BD switching config with with\
98 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
99 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 10GE\
100 | | ... | linerate, step 100kpps.
101 | | [Template] | L2 Bridge Domain NDR Binary Search
102
103 | tc02-64B-1t1c-eth-l2bdbasemaclrn-pdrdisc
104 | | ... | ${64} | ${100000} | 1 | 1
105 | | [Tags] | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
106 | | [Documentation]
107 | | ... | [Cfg] DUT runs L2BD switching config with with\
108 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
109 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 10GE\
110 | | ... | linerate, step 100kpps, LT=0.5%.
111 | | [Template] | L2 Bridge Domain PDR Binary Search
112
113 | tc03-1518B-1t1c-eth-l2bdbasemaclrn-ndrdisc
114 | | ... | ${1518} | ${10000} | 1 | 1
115 | | [Tags] | 1T1C | STHREAD | NDRDISC
116 | | [Documentation]
117 | | ... | [Cfg] DUT runs L2BD switching config with with\
118 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
119 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE\
120 | | ... | linerate, step 10kpps.
121 | | [Template] | L2 Bridge Domain NDR Binary Search
122
123 | tc04-1518B-1t1c-eth-l2bdbasemaclrn-pdrdisc
124 | | ... | ${1518} | ${10000} | 1 | 1
125 | | [Tags] | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
126 | | [Documentation]
127 | | ... | [Cfg] DUT runs L2BD switching config with with\
128 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
129 | | ... | [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE\
130 | | ... | linerate, step 10kpps, LT=0.5%.
131 | | [Template] | L2 Bridge Domain PDR Binary Search
132
133 | tc05-9000B-1t1c-eth-l2bdbasemaclrn-ndrdisc
134 | | ... | ${9000} | ${10000} | 1 | 1
135 | | [Tags] | 1T1C | STHREAD | NDRDISC
136 | | [Documentation]
137 | | ... | [Cfg] DUT runs L2BD switching config with with\
138 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
139 | | ... | [Ver] Find NDR for 9000 Byte frames using binary search start at 10GE\
140 | | ... | linerate, step 10kpps.
141 | | [Template] | L2 Bridge Domain NDR Binary Search
142
143 | tc06-9000B-1t1c-eth-l2bdbasemaclrn-pdrdisc
144 | | ... | ${9000} | ${10000} | 1 | 1
145 | | [Tags] | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
146 | | [Documentation]
147 | | ... | [Cfg] DUT runs L2BD switching config with with\
148 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
149 | | ... | [Ver] Find PDR for 9000 Byte frames using binary search start at 10GE\
150 | | ... | linerate, step 10kpps, LT=0.5%.
151 | | [Template] | L2 Bridge Domain PDR Binary Search
152
153 | tc07-64B-2t2c-eth-l2bdbasemaclrn-ndrdisc
154 | | ... | ${64} | ${100000} | 2 | 1
155 | | [Tags] | 2T2C | MTHREAD | NDRDISC
156 | | [Documentation]
157 | | ... | [Cfg] DUT runs L2BD switching config with with\
158 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port.
159 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 10GE\
160 | | ... | linerate, step 100kpps.
161 | | [Template] | L2 Bridge Domain NDR Binary Search
162
163 | tc08-64B-2t2c-eth-l2bdbasemaclrn-pdrdisc
164 | | ... | ${64} | ${100000} | 2 | 1
165 | | [Tags] | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
166 | | [Documentation]
167 | | ... | [Cfg] DUT runs L2BD switching config with with\
168 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port.
169 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 10GE\
170 | | ... | linerate, step 100kpps, LT=0.5%.
171 | | [Template] | L2 Bridge Domain PDR Binary Search
172
173 | tc09-1518B-2t2c-eth-l2bdbasemaclrn-ndrdisc
174 | | ... | ${1518} | ${10000} | 2 | 1
175 | | [Tags] | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
176 | | [Documentation]
177 | | ... | [Cfg] DUT runs L2BD switching config with with\
178 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port.
179 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE\
180 | | ... | linerate, step 10kpps.
181 | | [Template] | L2 Bridge Domain NDR Binary Search
182
183 | tc10-1518B-2t2c-eth-l2bdbasemaclrn-pdrdisc
184 | | ... | ${1518} | ${10000} | 2 | 1
185 | | [Tags] | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
186 | | [Documentation]
187 | | ... | [Cfg] DUT runs L2BD switching config with with\
188 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port.
189 | | ... | [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE\
190 | | ... | linerate, step 10kpps, LT=0.5%.
191 | | [Template] | L2 Bridge Domain PDR Binary Search
192
193 | tc11-9000B-2t2c-eth-l2bdbasemaclrn-ndrdisc
194 | | ... | ${9000} | ${10000} | 2 | 1
195 | | [Tags] | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
196 | | [Documentation]
197 | | ... | [Cfg] DUT runs L2BD switching config with with\
198 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port.
199 | | ... | [Ver] Find NDR for 9000 Byte frames using binary search start at 10GE\
200 | | ... | linerate, step 10kpps.
201 | | [Template] | L2 Bridge Domain NDR Binary Search
202
203 | tc12-9000B-2t2c-eth-l2bdbasemaclrn-pdrdisc
204 | | ... | ${9000} | ${10000} | 2 | 1
205 | | [Tags] | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
206 | | [Documentation]
207 | | ... | [Cfg] DUT runs L2BD switching config with with\
208 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port.
209 | | ... | [Ver] Find PDR for 9000 Byte frames using binary search start at 10GE\
210 | | ... | linerate, step 10kpps, LT=0.5%.
211 | | [Template] | L2 Bridge Domain PDR Binary Search
212
213 | tc13-64B-4t4c-eth-l2bdbasemaclrn-ndrdisc
214 | | ... | ${64} | ${100000} | 4 | 2
215 | | [Tags] | 4T4C | MTHREAD | NDRDISC
216 | | [Documentation]
217 | | ... | [Cfg] DUT runs L2BD switching config with with\
218 | | ... | 4 threads, 4 phy cores, 2 receive queues per NIC port.
219 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 10GE\
220 | | ... | linerate, step 100kpps.
221 | | [Template] | L2 Bridge Domain NDR Binary Search
222
223 | tc14-64B-4t4c-eth-l2bdbasemaclrn-pdrdisc
224 | | ... | ${64} | ${100000} | 4 | 2
225 | | [Tags] | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
226 | | [Documentation]
227 | | ... | [Cfg] DUT runs L2BD switching config with with\
228 | | ... | 4 threads, 4 phy cores, 2 receive queues per NIC port.
229 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 10GE\
230 | | ... | linerate, step 100kpps, LT=0.5%.
231 | | [Template] | L2 Bridge Domain PDR Binary Search
232
233 | tc15-1518B-4t4c-eth-l2bdbasemaclrn-ndrdisc
234 | | ... | ${1518} | ${10000} | 4 | 2
235 | | [Tags] | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
236 | | [Documentation]
237 | | ... | [Cfg] DUT runs L2BD switching config with with\
238 | | ... | 4 threads, 4 phy cores, 2 receive queues per NIC port.
239 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE\
240 | | ... | linerate, step 10kpps.
241 | | [Template] | L2 Bridge Domain NDR Binary Search
242
243 | tc16-1518B-4t4c-eth-l2bdbasemaclrn-pdrdisc
244 | | ... | ${1518} | ${10000} | 4 | 2
245 | | [Tags] | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
246 | | [Documentation]
247 | | ... | [Cfg] DUT runs L2BD switching config with with\
248 | | ... | 4 threads, 4 phy cores, 2 receive queues per NIC port.
249 | | ... | [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE\
250 | | ... | linerate, step 10kpps, LT=0.5%.
251 | | [Template] | L2 Bridge Domain PDR Binary Search
252
253 | tc17-9000B-4t4c-eth-l2bdbasemaclrn-ndrdisc
254 | | ... | ${9000} | ${10000} | 4 | 2
255 | | [Tags] | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
256 | | [Documentation]
257 | | ... | [Cfg] DUT runs L2BD switching config with with\
258 | | ... | 4 threads, 4 phy cores, 2 receive queues per NIC port.
259 | | ... | [Ver] Find NDR for 9000 Byte frames using binary search start at 10GE\
260 | | ... | linerate, step 10kpps.
261 | | [Template] | L2 Bridge Domain NDR Binary Search
262
263 | tc18-9000B-4t4c-eth-l2bdbasemaclrn-pdrdisc
264 | | ... | ${9000} | ${10000} | 4 | 2
265 | | [Tags] | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
266 | | [Documentation]
267 | | ... | [Cfg] DUT runs L2BD switching config with with\
268 | | ... | 4 threads, 4 phy cores, 2 receive queues per NIC port.
269 | | ... | [Ver] Find PDR for 9000 Byte frames using binary search start at 10GE\
270 | | ... | linerate, step 10kpps, LT=0.5%.
271 | | [Template] | L2 Bridge Domain PDR Binary Search