Fix: Do not validate LXC image
[csit.git] / tests / vpp / perf / ip4 / 10ge2p1x520-ethip4-ip4base-snat-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 | Resource | resources/libraries/robot/ip/snat.robot
17 | Resource | resources/libraries/robot/shared/traffic.robot
18 | ...
19 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRPDRDISC
20 | ... | NIC_Intel-X520-DA2 | ETH | IP4FWD | FEATURE | SNAT | BASE
21 | ...
22 | Suite Setup | Set up 3-node performance topology with DUT's NIC model
23 | ... | L3 | Intel-X520-DA2
24 | Suite Teardown | Tear down 3-node performance topology
25 | ...
26 | Test Setup | Set up performance test
27 | ...
28 | Test Teardown | Tear down performance discovery test with SNAT
29 | ... | ${min_rate}pps | ${framesize} | ${traffic_profile}
30 | ...
31 | Documentation | *SNAT performance test cases*
32 | ...
33 | ... | *High level description*
34 | ...
35 | ... | - NDR and PDR tests
36 | ... | - 3-node topology, TG-DUT1-DUT2-TG, SNAT is enabled between DUTs.
37 | ... | - Cores / threads: 1t1c and 2t2c
38 | ... | - Framesize: 64B, 1518B, IMIX
39 | ... | - Packet: ETH / IP(src, dst) / UDP(src_port, dst_port) / payload
40 | ...
41 | ... | *Low level description*
42 | ...
43 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology
44 | ... | with single links between nodes.
45 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4-UDP for IPv4 routing.
46 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with IPv4
47 | ... | routing and two static IPv4 /24 and IPv4/20 route entries. DUT1 and DUT2
48 | ... | tested with 2p10GE NIC X520 Niantic by Intel.
49 | ... | *[Ver] TG verification:* TG finds and reports throughput NDR (Non Drop
50 | ... | Rate) with zero packet loss tolerance or throughput PDR (Partial Drop
51 | ... | Rate) with non-zero packet loss tolerance (LT) expressed in percentage
52 | ... | of packets transmitted. NDR and PDR are discovered for different
53 | ... | Ethernet L2 frame sizes using either binary search or linear search
54 | ... | algorithms with configured starting rate and final step that determines
55 | ... | throughput measurement resolution. Test packets are generated by TG on
56 | ... | links to DUTs. TG traffic profile contains two L3 flow-groups
57 | ... | (flow-group per direction, one flow per flow-group) with all packets
58 | ... | containing Ethernet header, IPv4 header with UDP header and static
59 | ... | payload. MAC addresses are matching MAC addresses of the TG node
60 | ... | interfaces.
61 | ... | *[Ref] Applicable standard specifications:* RFC2544.
62
63 *** Variables ***
64 # X520-DA2 bandwidth limit
65 | ${s_limit} | ${10000000000}
66 # Traffic profile:
67 | ${traffic_profile} | trex-sl-3n-ethip4udp-1u1p
68
69 *** Test Cases ***
70 | tc01-64B-1t1c-ethip4-ip4base-snat-1u-1p-ndrdisc
71 | | [Documentation]
72 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core,\
73 | | ... | 1 receive queue per NIC port. SNAT is configured between DUTs -\
74 | | ... | 1 user and 1 port (session) per user.
75 | | ... | [Ver] Find NDR for 64 Byte frames using binary search start at 10GE\
76 | | ... | linerate, step 100kpps.
77 | | ...
78 | | [Tags] | 64B | 1T1C | STHREAD | NDRDISC
79 | | ...
80 | | ${framesize}= | Set Variable | ${64}
81 | | ${min_rate}= | Set Variable | ${100000}
82 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
83 | | ${binary_min}= | Set Variable | ${min_rate}
84 | | ${binary_max}= | Set Variable | ${max_rate}
85 | | ${threshold}= | Set Variable | ${min_rate}
86 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
87 | | And Add PCI devices to DUTs in 3-node single link topology
88 | | And Add no multi seg to all DUTs
89 | | And Add SNAT to all DUTs
90 | | And Apply startup configuration on all VPP DUTs
91 | | When Initialize SNAT in 3-node circular topology
92 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
93 | | ... | ${binary_max} | ${traffic_profile}
94 | | ... | ${min_rate} | ${max_rate} | ${threshold}
95
96 | tc02-64B-1t1c-ethip4-ip4base-snat-1u-1p-pdrdisc
97 | | [Documentation]
98 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core,\
99 | | ... | 1 receive queue per NIC port. SNAT is configured between DUTs -\
100 | | ... | 1 user and 1 port (session) per user.
101 | | ... | [Ver] Find PDR for 64 Byte frames using binary search start at 10GE\
102 | | ... | linerate, step 100kpps.
103 | | ...
104 | | [Tags] | 64B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
105 | | ...
106 | | ${framesize}= | Set Variable | ${64}
107 | | ${min_rate}= | Set Variable | ${100000}
108 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
109 | | ${binary_min}= | Set Variable | ${min_rate}
110 | | ${binary_max}= | Set Variable | ${max_rate}
111 | | ${threshold}= | Set Variable | ${min_rate}
112 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
113 | | And Add PCI devices to DUTs in 3-node single link topology
114 | | And Add no multi seg to all DUTs
115 | | And Add SNAT to all DUTs
116 | | And Apply startup configuration on all VPP DUTs
117 | | When Initialize SNAT in 3-node circular topology
118 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
119 | | ... | ${binary_max} | ${traffic_profile}
120 | | ... | ${min_rate} | ${max_rate} | ${threshold} | ${perf_pdr_loss_acceptance}
121 | | ... | ${perf_pdr_loss_acceptance_type}
122
123 | tc03-1518B-1t1c-ethip4-ip4base-snat-1u-1p-ndrdisc
124 | | [Documentation]
125 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core,\
126 | | ... | 1 receive queue per NIC port. SNAT is configured between DUTs -\
127 | | ... | 1 user and 1 port (session) per user.
128 | | ... | [Ver] Find NDR for 1518 Byte frames using binary search start at 10GE\
129 | | ... | linerate, step 100kpps.
130 | | ...
131 | | [Tags] | 1518B | 1T1C | STHREAD | NDRDISC
132 | | ...
133 | | ${framesize}= | Set Variable | ${1518}
134 | | ${min_rate}= | Set Variable | ${100000}
135 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
136 | | ${binary_min}= | Set Variable | ${min_rate}
137 | | ${binary_max}= | Set Variable | ${max_rate}
138 | | ${threshold}= | Set Variable | ${min_rate}
139 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
140 | | And Add PCI devices to DUTs in 3-node single link topology
141 | | And Add no multi seg to all DUTs
142 | | And Add SNAT to all DUTs
143 | | And Apply startup configuration on all VPP DUTs
144 | | When Initialize SNAT in 3-node circular topology
145 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
146 | | ... | ${binary_max} | ${traffic_profile}
147 | | ... | ${min_rate} | ${max_rate} | ${threshold}
148
149 | tc04-1518B-1t1c-ethip4-ip4base-snat-1u-1p-pdrdisc
150 | | [Documentation]
151 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core,\
152 | | ... | 1 receive queue per NIC port. SNAT is configured between DUTs -\
153 | | ... | 1 user and 1 port (session) per user.
154 | | ... | [Ver] Find PDR for 1518 Byte frames using binary search start at 10GE\
155 | | ... | linerate, step 100kpps.
156 | | ...
157 | | [Tags] | 1518B | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
158 | | ...
159 | | ${framesize}= | Set Variable | ${1518}
160 | | ${min_rate}= | Set Variable | ${100000}
161 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
162 | | ${binary_min}= | Set Variable | ${min_rate}
163 | | ${binary_max}= | Set Variable | ${max_rate}
164 | | ${threshold}= | Set Variable | ${min_rate}
165 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
166 | | And Add PCI devices to DUTs in 3-node single link topology
167 | | And Add no multi seg to all DUTs
168 | | And Add SNAT to all DUTs
169 | | And Apply startup configuration on all VPP DUTs
170 | | When Initialize SNAT in 3-node circular topology
171 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
172 | | ... | ${binary_max} | ${traffic_profile}
173 | | ... | ${min_rate} | ${max_rate} | ${threshold} | ${perf_pdr_loss_acceptance}
174 | | ... | ${perf_pdr_loss_acceptance_type}
175
176 | tc05-IMIX-1t1c-ethip4-ip4base-snat-1u-1p-ndrdisc
177 | | [Documentation]
178 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core,\
179 | | ... | 1 receive queue per NIC port. SNAT is configured between DUTs -\
180 | | ... | 1 user and 1 port (session) per user.
181 | | ... | [Ver] Find NDR for IMIX frames using binary search start at 10GE\
182 | | ... | linerate, step 100kpps.
183 | | ...
184 | | [Tags] | IMIX | 1T1C | STHREAD | NDRDISC
185 | | ...
186 | | ${framesize}= | Set Variable | IMIX_v4_1
187 | | ${min_rate}= | Set Variable | ${100000}
188 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
189 | | ${binary_min}= | Set Variable | ${min_rate}
190 | | ${binary_max}= | Set Variable | ${max_rate}
191 | | ${threshold}= | Set Variable | ${min_rate}
192 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
193 | | And Add PCI devices to DUTs in 3-node single link topology
194 | | And Add no multi seg to all DUTs
195 | | And Add SNAT to all DUTs
196 | | And Apply startup configuration on all VPP DUTs
197 | | When Initialize SNAT in 3-node circular topology
198 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
199 | | ... | ${binary_max} | ${traffic_profile}
200 | | ... | ${min_rate} | ${max_rate} | ${threshold}
201
202 | tc06-IMIX-1t1c-ethip4-ip4base-snat-1u-1p-pdrdisc
203 | | [Documentation]
204 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core,\
205 | | ... | 1 receive queue per NIC port. SNAT is configured between DUTs -\
206 | | ... | 1 user and 1 port (session) per user.
207 | | ... | [Ver] Find PDR for IMIX frames using binary search start at 10GE\
208 | | ... | linerate, step 100kpps.
209 | | ...
210 | | [Tags] | IMIX | 1T1C | STHREAD | PDRDISC | SKIP_PATCH
211 | | ...
212 | | ${framesize}= | Set Variable | IMIX_v4_1
213 | | ${min_rate}= | Set Variable | ${100000}
214 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
215 | | ${binary_min}= | Set Variable | ${min_rate}
216 | | ${binary_max}= | Set Variable | ${max_rate}
217 | | ${threshold}= | Set Variable | ${min_rate}
218 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
219 | | And Add PCI devices to DUTs in 3-node single link topology
220 | | And Add no multi seg to all DUTs
221 | | And Add SNAT to all DUTs
222 | | And Apply startup configuration on all VPP DUTs
223 | | When Initialize SNAT in 3-node circular topology
224 | | Then Find PDR using binary search and pps | ${framesize} | ${binary_min}
225 | | ... | ${binary_max} | ${traffic_profile}
226 | | ... | ${min_rate} | ${max_rate} | ${threshold} | ${perf_pdr_loss_acceptance}
227 | | ... | ${perf_pdr_loss_acceptance_type}