CSIT-1142 Change thread perf test TAGs
[csit.git] / tests / vpp / perf / container_memif / 10ge2p1x710-eth-l2xcbase-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-X710 | ETH | L2XCFWD | BASE | MEMIF | LXC
19 | ...
20 | Suite Setup | Run Keywords
21 | ... | Set up 3-node performance topology with DUT's NIC model | L2
22 | ... | Intel-X710
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 L2XC 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 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 | ... | 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.
51
52 *** Variables ***
53 # X710-DA2 bandwidth limit
54 | ${s_limit}= | ${10000000000}
55 # Traffic profile:
56 | ${traffic_profile}= | trex-sl-3n-ethip4-ip4src254
57 # LXC container
58 | ${container_count}= | ${1}
59 | ${container_engine}= | LXC
60 | ${container_image}= | ${EMPTY}
61 | ${container_install_dkms}= | ${FALSE}
62 | ${container_chain_topology}= | chain
63 # CPU settings
64 | ${system_cpus}= | ${1}
65 | ${vpp_cpus}= | ${5}
66 | ${container_cpus}= | ${5}
67
68 *** Keywords ***
69 | Check RR for l2xcbase-eth-2memif-1lxc
70 | | [Documentation]
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.
75 | | ...
76 | | [Arguments] | ${framesize} | ${wt} | ${rxq}
77 | | ...
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}
82 | | ...
83 | | Given Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
84 | | And Add PCI devices to all DUTs
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}
91
92 *** Test Cases ***
93 | tc01-64B-1t1c-eth-l2xcbase-eth-2memif-1lxc-mrr
94 | | [Documentation]
95 | | ... | [Cfg] DUT runs L2XC switching config with 1 phy core,\
96 | | ... | 1 receive queue per NIC port.
97 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
98 | | ... | throughput test.
99 | | ...
100 | | [Tags] | 64B | 1C
101 | | [Template] | Check RR for l2xcbase-eth-2memif-1lxc
102 | | framesize=${64} | wt=1 | rxq=1
103
104 | tc02-1518B-1t1c-eth-l2xcbase-eth-2memif-1lxc-mrr
105 | | [Documentation]
106 | | ... | [Cfg] DUT runs L2XC switching config with 1 phy core,\
107 | | ... | 1 receive queue per NIC port.
108 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
109 | | ... | throughput test.
110 | | ...
111 | | [Tags] | 1518B | 1C
112 | | [Template] | Check RR for l2xcbase-eth-2memif-1lxc
113 | | framesize=${1518} | wt=1 | rxq=1
114
115 | tc03-9000B-1t1c-eth-l2xcbase-eth-2memif-1lxc-mrr
116 | | [Documentation]
117 | | ... | [Cfg] DUT runs L2XC switching config with 1 phy core,\
118 | | ... | 1 receive queue per NIC port.
119 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
120 | | ... | throughput test.
121 | | ...
122 | | [Tags] | 9000B | 1C
123 | | [Template] | Check RR for l2xcbase-eth-2memif-1lxc
124 | | framesize=${9000} | wt=1 | rxq=1
125
126 | tc04-IMIX-1t1c-eth-l2xcbase-eth-2memif-1lxc-mrr
127 | | [Documentation]
128 | | ... | [Cfg] DUT runs L2XC switching config with 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)
133 | | ...
134 | | [Tags] | IMIX | 1C
135 | | [Template] | Check RR for l2xcbase-eth-2memif-1lxc
136 | | framesize=IMIX_v4_1 | wt=1 | rxq=1
137
138 | tc05-64B-2t2c-eth-l2xcbase-eth-2memif-1lxc-mrr
139 | | [Documentation]
140 | | ... | [Cfg] DUT runs L2XC switching config with 2 phy cores,\
141 | | ... | 1 receive queue per NIC port.
142 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
143 | | ... | throughput test.
144 | | ...
145 | | [Tags] | 64B | 2C
146 | | [Template] | Check RR for l2xcbase-eth-2memif-1lxc
147 | | framesize=${64} | wt=2 | rxq=1
148
149 | tc06-1518B-2t2c-eth-l2xcbase-eth-2memif-1lxc-mrr
150 | | [Documentation]
151 | | ... | [Cfg] DUT runs L2XC switching config with 2 phy cores,\
152 | | ... | 1 receive queue per NIC port.
153 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
154 | | ... | throughput test.
155 | | ...
156 | | [Tags] | 1518B | 2C
157 | | [Template] | Check RR for l2xcbase-eth-2memif-1lxc
158 | | framesize=${1518} | wt=2 | rxq=1
159
160 | tc07-9000B-2t2c-eth-l2xcbase-eth-2memif-1lxc-mrr
161 | | [Documentation]
162 | | ... | [Cfg] DUT runs L2XC switching config with 2 phy cores,\
163 | | ... | 1 receive queue per NIC port.
164 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
165 | | ... | throughput test.
166 | | ...
167 | | [Tags] | 9000B | 2C
168 | | [Template] | Check RR for l2xcbase-eth-2memif-1lxc
169 | | framesize=${9000} | wt=2 | rxq=1
170
171 | tc08-IMIX-2t2c-eth-l2xcbase-eth-2memif-1lxc-mrr
172 | | [Documentation]
173 | | ... | [Cfg] DUT runs L2XC switching config with 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)
178 | | ...
179 | | [Tags] | IMIX | 2C
180 | | [Template] | Check RR for l2xcbase-eth-2memif-1lxc
181 | | framesize=IMIX_v4_1 | wt=2 | rxq=1
182
183 | tc09-64B-4t4c-eth-l2xcbase-eth-2memif-1lxc-mrr
184 | | [Documentation]
185 | | ... | [Cfg] DUT runs L2XC switching config with 4 phy cores,\
186 | | ... | 2 receive queues per NIC port.
187 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
188 | | ... | throughput test.
189 | | ...
190 | | [Tags] | 64B | 4C
191 | | [Template] | Check RR for l2xcbase-eth-2memif-1lxc
192 | | framesize=${64} | wt=4 | rxq=2
193
194 | tc10-1518B-4t4c-eth-l2xcbase-eth-2memif-1lxc-mrr
195 | | [Documentation]
196 | | ... | [Cfg] DUT runs L2XC switching config with 4 phy cores,\
197 | | ... | 2 receive queues per NIC port.
198 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
199 | | ... | throughput test.
200 | | ...
201 | | [Tags] | 1518B | 4C
202 | | [Template] | Check RR for l2xcbase-eth-2memif-1lxc
203 | | framesize=${1518} | wt=4 | rxq=2
204
205 | tc11-9000B-4t4c-eth-l2xcbase-eth-2memif-1lxc-mrr
206 | | [Documentation]
207 | | ... | [Cfg] DUT runs L2XC switching config with 4 phy cores,\
208 | | ... | 2 receive queues per NIC port.
209 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
210 | | ... | throughput test.
211 | | ...
212 | | [Tags] | 9000B | 4C
213 | | [Template] | Check RR for l2xcbase-eth-2memif-1lxc
214 | | framesize=${9000} | wt=4 | rxq=2
215
216 | tc12-IMIX-4t4c-eth-l2xcbase-eth-2memif-1lxc-mrr
217 | | [Documentation]
218 | | ... | [Cfg] DUT runs L2XC switching config with 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)
223 | | ...
224 | | [Tags] | IMIX | 4C
225 | | [Template] | Check RR for l2xcbase-eth-2memif-1lxc
226 | | framesize=IMIX_v4_1 | wt=4 | rxq=2