CSIT-562 HC Test: Persistence suite rework, part1
[csit.git] / tests / perf / 10ge2p1x520-ethip6-ip6scale2m-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 | ...
17 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRCHK
18 | ... | NIC_Intel-X520-DA2 | ETH | IP6FWD | SCALE | FIB_2M
19 | ...
20 | Suite Setup | 3-node Performance Suite Setup with DUT's NIC model
21 | ... | L3 | Intel-X520-DA2
22 | Suite Teardown | 3-node Performance Suite Teardown
23 | ...
24 | Test Setup | Performance test setup
25 | Test Teardown | Performance ndrchk test teardown
26 | ...
27 | Documentation | *Reference NDR throughput IPv6 routing verify test cases*
28 | ...
29 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology
30 | ... | with single links between nodes.
31 | ... | *[Enc] Packet Encapsulations:* Eth-IPv6 for IPv6 routing.
32 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with IPv6
33 | ... | routing and 2x1M static IPv6 /64 route entries. DUT1 and DUT2 tested
34 | ... | with 2p10GE NIC X520 Niantic by Intel.
35 | ... | *[Ver] TG verification:* In short performance tests, TG verifies
36 | ... | DUTs' throughput at ref-NDR (reference Non Drop Rate) with zero packet
37 | ... | loss tolerance. Ref-NDR value is periodically updated acording to
38 | ... | formula: ref-NDR = 0.9x NDR, where NDR is found in RFC2544 long
39 | ... | performance tests for the same DUT confiiguration. Test packets are
40 | ... | generated by TG on links to DUTs. TG traffic profile contains two L3
41 | ... | flow-groups (flow-group per direction, 1M flows per flow-group) with
42 | ... | all packets containing Ethernet header, IPv6 header and static
43 | ... | payload. Incrementing of IP.dst (IPv6 destination address) field is
44 | ... | applied to both streams.
45 | ... | *[Ref] Applicable standard specifications:* RFC2544.
46
47 *** Variables ***
48 | ${rts_per_flow}= | ${1000000}
49
50 *** Test Cases ***
51 | tc01-78B-1t1c-ethip6-ip6scale2m-ndrchk
52 | | [Documentation]
53 | | ... | [Cfg] DUT runs IPv6 routing config with 1 thread, 1 phy core, \
54 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 78 Byte
55 | | ... | frames using single trial throughput test at 2x 1.8mpps.
56 | | [Tags] | 78B | 1T1C | STHREAD
57 | | ${framesize}= | Set Variable | ${78}
58 | | ${rate}= | Set Variable | 1.8mpps
59 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
60 | | And Add PCI devices to DUTs from 3-node single link topology
61 | | And Add No Multi Seg to all DUTs
62 | | And Add Heapsize Config to all DUTs | 3G
63 | | And Apply startup configuration on all VPP DUTs
64 | | And Scale IPv6 forwarding initialized in a 3-node circular topology
65 | | ... | ${rts_per_flow}
66 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
67 | | ... | ${framesize} | 3-node-IPv6-dst-${rts_per_flow}
68
69 | tc02-1518B-1t1c-ethip6-ip6scale2m-ndrchk
70 | | [Documentation]
71 | | ... | [Cfg] DUT runs IPv6 routing config with 1 thread, 1 phy core, \
72 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 1518 Byte
73 | | ... | frames using single trial throughput test at 2x 812743pps.
74 | | [Tags] | 1518B | 1T1C | STHREAD
75 | | ${framesize}= | Set Variable | ${1518}
76 | | ${rate}= | Set Variable | 812743pps
77 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
78 | | And Add PCI devices to DUTs from 3-node single link topology
79 | | And Add No Multi Seg to all DUTs
80 | | And Add Heapsize Config to all DUTs | 3G
81 | | And Apply startup configuration on all VPP DUTs
82 | | And Scale IPv6 forwarding initialized in a 3-node circular topology
83 | | ... | ${rts_per_flow}
84 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
85 | | ... | ${framesize} | 3-node-IPv6-dst-${rts_per_flow}
86
87 | tc03-9000B-1t1c-ethip6-ip6scale2m-ndrchk
88 | | [Documentation]
89 | | ... | [Cfg] DUT runs IPv6 routing config with 1 thread, 1 phy core, \
90 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 9000 Byte
91 | | ... | frames using single trial throughput test at 2x 138580pps.
92 | | [Tags] | 9000B | 1T1C | STHREAD
93 | | ${framesize}= | Set Variable | ${9000}
94 | | ${rate}= | Set Variable | 138580pps
95 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
96 | | And Add PCI devices to DUTs from 3-node single link topology
97 | | And Add Heapsize Config to all DUTs | 3G
98 | | And Apply startup configuration on all VPP DUTs
99 | | And Scale IPv6 forwarding initialized in a 3-node circular topology
100 | | ... | ${rts_per_flow}
101 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
102 | | ... | ${framesize} | 3-node-IPv6-dst-${rts_per_flow}
103
104 | tc04-78B-2t2c-ethip6-ip6scale2m-ndrchk
105 | | [Documentation]
106 | | ... | [Cfg] DUT runs IPv6 routing config with 2 threads, 2 phy cores, \
107 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 78 Byte
108 | | ... | frames using single trial throughput test at 2x 4.0mpps.
109 | | [Tags] | 78B | 2T2C | MTHREAD
110 | | ${framesize}= | Set Variable | ${78}
111 | | ${rate}= | Set Variable | 4.0mpps
112 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
113 | | And Add PCI devices to DUTs from 3-node single link topology
114 | | And Add No Multi Seg to all DUTs
115 | | And Add Heapsize Config to all DUTs | 3G
116 | | And Apply startup configuration on all VPP DUTs
117 | | And Scale IPv6 forwarding initialized in a 3-node circular topology
118 | | ... | ${rts_per_flow}
119 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
120 | | ... | ${framesize} | 3-node-IPv6-dst-${rts_per_flow}
121
122 | tc05-1518B-2t2c-ethip6-ip6scale2m-ndrchk
123 | | [Documentation]
124 | | ... | [Cfg] DUT runs IPv6 routing config with 2 threads, 2 phy cores, \
125 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 1518 Byte
126 | | ... | frames using single trial throughput test at 2x 812743pps.
127 | | [Tags] | 1518B | 2T2C | MTHREAD
128 | | ${framesize}= | Set Variable | ${1518}
129 | | ${rate}= | Set Variable | 812743pps
130 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
131 | | And Add PCI devices to DUTs from 3-node single link topology
132 | | And Add No Multi Seg to all DUTs
133 | | And Add Heapsize Config to all DUTs | 3G
134 | | And Apply startup configuration on all VPP DUTs
135 | | And Scale IPv6 forwarding initialized in a 3-node circular topology
136 | | ... | ${rts_per_flow}
137 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
138 | | ... | ${framesize} | 3-node-IPv6-dst-${rts_per_flow}
139
140 | tc06-9000B-2t2c-ethip6-ip6scale2m-ndrchk
141 | | [Documentation]
142 | | ... | [Cfg] DUT runs IPv6 routing config with 2 threads, 2 phy cores, \
143 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 9000 Byte
144 | | ... | frames using single trial throughput test at 2x 138580pps.
145 | | [Tags] | 9000B | 2T2C | MTHREAD
146 | | ${framesize}= | Set Variable | ${9000}
147 | | ${rate}= | Set Variable | 138580pps
148 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
149 | | And Add PCI devices to DUTs from 3-node single link topology
150 | | And Add Heapsize Config to all DUTs | 3G
151 | | And Apply startup configuration on all VPP DUTs
152 | | And Scale IPv6 forwarding initialized in a 3-node circular topology
153 | | ... | ${rts_per_flow}
154 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
155 | | ... | ${framesize} | 3-node-IPv6-dst-${rts_per_flow}
156
157 | tc07-78B-4t4c-ethip6-ip6scale2m-ndrchk
158 | | [Documentation]
159 | | ... | [Cfg] DUT runs IPv6 routing config with 4 threads, 4 phy cores, \
160 | | ... | 2 receive queue per NIC port. [Ver] Verify ref-NDR for 78 Byte
161 | | ... | frames using single trial throughput test at 2x 6.8mpps.
162 | | [Tags] | 78B | 4T4C | MTHREAD
163 | | ${framesize}= | Set Variable | ${78}
164 | | ${rate}= | Set Variable | 6.8mpps
165 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
166 | | And Add PCI devices to DUTs from 3-node single link topology
167 | | And Add No Multi Seg to all DUTs
168 | | And Add Heapsize Config to all DUTs | 3G
169 | | And Apply startup configuration on all VPP DUTs
170 | | And Scale IPv6 forwarding initialized in a 3-node circular topology
171 | | ... | ${rts_per_flow}
172 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
173 | | ... | ${framesize} | 3-node-IPv6-dst-${rts_per_flow}
174
175 | tc08-1518B-4t4c-ethip6-ip6scale2m-ndrchk
176 | | [Documentation]
177 | | ... | [Cfg] DUT runs IPv6 routing config with 4 threads, 4 phy cores, \
178 | | ... | 2 receive queue per NIC port. [Ver] Verify ref-NDR for 1518 Byte
179 | | ... | frames using single trial throughput test at 2x 812743pps.
180 | | [Tags] | 1518B | 4T4C | MTHREAD
181 | | ${framesize}= | Set Variable | ${1518}
182 | | ${rate}= | Set Variable | 812743pps
183 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
184 | | And Add PCI devices to DUTs from 3-node single link topology
185 | | And Add No Multi Seg to all DUTs
186 | | And Add Heapsize Config to all DUTs | 3G
187 | | And Apply startup configuration on all VPP DUTs
188 | | And Scale IPv6 forwarding initialized in a 3-node circular topology
189 | | ... | ${rts_per_flow}
190 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
191 | | ... | ${framesize} | 3-node-IPv6-dst-${rts_per_flow}
192
193 | tc09-9000B-4t4c-ethip6-ip6scale2m-ndrchk
194 | | [Documentation]
195 | | ... | [Cfg] DUT runs IPv6 routing config with 4 threads, 4 phy cores, \
196 | | ... | 2 receive queue per NIC port. [Ver] Verify ref-NDR for 9000 Byte
197 | | ... | frames using single trial throughput test at 2x 138580pps.
198 | | [Tags] | 9000B | 4T4C | MTHREAD
199 | | ${framesize}= | Set Variable | ${9000}
200 | | ${rate}= | Set Variable | 138580pps
201 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
202 | | And Add PCI devices to DUTs from 3-node single link topology
203 | | And Add Heapsize Config to all DUTs | 3G
204 | | And Apply startup configuration on all VPP DUTs
205 | | And Scale IPv6 forwarding initialized in a 3-node circular topology
206 | | ... | ${rts_per_flow}
207 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
208 | | ... | ${framesize} | 3-node-IPv6-dst-${rts_per_flow}