b4ac600dbb80a1688a781b61aebf30e365e05211
[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.2Mpps in 3-node topology
26 | | [Documentation]
27 | | ... | VPP with 1 core should pass 64B frames through bridge domain
28 | | ... | at 2x3.2Mpps in 3-node topology
29 | | [Tags] | 1_THREAD_NOHTT_RSS_1 | SINGLE_THREAD
30 | | ${framesize}= | Set Variable | 64
31 | | ${duration}= | Set Variable | 10
32 | | ${rate}= | Set Variable | 3.2mpps
33 | | Given Setup '1' worker threads and rss '1' without HTT on all DUTs
34 | | AND   L2 bridge domain initialized in a 3-node circular topology
35 | | Then Traffic should pass with no loss | ${duration} | ${rate}
36 | | ...                                   | ${framesize} | 3-node-bridge
37
38 | 1core VPP passes 1518B frames through bridge domain at 2x 10Gbps in 3-node topology
39 | | [Documentation]
40 | | ... | VPP with 1 core should pass 1518B frames through bridge domain
41 | | ... | at 2x10Gbps in 3-node topology
42 | | [Tags] | 1_THREAD_NOHTT_RSS_1 | SINGLE_THREAD
43 | | ${framesize}= | Set Variable | 1518
44 | | ${duration}= | Set Variable | 10
45 | | ${rate}= | Set Variable | 10gbps
46 | | Given Setup '1' worker threads and rss '1' without HTT on all DUTs
47 | | AND   L2 bridge domain initialized in a 3-node circular topology
48 | | Then Traffic should pass with no loss | ${duration} | ${rate}
49 | | ...                                   | ${framesize} | 3-node-bridge
50
51 | 1core VPP passes 9000B frames through bridge domain at 2x 10Gbps in 3-node topology
52 | | [Documentation]
53 | | ... | VPP with 1 core should pass 9000B frames through bridge domain
54 | | ... | at 2x10Gbps in 3-node topology
55 | | [Tags] | 1_THREAD_NOHTT_RSS_1 | SINGLE_THREAD
56 | | ${framesize}= | Set Variable | 9000
57 | | ${duration}= | Set Variable | 10
58 | | ${rate}= | Set Variable | 10gbps
59 | | Given Setup '1' worker threads and rss '1' without HTT on all DUTs
60 | | AND   L2 bridge domain initialized in a 3-node circular topology
61 | | Then Traffic should pass with no loss | ${duration} | ${rate}
62 | | ...                                   | ${framesize} | 3-node-bridge
63
64 | 2core VPP with rss 1 passes 64B frames through bridge domain at 2x 6.9Mpps in 3-node topology
65 | | [Documentation]
66 | | ... | VPP with 2 cores should pass 64B frames through bridge domain
67 | | ... | at 2x6.9Mpps in 3-node topology
68 | | [Tags] | 2_THREAD_NOHTT_RSS_1 | MULTI_THREAD
69 | | ${framesize}= | Set Variable | 64
70 | | ${duration}= | Set Variable | 10
71 | | ${rate}= | Set Variable | 6.9mpps
72 | | Given Setup '2' worker threads and rss '1' without HTT on all DUTs
73 | | AND   L2 bridge domain initialized in a 3-node circular topology
74 | | Then Traffic should pass with no loss | ${duration} | ${rate}
75 | | ...                                   | ${framesize} | 3-node-bridge
76
77 | 2core VPP with rss 1 passes 1518B frames through bridge domain at 2x 10Gbps in 3-node topology
78 | | [Documentation]
79 | | ... | VPP with 2 cores should pass 1518B frames through bridge domain
80 | | ... | at 2x10Gbps in 3-node topology
81 | | [Tags] | 2_THREAD_NOHTT_RSS_1 | MULTI_THREAD
82 | | ${framesize}= | Set Variable | 1518
83 | | ${duration}= | Set Variable | 10
84 | | ${rate}= | Set Variable | 10gbps
85 | | Given Setup '2' worker threads and rss '1' without HTT on all DUTs
86 | | AND   L2 bridge domain initialized in a 3-node circular topology
87 | | Then Traffic should pass with no loss | ${duration} | ${rate}
88 | | ...                                   | ${framesize} | 3-node-bridge
89
90 | 2core VPP with rss 1 passes 9000B frames through bridge domain at 2x 10Gbps in 3-node topology
91 | | [Documentation]
92 | | ... | VPP with 2 cores should pass 9000B frames through bridge domain
93 | | ... | at 2x10Gbps in 3-node topology
94 | | [Tags] | 2_THREAD_NOHTT_RSS_1 | MULTI_THREAD
95 | | ${framesize}= | Set Variable | 9000
96 | | ${duration}= | Set Variable | 10
97 | | ${rate}= | Set Variable | 10gbps
98 | | Given Setup '2' worker threads and rss '1' without HTT on all DUTs
99 | | AND   L2 bridge domain initialized in a 3-node circular topology
100 | | Then Traffic should pass with no loss | ${duration} | ${rate}
101 | | ...                                   | ${framesize} | 3-node-bridge
102
103 | 4core VPP with rss 2 passes 64B frames through bridge domain at 2x 7.4Mpps in 3-node topology
104 | | [Documentation]
105 | | ... | VPP with 4 cores and rss 2 should pass 64B frames through bridge
106 | | ... | domain at 2x7.4Mpps in 3-node topology
107 | | [Tags] | 4_THREAD_NOHTT_RSS_2 | MULTI_THREAD
108 | | ${framesize}= | Set Variable | 64
109 | | ${duration}= | Set Variable | 10
110 | | ${rate}= | Set Variable | 7.4mpps
111 | | Given Setup '4' worker threads and rss '2' without HTT on all DUTs
112 | | AND   L2 bridge domain initialized in a 3-node circular topology
113 | | Then Traffic should pass with no loss | ${duration} | ${rate}
114 | | ...                                   | ${framesize} | 3-node-bridge
115
116 | 4core VPP with rss 2 passes 1518B frames through bridge domain at 2x 10Gbps in 3-node topology
117 | | [Documentation]
118 | | ... | VPP with 4 cores and rss 2 should pass 1518B frames through bridge
119 | | ... | domain at 2x10Gbps in 3-node topology
120 | | [Tags] | 4_THREAD_NOHTT_RSS_2 | MULTI_THREAD
121 | | ${framesize}= | Set Variable | 1518
122 | | ${duration}= | Set Variable | 10
123 | | ${rate}= | Set Variable | 10gbps
124 | | Given Setup '4' worker threads and rss '2' without HTT on all DUTs
125 | | AND   L2 bridge domain initialized in a 3-node circular topology
126 | | Then Traffic should pass with no loss | ${duration} | ${rate}
127 | | ...                                   | ${framesize} | 3-node-bridge
128
129 | 4core VPP with rss 2 passes 9000B frames through bridge domain at 2x 10Gbps in 3-node topology
130 | | [Documentation]
131 | | ... | VPP with 4 cores and rss 2should pass 9000B frames through bridge
132 | | ... | domain at 2x10Gbps in 3-node topology
133 | | [Tags] | 4_THREAD_NOHTT_RSS_2 | MULTI_THREAD
134 | | ${framesize}= | Set Variable | 9000
135 | | ${duration}= | Set Variable | 10
136 | | ${rate}= | Set Variable | 10gbps
137 | | Given Setup '4' worker threads and rss '2' without HTT on all DUTs
138 | | AND   L2 bridge domain initialized in a 3-node circular topology
139 | | Then Traffic should pass with no loss | ${duration} | ${rate}
140 | | ...                                   | ${framesize} | 3-node-bridge