Merge "Bugfix: heat conext of test case yamls jinja2 bypass sriov type"
[yardstick.git] / samples / vnf_samples / traffic_profiles / ipv4_throughput-4.yaml
1 # Copyright (c) 2016-2017 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 # flow definition for ACL tests - 1K flows - ipv4 only
16 #
17 # the number of flows defines the widest range of parameters
18 # for example if srcip_range=1.0.0.1-1.0.0.255 and dst_ip_range=10.0.0.1-10.0.1.255
19 # and it should define only 16 flows
20 #
21 # there is assumption that packets generated will have a random sequences of following addresses pairs
22 # in the packets
23 # 1. src=1.x.x.x(x.x.x =random from 1..255) dst=10.x.x.x (random from 1..512)
24 # 2. src=1.x.x.x(x.x.x =random from 1..255) dst=10.x.x.x (random from 1..512)
25 # ...
26 # 512. src=1.x.x.x(x.x.x =random from 1..255) dst=10.x.x.x (random from 1..512)
27 #
28 # not all combination should be filled
29 # Any other field with random range will be added to flow definition
30 #
31 # the example.yaml provides all possibilities for traffic generation
32 #
33 # the profile defines a public and private side to make limited traffic correlation
34 # between private and public side same way as it is made by IXIA solution.
35 #
36 ---
37 schema: "nsb:traffic_profile:0.1"
38
39 # This file is a template, it will be filled with values from tc.yaml before passing to the traffic generator
40
41 name: rfc2544
42 description: Traffic profile to run RFC2544 latency
43 traffic_profile:
44   traffic_type: RFC2544Profile # defines traffic behavior - constant or look for highest possible throughput
45   frame_rate: 100  # pc of linerate
46   duration: {{ duration }}
47
48 uplink_0:
49   ipv4:
50     id: 1
51     outer_l2:
52       framesize:
53         64B: "{{ get(imix, 'imix.uplink.64B', '0') }}"
54         128B: "{{ get(imix, 'imix.uplink.128B', '0') }}"
55         256B: "{{ get(imix, 'imix.uplink.256B', '0') }}"
56         373b: "{{ get(imix, 'imix.uplink.373B', '0') }}"
57         512B: "{{ get(imix, 'imix.uplink.512B', '0') }}"
58         570B: "{{get(imix, 'imix.uplink.570B', '0') }}"
59         1400B: "{{get(imix, 'imix.uplink.1400B', '0') }}"
60         1500B: "{{get(imix, 'imix.uplink.1500B', '0') }}"
61         1518B: "{{get(imix, 'imix.uplink.1518B', '0') }}"
62     outer_l3v4:
63       proto: "udp"
64       srcip4: "{{get(flow, 'flow.src_ip_0', '1.1.1.1-1.1.255.255') }}"
65       dstip4: "{{get(flow, 'flow.dst_ip_0', '90.90.1.1-90.90.255.255') }}"
66       count: "{{get(flow, 'flow.count', '1') }}"
67       ttl: 32
68       dscp: 0
69     outer_l4:
70       srcport: "{{get(flow, 'flow.src_port_0', '1234-4321') }}"
71       dstport: "{{get(flow, 'flow.dst_port_0', '2001-4001') }}"
72       count: "{{get(flow, 'flow.count', '1') }}"
73 downlink_0:
74   ipv4:
75     id: 2
76     outer_l2:
77       framesize:
78         64B: "{{ get(imix, 'imix.downlink.64B', '0') }}"
79         128B: "{{ get(imix, 'imix.downlink.128B', '0') }}"
80         256B: "{{ get(imix, 'imix.downlink.256B', '0') }}"
81         373b: "{{ get(imix, 'imix.downlink.373B', '0') }}"
82         512B: "{{ get(imix, 'imix.downlink.512B', '0') }}"
83         570B: "{{get(imix, 'imix.downlink.570B', '0') }}"
84         1400B: "{{get(imix, 'imix.downlink.1400B', '0') }}"
85         1500B: "{{get(imix, 'imix.downlink.1500B', '0') }}"
86         1518B: "{{get(imix, 'imix.downlink.1518B', '0') }}"
87
88     outer_l3v4:
89       proto: "udp"
90       srcip4: "{{get(flow, 'flow.dst_ip_0', '90.90.1.1-90.90.255.255') }}"
91       dstip4: "{{get(flow, 'flow.src_ip_0', '1.1.1.1-1.1.255.255') }}"
92       count: "{{get(flow, 'flow.count', '1') }}"
93       ttl: 32
94       dscp: 0
95     outer_l4:
96       srcport: "{{get(flow, 'flow.dst_port_0', '1234-4321') }}"
97       dstport: "{{get(flow, 'flow.src_port_0', '2001-4001') }}"
98       count: "{{get(flow, 'flow.count', '1') }}"
99 uplink_1:
100   ipv4:
101     id: 3
102     outer_l2:
103       framesize:
104         64B: "{{ get(imix, 'imix.uplink.64B', '0') }}"
105         128B: "{{ get(imix, 'imix.uplink.128B', '0') }}"
106         256B: "{{ get(imix, 'imix.uplink.256B', '0') }}"
107         373b: "{{ get(imix, 'imix.uplink.373B', '0') }}"
108         512B: "{{ get(imix, 'imix.uplink.512B', '0') }}"
109         570B: "{{get(imix, 'imix.uplink.570B', '0') }}"
110         1400B: "{{get(imix, 'imix.uplink.1400B', '0') }}"
111         1500B: "{{get(imix, 'imix.uplink.1500B', '0') }}"
112         1518B: "{{get(imix, 'imix.uplink.1518B', '0') }}"
113     outer_l3v4:
114       proto: "udp"
115       srcip4: "{{get(flow, 'flow.src_ip_1', '1.1.1.1-1.1.255.255') }}"
116       dstip4: "{{get(flow, 'flow.dst_ip_1', '90.90.1.1-90.90.255.255') }}"
117       count: "{{get(flow, 'flow.count', '1') }}"
118       ttl: 32
119       dscp: 0
120     outer_l4:
121       srcport: "{{get(flow, 'flow.src_port_1', '1234-4321') }}"
122       dstport: "{{get(flow, 'flow.dst_port_1', '2001-4001') }}"
123       count: "{{get(flow, 'flow.count', '1') }}"
124 downlink_1:
125   ipv4:
126     id: 4
127     outer_l2:
128       framesize:
129         64B: "{{ get(imix, 'imix.downlink.64B', '0') }}"
130         128B: "{{ get(imix, 'imix.downlink.128B', '0') }}"
131         256B: "{{ get(imix, 'imix.downlink.256B', '0') }}"
132         373b: "{{ get(imix, 'imix.downlink.373B', '0') }}"
133         512B: "{{ get(imix, 'imix.downlink.512B', '0') }}"
134         570B: "{{get(imix, 'imix.downlink.570B', '0') }}"
135         1400B: "{{get(imix, 'imix.downlink.1400B', '0') }}"
136         1500B: "{{get(imix, 'imix.downlink.1500B', '0') }}"
137         1518B: "{{get(imix, 'imix.downlink.1518B', '0') }}"
138
139     outer_l3v4:
140       proto: "udp"
141       srcip4: "{{get(flow, 'flow.dst_ip_1', '90.90.1.1-90.90.255.255') }}"
142       dstip4: "{{get(flow, 'flow.src_ip_1', '1.1.1.1-1.1.255.255') }}"
143       count: "{{get(flow, 'flow.count', '1') }}"
144       ttl: 32
145       dscp: 0
146     outer_l4:
147       srcport: "{{get(flow, 'flow.dst_port_1', '1234-4321') }}"
148       dstport: "{{get(flow, 'flow.src_port_1', '2001-4001') }}"
149       count: "{{get(flow, 'flow.count', '1') }}"
150 uplink_2:
151   ipv4:
152     id: 5
153     outer_l2:
154       framesize:
155         64B: "{{ get(imix, 'imix.uplink.64B', '0') }}"
156         128B: "{{ get(imix, 'imix.uplink.128B', '0') }}"
157         256B: "{{ get(imix, 'imix.uplink.256B', '0') }}"
158         373b: "{{ get(imix, 'imix.uplink.373B', '0') }}"
159         512B: "{{ get(imix, 'imix.uplink.512B', '0') }}"
160         570B: "{{get(imix, 'imix.uplink.570B', '0') }}"
161         1400B: "{{get(imix, 'imix.uplink.1400B', '0') }}"
162         1500B: "{{get(imix, 'imix.uplink.1500B', '0') }}"
163         1518B: "{{get(imix, 'imix.uplink.1518B', '0') }}"
164     outer_l3v4:
165       proto: "udp"
166       srcip4: "{{get(flow, 'flow.src_ip_2', '1.1.1.1-1.1.255.255') }}"
167       dstip4: "{{get(flow, 'flow.dst_ip_2', '90.90.1.1-90.90.255.255') }}"
168       count: "{{get(flow, 'flow.count', '1') }}"
169       ttl: 32
170       dscp: 0
171     outer_l4:
172       srcport: "{{get(flow, 'flow.src_port_2', '1234-4321') }}"
173       dstport: "{{get(flow, 'flow.dst_port_2', '2001-4001') }}"
174       count: "{{get(flow, 'flow.count', '1') }}"
175 downlink_2:
176   ipv4:
177     id: 6
178     outer_l2:
179       framesize:
180         64B: "{{ get(imix, 'imix.downlink.64B', '0') }}"
181         128B: "{{ get(imix, 'imix.downlink.128B', '0') }}"
182         256B: "{{ get(imix, 'imix.downlink.256B', '0') }}"
183         373b: "{{ get(imix, 'imix.downlink.373B', '0') }}"
184         512B: "{{ get(imix, 'imix.downlink.512B', '0') }}"
185         570B: "{{get(imix, 'imix.downlink.570B', '0') }}"
186         1400B: "{{get(imix, 'imix.downlink.1400B', '0') }}"
187         1500B: "{{get(imix, 'imix.downlink.1500B', '0') }}"
188         1518B: "{{get(imix, 'imix.downlink.1518B', '0') }}"
189
190     outer_l3v4:
191       proto: "udp"
192       srcip4: "{{get(flow, 'flow.dst_ip_2', '90.90.1.1-90.90.255.255') }}"
193       dstip4: "{{get(flow, 'flow.src_ip_2', '1.1.1.1-1.1.255.255') }}"
194       count: "{{get(flow, 'flow.count', '1') }}"
195       ttl: 32
196       dscp: 0
197     outer_l4:
198       srcport: "{{get(flow, 'flow.dst_port_2', '1234-4321') }}"
199       dstport: "{{get(flow, 'flow.src_port_2', '2001-4001') }}"
200       count: "{{get(flow, 'flow.count', '1') }}"
201 uplink_3:
202   ipv4:
203     id: 7
204     outer_l2:
205       framesize:
206         64B: "{{ get(imix, 'imix.uplink.64B', '0') }}"
207         128B: "{{ get(imix, 'imix.uplink.128B', '0') }}"
208         256B: "{{ get(imix, 'imix.uplink.256B', '0') }}"
209         373b: "{{ get(imix, 'imix.uplink.373B', '0') }}"
210         512B: "{{ get(imix, 'imix.uplink.512B', '0') }}"
211         570B: "{{get(imix, 'imix.uplink.570B', '0') }}"
212         1400B: "{{get(imix, 'imix.uplink.1400B', '0') }}"
213         1500B: "{{get(imix, 'imix.uplink.1500B', '0') }}"
214         1518B: "{{get(imix, 'imix.uplink.1518B', '0') }}"
215     outer_l3v4:
216       proto: "udp"
217       srcip4: "{{get(flow, 'flow.src_ip_3', '1.1.1.1-1.1.255.255') }}"
218       dstip4: "{{get(flow, 'flow.dst_ip_3', '90.90.1.1-90.90.255.255') }}"
219       count: "{{get(flow, 'flow.count', '1') }}"
220       ttl: 32
221       dscp: 0
222     outer_l4:
223       srcport: "{{get(flow, 'flow.src_port_3', '1234-4321') }}"
224       dstport: "{{get(flow, 'flow.dst_port_3', '2001-4001') }}"
225       count: "{{get(flow, 'flow.count', '1') }}"
226 downlink_3:
227   ipv4:
228     id: 8
229     outer_l2:
230       framesize:
231         64B: "{{ get(imix, 'imix.downlink.64B', '0') }}"
232         128B: "{{ get(imix, 'imix.downlink.128B', '0') }}"
233         256B: "{{ get(imix, 'imix.downlink.256B', '0') }}"
234         373b: "{{ get(imix, 'imix.downlink.373B', '0') }}"
235         512B: "{{ get(imix, 'imix.downlink.512B', '0') }}"
236         570B: "{{get(imix, 'imix.downlink.570B', '0') }}"
237         1400B: "{{get(imix, 'imix.downlink.1400B', '0') }}"
238         1500B: "{{get(imix, 'imix.downlink.1500B', '0') }}"
239         1518B: "{{get(imix, 'imix.downlink.1518B', '0') }}"
240
241     outer_l3v4:
242       proto: "udp"
243       srcip4: "{{get(flow, 'flow.dst_ip_3', '90.90.1.1-90.90.255.255') }}"
244       dstip4: "{{get(flow, 'flow.src_ip_3', '1.1.1.1-1.1.255.255') }}"
245       count: "{{get(flow, 'flow.count', '1') }}"
246       ttl: 32
247       dscp: 0
248     outer_l4:
249       srcport: "{{get(flow, 'flow.dst_port_3', '1234-4321') }}"
250       dstport: "{{get(flow, 'flow.src_port_3', '2001-4001') }}"
251       count: "{{get(flow, 'flow.count', '1') }}"