CSIT-604: Bootstrap file for vpp-csit-verify-master-centos7-nightly
[csit.git] / tests / perf / 10ge2p1x520-ethip6lispip4-ip6base-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_setup.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 | IP6FWD | ENCAP | LISP | IP4UNRLAY | IP6OVRLAY
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 | Test Teardown | Tear down performance ndrchk test
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-IPv6-LISP-IPv4 on DUT1-DUT2,\
34 | ... | Eth-IPv6 on TG-DUTn for IPv6 routing over LISPoIPv4 tunnel.
35 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with IPv6\
36 | ... | routing and static routes. LISPoIPv4 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 *** Variables ***
51 # Traffic profile:
52 | ${traffic_profile} | trex-sl-3n-ethip6-ip6src253
53
54 *** Test Cases ***
55 | tc01-78B-1t1c-ethip6lispip4-ip6base-ndrchk
56 | | [Documentation]
57 | | ... | [Cfg] DUT runs LISP tunnel config with 1 thread, 1 phy core,\
58 | | ... | 1 receive queue per NIC port.
59 | | ... | [Ver] Verify ref-NDR for 78 Byte frames using single trial\
60 | | ... | throughput test at 2x 1.75mpps.
61 | | [Tags] | 78B | 1T1C | STHREAD
62 | | ${framesize}= | Set Variable | ${78}
63 | | ${rate}= | Set Variable | 1.75mpps
64 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
65 | | And Add PCI devices to DUTs in 3-node single link topology
66 | | And Add no multi seg to all DUTs
67 | | And Apply startup configuration on all VPP DUTs
68 | | When Initialize LISP IPv6 over IPv4 forwarding in 3-node circular topology
69 | | ... | ${dut1_to_dut2_ip6o4} | ${dut1_to_tg_ip6o4} | ${dut2_to_dut1_ip6o4}
70 | | ... | ${dut2_to_tg_ip6o4} | ${tg_prefix6o4} | ${dut_prefix6o4}
71 | | And Configure LISP topology in 3-node circular topology
72 | | ... | ${dut1} | ${dut1_if2} | ${NONE}
73 | | ... | ${dut2} | ${dut2_if1} | ${NONE}
74 | | ... | ${duts_locator_set} | ${dut1_ip6o4_eid} | ${dut2_ip6o4_eid}
75 | | ... | ${dut1_ip6o4_static_adjacency} | ${dut2_ip6o4_static_adjacency}
76 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
77 | | ... | ${framesize} | ${traffic_profile}
78
79 | tc02-1460B-1t1c-ethip6lispip4-ip6base-ndrchk
80 | | [Documentation]
81 | | ... | [Cfg] DUT runs LISP tunnel config with 1 thread, 1 phy core,\
82 | | ... | 1 receive queue per NIC port.
83 | | ... | [Ver] Verify ref-NDR for 1460 Byte frames using single trial\
84 | | ... | throughput test at 2x 720000pps.
85 | | [Tags] | 1460B | 1T1C | STHREAD
86 | | ${framesize}= | Set Variable | ${1460}
87 | | ${rate}= | Set Variable | 720000pps
88 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
89 | | And Add PCI devices to DUTs in 3-node single link topology
90 | | And Add no multi seg to all DUTs
91 | | And Apply startup configuration on all VPP DUTs
92 | | When Initialize LISP IPv6 over IPv4 forwarding in 3-node circular topology
93 | | ... | ${dut1_to_dut2_ip6o4} | ${dut1_to_tg_ip6o4} | ${dut2_to_dut1_ip6o4}
94 | | ... | ${dut2_to_tg_ip6o4} | ${tg_prefix6o4} | ${dut_prefix6o4}
95 | | And Configure LISP topology in 3-node circular topology
96 | | ... | ${dut1} | ${dut1_if2} | ${NONE}
97 | | ... | ${dut2} | ${dut2_if1} | ${NONE}
98 | | ... | ${duts_locator_set} | ${dut1_ip6o4_eid} | ${dut2_ip6o4_eid}
99 | | ... | ${dut1_ip6o4_static_adjacency} | ${dut2_ip6o4_static_adjacency}
100 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
101 | | ... | ${framesize} | ${traffic_profile}
102
103 | tc03-9000B-1t1c-ethip6lispip4-ip6base-ndrchk
104 | | [Documentation]
105 | | ... | [Cfg] DUT runs LISP tunnel config with 1 thread, 1 phy core,\
106 | | ... | 1 receive queue per NIC port.
107 | | ... | [Ver] Verify ref-NDR for 9000 Byte frames using single trial\
108 | | ... | throughput test at 2x 120000pps.
109 | | [Tags] | 9000B | 1T1C | STHREAD
110 | | ${framesize}= | Set Variable | ${9000}
111 | | ${rate}= | Set Variable | 120000pps
112 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
113 | | And Add PCI devices to DUTs in 3-node single link topology
114 | | And Apply startup configuration on all VPP DUTs
115 | | When Initialize LISP IPv6 over IPv4 forwarding in 3-node circular topology
116 | | ... | ${dut1_to_dut2_ip6o4} | ${dut1_to_tg_ip6o4} | ${dut2_to_dut1_ip6o4}
117 | | ... | ${dut2_to_tg_ip6o4} | ${tg_prefix6o4} | ${dut_prefix6o4}
118 | | And Configure LISP topology in 3-node circular topology
119 | | ... | ${dut1} | ${dut1_if2} | ${NONE}
120 | | ... | ${dut2} | ${dut2_if1} | ${NONE}
121 | | ... | ${duts_locator_set} | ${dut1_ip6o4_eid} | ${dut2_ip6o4_eid}
122 | | ... | ${dut1_ip6o4_static_adjacency} | ${dut2_ip6o4_static_adjacency}
123 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
124 | | ... | ${framesize} | ${traffic_profile}
125
126 | tc04-78B-2t2c-ethip6lispip4-ip6base-ndrchk
127 | | [Documentation]
128 | | ... | [Cfg] DUT runs LISP tunnel config with 2 threads, 2 phy cores,\
129 | | ... | 1 receive queue per NIC port.
130 | | ... | [Ver] Verify ref-NDR for 78 Byte frames using single trial\
131 | | ... | throughput test at 2x 3.42mpps.
132 | | [Tags] | 78B | 2T2C | MTHREAD
133 | | ${framesize}= | Set Variable | ${78}
134 | | ${rate}= | Set Variable | 3.42mpps
135 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
136 | | And Add PCI devices to DUTs in 3-node single link topology
137 | | And Add no multi seg to all DUTs
138 | | And Apply startup configuration on all VPP DUTs
139 | | When Initialize LISP IPv6 over IPv4 forwarding in 3-node circular topology
140 | | ... | ${dut1_to_dut2_ip6o4} | ${dut1_to_tg_ip6o4} | ${dut2_to_dut1_ip6o4}
141 | | ... | ${dut2_to_tg_ip6o4} | ${tg_prefix6o4} | ${dut_prefix6o4}
142 | | And Configure LISP topology in 3-node circular topology
143 | | ... | ${dut1} | ${dut1_if2} | ${NONE}
144 | | ... | ${dut2} | ${dut2_if1} | ${NONE}
145 | | ... | ${duts_locator_set} | ${dut1_ip6o4_eid} | ${dut2_ip6o4_eid}
146 | | ... | ${dut1_ip6o4_static_adjacency} | ${dut2_ip6o4_static_adjacency}
147 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
148 | | ... | ${framesize} | ${traffic_profile}
149
150 | tc05-1460B-2t2c-ethip6lispip4-ip6base-ndrchk
151 | | [Documentation]
152 | | ... | [Cfg] DUT runs LISP tunnel config with 2 threads, 2 phy cores,\
153 | | ... | 1 receive queue per NIC port.
154 | | ... | [Ver] Verify ref-NDR for 1460 Byte frames using single trial\
155 | | ... | throughput test at 2x 720000pps.
156 | | [Tags] | 1460B | 2T2C | MTHREAD
157 | | ${framesize}= | Set Variable | ${1460}
158 | | ${rate}= | Set Variable | 720000pps
159 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
160 | | And Add PCI devices to DUTs in 3-node single link topology
161 | | And Add no multi seg to all DUTs
162 | | And Apply startup configuration on all VPP DUTs
163 | | When Initialize LISP IPv6 over IPv4 forwarding in 3-node circular topology
164 | | ... | ${dut1_to_dut2_ip6o4} | ${dut1_to_tg_ip6o4} | ${dut2_to_dut1_ip6o4}
165 | | ... | ${dut2_to_tg_ip6o4} | ${tg_prefix6o4} | ${dut_prefix6o4}
166 | | And Configure LISP topology in 3-node circular topology
167 | | ... | ${dut1} | ${dut1_if2} | ${NONE}
168 | | ... | ${dut2} | ${dut2_if1} | ${NONE}
169 | | ... | ${duts_locator_set} | ${dut1_ip6o4_eid} | ${dut2_ip6o4_eid}
170 | | ... | ${dut1_ip6o4_static_adjacency} | ${dut2_ip6o4_static_adjacency}
171 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
172 | | ... | ${framesize} | ${traffic_profile}
173
174 | tc06-9000B-2t2c-ethip6lispip4-ip6base-ndrchk
175 | | [Documentation]
176 | | ... | [Cfg] DUT runs LISP tunnel config with 2 threads, 2 phy cores,\
177 | | ... | 1 receive queue per NIC port.
178 | | ... | [Ver] Verify ref-NDR for 9000 Byte frames using single trial\
179 | | ... | throughput test at 2x 120000pps.
180 | | [Tags] | 9000B | 2T2C | MTHREAD
181 | | ${framesize}= | Set Variable | ${9000}
182 | | ${rate}= | Set Variable | 120000pps
183 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
184 | | And Add PCI devices to DUTs in 3-node single link topology
185 | | And Apply startup configuration on all VPP DUTs
186 | | When Initialize LISP IPv6 over IPv4 forwarding in 3-node circular topology
187 | | ... | ${dut1_to_dut2_ip6o4} | ${dut1_to_tg_ip6o4} | ${dut2_to_dut1_ip6o4}
188 | | ... | ${dut2_to_tg_ip6o4} | ${tg_prefix6o4} | ${dut_prefix6o4}
189 | | And Configure LISP topology in 3-node circular topology
190 | | ... | ${dut1} | ${dut1_if2} | ${NONE}
191 | | ... | ${dut2} | ${dut2_if1} | ${NONE}
192 | | ... | ${duts_locator_set} | ${dut1_ip6o4_eid} | ${dut2_ip6o4_eid}
193 | | ... | ${dut1_ip6o4_static_adjacency} | ${dut2_ip6o4_static_adjacency}
194 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
195 | | ... | ${framesize} | ${traffic_profile}
196
197 | tc07-78B-4t4c-ethip6lispip4-ip6base-ndrchk
198 | | [Documentation]
199 | | ... | [Cfg] DUT runs LISP tunnel config with 4 threads, 4 phy cores,\
200 | | ... | 2 receive queues per NIC port.
201 | | ... | [Ver] Verify ref-NDR for 78 Byte frames using single trial\
202 | | ... | throughput test at 2x 3.42mpps.
203 | | [Tags] | 78B | 4T4C | MTHREAD
204 | | ${framesize}= | Set Variable | ${78}
205 | | ${rate}= | Set Variable | 3.42mpps
206 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
207 | | And Add PCI devices to DUTs in 3-node single link topology
208 | | And Add no multi seg to all DUTs
209 | | And Apply startup configuration on all VPP DUTs
210 | | When Initialize LISP IPv6 over IPv4 forwarding in 3-node circular topology
211 | | ... | ${dut1_to_dut2_ip6o4} | ${dut1_to_tg_ip6o4} | ${dut2_to_dut1_ip6o4}
212 | | ... | ${dut2_to_tg_ip6o4} | ${tg_prefix6o4} | ${dut_prefix6o4}
213 | | And Configure LISP topology in 3-node circular topology
214 | | ... | ${dut1} | ${dut1_if2} | ${NONE}
215 | | ... | ${dut2} | ${dut2_if1} | ${NONE}
216 | | ... | ${duts_locator_set} | ${dut1_ip6o4_eid} | ${dut2_ip6o4_eid}
217 | | ... | ${dut1_ip6o4_static_adjacency} | ${dut2_ip6o4_static_adjacency}
218 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
219 | | ... | ${framesize} | ${traffic_profile}
220
221 | tc08-1460B-4t4c-ethip6lispip4-ip6base-ndrchk
222 | | [Documentation]
223 | | ... | [Cfg] DUT runs LISP tunnel config with 4 threads, 4 phy cores,\
224 | | ... | 2 receive queues per NIC port.
225 | | ... | [Ver] Verify ref-NDR for 1460 Byte frames using single trial\
226 | | ... | throughput test at 2x 720000pps.
227 | | [Tags] | 1460B | 4T4C | MTHREAD
228 | | ${framesize}= | Set Variable | ${1460}
229 | | ${rate}= | Set Variable | 720000pps
230 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
231 | | And Add PCI devices to DUTs in 3-node single link topology
232 | | And Add no multi seg to all DUTs
233 | | And Apply startup configuration on all VPP DUTs
234 | | When Initialize LISP IPv6 over IPv4 forwarding in 3-node circular topology
235 | | ... | ${dut1_to_dut2_ip6o4} | ${dut1_to_tg_ip6o4} | ${dut2_to_dut1_ip6o4}
236 | | ... | ${dut2_to_tg_ip6o4} | ${tg_prefix6o4} | ${dut_prefix6o4}
237 | | And Configure LISP topology in 3-node circular topology
238 | | ... | ${dut1} | ${dut1_if2} | ${NONE}
239 | | ... | ${dut2} | ${dut2_if1} | ${NONE}
240 | | ... | ${duts_locator_set} | ${dut1_ip6o4_eid} | ${dut2_ip6o4_eid}
241 | | ... | ${dut1_ip6o4_static_adjacency} | ${dut2_ip6o4_static_adjacency}
242 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
243 | | ... | ${framesize} | ${traffic_profile}
244
245 | tc09-9000B-4t4c-ethip6lispip4-ip6base-ndrchk
246 | | [Documentation]
247 | | ... | [Cfg] DUT runs LISP tunnel config with 4 threads, 4 phy cores,\
248 | | ... | 2 receive queues per NIC port.
249 | | ... | [Ver] Verify ref-NDR for 9000 Byte frames using single trial\
250 | | ... | throughput test at 2x 120000pps.
251 | | [Tags] | 9000B | 4T4C | MTHREAD
252 | | ${framesize}= | Set Variable | ${9000}
253 | | ${rate}= | Set Variable | 120000pps
254 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
255 | | And Add PCI devices to DUTs in 3-node single link topology
256 | | And Apply startup configuration on all VPP DUTs
257 | | When Initialize LISP IPv6 over IPv4 forwarding in 3-node circular topology
258 | | ... | ${dut1_to_dut2_ip6o4} | ${dut1_to_tg_ip6o4} | ${dut2_to_dut1_ip6o4}
259 | | ... | ${dut2_to_tg_ip6o4} | ${tg_prefix6o4} | ${dut_prefix6o4}
260 | | And Configure LISP topology in 3-node circular topology
261 | | ... | ${dut1} | ${dut1_if2} | ${NONE}
262 | | ... | ${dut2} | ${dut2_if1} | ${NONE}
263 | | ... | ${duts_locator_set} | ${dut1_ip6o4_eid} | ${dut2_ip6o4_eid}
264 | | ... | ${dut1_ip6o4_static_adjacency} | ${dut2_ip6o4_static_adjacency}
265 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
266 | | ... | ${framesize} | ${traffic_profile}