CSIT-1033: MRR Tests: L2, x710
[csit.git] / tests / vpp / perf / l2 / 10ge2p1x710-eth-l2bdscale1mmaclrn-mrr.robot
1 # Copyright (c) 2018 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 | MRR
18 | ... | NIC_Intel-X710 | ETH | L2BDMACLRN | SCALE | L2BDBASE | FIB_1M
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 mrr test
27 | ...
28 | Documentation | *Raw results for 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 | ... | X710 by Intel.
36 | ... | *[Ver] TG verification:* In MaxReceivedRate tests TG sends traffic\
37 | ... | at line rate and reports total received/sent packets over trial period.\
38 | ... | Test packets are generated by TG on\
39 | ... | links to DUTs. TG traffic profile contains two L3 flow-groups\
40 | ... | (flow-group per direction, 500k flows per flow-group) with all packets\
41 | ... | containing Ethernet header, IPv4 header with IP protocol=61 and static\
42 | ... | payload. MAC addresses ranges are incremented as follows:
43 | ... | port01_src ca:fe:00:00:00:00 - port01_src ca:fe:00:07:a1:1f,\
44 | ... | port01_dst fa:ce:00:00:00:00 - port01_dst fa:ce:00:07:a1:1f,\
45 | ... | port02_src fa:ce:00:00:00:00 - port02_src fa:ce:00:07:a1:1f,\
46 | ... | port02_dst ca:fe:00:00:00:00 - port02_dst ca:fe:00:07:a1:1f,\
47 | ... | *[Ref] Applicable standard specifications:* RFC2544.
48
49 *** Variables ***
50 # X710-DA2 bandwidth limit
51 | ${s_limit}= | ${10000000000}
52 # Traffic profile:
53 | ${traffic_profile}= | trex-sl-3n-ethip4-macsrc500kdst500k
54
55 *** Keywords ***
56 | Check RR for L2BD eth-l2bdscale
57 | | [Documentation]
58 | | ... | [Cfg] DUT runs L2BD config with ${wt} thread(s), ${wt}\
59 | | ... | phy core(s), ${rxq} receive queue(s) per NIC port.
60 | | ... | [Ver] Measure MaxReceivedRate for ${framesize} frames using single\
61 | | ... | trial throughput test.
62 | | ...
63 | | [Arguments] | ${framesize} | ${wt} | ${rxq}
64 | | ...
65 | | # Test Variables required for test teardown
66 | | Set Test Variable | ${framesize}
67 | | ${get_framesize}= | Get Frame Size | ${framesize}
68 | | ${max_rate}= | Calculate pps | ${s_limit} | ${get_framesize}
69 | | ...
70 | | Given Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
71 | | And Add PCI devices to DUTs in 3-node single link topology
72 | | And Run Keyword If | ${get_framesize} < ${1522}
73 | | ... | Add no multi seg to all DUTs
74 | | And Apply startup configuration on all VPP DUTs
75 | | When Initialize L2 bridge domain in 3-node circular topology
76 | | Then Traffic should pass with maximum rate | ${perf_trial_duration}
77 | | ... | ${max_rate}pps | ${framesize} | ${traffic_profile}
78
79 *** Test Cases ***
80 | tc01-64B-1t1c-eth-l2bdscale1mmaclrn-mrr
81 | | [Documentation]
82 | | ... | [Cfg] DUT runs L2BD switching config with with\
83 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
84 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
85 | | ... | throughput test.
86 | | ...
87 | | [Tags] | 64B | 1T1C | STHREAD
88 | | [Template] | Check RR for L2BD eth-l2bdscale
89 | | framesize=${64} | wt=1 | rxq=1
90
91 | tc02-1518B-1t1c-eth-l2bdscale1mmaclrn-mrr
92 | | [Documentation]
93 | | ... | [Cfg] DUT runs L2BD switching config with with\
94 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
95 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
96 | | ... | throughput test.
97 | | ...
98 | | [Tags] | 1518B | 1T1C | STHREAD
99 | | ...
100 | | [Template] | Check RR for L2BD eth-l2bdscale
101 | | framesize=${1518} | wt=1 | rxq=1
102
103 | tc03-9000B-1t1c-eth-l2bdscale1mmaclrn-mrr
104 | | [Documentation]
105 | | ... | [Cfg] DUT runs L2BD switching config with with\
106 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
107 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
108 | | ... | throughput test.
109 | | ...
110 | | [Tags] | 9000B | 1T1C | STHREAD
111 | | ...
112 | | [Template] | Check RR for L2BD eth-l2bdscale
113 | | framesize=${9000} | wt=1 | rxq=1
114
115 | tc04-IMIX-1t1c-eth-l2bdscale1mmaclrn-mrr
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] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
120 | | ... | throughput test.
121 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
122 | | ...
123 | | [Tags] | IMIX | 1T1C | STHREAD
124 | | ...
125 | | [Template] | Check RR for L2BD eth-l2bdscale
126 | | framesize=IMIX_v4_1 | wt=1 | rxq=1
127
128 | tc05-64B-2t2c-eth-l2bdscale1mmaclrn-mrr
129 | | [Documentation]
130 | | ... | [Cfg] DUT runs L2BD switching config with with\
131 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port.
132 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
133 | | ... | throughput test.
134 | | ...
135 | | [Tags] | 64B | 2T2C | MTHREAD
136 | | ...
137 | | [Template] | Check RR for L2BD eth-l2bdscale
138 | | framesize=${64} | wt=2 | rxq=1
139
140 | tc06-1518B-2t2c-eth-l2bdscale1mmaclrn-mrr
141 | | [Documentation]
142 | | ... | [Cfg] DUT runs L2BD switching config with with\
143 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port.
144 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
145 | | ... | throughput test.
146 | | ...
147 | | [Tags] | 1518B | 2T2C | MTHREAD
148 | | ...
149 | | [Template] | Check RR for L2BD eth-l2bdscale
150 | | framesize=${1518} | wt=2 | rxq=1
151
152 | tc07-9000B-2t2c-eth-l2bdscale1mmaclrn-mrr
153 | | [Documentation]
154 | | ... | [Cfg] DUT runs L2BD switching config with with\
155 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port.
156 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
157 | | ... | throughput test.
158 | | ...
159 | | [Tags] | 9000B | 2T2C | MTHREAD
160 | | ...
161 | | [Template] | Check RR for L2BD eth-l2bdscale
162 | | framesize=${9000} | wt=2 | rxq=1
163
164 | tc08-9000B-2t2c-eth-l2bdscale1mmaclrn-mrr
165 | | [Documentation]
166 | | ... | [Cfg] DUT runs L2BD switching config with with\
167 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port.
168 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
169 | | ... | throughput test.
170 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
171 | | ...
172 | | [Tags] | IMIX | 2T2C | MTHREAD
173 | | ...
174 | | [Template] | Check RR for L2BD eth-l2bdscale
175 | | framesize=IMIX_v4_1 | wt=2 | rxq=1
176
177 | tc09-64B-4t4c-eth-l2bdscale1mmaclrn-mrr
178 | | [Documentation]
179 | | ... | [Cfg] DUT runs L2BD switching config with with\
180 | | ... | 4 threads, 4 phy cores, 2 receive queues per NIC port.
181 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
182 | | ... | throughput test.
183 | | ...
184 | | [Tags] | 64B | 4T4C | MTHREAD
185 | | ...
186 | | [Template] | Check RR for L2BD eth-l2bdscale
187 | | framesize=${64} | wt=4 | rxq=2
188
189 | tc10-1518B-4t4c-eth-l2bdscale1mmaclrn-mrr
190 | | [Documentation]
191 | | ... | [Cfg] DUT runs L2BD switching config with with\
192 | | ... | 4 threads, 4 phy cores, 2 receive queues per NIC port.
193 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
194 | | ... | throughput test.
195 | | ...
196 | | [Tags] | 1518B | 4T4C | MTHREAD
197 | | ...
198 | | [Template] | Check RR for L2BD eth-l2bdscale
199 | | framesize=${1518} | wt=4 | rxq=2
200
201 | tc11-9000B-4t4c-eth-l2bdscale1mmaclrn-mrr
202 | | [Documentation]
203 | | ... | [Cfg] DUT runs L2BD switching config with with\
204 | | ... | 4 threads, 4 phy cores, 2 receive queues per NIC port.
205 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
206 | | ... | throughput test.
207 | | ...
208 | | [Tags] | 9000B | 4T4C | MTHREAD
209 | | ...
210 | | [Template] | Check RR for L2BD eth-l2bdscale
211 | | framesize=${9000} | wt=4 | rxq=2
212
213 | tc12-IMIX-4t4c-eth-l2bdscale1mmaclrn-mrr
214 | | [Documentation]
215 | | ... | [Cfg] DUT runs L2BD switching config with with\
216 | | ... | 4 threads, 4 phy cores, 2 receive queues per NIC port.
217 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
218 | | ... | throughput test.
219 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
220 | | ...
221 | | [Tags] | IMIX | 4T4C | MTHREAD
222 | | ...
223 | | [Template] | Check RR for L2BD eth-l2bdscale
224 | | framesize=IMIX_v4_1 | wt=4 | rxq=2