f7488d5679efe2c103b8ee2c4be87a9e9cfc42ad
[csit.git] / tests / vpp / perf / container_memif / 10ge2p1x520-eth-l2bdbasemaclrn-eth-2memif-1lxc-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 | 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 discovery test | ${min_rate}pps
33 | ... | ${framesize} | ${traffic_profile}
34 | ...
35 | Documentation | *RFC2544: Pkt throughput L2BD 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 bridge domain.
40 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with two L2
41 | ... | bridge domains and MAC learning enabled. LXC is connected to VPP via
42 | ... | Memif interface. LXC is running same VPP version as running on DUT. LXC
43 | ... | is limited via cgroup to use 3 cores allocated from pool of isolated
44 | ... | CPUs. There are no memory constraints. DUT1 and DUT2 tested with
45 | ... | 2p10GE NIC X520 Niantic by Intel.
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}= | LXC
69 | ${container_image}= | ${EMPTY}
70 | ${container_install_dkms}= | ${FALSE}
71 | ${container_chain_topology}= | chain
72 # CPU settings
73 | ${system_cpus}= | ${1}
74 | ${vpp_cpus}= | ${5}
75 | ${container_cpus}= | ${5}
76
77 *** Keywords ***
78 | Discover NDR or PDR for L2 Bridge Domain with Memif
79 | | [Arguments] | ${framesize} | ${min_rate} | ${wt} | ${rxq} | ${search_type}
80 | | Set Test Variable | ${framesize}
81 | | Set Test Variable | ${min_rate}
82 | | ${get_framesize}= | Set Variable If
83 | | ... | "${framesize}" == "IMIX_v4_1" | ${avg_imix_framesize} | ${framesize}
84 | | ${max_rate}= | Calculate pps | ${s_limit} | ${get_framesize}
85 | | ${binary_min}= | Set Variable | ${min_rate}
86 | | ${binary_max}= | Set Variable | ${max_rate}
87 | | ${threshold}= | Set Variable | ${min_rate}
88 | | Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
89 | | Add PCI Devices To DUTs In 3-node Single Link Topology
90 | | Run Keyword If | ${get_framesize} < ${1522} | Add No Multi Seg to all DUTs
91 | | Apply startup configuration on all VPP DUTs
92 | | Initialize L2 Bridge Domain for '1' memif pairs and '${rxq}' rxqueues in 3-node circular topology
93 | | Run Keyword If | '${search_type}' == 'NDR'
94 | | ... | Find NDR using binary search and pps
95 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
96 | | ... | ${min_rate} | ${max_rate} | ${threshold}
97 | | ... | ELSE IF | '${search_type}' == 'PDR'
98 | | ... | Find PDR using binary search and pps
99 | | ... | ${framesize} | ${binary_min} | ${binary_max} | ${traffic_profile}
100 | | ... | ${min_rate} | ${max_rate} | ${threshold}
101 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
102
103 *** Test Cases ***
104 | tc01-64B-1t1c-eth-l2bdbasemaclrn-eth-2memif-1lxc-ndrdisc
105 | | [Documentation]
106 | | ... | [Cfg] DUT runs L2BD switching config with 1 phy core,\
107 | | ... | 1 receive queue per NIC port.
108 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 10GE\
109 | | ... | linerate, step 50kpps.
110 | | ...
111 | | [Tags] | 64B | 1C | NDRDISC
112 | | [Template] | Discover NDR or PDR for L2 Bridge Domain with Memif
113 | | framesize=${64} | min_rate=${50000} | wt=1 | rxq=1 | search_type=NDR
114
115 | tc02-64B-1t1c-eth-l2bdbasemaclrn-eth-2memif-1lxc-pdrdisc
116 | | [Documentation]
117 | | ... | [Cfg] DUT runs L2BD switching config with 1 phy core,\
118 | | ... | 1 receive queue per NIC port.
119 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 10GE\
120 | | ... | linerate, step 50kpps, LT=0.5%.
121 | | ...
122 | | [Tags] | 64B | 1C | PDRDISC
123 | | [Template] | Discover NDR or PDR for L2 Bridge Domain with Memif
124 | | framesize=${64} | min_rate=${50000} | wt=1 | rxq=1 | search_type=PDR
125
126 | tc03-IMIX-1t1c-eth-l2bdbasemaclrn-eth-2memif-1lxc-ndrdisc
127 | | [Documentation]
128 | | ... | [Cfg] DUT runs L2BD switching config with 1 phy core,\
129 | | ... | 1 receive queue per NIC port.
130 | | ... | [Ver] Find NDR for IMIX_v4_1 frames using binary search start at 10GE\
131 | | ... | linerate, step 50kpps.
132 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
133 | | ...
134 | | [Tags] | IMIX | 1C | NDRDISC
135 | | [Template] | Discover NDR or PDR for L2 Bridge Domain with Memif
136 | | framesize=IMIX_v4_1 | min_rate=${50000} | wt=1 | rxq=1 | search_type=NDR
137
138 | tc04-IMIX-1t1c-eth-l2bdbasemaclrn-eth-2memif-1lxc-pdrdisc
139 | | [Documentation]
140 | | ... | [Cfg] DUT runs L2BD switching config with 1 phy core,\
141 | | ... | 1 receive queue per NIC port.
142 | | ... | [Ver] Find PDR for IMIX_v4_1 frames using binary search start at 10GE\
143 | | ... | linerate, step 50kpps, LT=0.5%.
144 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
145 | | ...
146 | | [Tags] | IMIX | 1C | PDRDISC
147 | | [Template] | Discover NDR or PDR for L2 Bridge Domain with Memif
148 | | framesize=IMIX_v4_1 | min_rate=${50000} | wt=1 | rxq=1 | search_type=PDR
149
150 | tc05-1518B-1t1c-eth-l2bdbasemaclrn-eth-2memif-1lxc-ndrdisc
151 | | [Documentation]
152 | | ... | [Cfg] DUT runs L2BD switching config with 1 phy core,\
153 | | ... | 1 receive queue per NIC port.
154 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE\
155 | | ... | linerate, step 50kpps.
156 | | ...
157 | | [Tags] | 1518B | 1C | NDRDISC
158 | | [Template] | Discover NDR or PDR for L2 Bridge Domain with Memif
159 | | framesize=${1518} | min_rate=${50000} | wt=1 | rxq=1 | search_type=NDR
160
161 | tc06-1518B-1t1c-eth-l2bdbasemaclrn-eth-2memif-1lxc-pdrdisc
162 | | [Documentation]
163 | | ... | [Cfg] DUT runs L2BD switching config with 1 phy core,\
164 | | ... | 1 receive queue per NIC port.
165 | | ... | [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE\
166 | | ... | linerate, step 50kpps, LT=0.5%.
167 | | ...
168 | | [Tags] | 1518B | 1C | PDRDISC
169 | | [Template] | Discover NDR or PDR for L2 Bridge Domain with Memif
170 | | framesize=${1518} | min_rate=${50000} | wt=1 | rxq=1 | search_type=PDR
171
172 | tc07-64B-2t2c-eth-l2bdbasemaclrn-eth-2memif-1lxc-ndrdisc
173 | | [Documentation]
174 | | ... | [Cfg] DUT runs L2BD switching config with 2 phy core,\
175 | | ... | 1 receive queue per NIC port.
176 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 10GE\
177 | | ... | linerate, step 50kpps.
178 | | ...
179 | | [Tags] | 64B | 2C | NDRDISC
180 | | [Template] | Discover NDR or PDR for L2 Bridge Domain with Memif
181 | | framesize=${64} | min_rate=${50000} | wt=2 | rxq=1 | search_type=NDR
182
183 | tc08-64B-2t2c-eth-l2bdbasemaclrn-eth-2memif-1lxc-pdrdisc
184 | | [Documentation]
185 | | ... | [Cfg] DUT runs L2BD switching config with 2 phy core,\
186 | | ... | 1 receive queue per NIC port.
187 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 10GE\
188 | | ... | linerate, step 50kpps, LT=0.5%.
189 | | ...
190 | | [Tags] | 64B | 2C | PDRDISC
191 | | [Template] | Discover NDR or PDR for L2 Bridge Domain with Memif
192 | | framesize=${64} | min_rate=${50000} | wt=2 | rxq=1 | search_type=PDR
193
194 | tc09-IMIX-2t2c-eth-l2bdbasemaclrn-eth-2memif-1lxc-ndrdisc
195 | | [Documentation]
196 | | ... | [Cfg] DUT runs L2BD switching config with 2 phy core,\
197 | | ... | 1 receive queue per NIC port.
198 | | ... | [Ver] Find NDR for IMIX_v4_1 frames using binary search start at 10GE\
199 | | ... | linerate, step 50kpps.
200 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
201 | | ...
202 | | [Tags] | IMIX | 2C | NDRDISC
203 | | [Template] | Discover NDR or PDR for L2 Bridge Domain with Memif
204 | | framesize=IMIX_v4_1 | min_rate=${50000} | wt=2 | rxq=1 | search_type=NDR
205
206 | tc10-IMIX-2t2c-eth-l2bdbasemaclrn-eth-2memif-1lxc-pdrdisc
207 | | [Documentation]
208 | | ... | [Cfg] DUT runs L2BD switching config with 1 phy core,\
209 | | ... | 1 receive queue per NIC port.
210 | | ... | [Ver] Find PDR for IMIX_v4_1 frames using binary search start at 10GE\
211 | | ... | linerate, step 50kpps, LT=0.5%.
212 | | ... | IMIX_v4_1 = (28x64B;16x570B;4x1518B)
213 | | ...
214 | | [Tags] | IMIX | 2C | PDRDISC
215 | | [Template] | Discover NDR or PDR for L2 Bridge Domain with Memif
216 | | framesize=IMIX_v4_1 | min_rate=${50000} | wt=2 | rxq=1 | search_type=PDR
217
218 | tc11-1518B-2t2c-eth-l2bdbasemaclrn-eth-2memif-1lxc-ndrdisc
219 | | [Documentation]
220 | | ... | [Cfg] DUT runs L2BD switching config with 1 phy core,\
221 | | ... | 1 receive queue per NIC port.
222 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE\
223 | | ... | linerate, step 50kpps.
224 | | ...
225 | | [Tags] | 1518B | 2C | NDRDISC
226 | | [Template] | Discover NDR or PDR for L2 Bridge Domain with Memif
227 | | framesize=${1518} | min_rate=${50000} | wt=2 | rxq=1 | search_type=NDR
228
229 | tc12-1518B-2t2c-eth-l2bdbasemaclrn-eth-2memif-1lxc-pdrdisc
230 | | [Documentation]
231 | | ... | [Cfg] DUT runs L2BD switching config with 1 phy core,\
232 | | ... | 1 receive queue per NIC port.
233 | | ... | [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE\
234 | | ... | linerate, step 50kpps, LT=0.5%.
235 | | ...
236 | | [Tags] | 1518B | 2C | PDRDISC
237 | | [Template] | Discover NDR or PDR for L2 Bridge Domain with Memif
238 | | framesize=${1518} | min_rate=${50000} | wt=2 | rxq=1 | search_type=PDR