Performance test cases
[csit.git] / tests / suites / performance / short_ipv4.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 | Suite Setup | 3-node Performance Suite Setup | L3
22 | Suite Teardown | 3-node Performance Suite Teardown
23 | Test Setup | Setup all DUTs before test
24 | Test Teardown | Run Keywords | Show statistics on all DUTs
25 | ...           | AND          | Reset startup configuration of VPP on all DUTs
26 | Documentation | Minimal throughput acceptance test cases
27
28 *** Test Cases ***
29 | 1core VPP passes 64B frames through IPv4 forwarding at 2x 3.5Mpps in 3-node topology
30 | | [Documentation]
31 | | ... | VPP with 1 core should pass 64B frames through IPv4 forwarding
32 | | ... | at 2x3.5Mpps in 3-node topology
33 | | [Tags] | 1_THREAD_NOHTT_RSS_1 | SINGLE_THREAD
34 | | ${framesize}= | Set Variable | 64
35 | | ${duration}= | Set Variable | 10
36 | | ${rate}= | Set Variable | 3.5mpps
37 | | Given Setup '1' worker threads and rss '1' without HTT on all DUTs
38 | | AND   IPv4 forwarding initialized in a 3-node circular topology
39 | | Then Traffic should pass with no loss | ${duration} | ${rate}
40 | | ...                                   | ${framesize} | 3-node-IPv4
41
42 | 1core VPP passes 1518B frames through IPv4 forwarding at 2x 10Gbps in 3-node topology
43 | | [Documentation]
44 | | ... | VPP with 1 core should pass 1518B frames through IPv4 forwarding
45 | | ... | at 2x10Gbps in 3-node topology
46 | | [Tags] | 1_THREAD_NOHTT_RSS_1 | SINGLE_THREAD
47 | | ${framesize}= | Set Variable | 1518
48 | | ${duration}= | Set Variable | 10
49 | | ${rate}= | Set Variable | 10gbps
50 | | Given Setup '1' worker threads and rss '1' without HTT on all DUTs
51 | | AND   IPv4 forwarding initialized in a 3-node circular topology
52 | | Then Traffic should pass with no loss | ${duration} | ${rate}
53 | | ...                                   | ${framesize} | 3-node-IPv4
54
55 | 1core VPP passes 9000B frames through IPv4 forwarding at 2x 10Gbps in 3-node topology
56 | | [Documentation]
57 | | ... | VPP with 1 core should pass 9000B frames through IPv4 forwarding
58 | | ... | at 2x10Gbps in 3-node topology
59 | | [Tags] | 1_THREAD_NOHTT_RSS_1 | SINGLE_THREAD
60 | | ${framesize}= | Set Variable | 9000
61 | | ${duration}= | Set Variable | 10
62 | | ${rate}= | Set Variable | 10gbps
63 | | Given Setup '1' worker threads and rss '1' without HTT on all DUTs
64 | | AND   IPv4 forwarding initialized in a 3-node circular topology
65 | | Then Traffic should pass with no loss | ${duration} | ${rate}
66 | | ...                                   | ${framesize} | 3-node-IPv4
67
68 | 2core VPP with rss 1 passes 64B frames through IPv4 forwarding at 2x 7.5Mpps in 3-node topology
69 | | [Documentation]
70 | | ... | VPP with 2 cores should pass 64B frames through IPv4 forwarding
71 | | ... | at 2x7.5Mpps in 3-node topology
72 | | [Tags] | 2_THREAD_NOHTT_RSS_1 | MULTI_THREAD
73 | | ${framesize}= | Set Variable | 64
74 | | ${duration}= | Set Variable | 10
75 | | ${rate}= | Set Variable | 7.5mpps
76 | | Given Setup '2' worker threads and rss '1' without HTT on all DUTs
77 | | AND   IPv4 forwarding initialized in a 3-node circular topology
78 | | Then Traffic should pass with no loss | ${duration} | ${rate}
79 | | ...                                   | ${framesize} | 3-node-IPv4
80
81 | 2core VPP with rss 1 passes 1518B frames through IPv4 forwarding at 2x 10Gbps in 3-node topology
82 | | [Documentation]
83 | | ... | VPP with 2 cores should pass 1518B frames through IPv4 forwarding
84 | | ... | at 2x10Gbps in 3-node topology
85 | | [Tags] | 2_THREAD_NOHTT_RSS_1 | MULTI_THREAD
86 | | ${framesize}= | Set Variable | 1518
87 | | ${duration}= | Set Variable | 10
88 | | ${rate}= | Set Variable | 10gbps
89 | | Given Setup '2' worker threads and rss '1' without HTT on all 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 9000B frames through IPv4 forwarding at 2x 10Gbps in 3-node topology
95 | | [Documentation]
96 | | ... | VPP with 2 cores should pass 9000B frames through IPv4 forwarding
97 | | ... | at 2x10Gbps in 3-node topology
98 | | [Tags] | 2_THREAD_NOHTT_RSS_1 | MULTI_THREAD
99 | | ${framesize}= | Set Variable | 9000
100 | | ${duration}= | Set Variable | 10
101 | | ${rate}= | Set Variable | 10gbps
102 | | Given Setup '2' worker threads and rss '1' without HTT on all DUTs
103 | | AND   IPv4 forwarding initialized in a 3-node circular topology
104 | | Then Traffic should pass with no loss | ${duration} | ${rate}
105 | | ...                                   | ${framesize} | 3-node-IPv4
106
107 | 4core VPP with rss 2 passes 64B frames through IPv4 forwarding at 2x 7.8Mpps in 3-node topology
108 | | [Documentation]
109 | | ... | VPP with 4 cores and rss 2 should pass 64B frames through IPv4
110 | | ... | forwarding at 2x7.8Mpps in 3-node topology
111 | | [Tags] | 4_THREAD_NOHTT_RSS_2 | MULTI_THREAD
112 | | ${framesize}= | Set Variable | 64
113 | | ${duration}= | Set Variable | 10
114 | | ${rate}= | Set Variable | 7.8mpps
115 | | Given Setup '4' worker threads and rss '2' without HTT on all DUTs
116 | | AND   IPv4 forwarding initialized in a 3-node circular topology
117 | | Then Traffic should pass with no loss | ${duration} | ${rate}
118 | | ...                                   | ${framesize} | 3-node-IPv4
119
120 | 4core VPP with rss 2 passes 1518B frames through IPv4 forwarding at 2x 10Gbps in 3-node topology
121 | | [Documentation]
122 | | ... | VPP with 4 cores and rss 2 should pass 1518B frames through IPv4
123 | | ... | forwarding at 2x10Gbps in 3-node topology
124 | | [Tags] | 4_THREAD_NOHTT_RSS_2 | MULTI_THREAD
125 | | ${framesize}= | Set Variable | 1518
126 | | ${duration}= | Set Variable | 10
127 | | ${rate}= | Set Variable | 10gbps
128 | | Given Setup '4' worker threads and rss '2' without HTT on all DUTs
129 | | AND   IPv4 forwarding initialized in a 3-node circular topology
130 | | Then Traffic should pass with no loss | ${duration} | ${rate}
131 | | ...                                   | ${framesize} | 3-node-IPv4
132
133 | 4core VPP with rss 2 passes 9000B frames through IPv4 forwarding at 2x 10Gbps in 3-node topology
134 | | [Documentation]
135 | | ... | VPP with 4 cores and rss 2 should pass 9000B frames through IPv4
136 | | ... | forwarding at 2x10Gbps in 3-node topology
137 | | [Tags] | 4_THREAD_NOHTT_RSS_2 | MULTI_THREAD
138 | | ${framesize}= | Set Variable | 9000
139 | | ${duration}= | Set Variable | 10
140 | | ${rate}= | Set Variable | 10gbps
141 | | Given Setup '4' worker threads and rss '2' without HTT on all DUTs
142 | | AND   IPv4 forwarding initialized in a 3-node circular topology
143 | | Then Traffic should pass with no loss | ${duration} | ${rate}
144 | | ...                                   | ${framesize} | 3-node-IPv4