c164f04db0237506e8a8417a746b80b65ebaf961
[csit.git] / tests / vpp / perf / container_memif / 10ge2p1x710-eth-l2xcbase-eth-1memif-1dcr-mrr.robot
1 # Copyright (c) 2018 Cisco and/or its affiliates.\r
2 # Licensed under the Apache License, Version 2.0 (the "License");\r
3 # you may not use this file except in compliance with the License.\r
4 # You may obtain a copy of the License at:\r
5 #\r
6 #     http://www.apache.org/licenses/LICENSE-2.0\r
7 #\r
8 # Unless required by applicable law or agreed to in writing, software\r
9 # distributed under the License is distributed on an "AS IS" BASIS,\r
10 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
11 # See the License for the specific language governing permissions and\r
12 # limitations under the License.\r
13 \r
14 *** Settings ***\r
15 | Resource | resources/libraries/robot/performance/performance_setup.robot\r
16 | ...\r
17 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | MRR\r
18 | ... | NIC_Intel-X710 | ETH | L2XCFWD | BASE | MEMIF | SINGLE_MEMIF | DOCKER\r
19 | ...\r
20 | Suite Setup | Run Keywords\r
21 | ... | Set up 3-node performance topology with DUT's NIC model | L2\r
22 | ... | Intel-X710\r
23 | ... | AND | Set up performance test suite with MEMIF\r
24 | ... | AND | Set up performance topology with containers\r
25 | ...\r
26 | Suite Teardown | Tear down 3-node performance topology with container\r
27 | ...\r
28 | Test Setup | Run Keywords\r
29 | ... | Set up performance test\r
30 | ... | AND | Restart VPP in all 'VNF' containers\r
31 | ...\r
32 | Test Teardown | Tear down performance mrr test\r
33 | ...\r
34 | Test Template | Check RR for l2xcbase-eth-1memif-1dcr\r
35 | ...\r
36 | Documentation |  *Raw results L2XC test cases*\r
37 | ...\r
38 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology\r
39 | ... | with single links between nodes.\r
40 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4 for L2 cross connect.\r
41 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 configured with L2 cross-\r
42 | ... | connect. DUT1 and DUT2 tested with 2p10GE NIC X710 by Intel.\r
43 | ... | Container is connected to VPP via Memif interface running same VPP\r
44 | ... | version as running on DUT. Resources are limited via cgroup to use 5\r
45 | ... | cores allocated from pool of isolated CPUs. There are no memory\r
46 | ... | contraints. Cross Horizontal topology with packets flowing via DUT (VPP)\r
47 | ... | to Container, then via horizontal memif to the next Container, and so on\r
48 | ... | until the last Container then to NIC (in last Container). Single\r
49 | ... | Container is supported as of now.\r
50 | ... | *[Ver] TG verification:* In MaxReceivedRate test TG sends traffic\r
51 | ... | at line rate and reports total received/sent packets over trial period.\r
52 | ... | Test packets are generated by TG on links to DUTs. TG traffic profile\r
53 | ... | contains two L3 flow-groups (flow-group per direction, 254 flows per\r
54 | ... | flow-group) with all packets containing Ethernet header, IPv4 header\r
55 | ... | with IP protocol=61 and static payload. MAC addresses are matching MAC\r
56 | ... | addresses of the TG node interfaces.\r
57 \r
58 *** Variables ***\r
59 # X710-DA2 bandwidth limit\r
60 | ${s_limit} | ${10000000000}\r
61 # Traffic profile\r
62 | ${traffic_profile} | trex-sl-3n-ethip4-ip4src254\r
63 # Container settings\r
64 | ${container_count}= | ${1}\r
65 | ${container_engine}= | Docker\r
66 | ${container_image}= | ubuntu:xenial-20180412\r
67 | ${container_install_dkms}= | ${TRUE}\r
68 | ${container_chain_topology}= | cross_horiz\r
69 # CPU settings\r
70 | ${system_cpus}= | ${1}\r
71 | ${vpp_cpus}= | ${5}\r
72 | ${container_cpus}= | ${5}\r
73 \r
74 *** Keywords ***\r
75 | Check RR for l2xcbase-eth-1memif-1dcr\r
76 | | [Documentation]\r
77 | | ... | [Cfg] DUT runs L2XC switching config with ${wt} thread(s), ${wt}\\r
78 | | ... | phy core(s), ${rxq} receive queue(s) per NIC port.\r
79 | | ... | [Ver] Measure MaxReceivedRate for ${framesize} frames using single\\r
80 | | ... | trial throughput test.\r
81 | | ...\r
82 | | [Arguments] | ${framesize} | ${wt} | ${rxq}\r
83 | | ...\r
84 | | Set Test Variable | ${framesize}\r
85 | | ${get_framesize}= | Get Frame Size | ${framesize}\r
86 | | ${max_rate}= | Calculate pps | ${s_limit} | ${get_framesize}\r
87 | | Given Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology\r
88 | | And Add single PCI device to DUTs in 3-node single link topology\r
89 | | And Run Keyword If | ${get_framesize} < ${1522}\r
90 | | ... | Add no multi seg to all DUTs\r
91 | | And Apply startup configuration on all VPP DUTs\r
92 | | And Initialize L2 xconnect for single memif in 3-node circular topology\r
93 | | ... | ${rxq}\r
94 | | Then Traffic should pass with maximum rate | ${perf_trial_duration}\r
95 | | ... | ${max_rate}pps | ${framesize} | ${traffic_profile}\r
96 \r
97 *** Test Cases ***\r
98 | tc01-64B-1t1c-eth-l2xcbase-eth-1memif-1dcr-mrr\r
99 | | [Documentation]\r
100 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core,\\r
101 | | ... | 1 receive queue per NIC port.\r
102 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\\r
103 | | ... | throughput test.\r
104 | | ...\r
105 | | [Tags] | 64B | 1T1C | STHREAD\r
106 | | framesize=${64} | wt=1 | rxq=1\r
107 \r
108 | tc02-1518B-1t1c-eth-l2xcbase-eth-1memif-1dcr-mrr\r
109 | | [Documentation]\r
110 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core,\\r
111 | | ... | 1 receive queue per NIC port.\r
112 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\\r
113 | | ... | throughput test.\r
114 | | ...\r
115 | | [Tags] | 1518B | 1T1C | STHREAD\r
116 | | framesize=${1518} | wt=1 | rxq=1\r
117 \r
118 | tc03-9000B-1t1c-eth-l2xcbase-eth-1memif-1dcr-mrr\r
119 | | [Documentation]\r
120 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core,\\r
121 | | ... | 1 receive queue per NIC port.\r
122 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\\r
123 | | ... | throughput test.\r
124 | | ...\r
125 | | [Tags] | 9000B | 1T1C | STHREAD\r
126 | | framesize=${9000} | wt=1 | rxq=1\r
127 \r
128 | tc04-IMIX-1t1c-eth-l2xcbase-eth-1memif-1dcr-mrr\r
129 | | [Documentation]\r
130 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core,\\r
131 | | ... | 1 receive queue per NIC port.\r
132 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\\r
133 | | ... | throughput test.\r
134 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)\r
135 | | ...\r
136 | | [Tags] | IMIX | 1T1C | STHREAD\r
137 | | framesize=IMIX_v4_1 | wt=1 | rxq=1\r
138 \r
139 | tc05-64B-2t2c-eth-l2xcbase-eth-1memif-1dcr-mrr\r
140 | | [Documentation]\r
141 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores,\\r
142 | | ... | 1 receive queue per NIC port.\r
143 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\\r
144 | | ... | throughput test.\r
145 | | ...\r
146 | | [Tags] | 64B | 2T2C | MTHREAD\r
147 | | framesize=${64} | wt=2 | rxq=1\r
148 \r
149 | tc06-1518B-2t2c-eth-l2xcbase-eth-1memif-1dcr-mrr\r
150 | | [Documentation]\r
151 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 1 phy cores,\\r
152 | | ... | 1 receive queue per NIC port.\r
153 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\\r
154 | | ... | throughput test.\r
155 | | ...\r
156 | | [Tags] | 1518B | 2T2C | MTHREAD\r
157 | | framesize=${1518} | wt=2 | rxq=1\r
158 \r
159 | tc07-9000B-2t2c-eth-l2xcbase-eth-1memif-1dcr-mrr\r
160 | | [Documentation]\r
161 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 1 phy cores,\\r
162 | | ... | 1 receive queue per NIC port.\r
163 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\\r
164 | | ... | throughput test.\r
165 | | ...\r
166 | | [Tags] | 9000B | 2T2C | MTHREAD\r
167 | | framesize=${9000} | wt=2 | rxq=1\r
168 \r
169 | tc08-IMIX-2t2c-eth-l2xcbase-eth-1memif-1dcr-mrr\r
170 | | [Documentation]\r
171 | | ... | [Cfg] DUT runs L2XC switching config with 2 threads, 2 phy cores,\\r
172 | | ... | 1 receive queue per NIC port.\r
173 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\\r
174 | | ... | throughput test.\r
175 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)\r
176 | | ...\r
177 | | [Tags] | IMIX | 2T2C | MTHREAD\r
178 | | framesize=IMIX_v4_1 | wt=2 | rxq=1\r
179 \r
180 | tc09-64B-4t4c-eth-l2xcbase-eth-1memif-1dcr-mrr\r
181 | | [Documentation]\r
182 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores,\\r
183 | | ... | 2 receive queues per NIC port.\r
184 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\\r
185 | | ... | throughput test.\r
186 | | ...\r
187 | | [Tags] | 64B | 4T4C | MTHREAD\r
188 | | framesize=${64} | wt=4 | rxq=2\r
189 \r
190 | tc10-1518B-4t4c-eth-l2xcbase-eth-1memif-1dcr-mrr\r
191 | | [Documentation]\r
192 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores,\\r
193 | | ... | 2 receive queues per NIC port.\r
194 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single trial\\r
195 | | ... | throughput test.\r
196 | | ...\r
197 | | [Tags] | 1518B | 4T4C | MTHREAD\r
198 | | framesize=${1518} | wt=4 | rxq=2\r
199 \r
200 | tc11-9000B-4t4c-eth-l2xcbase-eth-1memif-1dcr-mrr\r
201 | | [Documentation]\r
202 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores,\\r
203 | | ... | 2 receive queues per NIC port.\r
204 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\\r
205 | | ... | throughput test.\r
206 | | ...\r
207 | | [Tags] | 9000B | 4T4C | MTHREAD\r
208 | | framesize=${9000} | wt=4 | rxq=2\r
209 \r
210 | tc12-IMIX-4t4c-eth-l2xcbase-eth-1memif-1dcr-mrr\r
211 | | [Documentation]\r
212 | | ... | [Cfg] DUT runs L2XC switching config with 4 threads, 4 phy cores,\\r
213 | | ... | 2 receive queues per NIC port.\r
214 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\\r
215 | | ... | throughput test.\r
216 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)\r
217 | | ...\r
218 | | [Tags] | IMIX | 4T4C | MTHREAD\r
219 | | framesize=IMIX_v4_1 | wt=4 | rxq=2\r