f1191d5c0a89934635a315ccb7125546346b0d6f
[csit.git] / tests / vpp / perf / ip4 / 10ge2p1x520-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-X520-DA2 | 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-X520-DA2
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 X520 Niantic 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 # X520-DA2 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 | ${perf_trial_duration}
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 | | ...
130 | | [Tags] | IMIX | 1C
131 | | ...
132 | | [Template] | Check RR for IPv4 routing with NAT44
133 | | wt=1 | rxq=1 | framesize=IMIX_v4_1
134
135 | tc05-64B-2t2c-ethip4-ip4base-snat-1u-1p-mrr
136 | | [Documentation]
137 | | ... | [Cfg] DUT runs IPv4 routing config with 2 phy cores,\
138 | | ... | 1 receive queue per NIC port. NAT44 is configured between DUTs -\
139 | | ... | 1 user and 1 port (session) per user.
140 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
141 | | ... | throughput test.
142 | | ...
143 | | [Tags] | 64B | 2C
144 | | ...
145 | | [Template] | Check RR for IPv4 routing with NAT44
146 | | wt=2 | rxq=1 | framesize=${64}
147
148 | tc06-1518B-2t2c-ethip4-ip4base-snat-1u-1p-mrr
149 | | [Documentation]
150 | | ... | [Cfg] DUT runs IPv4 routing config with 2 phy cores,\
151 | | ... | 1 receive queue per NIC port. NAT44 is configured between DUTs -\
152 | | ... | 1 user and 1 port (session) per user.
153 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single\
154 | | ... | trial throughput test.
155 | | ...
156 | | [Tags] | 1518B | 2C
157 | | ...
158 | | [Template] | Check RR for IPv4 routing with NAT44
159 | | wt=2 | rxq=1 | framesize=${1518}
160
161 | tc07-9000B-2t2c-ethip4-ip4base-snat-1u-1p-mrr
162 | | [Documentation]
163 | | ... | [Cfg] DUT runs IPv4 routing config with 2 phy cores,\
164 | | ... | 1 receive queue per NIC port. NAT44 is configured between DUTs -\
165 | | ... | 1 user and 1 port (session) per user.
166 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single\
167 | | ... | trial throughput test.
168 | | ...
169 | | [Tags] | 9000B | 2C
170 | | ...
171 | | [Template] | Check RR for IPv4 routing with NAT44
172 | | wt=2 | rxq=1 | framesize=${9000}
173
174 | tc08-IMIX-2t2c-ethip4-ip4base-snat-1u-1p-mrr
175 | | [Documentation]
176 | | ... | [Cfg] DUT runs IPv4 routing config with 2 phy cores,\
177 | | ... | 1 receive queue per NIC port. NAT44 is configured between DUTs -\
178 | | ... | 1 user and 1 port (session) per user.
179 | | ... | [Ver] Find NDR for IMIX frames using binary search start at 10GE\
180 | | ... | linerate, step 50kpps.
181 | | ...
182 | | [Tags] | IMIX | 2C
183 | | ...
184 | | [Template] | Check RR for IPv4 routing with NAT44
185 | | wt=2 | rxq=1 | framesize=IMIX_v4_1
186
187 | tc09-64B-4t4c-ethip4-ip4base-snat-1u-1p-mrr
188 | | [Documentation]
189 | | ... | [Cfg] DUT runs IPv4 routing config with 4 phy cores,\
190 | | ... | 2 receive queues per NIC port. NAT44 is configured between DUTs -\
191 | | ... | 1 user and 1 port (session) per user.
192 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
193 | | ... | throughput test.
194 | | ...
195 | | [Tags] | 64B | 4C
196 | | ...
197 | | [Template] | Check RR for IPv4 routing with NAT44
198 | | wt=4 | rxq=2 | framesize=${64}
199
200 | tc10-1518B-4t4c-ethip4-ip4base-snat-1u-1p-mrr
201 | | [Documentation]
202 | | ... | [Cfg] DUT runs IPv4 routing config with 4 phy cores,\
203 | | ... | 2 receive queues per NIC port. NAT44 is configured between DUTs -\
204 | | ... | 1 user and 1 port (session) per user.
205 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single\
206 | | ... | trial throughput test.
207 | | ...
208 | | [Tags] | 1518B | 4C
209 | | ...
210 | | [Template] | Check RR for IPv4 routing with NAT44
211 | | wt=4 | rxq=2 | framesize=${1518}
212
213 | tc11-9000B-4t4c-ethip4-ip4base-snat-1u-1p-mrr
214 | | [Documentation]
215 | | ... | [Cfg] DUT runs IPv4 routing config with 4 phy cores,\
216 | | ... | 2 receive queues per NIC port. NAT44 is configured between DUTs -\
217 | | ... | 1 user and 1 port (session) per user.
218 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single\
219 | | ... | trial throughput test.
220 | | ...
221 | | [Tags] | 9000B | 4C
222 | | ...
223 | | [Template] | Check RR for IPv4 routing with NAT44
224 | | wt=4 | rxq=2 | framesize=${9000}
225
226 | tc12-IMIX-4t4c-ethip4-ip4base-snat-1u-1p-mrr
227 | | [Documentation]
228 | | ... | [Cfg] DUT runs IPv4 routing config with 4 phy cores,\
229 | | ... | 2 receive queues per NIC port. NAT44 is configured between DUTs -\
230 | | ... | 1 user and 1 port (session) per user.
231 | | ... | [Ver] Find NDR for IMIX frames using binary search start at 10GE\
232 | | ... | linerate, step 50kpps.
233 | | ...
234 | | [Tags] | IMIX | 4C
235 | | ...
236 | | [Template] | Check RR for IPv4 routing with NAT44
237 | | wt=4 | rxq=2 | framesize=IMIX_v4_1