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/overlay/lisp_static_adjacency.robot
17 | Variables | resources/test_data/lisp/performance/lisp_static_adjacency.py
19 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | MRR
20 | ... | NIC_Intel-X710 | IP4FWD | ENCAP | LISP | IP4UNRLAY | IP4OVRLAY
22 | Suite Setup | Set up 3-node performance topology with DUT's NIC model
23 | ... | L3 | Intel-X710
24 | Suite Teardown | Tear down 3-node performance topology
26 | Test Setup | Set up performance test
28 | Test Teardown | Tear down performance mrr test
30 | Documentation | *Raw results Lisp test cases*
32 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology\
33 | ... | with single links between nodes.
34 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4-LISP-IPv4 on DUT1-DUT2,\
35 | ... | Eth-IPv4 on TG-DUTn for IPv4 routing over LISPoIPv4 tunnel.
36 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with IPv4\
37 | ... | routing and static routes. LISPoIPv4 tunnel is configured between DUT1\
38 | ... | and DUT2. DUT1 and DUT2 tested with 2p10GE NIC X710 by Intel.
39 | ... | *[Ver] TG verification:* In MaxReceivedRate test TG sends traffic
40 | ... | at line rate and reports total received/sent packets over trial period.
41 | ... | Test packets are generated by TG on links to DUTs. TG traffic profile
42 | ... | contains two L3 flow-groups (flow-group per direction, 253 flows per
43 | ... | flow-group) with all packets containing Ethernet header, IPv4 header
44 | ... | with IP protocol=61 and static payload. MAC addresses are matching MAC
45 | ... | addresses of the TG node interfaces.
46 | ... | *[Ref] Applicable standard specifications:* RFC6830.
49 # X710 bandwidth limit
50 | ${s_limit}= | ${10000000000}
51 | ${lisp_overhead}= | ${8}
53 | ${traffic_profile}= | trex-sl-3n-ethip4-ip4src253
56 | Check RR for ethip4lispip4-ip4base
59 | | ... | [Cfg] DUT runs IPv4 LISP remote static mappings and whitelist filters\
60 | | ... | config with ${wt} thread(s), ${wt} phy core(s), ${rxq} receive\
61 | | ... | queue(s) per NIC port.
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 | | ${get_framesize}= | Get Frame Size | ${framesize}
70 | | ${max_rate}= | Calculate pps | ${s_limit}
71 | | ... | ${get_framesize + ${lisp_overhead}}
73 | | Given Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
74 | | And Add PCI devices to DUTs in 3-node single link topology
75 | | And Run Keyword If | ${get_framesize + ${lisp_overhead}} < ${1522}
76 | | ... | Add no multi seg to all DUTs
77 | | And Apply startup configuration on all VPP DUTs
78 | | When Initialize LISP IPv4 forwarding in 3-node circular topology
79 | | ... | ${dut1_to_dut2_ip4} | ${dut1_to_tg_ip4} | ${dut2_to_dut1_ip4}
80 | | ... | ${dut2_to_tg_ip4} | ${prefix4}
81 | | And Configure LISP topology in 3-node circular topology
82 | | ... | ${dut1} | ${dut1_if2} | ${NONE}
83 | | ... | ${dut2} | ${dut2_if1} | ${NONE}
84 | | ... | ${duts_locator_set} | ${dut1_ip4_eid} | ${dut2_ip4_eid}
85 | | ... | ${dut1_ip4_static_adjacency} | ${dut2_ip4_static_adjacency}
86 | | Then Traffic should pass with maximum rate | ${perf_trial_duration}
87 | | ... | ${max_rate}pps | ${framesize} | ${traffic_profile}
90 | tc01-64B-1t1c-ethip4lispip4-ip4base-mrr
92 | | ... | [Cfg] DUT runs IPv4 LISP remote static mappings and whitelist\
93 | | ... | filters config with 1 thread, 1 phy core, 1 receive queue per NIC\
95 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
96 | | ... | throughput test.
98 | | [Tags] | 64B | 1T1C | STHREAD
100 | | [Template] | Check RR for ethip4lispip4-ip4base
101 | | wt=1 | rxq=1 | framesize=${64}
103 | tc02-1480B-1t1c-ethip4lispip4-ip4base-mrr
105 | | ... | [Cfg] DUT runs IPv4 LISP remote static mappings and whitelist\
106 | | ... | filters config with 1 thread, 1 phy core, 1 receive queue per NIC\
108 | | ... | [Ver] Measure MaxReceivedRate for 1480B frames using single trial\
109 | | ... | throughput test.
111 | | [Tags] | 1480B | 1T1C | STHREAD
113 | | [Template] | Check RR for ethip4lispip4-ip4base
114 | | wt=1 | rxq=1 | framesize=${1480}
116 | tc03-9000B-1t1c-ethip4lispip4-ip4base-mrr
118 | | ... | [Cfg] DUT runs IPv4 LISP remote static mappings and whitelist\
119 | | ... | filters config with 1 thread, 1 phy core, 1 receive queue per NIC\
121 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
122 | | ... | throughput test.
124 | | [Tags] | 9000B | 1T1C | STHREAD
126 | | [Template] | Check RR for ethip4lispip4-ip4base
127 | | wt=1 | rxq=1 | framesize=${9000}
129 | tc04-IMIX-1t1c-ethip4lispip4-ip4base-mrr
131 | | ... | [Cfg] DUT runs IPv4 LISP remote static mappings and whitelist\
132 | | ... | filters config with 1 thread, 1 phy core, 1 receive queue per NIC\
134 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
135 | | ... | throughput test.
136 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
138 | | [Tags] | IMIX | 1T1C | STHREAD
140 | | [Template] | Check RR for ethip4lispip4-ip4base
141 | | wt=1 | rxq=1 | framesize=IMIX_v4_1
143 | tc05-64B-2t2c-ethip4lispip4-ip4base-mrr
145 | | ... | [Cfg] DUT runs IPv4 LISP remote static mappings and whitelist\
146 | | ... | filters config with 2 threads, 2 phy cores, 1 receive queue per NIC\
148 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
149 | | ... | throughput test.
151 | | [Tags] | 64B | 2T2C | STHREAD
153 | | [Template] | Check RR for ethip4lispip4-ip4base
154 | | wt=2 | rxq=1 | framesize=${64}
156 | tc06-1480B-2t2c-ethip4lispip4-ip4base-mrr
158 | | ... | [Cfg] DUT runs IPv4 LISP remote static mappings and whitelist\
159 | | ... | filters config with 2 threads, 2 phy cores, 1 receive queue per NIC\
161 | | ... | [Ver] Measure MaxReceivedRate for 1480B frames using single trial\
162 | | ... | throughput test.
164 | | [Tags] | 1480B | 2T2C | STHREAD
166 | | [Template] | Check RR for ethip4lispip4-ip4base
167 | | wt=2 | rxq=1 | framesize=${1480}
169 | tc07-9000B-2t2c-ethip4lispip4-ip4base-mrr
171 | | ... | [Cfg] DUT runs IPv4 LISP remote static mappings and whitelist\
172 | | ... | filters config with 2 threads, 2 phy cores, 1 receive queue per NIC\
174 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
175 | | ... | throughput test.
177 | | [Tags] | 9000B | 2T2C | STHREAD
179 | | [Template] | Check RR for ethip4lispip4-ip4base
180 | | wt=2 | rxq=1 | framesize=${9000}
182 | tc08-IMIX-2t2c-ethip4lispip4-ip4base-mrr
184 | | ... | [Cfg] DUT runs IPv4 LISP remote static mappings and whitelist\
185 | | ... | filters config with 2 threads, 2 phy cores, 1 receive queue per NIC\
187 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
188 | | ... | throughput test.
189 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
191 | | [Tags] | IMIX | 2T2C | STHREAD
193 | | [Template] | Check RR for ethip4lispip4-ip4base
194 | | wt=2 | rxq=1 | framesize=IMIX_v4_1
196 | tc09-64B-4t4c-ethip4lispip4-ip4base-mrr
198 | | ... | [Cfg] DUT runs IPv4 LISP remote static mappings and whitelist\
199 | | ... | filters config with 4 threads, 4 phy cores, 2 receive queues per NIC\
201 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
202 | | ... | throughput test.
204 | | [Tags] | 64B | 4T4C | STHREAD
206 | | [Template] | Check RR for ethip4lispip4-ip4base
207 | | wt=4 | rxq=2 | framesize=${64}
209 | tc10-1480B-4t4c-ethip4lispip4-ip4base-mrr
211 | | ... | [Cfg] DUT runs IPv4 LISP remote static mappings and whitelist\
212 | | ... | filters config with 4 threads, 4 phy cores, 2 receive queues per NIC\
214 | | ... | [Ver] Measure MaxReceivedRate for 1480B frames using single trial\
215 | | ... | throughput test.
217 | | [Tags] | 1480B | 4T4C | STHREAD
219 | | [Template] | Check RR for ethip4lispip4-ip4base
220 | | wt=4 | rxq=2 | framesize=${1480}
222 | tc11-9000B-4t4c-ethip4lispip4-ip4base-mrr
224 | | ... | [Cfg] DUT runs IPv4 LISP remote static mappings and whitelist\
225 | | ... | filters config with 4 threads, 4 phy cores, 2 receive queues per NIC\
227 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
228 | | ... | throughput test.
230 | | [Tags] | 9000B | 4T4C | STHREAD
232 | | [Template] | Check RR for ethip4lispip4-ip4base
233 | | wt=4 | rxq=2 | framesize=${9000}
235 | tc12-IMIX-4t4c-ethip4lispip4-ip4base-mrr
237 | | ... | [Cfg] DUT runs IPv4 LISP remote static mappings and whitelist\
238 | | ... | filters config with 4 threads, 4 phy cores, 2 receive queues per NIC\
240 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
241 | | ... | throughput test.
242 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
244 | | [Tags] | IMIX | 4T4C | STHREAD
246 | | [Template] | Check RR for ethip4lispip4-ip4base
247 | | wt=4 | rxq=2 | framesize=IMIX_v4_1