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 | SCALE | L2BDBASE | FIB_10K
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
26 | Test Teardown | Tear down performance mrr test
28 | Documentation | *Raw results for L2BD test cases*
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, 5k 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:00:13:87,\
44 | ... | port01_dst fa:ce:00:00:00:00 - port01_dst fa:ce:00:00:13:87,\
45 | ... | port02_src fa:ce:00:00:00:00 - port02_src fa:ce:00:00:13:87,\
46 | ... | port02_dst ca:fe:00:00:00:00 - port02_dst ca:fe:00:00:13:87,\
47 | ... | *[Ref] Applicable standard specifications:* RFC2544.
50 # X710-DA2 bandwidth limit
51 | ${s_limit}= | ${10000000000}
53 | ${traffic_profile}= | trex-sl-3n-ethip4-macsrc5kdst5k
56 | Check RR for L2BD eth-l2bdscale
57 | | [Arguments] | ${framesize} | ${wt} | ${rxq}
59 | | # Test Variables required for test teardown
60 | | Set Test Variable | ${framesize}
61 | | ${get_framesize}= | Get Frame Size | ${framesize}
62 | | ${max_rate}= | Calculate pps | ${s_limit} | ${get_framesize}
64 | | Given Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
65 | | And Add PCI devices to DUTs in 3-node single link topology
66 | | And Run Keyword If | ${get_framesize} < ${1522}
67 | | ... | Add no multi seg to all DUTs
68 | | And Apply startup configuration on all VPP DUTs
69 | | When Initialize L2 bridge domain in 3-node circular topology
70 | | Then Traffic should pass with maximum rate | ${perf_trial_duration}
71 | | ... | ${max_rate}pps | ${framesize} | ${traffic_profile}
74 | tc01-64B-1t1c-eth-l2dbscale10kmaclrn-mrr
76 | | ... | [Cfg] DUT runs L2BD switching config with with\
77 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
78 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
79 | | ... | throughput test.
81 | | [Tags] | 64B | 1T1C | STHREAD
83 | | [Template] | Check RR for L2BD eth-l2bdscale
84 | | framesize=${64} | wt=1 | rxq=1
86 | tc02-1518B-1t1c-eth-l2dbscale10kmaclrn-mrr
88 | | ... | [Cfg] DUT runs L2BD switching config with with\
89 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
90 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
91 | | ... | throughput test.
93 | | [Tags] | 1518B | 1T1C | STHREAD
95 | | [Template] | Check RR for L2BD eth-l2bdscale
96 | | framesize=${1518} | wt=1 | rxq=1
98 | tc03-9000B-1t1c-eth-l2dbscale10kmaclrn-mrr
100 | | ... | [Cfg] DUT runs L2BD switching config with with\
101 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
102 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
103 | | ... | throughput test.
105 | | [Tags] | 9000B | 1T1C | STHREAD
107 | | [Template] | Check RR for L2BD eth-l2bdscale
108 | | framesize=${9000} | wt=1 | rxq=1
110 | tc04-IMIX-1t1c-eth-l2dbscale10kmaclrn-mrr
112 | | ... | [Cfg] DUT runs L2BD switching config with with\
113 | | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
114 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
115 | | ... | throughput test.
116 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
118 | | [Tags] | IMIX_v4_1 | 1T1C | STHREAD
120 | | [Template] | Check RR for L2BD eth-l2bdscale
121 | | framesize=IMIX_v4_1 | wt=1 | rxq=1
123 | tc05-64B-2t2c-eth-l2dbscale10kmaclrn-mrr
125 | | ... | [Cfg] DUT runs L2BD switching config with with\
126 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port.
127 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
128 | | ... | throughput test.
130 | | [Tags] | 64B | 2T2C | MTHREAD
132 | | [Template] | Check RR for L2BD eth-l2bdscale
133 | | framesize=${64} | wt=2 | rxq=1
135 | tc06-1518B-2t2c-eth-l2dbscale10kmaclrn-mrr
137 | | ... | [Cfg] DUT runs L2BD switching config with with\
138 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port.
139 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
140 | | ... | throughput test.
142 | | [Tags] | 1518B | 2T2C | MTHREAD
144 | | [Template] | Check RR for L2BD eth-l2bdscale
145 | | framesize=${1518} | wt=2 | rxq=1
147 | tc07-9000B-2t2c-eth-l2dbscale10kmaclrn-mrr
149 | | ... | [Cfg] DUT runs L2BD switching config with with\
150 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port.
151 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
152 | | ... | throughput test.
154 | | [Tags] | 9000B | 2T2C | MTHREAD
156 | | [Template] | Check RR for L2BD eth-l2bdscale
157 | | framesize=${9000} | wt=2 | rxq=1
159 | tc08-IMIX-2t2c-eth-l2dbscale10kmaclrn-mrr
161 | | ... | [Cfg] DUT runs L2BD switching config with with\
162 | | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port.
163 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
164 | | ... | throughput test.
165 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
167 | | [Tags] | IMIX_v4_1 | 2T2C | MTHREAD
169 | | [Template] | Check RR for L2BD eth-l2bdscale
170 | | framesize=IMIX_v4_1 | wt=2 | rxq=1
172 | tc09-64B-4t4c-eth-l2dbscale10kmaclrn-mrr
174 | | ... | [Cfg] DUT runs L2BD switching config with with\
175 | | ... | 4 threads, 4 phy cores, 2 receive queues per NIC port.
176 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
177 | | ... | throughput test.
179 | | [Tags] | 64B | 4T4C | MTHREAD
181 | | [Template] | Check RR for L2BD eth-l2bdscale
182 | | framesize=${64} | wt=4 | rxq=2
184 | tc10-1518B-4t4c-eth-l2dbscale10kmaclrn-mrr
186 | | ... | [Cfg] DUT runs L2BD switching config with with\
187 | | ... | 4 threads, 4 phy cores, 2 receive queues per NIC port.
188 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
189 | | ... | throughput test.
191 | | [Tags] | 1518B | 4T4C | MTHREAD
193 | | [Template] | Check RR for L2BD eth-l2bdscale
194 | | framesize=${1518} | wt=4 | rxq=2
196 | tc11-9000B-4t4c-eth-l2dbscale10kmaclrn-mrr
198 | | ... | [Cfg] DUT runs L2BD switching config with with\
199 | | ... | 4 threads, 4 phy cores, 2 receive queues per NIC port.
200 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
201 | | ... | throughput test.
203 | | [Tags] | 9000B | 4T4C | MTHREAD
205 | | [Template] | Check RR for L2BD eth-l2bdscale
206 | | framesize=${9000} | wt=4 | rxq=2
208 | tc12-IMIX-4t4c-eth-l2dbscale10kmaclrn-mrr
210 | | ... | [Cfg] DUT runs L2BD switching config with with\
211 | | ... | 4 threads, 4 phy cores, 2 receive queues per NIC port.
212 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
213 | | ... | throughput test.
214 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
216 | | [Tags] | 9000B | IMIX_v4_1 | MTHREAD
218 | | [Template] | Check RR for L2BD eth-l2bdscale
219 | | framesize=IMIX_v4_1 | wt=4 | rxq=2