CSIT-1035: MRR Tests: container_memif, x710
[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 | Set up performance test
29 | ...
30 | Test Teardown | Tear down performance mrr test
31 | ...
32 | Documentation |  *Raw results L2XC 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 cross connect.
37 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with L2 cross-
38 | ... | connect. DUT1 and DUT2 tested with 2p10GE NIC X710 by Intel.
39 | ... | LXC is connected to VPP via Memif interface. LXC is running same VPP
40 | ... | version as running on DUT. LXC is limited via cgroup to use 3 cores
41 | ... | allocated from pool of isolated CPUs. There are no memory contraints.
42 | ... | *[Ver] TG verification:* In MaxReceivedRate test TG sends traffic
43 | ... | at line rate and reports total received/sent packets over trial period.
44 | ... | Test packets are generated by TG on links to DUTs. TG traffic profile
45 | ... | contains two L3 flow-groups (flow-group per direction, 254 flows per
46 | ... | flow-group) with all packets containing Ethernet header, IPv4 header
47 | ... | with IP protocol=61 and static payload. MAC addresses are matching MAC
48 | ... | addresses of the TG node interfaces.
49
50 *** Variables ***
51 # X710-DA2 bandwidth limit
52 | ${s_limit}= | ${10000000000}
53 # Traffic profile:
54 | ${traffic_profile}= | trex-sl-3n-ethip4-ip4src254
55 # LXC container
56 | ${container_count}= | ${1}
57 | ${container_engine}= | LXC
58 | ${container_image}= | ${EMPTY}
59 # CPU settings
60 | ${system_cpus}= | ${1}
61 | ${vpp_cpus}= | ${5}
62 | ${container_cpus}= | ${3}
63
64 *** Keywords ***
65 | Check RR for l2xcbase-eth-2memif-1lxc
66 | | [Documentation]
67 | | ... | [Cfg] DUT runs L2XC switching config with ${wt} thread(s), ${wt}\
68 | | ... | phy core(s), ${rxq} receive queue(s) per NIC port.
69 | | ... | [Ver] Measure MaxReceivedRate for ${framesize} frames using single\
70 | | ... | trial throughput test.
71 | | ...
72 | | [Arguments] | ${framesize} | ${wt} | ${rxq}
73 | | ...
74 | | # Test Variables required for test teardown
75 | | Set Test Variable | ${framesize}
76 | | ${get_framesize}= | Get Frame Size | ${framesize}
77 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
78 | | ...
79 | | Given Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
80 | | And Add PCI devices to DUTs in 3-node single link topology
81 | | And Run Keyword If | ${get_framesize} < ${1522}
82 | | ... | Add no multi seg to all DUTs
83 | | And Apply startup configuration on all VPP DUTs
84 | | And Initialize L2 xconnect for '1' memif pairs in 3-node circular topology
85 | | Then Traffic should pass with maximum rate | ${perf_trial_duration}
86 | | ... | ${max_rate}pps | ${framesize} | ${traffic_profile}
87
88 *** Test Cases ***
89 | tc01-64B-1t1c-eth-l2xcbase-eth-2memif-1lxc-mrr
90 | | [Documentation]
91 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core,\
92 | | ... | 1 receive queue per NIC port.
93 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
94 | | ... | throughput test.
95 | | ...
96 | | [Tags] | 64B | 1T1C | STHREAD
97 | | [Template] | Check RR for l2xcbase-eth-2memif-1lxc
98 | | framesize=${64} | wt=1 | rxq=1
99
100 | tc02-1518B-1t1c-eth-l2xcbase-eth-2memif-1lxc-mrr
101 | | [Documentation]
102 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core,\
103 | | ... | 1 receive queue per NIC port.
104 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
105 | | ... | throughput test.
106 | | ...
107 | | [Tags] | 1518B | 1T1C | STHREAD
108 | | [Template] | Check RR for l2xcbase-eth-2memif-1lxc
109 | | framesize=${1518} | wt=1 | rxq=1
110
111 | tc03-9000B-1t1c-eth-l2xcbase-eth-2memif-1lxc-mrr
112 | | [Documentation]
113 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core,\
114 | | ... | 1 receive queue per NIC port.
115 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
116 | | ... | throughput test.
117 | | ...
118 | | [Tags] | 9000B | 1T1C | STHREAD
119 | | [Template] | Check RR for l2xcbase-eth-2memif-1lxc
120 | | framesize=${9000} | wt=1 | rxq=1
121
122 | tc04-IMIX-1t1c-eth-l2xcbase-eth-2memif-1lxc-mrr
123 | | [Documentation]
124 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core,\
125 | | ... | 1 receive queue per NIC port.
126 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
127 | | ... | throughput test.
128 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
129 | | ...
130 | | [Tags] | IMIX | 1T1C | STHREAD
131 | | [Template] | Check RR for l2xcbase-eth-2memif-1lxc
132 | | framesize=IMIX_v4_1 | wt=1 | rxq=1
133
134 | tc05-64B-2t2c-eth-l2xcbase-eth-2memif-1lxc-mrr
135 | | [Documentation]
136 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores,\
137 | | ... | 1 receive queue per NIC port.
138 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
139 | | ... | throughput test.
140 | | ...
141 | | [Tags] | 64B | 2T2C | MTHREAD
142 | | [Template] | Check RR for l2xcbase-eth-2memif-1lxc
143 | | framesize=${64} | wt=2 | rxq=1
144
145 | tc06-1518B-2t2c-eth-l2xcbase-eth-2memif-1lxc-mrr
146 | | [Documentation]
147 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores,\
148 | | ... | 1 receive queue per NIC port.
149 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
150 | | ... | throughput test.
151 | | ...
152 | | [Tags] | 1518B | 2T2C | MTHREAD
153 | | [Template] | Check RR for l2xcbase-eth-2memif-1lxc
154 | | framesize=${1518} | wt=2 | rxq=1
155
156 | tc07-9000B-2t2c-eth-l2xcbase-eth-2memif-1lxc-mrr
157 | | [Documentation]
158 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores,\
159 | | ... | 1 receive queue per NIC port.
160 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
161 | | ... | throughput test.
162 | | ...
163 | | [Tags] | 9000B | 2T2C | MTHREAD
164 | | [Template] | Check RR for l2xcbase-eth-2memif-1lxc
165 | | framesize=${9000} | wt=2 | rxq=1
166
167 | tc08-IMIX-2t2c-eth-l2xcbase-eth-2memif-1lxc-mrr
168 | | [Documentation]
169 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores,\
170 | | ... | 1 receive queue per NIC port.
171 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
172 | | ... | throughput test.
173 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
174 | | ...
175 | | [Tags] | IMIX | 2T2C | MTHREAD
176 | | [Template] | Check RR for l2xcbase-eth-2memif-1lxc
177 | | framesize=IMIX_v4_1 | wt=2 | rxq=1
178
179 | tc09-64B-4t4c-eth-l2xcbase-eth-2memif-1lxc-mrr
180 | | [Documentation]
181 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores,\
182 | | ... | 2 receive queues per NIC port.
183 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
184 | | ... | throughput test.
185 | | ...
186 | | [Tags] | 64B | 4T4C | MTHREAD
187 | | [Template] | Check RR for l2xcbase-eth-2memif-1lxc
188 | | framesize=${64} | wt=4 | rxq=2
189
190 | tc10-1518B-4t4c-eth-l2xcbase-eth-2memif-1lxc-mrr
191 | | [Documentation]
192 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores,\
193 | | ... | 2 receive queues per NIC port.
194 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
195 | | ... | throughput test.
196 | | ...
197 | | [Tags] | 1518B | 4T4C | MTHREAD
198 | | [Template] | Check RR for l2xcbase-eth-2memif-1lxc
199 | | framesize=${1518} | wt=4 | rxq=2
200
201 | tc11-9000B-4t4c-eth-l2xcbase-eth-2memif-1lxc-mrr
202 | | [Documentation]
203 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores,\
204 | | ... | 2 receive queues per NIC port.
205 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
206 | | ... | throughput test.
207 | | ...
208 | | [Tags] | 9000B | 4T4C | MTHREAD
209 | | [Template] | Check RR for l2xcbase-eth-2memif-1lxc
210 | | framesize=${9000} | wt=4 | rxq=2
211
212 | tc12-IMIX-4t4c-eth-l2xcbase-eth-2memif-1lxc-mrr
213 | | [Documentation]
214 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores,\
215 | | ... | 2 receive queues per NIC port.
216 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
217 | | ... | throughput test.
218 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
219 | | ...
220 | | [Tags] | IMIX | 4T4C | MTHREAD
221 | | [Template] | Check RR for l2xcbase-eth-2memif-1lxc
222 | | framesize=IMIX_v4_1 | wt=4 | rxq=2