dcef306ce4d55622432c2fb7d86ac06cdca044c1
[vswitchperf.git] / conf / 01_testcases.conf
1 # Copyright 2015 Intel Corporation.
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #   http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 # This file describes a list of testcases.  Each testcase is described as a
16 # dictionary in a list of dictionaries.
17 #
18 # The dictionary keys, their meanings and available values are:
19 #
20 # "Name": "phy2phy_burst",         # A human-readable string identifying the
21 #                                  # test.
22 # "Traffic Type": "rfc2544",       # One of the supported traffic types.
23 #                                  # It can be overridden by cli option traffic_type.
24 #                                  # Default value is "rfc2544".
25 # "Deployment": "p2p",             # One of the supported deployment scenarios.
26 # "Description": "Lorem ipsum..."  # Optional. A human-readable string
27 #                                  # describing the test.
28 # "Frame Modification": "vlan"     # One of the supported frame modifications:
29 #                                  # vlan, mpls, mac, dscp, ttl, ip_addr,
30 #                                  # ip_port.
31 # "biDirectional": [true|false],   # Specifies if generated traffic will be
32 #                                  # full-duplex (true) or half-duplex (false)
33 #                                  # It can be overridden by cli option bidirectional.
34 #                                  # Default value is "false".
35 # "MultiStream": 0-65535           # Optional. Defines number of flows simulated
36 #                                  # by traffic generator. Value 0 disables
37 #                                  # MultiStream feature
38 #                                  # It can be overridden by cli option multistream.
39 # "Stream Type": ["L2"|"L3"|"L4"]  # Optional. Stream Type is an extension
40 #                                  # of the "MultiStream" feature. If MultiStream
41 #                                  # is disabled, then Stream Type will be ignored.
42 #                                  # Stream Type defines ISO OSI network layer
43 #                                  # used for simulation of multiple streams.
44 #                                  # It can be overridden by cli option stream_type.
45 #                                  # Values:
46 #                                  #    "L2" - iteration of destination MAC address
47 #                                  #    "L3" - iteration of destination IP address
48 #                                  #    "L4" - iteration of destination UDP port
49 #                                  # Default value is "L4".
50 # "Pre-installed Flows": ["Yes"|"No"]
51 #                                  # Optional. Pre-installed Flows is an extension
52 #                                  # of the "MultiStream" feature. If MultiStream
53 #                                  # is disabled, then Pre-installed Flows will be
54 #                                  # ignored. It defines if stream specific flows
55 #                                  # will be inserted into OVS or not.
56 #                                  # It can be overridden by cli option
57 #                                  # pre-installed_flows
58 #                                  # Values:
59 #                                  #    "Yes" - flows will be inserted into OVS
60 #                                  #    "No"  - flows won't be inserted into OVS
61 #                                  # Default value is "No".
62 # "Flow Type": ["port"|"IP"]       # Optional. Defines flows complexity. In case
63 #                                  # it isn't specified, then "port" will be used.
64 #                                  # Values:
65 #                                  #    "port" - flow is defined by ingress ports
66 #                                  #    "IP"   - flow is defined by ingress ports
67 #                                  #             and src and dst IP addresses
68 # "iLoad": 0-100                   # Optional. Defines desired percentage
69 #                                  # of frame rate used during continuous stream
70 #                                  # tests. Can be overridden by cli option
71 #                                  # iload.
72 #                                  # Default value is 100.
73 # "Load": dictionary               # Optional. Configures background load
74 #                                  # during testcase execution.
75 #   Description of "Load" dictionary keys, their meanings and available values:
76 #
77 #   "tool": "stress"               # One of the supported load generators.
78 #   "load": 0-100                  # percentage of cores which should be
79 #                                  # utilized by load generator
80 #                                  # e.g. load = 70%, detected cpu cores = 14 =>
81 #                                  # round(14*0.7)=10, i.e. 10 instances of load
82 #                                  # generator will be executed
83 #   "reserved": 0- (Default 0)     # Optional. Defines number of cores reserved
84 #                                  # for vsperf
85 #                                  # e.g. load = 80%, detected cpu cores = 14,
86 #                                  # reserved = 4 => round((14-4)*0.8)=8,
87 #                                  # i.e. 8 load gen. instances will be executed
88 #   "pattern" : "c"                # stress/stress-ng specific; Number of 'c',
89 #                                  # 'm' and 'i' defines ratio between cpu, mem
90 #                                  # and io workers respectively
91 #                                  # e.g. "ccccmmi" => ratio among workers types
92 #                                  # will be 3:2:1, so in case that 12 stress
93 #                                  # instances should be executed, then 6 cpu,
94 #                                  # 4 memory and 2 io workers will be executed
95 #   "load_memory": 0-100           # Optional. Defines percentage of the system
96 #                                  # memory, which should be utilized by memory
97 #                                  # workers (if they are part of "pattern").
98 #                                  # if not specified then default stress(-ng)
99 #                                  # value will be used
100 #   "options": ""                  # Optional. Additional command line options
101 #                                  # to be passed to the load generator.
102 # "Test Modifier": [FrameMod|Other],
103 # "Dependency": [Test_Case_Name |None],
104
105 PERFORMANCE_TESTS = [
106     {
107         "Name": "phy2phy_tput",
108         "Traffic Type": "rfc2544",
109         "Deployment": "p2p",
110         "biDirectional": "True",
111         "Description": "LTD.Throughput.RFC2544.PacketLossRatio",
112     },
113     {
114         "Name": "back2back",
115         "Traffic Type": "back2back",
116         "Deployment": "p2p",
117         "biDirectional": "True",
118         "Description": "LTD.Throughput.RFC2544.BackToBackFrames",
119     },
120     {
121         "Name": "phy2phy_tput_mod_vlan",
122         "Traffic Type": "rfc2544",
123         "Deployment": "p2p",
124         "Frame Modification": "vlan",
125         "biDirectional": "False",
126         "Description": "LTD.Throughput.RFC2544.PacketLossRatioFrameModification"
127     },
128     {
129         "Name": "phy2phy_cont",
130         "Traffic Type": "continuous",
131         "Deployment": "p2p",
132         "Description": "Phy2Phy Continuous Stream",
133         "biDirectional": "True",
134         "iLoad": "100",
135     },
136     {
137         "Name": "pvp_cont",
138         "Traffic Type": "continuous",
139         "Deployment": "pvp",
140         "Description": "PVP Continuous Stream",
141         "biDirectional": "True",
142         "iLoad": "100",
143     },
144     {
145         "Name": "pvvp_cont",
146         "Traffic Type": "continuous",
147         "Deployment": "pvvp",
148         "Description": "PVVP Continuous Stream",
149         "biDirectional": "True",
150         "iLoad": "100",
151     },
152     {
153         "Name": "phy2phy_scalability",
154         "Traffic Type": "rfc2544",
155         "Deployment": "p2p",
156         "biDirectional": "True",
157         "Description": "LTD.Scalability.RFC2544.0PacketLoss",
158         "MultiStream": "8000",
159     },
160     {
161         "Name": "pvp_tput",
162         "Traffic Type": "rfc2544",
163         "Deployment": "pvp",
164         "Description": "LTD.Throughput.RFC2544.PacketLossRatio",
165         "biDirectional": "True",
166     },
167     {
168         "Name": "pvp_back2back",
169         "Traffic Type": "back2back",
170         "Deployment": "pvp",
171         "Description": "LTD.Throughput.RFC2544.BackToBackFrames",
172         "biDirectional": "True",
173     },
174     {
175         "Name": "pvvp_tput",
176         "Traffic Type": "rfc2544",
177         "Collector": "cpu",
178         "Deployment": "pvvp",
179         "Description": "LTD.Throughput.RFC2544.PacketLossRatio",
180         "biDirectional": "True",
181     },
182     {
183         "Name": "pvvp_back2back",
184         "Traffic Type": "back2back",
185         "Collector": "cpu",
186         "Deployment": "pvvp",
187         "Description": "LTD.Throughput.RFC2544.BackToBackFrames",
188         "biDirectional": "True",
189     },
190     {
191         "Name": "phy2phy_cpu_load",
192         "Traffic Type": "rfc2544",
193         "Deployment": "p2p",
194         "biDirectional": "True",
195         "Description": "LTD.CPU.RFC2544.0PacketLoss",
196         "Load" : {
197             "tool" : "stress-ng",
198             "load" : 100,
199             "reserved" : 4,
200             "pattern" : "c",
201         }
202     },
203     {
204         "Name": "phy2phy_mem_load",
205         "Traffic Type": "rfc2544",
206         "Deployment": "p2p",
207         "biDirectional": "True",
208         "Description": "LTD.Memory.RFC2544.0PacketLoss",
209         "Load" : {
210             "tool" : "stress-ng",
211             "load" : 50,
212             "pattern" : "m",
213             "load_memory" : 80,
214         }
215     },
216
217 ]