CSIT-662: KWI - KW renaming
[csit.git] / tests / perf / 10ge2p1x520-ethip6-ip6scale2m-pdrchk.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 | PDRCHK
18 | ... | NIC_Intel-X520-DA2 | ETH | IP6FWD | SCALE | FIB_2M
19 | ...
20 | Suite Setup | Set up 3-node performance topology with DUT's NIC model
21 | ... | L3 | Intel-X520-DA2
22 | Suite Teardown | Tear down 3-node performance topology
23 | ...
24 | Test Setup | Set up performance test
25 | Test Teardown | Performance pdrchk test teardown
26 | ...
27 | Documentation | *Reference PDR 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 2x1M static IPv6 /64 route entries. DUT1 and DUT2 tested
34 | ... | with 2p10GE NIC X520 Niantic by Intel.
35 | ... | *[Ver] TG verification:* In short performance tests, TG verifies
36 | ... | DUTs' throughput at ref-PDR (reference Non Drop Rate) with zero packet
37 | ... | loss tolerance. Ref-PDR value is periodically updated acording to
38 | ... | formula: ref-PDR = 0.9x PDR, where PDR is found in RFC2544 long
39 | ... | performance tests for the same DUT confiiguration. Test packets are
40 | ... | generated by TG on links to DUTs. TG traffic profile contains two L3
41 | ... | flow-groups (flow-group per direction, 1M flows per flow-group) with
42 | ... | all packets containing Ethernet header, IPv6 header and static
43 | ... | payload. Incrementing of IP.dst (IPv6 destination address) field is
44 | ... | applied to both streams.
45 | ... | *[Ref] Applicable standard specifications:* RFC2544.
46
47 *** Variables ***
48 | ${rts_per_flow}= | ${1000000}
49 # Traffic profile:
50 | ${traffic_profile} | trex-sl-3n-ethip6-ip6dst${rts_per_flow}
51
52 *** Keywords ***
53 | Check PDR for IPv6 scaled routing
54 | | [Documentation]
55 | | ... | [Cfg] DUT runs IPv6 routing config with ${wt} thread, ${wt} phy core,\
56 | | ... | ${rxq} receive queue per NIC port.
57 | | ... | [Ver] Verify ref-NDR for ${framesize} Byte frames using single trial\
58 | | ... | throughput test at 2x ${rate}.
59 | | ...
60 | | [Arguments] | ${framesize} | ${rate} | ${wt} | ${rxq}
61 | | ...
62 | | # Test Variables required for test and test teardown
63 | | Set Test Variable | ${framesize}
64 | | Set Test Variable | ${rate}
65 | | ${get_framesize}= | Get Frame Size | ${framesize}
66 | | ...
67 | | Given Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
68 | | And Add PCI devices to DUTs in 3-node single link topology
69 | | And Run Keyword If | ${get_framesize} < ${1522}
70 | | ... | Add no multi seg to all DUTs
71 | | And Add heapsize config to all DUTs | 3G
72 | | And Apply startup configuration on all VPP DUTs
73 | | And Initialize IPv6 forwarding with scaling in 3-node circular topology
74 | | ... | ${rts_per_flow}
75 | | Then Traffic should pass with partial loss | ${perf_trial_duration}
76 | | ... | ${rate} | ${framesize} | ${traffic_profile}
77 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
78
79 *** Test Cases ***
80 | tc01-78B-1t1c-ethip6-ip6scale2m-pdrchk
81 | | [Documentation]
82 | | ... | [Cfg] DUT runs IPv6 routing config with 1 thread, 1 phy core,\
83 | | ... | 1 receive queue per NIC port.
84 | | ... | [Ver] Verify ref-NDR for 78 Byte frames using single trial\
85 | | ... | throughput test at 2x ${rate}.
86 | | ...
87 | | [Tags] | 78B | 1T1C | STHREAD
88 | | ...
89 | | [Template] | Check PDR for IPv6 scaled routing
90 | | framesize=${78} | rate=1.8mpps | wt=1 | rxq=1
91
92 | tc02-1518B-1t1c-ethip6-ip6scale2m-pdrchk
93 | | [Documentation]
94 | | ... | [Cfg] DUT runs IPv6 routing config with 1 thread, 1 phy core,\
95 | | ... | 1 receive queue per NIC port.
96 | | ... | [Ver] Verify ref-NDR for 1518 Byte frames using single trial\
97 | | ... | throughput test at 2x ${rate}.
98 | | ...
99 | | [Tags] | 1518B | 1T1C | STHREAD
100 | | ...
101 | | [Template] | Check PDR for IPv6 scaled routing
102 | | framesize=${1518} | rate=812743pps | wt=1 | rxq=1
103
104 | tc03-9000B-1t1c-ethip6-ip6scale2m-pdrchk
105 | | [Documentation]
106 | | ... | [Cfg] DUT runs IPv6 routing config with 1 thread, 1 phy core,\
107 | | ... | 1 receive queue per NIC port.
108 | | ... | [Ver] Verify ref-NDR for 9000 Byte frames using single trial\
109 | | ... | throughput test at 2x ${rate}.
110 | | ...
111 | | [Tags] | 9000B | 1T1C | STHREAD
112 | | ...
113 | | [Template] | Check PDR for IPv6 scaled routing
114 | | framesize=${9000} | rate=138580pps | wt=1 | rxq=1
115
116 | tc04-78B-2t2c-ethip6-ip6scale2m-pdrchk
117 | | [Documentation]
118 | | ... | [Cfg] DUT runs IPv6 routing config with 2 threads, 2 phy cores,\
119 | | ... | 1 receive queue per NIC port.
120 | | ... | [Ver] Verify ref-NDR for 78 Byte frames using single trial\
121 | | ... | throughput test at 2x ${rate}.
122 | | ...
123 | | [Tags] | 78B | 2T2C | MTHREAD
124 | | ...
125 | | [Template] | Check PDR for IPv6 scaled routing
126 | | framesize=${78} | rate=4.0mpps | wt=2 | rxq=1
127
128 | tc05-1518B-2t2c-ethip6-ip6scale2m-pdrchk
129 | | [Documentation]
130 | | ... | [Cfg] DUT runs IPv6 routing config with 2 threads, 2 phy cores,\
131 | | ... | 1 receive queue per NIC port.
132 | | ... | [Ver] Verify ref-NDR for 1518 Byte frames using single trial\
133 | | ... | throughput test at 2x ${rate}.
134 | | ...
135 | | [Tags] | 1518B | 2T2C | MTHREAD
136 | | ...
137 | | [Template] | Check PDR for IPv6 scaled routing
138 | | framesize=${1518} | rate=812743pps | wt=2 | rxq=1
139
140 | tc06-9000B-2t2c-ethip6-ip6scale2m-pdrchk
141 | | [Documentation]
142 | | ... | [Cfg] DUT runs IPv6 routing config with 2 threads, 2 phy cores,\
143 | | ... | 1 receive queue per NIC port.
144 | | ... | [Ver] Verify ref-NDR for 9000 Byte frames using single trial\
145 | | ... | throughput test at 2x ${rate}.
146 | | ...
147 | | [Tags] | 9000B | 2T2C | MTHREAD
148 | | ...
149 | | [Template] | Check PDR for IPv6 scaled routing
150 | | framesize=${900} | rate=138580pps | wt=2 | rxq=1
151
152 | tc07-78B-4t4c-ethip6-ip6scale2m-pdrchk
153 | | [Documentation]
154 | | ... | [Cfg] DUT runs IPv6 routing config with 4 threads, 4 phy cores,\
155 | | ... | 2 receive queue per NIC port.
156 | | ... | [Ver] Verify ref-NDR for 78 Byte frames using single trial\
157 | | ... | throughput test at 2x ${rate}.
158 | | ...
159 | | [Tags] | 78B | 4T4C | MTHREAD
160 | | ...
161 | | [Template] | Check PDR for IPv6 scaled routing
162 | | framesize=${78} | rate=6.8mpps | wt=4 | rxq=2
163
164 | tc08-1518B-4t4c-ethip6-ip6scale2m-pdrchk
165 | | [Documentation]
166 | | ... | [Cfg] DUT runs IPv6 routing config with 4 threads, 4 phy cores,\
167 | | ... | 2 receive queue per NIC port.
168 | | ... | [Ver] Verify ref-NDR for 1518 Byte frames using single trial\
169 | | ... | throughput test at 2x ${rate}.
170 | | ...
171 | | [Tags] | 1518B | 4T4C | MTHREAD
172 | | ...
173 | | [Template] | Check PDR for IPv6 scaled routing
174 | | framesize=${1518} | rate=812743pps | wt=4 | rxq=2
175
176 | tc09-9000B-4t4c-ethip6-ip6scale2m-pdrchk
177 | | [Documentation]
178 | | ... | [Cfg] DUT runs IPv6 routing config with 4 threads, 4 phy cores,\
179 | | ... | 2 receive queue per NIC port.
180 | | ... | [Ver] Verify ref-NDR for 9000 Byte frames using single trial\
181 | | ... | throughput test at 2x ${rate}.
182 | | ...
183 | | [Tags] | 9000B | 4T4C | MTHREAD
184 | | ...
185 | | [Template] | Check PDR for IPv6 scaled routing
186 | | framesize=${9000} | rate=138580pps | wt=4 | rxq=2