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