CSIT-662: KWI - KW renaming
[csit.git] / tests / perf / 10ge2p1x520-ethip4-ip4base-ipolicemarkbase-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 | Library | resources.libraries.python.Policer
17 | Library | resources.libraries.python.IPv4Setup.Dut | ${nodes['DUT1']}
18 | ... | WITH NAME | dut1_v4
19 | Library | resources.libraries.python.IPv4Setup.Dut | ${nodes['DUT2']}
20 | ... | WITH NAME | dut2_v4
21 | ...
22 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | NDRCHK
23 | ... | NIC_Intel-X520-DA2 | IP4FWD | BASE | DOT1Q
24 | ...
25 | Suite Setup | Set up 3-node performance topology with DUT's NIC model
26 | ... | L3 | Intel-X520-DA2
27 | Suite Teardown | Tear down 3-node performance topology
28 | ...
29 | Test Setup | Set up performance test
30 | Test Teardown | Tear down performance ndrchk test
31 | ...
32 | Documentation | *Reference NDR throughput IPv4 policer verify test cases*
33 | ...
34 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology
35 | ... | with single links between nodes.
36 | ... | *[Enc] Packet Encapsulations:* Eth-IPv4 for IPv4 routing.
37 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with IPv4
38 | ... | routing and two static IPv4 /24 route entries and policer with 2R3C
39 | ... | color-aware configuration. Policer is applied on links TG - DUT1 and
40 | ... | DUT2 - TG. DUT1 and DUT2 tested with 2p10GE NIC X520 Niantic by Intel.
41 | ... | *[Ver] TG verification:* In short performance tests, TG verifies
42 | ... | DUTs' throughput at ref-NDR (reference Non Drop Rate) with zero packet
43 | ... | loss tolerance. Ref-NDR value is periodically updated acording to
44 | ... | formula: ref-NDR = 0.9x NDR, where NDR is found in RFC2544 long
45 | ... | performance tests for the same DUT configuration. Test packets are
46 | ... | generated by TG on links to DUTs. TG traffic profile contains two L3
47 | ... | flow-groups (flow-group per direction, 253 flows per flow-group) with
48 | ... | all packets containing Ethernet header, IPv4 header with IP protocol=61
49 | ... | and static payload. MAC addresses are matching MAC addresses of the
50 | ... | TG node interfaces.
51 | ... | *[Ref] Applicable standard specifications:* RFC2544, RFC2698.
52
53 *** Variables ***
54 | ${cir}= | ${100}
55 | ${eir}= | ${150}
56 # Traffic profile:
57 | ${traffic_profile} | trex-sl-3n-ethip4-ip4src253
58
59 *** Test Cases ***
60 | tc01-64B-1t1c-ethip4-ip4base-ipolicemarkbase-ndrchk
61 | | [Documentation]
62 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 1 thread, 1 phy \
63 | | ... | core, 1 receive queue per NIC port. [Ver] Verify ref-NDR for 64 \
64 | | ... | Byte frames using single trial throughput test at 2x 3.6mpps.
65 | | [Tags] | 64B | 1T1C | STHREAD
66 | | ${framesize}= | Set Variable | ${64}
67 | | ${rate}= | Set Variable | 3.6mpps
68 | | Set Test Variable | ${cb} | ${framesize}
69 | | Set Test Variable | ${eb} | ${framesize}
70 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
71 | | And Add PCI devices to DUTs in 3-node single link topology
72 | | And Add no multi seg to all DUTs
73 | | And Apply startup configuration on all VPP DUTs
74 | | And Initialize IPv4 forwarding in 3-node circular topology
75 | | And Initialize IPv4 policer 2r3c-'ca' in 3-node circular topology
76 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
77 | | ... | ${framesize} | ${traffic_profile}
78
79 | tc02-1518B-1t1c-ethip4-ip4base-ipolicemarkbase-ndrchk
80 | | [Documentation]
81 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 1 thread, 1 phy \
82 | | ... | core, 1 receive queue per NIC port. [Ver] Verify ref-NDR for 1518 \
83 | | ... | Byte frames using single trial throughput test at 2x 812743pps.
84 | | [Tags] | 1518B | 1T1C | STHREAD
85 | | ${framesize}= | Set Variable | ${1518}
86 | | ${rate}= | Set Variable | 812743pps
87 | | Set Test Variable | ${cb} | ${framesize}
88 | | Set Test Variable | ${eb} | ${framesize}
89 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
90 | | And Add PCI devices to DUTs in 3-node single link topology
91 | | And Add no multi seg to all DUTs
92 | | And Apply startup configuration on all VPP DUTs
93 | | When Initialize IPv4 forwarding in 3-node circular topology
94 | | And Initialize IPv4 policer 2r3c-'ca' in 3-node circular topology
95 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
96 | | ... | ${framesize} | ${traffic_profile}
97
98 | tc03-9000B-1t1c-ethip4-ip4base-ipolicemarkbase-ndrchk
99 | | [Documentation]
100 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 1 thread, 1 phy \
101 | | ... | core, 1 receive queue per NIC port. [Ver] Verify ref-NDR for 9000 \
102 | | ... | Byte frames using single trial throughput test at 2x 138580pps.
103 | | [Tags] | 9000B | 1T1C | STHREAD
104 | | ${framesize}= | Set Variable | ${9000}
105 | | ${rate}= | Set Variable | 138580pps
106 | | Set Test Variable | ${cb} | ${framesize}
107 | | Set Test Variable | ${eb} | ${framesize}
108 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
109 | | And Add PCI devices to DUTs in 3-node single link topology
110 | | And Apply startup configuration on all VPP DUTs
111 | | And Initialize IPv4 forwarding in 3-node circular topology
112 | | And Initialize IPv4 policer 2r3c-'ca' in 3-node circular topology
113 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
114 | | ... | ${framesize} | ${traffic_profile}
115
116 | tc04-64B-2t2c-ethip4-ip4base-ipolicemarkbase-ndrchk
117 | | [Documentation]
118 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 2 threads, 2 \
119 | | ... | phy cores, 1 receive queue per NIC port. [Ver] Verify ref-NDR for \
120 | | ... | 64 Byte frames using single trial throughput test at 2x 6.2mpps.
121 | | [Tags] | 64B | 2T2C | MTHREAD
122 | | ${framesize}= | Set Variable | ${64}
123 | | ${rate}= | Set Variable | 6.2mpps
124 | | Set Test Variable | ${cb} | ${framesize}
125 | | Set Test Variable | ${eb} | ${framesize}
126 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
127 | | And Add PCI devices to DUTs in 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 Initialize IPv4 forwarding in 3-node circular topology
131 | | And Initialize IPv4 policer 2r3c-'ca' in 3-node circular topology
132 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
133 | | ... | ${framesize} | ${traffic_profile}
134
135 | tc05-1518B-2t2c-ethip4-ip4base-ipolicemarkbase-ndrchk
136 | | [Documentation]
137 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 2 threads, 2 \
138 | | ... | phy cores, 1 receive queue per NIC port. [Ver] Verify ref-NDR for \
139 | | ... | 1518 Byte frames using single trial throughput test at 2x 812743pps.
140 | | [Tags] | 1518B | 2T2C | MTHREAD
141 | | ${framesize}= | Set Variable | ${1518}
142 | | ${rate}= | Set Variable | 812743pps
143 | | Set Test Variable | ${cb} | ${framesize}
144 | | Set Test Variable | ${eb} | ${framesize}
145 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
146 | | And Add PCI devices to DUTs in 3-node single link topology
147 | | And Add no multi seg to all DUTs
148 | | And Apply startup configuration on all VPP DUTs
149 | | And Initialize IPv4 forwarding in 3-node circular topology
150 | | And Initialize IPv4 policer 2r3c-'ca' in 3-node circular topology
151 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
152 | | ... | ${framesize} | ${traffic_profile}
153
154 | tc06-9000B-2t2c-ethip4-ip4base-ipolicemarkbase-ndrchk
155 | | [Documentation]
156 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 2 threads, 2 \
157 | | ... | phy cores, 1 receive queue per NIC port. [Ver] Verify ref-NDR for \
158 | | ... | 9000 Byte frames using single trial throughput test at 2x 138580pps.
159 | | [Tags] | 9000B | 2T2C | MTHREAD
160 | | ${framesize}= | Set Variable | ${9000}
161 | | ${rate}= | Set Variable | 138580pps
162 | | Set Test Variable | ${cb} | ${framesize}
163 | | Set Test Variable | ${eb} | ${framesize}
164 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
165 | | And Add PCI devices to DUTs in 3-node single link topology
166 | | And Apply startup configuration on all VPP DUTs
167 | | And Initialize IPv4 forwarding in 3-node circular topology
168 | | And Initialize IPv4 policer 2r3c-'ca' in 3-node circular topology
169 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
170 | | ... | ${framesize} | ${traffic_profile}
171
172 | tc07-64B-4t4c-ethip4-ip4base-ipolicemarkbase-ndrchk
173 | | [Documentation]
174 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 4 thread, 4 \
175 | | ... | phy core, 2 receive queue per NIC port. [Ver] Verify ref-NDR for 64 \
176 | | ... | Byte frames using single trial throughput test at 2x 10.4mpps.
177 | | [Tags] | 64B | 4T4C | MTHREAD
178 | | ${framesize}= | Set Variable | ${64}
179 | | ${rate}= | Set Variable | 10.4mpps
180 | | Set Test Variable | ${cb} | ${framesize}
181 | | Set Test Variable | ${eb} | ${framesize}
182 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
183 | | And Add PCI devices to DUTs in 3-node single link topology
184 | | And Add no multi seg to all DUTs
185 | | And Apply startup configuration on all VPP DUTs
186 | | And Initialize IPv4 forwarding in 3-node circular topology
187 | | And Initialize IPv4 policer 2r3c-'ca' in 3-node circular topology
188 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
189 | | ... | ${framesize} | ${traffic_profile}
190
191 | tc08-1518B-4t4c-ethip4-ip4base-ipolicemarkbase-ndrchk
192 | | [Documentation]
193 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 4 thread, 4 \
194 | | ... | phy core, 2 receive queue per NIC port. [Ver] Verify ref-NDR for \
195 | | ... | 1518 Byte frames using single trial throughput test at 2x 812743pps.
196 | | [Tags] | 1518B | 4T4C | MTHREAD
197 | | ${framesize}= | Set Variable | ${1518}
198 | | ${rate}= | Set Variable | 812743pps
199 | | Set Test Variable | ${cb} | ${framesize}
200 | | Set Test Variable | ${eb} | ${framesize}
201 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
202 | | And Add PCI devices to DUTs in 3-node single link topology
203 | | And Add no multi seg to all DUTs
204 | | And Apply startup configuration on all VPP DUTs
205 | | And Initialize IPv4 forwarding in 3-node circular topology
206 | | And Initialize IPv4 policer 2r3c-'ca' in 3-node circular topology
207 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
208 | | ... | ${framesize} | ${traffic_profile}
209
210 | tc09-9000B-4t4c-ethip4-ip4base-ipolicemarkbase-ndrchk
211 | | [Documentation]
212 | | ... | [Cfg] DUT runs IPv4 routing and policer config with 4 thread, 4 \
213 | | ... | phy core, 2 receive queue per NIC port. [Ver] Verify ref-NDR for \
214 | | ... | 9000 Byte frames using single trial throughput test at 2x 138580pps.
215 | | [Tags] | 9000B | 4T4C | MTHREAD
216 | | ${framesize}= | Set Variable | ${9000}
217 | | ${rate}= | Set Variable | 138580pps
218 | | Set Test Variable | ${cb} | ${framesize}
219 | | Set Test Variable | ${eb} | ${framesize}
220 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
221 | | And Add PCI devices to DUTs in 3-node single link topology
222 | | And Apply startup configuration on all VPP DUTs
223 | | And Initialize IPv4 forwarding in 3-node circular topology
224 | | And Initialize IPv4 policer 2r3c-'ca' in 3-node circular topology
225 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
226 | | ... | ${framesize} | ${traffic_profile}