a34dca595d0e8b96de090c34d819eb9ae472baa1
[csit.git] / tests / vpp / perf / container_memif / 40ge2p1xl710-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-XL710 | 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-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 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 2p40GE NIC XL710 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 # XL710-DA2 bandwidth limit ~49Gbps/2=24.5Gbps
54 | ${s_24.5G} | ${24500000000}
55 # XL710-DA2 Mpps limit 37.5Mpps/2=18.75Mpps
56 | ${s_18.75Mpps} | ${18750000}
57 # Traffic profile:
58 | ${traffic_profile} | trex-sl-3n-ethip4-ip4src254
59 # LXC container
60 | ${container_count}= | ${1}
61 | ${container_engine}= | LXC
62 | ${container_image}= | ${EMPTY}
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_24.5G} | ${get_framesize}
82 | | ${max_rate}= | Set Variable If
83 | | ... | ${max_rate} > ${s_18.75Mpps} | ${s_18.75Mpps} | ${max_rate}
84 | | ...
85 | | Given Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
86 | | And Add PCI devices to DUTs in 3-node single link topology
87 | | And Run Keyword If | ${get_framesize} < ${1522}
88 | | ... | Add no multi seg to all DUTs
89 | | And Apply startup configuration on all VPP DUTs
90 | | And Initialize L2 xconnect for '1' memif pairs and '${rxq}' rxqueues in 3-node circular topology
91 | | Then Traffic should pass with maximum rate | ${perf_trial_duration}
92 | | ... | ${max_rate}pps | ${framesize} | ${traffic_profile}
93
94 *** Test Cases ***
95 | tc01-64B-1t1c-eth-l2xcbase-eth-2memif-1lxc-mrr
96 | | [Documentation]
97 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core,\
98 | | ... | 1 receive queue per NIC port.
99 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
100 | | ... | throughput test.
101 | | ...
102 | | [Tags] | 64B | 1T1C | STHREAD
103 | | [Template] | Check RR for l2xcbase-eth-2memif-1lxc
104 | | framesize=${64} | wt=1 | rxq=1
105
106 | tc02-1518B-1t1c-eth-l2xcbase-eth-2memif-1lxc-mrr
107 | | [Documentation]
108 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core,\
109 | | ... | 1 receive queue per NIC port.
110 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
111 | | ... | throughput test.
112 | | ...
113 | | [Tags] | 1518B | 1T1C | STHREAD
114 | | [Template] | Check RR for l2xcbase-eth-2memif-1lxc
115 | | framesize=${1518} | wt=1 | rxq=1
116
117 | tc03-9000B-1t1c-eth-l2xcbase-eth-2memif-1lxc-mrr
118 | | [Documentation]
119 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core,\
120 | | ... | 1 receive queue per NIC port.
121 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
122 | | ... | throughput test.
123 | | ...
124 | | [Tags] | 9000B | 1T1C | STHREAD
125 | | [Template] | Check RR for l2xcbase-eth-2memif-1lxc
126 | | framesize=${9000} | wt=1 | rxq=1
127
128 | tc04-IMIX-1t1c-eth-l2xcbase-eth-2memif-1lxc-mrr
129 | | [Documentation]
130 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core,\
131 | | ... | 1 receive queue per NIC port.
132 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
133 | | ... | throughput test.
134 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
135 | | ...
136 | | [Tags] | IMIX | 1T1C | STHREAD
137 | | [Template] | Check RR for l2xcbase-eth-2memif-1lxc
138 | | framesize=IMIX_v4_1 | wt=1 | rxq=1
139
140 | tc05-64B-2t2c-eth-l2xcbase-eth-2memif-1lxc-mrr
141 | | [Documentation]
142 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores,\
143 | | ... | 1 receive queue per NIC port.
144 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
145 | | ... | throughput test.
146 | | ...
147 | | [Tags] | 64B | 2T2C | MTHREAD
148 | | [Template] | Check RR for l2xcbase-eth-2memif-1lxc
149 | | framesize=${64} | wt=2 | rxq=1
150
151 | tc06-1518B-2t2c-eth-l2xcbase-eth-2memif-1lxc-mrr
152 | | [Documentation]
153 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores,\
154 | | ... | 1 receive queue per NIC port.
155 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
156 | | ... | throughput test.
157 | | ...
158 | | [Tags] | 1518B | 2T2C | MTHREAD
159 | | [Template] | Check RR for l2xcbase-eth-2memif-1lxc
160 | | framesize=${1518} | wt=2 | rxq=1
161
162 | tc07-9000B-2t2c-eth-l2xcbase-eth-2memif-1lxc-mrr
163 | | [Documentation]
164 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores,\
165 | | ... | 1 receive queue per NIC port.
166 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
167 | | ... | throughput test.
168 | | ...
169 | | [Tags] | 9000B | 2T2C | MTHREAD
170 | | [Template] | Check RR for l2xcbase-eth-2memif-1lxc
171 | | framesize=${9000} | wt=2 | rxq=1
172
173 | tc08-IMIX-2t2c-eth-l2xcbase-eth-2memif-1lxc-mrr
174 | | [Documentation]
175 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores,\
176 | | ... | 1 receive queue per NIC port.
177 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
178 | | ... | throughput test.
179 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
180 | | ...
181 | | [Tags] | IMIX | 2T2C | MTHREAD
182 | | [Template] | Check RR for l2xcbase-eth-2memif-1lxc
183 | | framesize=IMIX_v4_1 | wt=2 | rxq=1
184
185 | tc09-64B-4t4c-eth-l2xcbase-eth-2memif-1lxc-mrr
186 | | [Documentation]
187 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores,\
188 | | ... | 2 receive queues per NIC port.
189 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
190 | | ... | throughput test.
191 | | ...
192 | | [Tags] | 64B | 4T4C | MTHREAD
193 | | [Template] | Check RR for l2xcbase-eth-2memif-1lxc
194 | | framesize=${64} | wt=4 | rxq=2
195
196 | tc10-1518B-4t4c-eth-l2xcbase-eth-2memif-1lxc-mrr
197 | | [Documentation]
198 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores,\
199 | | ... | 2 receive queues per NIC port.
200 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
201 | | ... | throughput test.
202 | | ...
203 | | [Tags] | 1518B | 4T4C | MTHREAD
204 | | [Template] | Check RR for l2xcbase-eth-2memif-1lxc
205 | | framesize=${1518} | wt=4 | rxq=2
206
207 | tc11-9000B-4t4c-eth-l2xcbase-eth-2memif-1lxc-mrr
208 | | [Documentation]
209 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores,\
210 | | ... | 2 receive queues per NIC port.
211 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
212 | | ... | throughput test.
213 | | ...
214 | | [Tags] | 9000B | 4T4C | MTHREAD
215 | | [Template] | Check RR for l2xcbase-eth-2memif-1lxc
216 | | framesize=${9000} | wt=4 | rxq=2
217
218 | tc12-IMIX-4t4c-eth-l2xcbase-eth-2memif-1lxc-mrr
219 | | [Documentation]
220 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores,\
221 | | ... | 2 receive queues per NIC port.
222 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
223 | | ... | throughput test.
224 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
225 | | ...
226 | | [Tags] | IMIX | 4T4C | MTHREAD
227 | | [Template] | Check RR for l2xcbase-eth-2memif-1lxc
228 | | framesize=IMIX_v4_1 | wt=4 | rxq=2