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:
6 # http://www.apache.org/licenses/LICENSE-2.0
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.
15 | Resource | resources/libraries/robot/performance/performance_setup.robot
17 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | MRR
18 | ... | NIC_Intel-X710 | ETH | L2BDMACLRN | BASE | L2BDBASE
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
24 | Test Setup | Set up performance test
25 | Test Teardown | Tear down performance mrr test
27 | Documentation | *Raw results L2BD test cases*
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.
45 # X710 bandwidth limit
46 | ${s_limit}= | ${10000000000}
48 | ${traffic_profile} | trex-sl-3n-ethip4-ip4src254
51 | Check RR for l2bdbasemaclrn
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.
58 | | [Arguments] | ${framesize} | ${wt} | ${rxq}
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}
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}
75 | tc01-64B-1t1c-eth-l2bdbasemaclrn-mrr
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.
82 | | [Tags] | 64B | 1T1C | STHREAD
84 | | [Template] | Check RR for l2bdbasemaclrn
85 | | framesize=${64} | wt=1 | rxq=1
87 | tc02-1518B-1t1c-eth-l2bdbasemaclrn-mrr
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.
94 | | [Tags] | 1518B | 1T1C | STHREAD
96 | | [Template] | Check RR for l2bdbasemaclrn
97 | | framesize=${1518} | wt=1 | rxq=1
99 | tc03-9000B-1t1c-eth-l2bdbasemaclrn-mrr
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.
106 | | [Tags] | 9000B | 1T1C | STHREAD
108 | | [Template] | Check RR for l2bdbasemaclrn
109 | | framesize=${9000} | wt=1 | rxq=1
111 | tc04-IMIX-1t1c-eth-l2bdbasemaclrn-mrr
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)
119 | | [Tags] | IMIX | 1T1C | STHREAD
121 | | [Template] | Check RR for l2bdbasemaclrn
122 | | framesize=IMIX_v4_1 | wt=1 | rxq=1
124 | tc05-64B-2t2c-eth-l2bdbasemaclrn-mrr
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.
131 | | [Tags] | 64B | 2T2C | MTHREAD
133 | | [Template] | Check RR for l2bdbasemaclrn
134 | | framesize=${64} | wt=2 | rxq=1
136 | tc06-1518B-2t2c-eth-l2bdbasemaclrn-mrr
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.
143 | | [Tags] | 1518B | 2T2C | MTHREAD
145 | | [Template] | Check RR for l2bdbasemaclrn
146 | | framesize=${1518} | wt=2 | rxq=1
148 | tc07-9000B-2t2c-eth-l2bdbasemaclrn-mrr
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.
155 | | [Tags] | 9000B | 2T2C | MTHREAD
157 | | [Template] | Check RR for l2bdbasemaclrn
158 | | framesize=${9000} | wt=2 | rxq=1
160 | tc08-IMIX-2t2c-eth-l2bdbasemaclrn-mrr
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)
168 | | [Tags] | IMIX | 2T2C | MTHREAD
170 | | [Template] | Check RR for l2bdbasemaclrn
171 | | framesize=IMIX_v4_1 | wt=2 | rxq=1
173 | tc09-64B-4t4c-eth-l2bdbasemaclrn-mrr
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.
180 | | [Tags] | 64B | 4T4C | MTHREAD
182 | | [Template] | Check RR for l2bdbasemaclrn
183 | | framesize=${64} | wt=4 | rxq=2
185 | tc10-1518B-4t4c-eth-l2bdbasemaclrn-mrr
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.
192 | | [Tags] | 1518B | 4T4C | MTHREAD
194 | | [Template] | Check RR for l2bdbasemaclrn
195 | | framesize=${1518} | wt=4 | rxq=2
197 | tc11-9000B-4t4c-eth-l2bdbasemaclrn-mrr
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.
204 | | [Tags] | 9000B | 4T4C | MTHREAD
206 | | [Template] | Check RR for l2bdbasemaclrn
207 | | framesize=${9000} | wt=4 | rxq=2
209 | tc12-IMIX-4t4c-eth-l2bdbasemaclrn-mrr
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)
217 | | [Tags] | IMIX | 4T4C | MTHREAD
219 | | [Template] | Check RR for l2bdbasemaclrn
220 | | framesize=IMIX_v4_1 | wt=4 | rxq=2