CSIT-662: KWI - KW renaming
[csit.git] / tests / perf / 40ge2p1xl710-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 | Library | resources.libraries.python.NodePath
17 | ...
18 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDRDISC
19 | ... | NIC_Intel-XL710 | ETH | L2BDMACLRN | BASE
20 | Suite Setup | Set up 3-node performance topology with DUT's NIC model
21 | ... | L2 | Intel-XL710
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 2p40GE NIC\
35 | ... | XL710-DA2 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 # XL710-DA2 bandwidth limit ~49Gbps/2=24.5Gbps
52 | ${s_24.5G} | ${24500000000}
53 # XL710-DA2 Mpps limit 37.5Mpps/2=18.75Mpps
54 | ${s_18.75Mpps} | ${18750000}
55 # Traffic profile:
56 | ${traffic_profile} | trex-sl-3n-ethip4-ip4src254
57
58 *** Keywords ***
59 | L2 Bridge Domain NDR Binary Search BW limit
60 | | [Arguments] | ${framesize} | ${min_rate} | ${wt} | ${rxq} | ${s_limit}
61 | | Set Test Variable | ${framesize}
62 | | Set Test Variable | ${min_rate}
63 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
64 | | ${binary_min}= | Set Variable | ${min_rate}
65 | | ${binary_max}= | Set Variable | ${max_rate}
66 | | ${threshold}= | Set Variable | ${min_rate}
67 | | Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
68 | | Add PCI devices to DUTs in 3-node single link topology
69 | | ${get_framesize}= | Get Frame Size | ${framesize}
70 | | Run Keyword If | ${get_framesize} < ${1522} | Add no multi seg to all DUTs
71 | | Apply startup configuration on all VPP DUTs
72 | | Initialize L2 bridge domain in 3-node circular topology
73 | | Find NDR using binary search and pps
74 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
75 | | ... | ${min_rate} | ${max_rate} | ${threshold}
76
77 | L2 Bridge Domain NDR Binary Search
78 | | [Arguments] | ${framesize} | ${min_rate} | ${wt} | ${rxq} | ${s_limit}
79 | | Set Test Variable | ${framesize}
80 | | Set Test Variable | ${min_rate}
81 | | ${max_rate}= | Set Variable | ${s_limit}
82 | | ${binary_min}= | Set Variable | ${min_rate}
83 | | ${binary_max}= | Set Variable | ${max_rate}
84 | | ${threshold}= | Set Variable | ${min_rate}
85 | | Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
86 | | Add PCI devices to DUTs in 3-node single link topology
87 | | ${get_framesize}= | Get Frame Size | ${framesize}
88 | | Run Keyword If | ${get_framesize} < ${1522} | Add no multi seg to all DUTs
89 | | Apply startup configuration on all VPP DUTs
90 | | Initialize L2 bridge domain in 3-node circular topology
91 | | Find NDR using binary search and pps
92 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
93 | | ... | ${min_rate} | ${max_rate} | ${threshold}
94
95 | L2 Bridge Domain PDR Binary Search BW limit
96 | | [Arguments] | ${framesize} | ${min_rate} | ${wt} | ${rxq} | ${s_limit}
97 | | Set Test Variable | ${framesize}
98 | | Set Test Variable | ${min_rate}
99 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
100 | | ${binary_min}= | Set Variable | ${min_rate}
101 | | ${binary_max}= | Set Variable | ${max_rate}
102 | | ${threshold}= | Set Variable | ${min_rate}
103 | | Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
104 | | Add PCI devices to DUTs in 3-node single link topology
105 | | ${get_framesize}= | Get Frame Size | ${framesize}
106 | | Run Keyword If | ${get_framesize} < ${1522} | Add no multi seg to all DUTs
107 | | Apply startup configuration on all VPP DUTs
108 | | Initialize L2 bridge domain in 3-node circular topology
109 | | Find PDR using binary search and pps
110 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
111 | | ... | ${min_rate} | ${max_rate} | ${threshold}
112 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
113
114 | L2 Bridge Domain PDR Binary Search
115 | | [Arguments] | ${framesize} | ${min_rate} | ${wt} | ${rxq} | ${s_limit}
116 | | Set Test Variable | ${framesize}
117 | | Set Test Variable | ${min_rate}
118 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
119 | | ${binary_min}= | Set Variable | ${min_rate}
120 | | ${binary_max}= | Set Variable | ${max_rate}
121 | | ${threshold}= | Set Variable | ${min_rate}
122 | | Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
123 | | Add PCI devices to DUTs in 3-node single link topology
124 | | ${get_framesize}= | Get Frame Size | ${framesize}
125 | | Run Keyword If | ${get_framesize} < ${1522} | Add no multi seg to all DUTs
126 | | Apply startup configuration on all VPP DUTs
127 | | Initialize L2 bridge domain in 3-node circular topology
128 | | Find PDR using binary search and pps
129 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
130 | | ... | ${min_rate} | ${max_rate} | ${threshold}
131 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
132
133 *** Test Cases ***
134 | tc01-64B-1t1c-eth-l2bdbasemaclrn-ndrdisc
135 | | ... | framesize=${64} | min_rate=${100000} | wt=1 | rxq=1
136 | | ... | s_limit=${s_18.75Mpps}
137 | | [Tags] | 64B | 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 64 Byte frames using binary search start at\
142 | | ... | 18.75Mpps rate, step 100kpps.
143 | | [Template] | L2 Bridge Domain NDR Binary Search
144
145 | tc03-1518B-1t1c-eth-l2bdbasemaclrn-ndrdisc
146 | | ... | framesize=${1518} | min_rate=${10000} | wt=1 | rxq=1
147 | | ... | s_limit=${s_24.5G}
148 | | [Tags] | 1518B | 1T1C | STHREAD | NDRDISC
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 NDR for 1518 Byte frames using binary search start at\
153 | | ... | 24.5G rate, step 10kpps.
154 | | [Template] | L2 Bridge Domain NDR Binary Search BW limit
155
156 | tc07-64B-2t2c-eth-l2bdbasemaclrn-ndrdisc
157 | | ... | framesize=${64} | min_rate=${100000} | wt=2 | rxq=1
158 | | ... | s_limit=${s_18.75Mpps}
159 | | [Tags] | 64B | 2T2C | MTHREAD | NDRDISC
160 | | [Documentation]
161 | | ... | [Cfg] DUT runs L2BD switching config with with\
162 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port.
163 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at\
164 | | ... | 18.75Mpps rate, step 100kpps.
165 | | [Template] | L2 Bridge Domain NDR Binary Search
166
167 | tc09-1518B-2t2c-eth-l2bdbasemaclrn-ndrdisc
168 | | ... | framesize=${1518} | min_rate=${10000} | wt=2 | rxq=1
169 | | ... | s_limit=${s_24.5G}
170 | | [Tags] | 1518B | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
171 | | [Documentation]
172 | | ... | [Cfg] DUT runs L2BD switching config with with\
173 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port.
174 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at\
175 | | ... | 24.5G rate, step 10kpps.
176 | | [Template] | L2 Bridge Domain NDR Binary Search BW limit
177
178 | tc13-64B-4t4c-eth-l2bdbasemaclrn-ndrdisc
179 | | ... | framesize=${64} | min_rate=${100000} | wt=4 | rxq=2
180 | | ... | s_limit=${s_18.75Mpps}
181 | | [Tags] | 64B | 4T4C | MTHREAD | NDRDISC
182 | | [Documentation]
183 | | ... | [Cfg] DUT runs L2BD switching config with with\
184 | | ... | 4 threads, 4 phy cores, 2 receive queues per NIC port.
185 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at\
186 | | ... | 18.75Mpps rate, step 100kpps.
187 | | [Template] | L2 Bridge Domain NDR Binary Search
188
189 | tc15-1518B-4t4c-eth-l2bdbasemaclrn-ndrdisc
190 | | ... | framesize=${1518} | min_rate=${10000} | wt=4 | rxq=2
191 | | ... | s_limit=${s_24.5G}
192 | | [Tags] | 1518B | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
193 | | [Documentation]
194 | | ... | [Cfg] DUT runs L2BD switching config with with\
195 | | ... | 4 threads, 4 phy cores, 2 receive queues per NIC port.
196 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at\
197 | | ... | 24.5G rate, step 10kpps.
198 | | [Template] | L2 Bridge Domain NDR Binary Search BW limit
199
200 | tc19-IMIX-1t1c-eth-l2bdbasemaclrn-ndrdisc
201 | | ... | framesize=IMIX_v4_1 | min_rate=${100000} | wt=1 | rxq=1
202 | | ... | s_limit=${s_24.5G}
203 | | [Tags] | IMIX | 1T1C | STHREAD | NDRDISC
204 | | [Documentation]
205 | | ... | [Cfg] DUT runs L2BD switching config with with\
206 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
207 | | ... | [Ver] Find NDR for IMIX_v4_1 frames using binary search start at\
208 | | ... | 24.5G rate, step 100kpps.
209 | | [Template] | L2 Bridge Domain NDR Binary Search BW limit
210
211 | tc20-IMIX-2t2c-eth-l2bdbasemaclrn-ndrdisc
212 | | ... | framesize=IMIX_v4_1 | min_rate=${100000} | wt=2 | rxq=1
213 | | ... | s_limit=${s_24.5G}
214 | | [Tags] | IMIX | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
215 | | [Documentation]
216 | | ... | [Cfg] DUT runs L2BD switching config with with\
217 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port.
218 | | ... | [Ver] Find NDR for IMIX_v4_1 frames using binary search start at\
219 | | ... | 24.5G rate, step 100kpps.
220 | | [Template] | L2 Bridge Domain NDR Binary Search BW limit
221
222 | tc21-IMIX-4t4c-eth-l2bdbasemaclrn-ndrdisc
223 | | ... | framesize=IMIX_v4_1 | min_rate=${100000} | wt=4 | rxq=2
224 | | ... | s_limit=${s_24.5G}
225 | | [Tags] | IMIX | 4T4C | MTHREAD | NDRDISC | 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 NDR for IMIX_v4_1 frames using binary search start at\
230 | | ... | 24.5G rate, step 100kpps.
231 | | [Template] | L2 Bridge Domain NDR Binary Search BW limit