256dedcd7ec6bea91050ac7c7efad9ee0262d770
[csit.git] / tests / vpp / perf / container_memif / 40ge2p1xl710-eth-l2bdbasemaclrn-eth-2memif-1lxc-mrr.robot
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:
5 #
6 #     http://www.apache.org/licenses/LICENSE-2.0
7 #
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.
13
14 *** Settings ***
15 | Resource | resources/libraries/robot/performance/performance_setup.robot
16 | ...
17 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | MRR
18 | ... | NIC_Intel-XL710 | ETH | L2BDMACLRN | BASE | MEMIF | LXC
19 | ...
20 | Suite Setup | Run Keywords
21 | ... | Set up 3-node performance topology with DUT's NIC model | L2
22 | ... | Intel-XL710
23 | ... | AND | Set up performance test suite with MEMIF
24 | ... | AND | Set up performance topology with containers
25 | ...
26 | Suite Teardown | Tear down 3-node performance topology with container
27 | ...
28 | Test Setup | Run Keywords
29 | ... | Set up performance test
30 | ... | AND | Restart VPP in all 'VNF' containers
31 | ...
32 | Test Teardown | Tear down performance mrr test
33 | ...
34 | Documentation |  *Raw results L2BD test cases*
35 | ...
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 bridge domain.
39 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with two L2
40 | ... | bridge domains and MAC learning enabled. LXC is connected to VPP via
41 | ... | Memif interface. LXC is running same VPP version as running on DUT. LXC
42 | ... | is limited via cgroup to use 3 cores allocated from pool of isolated
43 | ... | CPUs. There are no memory constraints. DUT1 and DUT2 tested with
44 | ... | 2p40GE NIC XL710 by Intel.
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.
52
53 *** Variables ***
54 # XL710-DA2 bandwidth limit ~49Gbps/2=24.5Gbps
55 | ${s_24.5G} | ${24500000000}
56 # XL710-DA2 Mpps limit 37.5Mpps/2=18.75Mpps
57 | ${s_18.75Mpps} | ${18750000}
58 # Traffic profile:
59 | ${traffic_profile} | trex-sl-3n-ethip4-ip4src254
60 # LXC container
61 | ${container_count}= | ${1}
62 | ${container_engine}= | LXC
63 | ${container_image}= | ${EMPTY}
64 | ${container_install_dkms}= | ${FALSE}
65 | ${container_chain_topology}= | chain
66 # CPU settings
67 | ${system_cpus}= | ${1}
68 | ${vpp_cpus}= | ${5}
69 | ${container_cpus}= | ${5}
70
71 *** Keywords ***
72 | Check RR for l2bdbasemaclrn-eth-2memif-1lxc
73 | | [Documentation]
74 | | ... | [Cfg] DUT runs L2BD switching config with ${wt} thread(s), ${wt}\
75 | | ... | phy core(s), ${rxq} receive queue(s) per NIC port.
76 | | ... | [Ver] Measure MaxReceivedRate for ${framesize} frames using single\
77 | | ... | trial throughput test.
78 | | ...
79 | | [Arguments] | ${framesize} | ${wt} | ${rxq}
80 | | ...
81 | | # Test Variables required for test teardown
82 | | Set Test Variable | ${framesize}
83 | | ${get_framesize}= | Get Frame Size | ${framesize}
84 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${get_framesize}
85 | | ${max_rate}= | Set Variable If
86 | | ... | ${max_rate} > ${s_18.75Mpps} | ${s_18.75Mpps} | ${max_rate}
87 | | ...
88 | | Given Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
89 | | And Add PCI devices to all DUTs
90 | | And Run Keyword If | ${get_framesize} < ${1522}
91 | | ... | Add no multi seg to all DUTs
92 | | And Apply startup configuration on all VPP DUTs
93 | | And Initialize L2 Bridge Domain for '1' memif pairs and '${rxq}' rxqueues in 3-node circular topology
94 | | Then Traffic should pass with maximum rate
95 | | ... | ${max_rate}pps | ${framesize} | ${traffic_profile}
96
97 *** Test Cases ***
98 | tc01-64B-1t1c-eth-l2bdbasemaclrn-eth-2memif-1lxc-mrr
99 | | [Documentation]
100 | | ... | [Cfg] DUT runs L2BD switching config with 1 phy core,\
101 | | ... | 1 receive queue per NIC port.
102 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
103 | | ... | throughput test.
104 | | ...
105 | | [Tags] | 64B | 1C
106 | | [Template] | Check RR for l2bdbasemaclrn-eth-2memif-1lxc
107 | | framesize=${64} | wt=1 | rxq=1
108
109 | tc02-1518B-1t1c-eth-l2bdbasemaclrn-eth-2memif-1lxc-mrr
110 | | [Documentation]
111 | | ... | [Cfg] DUT runs L2BD switching config with 1 phy core,\
112 | | ... | 1 receive queue per NIC port.
113 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
114 | | ... | throughput test.
115 | | ...
116 | | [Tags] | 1518B | 1C
117 | | [Template] | Check RR for l2bdbasemaclrn-eth-2memif-1lxc
118 | | framesize=${1518} | wt=1 | rxq=1
119
120 | tc03-9000B-1t1c-eth-l2bdbasemaclrn-eth-2memif-1lxc-mrr
121 | | [Documentation]
122 | | ... | [Cfg] DUT runs L2BD switching config with 1 phy core,\
123 | | ... | 1 receive queue per NIC port.
124 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
125 | | ... | throughput test.
126 | | ...
127 | | [Tags] | 9000B | 1C
128 | | [Template] | Check RR for l2bdbasemaclrn-eth-2memif-1lxc
129 | | framesize=${9000} | wt=1 | rxq=1
130
131 | tc04-IMIX-1t1c-eth-l2bdbasemaclrn-eth-2memif-1lxc-mrr
132 | | [Documentation]
133 | | ... | [Cfg] DUT runs L2BD switching config with 1 phy core,\
134 | | ... | 1 receive queue per NIC port.
135 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
136 | | ... | throughput test.
137 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
138 | | ...
139 | | [Tags] | IMIX | 1C
140 | | [Template] | Check RR for l2bdbasemaclrn-eth-2memif-1lxc
141 | | framesize=IMIX_v4_1 | wt=1 | rxq=1
142
143 | tc05-64B-2t2c-eth-l2bdbasemaclrn-eth-2memif-1lxc-mrr
144 | | [Documentation]
145 | | ... | [Cfg] DUT runs L2BD switching config with 2 phy cores,\
146 | | ... | 1 receive queue per NIC port.
147 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
148 | | ... | throughput test.
149 | | ...
150 | | [Tags] | 64B | 2C
151 | | [Template] | Check RR for l2bdbasemaclrn-eth-2memif-1lxc
152 | | framesize=${64} | wt=2 | rxq=1
153
154 | tc06-1518B-2t2c-eth-l2bdbasemaclrn-eth-2memif-1lxc-mrr
155 | | [Documentation]
156 | | ... | [Cfg] DUT runs L2BD switching config with 2 phy cores,\
157 | | ... | 1 receive queue per NIC port.
158 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
159 | | ... | throughput test.
160 | | ...
161 | | [Tags] | 1518B | 2C
162 | | [Template] | Check RR for l2bdbasemaclrn-eth-2memif-1lxc
163 | | framesize=${1518} | wt=2 | rxq=1
164
165 | tc07-9000B-2t2c-eth-l2bdbasemaclrn-eth-2memif-1lxc-mrr
166 | | [Documentation]
167 | | ... | [Cfg] DUT runs L2BD switching config with 2 phy cores,\
168 | | ... | 1 receive queue per NIC port.
169 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
170 | | ... | throughput test.
171 | | ...
172 | | [Tags] | 9000B | 2C
173 | | [Template] | Check RR for l2bdbasemaclrn-eth-2memif-1lxc
174 | | framesize=${9000} | wt=2 | rxq=1
175
176 | tc08-IMIX-2t2c-eth-l2bdbasemaclrn-eth-2memif-1lxc-mrr
177 | | [Documentation]
178 | | ... | [Cfg] DUT runs L2BD switching config with 2 phy cores,\
179 | | ... | 1 receive queue per NIC port.
180 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
181 | | ... | throughput test.
182 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
183 | | ...
184 | | [Tags] | IMIX | 2C
185 | | [Template] | Check RR for l2bdbasemaclrn-eth-2memif-1lxc
186 | | framesize=IMIX_v4_1 | wt=2 | rxq=1
187
188 | tc09-64B-4t4c-eth-l2bdbasemaclrn-eth-2memif-1lxc-mrr
189 | | [Documentation]
190 | | ... | [Cfg] DUT runs L2BD switching config with 4 phy cores,\
191 | | ... | 2 receive queues per NIC port.
192 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
193 | | ... | throughput test.
194 | | ...
195 | | [Tags] | 64B | 4C
196 | | [Template] | Check RR for l2bdbasemaclrn-eth-2memif-1lxc
197 | | framesize=${64} | wt=4 | rxq=2
198
199 | tc10-1518B-4t4c-eth-l2bdbasemaclrn-eth-2memif-1lxc-mrr
200 | | [Documentation]
201 | | ... | [Cfg] DUT runs L2BD switching config with 4 phy cores,\
202 | | ... | 2 receive queues per NIC port.
203 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
204 | | ... | throughput test.
205 | | ...
206 | | [Tags] | 1518B | 4C
207 | | [Template] | Check RR for l2bdbasemaclrn-eth-2memif-1lxc
208 | | framesize=${1518} | wt=4 | rxq=2
209
210 | tc11-9000B-4t4c-eth-l2bdbasemaclrn-eth-2memif-1lxc-mrr
211 | | [Documentation]
212 | | ... | [Cfg] DUT runs L2BD switching config with 4 phy cores,\
213 | | ... | 2 receive queues per NIC port.
214 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
215 | | ... | throughput test.
216 | | ...
217 | | [Tags] | 9000B | 4C
218 | | [Template] | Check RR for l2bdbasemaclrn-eth-2memif-1lxc
219 | | framesize=${9000} | wt=4 | rxq=2
220
221 | tc12-IMIX-4t4c-eth-l2bdbasemaclrn-eth-2memif-1lxc-mrr
222 | | [Documentation]
223 | | ... | [Cfg] DUT runs L2BD switching config with 4 phy cores,\
224 | | ... | 2 receive queues per NIC port.
225 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
226 | | ... | throughput test.
227 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
228 | | ...
229 | | [Tags] | IMIX | 4C
230 | | [Template] | Check RR for l2bdbasemaclrn-eth-2memif-1lxc
231 | | framesize=IMIX_v4_1 | wt=4 | rxq=2