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