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-X520-DA2 | BASE | DOT1Q | L2BDMACLRN
20 | Suite Setup | Set up 3-node performance topology with DUT's NIC model
21 | ... | L2 | Intel-X520-DA2
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 with 802.1q 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 | ... | 802.1q tagging is applied on link between DUT1 and DUT2.
33 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with L2 bridge\
34 | ... | domain and MAC learning enabled. DUT1 and DUT2 tested with 2p10GE NIC
35 | ... | X520 Niantic 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, 254 flows per flow-group) with all packets\
41 | ... | containing Ethernet header, IPv4 header with IP protocol=61 and static\
42 | ... | payload. MAC addresses are matching MAC addresses of the TG node\
44 | ... | *[Ref] Applicable standard specifications:* RFC2544.
48 | ${tag_rewrite}= | pop-1
49 | ${vlan_overhead}= | ${4}
50 | ${avg_imix_framesize}= | ${357.833}
51 # X520-DA2 bandwidth limit
52 | ${s_limit} | ${10000000000}
57 | ${traffic_profile} | trex-sl-3n-ethip4-ip4src254
60 | Check RR for L2 dot1q-l2bdbasemaclrn
62 | | ... | [Cfg] DUT runs L2BD config with VLAN with ${wt} thread(s), ${wt}\
63 | | ... | phy core(s), ${rxq} receive queue(s) per NIC port.
64 | | ... | [Ver] Measure MaxReceivedRate for ${framesize} frames using single\
65 | | ... | trial throughput test.
67 | | [Arguments] | ${framesize} | ${wt} | ${rxq}
69 | | # Test Variables required for test teardown
70 | | Set Test Variable | ${framesize}
71 | | ${get_framesize}= | Get Frame Size | ${framesize}
72 | | ${max_rate}= | Calculate pps | ${s_limit}
73 | | ... | ${get_framesize} + ${vlan_overhead}
75 | | Given Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
76 | | And Add PCI devices to DUTs in 3-node single link topology
77 | | And Run Keyword If | ${get_framesize} < ${1522}
78 | | ... | Add no multi seg to all DUTs
79 | | And Apply startup configuration on all VPP DUTs
80 | | When Initialize L2 bridge domains with VLAN dot1q sub-interfaces in a 3-node circular topology
81 | | ... | ${bd_id1} | ${bd_id2} | ${subid} | ${tag_rewrite}
82 | | Then Traffic should pass with maximum rate | ${perf_trial_duration}
83 | | ... | ${max_rate}pps | ${framesize} | ${traffic_profile}
86 | tc01-64B-1t1c-dot1q-l2bdbasemaclrn-mrr
88 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,\
89 | | ... | 1 receive queue per NIC port.
90 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
91 | | ... | throughput test.
93 | | [Tags] | 64B | 1T1C | STHREAD
95 | | [Template] | Check RR for L2 dot1q-l2bdbasemaclrn
96 | | wt=1 | rxq=1 | framesize=${64}
98 | tc02-1518B-1t1c-dot1q-l2bdbasemaclrn-mrr
100 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,\
101 | | ... | 1 receive queue per NIC port.
102 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
103 | | ... | throughput test.
105 | | [Tags] | 1518B | 1T1C | STHREAD
107 | | [Template] | Check RR for L2 dot1q-l2bdbasemaclrn
108 | | wt=1 | rxq=1 | framesize=${1518}
110 | tc03-9000B-1t1c-dot1q-l2bdbasemaclrn-mrr
112 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,\
113 | | ... | 1 receive queue per NIC port.
114 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
115 | | ... | throughput test.
117 | | [Tags] | 9000B | 1T1C | STHREAD
119 | | [Template] | Check RR for L2 dot1q-l2bdbasemaclrn
120 | | wt=1 | rxq=1 | framesize=${9000}
122 | tc04-IMIX-1t1c-dot1q-l2bdbasemaclrn-mrr
124 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,\
125 | | ... | 1 receive queue per NIC port.
126 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
127 | | ... | throughput test.
128 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
130 | | [Tags] | IMIX | 1T1C | STHREAD
132 | | [Template] | Check RR for L2 dot1q-l2bdbasemaclrn
133 | | wt=1 | rxq=1 | framesize=IMIX_v4_1
135 | tc05-64B-2t2c-dot1q-l2bdbasemaclrn-mrr
137 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,\
138 | | ... | 1 receive queue per NIC port.
139 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
140 | | ... | throughput test.
142 | | [Tags] | 64B | 2T2C | MTHREAD
144 | | [Template] | Check RR for L2 dot1q-l2bdbasemaclrn
145 | | wt=2 | rxq=1 | framesize=${64}
147 | tc06-1518B-2t2c-dot1q-l2bdbasemaclrn-mrr
149 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,\
150 | | ... | 1 receive queue per NIC port.
151 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
152 | | ... | throughput test.
154 | | [Tags] | 1518B | 2T2C | MTHREAD
156 | | [Template] | Check RR for L2 dot1q-l2bdbasemaclrn
157 | | wt=2 | rxq=1 | framesize=${1518}
159 | tc07-9000B-2t2c-dot1q-l2bdbasemaclrn-mrr
161 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,\
162 | | ... | 1 receive queue per NIC port.
163 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
164 | | ... | throughput test.
166 | | [Tags] | 9000B | 2T2C | MTHREAD
168 | | [Template] | Check RR for L2 dot1q-l2bdbasemaclrn
169 | | wt=2 | rxq=1 | framesize=${9000}
171 | tc08-IMIX-2t2c-dot1q-l2bdbasemaclrn-mrr
173 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,\
174 | | ... | 1 receive queue per NIC port.
175 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
176 | | ... | throughput test.
177 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
179 | | [Tags] | IMIX | 2T2C | MTHREAD
181 | | [Template] | Check RR for L2 dot1q-l2bdbasemaclrn
182 | | wt=2 | rxq=1 | framesize=IMIX_v4_1
184 | tc09-64B-4t4c-dot1q-l2bdbasemaclrn-mrr
186 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,\
187 | | ... | 2 receive queues per NIC port.
188 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
189 | | ... | throughput test.
191 | | [Tags] | 64B | 4T4C | MTHREAD
193 | | [Template] | Check RR for L2 dot1q-l2bdbasemaclrn
194 | | wt=4 | rxq=2 | framesize=${64}
196 | tc10-1518B-4t4c-dot1q-l2bdbasemaclrn-mrr
198 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,\
199 | | ... | 2 receive queues per NIC port.
200 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
201 | | ... | throughput test.
203 | | [Tags] | 1518B | 4T4C | MTHREAD
205 | | [Template] | Check RR for L2 dot1q-l2bdbasemaclrn
206 | | wt=4 | rxq=2 | framesize=${1518}
208 | tc11-9000B-4t4c-dot1q-l2bdbasemaclrn-mrr
210 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,\
211 | | ... | 2 receive queues per NIC port.
212 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
213 | | ... | throughput test.
215 | | [Tags] | 9000B | 4T4C | MTHREAD
217 | | [Template] | Check RR for L2 dot1q-l2bdbasemaclrn
218 | | wt=4 | rxq=2 | framesize=${9000}
220 | tc12-IMIX-4t4c-dot1q-l2bdbasemaclrn-mrr
222 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,\
223 | | ... | 2 receive queues per NIC port.
224 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
225 | | ... | throughput test.
226 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
228 | | [Tags] | IMIX | 4T4C | MTHREAD
230 | | [Template] | Check RR for L2 dot1q-l2bdbasemaclrn
231 | | wt=4 | rxq=2 | framesize=IMIX_v4_1