Flow Classification extension
[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 # "Deployment": "p2p",             # One of the supported deployment scenarios.
24 # "Description": "Lorem ipsum..."  # Optional. A human-readable string
25 #                                  # describing the test.
26 # "Frame Modification": "vlan"     # One of the supported frame modifications:
27 #                                  # vlan, mpls, mac, dscp, ttl, ip_addr,
28 #                                  # ip_port.
29 # "biDirectional": [true|false],   # Specifies if genearted traffic will be
30 #                                  # full-duplex (true) or half-duplex (false)
31 # "MultiStream": 0-65535           # Optional. Defines number of flows simulated
32 #                                  # by traffic generator. Value 0 disables
33 #                                  # MultiStream feature
34 # "Flow Type": ["port"|"IP"]       # Optional. Defines flows complexity. In case
35 #                                  # it isn't specified, then "port" will be used.
36 #                                  # Values:
37 #                                  #    "port" - flow is defined by ingress ports
38 #                                  #    "IP"   - flow is defined by ingress ports
39 #                                  #             and src and dst IP addresses
40 # "Load": dictionary               # Optional. Configures background load
41 #                                  # during testcase execution.
42 #   Description of "Load" dictionary keys, their meanings and available values:
43 #
44 #   "tool": "stress"               # One of the supported load generators.
45 #   "load": 0-100                  # percentage of cores which should be
46 #                                  # utilized by load generator
47 #                                  # e.g. load = 70%, detected cpu cores = 14 =>
48 #                                  # round(14*0.7)=10, i.e. 10 instances of load
49 #                                  # generator will be executed
50 #   "reserved": 0- (Default 0)     # Optional. Defines number of cores reserved
51 #                                  # for vsperf
52 #                                  # e.g. load = 80%, detected cpu cores = 14,
53 #                                  # reserved = 4 => round((14-4)*0.8)=8,
54 #                                  # i.e. 8 load gen. instances will be executed
55 #   "pattern" : "c"                # stress/stress-ng specific; Number of 'c',
56 #                                  # 'm' and 'i' defines ratio between cpu, mem
57 #                                  # and io workers respectively
58 #                                  # e.g. "ccccmmi" => ratio among workers types
59 #                                  # will be 3:2:1, so in case that 12 stress
60 #                                  # instances should be executed, then 6 cpu,
61 #                                  # 4 memory and 2 io workers will be executed
62 #   "load_memory": 0-100           # Optional. Defines percentage of the system
63 #                                  # memory, which should be utilized by memory
64 #                                  # workers (if they are part of "pattern").
65 #                                  # if not specified then default stress(-ng)
66 #                                  # value will be used
67 #   "options": ""                  # Optional. Additional command line options
68 #                                  # to be passed to the load generator.
69 # "Test Modifier": [FrameMod|Other],
70 # "Dependency": [Test_Case_Name |None],
71
72 PERFORMANCE_TESTS = [
73     {
74         "Name": "phy2phy_tput",
75         "Traffic Type": "rfc2544",
76         "Deployment": "p2p",
77         "biDirectional": "True",
78         "Description": "LTD.Throughput.RFC2544.PacketLossRatio",
79     },
80     {
81         "Name": "back2back",
82         "Traffic Type": "back2back",
83         "Deployment": "p2p",
84         "biDirectional": "True",
85         "Description": "LTD.Throughput.RFC2544.BackToBackFrames",
86     },
87     {
88         "Name": "phy2phy_tput_mod_vlan",
89         "Traffic Type": "rfc2544",
90         "Deployment": "p2p",
91         "Frame Modification": "vlan",
92         "biDirectional": "False",
93         "Description": "LTD.Throughput.RFC2544.PacketLossRatioFrameModification"
94     },
95     {
96         "Name": "phy2phy_cont",
97         "Traffic Type": "continuous",
98         "Deployment": "p2p",
99         "Description": "RFC2544 Phy2Phy Continuous Stream",
100         "biDirectional": "True",
101     },
102     {
103         "Name": "phy2phy_scalability",
104         "Traffic Type": "rfc2544",
105         "Deployment": "p2p",
106         "biDirectional": "True",
107         "Description": "LTD.Scalability.RFC2544.0PacketLoss",
108         "MultiStream": "8000",
109     },
110     {
111         "Name": "pvp_tput",
112         "Traffic Type": "rfc2544",
113         "Deployment": "pvp",
114         "Description": "LTD.Throughput.RFC2544.PacketLossRatio",
115         "biDirectional": "True",
116     },
117     {
118         "Name": "pvp_back2back",
119         "Traffic Type": "back2back",
120         "Deployment": "pvp",
121         "Description": "LTD.Throughput.RFC2544.BackToBackFrames",
122         "biDirectional": "True",
123     },
124     {
125         "Name": "pvvp_tput",
126         "Traffic Type": "rfc2544",
127         "Collector": "cpu",
128         "Deployment": "pvvp",
129         "Description": "LTD.Throughput.RFC2544.PacketLossRatio",
130         "biDirectional": "True",
131     },
132     {
133         "Name": "pvvp_back2back",
134         "Traffic Type": "back2back",
135         "Collector": "cpu",
136         "Deployment": "pvvp",
137         "Description": "LTD.Throughput.RFC2544.BackToBackFrames",
138         "biDirectional": "True",
139     },
140     {
141         "Name": "phy2phy_cpu_load",
142         "Traffic Type": "rfc2544",
143         "Deployment": "p2p",
144         "biDirectional": "True",
145         "Description": "LTD.CPU.RFC2544.0PacketLoss",
146         "Load" : {
147             "tool" : "stress-ng",
148             "load" : 100,
149             "reserved" : 4,
150             "pattern" : "c",
151         }
152     },
153     {
154         "Name": "phy2phy_mem_load",
155         "Traffic Type": "rfc2544",
156         "Deployment": "p2p",
157         "biDirectional": "True",
158         "Description": "LTD.Memory.RFC2544.0PacketLoss",
159         "Load" : {
160             "tool" : "stress-ng",
161             "load" : 50,
162             "pattern" : "m",
163             "load_memory" : 80,
164         }
165     },
166
167 ]