f330aa26c5ec11743a111de342b8ea44eb1f220d
[csit.git] / tests / perf / 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.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
26 | ...
27 | Suite Setup | 3-node Performance Suite Setup with DUT's NIC model
28 | ... | L3 | Intel-X520-DA2
29 | Suite Teardown | 3-node Performance Suite Teardown
30 | ...
31 | Test Setup | Performance test setup
32 | Test Teardown | Performance ndrchk test teardown
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 *** Test Cases ***
55 | tc01-64B-1t1c-ethip4-ip4base-ndrchk
56 | | [Documentation]
57 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core, \
58 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 64 Byte
59 | | ... | frames using single trial throughput test at 2x 4.6mpps.
60 | | [Tags] | 1T1C | STHREAD
61 | | ${framesize}= | Set Variable | ${64}
62 | | ${rate}= | Set Variable | 4.6mpps
63 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
64 | | And Add PCI devices to DUTs from 3-node single link topology
65 | | And Add No Multi Seg to all DUTs
66 | | And Apply startup configuration on all VPP DUTs
67 | | And IPv4 forwarding initialized in a 3-node circular topology
68 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
69 | | ... | ${framesize} | 3-node-IPv4
70
71 | tc02-1518B-1t1c-ethip4-ip4base-ndrchk
72 | | [Documentation]
73 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core, \
74 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 1518 Byte
75 | | ... | frames using single trial throughput test at 2x 812743pps.
76 | | [Tags] | 1T1C | STHREAD
77 | | ${framesize}= | Set Variable | ${1518}
78 | | ${rate}= | Set Variable | 812743pps
79 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
80 | | And Add PCI devices to DUTs from 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 IPv4 forwarding initialized in a 3-node circular topology
84 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
85 | | ... | ${framesize} | 3-node-IPv4
86
87 | tc03-9000B-1t1c-ethip4-ip4base-ndrchk
88 | | [Documentation]
89 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core, \
90 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 9000 Byte
91 | | ... | frames using single trial throughput test at 2x 138580pps.
92 | | [Tags] | 1T1C | STHREAD
93 | | ${framesize}= | Set Variable | ${9000}
94 | | ${rate}= | Set Variable | 138580pps
95 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
96 | | And Add PCI devices to DUTs from 3-node single link topology
97 | | And Apply startup configuration on all VPP DUTs
98 | | And IPv4 forwarding initialized in a 3-node circular topology
99 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
100 | | ... | ${framesize} | 3-node-IPv4
101
102 | tc04-64B-2t2c-ethip4-ip4base-ndrchk
103 | | [Documentation]
104 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores, \
105 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 64 Byte
106 | | ... | frames using single trial throughput test at 2x 10.4mpps.
107 | | [Tags] | 2T2C | MTHREAD
108 | | ${framesize}= | Set Variable | ${64}
109 | | ${rate}= | Set Variable | 10.4mpps
110 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
111 | | And Add PCI devices to DUTs from 3-node single link topology
112 | | And Add No Multi Seg to all DUTs
113 | | And Apply startup configuration on all VPP DUTs
114 | | And IPv4 forwarding initialized in a 3-node circular topology
115 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
116 | | ... | ${framesize} | 3-node-IPv4
117
118 | tc05-1518B-2t2c-ethip4-ip4base-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 IPv4 forwarding initialized in a 3-node circular topology
131 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
132 | | ... | ${framesize} | 3-node-IPv4
133
134 | tc06-9000B-2t2c-ethip4-ip4base-ndrchk
135 | | [Documentation]
136 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores, \
137 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 9000 Byte
138 | | ... | frames using single trial throughput test at 2x 138580pps.
139 | | [Tags] | 2T2C | MTHREAD
140 | | ${framesize}= | Set Variable | ${9000}
141 | | ${rate}= | Set Variable | 138580pps
142 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
143 | | And Add PCI devices to DUTs from 3-node single link topology
144 | | And Apply startup configuration on all VPP DUTs
145 | | And IPv4 forwarding initialized in a 3-node circular topology
146 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
147 | | ... | ${framesize} | 3-node-IPv4
148
149 | tc07-64B-4t4c-ethip4-ip4base-ndrchk
150 | | [Documentation]
151 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores, \
152 | | ... | 2 receive queues per NIC port. [Ver] Verify ref-NDR for 64 Byte
153 | | ... | frames using single trial throughput test at 2x 10.4mpps.
154 | | [Tags] | 4T4C | MTHREAD
155 | | ${framesize}= | Set Variable | ${64}
156 | | ${rate}= | Set Variable | 10.4mpps
157 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
158 | | And Add PCI devices to DUTs from 3-node single link topology
159 | | And Add No Multi Seg to all DUTs
160 | | And Apply startup configuration on all VPP DUTs
161 | | And IPv4 forwarding initialized in a 3-node circular topology
162 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
163 | | ... | ${framesize} | 3-node-IPv4
164
165 | tc08-1518B-4t4c-ethip4-ip4base-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 1518 Byte
169 | | ... | frames using single trial throughput test at 2x 812743pps.
170 | | [Tags] | 4T4C | MTHREAD
171 | | ${framesize}= | Set Variable | ${1518}
172 | | ${rate}= | Set Variable | 812743pps
173 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
174 | | And Add PCI devices to DUTs from 3-node single link topology
175 | | And Add No Multi Seg to all DUTs
176 | | And Apply startup configuration on all VPP DUTs
177 | | And IPv4 forwarding initialized in a 3-node circular topology
178 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
179 | | ... | ${framesize} | 3-node-IPv4
180
181 | tc08-9000B-4t4c-ethip4-ip4base-ndrchk
182 | | [Documentation]
183 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores, \
184 | | ... | 2 receive queues per NIC port. [Ver] Verify ref-NDR for 9000 Byte
185 | | ... | frames using single trial throughput test at 2x 138580pps.
186 | | [Tags] | 4T4C | MTHREAD
187 | | ${framesize}= | Set Variable | ${9000}
188 | | ${rate}= | Set Variable | 138580pps
189 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
190 | | And Add PCI devices to DUTs from 3-node single link topology
191 | | And Apply startup configuration on all VPP DUTs
192 | | And IPv4 forwarding initialized in a 3-node circular topology
193 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
194 | | ... | ${framesize} | 3-node-IPv4