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