Merge "conf:Traffic-type naming convention and consistency"
[vswitchperf.git] / yardstick / tests / rfc2544_throughput_dummy.yaml
1 # Copyright 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 # VSPERF specific configuration file for execution of RFC2544 throughput
16 # traffic.
17 # This test uses a dummy traffic generator, which does not execute a real
18 # traffic. The purpose of this test is to demonstrate vsperf execution
19 # by yardstick environment. Provided 'test_params' option can modified
20 # to use a real traffic generator.
21 # Details about supported test options and test case execution can be
22 # found in VSPERF documentation:
23 #
24 #   http://artifacts.opnfv.org/vswitchperf/docs/userguide/yardstick.html
25
26 schema: "yardstick:task:0.1"
27
28 scenarios:
29 -
30   type: Vsperf
31   options:
32     testname: 'rfc2544_throughput'
33     traffic_type: 'rfc2544'
34     frame_size: '64'
35     bidirectional: 'True'
36     iload: 100
37     test_params: 'TRAFFICGEN_DURATION=30;
38         TRAFFICGEN="Dummy";
39         TRAFFICGEN_DUMMY_RESULTS={
40             "frames tx":15000000,
41             "frames rx":15000000,
42             "tx rate %":100,
43             "rx rate %":100,
44             "min latency":1,
45             "max latency":15,
46             "avg latency":2.5,
47             "frameloss %":0,}'
48
49   host: vsperf.demo
50
51   runner:
52     type: Sequence
53     scenario_option_name: frame_size
54     sequence:
55     - 64
56     - 128
57     - 512
58     - 1024
59     - 1518
60   sla:
61     # The throughput SLA (or any other SLA) cannot be set to a meaningful
62     # value without knowledge of the server and networking environment,
63     # possibly including prior testing in that environment to establish
64     # a baseline SLA level under well-understood circumstances.
65     metrics: 'throughput_rx_fps'
66     throughput_rx_fps: 500000
67     action: monitor
68
69 context:
70   name: demo
71   image: vsperf
72   flavor: vsperf-flavor
73   user: ubuntu
74
75   placement_groups:
76     pgrp1:
77       policy: "availability"
78
79   servers:
80     vsperf:
81       floating_ip: true
82       placement: "pgrp1"
83
84   networks:
85     test:
86       cidr: '10.0.0.0/24'