CSIT-662: KWI - KW renaming
[csit.git] / tests / perf / 40ge2p1xl710-ethip6-ip6base-ndrpdrdisc.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 | NDRPDRDISC
18 | ... | NIC_Intel-XL710 | ETH | IP6FWD | BASE
19 | ...
20 | Suite Setup | Set up 3-node performance topology with DUT's NIC model
21 | ... | L3 | Intel-XL710
22 | Suite Teardown | Tear down 3-node performance topology
23 | ...
24 | Test Setup | Set up performance test
25 | Test Teardown | Tear down performance discovery test | ${min_rate}pps | ${framesize}
26 | ... | ${traffic_profile}
27 | ...
28 | Documentation | *RFC2544: Pkt throughput IPv6 routing test cases*
29 | ...
30 | ... | *[Top] Network Topologies:* TG-DUT1-DUT2-TG 3-node circular topology
31 | ... | with single links between nodes.
32 | ... | *[Enc] Packet Encapsulations:* Eth-IPv6 for IPv6 routing.
33 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with IPv6
34 | ... | routing and two static IPv6 /64 route entries. DUT1 and DUT2 tested with
35 | ... | 2p40GE NIC XL710 by Intel.
36 | ... | *[Ver] TG verification:* TG finds and reports throughput NDR (Non Drop
37 | ... | Rate) with zero packet loss tolerance or throughput PDR (Partial Drop
38 | ... | Rate) with non-zero packet loss tolerance (LT) expressed in percentage
39 | ... | of packets transmitted. NDR and PDR are discovered for different
40 | ... | Ethernet L2 frame sizes using either binary search or linear search
41 | ... | algorithms with configured starting rate and final step that determines
42 | ... | throughput measurement resolution. Test packets are generated by TG on
43 | ... | links to DUTs. TG traffic profile contains two L3 flow-groups
44 | ... | (flow-group per direction, 253 flows per flow-group) with all packets
45 | ... | containing Ethernet header, IPv6 header and static payload.
46 | ... | MAC addresses are matching MAC addresses of the TG node interfaces.
47 | ... | *[Ref] Applicable standard specifications:* RFC2544.
48
49 *** Variables ***
50 # XL710-DA2 bandwidth limit ~49Gbps/2=24.5Gbps
51 | ${s_24.5G} | ${24500000000}
52 # XL710-DA2 Mpps limit 37.5Mpps/2=18.75Mpps
53 | ${s_18.75Mpps} | ${18750000}
54 # Traffic profile:
55 | ${traffic_profile} | trex-sl-3n-ethip6-ip6src253
56
57 *** Test Cases ***
58 | tc01-78B-1t1c-ethip6-ip6base-ndrdisc
59 | | [Documentation]
60 | | ... | [Cfg] DUT runs IPv6 routing config with 1 thread, 1 phy core, \
61 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 78 Byte frames
62 | | ... | using binary search start at 18.75Mpps rate, step 100kpps.
63 | | [Tags] | 78B | 1T1C | STHREAD | NDRDISC
64 | | ${framesize}= | Set Variable | ${78}
65 | | ${min_rate}= | Set Variable | ${100000}
66 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
67 | | ${binary_min}= | Set Variable | ${min_rate}
68 | | ${binary_max}= | Set Variable | ${max_rate}
69 | | ${threshold}= | Set Variable | ${min_rate}
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 IPv6 forwarding in 3-node circular topology
75 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
76 | | ... | ${binary_max} | ${traffic_profile}
77 | | ... | ${min_rate} | ${max_rate} | ${threshold}
78
79 | tc03-1518B-1t1c-ethip6-ip6base-ndrdisc
80 | | [Documentation]
81 | | ... | [Cfg] DUT runs IPv6 routing config with 1 thread, 1 phy core, \
82 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames
83 | | ... | using binary search start at 24.5G rate, step 10kpps.
84 | | [Tags] | 1518B | 1T1C | STHREAD | NDRDISC
85 | | ${framesize}= | Set Variable | ${1518}
86 | | ${min_rate}= | Set Variable | ${10000}
87 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
88 | | ${binary_min}= | Set Variable | ${min_rate}
89 | | ${binary_max}= | Set Variable | ${max_rate}
90 | | ${threshold}= | Set Variable | ${min_rate}
91 | | Given Add '1' worker threads and '1' rxqueues in 3-node single-link circular topology
92 | | And Add PCI devices to DUTs in 3-node single link topology
93 | | And Add no multi seg to all DUTs
94 | | And Apply startup configuration on all VPP DUTs
95 | | And Initialize IPv6 forwarding in 3-node circular topology
96 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
97 | | ... | ${binary_max} | ${traffic_profile}
98 | | ... | ${min_rate} | ${max_rate} | ${threshold}
99
100 | tc07-78B-2t2c-ethip6-ip6base-ndrdisc
101 | | [Documentation]
102 | | ... | [Cfg] DUT runs IPv6 routing config with 2 threads, 2 phy cores, \
103 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 78 Byte frames
104 | | ... | using binary search start at 18.75Mpps rate, step 100kpps.
105 | | [Tags] | 78B | 2T2C | MTHREAD | NDRDISC
106 | | ${framesize}= | Set Variable | ${78}
107 | | ${min_rate}= | Set Variable | ${100000}
108 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
109 | | ${binary_min}= | Set Variable | ${min_rate}
110 | | ${binary_max}= | Set Variable | ${max_rate}
111 | | ${threshold}= | Set Variable | ${min_rate}
112 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
113 | | And Add PCI devices to DUTs in 3-node single link topology
114 | | And Add no multi seg to all DUTs
115 | | And Apply startup configuration on all VPP DUTs
116 | | And Initialize IPv6 forwarding in 3-node circular topology
117 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
118 | | ... | ${binary_max} | ${traffic_profile}
119 | | ... | ${min_rate} | ${max_rate} | ${threshold}
120
121 | tc09-1518B-2t2c-ethip6-ip6base-ndrdisc
122 | | [Documentation]
123 | | ... | [Cfg] DUT runs IPv6 routing config with 2 threads, 2 phy cores, \
124 | | ... | 1 receive queue per NIC port. [Ver] Find NDR for 1518 Byte frames
125 | | ... | using binary search start at 24.5G rate, step 10kpps.
126 | | [Tags] | 1518B | 2T2C | MTHREAD | NDRDISC | SKIP_PATCH
127 | | ${framesize}= | Set Variable | ${1518}
128 | | ${min_rate}= | Set Variable | ${10000}
129 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
130 | | ${binary_min}= | Set Variable | ${min_rate}
131 | | ${binary_max}= | Set Variable | ${max_rate}
132 | | ${threshold}= | Set Variable | ${min_rate}
133 | | Given Add '2' worker threads and '1' rxqueues in 3-node single-link circular topology
134 | | And Add PCI devices to DUTs in 3-node single link topology
135 | | And Add no multi seg to all DUTs
136 | | And Apply startup configuration on all VPP DUTs
137 | | And Initialize IPv6 forwarding in 3-node circular topology
138 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
139 | | ... | ${binary_max} | ${traffic_profile}
140 | | ... | ${min_rate} | ${max_rate} | ${threshold}
141
142 | tc13-78B-4t4c-ethip6-ip6base-ndrdisc
143 | | [Documentation]
144 | | ... | [Cfg] DUT runs IPv6 routing config with 4 threads, 4 phy cores, \
145 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 78 Byte frames
146 | | ... | using binary search start at 18.75Mpps rate, step 100kpps.
147 | | [Tags] | 78B | 4T4C | MTHREAD | NDRDISC
148 | | ${framesize}= | Set Variable | ${78}
149 | | ${min_rate}= | Set Variable | ${100000}
150 | | ${max_rate}= | Set Variable | ${s_18.75Mpps}
151 | | ${binary_min}= | Set Variable | ${min_rate}
152 | | ${binary_max}= | Set Variable | ${max_rate}
153 | | ${threshold}= | Set Variable | ${min_rate}
154 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
155 | | And Add PCI devices to DUTs in 3-node single link topology
156 | | And Add no multi seg to all DUTs
157 | | And Apply startup configuration on all VPP DUTs
158 | | And Initialize IPv6 forwarding in 3-node circular topology
159 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
160 | | ... | ${binary_max} | ${traffic_profile}
161 | | ... | ${min_rate} | ${max_rate} | ${threshold}
162
163 | tc15-1518B-4t4c-ethip6-ip6base-ndrdisc
164 | | [Documentation]
165 | | ... | [Cfg] DUT runs IPv6 routing config with 4 threads, 4 phy cores, \
166 | | ... | 2 receive queues per NIC port. [Ver] Find NDR for 1518 Byte frames
167 | | ... | using binary search start at 24.5G rate, step 10kpps.
168 | | [Tags] | 1518B | 4T4C | MTHREAD | NDRDISC | SKIP_PATCH
169 | | ${framesize}= | Set Variable | ${1518}
170 | | ${min_rate}= | Set Variable | ${10000}
171 | | ${max_rate}= | Calculate pps | ${s_24.5G} | ${framesize}
172 | | ${binary_min}= | Set Variable | ${min_rate}
173 | | ${binary_max}= | Set Variable | ${max_rate}
174 | | ${threshold}= | Set Variable | ${min_rate}
175 | | Given Add '4' worker threads and '2' rxqueues in 3-node single-link circular topology
176 | | And Add PCI devices to DUTs in 3-node single link topology
177 | | And Add no multi seg to all DUTs
178 | | And Apply startup configuration on all VPP DUTs
179 | | And Initialize IPv6 forwarding in 3-node circular topology
180 | | Then Find NDR using binary search and pps | ${framesize} | ${binary_min}
181 | | ... | ${binary_max} | ${traffic_profile}
182 | | ... | ${min_rate} | ${max_rate} | ${threshold}