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:
6 # http://www.apache.org/licenses/LICENSE-2.0
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.
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
19 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | MRR
20 | ... | NIC_Intel-X710 | ETH | IP4FWD | FEATURE | NAT44 | BASE
22 | Suite Setup | Run Keywords
23 | ... | Set up 3-node performance topology with DUT's NIC model | L3
25 | ... | AND | Set up performance test suite with NAT
26 | Suite Teardown | Tear down 3-node performance topology
28 | Test Setup | Set up performance test
30 | Test Teardown | Tear down performance mrr test
32 | Documentation | *NAT44 performance test cases*
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.
50 # X710 bandwidth limit
51 | ${s_limit}= | ${10000000000}
53 | ${traffic_profile}= | trex-sl-3n-ethip4udp-1u1p
56 | Check RR for IPv4 routing with NAT44
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.
65 | | [Arguments] | ${wt} | ${rxq} | ${framesize}
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}
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}
83 | tc01-64B-1t1c-ethip4-ip4base-snat-1u-1p-mrr
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 | | ... | 1 user and 1 port (session) per user.
88 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
89 | | ... | throughput test.
91 | | [Tags] | 64B | 1T1C | STHREAD
93 | | [Template] | Check RR for IPv4 routing with NAT44
94 | | wt=1 | rxq=1 | framesize=${64}
96 | tc02-1518B-1t1c-ethip4-ip4base-snat-1u-1p-mrr
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 | | ... | 1 user and 1 port (session) per user.
101 | | ... | [Ver] Measure MaxReceivedRate for 1518B frames using single\
102 | | ... | trial throughput test.
104 | | [Tags] | 1518B | 1T1C | STHREAD
106 | | [Template] | Check RR for IPv4 routing with NAT44
107 | | wt=1 | rxq=1 | framesize=${1518}
109 | tc03-9000B-1t1c-ethip4-ip4base-snat-1u-1p-mrr
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 | | ... | 1 user and 1 port (session) per user.
114 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single\
115 | | ... | trial throughput test.
117 | | [Tags] | 9000B | 1T1C | STHREAD
119 | | [Template] | Check RR for IPv4 routing with NAT44
120 | | wt=1 | rxq=1 | framesize=${9000}
122 | tc04-IMIX-1t1c-ethip4-ip4base-snat-1u-1p-mrr
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 | | ... | 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)
131 | | [Tags] | IMIX | 1T1C | STHREAD
133 | | [Template] | Check RR for IPv4 routing with NAT44
134 | | wt=1 | rxq=1 | framesize=IMIX_v4_1
136 | tc05-64B-2t2c-ethip4-ip4base-snat-1u-1p-mrr
138 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 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.
144 | | [Tags] | 64B | 2T2C | MTHREAD
146 | | [Template] | Check RR for IPv4 routing with NAT44
147 | | wt=2 | rxq=1 | framesize=${64}
149 | tc06-1518B-2t2c-ethip4-ip4base-snat-1u-1p-mrr
151 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 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.
157 | | [Tags] | 1518B | 2T2C | MTHREAD
159 | | [Template] | Check RR for IPv4 routing with NAT44
160 | | wt=2 | rxq=1 | framesize=${1518}
162 | tc07-9000B-2t2c-ethip4-ip4base-snat-1u-1p-mrr
164 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 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.
170 | | [Tags] | 9000B | 2T2C | MTHREAD
172 | | [Template] | Check RR for IPv4 routing with NAT44
173 | | wt=2 | rxq=1 | framesize=${9000}
175 | tc08-IMIX-2t2c-ethip4-ip4base-snat-1u-1p-mrr
177 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 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)
184 | | [Tags] | IMIX | 2T2C | MTHREAD
186 | | [Template] | Check RR for IPv4 routing with NAT44
187 | | wt=2 | rxq=1 | framesize=IMIX_v4_1
189 | tc09-64B-4t4c-ethip4-ip4base-snat-1u-1p-mrr
191 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 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.
197 | | [Tags] | 64B | 4T4C | MTHREAD
199 | | [Template] | Check RR for IPv4 routing with NAT44
200 | | wt=4 | rxq=2 | framesize=${64}
202 | tc10-1518B-4t4c-ethip4-ip4base-snat-1u-1p-mrr
204 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 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.
210 | | [Tags] | 1518B | 4T4C | MTHREAD
212 | | [Template] | Check RR for IPv4 routing with NAT44
213 | | wt=4 | rxq=2 | framesize=${1518}
215 | tc11-9000B-4t4c-ethip4-ip4base-snat-1u-1p-mrr
217 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 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.
223 | | [Tags] | 9000B | 4T4C | MTHREAD
225 | | [Template] | Check RR for IPv4 routing with NAT44
226 | | wt=4 | rxq=2 | framesize=${9000}
228 | tc12-IMIX-4t4c-ethip4-ip4base-snat-1u-1p-mrr
230 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 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)
237 | | [Tags] | IMIX | 4T4C | MTHREAD
239 | | [Template] | Check RR for IPv4 routing with NAT44
240 | | wt=4 | rxq=2 | framesize=IMIX_v4_1