integration: Support of PVP and PVVP integration TCs
[vswitchperf.git] / conf / 01_testcases.conf
1 # Copyright 2015-2016 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 port
49 #                                  #           of selected transport protocol
50 #                                  # Default value is "L4".
51 # "Pre-installed Flows": ["Yes"|"No"]
52 #                                  # Optional. Pre-installed Flows is an extension
53 #                                  # of the "MultiStream" feature. If MultiStream
54 #                                  # is disabled, then Pre-installed Flows will be
55 #                                  # ignored. It defines if stream specific flows
56 #                                  # will be inserted into OVS or not.
57 #                                  # It can be overridden by cli option
58 #                                  # pre-installed_flows
59 #                                  # Values:
60 #                                  #    "Yes" - flows will be inserted into OVS
61 #                                  #    "No"  - flows won't be inserted into OVS
62 #                                  # Default value is "No".
63 # "Flow Type": ["port"|"IP"]       # Optional. Defines flows complexity. In case
64 #                                  # it isn't specified, then "port" will be used.
65 #                                  # Values:
66 #                                  #    "port" - flow is defined by ingress ports
67 #                                  #    "IP"   - flow is defined by ingress ports
68 #                                  #             and src and dst IP addresses
69 # "iLoad": 0-100                   # Optional. Defines desired percentage
70 #                                  # of frame rate used during continuous stream
71 #                                  # tests. Can be overridden by cli option
72 #                                  # iload.
73 #                                  # Default value is 100.
74 # "Load": dictionary               # Optional. Configures background load
75 #                                  # during testcase execution.
76 #   Description of "Load" dictionary keys, their meanings and available values:
77 #
78 #   "tool": "stress"               # One of the supported load generators.
79 #   "load": 0-100                  # percentage of cores which should be
80 #                                  # utilized by load generator
81 #                                  # e.g. load = 70%, detected cpu cores = 14 =>
82 #                                  # round(14*0.7)=10, i.e. 10 instances of load
83 #                                  # generator will be executed
84 #   "reserved": 0- (Default 0)     # Optional. Defines number of cores reserved
85 #                                  # for vsperf
86 #                                  # e.g. load = 80%, detected cpu cores = 14,
87 #                                  # reserved = 4 => round((14-4)*0.8)=8,
88 #                                  # i.e. 8 load gen. instances will be executed
89 #   "pattern" : "c"                # stress/stress-ng specific; Number of 'c',
90 #                                  # 'm' and 'i' defines ratio between cpu, mem
91 #                                  # and io workers respectively
92 #                                  # e.g. "ccccmmi" => ratio among workers types
93 #                                  # will be 3:2:1, so in case that 12 stress
94 #                                  # instances should be executed, then 6 cpu,
95 #                                  # 4 memory and 2 io workers will be executed
96 #   "load_memory": 0-100           # Optional. Defines percentage of the system
97 #                                  # memory, which should be utilized by memory
98 #                                  # workers (if they are part of "pattern").
99 #                                  # if not specified then default stress(-ng)
100 #                                  # value will be used
101 #   "options": ""                  # Optional. Additional command line options
102 #                                  # to be passed to the load generator.
103 # "vSwitch" : "OvsVanilla"         # Defines vSwitch to be used for test execution.
104 #                                  # It will override any VSWITCH option stated
105 #                                  # in configuration files or value specified
106 #                                  # on command line through --vswitch parameter.
107 # "VNF" : "QemuVirtioNet"          # Defines VNF to be used for test execution.
108 #                                  # It will override any VNF option stated
109 #                                  # in configuration files or value specified
110 #                                  # on command line through --vnf parameter.
111 # "Trafficgen" : "Dummy"           # Defines traffic generator to be used for test
112 #                                  # execution. It will override any VNF option
113 #                                  # stated in configuration files or value
114 #                                  # specified on command line through --trafficgen
115 #                                  # parameter.
116 # "Parameters" : "pkt_sizes=512"   # Defines list of test parameters used for test
117 #                                  # execution. It will override any values defined
118 #                                  # by TEST_PARAMS option stated in configuration
119 #                                  # files or values specified on command line through
120 #                                  # --test-params parameter.
121 # "Test Modifier": [FrameMod|Other],
122 # "Dependency": [Test_Case_Name |None],
123
124 PERFORMANCE_TESTS = [
125     {
126         "Name": "phy2phy_tput",
127         "Traffic Type": "rfc2544",
128         "Deployment": "p2p",
129         "biDirectional": "True",
130         "Description": "LTD.Throughput.RFC2544.PacketLossRatio",
131     },
132     {
133         "Name": "back2back",
134         "Traffic Type": "back2back",
135         "Deployment": "p2p",
136         "biDirectional": "True",
137         "Description": "LTD.Throughput.RFC2544.BackToBackFrames",
138     },
139     {
140         "Name": "phy2phy_tput_mod_vlan",
141         "Traffic Type": "rfc2544",
142         "Deployment": "p2p",
143         "Frame Modification": "vlan",
144         "biDirectional": "False",
145         "Description": "LTD.Throughput.RFC2544.PacketLossRatioFrameModification"
146     },
147     {
148         "Name": "phy2phy_cont",
149         "Traffic Type": "continuous",
150         "Deployment": "p2p",
151         "Description": "Phy2Phy Continuous Stream",
152         "biDirectional": "True",
153         "iLoad": "100",
154     },
155     {
156         "Name": "pvp_cont",
157         "Traffic Type": "continuous",
158         "Deployment": "pvp",
159         "Description": "PVP Continuous Stream",
160         "biDirectional": "True",
161         "iLoad": "100",
162     },
163     {
164         "Name": "pvvp_cont",
165         "Traffic Type": "continuous",
166         "Deployment": "pvvp",
167         "Description": "PVVP Continuous Stream",
168         "biDirectional": "True",
169         "iLoad": "100",
170     },
171     {
172         "Name": "phy2phy_scalability",
173         "Traffic Type": "rfc2544",
174         "Deployment": "p2p",
175         "biDirectional": "True",
176         "Description": "LTD.Scalability.Flows.RFC2544.0PacketLoss",
177         "MultiStream": "8000",
178     },
179     {
180         "Name": "pvp_tput",
181         "Traffic Type": "rfc2544",
182         "Deployment": "pvp",
183         "Description": "LTD.Throughput.RFC2544.PacketLossRatio",
184         "biDirectional": "True",
185     },
186     {
187         "Name": "pvp_back2back",
188         "Traffic Type": "back2back",
189         "Deployment": "pvp",
190         "Description": "LTD.Throughput.RFC2544.BackToBackFrames",
191         "biDirectional": "True",
192     },
193     {
194         "Name": "pvvp_tput",
195         "Traffic Type": "rfc2544",
196         "Collector": "cpu",
197         "Deployment": "pvvp",
198         "Description": "LTD.Throughput.RFC2544.PacketLossRatio",
199         "biDirectional": "True",
200     },
201     {
202         "Name": "pvvp_back2back",
203         "Traffic Type": "back2back",
204         "Collector": "cpu",
205         "Deployment": "pvvp",
206         "Description": "LTD.Throughput.RFC2544.BackToBackFrames",
207         "biDirectional": "True",
208     },
209     {
210         "Name": "phy2phy_cpu_load",
211         "Traffic Type": "rfc2544",
212         "Deployment": "p2p",
213         "biDirectional": "True",
214         "Description": "LTD.CPU.RFC2544.0PacketLoss",
215         "Load" : {
216             "tool" : "stress-ng",
217             "load" : 100,
218             "reserved" : 4,
219             "pattern" : "c",
220         }
221     },
222     {
223         "Name": "phy2phy_mem_load",
224         "Traffic Type": "rfc2544",
225         "Deployment": "p2p",
226         "biDirectional": "True",
227         "Description": "LTD.Memory.RFC2544.0PacketLoss",
228         "Load" : {
229             "tool" : "stress-ng",
230             "load" : 50,
231             "pattern" : "m",
232             "load_memory" : 80,
233         }
234     },
235
236 ]