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