CSIT-786 L2FIB scale testing
[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 Binary Search BW limit
61 | | [Arguments] | ${framesize} | ${min_rate} | ${wt} | ${rxq} | ${s_limit}
62 | | ... | ${search_type}
63 | | Set Test Variable | ${framesize}
64 | | Set Test Variable | ${min_rate}
65 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
66 | | ${binary_min}= | Set Variable | ${min_rate}
67 | | ${binary_max}= | Set Variable | ${max_rate}
68 | | ${threshold}= | Set Variable | ${min_rate}
69 | | Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
70 | | Add PCI devices to DUTs in 3-node single link topology
71 | | ${get_framesize}= | Get Frame Size | ${framesize}
72 | | Run Keyword If | ${get_framesize} < ${1522} | Add no multi seg to all DUTs
73 | | Add DPDK dev default RXD to all DUTs | 2048
74 | | Add DPDK dev default TXD to all DUTs | 2048
75 | | Apply startup configuration on all VPP DUTs
76 | | Initialize L2 bridge domain in 3-node circular topology
77 | | Run Keyword If | '${search_type}' == 'NDR'
78 | | ... | Find NDR using binary search and pps
79 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
80 | | ... | ${min_rate} | ${max_rate} | ${threshold}
81 | | ... | ELSE IF | '${search_type}' == 'PDR'
82 | | ... | Find PDR using binary search and pps
83 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
84 | | ... | ${min_rate} | ${max_rate} | ${threshold}
85 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
86
87 | L2 Bridge Domain Binary Search
88 | | [Arguments] | ${framesize} | ${min_rate} | ${wt} | ${rxq} | ${s_limit}
89 | | ... | ${search_type}
90 | | Set Test Variable | ${framesize}
91 | | Set Test Variable | ${min_rate}
92 | | ${max_rate}= | Set Variable | ${s_limit}
93 | | ${binary_min}= | Set Variable | ${min_rate}
94 | | ${binary_max}= | Set Variable | ${max_rate}
95 | | ${threshold}= | Set Variable | ${min_rate}
96 | | Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
97 | | Add PCI devices to DUTs in 3-node single link topology
98 | | ${get_framesize}= | Get Frame Size | ${framesize}
99 | | Run Keyword If | ${get_framesize} < ${1522} | Add no multi seg to all DUTs
100 | | Add DPDK dev default RXD to all DUTs | 2048
101 | | Add DPDK dev default TXD to all DUTs | 2048
102 | | Apply startup configuration on all VPP DUTs
103 | | Initialize L2 bridge domain in 3-node circular topology
104 | | Run Keyword If | '${search_type}' == 'NDR'
105 | | ... | Find NDR using binary search and pps
106 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
107 | | ... | ${min_rate} | ${max_rate} | ${threshold}
108 | | ... | ELSE IF | '${search_type}' == 'PDR'
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 *** Test Cases ***
115 | tc01-64B-1t1c-eth-l2bdbasemaclrn-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 64 Byte frames using binary search start at\
120 | | ... | 18.75Mpps rate, step 100kpps.
121 | | [Tags] | 64B | 1T1C | STHREAD | NDRDISC
122 | | [Template] | L2 Bridge Domain Binary Search
123 | | framesize=${64} | min_rate=${100000} | wt=1 | rxq=1
124 | | ... | s_limit=${s_18.75Mpps} | search_type=NDR
125
126 | tc03-1518B-1t1c-eth-l2bdbasemaclrn-ndrdisc
127 | | [Documentation]
128 | | ... | [Cfg] DUT runs L2BD switching config with with\
129 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
130 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at\
131 | | ... | 24.5G rate, step 10kpps.
132 | | [Tags] | 1518B | 1T1C | STHREAD | NDRDISC
133 | | [Template] | L2 Bridge Domain Binary Search BW limit
134 | | framesize=${1518} | min_rate=${10000} | wt=1 | rxq=1
135 | | ... | s_limit=${s_24.5G} | search_type=NDR
136
137 | tc07-64B-2t2c-eth-l2bdbasemaclrn-ndrdisc
138 | | [Documentation]
139 | | ... | [Cfg] DUT runs L2BD switching config with with\
140 | | ... | 2 threads, 2 phy cores, 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 | | [Tags] | 64B | 2T2C | MTHREAD | NDRDISC
144 | | [Template] | L2 Bridge Domain Binary Search
145 | | framesize=${64} | min_rate=${100000} | wt=2 | rxq=1
146 | | ... | s_limit=${s_18.75Mpps} | search_type=NDR
147
148 | tc09-1518B-2t2c-eth-l2bdbasemaclrn-ndrdisc
149 | | [Documentation]
150 | | ... | [Cfg] DUT runs L2BD switching config with with\
151 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port.
152 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at\
153 | | ... | 24.5G rate, step 10kpps.
154 | | [Tags] | 1518B | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
155 | | [Template] | L2 Bridge Domain Binary Search BW limit
156 | | framesize=${1518} | min_rate=${10000} | wt=2 | rxq=1
157 | | ... | s_limit=${s_24.5G} | search_type=NDR
158
159 | tc13-64B-4t4c-eth-l2bdbasemaclrn-ndrdisc
160 | | [Documentation]
161 | | ... | [Cfg] DUT runs L2BD switching config with with\
162 | | ... | 4 threads, 4 phy cores, 2 receive queues per NIC port.
163 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at\
164 | | ... | 18.75Mpps rate, step 100kpps.
165 | | [Tags] | 64B | 4T4C | MTHREAD | NDRDISC
166 | | [Template] | L2 Bridge Domain Binary Search
167 | | framesize=${64} | min_rate=${100000} | wt=4 | rxq=2
168 | | ... | s_limit=${s_18.75Mpps} | search_type=NDR
169
170 | tc15-1518B-4t4c-eth-l2bdbasemaclrn-ndrdisc
171 | | [Documentation]
172 | | ... | [Cfg] DUT runs L2BD switching config with with\
173 | | ... | 4 threads, 4 phy cores, 2 receive queues per NIC port.
174 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at\
175 | | ... | 24.5G rate, step 10kpps.
176 | | [Tags] | 1518B | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
177 | | [Template] | L2 Bridge Domain Binary Search BW limit
178 | | framesize=${1518} | min_rate=${10000} | wt=4 | rxq=2
179 | | ... | s_limit=${s_24.5G} | search_type=NDR
180
181 | tc19-IMIX-1t1c-eth-l2bdbasemaclrn-ndrdisc
182 | | [Documentation]
183 | | ... | [Cfg] DUT runs L2BD switching config with with\
184 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
185 | | ... | [Ver] Find NDR for IMIX_v4_1 frames using binary search start at\
186 | | ... | 24.5G rate, step 100kpps.
187 | | [Tags] | IMIX | 1T1C | STHREAD | NDRDISC
188 | | [Template] | L2 Bridge Domain Binary Search BW limit
189 | | framesize=IMIX_v4_1 | min_rate=${100000} | wt=1 | rxq=1
190 | | ... | s_limit=${s_24.5G} | search_type=NDR
191
192 | tc20-IMIX-2t2c-eth-l2bdbasemaclrn-ndrdisc
193 | | [Documentation]
194 | | ... | [Cfg] DUT runs L2BD switching config with with\
195 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port.
196 | | ... | [Ver] Find NDR for IMIX_v4_1 frames using binary search start at\
197 | | ... | 24.5G rate, step 100kpps.
198 | | [Tags] | IMIX | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
199 | | [Template] | L2 Bridge Domain Binary Search BW limit
200 | | framesize=IMIX_v4_1 | min_rate=${100000} | wt=2 | rxq=1
201 | | ... | s_limit=${s_24.5G} | search_type=NDR
202
203 | tc21-IMIX-4t4c-eth-l2bdbasemaclrn-ndrdisc
204 | | [Documentation]
205 | | ... | [Cfg] DUT runs L2BD switching config with with\
206 | | ... | 4 threads, 4 phy cores, 2 receive queues per NIC port.
207 | | ... | [Ver] Find NDR for IMIX_v4_1 frames using binary search start at\
208 | | ... | 24.5G rate, step 100kpps.
209 | | [Tags] | IMIX | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
210 | | [Template] | L2 Bridge Domain Binary Search BW limit
211 | | framesize=IMIX_v4_1 | min_rate=${100000} | wt=4 | rxq=2
212 | | ... | s_limit=${s_24.5G} | search_type=NDR
213