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