1 # Copyright (c) 2016 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.
14 | Resource | resources/libraries/robot/performance.robot
15 | Library | resources.libraries.python.topology.Topology
16 | Library | resources.libraries.python.NodePath
17 | Library | resources.libraries.python.InterfaceUtil
18 | Library | resources.libraries.python.IPv4Setup.Dut | ${nodes['DUT1']} | WITH NAME | dut1_v4
19 | Library | resources.libraries.python.IPv4Setup.Dut | ${nodes['DUT2']} | WITH NAME | dut2_v4
20 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | PERFTEST_SHORT
21 | ... | NIC_Intel-X520-DA2
22 | Suite Setup | 3-node Performance Suite Setup with DUT's NIC model
23 | ... | L3 | Intel-X520-DA2
24 | Suite Teardown | 3-node Performance Suite Teardown
25 | Test Setup | Setup all DUTs before test
26 | Test Teardown | Run Keyword | Remove startup configuration of VPP from all DUTs
27 | Documentation | Minimal throughput acceptance test cases
30 | 1core VPP passes 64B frames through IPv4 forwarding at 2x 3.5Mpps in 3-node topology
32 | | ... | VPP with 1 core should pass 64B frames through IPv4 forwarding
33 | | ... | at 2x 3.5Mpps in 3-node topology
34 | | [Tags] | 1_THREAD_NOHTT_RSS_1 | SINGLE_THREAD
35 | | ${framesize}= | Set Variable | 64
36 | | ${duration}= | Set Variable | 10
37 | | ${rate}= | Set Variable | 3.5mpps
38 | | Given Add '1' worker threads and rss '1' without HTT to all DUTs
39 | | And Add all PCI devices to all DUTs
40 | | And Add No Multi Seg to all DUTs
41 | | And Apply startup configuration on all VPP DUTs
42 | | And IPv4 forwarding initialized in a 3-node circular topology
43 | | Then Traffic should pass with no loss | ${duration} | ${rate}
44 | | ... | ${framesize} | 3-node-IPv4
46 | 1core VPP passes 1518B frames through IPv4 forwarding at 2x 812,743pps in 3-node topology
48 | | ... | VPP with 1 core should pass 1518B frames through IPv4 forwarding
49 | | ... | at 2x 812,743pps (2x 10Gbps) in 3-node topology
50 | | [Tags] | 1_THREAD_NOHTT_RSS_1 | SINGLE_THREAD
51 | | ${framesize}= | Set Variable | 1518
52 | | ${duration}= | Set Variable | 10
53 | | ${rate}= | Set Variable | 812743pps
54 | | Given Add '1' worker threads and rss '1' without HTT to all DUTs
55 | | And Add all PCI devices to all DUTs
56 | | And Add No Multi Seg to all DUTs
57 | | And Apply startup configuration on all VPP DUTs
58 | | And IPv4 forwarding initialized in a 3-node circular topology
59 | | Then Traffic should pass with no loss | ${duration} | ${rate}
60 | | ... | ${framesize} | 3-node-IPv4
62 | 1core VPP passes 9000B frames through IPv4 forwarding at 2x 138,580pps in 3-node topology
64 | | ... | VPP with 1 core should pass 9000B frames through IPv4 forwarding
65 | | ... | at 2x 138,580pps (2x 10Gbps) in 3-node topology
66 | | [Tags] | 1_THREAD_NOHTT_RSS_1 | SINGLE_THREAD
67 | | ${framesize}= | Set Variable | 9000
68 | | ${duration}= | Set Variable | 10
69 | | ${rate}= | Set Variable | 138580pps
70 | | Given Add '1' worker threads and rss '1' without HTT to all DUTs
71 | | And Add all PCI devices to all DUTs
72 | | And Apply startup configuration on all VPP DUTs
73 | | And IPv4 forwarding initialized in a 3-node circular topology
74 | | Then Traffic should pass with no loss | ${duration} | ${rate}
75 | | ... | ${framesize} | 3-node-IPv4
77 | 2core VPP with rss 1 passes 64B frames through IPv4 forwarding at 2x 7.5Mpps in 3-node topology
79 | | ... | VPP with 2 cores should pass 64B frames through IPv4 forwarding
80 | | ... | at 2x 7.5Mpps (2x 10Gbps) in 3-node topology
81 | | [Tags] | 2_THREAD_NOHTT_RSS_1 | MULTI_THREAD
82 | | ${framesize}= | Set Variable | 64
83 | | ${duration}= | Set Variable | 10
84 | | ${rate}= | Set Variable | 7.5mpps
85 | | Given Add '2' worker threads and rss '1' without HTT to all DUTs
86 | | And Add all PCI devices to all DUTs
87 | | And Add No Multi Seg to all DUTs
88 | | And Apply startup configuration on all VPP DUTs
89 | | And IPv4 forwarding initialized in a 3-node circular topology
90 | | Then Traffic should pass with no loss | ${duration} | ${rate}
91 | | ... | ${framesize} | 3-node-IPv4
93 | 2core VPP with rss 1 passes 1518B frames through IPv4 forwarding at 2x 812,743pps in 3-node topology
95 | | ... | VPP with 2 cores should pass 1518B frames through IPv4 forwarding
96 | | ... | at 2x 812,743pps (2x 10Gbps) in 3-node topology
97 | | [Tags] | 2_THREAD_NOHTT_RSS_1 | MULTI_THREAD
98 | | ${framesize}= | Set Variable | 1518
99 | | ${duration}= | Set Variable | 10
100 | | ${rate}= | Set Variable | 812743pps
101 | | Given Add '2' worker threads and rss '1' without HTT to all DUTs
102 | | And Add all PCI devices to all DUTs
103 | | And Add No Multi Seg to all DUTs
104 | | And Apply startup configuration on all VPP DUTs
105 | | And IPv4 forwarding initialized in a 3-node circular topology
106 | | Then Traffic should pass with no loss | ${duration} | ${rate}
107 | | ... | ${framesize} | 3-node-IPv4
109 | 2core VPP with rss 1 passes 9000B frames through IPv4 forwarding at 2x 138,580pps in 3-node topology
111 | | ... | VPP with 2 cores should pass 9000B frames through IPv4 forwarding
112 | | ... | at 2x 138,580pps (2x 10Gbps) in 3-node topology
113 | | [Tags] | 2_THREAD_NOHTT_RSS_1 | MULTI_THREAD
114 | | ${framesize}= | Set Variable | 9000
115 | | ${duration}= | Set Variable | 10
116 | | ${rate}= | Set Variable | 138580pps
117 | | Given Add '2' worker threads and rss '1' without HTT to all DUTs
118 | | And Add all PCI devices to all DUTs
119 | | And Apply startup configuration on all VPP DUTs
120 | | And IPv4 forwarding initialized in a 3-node circular topology
121 | | Then Traffic should pass with no loss | ${duration} | ${rate}
122 | | ... | ${framesize} | 3-node-IPv4
124 | 4core VPP with rss 2 passes 64B frames through IPv4 forwarding at 2x 7.8Mpps in 3-node topology
126 | | ... | VPP with 4 cores and rss 2 should pass 64B frames through IPv4
127 | | ... | forwarding at 2x 7.8Mpps in 3-node topology
128 | | [Tags] | 4_THREAD_NOHTT_RSS_2 | MULTI_THREAD
129 | | ${framesize}= | Set Variable | 64
130 | | ${duration}= | Set Variable | 10
131 | | ${rate}= | Set Variable | 7.8mpps
132 | | Given Add '4' worker threads and rss '2' without HTT to all DUTs
133 | | And Add all PCI devices to all DUTs
134 | | And Add No Multi Seg to all DUTs
135 | | And Apply startup configuration on all VPP DUTs
136 | | And IPv4 forwarding initialized in a 3-node circular topology
137 | | Then Traffic should pass with no loss | ${duration} | ${rate}
138 | | ... | ${framesize} | 3-node-IPv4
140 | 4core VPP with rss 2 passes 1518B frames through IPv4 forwarding at 2x 812,743pps in 3-node topology
142 | | ... | VPP with 4 cores and rss 2 should pass 1518B frames through IPv4
143 | | ... | forwarding at 2x 812,743pps (2x 10Gbps) in 3-node topology
144 | | [Tags] | 4_THREAD_NOHTT_RSS_2 | MULTI_THREAD
145 | | ${framesize}= | Set Variable | 1518
146 | | ${duration}= | Set Variable | 10
147 | | ${rate}= | Set Variable | 812743pps
148 | | Given Add '4' worker threads and rss '2' without HTT to all DUTs
149 | | And Add all PCI devices to all DUTs
150 | | And Add No Multi Seg to all DUTs
151 | | And Apply startup configuration on all VPP DUTs
152 | | And IPv4 forwarding initialized in a 3-node circular topology
153 | | Then Traffic should pass with no loss | ${duration} | ${rate}
154 | | ... | ${framesize} | 3-node-IPv4
156 | 4core VPP with rss 2 passes 9000B frames through IPv4 forwarding at 2x 138,580pps in 3-node topology
158 | | ... | VPP with 4 cores and rss 2 should pass 9000B frames through IPv4
159 | | ... | forwarding at 2x 138,580pps (2x 10Gbps) in 3-node topology
160 | | [Tags] | 4_THREAD_NOHTT_RSS_2 | MULTI_THREAD
161 | | ${framesize}= | Set Variable | 9000
162 | | ${duration}= | Set Variable | 10
163 | | ${rate}= | Set Variable | 138580pps
164 | | Given Add '4' worker threads and rss '2' without HTT to all DUTs
165 | | And Add all PCI devices to all DUTs
166 | | And Apply startup configuration on all VPP DUTs
167 | | And IPv4 forwarding initialized in a 3-node circular topology
168 | | Then Traffic should pass with no loss | ${duration} | ${rate}
169 | | ... | ${framesize} | 3-node-IPv4