FIX: Docker container image
[csit.git] / tests / vpp / perf / container_memif / 10ge2p1x520-eth-l2xcbase-eth-2memif-1drc-ndrpdrdisc.robot
1 # Copyright (c) 2017 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 | NDRPDRDISC
18 | ... | NIC_Intel-X520-DA2 | 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-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 discovery test | ${min_rate}pps
33 | ... | ${framesize} | ${traffic_profile}
34 | ...
35 | Documentation | *RFC2544: Pkt throughput L2XC test cases*
36 | ...
37 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology
38 | ... | with single links between nodes.
39 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4 for L2 cross connect.
40 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with L2 cross-
41 | ... | connect. DUT1 and DUT2 tested with 2p10GE NIC X520 Niantic by Intel.
42 | ... | Container is connected to VPP via Memif interface. Container is running
43 | ... | same VPP version as running on DUT. Container is limited via cgroup to
44 | ... | use 3 cores allocated from pool of isolated CPUs. There are no memory
45 | ... | contraints.
46 | ... | *[Ver] TG verification:* TG finds and reports throughput NDR (Non Drop
47 | ... | Rate) with zero packet loss tolerance or throughput PDR (Partial Drop
48 | ... | Rate) with non-zero packet loss tolerance (LT) expressed in percentage
49 | ... | of packets transmitted. NDR and PDR are discovered for different
50 | ... | Ethernet L2 frame sizes using either binary search or linear search
51 | ... | algorithms with configured starting rate and final step that determines
52 | ... | throughput measurement resolution. Test packets are generated by TG on
53 | ... | links to DUTs. TG traffic profile contains two L3 flow-groups
54 | ... | (flow-group per direction, 253 flows per flow-group) with all packets
55 | ... | containing Ethernet header, IPv4 header with IP protocol=61 and static
56 | ... | payload. MAC addresses are matching MAC addresses of the TG node
57 | ... | interfaces.
58 | ... | *[Ref] Applicable standard specifications:* RFC2544.
59
60 *** Variables ***
61 | ${avg_imix_framesize}= | ${357.833}
62 # X520-DA2 bandwidth limit
63 | ${s_limit} | ${10000000000}
64 # Traffic profile:
65 | ${traffic_profile} | trex-sl-3n-ethip4-ip4src254
66 # LXC container
67 | ${container_count}= | ${1}
68 | ${container_engine}= | Docker
69 | ${container_image}= | ubuntu:xenial-20180412
70 # CPU settings
71 | ${system_cpus}= | ${1}
72 | ${vpp_cpus}= | ${5}
73 | ${container_cpus}= | ${5}
74
75 *** Keywords ***
76 | L2 Cross Connect over Memif Binary Search
77 | | [Arguments] | ${framesize} | ${min_rate} | ${wt} | ${rxq} | ${search_type}
78 | | Set Test Variable | ${framesize}
79 | | Set Test Variable | ${min_rate}
80 | | ${get_framesize}= | Set Variable If
81 | | ... | "${framesize}" == "IMIX_v4_1" | ${avg_imix_framesize} | ${framesize}
82 | | ${max_rate}= | Calculate pps | ${s_limit} | ${get_framesize}
83 | | ${binary_min}= | Set Variable | ${min_rate}
84 | | ${binary_max}= | Set Variable | ${max_rate}
85 | | ${threshold}= | Set Variable | ${min_rate}
86 | | Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
87 | | Add PCI Devices To DUTs In 3-node Single Link Topology
88 | | Run Keyword If | ${get_framesize} < ${1522} | Add No Multi Seg to all DUTs
89 | | Apply startup configuration on all VPP DUTs
90 | | Initialize L2 xconnect for '${container_count}' memif pairs and '${rxq}' rxqueues in 3-node circular topology
91 | | Run Keyword If | '${search_type}' == 'NDR'
92 | | ... | Find NDR using binary search and pps
93 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
94 | | ... | ${min_rate} | ${max_rate} | ${threshold}
95 | | ... | ELSE IF | '${search_type}' == 'PDR'
96 | | ... | Find PDR using binary search and pps
97 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
98 | | ... | ${min_rate} | ${max_rate} | ${threshold}
99 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
100
101 *** Test Cases ***
102 | tc01-64B-1t1c-eth-l2xcbase-eth-2memif-1dcr-ndrdisc
103 | | [Documentation]
104 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core,\
105 | | ... | 1 receive queue per NIC port.
106 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 10GE\
107 | | ... | linerate, step 50kpps.
108 | | ...
109 | | [Tags] | 64B | 1T1C | STHREAD | NDRDISC
110 | | [Template] | L2 Cross Connect over Memif Binary Search
111 | | framesize=${64} | min_rate=${50000} | wt=1 | rxq=1 | search_type=NDR
112
113 | tc02-64B-1t1c-eth-l2xcbase-eth-2memif-1dcr-pdrdisc
114 | | [Documentation]
115 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core,\
116 | | ... | 1 receive queue per NIC port.
117 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 10GE\
118 | | ... | linerate, step 50kpps, LT=0.5%.
119 | | ...
120 | | [Tags] | 64B | 1T1C | STHREAD | PDRDISC
121 | | [Template] | L2 Cross Connect over Memif Binary Search
122 | | framesize=${64} | min_rate=${50000} | wt=1 | rxq=1 | search_type=PDR
123
124 | tc03-IMIX-1t1c-eth-l2xcbase-eth-2memif-1dcr-ndrdisc
125 | | [Documentation]
126 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core,\
127 | | ... | 1 receive queue per NIC port.
128 | | ... | [Ver] Find NDR for IMIX_v4_1 frames using binary search start at 10GE\
129 | | ... | linerate, step 50kpps.
130 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
131 | | ...
132 | | [Tags] | IMIX | 1T1C | STHREAD | NDRDISC
133 | | [Template] | L2 Cross Connect over Memif Binary Search
134 | | framesize=IMIX_v4_1 | min_rate=${50000} | wt=1 | rxq=1 | search_type=NDR
135
136 | tc04-IMIX-1t1c-eth-l2xcbase-eth-2memif-1dcr-pdrdisc
137 | | [Documentation]
138 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core,\
139 | | ... | 1 receive queue per NIC port.
140 | | ... | [Ver] Find PDR for IMIX_v4_1 frames using binary search start at 10GE\
141 | | ... | linerate, step 50kpps, LT=0.5%.
142 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
143 | | ...
144 | | [Tags] | IMIX | 1T1C | STHREAD | PDRDISC
145 | | [Template] | L2 Cross Connect over Memif Binary Search
146 | | framesize=IMIX_v4_1 | min_rate=${50000} | wt=1 | rxq=1 | search_type=PDR
147
148 | tc05-1518B-1t1c-eth-l2xcbase-eth-2memif-1dcr-ndrdisc
149 | | [Documentation]
150 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core,\
151 | | ... | 1 receive queue per NIC port.
152 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE\
153 | | ... | linerate, step 50kpps.
154 | | ...
155 | | [Tags] | 1518B | 1T1C | STHREAD | NDRDISC
156 | | [Template] | L2 Cross Connect over Memif Binary Search
157 | | framesize=${1518} | min_rate=${50000} | wt=1 | rxq=1 | search_type=NDR
158
159 | tc06-1518B-1t1c-eth-l2xcbase-eth-2memif-1dcr-pdrdisc
160 | | [Documentation]
161 | | ... | [Cfg] DUT runs L2XC switching config with 1 thread, 1 phy core,\
162 | | ... | 1 receive queue per NIC port.
163 | | ... | [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE\
164 | | ... | linerate, step 50kpps, LT=0.5%.
165 | | ...
166 | | [Tags] | 1518B | 1T1C | STHREAD | PDRDISC
167 | | [Template] | L2 Cross Connect over Memif Binary Search
168 | | framesize=${1518} | min_rate=${50000} | wt=1 | rxq=1 | search_type=PDR
169
170 | tc07-64B-2t2c-eth-l2xcbase-eth-2memif-1dcr-ndrdisc
171 | | [Documentation]
172 | | ... | [Cfg] DUT runs L2XC switching config with 2 thread, 2 phy core,\
173 | | ... | 1 receive queue per NIC port.
174 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 10GE\
175 | | ... | linerate, step 50kpps.
176 | | ...
177 | | [Tags] | 64B | 2T2C | MTHREAD | NDRDISC
178 | | [Template] | L2 Cross Connect over Memif Binary Search
179 | | framesize=${64} | min_rate=${50000} | wt=2 | rxq=1 | search_type=NDR
180
181 | tc08-64B-2t2c-eth-l2xcbase-eth-2memif-1dcr-pdrdisc
182 | | [Documentation]
183 | | ... | [Cfg] DUT runs L2XC switching config with 2 thread, 2 phy core,\
184 | | ... | 1 receive queue per NIC port.
185 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 10GE\
186 | | ... | linerate, step 50kpps, LT=0.5%.
187 | | ...
188 | | [Tags] | 64B | 2T2C | MTHREAD | PDRDISC
189 | | [Template] | L2 Cross Connect over Memif Binary Search
190 | | framesize=${64} | min_rate=${50000} | wt=2 | rxq=1 | search_type=PDR
191
192 | tc09-IMIX-2t2c-eth-l2xcbase-eth-2memif-1dcr-ndrdisc
193 | | [Documentation]
194 | | ... | [Cfg] DUT runs L2XC switching config with 2 thread, 2 phy core,\
195 | | ... | 1 receive queue per NIC port.
196 | | ... | [Ver] Find NDR for IMIX_v4_1 frames using binary search start at 10GE\
197 | | ... | linerate, step 50kpps.
198 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
199 | | ...
200 | | [Tags] | IMIX | 2T2C | MTHREAD | NDRDISC
201 | | [Template] | L2 Cross Connect over Memif Binary Search
202 | | framesize=IMIX_v4_1 | min_rate=${50000} | wt=2 | rxq=1 | search_type=NDR
203
204 | tc10-IMIX-2t2c-eth-l2xcbase-eth-2memif-1dcr-pdrdisc
205 | | [Documentation]
206 | | ... | [Cfg] DUT runs L2XC switching config with 2 thread, 1 phy core,\
207 | | ... | 1 receive queue per NIC port.
208 | | ... | [Ver] Find PDR for IMIX_v4_1 frames using binary search start at 10GE\
209 | | ... | linerate, step 50kpps, LT=0.5%.
210 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
211 | | ...
212 | | [Tags] | IMIX | 2T2C | MTHREAD | PDRDISC
213 | | [Template] | L2 Cross Connect over Memif Binary Search
214 | | framesize=IMIX_v4_1 | min_rate=${50000} | wt=2 | rxq=1 | search_type=PDR
215
216 | tc11-1518B-2t2c-eth-l2xcbase-eth-2memif-1dcr-ndrdisc
217 | | [Documentation]
218 | | ... | [Cfg] DUT runs L2XC switching config with 2 thread, 1 phy core,\
219 | | ... | 1 receive queue per NIC port.
220 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE\
221 | | ... | linerate, step 50kpps.
222 | | ...
223 | | [Tags] | 1518B | 2T2C | MTHREAD | NDRDISC
224 | | [Template] | L2 Cross Connect over Memif Binary Search
225 | | framesize=${1518} | min_rate=${50000} | wt=2 | rxq=1 | search_type=NDR
226
227 | tc12-1518B-2t2c-eth-l2xcbase-eth-2memif-1dcr-pdrdisc
228 | | [Documentation]
229 | | ... | [Cfg] DUT runs L2XC switching config with 2 thread, 1 phy core,\
230 | | ... | 1 receive queue per NIC port.
231 | | ... | [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE\
232 | | ... | linerate, step 50kpps, LT=0.5%.
233 | | ...
234 | | [Tags] | 1518B | 2T2C | MTHREAD | PDRDISC
235 | | [Template] | L2 Cross Connect over Memif Binary Search
236 | | framesize=${1518} | min_rate=${50000} | wt=2 | rxq=1 | search_type=PDR