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