26e41713b16135a61d3e90aaa528c79f7197fca2
[csit.git] / tests / perf / 10ge2p1x520-ethip6-ip6base-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 | BASE | IP6BASE
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 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-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 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 *** Variables ***
48 # Traffic profile:
49 | ${traffic_profile} | trex-sl-3n-ethip6-ip6src253
50
51 *** Keywords ***
52 | Check PDR for IPv6 routing
53 | | [Documentation]
54 | | ... | [Cfg] DUT runs IPv6 routing config with ${wt} thread, ${wt} phy core,\
55 | | ... | ${rxq} receive queue per NIC port.
56 | | ... | [Ver] Verify ref-NDR for ${framesize} Byte frames using single trial\
57 | | ... | throughput test at 2x ${rate}.
58 | | ...
59 | | [Arguments] | ${framesize} | ${rate} | ${wt} | ${rxq}
60 | | ...
61 | | # Test Variables required for test and test teardown
62 | | Set Test Variable | ${framesize}
63 | | Set Test Variable | ${rate}
64 | | ${get_framesize}= | Get Frame Size | ${framesize}
65 | | ...
66 | | Given Add '${wt}' worker threads and '${rxq}' rxqueues in 3-node single-link circular topology
67 | | And Add PCI devices to DUTs in 3-node single link topology
68 | | And Run Keyword If | ${get_framesize} < ${1522}
69 | | ... | Add no multi seg to all DUTs
70 | | And Apply startup configuration on all VPP DUTs
71 | | And Initialize IPv6 forwarding in 3-node circular topology
72 | | Then Traffic should pass with partial loss | ${perf_trial_duration}
73 | | ... | ${rate} | ${framesize} | ${traffic_profile}
74 | | ... | ${perf_pdr_loss_acceptance} | ${perf_pdr_loss_acceptance_type}
75
76 *** Test Cases ***
77 | tc01-78B-1t1c-ethip6-ip6base-pdrchk
78 | | [Documentation]
79 | | ... | [Cfg] DUT runs IPv6 routing config with 1 thread, 1 phy core,\
80 | | ... | 1 receive queue per NIC port.
81 | | ... | [Ver] Verify ref-NDR for 78 Byte frames using single trial\
82 | | ... | throughput test at 2x ${rate}.
83 | | ...
84 | | [Tags] | 78B | 1T1C | STHREAD
85 | | ...
86 | | [Template] | Check PDR for IPv6 routing
87 | | framesize=${78} | rate=3.9mpps | wt=1 | rxq=1
88
89 | tc02-1518B-1t1c-ethip6-ip6base-pdrchk
90 | | [Documentation]
91 | | ... | [Cfg] DUT runs IPv6 routing config with 1 thread, 1 phy core,\
92 | | ... | 1 receive queue per NIC port.
93 | | ... | [Ver] Verify ref-NDR for 1518 Byte frames using single trial\
94 | | ... | throughput test at 2x ${rate}.
95 | | ...
96 | | [Tags] | 1518B | 1T1C | STHREAD
97 | | ...
98 | | [Template] | Check PDR for IPv6 routing
99 | | framesize=${1518} | rate=812743pps | wt=1 | rxq=1
100
101 | tc03-9000B-1t1c-ethip6-ip6base-pdrchk
102 | | [Documentation]
103 | | ... | [Cfg] DUT runs IPv6 routing config with 1 thread, 1 phy core,\
104 | | ... | 1 receive queue per NIC port.
105 | | ... | [Ver] Verify ref-NDR for 9000 Byte frames using single trial\
106 | | ... | throughput test at 2x ${rate}.
107 | | ...
108 | | [Tags] | 9000B | 1T1C | STHREAD
109 | | ...
110 | | [Template] | Check PDR for IPv6 routing
111 | | framesize=${9000} | rate=138580pps | wt=1 | rxq=1
112
113 | tc04-78B-2t2c-ethip6-ip6base-pdrchk
114 | | [Documentation]
115 | | ... | [Cfg] DUT runs IPv6 routing config with 2 threads, 2 phy cores,\
116 | | ... | 1 receive queue per NIC port.
117 | | ... | [Ver] Verify ref-NDR for 78 Byte frames using single trial\
118 | | ... | throughput test at 2x ${rate}.
119 | | ...
120 | | [Tags] | 78B | 2T2C | MTHREAD
121 | | ...
122 | | [Template] | Check PDR for IPv6 routing
123 | | framesize=${78} | rate=8.1mpps | wt=2 | rxq=1
124
125 | tc05-1518B-2t2c-ethip6-ip6base-pdrchk
126 | | [Documentation]
127 | | ... | [Cfg] DUT runs IPv6 routing config with 2 threads, 2 phy cores,\
128 | | ... | 1 receive queue per NIC port.
129 | | ... | [Ver] Verify ref-NDR for 1518 Byte frames using single trial\
130 | | ... | throughput test at 2x ${rate}.
131 | | ...
132 | | [Tags] | 1518B | 2T2C | MTHREAD
133 | | ...
134 | | [Template] | Check PDR for IPv6 routing
135 | | framesize=${1518} | rate=812743pps | wt=2 | rxq=1
136
137 | tc06-9000B-2t2c-ethip6-ip6base-pdrchk
138 | | [Documentation]
139 | | ... | [Cfg] DUT runs IPv6 routing config with 2 threads, 2 phy cores,\
140 | | ... | 1 receive queue per NIC port.
141 | | ... | [Ver] Verify ref-NDR for 9000 Byte frames using single trial\
142 | | ... | throughput test at 2x ${rate}.
143 | | ...
144 | | [Tags] | 9000B | 2T2C | MTHREAD
145 | | ...
146 | | [Template] | Check PDR for IPv6 routing
147 | | framesize=${9000} | rate=138580pps | wt=2 | rxq=1
148
149 | tc07-78B-4t4c-ethip6-ip6base-pdrchk
150 | | [Documentation]
151 | | ... | [Cfg] DUT runs IPv6 routing config with 4 threads, 4 phy cores,\
152 | | ... | 2 receive queues per NIC port.
153 | | ... | [Ver] Verify ref-NDR for 78 Byte frames using single trial\
154 | | ... | throughput test at 2x ${rate}.
155 | | ...
156 | | [Tags] | 78B | 4T4C | MTHREAD
157 | | ...
158 | | [Template] | Check PDR for IPv6 routing
159 | | framesize=${78} | rate=9.4mpps | wt=4 | rxq=2
160
161 | tc08-1518B-4t4c-ethip6-ip6base-pdrchk
162 | | [Documentation]
163 | | ... | [Cfg] DUT runs IPv6 routing config with 4 threads, 4 phy cores,\
164 | | ... | 2 receive queues per NIC port.
165 | | ... | [Ver] Verify ref-NDR for 1518 Byte frames using single trial\
166 | | ... | throughput test at 2x ${rate}.
167 | | ...
168 | | [Tags] | 1518B | 4T4C | MTHREAD
169 | | ...
170 | | [Template] | Check PDR for IPv6 routing
171 | | framesize=${1518} | rate=812743pps | wt=4 | rxq=2
172
173 | tc09-9000B-4t4c-ethip6-ip6base-pdrchk
174 | | [Documentation]
175 | | ... | [Cfg] DUT runs IPv6 routing config with 4 threads, 4 phy cores,\
176 | | ... | 2 receive queues per NIC port.
177 | | ... | [Ver] Verify ref-NDR for 9000 Byte frames using single trial\
178 | | ... | throughput test at 2x ${rate}.
179 | | ...
180 | | [Tags] | 9000B | 4T4C | MTHREAD
181 | | ...
182 | | [Template] | Check PDR for IPv6 routing
183 | | framesize=${9000} | rate=138580pps | wt=4 | rxq=2