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