Multicore VPP setup for performance testing
[csit.git] / tests / suites / performance / short_bridge_domain.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.NodePath
16 | Force Tags | 3_NODE_SINGLE_LINK_TOPO | PERFTEST | HW_ENV | PERFTEST_SHORT
17 | Suite Setup | 3-node Performance Suite Setup | L2
18 | Suite Teardown | 3-node Performance Suite Teardown
19 | Test Setup | Setup all DUTs before test
20 | Test Teardown | Run Keywords | Show statistics on all DUTs
21 | ...           | AND          | Reset startup configuration of VPP on all DUTs
22 | Documentation | Minimal throughput acceptance test cases
23
24 *** Test Cases ***
25 | 1core VPP passes 64B frames through bridge domain at 2x 3.5Mpps in 3-node topology
26 | | [Documentation]
27 | | ... | VPP with 1 core should pass 64B frames through bridge domain
28 | | ... | at 2x3.5Mpps in 3-node topology
29 | | [Tags] | 1_THREAD_NOHTT_RSS_1 | SINGLE_THREAD
30 | | # Variables
31 | | ${framesize}= | Set Variable | 64
32 | | ${duration}= | Set Variable | 10
33 | | ${rate}= | Set Variable | 3.5mpps
34 | | # VPP setup
35 | | Given Setup '1' worker threads and rss '1' without HTT on all DUTs
36 | | AND   L2 bridge domain initialized in a 3-node circular topology
37 | | # Sent traffic with specified rate
38 | | Then Traffic should pass with no loss | ${duration} | ${rate}
39 | | ...                                   | ${framesize} | 3-node-bridge
40
41 | 1core VPP passes 1518B frames through bridge domain at 2x 10Gbps in 3-node topology
42 | | [Documentation]
43 | | ... | VPP with 1 core should pass 1518B frames through bridge domain
44 | | ... | at 2x10Gbps in 3-node topology
45 | | [Tags] | 1_THREAD_NOHTT_RSS_1 | SINGLE_THREAD
46 | | # Variables
47 | | ${framesize}= | Set Variable | 1518
48 | | ${duration}= | Set Variable | 10
49 | | ${rate}= | Set Variable | 10gbps
50 | | # VPP setup
51 | | Given Setup '1' worker threads and rss '1' without HTT on all DUTs
52 | | AND   L2 bridge domain initialized in a 3-node circular topology
53 | | # Sent traffic with specified rate
54 | | Then Traffic should pass with no loss | ${duration} | ${rate}
55 | | ...                                   | ${framesize} | 3-node-bridge
56
57 | 1core VPP passes 9000B frames through bridge domain at 2x 10Gbps in 3-node topology
58 | | [Documentation]
59 | | ... | VPP with 1 core should pass 9000B frames through bridge domain
60 | | ... | at 2x10Gbps in 3-node topology
61 | | [Tags] | 1_THREAD_NOHTT_RSS_1 | SINGLE_THREAD
62 | | # Variables
63 | | ${framesize}= | Set Variable | 9000
64 | | ${duration}= | Set Variable | 10
65 | | ${rate}= | Set Variable | 10gbps
66 | | # VPP setup
67 | | Given Setup '1' worker threads and rss '1' without HTT on all DUTs
68 | | AND   L2 bridge domain initialized in a 3-node circular topology
69 | | # Sent traffic with specified rate
70 | | Then Traffic should pass with no loss | ${duration} | ${rate}
71 | | ...                                   | ${framesize} | 3-node-bridge
72
73 | 2core VPP with rss 1 passes 64B frames through bridge domain at 2x 7.6Mpps in 3-node topology
74 | | [Documentation]
75 | | ... | VPP with 2 cores should pass 64B frames through bridge domain
76 | | ... | at 2x7.6Mpps in 3-node topology
77 | | [Tags] | 2_THREAD_NOHTT_RSS_1 | MULTI_THREAD
78 | | # Variables
79 | | ${framesize}= | Set Variable | 64
80 | | ${duration}= | Set Variable | 10
81 | | ${rate}= | Set Variable | 7.6mpps
82 | | # VPP setup
83 | | Given Setup '2' worker threads and rss '1' without HTT on all DUTs
84 | | AND   L2 bridge domain initialized in a 3-node circular topology
85 | | # Sent traffic with specified rate
86 | | Then Traffic should pass with no loss | ${duration} | ${rate}
87 | | ...                                   | ${framesize} | 3-node-bridge
88
89 | 4core VPP with rss 2 passes 64B frames through bridge domain at 2x 8.6Mpps in 3-node topology
90 | | [Documentation]
91 | | ... | VPP with 4 cores and rss 2 should pass 64B frames through bridge
92 | | ... | domain at 2x8.6Mpps in 3-node topology
93 | | [Tags] | 4_THREAD_NOHTT_RSS_2 | MULTI_THREAD
94 | | # Variables
95 | | ${framesize}= | Set Variable | 64
96 | | ${duration}= | Set Variable | 10
97 | | ${rate}= | Set Variable | 8.6mpps
98 | | # VPP setup
99 | | Given Setup '4' worker threads and rss '2' without HTT on all DUTs
100 | | AND   L2 bridge domain initialized in a 3-node circular topology
101 | | # Sent traffic with specified rate
102 | | Then Traffic should pass with no loss | ${duration} | ${rate}
103 | | ...                                   | ${framesize} | 3-node-bridge