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