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