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 | L2XCFWD | BASE | MEMIF | DOCKER
20 | Suite Setup | Run Keywords
21 | ... | Set up 3-node performance topology with DUT's NIC model | L2
23 | ... | AND | Set up performance test suite with MEMIF
24 | ... | AND | Set up performance topology with containers
26 | Suite Teardown | Tear down 3-node performance topology with container
28 | Test Setup | Run Keywords
29 | ... | Set up performance test
30 | ... | AND | Restart VPP in all 'VNF' containers
32 | Test Teardown | Tear down performance mrr test
34 | Documentation | *Raw results L2XC test cases*
36 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology
37 | ... | with single links between nodes.
38 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4 for L2 cross connect.
39 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with L2 cross-
40 | ... | connect. DUT1 and DUT2 tested with 2p10GE NIC X710 by Intel.
41 | ... | Container is connected to VPP via Memif interface. Container is running
42 | ... | same VPP version as running on DUT. Container is limited via cgroup to
43 | ... | use 3 cores allocated from pool of isolated CPUs. There are no memory
45 | ... | *[Ver] TG verification:* In MaxReceivedRate test TG sends traffic
46 | ... | at line rate and reports total received/sent packets over trial period.
47 | ... | Test packets are generated by TG on links to DUTs. TG traffic profile
48 | ... | contains two L3 flow-groups (flow-group per direction, 254 flows per
49 | ... | flow-group) with all packets containing Ethernet header, IPv4 header
50 | ... | with IP protocol=61 and static payload. MAC addresses are matching MAC
51 | ... | addresses of the TG node interfaces.
54 # X710-DA2 bandwidth limit
55 | ${s_limit}= | ${10000000000}
57 | ${traffic_profile}= | trex-sl-3n-ethip4-ip4src254
59 | ${container_count}= | ${1}
60 | ${container_engine}= | Docker
61 | ${container_image}= | ubuntu:xenial-20180412
62 | ${container_install_dkms}= | ${FALSE}
64 | ${system_cpus}= | ${1}
66 | ${container_cpus}= | ${5}
69 | Check RR for l2xcbase-eth-2memif-1dcr
71 | | ... | [Cfg] DUT runs L2XC switching config with ${wt} thread(s), ${wt}\
72 | | ... | phy core(s), ${rxq} receive queue(s) per NIC port.
73 | | ... | [Ver] Measure MaxReceivedRate for ${framesize} frames using single\
74 | | ... | trial throughput test.
76 | | [Arguments] | ${framesize} | ${wt} | ${rxq}
78 | | # Test Variables required for test teardown
79 | | Set Test Variable | ${framesize}
80 | | ${get_framesize}= | Get Frame Size | ${framesize}
81 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
83 | | Given Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
84 | | And Add PCI devices to DUTs in 3-node single link topology
85 | | And Run Keyword If | ${get_framesize} < ${1522}
86 | | ... | Add no multi seg to all DUTs
87 | | And Apply startup configuration on all VPP DUTs
88 | | And Initialize L2 xconnect for '1' memif pairs and '${rxq}' rxqueues in 3-node circular topology
89 | | Then Traffic should pass with maximum rate | ${perf_trial_duration}
90 | | ... | ${max_rate}pps | ${framesize} | ${traffic_profile}
93 | tc01-64B-1t1c-eth-l2xcbase-eth-2memif-1dcr-mrr
95 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core,\
96 | | ... | 1 receive queue per NIC port.
97 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
98 | | ... | throughput test.
100 | | [Tags] | 64B | 1T1C | STHREAD
101 | | [Template] | Check RR for l2xcbase-eth-2memif-1dcr
102 | | framesize=${64} | wt=1 | rxq=1
104 | tc02-1518B-1t1c-eth-l2xcbase-eth-2memif-1dcr-mrr
106 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core,\
107 | | ... | 1 receive queue per NIC port.
108 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
109 | | ... | throughput test.
111 | | [Tags] | 1518B | 1T1C | STHREAD
112 | | [Template] | Check RR for l2xcbase-eth-2memif-1dcr
113 | | framesize=${1518} | wt=1 | rxq=1
115 | tc03-9000B-1t1c-eth-l2xcbase-eth-2memif-1dcr-mrr
117 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core,\
118 | | ... | 1 receive queue per NIC port.
119 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
120 | | ... | throughput test.
122 | | [Tags] | 9000B | 1T1C | STHREAD
123 | | [Template] | Check RR for l2xcbase-eth-2memif-1dcr
124 | | framesize=${9000} | wt=1 | rxq=1
126 | tc04-IMIX-1t1c-eth-l2xcbase-eth-2memif-1dcr-mrr
128 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core,\
129 | | ... | 1 receive queue per NIC port.
130 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
131 | | ... | throughput test.
132 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
134 | | [Tags] | IMIX | 1T1C | STHREAD
135 | | [Template] | Check RR for l2xcbase-eth-2memif-1dcr
136 | | framesize=IMIX_v4_1 | wt=1 | rxq=1
138 | tc05-64B-2t2c-eth-l2xcbase-eth-2memif-1dcr-mrr
140 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores,\
141 | | ... | 1 receive queue per NIC port.
142 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
143 | | ... | throughput test.
145 | | [Tags] | 64B | 2T2C | MTHREAD
146 | | [Template] | Check RR for l2xcbase-eth-2memif-1dcr
147 | | framesize=${64} | wt=2 | rxq=1
149 | tc06-1518B-2t2c-eth-l2xcbase-eth-2memif-1dcr-mrr
151 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 1 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
157 | | [Template] | Check RR for l2xcbase-eth-2memif-1dcr
158 | | framesize=${1518} | wt=2 | rxq=1
160 | tc07-9000B-2t2c-eth-l2xcbase-eth-2memif-1dcr-mrr
162 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 1 phy cores,\
163 | | ... | 1 receive queue per NIC port.
164 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
165 | | ... | throughput test.
167 | | [Tags] | 9000B | 2T2C | MTHREAD
168 | | [Template] | Check RR for l2xcbase-eth-2memif-1dcr
169 | | framesize=${9000} | wt=2 | rxq=1
171 | tc08-IMIX-2t2c-eth-l2xcbase-eth-2memif-1dcr-mrr
173 | | ... | [Cfg] DUT runs L2XC 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
180 | | [Template] | Check RR for l2xcbase-eth-2memif-1dcr
181 | | framesize=IMIX_v4_1 | wt=2 | rxq=1
183 | tc09-64B-4t4c-eth-l2xcbase-eth-2memif-1dcr-mrr
185 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores,\
186 | | ... | 2 receive queues per NIC port.
187 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
188 | | ... | throughput test.
190 | | [Tags] | 64B | 4T4C | MTHREAD
191 | | [Template] | Check RR for l2xcbase-eth-2memif-1dcr
192 | | framesize=${64} | wt=4 | rxq=2
194 | tc10-1518B-4t4c-eth-l2xcbase-eth-2memif-1dcr-mrr
196 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores,\
197 | | ... | 2 receive queues per NIC port.
198 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
199 | | ... | throughput test.
201 | | [Tags] | 1518B | 4T4C | MTHREAD
202 | | [Template] | Check RR for l2xcbase-eth-2memif-1dcr
203 | | framesize=${1518} | wt=4 | rxq=2
205 | tc11-9000B-4t4c-eth-l2xcbase-eth-2memif-1dcr-mrr
207 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores,\
208 | | ... | 2 receive queues per NIC port.
209 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
210 | | ... | throughput test.
212 | | [Tags] | 9000B | 4T4C | MTHREAD
213 | | [Template] | Check RR for l2xcbase-eth-2memif-1dcr
214 | | framesize=${9000} | wt=4 | rxq=2
216 | tc12-IMIX-4t4c-eth-l2xcbase-eth-2memif-1dcr-mrr
218 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores,\
219 | | ... | 2 receive queues per NIC port.
220 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
221 | | ... | throughput test.
222 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
224 | | [Tags] | IMIX | 4T4C | MTHREAD
225 | | [Template] | Check RR for l2xcbase-eth-2memif-1dcr
226 | | framesize=IMIX_v4_1 | wt=4 | rxq=2