Update: NDRCHK rate values and typos
[csit.git] / tests / perf / 10ge2p1x520-ethip4-ip4scale20k-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_20K
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 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 2x10k 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, 10k 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}= | ${10000}
49
50 *** Test Cases ***
51 | tc01-64B-1t1c-ethip4-ip4scale20k-ndrchk
52 | | [Documentation]
53 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core, \
54 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 64 Byte
55 | | ... | frames using single trial throughput test at 2x 4.3mpps.
56 | | [Tags] | 1T1C | STHREAD
57 | | ${framesize}= | Set Variable | ${64}
58 | | ${rate}= | Set Variable | 4.3mpps
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 Apply startup configuration on all VPP DUTs
63 | | And Scale IPv4 forwarding initialized in a 3-node circular topology
64 | | ... | ${rts_per_flow}
65 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
66 | | ... | ${framesize} | 3-node-IPv4-dst-${rts_per_flow}
67
68 | tc02-1518B-1t1c-ethip4-ip4scale20k-ndrchk
69 | | [Documentation]
70 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core, \
71 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 1518 Byte
72 | | ... | frames using single trial throughput test at 2x 812743pps.
73 | | [Tags] | 1T1C | STHREAD
74 | | ${framesize}= | Set Variable | ${1518}
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 Apply startup configuration on all VPP DUTs
80 | | And Scale IPv4 forwarding initialized in a 3-node circular topology
81 | | ... | ${rts_per_flow}
82 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
83 | | ... | ${framesize} | 3-node-IPv4-dst-${rts_per_flow}
84
85 | tc03-9000B-1t1c-ethip4-ip4scale20k-ndrchk
86 | | [Documentation]
87 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core, \
88 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 9000 Byte
89 | | ... | frames using single trial throughput test at 2x 138580pps.
90 | | [Tags] | 1T1C | STHREAD
91 | | ${framesize}= | Set Variable | ${9000}
92 | | ${rate}= | Set Variable | 138580pps
93 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
94 | | And Add PCI devices to DUTs from 3-node single link topology
95 | | And Apply startup configuration on all VPP DUTs
96 | | And Scale IPv4 forwarding initialized in a 3-node circular topology
97 | | ... | ${rts_per_flow}
98 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
99 | | ... | ${framesize} | 3-node-IPv4-dst-${rts_per_flow}
100
101 | tc04-64B-2t2c-ethip4-ip4scale20k-ndrchk
102 | | [Documentation]
103 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores, \
104 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 64 Byte
105 | | ... | frames using single trial throughput test at 2x 9.0mpps.
106 | | [Tags] | 2T2C | MTHREAD
107 | | ${framesize}= | Set Variable | ${64}
108 | | ${rate}= | Set Variable | 9.0mpps
109 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
110 | | And Add PCI devices to DUTs from 3-node single link topology
111 | | And Add No Multi Seg to all DUTs
112 | | And Apply startup configuration on all VPP DUTs
113 | | And Scale IPv4 forwarding initialized in a 3-node circular topology
114 | | ... | ${rts_per_flow}
115 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
116 | | ... | ${framesize} | 3-node-IPv4-dst-${rts_per_flow}
117
118 | tc05-1518B-2t2c-ethip4-ip4scale20k-ndrchk
119 | | [Documentation]
120 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores, \
121 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 1518 Byte
122 | | ... | frames using single trial throughput test at 2x 812743pps.
123 | | [Tags] | 2T2C | MTHREAD
124 | | ${framesize}= | Set Variable | ${1518}
125 | | ${rate}= | Set Variable | 812743pps
126 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
127 | | And Add PCI devices to DUTs from 3-node single link topology
128 | | And Add No Multi Seg to all DUTs
129 | | And Apply startup configuration on all VPP DUTs
130 | | And Scale IPv4 forwarding initialized in a 3-node circular topology
131 | | ... | ${rts_per_flow}
132 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
133 | | ... | ${framesize} | 3-node-IPv4-dst-${rts_per_flow}
134
135 | tc06-9000B-2t2c-ethip4-ip4scale20k-ndrchk
136 | | [Documentation]
137 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores, \
138 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 9000 Byte
139 | | ... | frames using single trial throughput test at 2x 138580pps.
140 | | [Tags] | 2T2C | MTHREAD
141 | | ${framesize}= | Set Variable | ${9000}
142 | | ${rate}= | Set Variable | 138580pps
143 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
144 | | And Add PCI devices to DUTs from 3-node single link topology
145 | | And Apply startup configuration on all VPP DUTs
146 | | And Scale IPv4 forwarding initialized in a 3-node circular topology
147 | | ... | ${rts_per_flow}
148 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
149 | | ... | ${framesize} | 3-node-IPv4-dst-${rts_per_flow}
150
151 | tc07-64B-4t4c-ethip4-ip4scale20k-ndrchk
152 | | [Documentation]
153 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores, \
154 | | ... | 2 receive queues per NIC port. [Ver] Verify ref-NDR for 64 Byte
155 | | ... | frames using single trial throughput test at 2x 10.4mpps.
156 | | [Tags] | 4T4C | MTHREAD
157 | | ${framesize}= | Set Variable | ${64}
158 | | ${rate}= | Set Variable | 10.4mpps
159 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
160 | | And Add PCI devices to DUTs from 3-node single link topology
161 | | And Add No Multi Seg to all DUTs
162 | | And Apply startup configuration on all VPP DUTs
163 | | And Scale IPv4 forwarding initialized in a 3-node circular topology
164 | | ... | ${rts_per_flow}
165 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
166 | | ... | ${framesize} | 3-node-IPv4-dst-${rts_per_flow}
167
168 | tc08-1518B-4t4c-ethip4-ip4scale20k-ndrchk
169 | | [Documentation]
170 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores, \
171 | | ... | 2 receive queues per NIC port. [Ver] Verify ref-NDR for 1518 Byte
172 | | ... | frames using single trial throughput test at 2x 812743pps.
173 | | [Tags] | 4T4C | MTHREAD
174 | | ${framesize}= | Set Variable | ${1518}
175 | | ${rate}= | Set Variable | 812743pps
176 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
177 | | And Add PCI devices to DUTs from 3-node single link topology
178 | | And Add No Multi Seg to all DUTs
179 | | And Apply startup configuration on all VPP DUTs
180 | | And Scale IPv4 forwarding initialized in a 3-node circular topology
181 | | ... | ${rts_per_flow}
182 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
183 | | ... | ${framesize} | 3-node-IPv4-dst-${rts_per_flow}
184
185 | tc09-9000B-4t4c-ethip4-ip4scale20k-ndrchk
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 9000 Byte
189 | | ... | frames using single trial throughput test at 2x 138580pps.
190 | | [Tags] | 4T4C | MTHREAD
191 | | ${framesize}= | Set Variable | ${9000}
192 | | ${rate}= | Set Variable | 138580pps
193 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
194 | | And Add PCI devices to DUTs from 3-node single link topology
195 | | And Apply startup configuration on all VPP DUTs
196 | | And Scale IPv4 forwarding initialized in a 3-node circular topology
197 | | ... | ${rts_per_flow}
198 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
199 | | ... | ${framesize} | 3-node-IPv4-dst-${rts_per_flow}