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