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:
6 # http://www.apache.org/licenses/LICENSE-2.0
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.
15 | Resource | resources/libraries/robot/performance.robot
16 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRCHK
17 | ... | NIC_Intel-X520-DA2 | ETH | IP4FWD | SCALE | FIB_2M
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*
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.
44 | ${rts_per_flow}= | 1000000
47 | tc01-64B-1t1c-ethip4-ip4scale2m-ndrchk
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 at 2x 3.5mpps.
52 | | [Tags] | 1T1C | STHREAD
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' in 3-node single-link topo
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}
67 | tc02-1518B-1t1c-ethip4-ip4scale2m-ndrchk
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 at 2x 812743pps.
72 | | [Tags] | 1T1C | STHREAD
73 | | ${framesize}= | Set Variable | 1518
74 | | ${duration}= | Set Variable | 10
75 | | ${rate}= | Set Variable | 812743pps
76 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
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}
87 | tc03-9000B-1t1c-ethip4-ip4scale2m-ndrchk
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 at 2x 138580pps.
92 | | [Tags] | 1T1C | STHREAD
93 | | ${framesize}= | Set Variable | 9000
94 | | ${duration}= | Set Variable | 10
95 | | ${rate}= | Set Variable | 138580pps
96 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
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}
106 | tc04-64B-2t2c-ethip4-ip4scale2m-ndrchk
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 at 2x 7.5mpps.
111 | | [Tags] | 2T2C | MTHREAD
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' in 3-node single-link topo
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}
126 | tc05-1518B-2t2c-ethip4-ip4scale2m-ndrchk
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 at 2x 812743pps.
131 | | [Tags] | 2T2C | MTHREAD
132 | | ${framesize}= | Set Variable | 1518
133 | | ${duration}= | Set Variable | 10
134 | | ${rate}= | Set Variable | 812743pps
135 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
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}
146 | tc06-9000B-2t2c-ethip4-ip4scale2m-ndrchk
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 at 2x 138580pps.
151 | | [Tags] | 2T2C | MTHREAD
152 | | ${framesize}= | Set Variable | 9000
153 | | ${duration}= | Set Variable | 10
154 | | ${rate}= | Set Variable | 138580pps
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 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}
165 | tc07-64B-4t4c-ethip4-ip4scale2m-ndrchk
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 at 2x 10.0mpps.
170 | | [Tags] | 4T4C | MTHREAD
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' in 3-node single-link topo
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}
185 | tc08-1518B-4t4c-ethip4-ip4scale2m-ndrchk
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 at 2x 812743pps.
190 | | [Tags] | 4T4C | MTHREAD
191 | | ${framesize}= | Set Variable | 1518
192 | | ${duration}= | Set Variable | 10
193 | | ${rate}= | Set Variable | 812743pps
194 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
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}
205 | tc09-9000B-4t4c-ethip4-ip4scale2m-ndrchk
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 at 2x 138580pps.
210 | | [Tags] | 4T4C | MTHREAD
211 | | ${framesize}= | Set Variable | 9000
212 | | ${duration}= | Set Variable | 10
213 | | ${rate}= | Set Variable | 138580pps
214 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
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}