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