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