CSIT-530: Add common setup and teardown to perf tests
[csit.git] / tests / perf / 10ge2p1x520-ethip6-ip6base-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 | IP6FWD | BASE
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 IPv6 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-IPv6 for IPv6 routing.
32 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with IPv6
33 | ... | routing and two static IPv6 /64 route entries. DUT1 and DUT2 tested with
34 | ... | 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 configuration. Test packets are
40 | ... | generated by TG on links to DUTs. TG traffic profile contains two L3
41 | ... | flow-groups (flow-group per direction, 253 flows per flow-group) with
42 | ... | all packets containing Ethernet header, IPv6 header and static
43 | ... | payload. MAC addresses are matching MAC addresses of the TG node
44 | ... | interfaces.
45 | ... | *[Ref] Applicable standard specifications:* RFC2544.
46
47 *** Test Cases ***
48 | tc01-78B-1t1c-ethip6-ip6base-ndrchk
49 | | [Documentation]
50 | | ... | [Cfg] DUT runs IPv6 routing config with 1 thread, 1 phy core, \
51 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 78 Byte
52 | | ... | frames using single trial throughput test at 2x 2.9mpps.
53 | | [Tags] | 1T1C | STHREAD
54 | | ${framesize}= | Set Variable | 78
55 | | ${rate}= | Set Variable | 2.9mpps
56 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
57 | | And Add PCI devices to DUTs from 3-node single link topology
58 | | And Add No Multi Seg to all DUTs
59 | | And Apply startup configuration on all VPP DUTs
60 | | And IPv6 forwarding initialized in a 3-node circular topology
61 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
62 | | ... | ${framesize} | 3-node-IPv6
63
64 | tc02-1518B-1t1c-ethip6-ip6base-ndrchk
65 | | [Documentation]
66 | | ... | [Cfg] DUT runs IPv6 routing config with 1 thread, 1 phy core, \
67 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 1518 Byte
68 | | ... | frames using single trial throughput test at 2x 812743pps.
69 | | [Tags] | 1T1C | STHREAD
70 | | ${framesize}= | Set Variable | 1518
71 | | ${rate}= | Set Variable | 812743pps
72 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
73 | | And Add PCI devices to DUTs from 3-node single link topology
74 | | And Add No Multi Seg to all DUTs
75 | | And Apply startup configuration on all VPP DUTs
76 | | And IPv6 forwarding initialized in a 3-node circular topology
77 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
78 | | ... | ${framesize} | 3-node-IPv6
79
80 | tc03-9000B-1t1c-ethip6-ip6base-ndrchk
81 | | [Documentation]
82 | | ... | [Cfg] DUT runs IPv6 routing config with 1 thread, 1 phy core, \
83 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 9000 Byte
84 | | ... | frames using single trial throughput test at 2x 138580pps.
85 | | [Tags] | 1T1C | STHREAD
86 | | ${framesize}= | Set Variable | 9000
87 | | ${rate}= | Set Variable | 138580pps
88 | | Given Add '1' worker threads and rxqueues '1' in 3-node single-link topo
89 | | And Add PCI devices to DUTs from 3-node single link topology
90 | | And Apply startup configuration on all VPP DUTs
91 | | And IPv6 forwarding initialized in a 3-node circular topology
92 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
93 | | ... | ${framesize} | 3-node-IPv6
94
95 | tc04-78B-2t2c-ethip6-ip6base-ndrchk
96 | | [Documentation]
97 | | ... | [Cfg] DUT runs IPv6 routing config with 2 threads, 2 phy cores, \
98 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 78 Byte
99 | | ... | frames using single trial throughput test at 2x 5.9mpps.
100 | | [Tags] | 2T2C | MTHREAD
101 | | ${framesize}= | Set Variable | 78
102 | | ${rate}= | Set Variable | 5.9mpps
103 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
104 | | And Add PCI devices to DUTs from 3-node single link topology
105 | | And Add No Multi Seg to all DUTs
106 | | And Apply startup configuration on all VPP DUTs
107 | | And IPv6 forwarding initialized in a 3-node circular topology
108 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
109 | | ... | ${framesize} | 3-node-IPv6
110
111 | tc05-1518B-2t2c-ethip6-ip6base-ndrchk
112 | | [Documentation]
113 | | ... | [Cfg] DUT runs IPv6 routing config with 2 threads, 2 phy cores, \
114 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 1518 Byte
115 | | ... | frames using single trial throughput test at 2x 812743pps.
116 | | [Tags] | 2T2C | MTHREAD
117 | | ${framesize}= | Set Variable | 1518
118 | | ${rate}= | Set Variable | 812743pps
119 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
120 | | And Add PCI devices to DUTs from 3-node single link topology
121 | | And Add No Multi Seg to all DUTs
122 | | And Apply startup configuration on all VPP DUTs
123 | | And IPv6 forwarding initialized in a 3-node circular topology
124 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
125 | | ... | ${framesize} | 3-node-IPv6
126
127 | tc06-9000B-2t2c-ethip6-ip6base-ndrchk
128 | | [Documentation]
129 | | ... | [Cfg] DUT runs IPv6 routing config with 2 threads, 2 phy cores, \
130 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 9000 Byte
131 | | ... | frames using single trial throughput test at 2x 138580pps.
132 | | [Tags] | 2T2C | MTHREAD
133 | | ${framesize}= | Set Variable | 9000
134 | | ${rate}= | Set Variable | 138580pps
135 | | Given Add '2' worker threads and rxqueues '1' in 3-node single-link topo
136 | | And Add PCI devices to DUTs from 3-node single link topology
137 | | And Apply startup configuration on all VPP DUTs
138 | | And IPv6 forwarding initialized in a 3-node circular topology
139 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
140 | | ... | ${framesize} | 3-node-IPv6
141
142 | tc07-78B-4t4c-ethip6-ip6base-ndrchk
143 | | [Documentation]
144 | | ... | [Cfg] DUT runs IPv6 routing config with 4 threads, 4 phy cores, \
145 | | ... | 2 receive queues per NIC port. [Ver] Verify ref-NDR for 78 Byte
146 | | ... | frames using single trial throughput test at 2x 7.3mpps.
147 | | [Tags] | 4T4C | MTHREAD
148 | | ${framesize}= | Set Variable | 78
149 | | ${rate}= | Set Variable | 7.3mpps
150 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
151 | | And Add PCI devices to DUTs from 3-node single link topology
152 | | And Add No Multi Seg to all DUTs
153 | | And Apply startup configuration on all VPP DUTs
154 | | And IPv6 forwarding initialized in a 3-node circular topology
155 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
156 | | ... | ${framesize} | 3-node-IPv6
157
158 | tc08-1518B-4t4c-ethip6-ip6base-ndrchk
159 | | [Documentation]
160 | | ... | [Cfg] DUT runs IPv6 routing config with 4 threads, 4 phy cores, \
161 | | ... | 2 receive queues per NIC port. [Ver] Verify ref-NDR for 1518 Byte
162 | | ... | frames using single trial throughput test at 2x 812743pps.
163 | | [Tags] | 4T4C | MTHREAD
164 | | ${framesize}= | Set Variable | 1518
165 | | ${rate}= | Set Variable | 812743pps
166 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
167 | | And Add PCI devices to DUTs from 3-node single link topology
168 | | And Add No Multi Seg to all DUTs
169 | | And Apply startup configuration on all VPP DUTs
170 | | And IPv6 forwarding initialized in a 3-node circular topology
171 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
172 | | ... | ${framesize} | 3-node-IPv6
173
174 | tc09-9000B-4t4c-ethip6-ip6base-ndrchk
175 | | [Documentation]
176 | | ... | [Cfg] DUT runs IPv6 routing config with 4 threads, 4 phy cores, \
177 | | ... | 2 receive queues per NIC port. [Ver] Verify ref-NDR for 9000 Byte
178 | | ... | frames using single trial throughput test at 2x 138580pps.
179 | | [Tags] | 4T4C | MTHREAD
180 | | ${framesize}= | Set Variable | 9000
181 | | ${rate}= | Set Variable | 138580pps
182 | | Given Add '4' worker threads and rxqueues '2' in 3-node single-link topo
183 | | And Add PCI devices to DUTs from 3-node single link topology
184 | | And Apply startup configuration on all VPP DUTs
185 | | And IPv6 forwarding initialized in a 3-node circular topology
186 | | Then Traffic should pass with no loss | ${perf_trial_duration} | ${rate}
187 | | ... | ${framesize} | 3-node-IPv6