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