CSIT-935: Add mrr 9000B and 4t4c tests
[csit.git] / tests / vpp / perf / container_memif / 10ge2p1x520-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-X520-DA2 | 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-X520-DA2
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 | Set up performance test
29 | ...
30 | Test Teardown | Tear down performance mrr test
31 | ...
32 | Documentation |  *Raw results L2BD test cases*
33 | ...
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.
50
51 *** Variables ***
52 # X520-DA2 bandwidth limit
53 | ${s_limit} | ${10000000000}
54 # Traffic profile:
55 | ${traffic_profile} | trex-sl-3n-ethip4-ip4src254
56 # LXC container
57 | ${container_count}= | ${1}
58 | ${container_engine}= | LXC
59 | ${container_image}= | ${EMPTY}
60 # CPU settings
61 | ${system_cpus}= | ${1}
62 | ${vpp_cpus}= | ${5}
63 | ${container_cpus}= | ${3}
64
65 *** Keywords ***
66 | Check RR for l2bdbasemaclrn-eth-2memif-1lxc
67 | | [Documentation]
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.
72 | | ...
73 | | [Arguments] | ${framesize} | ${wt} | ${rxq}
74 | | ...
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}
79 | | ...
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}
88
89 *** Test Cases ***
90 | tc01-64B-1t1c-eth-l2bdbasemaclrn-eth-2memif-1lxc-mrr
91 | | [Documentation]
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.
96 | | ...
97 | | [Tags] | 64B | 1T1C | STHREAD
98 | | [Template] | Check RR for l2bdbasemaclrn-eth-2memif-1lxc
99 | | framesize=${64} | wt=1 | rxq=1
100
101 | tc02-1518B-1t1c-eth-l2bdbasemaclrn-eth-2memif-1lxc-mrr
102 | | [Documentation]
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.
107 | | ...
108 | | [Tags] | 1518B | 1T1C | STHREAD
109 | | [Template] | Check RR for l2bdbasemaclrn-eth-2memif-1lxc
110 | | framesize=${1518} | wt=1 | rxq=1
111
112 | tc03-9000B-1t1c-eth-l2bdbasemaclrn-eth-2memif-1lxc-mrr
113 | | [Documentation]
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.
118 | | ...
119 | | [Tags] | 9000B | 1T1C | STHREAD
120 | | [Template] | Check RR for l2bdbasemaclrn-eth-2memif-1lxc
121 | | framesize=${9000} | wt=1 | rxq=1
122
123 | tc04-IMIX-1t1c-eth-l2bdbasemaclrn-eth-2memif-1lxc-mrr
124 | | [Documentation]
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)
130 | | ...
131 | | [Tags] | IMIX | 1T1C | STHREAD
132 | | [Template] | Check RR for l2bdbasemaclrn-eth-2memif-1lxc
133 | | framesize=IMIX_v4_1 | wt=1 | rxq=1
134
135 | tc05-64B-2t2c-eth-l2bdbasemaclrn-eth-2memif-1lxc-mrr
136 | | [Documentation]
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.
141 | | ...
142 | | [Tags] | 64B | 2T2C | MTHREAD
143 | | [Template] | Check RR for l2bdbasemaclrn-eth-2memif-1lxc
144 | | framesize=${64} | wt=2 | rxq=1
145
146 | tc06-1518B-2t2c-eth-l2bdbasemaclrn-eth-2memif-1lxc-mrr
147 | | [Documentation]
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.
152 | | ...
153 | | [Tags] | 1518B | 2T2C | MTHREAD
154 | | [Template] | Check RR for l2bdbasemaclrn-eth-2memif-1lxc
155 | | framesize=${1518} | wt=2 | rxq=1
156
157 | tc07-9000B-2t2c-eth-l2bdbasemaclrn-eth-2memif-1lxc-mrr
158 | | [Documentation]
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.
163 | | ...
164 | | [Tags] | 9000B | 2T2C | MTHREAD
165 | | [Template] | Check RR for l2bdbasemaclrn-eth-2memif-1lxc
166 | | framesize=${9000} | wt=2 | rxq=1
167
168 | tc08-IMIX-2t2c-eth-l2bdbasemaclrn-eth-2memif-1lxc-mrr
169 | | [Documentation]
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)
175 | | ...
176 | | [Tags] | IMIX | 2T2C | MTHREAD
177 | | [Template] | Check RR for l2bdbasemaclrn-eth-2memif-1lxc
178 | | framesize=IMIX_v4_1 | wt=2 | rxq=1
179
180 | tc09-64B-4t4c-eth-l2bdbasemaclrn-eth-2memif-1lxc-mrr
181 | | [Documentation]
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.
186 | | ...
187 | | [Tags] | 64B | 4t4c | MTHREAD
188 | | [Template] | Check RR for l2bdbasemaclrn-eth-2memif-1lxc
189 | | framesize=${64} | wt=4 | rxq=2
190
191 | tc10-1518B-4t4c-eth-l2bdbasemaclrn-eth-2memif-1lxc-mrr
192 | | [Documentation]
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.
197 | | ...
198 | | [Tags] | 1518B | 4t4c | MTHREAD
199 | | [Template] | Check RR for l2bdbasemaclrn-eth-2memif-1lxc
200 | | framesize=${1518} | wt=4 | rxq=2
201
202 | tc11-9000B-4t4c-eth-l2bdbasemaclrn-eth-2memif-1lxc-mrr
203 | | [Documentation]
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.
208 | | ...
209 | | [Tags] | 9000B | 4t4c | MTHREAD
210 | | [Template] | Check RR for l2bdbasemaclrn-eth-2memif-1lxc
211 | | framesize=${9000} | wt=4 | rxq=2
212
213 | tc12-IMIX-4t4c-eth-l2bdbasemaclrn-eth-2memif-1lxc-mrr
214 | | [Documentation]
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)
220 | | ...
221 | | [Tags] | IMIX | 4t4c | MTHREAD
222 | | [Template] | Check RR for l2bdbasemaclrn-eth-2memif-1lxc
223 | | framesize=IMIX_v4_1 | wt=4 | rxq=2