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:
6 # http://www.apache.org/licenses/LICENSE-2.0
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.
15 | Resource | resources/libraries/robot/performance/performance_setup.robot
17 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | PDRCHK
18 | ... | NIC_Intel-X520-DA2 | ETH | IP6FWD | BASE | IP6BASE
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
24 | Test Setup | Set up performance test
25 | Test Teardown | Tear down performance pdrchk test
27 | Documentation | *Reference PDR throughput IPv6 routing verify test cases*
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
45 | ... | *[Ref] Applicable standard specifications:* RFC2544.
49 | ${traffic_profile} | trex-sl-3n-ethip6-ip6src253
52 | Check PDR for IPv6 routing
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}.
59 | | [Arguments] | ${framesize} | ${rate} | ${wt} | ${rxq}
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}
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}
77 | tc01-78B-1t1c-ethip6-ip6base-pdrchk
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}.
84 | | [Tags] | 78B | 1T1C | STHREAD
86 | | [Template] | Check PDR for IPv6 routing
87 | | framesize=${78} | rate=3.9mpps | wt=1 | rxq=1
89 | tc02-1518B-1t1c-ethip6-ip6base-pdrchk
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}.
96 | | [Tags] | 1518B | 1T1C | STHREAD
98 | | [Template] | Check PDR for IPv6 routing
99 | | framesize=${1518} | rate=400000pps | wt=1 | rxq=1
101 | tc03-9000B-1t1c-ethip6-ip6base-pdrchk
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}.
108 | | [Tags] | 9000B | 1T1C | STHREAD
110 | | [Template] | Check PDR for IPv6 routing
111 | | framesize=${9000} | rate=60000pps | wt=1 | rxq=1
113 | tc04-78B-2t2c-ethip6-ip6base-pdrchk
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}.
120 | | [Tags] | 78B | 2T2C | MTHREAD
122 | | [Template] | Check PDR for IPv6 routing
123 | | framesize=${78} | rate=6.0mpps | wt=2 | rxq=1
125 | tc05-1518B-2t2c-ethip6-ip6base-pdrchk
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}.
132 | | [Tags] | 1518B | 2T2C | MTHREAD
134 | | [Template] | Check PDR for IPv6 routing
135 | | framesize=${1518} | rate=400000pps | wt=2 | rxq=1
137 | tc06-9000B-2t2c-ethip6-ip6base-pdrchk
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}.
144 | | [Tags] | 9000B | 2T2C | MTHREAD
146 | | [Template] | Check PDR for IPv6 routing
147 | | framesize=${9000} | rate=60000pps | wt=2 | rxq=1
149 | tc07-78B-4t4c-ethip6-ip6base-pdrchk
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}.
156 | | [Tags] | 78B | 4T4C | MTHREAD
158 | | [Template] | Check PDR for IPv6 routing
159 | | framesize=${78} | rate=6.1mpps | wt=4 | rxq=2
161 | tc08-1518B-4t4c-ethip6-ip6base-pdrchk
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}.
168 | | [Tags] | 1518B | 4T4C | MTHREAD
170 | | [Template] | Check PDR for IPv6 routing
171 | | framesize=${1518} | rate=400000pps | wt=4 | rxq=2
173 | tc09-9000B-4t4c-ethip6-ip6base-pdrchk
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}.
180 | | [Tags] | 9000B | 4T4C | MTHREAD
182 | | [Template] | Check PDR for IPv6 routing
183 | | framesize=${9000} | rate=60000pps | wt=4 | rxq=2