CSIT-1036 Expose option to install DKMS in container
[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 # CPU settings
66 | ${system_cpus}= | ${1}
67 | ${vpp_cpus}= | ${5}
68 | ${container_cpus}= | ${5}
69
70 *** Keywords ***
71 | Check RR for l2bdbasemaclrn-eth-2memif-1lxc
72 | | [Documentation]
73 | | ... | [Cfg] DUT runs L2BD switching config with ${wt} thread(s), ${wt}\
74 | | ... | phy core(s), ${rxq} receive queue(s) per NIC port.
75 | | ... | [Ver] Measure MaxReceivedRate for ${framesize} frames using single\
76 | | ... | trial throughput test.
77 | | ...
78 | | [Arguments] | ${framesize} | ${wt} | ${rxq}
79 | | ...
80 | | # Test Variables required for test teardown
81 | | Set Test Variable | ${framesize}
82 | | ${get_framesize}= | Get Frame Size | ${framesize}
83 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${get_framesize}
84 | | ${max_rate}= | Set Variable If
85 | | ... | ${max_rate} > ${s_18.75Mpps} | ${s_18.75Mpps} | ${max_rate}
86 | | ...
87 | | Given Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
88 | | And Add PCI devices to DUTs in 3-node single link topology
89 | | And Run Keyword If | ${get_framesize} < ${1522}
90 | | ... | Add no multi seg to all DUTs
91 | | And Apply startup configuration on all VPP DUTs
92 | | And Initialize L2 Bridge Domain for '1' memif pairs and '${rxq}' rxqueues in 3-node circular topology
93 | | Then Traffic should pass with maximum rate | ${perf_trial_duration}
94 | | ... | ${max_rate}pps | ${framesize} | ${traffic_profile}
95
96 *** Test Cases ***
97 | tc01-64B-1t1c-eth-l2bdbasemaclrn-eth-2memif-1lxc-mrr
98 | | [Documentation]
99 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,\
100 | | ... | 1 receive queue per NIC port.
101 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
102 | | ... | throughput test.
103 | | ...
104 | | [Tags] | 64B | 1T1C | STHREAD
105 | | [Template] | Check RR for l2bdbasemaclrn-eth-2memif-1lxc
106 | | framesize=${64} | wt=1 | rxq=1
107
108 | tc02-1518B-1t1c-eth-l2bdbasemaclrn-eth-2memif-1lxc-mrr
109 | | [Documentation]
110 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,\
111 | | ... | 1 receive queue per NIC port.
112 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
113 | | ... | throughput test.
114 | | ...
115 | | [Tags] | 1518B | 1T1C | STHREAD
116 | | [Template] | Check RR for l2bdbasemaclrn-eth-2memif-1lxc
117 | | framesize=${1518} | wt=1 | rxq=1
118
119 | tc03-9000B-1t1c-eth-l2bdbasemaclrn-eth-2memif-1lxc-mrr
120 | | [Documentation]
121 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,\
122 | | ... | 1 receive queue per NIC port.
123 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
124 | | ... | throughput test.
125 | | ...
126 | | [Tags] | 9000B | 1T1C | STHREAD
127 | | [Template] | Check RR for l2bdbasemaclrn-eth-2memif-1lxc
128 | | framesize=${9000} | wt=1 | rxq=1
129
130 | tc04-IMIX-1t1c-eth-l2bdbasemaclrn-eth-2memif-1lxc-mrr
131 | | [Documentation]
132 | | ... | [Cfg] DUT runs L2BD switching config with 1 thread, 1 phy core,\
133 | | ... | 1 receive queue per NIC port.
134 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
135 | | ... | throughput test.
136 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
137 | | ...
138 | | [Tags] | IMIX | 1T1C | STHREAD
139 | | [Template] | Check RR for l2bdbasemaclrn-eth-2memif-1lxc
140 | | framesize=IMIX_v4_1 | wt=1 | rxq=1
141
142 | tc05-64B-2t2c-eth-l2bdbasemaclrn-eth-2memif-1lxc-mrr
143 | | [Documentation]
144 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,\
145 | | ... | 1 receive queue per NIC port.
146 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
147 | | ... | throughput test.
148 | | ...
149 | | [Tags] | 64B | 2T2C | MTHREAD
150 | | [Template] | Check RR for l2bdbasemaclrn-eth-2memif-1lxc
151 | | framesize=${64} | wt=2 | rxq=1
152
153 | tc06-1518B-2t2c-eth-l2bdbasemaclrn-eth-2memif-1lxc-mrr
154 | | [Documentation]
155 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,\
156 | | ... | 1 receive queue per NIC port.
157 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
158 | | ... | throughput test.
159 | | ...
160 | | [Tags] | 1518B | 2T2C | MTHREAD
161 | | [Template] | Check RR for l2bdbasemaclrn-eth-2memif-1lxc
162 | | framesize=${1518} | wt=2 | rxq=1
163
164 | tc07-9000B-2t2c-eth-l2bdbasemaclrn-eth-2memif-1lxc-mrr
165 | | [Documentation]
166 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,\
167 | | ... | 1 receive queue per NIC port.
168 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
169 | | ... | throughput test.
170 | | ...
171 | | [Tags] | 9000B | 2T2C | MTHREAD
172 | | [Template] | Check RR for l2bdbasemaclrn-eth-2memif-1lxc
173 | | framesize=${9000} | wt=2 | rxq=1
174
175 | tc08-IMIX-2t2c-eth-l2bdbasemaclrn-eth-2memif-1lxc-mrr
176 | | [Documentation]
177 | | ... | [Cfg] DUT runs L2BD switching config with 2 threads, 2 phy cores,\
178 | | ... | 1 receive queue per NIC port.
179 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
180 | | ... | throughput test.
181 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
182 | | ...
183 | | [Tags] | IMIX | 2T2C | MTHREAD
184 | | [Template] | Check RR for l2bdbasemaclrn-eth-2memif-1lxc
185 | | framesize=IMIX_v4_1 | wt=2 | rxq=1
186
187 | tc09-64B-4t4c-eth-l2bdbasemaclrn-eth-2memif-1lxc-mrr
188 | | [Documentation]
189 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,\
190 | | ... | 2 receive queues per NIC port.
191 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
192 | | ... | throughput test.
193 | | ...
194 | | [Tags] | 64B | 4T4C | MTHREAD
195 | | [Template] | Check RR for l2bdbasemaclrn-eth-2memif-1lxc
196 | | framesize=${64} | wt=4 | rxq=2
197
198 | tc10-1518B-4t4c-eth-l2bdbasemaclrn-eth-2memif-1lxc-mrr
199 | | [Documentation]
200 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,\
201 | | ... | 2 receive queues per NIC port.
202 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
203 | | ... | throughput test.
204 | | ...
205 | | [Tags] | 1518B | 4T4C | MTHREAD
206 | | [Template] | Check RR for l2bdbasemaclrn-eth-2memif-1lxc
207 | | framesize=${1518} | wt=4 | rxq=2
208
209 | tc11-9000B-4t4c-eth-l2bdbasemaclrn-eth-2memif-1lxc-mrr
210 | | [Documentation]
211 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,\
212 | | ... | 2 receive queues per NIC port.
213 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
214 | | ... | throughput test.
215 | | ...
216 | | [Tags] | 9000B | 4T4C | MTHREAD
217 | | [Template] | Check RR for l2bdbasemaclrn-eth-2memif-1lxc
218 | | framesize=${9000} | wt=4 | rxq=2
219
220 | tc12-IMIX-4t4c-eth-l2bdbasemaclrn-eth-2memif-1lxc-mrr
221 | | [Documentation]
222 | | ... | [Cfg] DUT runs L2BD switching config with 4 threads, 4 phy cores,\
223 | | ... | 2 receive queues per NIC port.
224 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
225 | | ... | throughput test.
226 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
227 | | ...
228 | | [Tags] | IMIX | 4T4C | MTHREAD
229 | | [Template] | Check RR for l2bdbasemaclrn-eth-2memif-1lxc
230 | | framesize=IMIX_v4_1 | wt=4 | rxq=2