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