CSIT-1178: Prepare for bursty MRR
[csit.git] / tests / vpp / perf / ip4 / 10ge2p1x710-ethip4udp-ip4base-nat44-mrr.robot
1 # Copyright (c) 2018 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 | MRR
20 | ... | NIC_Intel-X710 | ETH | IP4FWD | FEATURE | NAT44 | BASE
21 | ...
22 | Suite Setup | Run Keywords
23 | ... | Set up 3-node performance topology with DUT's NIC model | L3
24 | ... | Intel-X710
25 | ... | AND | Set up performance test suite with NAT
26 | Suite Teardown | Tear down 3-node performance topology
27 | ...
28 | Test Setup | Set up performance test
29 | ...
30 | Test Teardown | Tear down performance mrr test
31 | ...
32 | Documentation | *NAT44 performance test cases*
33 | ...
34 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology
35 | ... | with single links between nodes.
36 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4-UDP for IPv4 routing.
37 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with IPv4
38 | ... | routing and two static IPv4 /24 and IPv4/20 route entries. DUT1 and DUT2
39 | ... | tested with 2p10GE NIC X710 by Intel.
40 | ... | *[Ver] TG verification:* In MaxReceivedRate test TG sends traffic
41 | ... | at line rate and reports total received/sent packets over trial period.
42 | ... | Test packets are generated by TG on links to DUTs. TG traffic profile
43 | ... | contains two L3 flow-groups (flow-group per direction, 253 flows per
44 | ... | flow-group) with all packets containing Ethernet header, IPv4 header
45 | ... | with IP protocol=61 and static payload. MAC addresses are matching MAC
46 | ... | addresses of the TG node interfaces.
47 | ... | *[Ref] Applicable standard specifications:* RFC2544.
48
49 *** Variables ***
50 # X710 bandwidth limit
51 | ${s_limit}= | ${10000000000}
52 # Traffic profile:
53 | ${traffic_profile}= | trex-sl-3n-ethip4udp-1u1p
54
55 *** Keywords ***
56 | Check RR for IPv4 routing with NAT44
57 | | ...
58 | | [Documentation]
59 | | ... | [Cfg] DUT runs IPv4 routing config with ${wt} thread(s), ${wt}\
60 | | ... | phy core(s), ${rxq} receive queue(s) per NIC port. NAT44 is\
61 | | ... | configured between DUTs - 1 user and 1 port (session) per user.
62 | | ... | [Ver] Measure MaxReceivedRate for ${framesize} frames using single\
63 | | ... | trial throughput test.
64 | | ...
65 | | [Arguments] | ${wt} | ${rxq} | ${framesize}
66 | | ...
67 | | # Test Variables required for test execution and test teardown
68 | | Set Test Variable | ${framesize}
69 | | ${max_rate}= | Calculate pps | ${s_limit} | ${framesize}
70 | | ${get_framesize}= | Get Frame Size | ${framesize}
71 | | ...
72 | | Given Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
73 | | And Add PCI devices to all DUTs
74 | | And Run Keyword If | ${get_framesize} < ${1522}
75 | | ... | Add no multi seg to all DUTs
76 | | And Add NAT to all DUTs
77 | | And Apply startup configuration on all VPP DUTs
78 | | When Initialize NAT44 in 3-node circular topology
79 | | Then Traffic should pass with maximum rate
80 | | ... | ${max_rate}pps | ${framesize} | ${traffic_profile}
81
82 *** Test Cases ***
83 | tc01-64B-1t1c-ethip4-ip4base-snat-1u-1p-mrr
84 | | [Documentation]
85 | | ... | [Cfg] DUT runs IPv4 routing config with 1 phy core,\
86 | | ... | 1 receive queue per NIC port. NAT44 is configured between DUTs -\
87 | | ... | 1 user and 1 port (session) per user.
88 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
89 | | ... | throughput test.
90 | | ...
91 | | [Tags] | 64B | 1C
92 | | ...
93 | | [Template] | Check RR for IPv4 routing with NAT44
94 | | wt=1 | rxq=1 | framesize=${64}
95
96 | tc02-1518B-1t1c-ethip4-ip4base-snat-1u-1p-mrr
97 | | [Documentation]
98 | | ... | [Cfg] DUT runs IPv4 routing config with 1 phy core,\
99 | | ... | 1 receive queue per NIC port. NAT44 is configured between DUTs -\
100 | | ... | 1 user and 1 port (session) per user.
101 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single\
102 | | ... | trial throughput test.
103 | | ...
104 | | [Tags] | 1518B | 1C
105 | | ...
106 | | [Template] | Check RR for IPv4 routing with NAT44
107 | | wt=1 | rxq=1 | framesize=${1518}
108
109 | tc03-9000B-1t1c-ethip4-ip4base-snat-1u-1p-mrr
110 | | [Documentation]
111 | | ... | [Cfg] DUT runs IPv4 routing config with 1 phy core,\
112 | | ... | 1 receive queue per NIC port. NAT44 is configured between DUTs -\
113 | | ... | 1 user and 1 port (session) per user.
114 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single\
115 | | ... | trial throughput test.
116 | | ...
117 | | [Tags] | 9000B | 1C
118 | | ...
119 | | [Template] | Check RR for IPv4 routing with NAT44
120 | | wt=1 | rxq=1 | framesize=${9000}
121
122 | tc04-IMIX-1t1c-ethip4-ip4base-snat-1u-1p-mrr
123 | | [Documentation]
124 | | ... | [Cfg] DUT runs IPv4 routing config with 1 phy core,\
125 | | ... | 1 receive queue per NIC port. NAT44 is configured between DUTs -\
126 | | ... | 1 user and 1 port (session) per user.
127 | | ... | [Ver] Find NDR for IMIX frames using binary search start at 10GE\
128 | | ... | linerate, step 50kpps.
129 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
130 | | ...
131 | | [Tags] | IMIX | 1C
132 | | ...
133 | | [Template] | Check RR for IPv4 routing with NAT44
134 | | wt=1 | rxq=1 | framesize=IMIX_v4_1
135
136 | tc05-64B-2t2c-ethip4-ip4base-snat-1u-1p-mrr
137 | | [Documentation]
138 | | ... | [Cfg] DUT runs IPv4 routing config with 2 phy cores,\
139 | | ... | 1 receive queue per NIC port. NAT44 is configured between DUTs -\
140 | | ... | 1 user and 1 port (session) per user.
141 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
142 | | ... | throughput test.
143 | | ...
144 | | [Tags] | 64B | 2C
145 | | ...
146 | | [Template] | Check RR for IPv4 routing with NAT44
147 | | wt=2 | rxq=1 | framesize=${64}
148
149 | tc06-1518B-2t2c-ethip4-ip4base-snat-1u-1p-mrr
150 | | [Documentation]
151 | | ... | [Cfg] DUT runs IPv4 routing config with 2 phy cores,\
152 | | ... | 1 receive queue per NIC port. NAT44 is configured between DUTs -\
153 | | ... | 1 user and 1 port (session) per user.
154 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single\
155 | | ... | trial throughput test.
156 | | ...
157 | | [Tags] | 1518B | 2C
158 | | ...
159 | | [Template] | Check RR for IPv4 routing with NAT44
160 | | wt=2 | rxq=1 | framesize=${1518}
161
162 | tc07-9000B-2t2c-ethip4-ip4base-snat-1u-1p-mrr
163 | | [Documentation]
164 | | ... | [Cfg] DUT runs IPv4 routing config with 2 phy cores,\
165 | | ... | 1 receive queue per NIC port. NAT44 is configured between DUTs -\
166 | | ... | 1 user and 1 port (session) per user.
167 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single\
168 | | ... | trial throughput test.
169 | | ...
170 | | [Tags] | 9000B | 2C
171 | | ...
172 | | [Template] | Check RR for IPv4 routing with NAT44
173 | | wt=2 | rxq=1 | framesize=${9000}
174
175 | tc08-IMIX-2t2c-ethip4-ip4base-snat-1u-1p-mrr
176 | | [Documentation]
177 | | ... | [Cfg] DUT runs IPv4 routing config with 2 phy cores,\
178 | | ... | 1 receive queue per NIC port. NAT44 is configured between DUTs -\
179 | | ... | 1 user and 1 port (session) per user.
180 | | ... | [Ver] Find NDR for IMIX frames using binary search start at 10GE\
181 | | ... | linerate, step 50kpps.
182 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
183 | | ...
184 | | [Tags] | IMIX | 2C
185 | | ...
186 | | [Template] | Check RR for IPv4 routing with NAT44
187 | | wt=2 | rxq=1 | framesize=IMIX_v4_1
188
189 | tc09-64B-4t4c-ethip4-ip4base-snat-1u-1p-mrr
190 | | [Documentation]
191 | | ... | [Cfg] DUT runs IPv4 routing config with 4 phy cores,\
192 | | ... | 2 receive queues per NIC port. NAT44 is configured between DUTs -\
193 | | ... | 1 user and 1 port (session) per user.
194 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
195 | | ... | throughput test.
196 | | ...
197 | | [Tags] | 64B | 4C
198 | | ...
199 | | [Template] | Check RR for IPv4 routing with NAT44
200 | | wt=4 | rxq=2 | framesize=${64}
201
202 | tc10-1518B-4t4c-ethip4-ip4base-snat-1u-1p-mrr
203 | | [Documentation]
204 | | ... | [Cfg] DUT runs IPv4 routing config with 4 phy cores,\
205 | | ... | 2 receive queues per NIC port. NAT44 is configured between DUTs -\
206 | | ... | 1 user and 1 port (session) per user.
207 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single\
208 | | ... | trial throughput test.
209 | | ...
210 | | [Tags] | 1518B | 4C
211 | | ...
212 | | [Template] | Check RR for IPv4 routing with NAT44
213 | | wt=4 | rxq=2 | framesize=${1518}
214
215 | tc11-9000B-4t4c-ethip4-ip4base-snat-1u-1p-mrr
216 | | [Documentation]
217 | | ... | [Cfg] DUT runs IPv4 routing config with 4 phy cores,\
218 | | ... | 2 receive queues per NIC port. NAT44 is configured between DUTs -\
219 | | ... | 1 user and 1 port (session) per user.
220 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single\
221 | | ... | trial throughput test.
222 | | ...
223 | | [Tags] | 9000B | 4C
224 | | ...
225 | | [Template] | Check RR for IPv4 routing with NAT44
226 | | wt=4 | rxq=2 | framesize=${9000}
227
228 | tc12-IMIX-4t4c-ethip4-ip4base-snat-1u-1p-mrr
229 | | [Documentation]
230 | | ... | [Cfg] DUT runs IPv4 routing config with 4 phy cores,\
231 | | ... | 2 receive queues per NIC port. NAT44 is configured between DUTs -\
232 | | ... | 1 user and 1 port (session) per user.
233 | | ... | [Ver] Find NDR for IMIX frames using binary search start at 10GE\
234 | | ... | linerate, step 50kpps.
235 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
236 | | ...
237 | | [Tags] | IMIX | 4C
238 | | ...
239 | | [Template] | Check RR for IPv4 routing with NAT44
240 | | wt=4 | rxq=2 | framesize=IMIX_v4_1