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-XL710 | ETH | L2XCFWD | BASE | MEMIF | LXC
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 2p40GE NIC XL710 by Intel.
41 | ... | LXC is connected to VPP via Memif interface. LXC is running same VPP
42 | ... | version as running on DUT. LXC is limited via cgroup to use 3 cores
43 | ... | allocated from pool of isolated CPUs. There are no memory contraints.
44 | ... | *[Ver] TG verification:* In MaxReceivedRate test TG sends traffic
45 | ... | at line rate and reports total received/sent packets over trial period.
46 | ... | Test packets are generated by TG on links to DUTs. TG traffic profile
47 | ... | contains two L3 flow-groups (flow-group per direction, 254 flows per
48 | ... | flow-group) with all packets containing Ethernet header, IPv4 header
49 | ... | with IP protocol=61 and static payload. MAC addresses are matching MAC
50 | ... | addresses of the TG node interfaces.
53 # XL710-DA2 bandwidth limit ~49Gbps/2=24.5Gbps
54 | ${s_24.5G} | ${24500000000}
55 # XL710-DA2 Mpps limit 37.5Mpps/2=18.75Mpps
56 | ${s_18.75Mpps} | ${18750000}
58 | ${traffic_profile} | trex-sl-3n-ethip4-ip4src254
60 | ${container_count}= | ${1}
61 | ${container_engine}= | LXC
62 | ${container_image}= | ${EMPTY}
64 | ${system_cpus}= | ${1}
66 | ${container_cpus}= | ${5}
69 | Check RR for l2xcbase-eth-2memif-1lxc
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_24.5G} | ${get_framesize}
82 | | ${max_rate}= | Set Variable If
83 | | ... | ${max_rate} > ${s_18.75Mpps} | ${s_18.75Mpps} | ${max_rate}
85 | | Given Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
86 | | And Add PCI devices to DUTs in 3-node single link topology
87 | | And Run Keyword If | ${get_framesize} < ${1522}
88 | | ... | Add no multi seg to all DUTs
89 | | And Apply startup configuration on all VPP DUTs
90 | | And Initialize L2 xconnect for '1' memif pairs and '${rxq}' rxqueues in 3-node circular topology
91 | | Then Traffic should pass with maximum rate | ${perf_trial_duration}
92 | | ... | ${max_rate}pps | ${framesize} | ${traffic_profile}
95 | tc01-64B-1t1c-eth-l2xcbase-eth-2memif-1lxc-mrr
97 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core,\
98 | | ... | 1 receive queue per NIC port.
99 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
100 | | ... | throughput test.
102 | | [Tags] | 64B | 1T1C | STHREAD
103 | | [Template] | Check RR for l2xcbase-eth-2memif-1lxc
104 | | framesize=${64} | wt=1 | rxq=1
106 | tc02-1518B-1t1c-eth-l2xcbase-eth-2memif-1lxc-mrr
108 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core,\
109 | | ... | 1 receive queue per NIC port.
110 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
111 | | ... | throughput test.
113 | | [Tags] | 1518B | 1T1C | STHREAD
114 | | [Template] | Check RR for l2xcbase-eth-2memif-1lxc
115 | | framesize=${1518} | wt=1 | rxq=1
117 | tc03-9000B-1t1c-eth-l2xcbase-eth-2memif-1lxc-mrr
119 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core,\
120 | | ... | 1 receive queue per NIC port.
121 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
122 | | ... | throughput test.
124 | | [Tags] | 9000B | 1T1C | STHREAD
125 | | [Template] | Check RR for l2xcbase-eth-2memif-1lxc
126 | | framesize=${9000} | wt=1 | rxq=1
128 | tc04-IMIX-1t1c-eth-l2xcbase-eth-2memif-1lxc-mrr
130 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core,\
131 | | ... | 1 receive queue per NIC port.
132 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
133 | | ... | throughput test.
134 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
136 | | [Tags] | IMIX | 1T1C | STHREAD
137 | | [Template] | Check RR for l2xcbase-eth-2memif-1lxc
138 | | framesize=IMIX_v4_1 | wt=1 | rxq=1
140 | tc05-64B-2t2c-eth-l2xcbase-eth-2memif-1lxc-mrr
142 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores,\
143 | | ... | 1 receive queue per NIC port.
144 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
145 | | ... | throughput test.
147 | | [Tags] | 64B | 2T2C | MTHREAD
148 | | [Template] | Check RR for l2xcbase-eth-2memif-1lxc
149 | | framesize=${64} | wt=2 | rxq=1
151 | tc06-1518B-2t2c-eth-l2xcbase-eth-2memif-1lxc-mrr
153 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores,\
154 | | ... | 1 receive queue per NIC port.
155 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
156 | | ... | throughput test.
158 | | [Tags] | 1518B | 2T2C | MTHREAD
159 | | [Template] | Check RR for l2xcbase-eth-2memif-1lxc
160 | | framesize=${1518} | wt=2 | rxq=1
162 | tc07-9000B-2t2c-eth-l2xcbase-eth-2memif-1lxc-mrr
164 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores,\
165 | | ... | 1 receive queue per NIC port.
166 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
167 | | ... | throughput test.
169 | | [Tags] | 9000B | 2T2C | MTHREAD
170 | | [Template] | Check RR for l2xcbase-eth-2memif-1lxc
171 | | framesize=${9000} | wt=2 | rxq=1
173 | tc08-IMIX-2t2c-eth-l2xcbase-eth-2memif-1lxc-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
182 | | [Template] | Check RR for l2xcbase-eth-2memif-1lxc
183 | | framesize=IMIX_v4_1 | wt=2 | rxq=1
185 | tc09-64B-4t4c-eth-l2xcbase-eth-2memif-1lxc-mrr
187 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores,\
188 | | ... | 2 receive queues per NIC port.
189 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
190 | | ... | throughput test.
192 | | [Tags] | 64B | 4T4C | MTHREAD
193 | | [Template] | Check RR for l2xcbase-eth-2memif-1lxc
194 | | framesize=${64} | wt=4 | rxq=2
196 | tc10-1518B-4t4c-eth-l2xcbase-eth-2memif-1lxc-mrr
198 | | ... | [Cfg] DUT runs L2XC 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
204 | | [Template] | Check RR for l2xcbase-eth-2memif-1lxc
205 | | framesize=${1518} | wt=4 | rxq=2
207 | tc11-9000B-4t4c-eth-l2xcbase-eth-2memif-1lxc-mrr
209 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores,\
210 | | ... | 2 receive queues per NIC port.
211 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
212 | | ... | throughput test.
214 | | [Tags] | 9000B | 4T4C | MTHREAD
215 | | [Template] | Check RR for l2xcbase-eth-2memif-1lxc
216 | | framesize=${9000} | wt=4 | rxq=2
218 | tc12-IMIX-4t4c-eth-l2xcbase-eth-2memif-1lxc-mrr
220 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores,\
221 | | ... | 2 receive queues per NIC port.
222 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
223 | | ... | throughput test.
224 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
226 | | [Tags] | IMIX | 4T4C | MTHREAD
227 | | [Template] | Check RR for l2xcbase-eth-2memif-1lxc
228 | | framesize=IMIX_v4_1 | wt=4 | rxq=2