IPsectptLispGpe performance test suite
[csit.git] / tests / perf / 10ge2p1x520-ethip4lispip6-ip4base-ndrchk.robot
1 # Copyright (c) 2017 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.robot
16 | Resource | resources/libraries/robot/lisp/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 | NDRCHK
20 | ... | NIC_Intel-X520-DA2 | IP4FWD | ENCAP | LISP | IP6UNRLAY | IP4OVRLAY
21 | ...
22 | Suite Setup | 3-node Performance Suite Setup with DUT's NIC model
23 | ... | L3 | Intel-X520-DA2
24 | Suite Teardown | 3-node Performance Suite Teardown
25 | ...
26 | Test Setup | Performance test setup
27 | Test Teardown | Performance ndrchk test teardown
28 | ...
29 | Documentation | *Reference NDR throughput Lisp tunnel verify test cases*
30 | ...
31 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology
32 | ... | with single links between nodes.
33 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4-LISP-IPv6 on DUT1-DUT2,\
34 | ... | Eth-IPv4 on TG-DUTn for IPv4 routing over LISPoIPv6 tunnel.
35 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with IPv4\
36 | ... | routing and static routes. LISPoIPv6 tunnel is configured between\
37 | ... | DUT1 and DUT2. DUT1 and DUT2 tested with 2p10GE NIC X520 Niantic\
38 | ... | by Intel.
39 | ... | *[Ver] TG verification:* In short performance tests, TG verifies\
40 | ... | DUTs' throughput at ref-NDR (reference Non Drop Rate) with zero packet\
41 | ... | loss tolerance. Ref-NDR value is periodically updated acording to\
42 | ... | formula: ref-NDR = 0.9x NDR, where NDR is found in RFC2544 long
43 | ... | performance tests for the same DUT confiiguration. Test packets are\
44 | ... | generated by TG on links to DUTs. TG traffic profile contains two L3\
45 | ... | flow-groups (flow-group per direction, 253 flows per flow-group) with\
46 | ... | all packets containing Ethernet header, IPv4 header or IPv6 header with\
47 | ... | IP protocol=61 and generated payload.
48 | ... | *[Ref] Applicable standard specifications:* RFC2544.
49
50 *** Test Cases ***
51 | tc01-64B-1t1c-ethip4lispip6-ip4base-ndrchk
52 | | [Documentation]
53 | | ... | [Cfg] DUT runs LISP tunnel config with 1 thread, 1 phy core,\
54 | | ... | 1 receive queue per NIC port.
55 | | ... | [Ver] Verify ref-NDR for 64 Byte frames using single trial\
56 | | ... | throughput test at 2x 1.53mpps.
57 | | [Tags] | 1T1C | STHREAD
58 | | ${framesize}= | Set Variable | ${64}
59 | | ${rate}= | Set Variable | 1.53mpps
60 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
61 | | And Add PCI devices to DUTs from 3-node single link topology
62 | | And Add No Multi Seg to all DUTs
63 | | And Apply startup configuration on all VPP DUTs
64 | | When Lisp IPv4 over IPv6 forwarding initialized in a 3-node circular topology
65 | | ... | ${dut1_to_dut2_ip4o6} | ${dut1_to_tg_ip4o6} | ${dut2_to_dut1_ip4o6}
66 | | ... | ${dut2_to_tg_ip4o6} | ${tg_prefix4o6} | ${dut_prefix4o6}
67 | | And Set up Lisp topology
68 | | ... | ${dut1} | ${dut1_if2} | ${NONE}
69 | | ... | ${dut2} | ${dut2_if1} | ${NONE}
70 | | ... | ${duts_locator_set} | ${dut1_ip4o6_eid} | ${dut2_ip4o6_eid}
71 | | ... | ${dut1_ip4o6_static_adjacency} | ${dut2_ip4o6_static_adjacency}
72 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
73 | | ... | ${framesize} | 3-node-IPv4
74
75 | tc02-1460B-1t1c-ethip4lispip6-ip4base-ndrchk
76 | | [Documentation]
77 | | ... | [Cfg] DUT runs LISP tunnel config with 1 thread, 1 phy core,\
78 | | ... | 1 receive queue per NIC port.
79 | | ... | [Ver] Verify ref-NDR for 1460 Byte frames using single trial\
80 | | ... | throughput test at 2x 720000pps.
81 | | [Tags] | 1T1C | STHREAD
82 | | ${framesize}= | Set Variable | ${1460}
83 | | ${rate}= | Set Variable | 720000pps
84 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
85 | | And Add PCI devices to DUTs from 3-node single link topology
86 | | And Add No Multi Seg to all DUTs
87 | | And Apply startup configuration on all VPP DUTs
88 | | When Lisp IPv4 over IPv6 forwarding initialized in a 3-node circular topology
89 | | ... | ${dut1_to_dut2_ip4o6} | ${dut1_to_tg_ip4o6} | ${dut2_to_dut1_ip4o6}
90 | | ... | ${dut2_to_tg_ip4o6} | ${tg_prefix4o6} | ${dut_prefix4o6}
91 | | And Set up Lisp topology
92 | | ... | ${dut1} | ${dut1_if2} | ${NONE}
93 | | ... | ${dut2} | ${dut2_if1} | ${NONE}
94 | | ... | ${duts_locator_set} | ${dut1_ip4o6_eid} | ${dut2_ip4o6_eid}
95 | | ... | ${dut1_ip4o6_static_adjacency} | ${dut2_ip4o6_static_adjacency}
96 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
97 | | ... | ${framesize} | 3-node-IPv4
98
99 | tc03-9000B-1t1c-ethip4lispip6-ip4base-ndrchk
100 | | [Documentation]
101 | | ... | [Cfg] DUT runs LISP tunnel config with 1 thread, 1 phy core,\
102 | | ... | 1 receive queue per NIC port.
103 | | ... | [Ver] Verify ref-NDR for 9000 Byte frames using single trial\
104 | | ... | throughput test at 2x 120000pps.
105 | | [Tags] | 1T1C | STHREAD
106 | | ${framesize}= | Set Variable | ${9000}
107 | | ${rate}= | Set Variable | 120000pps
108 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
109 | | And Add PCI devices to DUTs from 3-node single link topology
110 | | And Apply startup configuration on all VPP DUTs
111 | | When Lisp IPv4 over IPv6 forwarding initialized in a 3-node circular topology
112 | | ... | ${dut1_to_dut2_ip4o6} | ${dut1_to_tg_ip4o6} | ${dut2_to_dut1_ip4o6}
113 | | ... | ${dut2_to_tg_ip4o6} | ${tg_prefix4o6} | ${dut_prefix4o6}
114 | | And Set up Lisp topology
115 | | ... | ${dut1} | ${dut1_if2} | ${NONE}
116 | | ... | ${dut2} | ${dut2_if1} | ${NONE}
117 | | ... | ${duts_locator_set} | ${dut1_ip4o6_eid} | ${dut2_ip4o6_eid}
118 | | ... | ${dut1_ip4o6_static_adjacency} | ${dut2_ip4o6_static_adjacency}
119 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
120 | | ... | ${framesize} | 3-node-IPv4
121
122 | tc04-64B-2t2c-ethip4lispip6-ip4base-ndrchk
123 | | [Documentation]
124 | | ... | [Cfg] DUT runs LISP tunnel config with 2 threads, 2 phy cores,\
125 | | ... | 1 receive queue per NIC port.
126 | | ... | [Ver] Verify ref-NDR for 64 Byte frames using single trial\
127 | | ... | throughput test at 2x 3.25mpps.
128 | | [Tags] | 2T2C | MTHREAD
129 | | ${framesize}= | Set Variable | ${64}
130 | | ${rate}= | Set Variable | 3.25mpps
131 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
132 | | And Add PCI devices to DUTs from 3-node single link topology
133 | | And Add No Multi Seg to all DUTs
134 | | And Apply startup configuration on all VPP DUTs
135 | | When Lisp IPv4 over IPv6 forwarding initialized in a 3-node circular topology
136 | | ... | ${dut1_to_dut2_ip4o6} | ${dut1_to_tg_ip4o6} | ${dut2_to_dut1_ip4o6}
137 | | ... | ${dut2_to_tg_ip4o6} | ${tg_prefix4o6} | ${dut_prefix4o6}
138 | | And Set up Lisp topology
139 | | ... | ${dut1} | ${dut1_if2} | ${NONE}
140 | | ... | ${dut2} | ${dut2_if1} | ${NONE}
141 | | ... | ${duts_locator_set} | ${dut1_ip4o6_eid} | ${dut2_ip4o6_eid}
142 | | ... | ${dut1_ip4o6_static_adjacency} | ${dut2_ip4o6_static_adjacency}
143 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
144 | | ... | ${framesize} | 3-node-IPv4
145
146 | tc05-1460B-2t2c-ethip4lispip6-ip4base-ndrchk
147 | | [Documentation]
148 | | ... | [Cfg] DUT runs LISP tunnel config with 2 threads, 2 phy cores,\
149 | | ... | 1 receive queue per NIC port.
150 | | ... | [Ver] Verify ref-NDR for 1460 Byte frames using single trial\
151 | | ... | throughput test at 2x 720000pps.
152 | | [Tags] | 2T2C | MTHREAD
153 | | ${framesize}= | Set Variable | ${1460}
154 | | ${rate}= | Set Variable | 720000pps
155 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
156 | | And Add PCI devices to DUTs from 3-node single link topology
157 | | And Add No Multi Seg to all DUTs
158 | | And Apply startup configuration on all VPP DUTs
159 | | When Lisp IPv4 over IPv6 forwarding initialized in a 3-node circular topology
160 | | ... | ${dut1_to_dut2_ip4o6} | ${dut1_to_tg_ip4o6} | ${dut2_to_dut1_ip4o6}
161 | | ... | ${dut2_to_tg_ip4o6} | ${tg_prefix4o6} | ${dut_prefix4o6}
162 | | And Set up Lisp topology
163 | | ... | ${dut1} | ${dut1_if2} | ${NONE}
164 | | ... | ${dut2} | ${dut2_if1} | ${NONE}
165 | | ... | ${duts_locator_set} | ${dut1_ip4o6_eid} | ${dut2_ip4o6_eid}
166 | | ... | ${dut1_ip4o6_static_adjacency} | ${dut2_ip4o6_static_adjacency}
167 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
168 | | ... | ${framesize} | 3-node-IPv4
169
170 | tc06-9000B-2t2c-ethip4lispip6-ip4base-ndrchk
171 | | [Documentation]
172 | | ... | [Cfg] DUT runs LISP tunnel config with 2 threads, 2 phy cores,\
173 | | ... | 1 receive queue per NIC port.
174 | | ... | [Ver] Verify ref-NDR for 9000 Byte frames using single trial\
175 | | ... | throughput test at 2x 120000pps.
176 | | [Tags] | 2T2C | MTHREAD
177 | | ${framesize}= | Set Variable | ${9000}
178 | | ${rate}= | Set Variable | 120000pps
179 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
180 | | And Add PCI devices to DUTs from 3-node single link topology
181 | | And Apply startup configuration on all VPP DUTs
182 | | When Lisp IPv4 over IPv6 forwarding initialized in a 3-node circular topology
183 | | ... | ${dut1_to_dut2_ip4o6} | ${dut1_to_tg_ip4o6} | ${dut2_to_dut1_ip4o6}
184 | | ... | ${dut2_to_tg_ip4o6} | ${tg_prefix4o6} | ${dut_prefix4o6}
185 | | And Set up Lisp topology
186 | | ... | ${dut1} | ${dut1_if2} | ${NONE}
187 | | ... | ${dut2} | ${dut2_if1} | ${NONE}
188 | | ... | ${duts_locator_set} | ${dut1_ip4o6_eid} | ${dut2_ip4o6_eid}
189 | | ... | ${dut1_ip4o6_static_adjacency} | ${dut2_ip4o6_static_adjacency}
190 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
191 | | ... | ${framesize} | 3-node-IPv4
192
193 | tc07-64B-4t4c-ethip4lispip6-ip4base-ndrchk
194 | | [Documentation]
195 | | ... | [Cfg] DUT runs LISP tunnel config with 4 threads, 4 phy cores,\
196 | | ... | 2 receive queues per NIC port.
197 | | ... | [Ver] Verify ref-NDR for 64 Byte frames using single trial\
198 | | ... | throughput test at 2x 3.12mpps.
199 | | [Tags] | 4T4C | MTHREAD
200 | | ${framesize}= | Set Variable | ${64}
201 | | ${rate}= | Set Variable | 3.12mpps
202 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
203 | | And Add PCI devices to DUTs from 3-node single link topology
204 | | And Add No Multi Seg to all DUTs
205 | | And Apply startup configuration on all VPP DUTs
206 | | When Lisp IPv4 over IPv6 forwarding initialized in a 3-node circular topology
207 | | ... | ${dut1_to_dut2_ip4o6} | ${dut1_to_tg_ip4o6} | ${dut2_to_dut1_ip4o6}
208 | | ... | ${dut2_to_tg_ip4o6} | ${tg_prefix4o6} | ${dut_prefix4o6}
209 | | And Set up Lisp topology
210 | | ... | ${dut1} | ${dut1_if2} | ${NONE}
211 | | ... | ${dut2} | ${dut2_if1} | ${NONE}
212 | | ... | ${duts_locator_set} | ${dut1_ip4o6_eid} | ${dut2_ip4o6_eid}
213 | | ... | ${dut1_ip4o6_static_adjacency} | ${dut2_ip4o6_static_adjacency}
214 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
215 | | ... | ${framesize} | 3-node-IPv4
216
217 | tc08-1460B-4t4c-ethip4lispip6-ip4base-ndrchk
218 | | [Documentation]
219 | | ... | [Cfg] DUT runs LISP tunnel config with 4 threads, 4 phy cores,\
220 | | ... | 2 receive queues per NIC port.
221 | | ... | [Ver] Verify ref-NDR for 1460 Byte frames using single trial\
222 | | ... | throughput test at 2x 720000pps.
223 | | [Tags] | 4T4C | MTHREAD
224 | | ${framesize}= | Set Variable | ${1460}
225 | | ${rate}= | Set Variable | 720000pps
226 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
227 | | And Add PCI devices to DUTs from 3-node single link topology
228 | | And Add No Multi Seg to all DUTs
229 | | And Apply startup configuration on all VPP DUTs
230 | | When Lisp IPv4 over IPv6 forwarding initialized in a 3-node circular topology
231 | | ... | ${dut1_to_dut2_ip4o6} | ${dut1_to_tg_ip4o6} | ${dut2_to_dut1_ip4o6}
232 | | ... | ${dut2_to_tg_ip4o6} | ${tg_prefix4o6} | ${dut_prefix4o6}
233 | | And Set up Lisp topology
234 | | ... | ${dut1} | ${dut1_if2} | ${NONE}
235 | | ... | ${dut2} | ${dut2_if1} | ${NONE}
236 | | ... | ${duts_locator_set} | ${dut1_ip4o6_eid} | ${dut2_ip4o6_eid}
237 | | ... | ${dut1_ip4o6_static_adjacency} | ${dut2_ip4o6_static_adjacency}
238 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
239 | | ... | ${framesize} | 3-node-IPv4
240
241 | tc09-9000B-4t4c-ethip4lispip6-ip4base-ndrchk
242 | | [Documentation]
243 | | ... | [Cfg] DUT runs LISP tunnel config with 4 threads, 4 phy cores,\
244 | | ... | 2 receive queues per NIC port.
245 | | ... | [Ver] Verify ref-NDR for 9000 Byte frames using single trial\
246 | | ... | throughput test at 2x 120000pps.
247 | | [Tags] | 4T4C | MTHREAD
248 | | ${framesize}= | Set Variable | ${9000}
249 | | ${rate}= | Set Variable | 120000pps
250 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
251 | | And Add PCI devices to DUTs from 3-node single link topology
252 | | And Apply startup configuration on all VPP DUTs
253 | | When Lisp IPv4 over IPv6 forwarding initialized in a 3-node circular topology
254 | | ... | ${dut1_to_dut2_ip4o6} | ${dut1_to_tg_ip4o6} | ${dut2_to_dut1_ip4o6}
255 | | ... | ${dut2_to_tg_ip4o6} | ${tg_prefix4o6} | ${dut_prefix4o6}
256 | | And Set up Lisp topology
257 | | ... | ${dut1} | ${dut1_if2} | ${NONE}
258 | | ... | ${dut2} | ${dut2_if1} | ${NONE}
259 | | ... | ${duts_locator_set} | ${dut1_ip4o6_eid} | ${dut2_ip4o6_eid}
260 | | ... | ${dut1_ip4o6_static_adjacency} | ${dut2_ip4o6_static_adjacency}
261 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
262 | | ... | ${framesize} | 3-node-IPv4