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