CSIT-604: Bootstrap file for vpp-csit-verify-master-centos7-nightly
[csit.git] / tests / vpp / perf / ip4 / 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/performance_setup.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 Apply startup configuration on all VPP DUTs
65 | | And Initialize IPv4 forwarding with scaling in 3-node circular topology
66 | | ... | ${rts_per_flow}
67 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
68 | | ... | ${framesize}
69 | | ... | ${traffic_profile}
70
71 | tc02-1518B-1t1c-ethip4-ip4scale2m-ndrchk
72 | | [Documentation]
73 | | ... | Verify ref-NDR for 1518 Byte frames using single trial throughput
74 | | ... | test. DUT runs IPv4 routing config with 1 thread, 1 phy core, 1
75 | | ... | receive queue per NIC port at 2x 812743pps.
76 | | [Tags] | 1518B | 1T1C | STHREAD
77 | | ${framesize}= | Set Variable | ${1518}
78 | | ${rate}= | Set Variable | 812743pps
79 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
80 | | And Add PCI devices to DUTs in 3-node single link topology
81 | | And Add no multi seg to all DUTs
82 | | And Apply startup configuration on all VPP DUTs
83 | | And Initialize IPv4 forwarding with scaling in 3-node circular topology
84 | | ... | ${rts_per_flow}
85 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
86 | | ... | ${framesize}
87 | | ... | ${traffic_profile}
88
89 | tc03-9000B-1t1c-ethip4-ip4scale2m-ndrchk
90 | | [Documentation]
91 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core, \
92 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 1518 Byte
93 | | ... | frames using single trial throughput test at 2x 138580pps.
94 | | [Tags] | 9000B | 1T1C | STHREAD
95 | | ${framesize}= | Set Variable | ${9000}
96 | | ${rate}= | Set Variable | 138580pps
97 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
98 | | And Add PCI devices to DUTs in 3-node single link topology
99 | | And Apply startup configuration on all VPP DUTs
100 | | And Initialize IPv4 forwarding with scaling in 3-node circular topology
101 | | ... | ${rts_per_flow}
102 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
103 | | ... | ${framesize}
104 | | ... | ${traffic_profile}
105
106 | tc04-64B-2t2c-ethip4-ip4scale2m-ndrchk
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 at 2x 7.6mpps.
111 | | [Tags] | 64B | 2T2C | MTHREAD
112 | | ${framesize}= | Set Variable | ${64}
113 | | ${rate}= | Set Variable | 7.6mpps
114 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
115 | | And Add PCI devices to DUTs in 3-node single link topology
116 | | And Add no multi seg to all DUTs
117 | | And Apply startup configuration on all VPP DUTs
118 | | And Initialize IPv4 forwarding with scaling in 3-node circular topology
119 | | ... | ${rts_per_flow}
120 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
121 | | ... | ${framesize}
122 | | ... | ${traffic_profile}
123
124 | tc05-1518B-2t2c-ethip4-ip4scale2m-ndrchk
125 | | [Documentation]
126 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores, \
127 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 1518 Byte
128 | | ... | frames using single trial throughput test at 2x 812743pps.
129 | | [Tags] | 1518B | 2T2C | MTHREAD
130 | | ${framesize}= | Set Variable | ${1518}
131 | | ${rate}= | Set Variable | 812743pps
132 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
133 | | And Add PCI devices to DUTs in 3-node single link topology
134 | | And Add no multi seg to all DUTs
135 | | And Apply startup configuration on all VPP DUTs
136 | | And Initialize IPv4 forwarding with scaling in 3-node circular topology
137 | | ... | ${rts_per_flow}
138 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
139 | | ... | ${framesize}
140 | | ... | ${traffic_profile}
141
142 | tc06-9000B-2t2c-ethip4-ip4scale2m-ndrchk
143 | | [Documentation]
144 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores, \
145 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 9000 Byte
146 | | ... | frames using single trial throughput test at 2x 138580pps.
147 | | [Tags] | 9000B | 2T2C | MTHREAD
148 | | ${framesize}= | Set Variable | ${9000}
149 | | ${rate}= | Set Variable | 138580pps
150 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
151 | | And Add PCI devices to DUTs in 3-node single link topology
152 | | And Apply startup configuration on all VPP DUTs
153 | | And Initialize IPv4 forwarding with scaling in 3-node circular topology
154 | | ... | ${rts_per_flow}
155 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
156 | | ... | ${framesize}
157 | | ... | ${traffic_profile}
158
159 | tc07-64B-4t4c-ethip4-ip4scale2m-ndrchk
160 | | [Documentation]
161 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores, \
162 | | ... | 2 receive queues per NIC port. [Ver] Verify ref-NDR for 64 Byte
163 | | ... | frames using single trial throughput test at 2x 10.4mpps.
164 | | [Tags] | 64B | 4T4C | MTHREAD
165 | | ${framesize}= | Set Variable | ${64}
166 | | ${rate}= | Set Variable | 10.4mpps
167 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
168 | | And Add PCI devices to DUTs in 3-node single link topology
169 | | And Add no multi seg to all DUTs
170 | | And Apply startup configuration on all VPP DUTs
171 | | And Initialize IPv4 forwarding with scaling in 3-node circular topology
172 | | ... | ${rts_per_flow}
173 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
174 | | ... | ${framesize}
175 | | ... | ${traffic_profile}
176
177 | tc08-1518B-4t4c-ethip4-ip4scale2m-ndrchk
178 | | [Documentation]
179 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores, \
180 | | ... | 2 receive queues per NIC port. [Ver] Verify ref-NDR for 1518 Byte
181 | | ... | frames using single trial throughput test at 2x 812743pps.
182 | | [Tags] | 1518B | 4T4C | MTHREAD
183 | | ${framesize}= | Set Variable | ${1518}
184 | | ${rate}= | Set Variable | 812743pps
185 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
186 | | And Add PCI devices to DUTs in 3-node single link topology
187 | | And Add no multi seg to all DUTs
188 | | And Apply startup configuration on all VPP DUTs
189 | | And Initialize IPv4 forwarding with scaling in 3-node circular topology
190 | | ... | ${rts_per_flow}
191 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
192 | | ... | ${framesize}
193 | | ... | ${traffic_profile}
194
195 | tc09-9000B-4t4c-ethip4-ip4scale2m-ndrchk
196 | | [Documentation]
197 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores, \
198 | | ... | 2 receive queues per NIC port. [Ver] Verify ref-NDR for 9000 Byte
199 | | ... | frames using single trial throughput test at 2x 138580pps.
200 | | [Tags] | 9000B | 4T4C | MTHREAD
201 | | ${framesize}= | Set Variable | ${9000}
202 | | ${rate}= | Set Variable | 138580pps
203 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
204 | | And Add PCI devices to DUTs in 3-node single link topology
205 | | And Apply startup configuration on all VPP DUTs
206 | | And Initialize IPv4 forwarding with scaling in 3-node circular topology
207 | | ... | ${rts_per_flow}
208 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
209 | | ... | ${framesize}
210 | | ... | ${traffic_profile}