CSIT-662: KWI - KW renaming
[csit.git] / tests / perf / 10ge2p1x520-ethip4-ip4scale2m-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 | IP4FWD | SCALE | FIB_2M
19 | ...
20 | Suite Setup | Set up 3-node performance topology with DUT's NIC model
21 | ... | L3 | Intel-X520-DA2
22 | Suite Teardown | Tear down 3-node performance topology
23 | ...
24 | Test Setup | Set up performance test
25 | Test Teardown | Tear down performance ndrchk test
26 | ...
27 | Documentation | *Reference NDR throughput IPv4 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-IPv4 for IPv4 routing.
32 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with IPv4
33 | ... | routing and 2x1M static IPv4 /32 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, IPv4 header with IP protocol=61
43 | ... | and static payload. Incrementing of IP.dst (IPv4 destination address)
44 | ... | field is applied to both streams.
45 | ... | *[Ref] Applicable standard specifications:* RFC2544.
46
47 *** Variables ***
48 | ${rts_per_flow}= | ${1000000}
49 # Traffic profile:
50 | ${traffic_profile} | trex-sl-3n-ethip4-ip4dst${rts_per_flow}
51
52 *** Test Cases ***
53 | tc01-64B-1t1c-ethip4-ip4scale2m-ndrchk
54 | | [Documentation]
55 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core, \
56 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 64 Byte
57 | | ... | frames using single trial throughput test at 2x 3.7mpps.
58 | | [Tags] | 64B | 1T1C | STHREAD
59 | | ${framesize}= | Set Variable | ${64}
60 | | ${rate}= | Set Variable | 3.7mpps
61 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
62 | | And Add PCI devices to DUTs in 3-node single link topology
63 | | And Add no multi seg to all DUTs
64 | | And Add heapsize config to all DUTs | 3G
65 | | And Apply startup configuration on all VPP DUTs
66 | | And Initialize IPv4 forwarding with scaling in 3-node circular topology
67 | | ... | ${rts_per_flow}
68 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
69 | | ... | ${framesize}
70 | | ... | ${traffic_profile}
71
72 | tc02-1518B-1t1c-ethip4-ip4scale2m-ndrchk
73 | | [Documentation]
74 | | ... | Verify ref-NDR for 1518 Byte frames using single trial throughput
75 | | ... | test. DUT runs IPv4 routing config with 1 thread, 1 phy core, 1
76 | | ... | receive queue per NIC port at 2x 812743pps.
77 | | [Tags] | 1518B | 1T1C | STHREAD
78 | | ${framesize}= | Set Variable | ${1518}
79 | | ${rate}= | Set Variable | 812743pps
80 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
81 | | And Add PCI devices to DUTs in 3-node single link topology
82 | | And Add no multi seg to all DUTs
83 | | And Add heapsize config to all DUTs | 3G
84 | | And Apply startup configuration on all VPP DUTs
85 | | And Initialize IPv4 forwarding with scaling in 3-node circular topology
86 | | ... | ${rts_per_flow}
87 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
88 | | ... | ${framesize}
89 | | ... | ${traffic_profile}
90
91 | tc03-9000B-1t1c-ethip4-ip4scale2m-ndrchk
92 | | [Documentation]
93 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core, \
94 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 1518 Byte
95 | | ... | frames using single trial throughput test at 2x 138580pps.
96 | | [Tags] | 9000B | 1T1C | STHREAD
97 | | ${framesize}= | Set Variable | ${9000}
98 | | ${rate}= | Set Variable | 138580pps
99 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
100 | | And Add PCI devices to DUTs in 3-node single link topology
101 | | And Add heapsize config to all DUTs | 3G
102 | | And Apply startup configuration on all VPP DUTs
103 | | And Initialize IPv4 forwarding with scaling in 3-node circular topology
104 | | ... | ${rts_per_flow}
105 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
106 | | ... | ${framesize}
107 | | ... | ${traffic_profile}
108
109 | tc04-64B-2t2c-ethip4-ip4scale2m-ndrchk
110 | | [Documentation]
111 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores, \
112 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 64 Byte
113 | | ... | frames using single trial throughput test at 2x 7.6mpps.
114 | | [Tags] | 64B | 2T2C | MTHREAD
115 | | ${framesize}= | Set Variable | ${64}
116 | | ${rate}= | Set Variable | 7.6mpps
117 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
118 | | And Add PCI devices to DUTs in 3-node single link topology
119 | | And Add no multi seg to all DUTs
120 | | And Add heapsize config to all DUTs | 3G
121 | | And Apply startup configuration on all VPP DUTs
122 | | And Initialize IPv4 forwarding with scaling in 3-node circular topology
123 | | ... | ${rts_per_flow}
124 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
125 | | ... | ${framesize}
126 | | ... | ${traffic_profile}
127
128 | tc05-1518B-2t2c-ethip4-ip4scale2m-ndrchk
129 | | [Documentation]
130 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores, \
131 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 1518 Byte
132 | | ... | frames using single trial throughput test at 2x 812743pps.
133 | | [Tags] | 1518B | 2T2C | MTHREAD
134 | | ${framesize}= | Set Variable | ${1518}
135 | | ${rate}= | Set Variable | 812743pps
136 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
137 | | And Add PCI devices to DUTs in 3-node single link topology
138 | | And Add no multi seg to all DUTs
139 | | And Add heapsize config to all DUTs | 3G
140 | | And Apply startup configuration on all VPP DUTs
141 | | And Initialize IPv4 forwarding with scaling in 3-node circular topology
142 | | ... | ${rts_per_flow}
143 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
144 | | ... | ${framesize}
145 | | ... | ${traffic_profile}
146
147 | tc06-9000B-2t2c-ethip4-ip4scale2m-ndrchk
148 | | [Documentation]
149 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores, \
150 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 9000 Byte
151 | | ... | frames using single trial throughput test at 2x 138580pps.
152 | | [Tags] | 9000B | 2T2C | MTHREAD
153 | | ${framesize}= | Set Variable | ${9000}
154 | | ${rate}= | Set Variable | 138580pps
155 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
156 | | And Add PCI devices to DUTs in 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 Initialize IPv4 forwarding with scaling in 3-node circular topology
160 | | ... | ${rts_per_flow}
161 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
162 | | ... | ${framesize}
163 | | ... | ${traffic_profile}
164
165 | tc07-64B-4t4c-ethip4-ip4scale2m-ndrchk
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 at 2x 10.4mpps.
170 | | [Tags] | 64B | 4T4C | MTHREAD
171 | | ${framesize}= | Set Variable | ${64}
172 | | ${rate}= | Set Variable | 10.4mpps
173 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
174 | | And Add PCI devices to DUTs in 3-node single link topology
175 | | And Add no multi seg to all DUTs
176 | | And Add heapsize config to all DUTs | 3G
177 | | And Apply startup configuration on all VPP DUTs
178 | | And Initialize IPv4 forwarding with scaling in 3-node circular topology
179 | | ... | ${rts_per_flow}
180 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
181 | | ... | ${framesize}
182 | | ... | ${traffic_profile}
183
184 | tc08-1518B-4t4c-ethip4-ip4scale2m-ndrchk
185 | | [Documentation]
186 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores, \
187 | | ... | 2 receive queues per NIC port. [Ver] Verify ref-NDR for 1518 Byte
188 | | ... | frames using single trial throughput test at 2x 812743pps.
189 | | [Tags] | 1518B | 4T4C | MTHREAD
190 | | ${framesize}= | Set Variable | ${1518}
191 | | ${rate}= | Set Variable | 812743pps
192 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
193 | | And Add PCI devices to DUTs in 3-node single link topology
194 | | And Add no multi seg to all DUTs
195 | | And Add heapsize config to all DUTs | 3G
196 | | And Apply startup configuration on all VPP DUTs
197 | | And Initialize IPv4 forwarding with scaling in 3-node circular topology
198 | | ... | ${rts_per_flow}
199 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
200 | | ... | ${framesize}
201 | | ... | ${traffic_profile}
202
203 | tc09-9000B-4t4c-ethip4-ip4scale2m-ndrchk
204 | | [Documentation]
205 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores, \
206 | | ... | 2 receive queues per NIC port. [Ver] Verify ref-NDR for 9000 Byte
207 | | ... | frames using single trial throughput test at 2x 138580pps.
208 | | [Tags] | 9000B | 4T4C | MTHREAD
209 | | ${framesize}= | Set Variable | ${9000}
210 | | ${rate}= | Set Variable | 138580pps
211 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
212 | | And Add PCI devices to DUTs in 3-node single link topology
213 | | And Add heapsize config to all DUTs | 3G
214 | | And Apply startup configuration on all VPP DUTs
215 | | And Initialize IPv4 forwarding with scaling in 3-node circular topology
216 | | ... | ${rts_per_flow}
217 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
218 | | ... | ${framesize}
219 | | ... | ${traffic_profile}