Add test cases with "dpdk no-multi-seg" in vpp startup config
[csit.git] / tests / suites / performance / Short_IPv4_Intel-X520-DA2.robot
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:
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 *** Settings ***
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 Keywords | Show statistics on all DUTs
27 | ...                          | Remove startup configuration of VPP from all DUTs
28 | Documentation | Minimal throughput acceptance test cases
29
30 *** Test Cases ***
31 | 1core VPP passes 64B frames through IPv4 forwarding at 2x 3.5Mpps in 3-node topology
32 | | [Documentation]
33 | | ... | VPP with 1 core should pass 64B frames through IPv4 forwarding
34 | | ... | at 2x 3.5Mpps in 3-node topology
35 | | [Tags] | 1_THREAD_NOHTT_RSS_1 | SINGLE_THREAD
36 | | ${framesize}= | Set Variable | 64
37 | | ${duration}= | Set Variable | 10
38 | | ${rate}= | Set Variable | 3.5mpps
39 | | Given Add '1' worker threads and rss '1' without HTT to all DUTs
40 | | And   Add all PCI devices to all DUTs
41 | | And   Add No Multi Seg to all DUTs
42 | | And   Apply startup configuration on all VPP DUTs
43 | | And   IPv4 forwarding initialized in a 3-node circular topology
44 | | Then  Traffic should pass with no loss | ${duration} | ${rate}
45 | | ...                                    | ${framesize} | 3-node-IPv4
46
47 | 1core VPP passes 1518B frames through IPv4 forwarding at 2x 812,743pps in 3-node topology
48 | | [Documentation]
49 | | ... | VPP with 1 core should pass 1518B frames through IPv4 forwarding
50 | | ... | at 2x 812,743pps (2x 10Gbps) in 3-node topology
51 | | [Tags] | 1_THREAD_NOHTT_RSS_1 | SINGLE_THREAD
52 | | ${framesize}= | Set Variable | 1518
53 | | ${duration}= | Set Variable | 10
54 | | ${rate}= | Set Variable | 812743pps
55 | | Given Add '1' worker threads and rss '1' without HTT to all DUTs
56 | | And   Add all PCI devices to all DUTs
57 | | And   Add No Multi Seg to all DUTs
58 | | And   Apply startup configuration on all VPP DUTs
59 | | And   IPv4 forwarding initialized in a 3-node circular topology
60 | | Then  Traffic should pass with no loss | ${duration} | ${rate}
61 | | ...                                    | ${framesize} | 3-node-IPv4
62
63 | 1core VPP passes 9000B frames through IPv4 forwarding at 2x 138,580pps in 3-node topology
64 | | [Documentation]
65 | | ... | VPP with 1 core should pass 9000B frames through IPv4 forwarding
66 | | ... | at 2x 138,580pps (2x 10Gbps) in 3-node topology
67 | | [Tags] | 1_THREAD_NOHTT_RSS_1 | SINGLE_THREAD
68 | | ${framesize}= | Set Variable | 9000
69 | | ${duration}= | Set Variable | 10
70 | | ${rate}= | Set Variable | 138580pps
71 | | Given Add '1' worker threads and rss '1' without HTT to all DUTs
72 | | And   Add all PCI devices to all DUTs
73 | | And   Apply startup configuration on all VPP DUTs
74 | | And   IPv4 forwarding initialized in a 3-node circular topology
75 | | Then Traffic should pass with no loss | ${duration} | ${rate}
76 | | ...                                   | ${framesize} | 3-node-IPv4
77
78 | 2core VPP with rss 1 passes 64B frames through IPv4 forwarding at 2x 7.5Mpps in 3-node topology
79 | | [Documentation]
80 | | ... | VPP with 2 cores should pass 64B frames through IPv4 forwarding
81 | | ... | at 2x 7.5Mpps (2x 10Gbps) in 3-node topology
82 | | [Tags] | 2_THREAD_NOHTT_RSS_1 | MULTI_THREAD
83 | | ${framesize}= | Set Variable | 64
84 | | ${duration}= | Set Variable | 10
85 | | ${rate}= | Set Variable | 7.5mpps
86 | | Given Add '2' worker threads and rss '1' without HTT to all DUTs
87 | | And   Add all PCI devices to all DUTs
88 | | And   Add No Multi Seg to all DUTs
89 | | And   Apply startup configuration on all VPP DUTs
90 | | And   IPv4 forwarding initialized in a 3-node circular topology
91 | | Then Traffic should pass with no loss | ${duration} | ${rate}
92 | | ...                                   | ${framesize} | 3-node-IPv4
93
94 | 2core VPP with rss 1 passes 1518B frames through IPv4 forwarding at 2x 812,743pps in 3-node topology
95 | | [Documentation]
96 | | ... | VPP with 2 cores should pass 1518B frames through IPv4 forwarding
97 | | ... | at 2x 812,743pps (2x 10Gbps) in 3-node topology
98 | | [Tags] | 2_THREAD_NOHTT_RSS_1 | MULTI_THREAD
99 | | ${framesize}= | Set Variable | 1518
100 | | ${duration}= | Set Variable | 10
101 | | ${rate}= | Set Variable | 812743pps
102 | | Given Add '2' worker threads and rss '1' without HTT to all DUTs
103 | | And   Add all PCI devices to all DUTs
104 | | And   Add No Multi Seg to all DUTs
105 | | And   Apply startup configuration on all VPP DUTs
106 | | And   IPv4 forwarding initialized in a 3-node circular topology
107 | | Then Traffic should pass with no loss | ${duration} | ${rate}
108 | | ...                                   | ${framesize} | 3-node-IPv4
109
110 | 2core VPP with rss 1 passes 9000B frames through IPv4 forwarding at 2x 138,580pps in 3-node topology
111 | | [Documentation]
112 | | ... | VPP with 2 cores should pass 9000B frames through IPv4 forwarding
113 | | ... | at 2x 138,580pps (2x 10Gbps) in 3-node topology
114 | | [Tags] | 2_THREAD_NOHTT_RSS_1 | MULTI_THREAD
115 | | ${framesize}= | Set Variable | 9000
116 | | ${duration}= | Set Variable | 10
117 | | ${rate}= | Set Variable | 138580pps
118 | | Given Add '2' worker threads and rss '1' without HTT to all DUTs
119 | | And   Add all PCI devices to all DUTs
120 | | And   Apply startup configuration on all VPP DUTs
121 | | And   IPv4 forwarding initialized in a 3-node circular topology
122 | | Then Traffic should pass with no loss | ${duration} | ${rate}
123 | | ...                                   | ${framesize} | 3-node-IPv4
124
125 | 4core VPP with rss 2 passes 64B frames through IPv4 forwarding at 2x 7.8Mpps in 3-node topology
126 | | [Documentation]
127 | | ... | VPP with 4 cores and rss 2 should pass 64B frames through IPv4
128 | | ... | forwarding at 2x 7.8Mpps in 3-node topology
129 | | [Tags] | 4_THREAD_NOHTT_RSS_2 | MULTI_THREAD
130 | | ${framesize}= | Set Variable | 64
131 | | ${duration}= | Set Variable | 10
132 | | ${rate}= | Set Variable | 7.8mpps
133 | | Given Add '4' worker threads and rss '2' without HTT to all DUTs
134 | | And   Add all PCI devices to all DUTs
135 | | And   Add No Multi Seg to all DUTs
136 | | And   Apply startup configuration on all VPP DUTs
137 | | And   IPv4 forwarding initialized in a 3-node circular topology
138 | | Then Traffic should pass with no loss | ${duration} | ${rate}
139 | | ...                                   | ${framesize} | 3-node-IPv4
140
141 | 4core VPP with rss 2 passes 1518B frames through IPv4 forwarding at 2x 812,743pps in 3-node topology
142 | | [Documentation]
143 | | ... | VPP with 4 cores and rss 2 should pass 1518B frames through IPv4
144 | | ... | forwarding at 2x 812,743pps (2x 10Gbps) in 3-node topology
145 | | [Tags] | 4_THREAD_NOHTT_RSS_2 | MULTI_THREAD
146 | | ${framesize}= | Set Variable | 1518
147 | | ${duration}= | Set Variable | 10
148 | | ${rate}= | Set Variable | 812743pps
149 | | Given Add '4' worker threads and rss '2' without HTT to all DUTs
150 | | And   Add all PCI devices to all DUTs
151 | | And   Add No Multi Seg to all DUTs
152 | | And   Apply startup configuration on all VPP DUTs
153 | | And   IPv4 forwarding initialized in a 3-node circular topology
154 | | Then Traffic should pass with no loss | ${duration} | ${rate}
155 | | ...                                   | ${framesize} | 3-node-IPv4
156
157 | 4core VPP with rss 2 passes 9000B frames through IPv4 forwarding at 2x 138,580pps in 3-node topology
158 | | [Documentation]
159 | | ... | VPP with 4 cores and rss 2 should pass 9000B frames through IPv4
160 | | ... | forwarding at 2x 138,580pps (2x 10Gbps) in 3-node topology
161 | | [Tags] | 4_THREAD_NOHTT_RSS_2 | MULTI_THREAD
162 | | ${framesize}= | Set Variable | 9000
163 | | ${duration}= | Set Variable | 10
164 | | ${rate}= | Set Variable | 138580pps
165 | | Given Add '4' worker threads and rss '2' without HTT to all DUTs
166 | | And   Add all PCI devices to all DUTs
167 | | And   Apply startup configuration on all VPP DUTs
168 | | And   IPv4 forwarding initialized in a 3-node circular topology
169 | | Then Traffic should pass with no loss | ${duration} | ${rate}
170 | | ...                                   | ${framesize} | 3-node-IPv4