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
16 | Resource | resources/libraries/robot/l2/tagging.robot
18 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | MRR
19 | ... | NIC_Intel-X710 | L2XCFWD | BASE | DOT1Q
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
25 | Test Setup | Set up performance test
27 | Test Teardown | Tear down performance mrr test
29 | Documentation | *Raw results L2XC with 802.1q test cases*
31 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology\
32 | ... | with single links between nodes.
33 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4 for L2 cross connect. 802.1q\
34 | ... | tagging is applied on link between DUT1 and DUT2.
35 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with L2 cross-\
36 | ... | connect. DUT1 and DUT2 tested with 2p10GE NIC X710 by Intel.
37 | ... | *[Ver] TG verification:* In MaxReceivedRate tests TG sends traffic\
38 | ... | at line rate and reports total received/sent packets over trial period.\
39 | ... | Test packets are generated by TG on\
40 | ... | links to DUTs. TG traffic profile contains two L3 flow-groups\
41 | ... | (flow-group per direction, 253 flows per flow-group) with all packets\
42 | ... | containing Ethernet header, IPv4 header with IP protocol=61 and static\
43 | ... | payload. MAC addresses are matching MAC addresses of the TG node\
45 | ... | *[Ref] Applicable standard specifications:* RFC2544.
49 | ${tag_rewrite}= | pop-1
50 # X710-DA2 bandwidth limit
51 | ${s_limit}= | ${10000000000}
53 | ${traffic_profile}= | trex-sl-3n-ethip4-ip4src254
56 | Check RR for L2XC dot1q-l2xcbase
58 | | ... | [Cfg] DUT runs L2XC config with VLAN dot1q with ${wt} thread(s), \
59 | | ... | ${wt} phy core(s), ${rxq} receive queue(s) per NIC port.
60 | | ... | [Ver] Measure MaxReceivedRate for ${framesize} frames using single\
61 | | ... | trial throughput test.
63 | | [Arguments] | ${framesize} | ${wt} | ${rxq}
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}
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 | | And Set interfaces in path in 3-node circular topology up
76 | | When Initialize VLAN dot1q sub-interfaces in 3-node circular topology
77 | | ... | ${dut1} | ${dut1_if2} | ${dut2} | ${dut2_if1} | ${subid}
78 | | And Configure L2 tag rewrite method on interfaces
79 | | ... | ${dut1} | ${subif_index_1} | ${dut2} | ${subif_index_2}
80 | | ... | ${tag_rewrite}
81 | | And Connect interfaces and VLAN sub-interfaces using L2XC
82 | | ... | ${dut1} | ${dut1_if1} | ${subif_index_1}
83 | | ... | ${dut2} | ${dut2_if2} | ${subif_index_2}
84 | | Then Traffic should pass with maximum rate | ${perf_trial_duration}
85 | | ... | ${max_rate}pps | ${framesize} | ${traffic_profile}
88 | tc01-64B-1t1c-dot1q-l2xcbase-mrr
90 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
91 | | ... | 1 receive queue per NIC port.
92 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
93 | | ... | throughput test.
95 | | [Tags] | 64B | 1T1C | STHREAD
97 | | [Template] | Check RR for L2XC dot1q-l2xcbase
98 | | wt=1 | rxq=1 | framesize=${64}
100 | tc02-1518B-1t1c-dot1q-l2xcbase-mrr
102 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
103 | | ... | 1 receive queue per NIC port.
104 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
105 | | ... | throughput test.
107 | | [Tags] | 1518B | 1T1C | STHREAD
109 | | [Template] | Check RR for L2XC dot1q-l2xcbase
110 | | wt=1 | rxq=1 | framesize=${1518}
112 | tc03-9000B-1t1c-dot1q-l2xcbase-mrr
114 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
115 | | ... | 1 receive queue per NIC port.
116 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
117 | | ... | throughput test.
119 | | [Tags] | 9000B | 1T1C | STHREAD
121 | | [Template] | Check RR for L2XC dot1q-l2xcbase
122 | | wt=1 | rxq=1 | framesize=${9000}
124 | tc04-IMIX-1t1c-dot1q-l2xcbase-mrr
126 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core, \
127 | | ... | 1 receive queue per NIC port.
128 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
129 | | ... | throughput test.
130 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
132 | | [Tags] | IMIX | 1T1C | STHREAD
134 | | [Template] | Check RR for L2XC dot1q-l2xcbase
135 | | wt=1 | rxq=1 | framesize=IMIX_v4_1
137 | tc05-64B-2t2c-dot1q-l2xcbase-mrr
139 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
140 | | ... | 1 receive queue per NIC port.
141 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
142 | | ... | throughput test.
144 | | [Tags] | 64B | 2T2C | MTHREAD
146 | | [Template] | Check RR for L2XC dot1q-l2xcbase
147 | | wt=2 | rxq=1 | framesize=${64}
149 | tc06-1518B-2t2c-dot1q-l2xcbase-mrr
151 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
152 | | ... | 1 receive queue per NIC port.
153 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
154 | | ... | throughput test.
156 | | [Tags] | 1518B | 2T2C | MTHREAD
158 | | [Template] | Check RR for L2XC dot1q-l2xcbase
159 | | wt=2 | rxq=1 | framesize=${1518}
161 | tc07-9000B-2t2c-dot1q-l2xcbase-mrr
163 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
164 | | ... | 1 receive queue per NIC port.
165 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
166 | | ... | throughput test.
168 | | [Tags] | 9000B | 2T2C | MTHREAD
170 | | [Template] | Check RR for L2XC dot1q-l2xcbase
171 | | wt=2 | rxq=1 | framesize=${9000}
173 | tc08-IMIX-2t2c-dot1q-l2xcbase-mrr
175 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores, \
176 | | ... | 1 receive queue per NIC port.
177 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
178 | | ... | throughput test.
179 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
181 | | [Tags] | IMIX | 2T2C | MTHREAD
183 | | [Template] | Check RR for L2XC dot1q-l2xcbase
184 | | wt=2 | rxq=1 | framesize=IMIX_v4_1
186 | tc09-64B-4t4c-dot1q-l2xcbase-mrr
188 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
189 | | ... | 2 receive queues per NIC port.
190 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
191 | | ... | throughput test.
193 | | [Tags] | 64B | 4T4C | MTHREAD
195 | | [Template] | Check RR for L2XC dot1q-l2xcbase
196 | | wt=4 | rxq=2 | framesize=${64}
198 | tc10-1518B-4t4c-dot1q-l2xcbase-mrr
200 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
201 | | ... | 2 receive queues per NIC port.
202 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
203 | | ... | throughput test.
205 | | [Tags] | 1518B | 4T4C | MTHREAD
207 | | [Template] | Check RR for L2XC dot1q-l2xcbase
208 | | wt=4 | rxq=2 | framesize=${1518}
210 | tc11-9000B-4t4c-dot1q-l2xcbase-mrr
212 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
213 | | ... | 2 receive queues per NIC port.
214 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
215 | | ... | throughput test.
217 | | [Tags] | 9000B | 4T4C | MTHREAD
219 | | [Template] | Check RR for L2XC dot1q-l2xcbase
220 | | wt=4 | rxq=2 | framesize=${9000}
222 | tc12-IMIX-4t4c-dot1q-l2xcbase-mrr
224 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores, \
225 | | ... | 2 receive queues per NIC port.
226 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
227 | | ... | throughput test.
228 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
230 | | [Tags] | IMIX | 4T4C | MTHREAD
232 | | [Template] | Check RR for L2XC dot1q-l2xcbase
233 | | wt=4 | rxq=2 | framesize=IMIX_v4_1