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 | NDRCHK
18 | ... | NIC_Intel-X520-DA2 | ETH | IP4FWD | BASE | IP4BASE
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 ndrchk test
27 | Documentation | *Reference NDR throughput IPv4 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-IPv4 for IPv4 routing.
32 | ... | *[Cfg] DUT configuration:* DUT1 and DUT2 are configured with IPv4
33 | ... | routing and two static IPv4 /24 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, IPv4 header with IP protocol=61
43 | ... | and static payload. MAC addresses are matching MAC addresses of the
44 | ... | TG node interfaces.
45 | ... | *[Ref] Applicable standard specifications:* RFC2544.
49 | ${traffic_profile} | trex-sl-3n-ethip4-ip4src253
52 | Check NDR for ethip4-ip4base
54 | | ... | [Cfg] DUT runs IPv4 routing config with ${wt} thread(s), ${wt}\
55 | | ... | phy core(s), ${rxq} receive queue(s) per NIC port.
56 | | ... | [Ver] Verify ref-NDR for ${framesize} frames using single trial\
57 | | ... | throughput test at 2x ${rate}.
59 | | [Arguments] | ${framesize} | ${rate} | ${wt} | ${rxq}
61 | | # Test Variables required for 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 IPv4 forwarding in 3-node circular topology
72 | | Then Traffic should pass with no loss | ${perf_trial_duration}
73 | | ... | ${rate} | ${framesize} | ${traffic_profile}
76 | tc01-64B-1t1c-ethip4-ip4base-ndrchk
78 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core, \
79 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 64 Byte
80 | | ... | frames using single trial throughput test at 2x 4.6mpps.
81 | | [Tags] | 64B | 1T1C | STHREAD
83 | | [Template] | Check NDR for ethip4-ip4base
84 | | framesize=${64} | rate=4.6mpps | wt=1 | rxq=1
86 | tc02-1518B-1t1c-ethip4-ip4base-ndrchk
88 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core, \
89 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 1518 Byte
90 | | ... | frames using single trial throughput test at 2x 812743pps.
91 | | [Tags] | 1518B | 1T1C | STHREAD
93 | | [Template] | Check NDR for ethip4-ip4base
94 | | framesize=${1518} | rate=812743pps | wt=1 | rxq=1
96 | tc03-9000B-1t1c-ethip4-ip4base-ndrchk
98 | | ... | [Cfg] DUT runs IPv4 routing config with 1 thread, 1 phy core, \
99 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 9000 Byte
100 | | ... | frames using single trial throughput test at 2x 138580pps.
101 | | [Tags] | 9000B | 1T1C | STHREAD
103 | | [Template] | Check NDR for ethip4-ip4base
104 | | framesize=${9000} | rate=138580pps | wt=1 | rxq=1
106 | tc04-64B-2t2c-ethip4-ip4base-ndrchk
108 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores, \
109 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 64 Byte
110 | | ... | frames using single trial throughput test at 2x 9.4mpps.
111 | | [Tags] | 64B | 2T2C | MTHREAD
113 | | [Template] | Check NDR for ethip4-ip4base
114 | | framesize=${64} | rate=9.4mpps | wt=2 | rxq=1
116 | tc05-1518B-2t2c-ethip4-ip4base-ndrchk
118 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores, \
119 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 1518 Byte
120 | | ... | frames using single trial throughput test at 2x 812743pps.
121 | | [Tags] | 1518B | 2T2C | MTHREAD
123 | | [Template] | Check NDR for ethip4-ip4base
124 | | framesize=${1518} | rate=812743pps | wt=2 | rxq=1
126 | tc06-9000B-2t2c-ethip4-ip4base-ndrchk
128 | | ... | [Cfg] DUT runs IPv4 routing config with 2 threads, 2 phy cores, \
129 | | ... | 1 receive queue per NIC port. [Ver] Verify ref-NDR for 9000 Byte
130 | | ... | frames using single trial throughput test at 2x 138580pps.
131 | | [Tags] | 9000B | 2T2C | MTHREAD
133 | | [Template] | Check NDR for ethip4-ip4base
134 | | framesize=${9000} | rate=138580pps | wt=2 | rxq=1
136 | tc07-64B-4t4c-ethip4-ip4base-ndrchk
138 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores, \
139 | | ... | 2 receive queues per NIC port. [Ver] Verify ref-NDR for 64 Byte
140 | | ... | frames using single trial throughput test at 2x 10.4mpps.
141 | | [Tags] | 64B | 4T4C | MTHREAD
143 | | [Template] | Check NDR for ethip4-ip4base
144 | | framesize=${64} | rate=10.4mpps | wt=4 | rxq=2
146 | tc08-1518B-4t4c-ethip4-ip4base-ndrchk
148 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores, \
149 | | ... | 2 receive queues per NIC port. [Ver] Verify ref-NDR for 1518 Byte
150 | | ... | frames using single trial throughput test at 2x 812743pps.
151 | | [Tags] | 1518B | 4T4C | MTHREAD
153 | | [Template] | Check NDR for ethip4-ip4base
154 | | framesize=${1518} | rate=812743pps | wt=4 | rxq=2
156 | tc09-9000B-4t4c-ethip4-ip4base-ndrchk
158 | | ... | [Cfg] DUT runs IPv4 routing config with 4 threads, 4 phy cores, \
159 | | ... | 2 receive queues per NIC port. [Ver] Verify ref-NDR for 9000 Byte
160 | | ... | frames using single trial throughput test at 2x 138580pps.
161 | | [Tags] | 9000B | 4T4C | MTHREAD
163 | | [Template] | Check NDR for ethip4-ip4base
164 | | framesize=${9000} | rate=138580pps | wt=4 | rxq=2