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 | ETH | L2BDMACLRN | BASE | MEMIF | LXC
20 | Suite Setup | Run Keywords
21 | ... | Set up 3-node performance topology with DUT's NIC model | L2
22 | ... | Intel-X520-DA2
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 | Set up performance test
30 | Test Teardown | Tear down performance mrr test
32 | Documentation | *Raw results L2BD test cases*
34 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology
35 | ... | with single links between nodes.
36 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4 for L2 bridge domain.
37 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with two L2
38 | ... | bridge domains and MAC learning enabled. LXC is connected to VPP via
39 | ... | Memif interface. LXC is running same VPP version as running on DUT. LXC
40 | ... | is limited via cgroup to use 3 cores allocated from pool of isolated
41 | ... | CPUs. There are no memory constraints. DUT1 and DUT2 tested with
42 | ... | 2p10GE NIC X520 Niantic by Intel.
43 | ... | *[Ver] TG verification:* In MaxReceivedRate test TG sends traffic
44 | ... | at line rate and reports total received/sent packets over trial period.
45 | ... | Test packets are generated by TG on links to DUTs. TG traffic profile
46 | ... | contains two L3 flow-groups (flow-group per direction, 254 flows per
47 | ... | flow-group) with all packets containing Ethernet header, IPv4 header
48 | ... | with IP protocol=61 and static payload. MAC addresses are matching MAC
49 | ... | addresses of the TG node interfaces.
52 # X520-DA2 bandwidth limit
53 | ${s_limit} | ${10000000000}
55 | ${traffic_profile} | trex-sl-3n-ethip4-ip4src254
57 | ${container_count}= | ${1}
58 | ${container_engine}= | LXC
59 | ${container_image}= | ${EMPTY}
61 | ${system_cpus}= | ${1}
63 | ${container_cpus}= | ${3}
66 | Check RR for l2bdbasemaclrn-eth-2memif-1lxc
68 | | ... | [Cfg] DUT runs L2BD switching config with ${wt} thread(s), ${wt}\
69 | | ... | phy core(s), ${rxq} receive queue(s) per NIC port.
70 | | ... | [Ver] Measure MaxReceivedRate for ${framesize} frames using single\
71 | | ... | trial throughput test.
73 | | [Arguments] | ${framesize} | ${wt} | ${rxq}
75 | | # Test Variables required for test teardown
76 | | Set Test Variable | ${framesize}
77 | | ${get_framesize}= | Get Frame Size | ${framesize}
78 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
80 | | Given Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
81 | | And Add PCI devices to DUTs in 3-node single link topology
82 | | And Run Keyword If | ${get_framesize} < ${1522}
83 | | ... | Add no multi seg to all DUTs
84 | | And Apply startup configuration on all VPP DUTs
85 | | And Initialize L2 Bridge Domain for '1' memif pairs in 3-node circular topology
86 | | Then Traffic should pass with maximum rate | ${perf_trial_duration}
87 | | ... | ${max_rate}pps | ${framesize} | ${traffic_profile}
90 | tc01-64B-1t1c-eth-l2bdbasemaclrn-eth-2memif-1lxc-mrr
92 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,\
93 | | ... | 1 receive queue per NIC port.
94 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
95 | | ... | throughput test.
97 | | [Tags] | 64B | 1T1C | STHREAD
98 | | [Template] | Check RR for l2bdbasemaclrn-eth-2memif-1lxc
99 | | framesize=${64} | wt=1 | rxq=1
101 | tc02-1518B-1t1c-eth-l2bdbasemaclrn-eth-2memif-1lxc-mrr
103 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,\
104 | | ... | 1 receive queue per NIC port.
105 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
106 | | ... | throughput test.
108 | | [Tags] | 1518B | 1T1C | STHREAD
109 | | [Template] | Check RR for l2bdbasemaclrn-eth-2memif-1lxc
110 | | framesize=${1518} | wt=1 | rxq=1
112 | tc03-9000B-1t1c-eth-l2bdbasemaclrn-eth-2memif-1lxc-mrr
114 | | ... | [Cfg] DUT runs L2BD 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
120 | | [Template] | Check RR for l2bdbasemaclrn-eth-2memif-1lxc
121 | | framesize=${9000} | wt=1 | rxq=1
123 | tc04-IMIX-1t1c-eth-l2bdbasemaclrn-eth-2memif-1lxc-mrr
125 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,\
126 | | ... | 1 receive queue per NIC port.
127 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
128 | | ... | throughput test.
129 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
131 | | [Tags] | IMIX | 1T1C | STHREAD
132 | | [Template] | Check RR for l2bdbasemaclrn-eth-2memif-1lxc
133 | | framesize=IMIX_v4_1 | wt=1 | rxq=1
135 | tc05-64B-2t2c-eth-l2bdbasemaclrn-eth-2memif-1lxc-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
143 | | [Template] | Check RR for l2bdbasemaclrn-eth-2memif-1lxc
144 | | framesize=${64} | wt=2 | rxq=1
146 | tc06-1518B-2t2c-eth-l2bdbasemaclrn-eth-2memif-1lxc-mrr
148 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 1 phy cores,\
149 | | ... | 1 receive queue per NIC port.
150 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
151 | | ... | throughput test.
153 | | [Tags] | 1518B | 2T2C | MTHREAD
154 | | [Template] | Check RR for l2bdbasemaclrn-eth-2memif-1lxc
155 | | framesize=${1518} | wt=2 | rxq=1
157 | tc07-9000B-2t2c-eth-l2bdbasemaclrn-eth-2memif-1lxc-mrr
159 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 1 phy cores,\
160 | | ... | 1 receive queue per NIC port.
161 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
162 | | ... | throughput test.
164 | | [Tags] | 9000B | 2T2C | MTHREAD
165 | | [Template] | Check RR for l2bdbasemaclrn-eth-2memif-1lxc
166 | | framesize=${9000} | wt=2 | rxq=1
168 | tc08-IMIX-2t2c-eth-l2bdbasemaclrn-eth-2memif-1lxc-mrr
170 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,\
171 | | ... | 1 receive queue per NIC port.
172 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
173 | | ... | throughput test.
174 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
176 | | [Tags] | IMIX | 2T2C | MTHREAD
177 | | [Template] | Check RR for l2bdbasemaclrn-eth-2memif-1lxc
178 | | framesize=IMIX_v4_1 | wt=2 | rxq=1
180 | tc09-64B-4t4c-eth-l2bdbasemaclrn-eth-2memif-1lxc-mrr
182 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,\
183 | | ... | 2 receive queues per NIC port.
184 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
185 | | ... | throughput test.
187 | | [Tags] | 64B | 4t4c | MTHREAD
188 | | [Template] | Check RR for l2bdbasemaclrn-eth-2memif-1lxc
189 | | framesize=${64} | wt=4 | rxq=2
191 | tc10-1518B-4t4c-eth-l2bdbasemaclrn-eth-2memif-1lxc-mrr
193 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,\
194 | | ... | 2 receive queues per NIC port.
195 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
196 | | ... | throughput test.
198 | | [Tags] | 1518B | 4t4c | MTHREAD
199 | | [Template] | Check RR for l2bdbasemaclrn-eth-2memif-1lxc
200 | | framesize=${1518} | wt=4 | rxq=2
202 | tc11-9000B-4t4c-eth-l2bdbasemaclrn-eth-2memif-1lxc-mrr
204 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,\
205 | | ... | 2 receive queues per NIC port.
206 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
207 | | ... | throughput test.
209 | | [Tags] | 9000B | 4t4c | MTHREAD
210 | | [Template] | Check RR for l2bdbasemaclrn-eth-2memif-1lxc
211 | | framesize=${9000} | wt=4 | rxq=2
213 | tc12-IMIX-4t4c-eth-l2bdbasemaclrn-eth-2memif-1lxc-mrr
215 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,\
216 | | ... | 2 receive queues per NIC port.
217 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
218 | | ... | throughput test.
219 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
221 | | [Tags] | IMIX | 4t4c | MTHREAD
222 | | [Template] | Check RR for l2bdbasemaclrn-eth-2memif-1lxc
223 | | framesize=IMIX_v4_1 | wt=4 | rxq=2