a44a8605b6eae82a9b25a1e89a42e5aa8a0e800d
[csit.git] / tests / vpp / perf / ip4_tunnels / 10ge2p1x520-ethip4lispip4-ip4base-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/overlay/lisp_static_adjacency.robot
17 | Variables | resources/test_data/lisp/performance/lisp_static_adjacency.py
18 | ...
19 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | MRR
20 | ... | NIC_Intel-X520-DA2 | IP4FWD | ENCAP | LISP | IP4UNRLAY | IP4OVRLAY
21 | ...
22 | Suite Setup | Set up 3-node performance topology with DUT's NIC model
23 | ... | L3 | Intel-X520-DA2
24 | Suite Teardown | Tear down 3-node performance topology
25 | ...
26 | Test Setup | Set up performance test
27 | ...
28 | Test Teardown | Tear down performance mrr test
29 | ...
30 | Documentation | *Raw results Lisp test cases*
31 | ...
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 X520 Niantic 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.
47
48 *** Variables ***
49 # X520-DA2 bandwidth limit
50 | ${s_limit}= | ${10000000000}
51 | ${lisp_overhead}= | ${8}
52 # Traffic profile:
53 | ${traffic_profile}= | trex-sl-3n-ethip4-ip4src253
54
55 *** Keywords ***
56 | Check RR for ethip4lispip4-ip4base
57 | | ...
58 | | [Documentation]
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.
64 | | ...
65 | | [Arguments] | ${wt} | ${rxq} | ${framesize}
66 | | ...
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}}
72 | | ...
73 | | Given Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
74 | | And Add PCI devices to all DUTs
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}
88
89 *** Test Cases ***
90 | tc01-64B-1t1c-ethip4lispip4-ip4base-mrr
91 | | [Documentation]
92 | | ... | [Cfg] DUT runs IPv4 LISP remote static mappings and whitelist\
93 | | ... | filters config with 1 phy core, 1 receive queue per NIC\
94 | | ... | port.
95 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
96 | | ... | throughput test.
97 | | ...
98 | | [Tags] | 64B | 1C
99 | | ...
100 | | [Template] | Check RR for ethip4lispip4-ip4base
101 | | wt=1 | rxq=1 | framesize=${64}
102
103 | tc02-1480B-1t1c-ethip4lispip4-ip4base-mrr
104 | | [Documentation]
105 | | ... | [Cfg] DUT runs IPv4 LISP remote static mappings and whitelist\
106 | | ... | filters config with 1 phy core, 1 receive queue per NIC\
107 | | ... | port.
108 | | ... | [Ver] Measure MaxReceivedRate for 1480B frames using single trial\
109 | | ... | throughput test.
110 | | ...
111 | | [Tags] | 1480B | 1C
112 | | ...
113 | | [Template] | Check RR for ethip4lispip4-ip4base
114 | | wt=1 | rxq=1 | framesize=${1480}
115
116 | tc03-9000B-1t1c-ethip4lispip4-ip4base-mrr
117 | | [Documentation]
118 | | ... | [Cfg] DUT runs IPv4 LISP remote static mappings and whitelist\
119 | | ... | filters config with 1 phy core, 1 receive queue per NIC\
120 | | ... | port.
121 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
122 | | ... | throughput test.
123 | | ...
124 | | [Tags] | 9000B | 1C
125 | | ...
126 | | [Template] | Check RR for ethip4lispip4-ip4base
127 | | wt=1 | rxq=1 | framesize=${9000}
128
129 | tc04-IMIX-1t1c-ethip4lispip4-ip4base-mrr
130 | | [Documentation]
131 | | ... | [Cfg] DUT runs IPv4 LISP remote static mappings and whitelist\
132 | | ... | filters config with 1 phy core, 1 receive queue per NIC\
133 | | ... | port.
134 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
135 | | ... | throughput test.
136 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
137 | | ...
138 | | [Tags] | IMIX | 1C
139 | | ...
140 | | [Template] | Check RR for ethip4lispip4-ip4base
141 | | wt=1 | rxq=1 | framesize=IMIX_v4_1
142
143 | tc05-64B-2t2c-ethip4lispip4-ip4base-mrr
144 | | [Documentation]
145 | | ... | [Cfg] DUT runs IPv4 LISP remote static mappings and whitelist\
146 | | ... | filters config with 2 phy cores, 1 receive queue per NIC\
147 | | ... | port.
148 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
149 | | ... | throughput test.
150 | | ...
151 | | [Tags] | 64B | 2C
152 | | ...
153 | | [Template] | Check RR for ethip4lispip4-ip4base
154 | | wt=2 | rxq=1 | framesize=${64}
155
156 | tc06-1480B-2t2c-ethip4lispip4-ip4base-mrr
157 | | [Documentation]
158 | | ... | [Cfg] DUT runs IPv4 LISP remote static mappings and whitelist\
159 | | ... | filters config with 2 phy cores, 1 receive queue per NIC\
160 | | ... | port.
161 | | ... | [Ver] Measure MaxReceivedRate for 1480B frames using single trial\
162 | | ... | throughput test.
163 | | ...
164 | | [Tags] | 1480B | 2C
165 | | ...
166 | | [Template] | Check RR for ethip4lispip4-ip4base
167 | | wt=2 | rxq=1 | framesize=${1480}
168
169 | tc07-9000B-2t2c-ethip4lispip4-ip4base-mrr
170 | | [Documentation]
171 | | ... | [Cfg] DUT runs IPv4 LISP remote static mappings and whitelist\
172 | | ... | filters config with 2 phy cores, 1 receive queue per NIC\
173 | | ... | port.
174 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
175 | | ... | throughput test.
176 | | ...
177 | | [Tags] | 9000B | 2C
178 | | ...
179 | | [Template] | Check RR for ethip4lispip4-ip4base
180 | | wt=2 | rxq=1 | framesize=${9000}
181
182 | tc08-IMIX-2t2c-ethip4lispip4-ip4base-mrr
183 | | [Documentation]
184 | | ... | [Cfg] DUT runs IPv4 LISP remote static mappings and whitelist\
185 | | ... | filters config with 2 phy cores, 1 receive queue per NIC\
186 | | ... | port.
187 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
188 | | ... | throughput test.
189 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
190 | | ...
191 | | [Tags] | IMIX | 2C
192 | | ...
193 | | [Template] | Check RR for ethip4lispip4-ip4base
194 | | wt=2 | rxq=1 | framesize=IMIX_v4_1
195
196 | tc09-64B-4t4c-ethip4lispip4-ip4base-mrr
197 | | [Documentation]
198 | | ... | [Cfg] DUT runs IPv4 LISP remote static mappings and whitelist\
199 | | ... | filters config with 4 phy cores, 2 receive queues per NIC\
200 | | ... | port.
201 | | ... | [Ver] Measure MaxReceivedRate for 64B frames using single trial\
202 | | ... | throughput test.
203 | | ...
204 | | [Tags] | 64B | 4C
205 | | ...
206 | | [Template] | Check RR for ethip4lispip4-ip4base
207 | | wt=4 | rxq=2 | framesize=${64}
208
209 | tc10-1480B-4t4c-ethip4lispip4-ip4base-mrr
210 | | [Documentation]
211 | | ... | [Cfg] DUT runs IPv4 LISP remote static mappings and whitelist\
212 | | ... | filters config with 4 phy cores, 2 receive queues per NIC\
213 | | ... | port.
214 | | ... | [Ver] Measure MaxReceivedRate for 1480B frames using single trial\
215 | | ... | throughput test.
216 | | ...
217 | | [Tags] | 1480B | 4C
218 | | ...
219 | | [Template] | Check RR for ethip4lispip4-ip4base
220 | | wt=4 | rxq=2 | framesize=${1480}
221
222 | tc11-9000B-4t4c-ethip4lispip4-ip4base-mrr
223 | | [Documentation]
224 | | ... | [Cfg] DUT runs IPv4 LISP remote static mappings and whitelist\
225 | | ... | filters config with 4 phy cores, 2 receive queues per NIC\
226 | | ... | port.
227 | | ... | [Ver] Measure MaxReceivedRate for 9000B frames using single trial\
228 | | ... | throughput test.
229 | | ...
230 | | [Tags] | 9000B | 4C
231 | | ...
232 | | [Template] | Check RR for ethip4lispip4-ip4base
233 | | wt=4 | rxq=2 | framesize=${9000}
234
235 | tc12-IMIX-4t4c-ethip4lispip4-ip4base-mrr
236 | | [Documentation]
237 | | ... | [Cfg] DUT runs IPv4 LISP remote static mappings and whitelist\
238 | | ... | filters config with 4 phy cores, 2 receive queues per NIC\
239 | | ... | port.
240 | | ... | [Ver] Measure MaxReceivedRate for IMIX_v4_1 frames using single trial\
241 | | ... | throughput test.
242 | | ... | IMIX_v4_1 = (28x64B; 16x570B; 4x1518B)
243 | | ...
244 | | [Tags] | IMIX | 4C
245 | | ...
246 | | [Template] | Check RR for ethip4lispip4-ip4base
247 | | wt=4 | rxq=2 | framesize=IMIX_v4_1