CSIT-662: KWI - KW renaming
[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 | L2BDBASE
19 | ...
20 | Suite Setup | Set up 3-node performance topology with DUT's NIC model
21 | ... | L2 | Intel-X520-DA2
22 | Suite Teardown | Tear down 3-node performance topology
23 | ...
24 | Test Setup | Set up performance test
25 | Test Teardown | Tear down performance discovery test | ${min_rate}pps | ${framesize}
26 | ... | ${traffic_profile}
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 # Traffic profile:
54 | ${traffic_profile} | trex-sl-3n-ethip4-ip4src254
55
56 *** Keywords ***
57 | L2 Bridge Domain NDR Binary Search
58 | | [Arguments] | ${framesize} | ${min_rate} | ${wt} | ${rxq}
59 | | Set Test Variable | ${framesize}
60 | | Set Test Variable | ${min_rate}
61 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
62 | | ${binary_min}= | Set Variable | ${min_rate}
63 | | ${binary_max}= | Set Variable | ${max_rate}
64 | | ${threshold}= | Set Variable | ${min_rate}
65 | | Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
66 | | Add PCI devices to DUTs in 3-node single link topology
67 | | ${get_framesize}= | Get Frame Size | ${framesize}
68 | | Run Keyword If | ${get_framesize} < ${1522} | Add no multi seg to all DUTs
69 | | Apply startup configuration on all VPP DUTs
70 | | Initialize L2 bridge domain in 3-node circular topology
71 | | Find NDR using binary search and pps
72 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
73 | | ... | ${min_rate} | ${max_rate} | ${threshold}
74
75 | L2 Bridge Domain PDR Binary Search
76 | | [Arguments] | ${framesize} | ${min_rate} | ${wt} | ${rxq}
77 | | Set Test Variable | ${framesize}
78 | | Set Test Variable | ${min_rate}
79 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
80 | | ${binary_min}= | Set Variable | ${min_rate}
81 | | ${binary_max}= | Set Variable | ${max_rate}
82 | | ${threshold}= | Set Variable | ${min_rate}
83 | | Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
84 | | Add PCI devices to DUTs in 3-node single link topology
85 | | ${get_framesize}= | Get Frame Size | ${framesize}
86 | | Run Keyword If | ${get_framesize} < ${1522} | Add no multi seg to all DUTs
87 | | Apply startup configuration on all VPP DUTs
88 | | Initialize L2 bridge domain in 3-node circular topology
89 | | Find PDR using binary search and pps
90 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
91 | | ... | ${min_rate} | ${max_rate} | ${threshold}
92 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
93
94 *** Test Cases ***
95 | tc01-64B-1t1c-eth-l2bdbasemaclrn-ndrdisc
96 | | ... | framesize=${64} | min_rate=${100000} | wt=1 | rxq=1
97 | | [Tags] | 64B | 1T1C | STHREAD | NDRDISC
98 | | [Documentation]
99 | | ... | [Cfg] DUT runs L2BD switching config with with\
100 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
101 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 10GE\
102 | | ... | linerate, step 100kpps.
103 | | [Template] | L2 Bridge Domain NDR Binary Search
104
105 | tc02-64B-1t1c-eth-l2bdbasemaclrn-pdrdisc
106 | | ... | framesize=${64} | min_rate=${100000} | wt=1 | rxq=1
107 | | [Tags] | 64B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
108 | | [Documentation]
109 | | ... | [Cfg] DUT runs L2BD switching config with with\
110 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
111 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 10GE\
112 | | ... | linerate, step 100kpps, LT=0.5%.
113 | | [Template] | L2 Bridge Domain PDR Binary Search
114
115 | tc03-1518B-1t1c-eth-l2bdbasemaclrn-ndrdisc
116 | | ... | framesize=${1518} | min_rate=${10000} | wt=1 | rxq=1
117 | | [Tags] | 1518B | 1T1C | STHREAD | NDRDISC
118 | | [Documentation]
119 | | ... | [Cfg] DUT runs L2BD switching config with with\
120 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
121 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE\
122 | | ... | linerate, step 10kpps.
123 | | [Template] | L2 Bridge Domain NDR Binary Search
124
125 | tc04-1518B-1t1c-eth-l2bdbasemaclrn-pdrdisc
126 | | ... | framesize=${1518} | min_rate=${10000} | wt=1 | rxq=1
127 | | [Tags] | 1518B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
128 | | [Documentation]
129 | | ... | [Cfg] DUT runs L2BD switching config with with\
130 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
131 | | ... | [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE\
132 | | ... | linerate, step 10kpps, LT=0.5%.
133 | | [Template] | L2 Bridge Domain PDR Binary Search
134
135 | tc05-9000B-1t1c-eth-l2bdbasemaclrn-ndrdisc
136 | | ... | framesize=${9000} | min_rate=${10000} | wt=1 | rxq=1
137 | | [Tags] | 9000B | 1T1C | STHREAD | NDRDISC
138 | | [Documentation]
139 | | ... | [Cfg] DUT runs L2BD switching config with with\
140 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
141 | | ... | [Ver] Find NDR for 9000 Byte frames using binary search start at 10GE\
142 | | ... | linerate, step 10kpps.
143 | | [Template] | L2 Bridge Domain NDR Binary Search
144
145 | tc06-9000B-1t1c-eth-l2bdbasemaclrn-pdrdisc
146 | | ... | framesize=${9000} | min_rate=${10000} | wt=1 | rxq=1
147 | | [Tags] | 9000B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
148 | | [Documentation]
149 | | ... | [Cfg] DUT runs L2BD switching config with with\
150 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
151 | | ... | [Ver] Find PDR for 9000 Byte frames using binary search start at 10GE\
152 | | ... | linerate, step 10kpps, LT=0.5%.
153 | | [Template] | L2 Bridge Domain PDR Binary Search
154
155 | tc07-64B-2t2c-eth-l2bdbasemaclrn-ndrdisc
156 | | ... | framesize=${64} | min_rate=${100000} | wt=2 | rxq=1
157 | | [Tags] | 64B | 2T2C | MTHREAD | NDRDISC
158 | | [Documentation]
159 | | ... | [Cfg] DUT runs L2BD switching config with with\
160 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port.
161 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 10GE\
162 | | ... | linerate, step 100kpps.
163 | | [Template] | L2 Bridge Domain NDR Binary Search
164
165 | tc08-64B-2t2c-eth-l2bdbasemaclrn-pdrdisc
166 | | ... | framesize=${64} | min_rate=${100000} | wt=2 | rxq=1
167 | | [Tags] | 64B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
168 | | [Documentation]
169 | | ... | [Cfg] DUT runs L2BD switching config with with\
170 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port.
171 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 10GE\
172 | | ... | linerate, step 100kpps, LT=0.5%.
173 | | [Template] | L2 Bridge Domain PDR Binary Search
174
175 | tc09-1518B-2t2c-eth-l2bdbasemaclrn-ndrdisc
176 | | ... | framesize=${1518} | min_rate=${10000} | wt=2 | rxq=1
177 | | [Tags] | 1518B | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
178 | | [Documentation]
179 | | ... | [Cfg] DUT runs L2BD switching config with with\
180 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port.
181 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE\
182 | | ... | linerate, step 10kpps.
183 | | [Template] | L2 Bridge Domain NDR Binary Search
184
185 | tc10-1518B-2t2c-eth-l2bdbasemaclrn-pdrdisc
186 | | ... | framesize=${1518} | min_rate=${10000} | wt=2 | rxq=1
187 | | [Tags] | 1518B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
188 | | [Documentation]
189 | | ... | [Cfg] DUT runs L2BD switching config with with\
190 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port.
191 | | ... | [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE\
192 | | ... | linerate, step 10kpps, LT=0.5%.
193 | | [Template] | L2 Bridge Domain PDR Binary Search
194
195 | tc11-9000B-2t2c-eth-l2bdbasemaclrn-ndrdisc
196 | | ... | framesize=${9000} | min_rate=${10000} | wt=2 | rxq=1
197 | | [Tags] | 9000B | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
198 | | [Documentation]
199 | | ... | [Cfg] DUT runs L2BD switching config with with\
200 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port.
201 | | ... | [Ver] Find NDR for 9000 Byte frames using binary search start at 10GE\
202 | | ... | linerate, step 10kpps.
203 | | [Template] | L2 Bridge Domain NDR Binary Search
204
205 | tc12-9000B-2t2c-eth-l2bdbasemaclrn-pdrdisc
206 | | ... | framesize=${9000} | min_rate=${10000} | wt=2 | rxq=1
207 | | [Tags] | 9000B | 2T2C | MTHREAD | PDRDISC | SKIP_PATCH
208 | | [Documentation]
209 | | ... | [Cfg] DUT runs L2BD switching config with with\
210 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port.
211 | | ... | [Ver] Find PDR for 9000 Byte frames using binary search start at 10GE\
212 | | ... | linerate, step 10kpps, LT=0.5%.
213 | | [Template] | L2 Bridge Domain PDR Binary Search
214
215 | tc13-64B-4t4c-eth-l2bdbasemaclrn-ndrdisc
216 | | ... | framesize=${64} | min_rate=${100000} | wt=4 | rxq=2
217 | | [Tags] | 64B | 4T4C | MTHREAD | NDRDISC
218 | | [Documentation]
219 | | ... | [Cfg] DUT runs L2BD switching config with with\
220 | | ... | 4 threads, 4 phy cores, 2 receive queues per NIC port.
221 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 10GE\
222 | | ... | linerate, step 100kpps.
223 | | [Template] | L2 Bridge Domain NDR Binary Search
224
225 | tc14-64B-4t4c-eth-l2bdbasemaclrn-pdrdisc
226 | | ... | framesize=${64} | min_rate=${100000} | wt=4 | rxq=2
227 | | [Tags] | 64B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
228 | | [Documentation]
229 | | ... | [Cfg] DUT runs L2BD switching config with with\
230 | | ... | 4 threads, 4 phy cores, 2 receive queues per NIC port.
231 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 10GE\
232 | | ... | linerate, step 100kpps, LT=0.5%.
233 | | [Template] | L2 Bridge Domain PDR Binary Search
234
235 | tc15-1518B-4t4c-eth-l2bdbasemaclrn-ndrdisc
236 | | ... | framesize=${1518} | min_rate=${10000} | wt=4 | rxq=2
237 | | [Tags] | 1518B | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
238 | | [Documentation]
239 | | ... | [Cfg] DUT runs L2BD switching config with with\
240 | | ... | 4 threads, 4 phy cores, 2 receive queues per NIC port.
241 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE\
242 | | ... | linerate, step 10kpps.
243 | | [Template] | L2 Bridge Domain NDR Binary Search
244
245 | tc16-1518B-4t4c-eth-l2bdbasemaclrn-pdrdisc
246 | | ... | framesize=${1518} | min_rate=${10000} | wt=4 | rxq=2
247 | | [Tags] | 1518B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
248 | | [Documentation]
249 | | ... | [Cfg] DUT runs L2BD switching config with with\
250 | | ... | 4 threads, 4 phy cores, 2 receive queues per NIC port.
251 | | ... | [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE\
252 | | ... | linerate, step 10kpps, LT=0.5%.
253 | | [Template] | L2 Bridge Domain PDR Binary Search
254
255 | tc17-9000B-4t4c-eth-l2bdbasemaclrn-ndrdisc
256 | | ... | framesize=${9000} | min_rate=${10000} | wt=4 | rxq=2
257 | | [Tags] | 9000B | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
258 | | [Documentation]
259 | | ... | [Cfg] DUT runs L2BD switching config with with\
260 | | ... | 4 threads, 4 phy cores, 2 receive queues per NIC port.
261 | | ... | [Ver] Find NDR for 9000 Byte frames using binary search start at 10GE\
262 | | ... | linerate, step 10kpps.
263 | | [Template] | L2 Bridge Domain NDR Binary Search
264
265 | tc18-9000B-4t4c-eth-l2bdbasemaclrn-pdrdisc
266 | | ... | framesize=${9000} | min_rate=${10000} | wt=4 | rxq=2
267 | | [Tags] | 9000B | 4T4C | MTHREAD | PDRDISC | SKIP_PATCH
268 | | [Documentation]
269 | | ... | [Cfg] DUT runs L2BD switching config with with\
270 | | ... | 4 threads, 4 phy cores, 2 receive queues per NIC port.
271 | | ... | [Ver] Find PDR for 9000 Byte frames using binary search start at 10GE\
272 | | ... | linerate, step 10kpps, LT=0.5%.
273 | | [Template] | L2 Bridge Domain PDR Binary Search