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