ca5a0695530ae8aa8fd81f2ee6e2415125c706fb
[csit.git] / tests / vpp / perf / container_memif / 10ge2p1x710-eth-l2xcbase-eth-2memif-1dcr-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 | DOCKER
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 | ... | Container is connected to VPP via Memif interface. Container is running
42 | ... | same VPP version as running on DUT. Container is limited via cgroup to
43 | ... | use 3 cores allocated from pool of isolated CPUs. There are no memory
44 | ... | contraints.
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 # X710-DA2 bandwidth limit
55 | ${s_limit}= | ${10000000000}
56 # Traffic profile:
57 | ${traffic_profile}= | trex-sl-3n-ethip4-ip4src254
58 # LXC container
59 | ${container_count}= | ${1}
60 | ${container_engine}= | Docker
61 | ${container_image}= | ubuntu
62 # CPU settings
63 | ${system_cpus}= | ${1}
64 | ${vpp_cpus}= | ${5}
65 | ${container_cpus}= | ${5}
66
67 *** Keywords ***
68 | Check RR for l2xcbase-eth-2memif-1dcr
69 | | [Documentation]
70 | | ... | [Cfg] DUT runs L2XC switching config with ${wt} thread(s), ${wt}\
71 | | ... | phy core(s), ${rxq} receive queue(s) per NIC port.
72 | | ... | [Ver] Measure MaxReceivedRate for ${framesize} frames using single\
73 | | ... | trial throughput test.
74 | | ...
75 | | [Arguments] | ${framesize} | ${wt} | ${rxq}
76 | | ...
77 | | # Test Variables required for test teardown
78 | | Set Test Variable | ${framesize}
79 | | ${get_framesize}= | Get Frame Size | ${framesize}
80 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
81 | | ...
82 | | Given Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
83 | | And Add PCI devices to DUTs in 3-node single link topology
84 | | And Run Keyword If | ${get_framesize} < ${1522}
85 | | ... | Add no multi seg to all DUTs
86 | | And Apply startup configuration on all VPP DUTs
87 | | And Initialize L2 xconnect for '1' memif pairs and '${rxq}' rxqueues in 3-node circular topology
88 | | Then Traffic should pass with maximum rate | ${perf_trial_duration}
89 | | ... | ${max_rate}pps | ${framesize} | ${traffic_profile}
90
91 *** Test Cases ***
92 | tc01-64B-1t1c-eth-l2xcbase-eth-2memif-1dcr-mrr
93 | | [Documentation]
94 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core,\
95 | | ... | 1 receive queue per NIC port.
96 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
97 | | ... | throughput test.
98 | | ...
99 | | [Tags] | 64B | 1T1C | STHREAD
100 | | [Template] | Check RR for l2xcbase-eth-2memif-1dcr
101 | | framesize=${64} | wt=1 | rxq=1
102
103 | tc02-1518B-1t1c-eth-l2xcbase-eth-2memif-1dcr-mrr
104 | | [Documentation]
105 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core,\
106 | | ... | 1 receive queue per NIC port.
107 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
108 | | ... | throughput test.
109 | | ...
110 | | [Tags] | 1518B | 1T1C | STHREAD
111 | | [Template] | Check RR for l2xcbase-eth-2memif-1dcr
112 | | framesize=${1518} | wt=1 | rxq=1
113
114 | tc03-9000B-1t1c-eth-l2xcbase-eth-2memif-1dcr-mrr
115 | | [Documentation]
116 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core,\
117 | | ... | 1 receive queue per NIC port.
118 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
119 | | ... | throughput test.
120 | | ...
121 | | [Tags] | 9000B | 1T1C | STHREAD
122 | | [Template] | Check RR for l2xcbase-eth-2memif-1dcr
123 | | framesize=${9000} | wt=1 | rxq=1
124
125 | tc04-IMIX-1t1c-eth-l2xcbase-eth-2memif-1dcr-mrr
126 | | [Documentation]
127 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core,\
128 | | ... | 1 receive queue per NIC port.
129 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
130 | | ... | throughput test.
131 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
132 | | ...
133 | | [Tags] | IMIX | 1T1C | STHREAD
134 | | [Template] | Check RR for l2xcbase-eth-2memif-1dcr
135 | | framesize=IMIX_v4_1 | wt=1 | rxq=1
136
137 | tc05-64B-2t2c-eth-l2xcbase-eth-2memif-1dcr-mrr
138 | | [Documentation]
139 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores,\
140 | | ... | 1 receive queue per NIC port.
141 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
142 | | ... | throughput test.
143 | | ...
144 | | [Tags] | 64B | 2T2C | MTHREAD
145 | | [Template] | Check RR for l2xcbase-eth-2memif-1dcr
146 | | framesize=${64} | wt=2 | rxq=1
147
148 | tc06-1518B-2t2c-eth-l2xcbase-eth-2memif-1dcr-mrr
149 | | [Documentation]
150 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 1 phy cores,\
151 | | ... | 1 receive queue per NIC port.
152 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
153 | | ... | throughput test.
154 | | ...
155 | | [Tags] | 1518B | 2T2C | MTHREAD
156 | | [Template] | Check RR for l2xcbase-eth-2memif-1dcr
157 | | framesize=${1518} | wt=2 | rxq=1
158
159 | tc07-9000B-2t2c-eth-l2xcbase-eth-2memif-1dcr-mrr
160 | | [Documentation]
161 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 1 phy cores,\
162 | | ... | 1 receive queue per NIC port.
163 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
164 | | ... | throughput test.
165 | | ...
166 | | [Tags] | 9000B | 2T2C | MTHREAD
167 | | [Template] | Check RR for l2xcbase-eth-2memif-1dcr
168 | | framesize=${9000} | wt=2 | rxq=1
169
170 | tc08-IMIX-2t2c-eth-l2xcbase-eth-2memif-1dcr-mrr
171 | | [Documentation]
172 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores,\
173 | | ... | 1 receive queue per NIC port.
174 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
175 | | ... | throughput test.
176 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
177 | | ...
178 | | [Tags] | IMIX | 2T2C | MTHREAD
179 | | [Template] | Check RR for l2xcbase-eth-2memif-1dcr
180 | | framesize=IMIX_v4_1 | wt=2 | rxq=1
181
182 | tc09-64B-4t4c-eth-l2xcbase-eth-2memif-1dcr-mrr
183 | | [Documentation]
184 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores,\
185 | | ... | 2 receive queues per NIC port.
186 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
187 | | ... | throughput test.
188 | | ...
189 | | [Tags] | 64B | 4T4C | MTHREAD
190 | | [Template] | Check RR for l2xcbase-eth-2memif-1dcr
191 | | framesize=${64} | wt=4 | rxq=2
192
193 | tc10-1518B-4t4c-eth-l2xcbase-eth-2memif-1dcr-mrr
194 | | [Documentation]
195 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores,\
196 | | ... | 2 receive queues per NIC port.
197 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\
198 | | ... | throughput test.
199 | | ...
200 | | [Tags] | 1518B | 4T4C | MTHREAD
201 | | [Template] | Check RR for l2xcbase-eth-2memif-1dcr
202 | | framesize=${1518} | wt=4 | rxq=2
203
204 | tc11-9000B-4t4c-eth-l2xcbase-eth-2memif-1dcr-mrr
205 | | [Documentation]
206 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores,\
207 | | ... | 2 receive queues per NIC port.
208 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
209 | | ... | throughput test.
210 | | ...
211 | | [Tags] | 9000B | 4T4C | MTHREAD
212 | | [Template] | Check RR for l2xcbase-eth-2memif-1dcr
213 | | framesize=${9000} | wt=4 | rxq=2
214
215 | tc12-IMIX-4t4c-eth-l2xcbase-eth-2memif-1dcr-mrr
216 | | [Documentation]
217 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores,\
218 | | ... | 2 receive queues per NIC port.
219 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
220 | | ... | throughput test.
221 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
222 | | ...
223 | | [Tags] | IMIX | 4T4C | MTHREAD
224 | | [Template] | Check RR for l2xcbase-eth-2memif-1dcr
225 | | framesize=IMIX_v4_1 | wt=4 | rxq=2