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