NSB "Prox" : Cleanup duplicated traffic profile
[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   # that specifies a range (e.g. ipv4 address, port)
47
48
49 uplink_0:
50   ipv4:
51     id: 1
52     outer_l2:
53       framesize:
54         64B: "{{ get(imix, 'imix.uplink.64B', '0') }}"
55         128B: "{{ get(imix, 'imix.uplink.128B', '0') }}"
56         256B: "{{ get(imix, 'imix.uplink.256B', '0') }}"
57         373b: "{{ get(imix, 'imix.uplink.373B', '0') }}"
58         512B: "{{ get(imix, 'imix.uplink.512B', '0') }}"
59         570B: "{{get(imix, 'imix.uplink.570B', '0') }}"
60         1400B: "{{get(imix, 'imix.uplink.1400B', '0') }}"
61         1500B: "{{get(imix, 'imix.uplink.1500B', '0') }}"
62         1518B: "{{get(imix, 'imix.uplink.1518B', '0') }}"
63     outer_l3v4:
64       proto: "udp"
65       srcip4: "{{get(flow, 'flow.src_ip_0', '1.1.1.1-1.1.255.255') }}"
66       dstip4: "{{get(flow, 'flow.dst_ip_0', '90.90.1.1-90.90.255.255') }}"
67       count: "{{get(flow, 'flow.count', '1') }}"
68       ttl: 32
69       dscp: 0
70     outer_l4:
71       srcport: "{{get(flow, 'flow.src_port_0', '1234-4321') }}"
72       dstport: "{{get(flow, 'flow.dst_port_0', '2001-4001') }}"
73       count: "{{get(flow, 'flow.count', '1') }}"
74 downlink_0:
75   ipv4:
76     id: 2
77     outer_l2:
78       framesize:
79         64B: "{{ get(imix, 'imix.downlink.64B', '0') }}"
80         128B: "{{ get(imix, 'imix.downlink.128B', '0') }}"
81         256B: "{{ get(imix, 'imix.downlink.256B', '0') }}"
82         373b: "{{ get(imix, 'imix.downlink.373B', '0') }}"
83         512B: "{{ get(imix, 'imix.downlink.512B', '0') }}"
84         570B: "{{get(imix, 'imix.downlink.570B', '0') }}"
85         1400B: "{{get(imix, 'imix.downlink.1400B', '0') }}"
86         1500B: "{{get(imix, 'imix.downlink.1500B', '0') }}"
87         1518B: "{{get(imix, 'imix.downlink.1518B', '0') }}"
88
89     outer_l3v4:
90       proto: "udp"
91       srcip4: "{{get(flow, 'flow.dst_ip_0', '90.90.1.1-90.90.255.255') }}"
92       dstip4: "{{get(flow, 'flow.src_ip_0', '1.1.1.1-1.1.255.255') }}"
93       count: "{{get(flow, 'flow.count', '1') }}"
94       ttl: 32
95       dscp: 0
96     outer_l4:
97       srcport: "{{get(flow, 'flow.dst_port_0', '1234-4321') }}"
98       dstport: "{{get(flow, 'flow.src_port_0', '2001-4001') }}"
99       count: "{{get(flow, 'flow.count', '1') }}"
100 uplink_1:
101   ipv4:
102     id: 3
103     outer_l2:
104       framesize:
105         64B: "{{ get(imix, 'imix.uplink.64B', '0') }}"
106         128B: "{{ get(imix, 'imix.uplink.128B', '0') }}"
107         256B: "{{ get(imix, 'imix.uplink.256B', '0') }}"
108         373b: "{{ get(imix, 'imix.uplink.373B', '0') }}"
109         512B: "{{ get(imix, 'imix.uplink.512B', '0') }}"
110         570B: "{{get(imix, 'imix.uplink.570B', '0') }}"
111         1400B: "{{get(imix, 'imix.uplink.1400B', '0') }}"
112         1500B: "{{get(imix, 'imix.uplink.1500B', '0') }}"
113         1518B: "{{get(imix, 'imix.uplink.1518B', '0') }}"
114     outer_l3v4:
115       proto: "udp"
116       srcip4: "{{get(flow, 'flow.src_ip_1', '1.1.1.1-1.1.255.255') }}"
117       dstip4: "{{get(flow, 'flow.dst_ip_1', '90.90.1.1-90.90.255.255') }}"
118       count: "{{get(flow, 'flow.count', '1') }}"
119       ttl: 32
120       dscp: 0
121     outer_l4:
122       srcport: "{{get(flow, 'flow.src_port_1', '1234-4321') }}"
123       dstport: "{{get(flow, 'flow.dst_port_1', '2001-4001') }}"
124       count: "{{get(flow, 'flow.count', '1') }}"
125 downlink_1:
126   ipv4:
127     id: 4
128     outer_l2:
129       framesize:
130         64B: "{{ get(imix, 'imix.downlink.64B', '0') }}"
131         128B: "{{ get(imix, 'imix.downlink.128B', '0') }}"
132         256B: "{{ get(imix, 'imix.downlink.256B', '0') }}"
133         373b: "{{ get(imix, 'imix.downlink.373B', '0') }}"
134         512B: "{{ get(imix, 'imix.downlink.512B', '0') }}"
135         570B: "{{get(imix, 'imix.downlink.570B', '0') }}"
136         1400B: "{{get(imix, 'imix.downlink.1400B', '0') }}"
137         1500B: "{{get(imix, 'imix.downlink.1500B', '0') }}"
138         1518B: "{{get(imix, 'imix.downlink.1518B', '0') }}"
139
140     outer_l3v4:
141       proto: "udp"
142       srcip4: "{{get(flow, 'flow.dst_ip_1', '90.90.1.1-90.90.255.255') }}"
143       dstip4: "{{get(flow, 'flow.src_ip_1', '1.1.1.1-1.1.255.255') }}"
144       count: "{{get(flow, 'flow.count', '1') }}"
145       ttl: 32
146       dscp: 0
147     outer_l4:
148       srcport: "{{get(flow, 'flow.dst_port_1', '1234-4321') }}"
149       dstport: "{{get(flow, 'flow.src_port_1', '2001-4001') }}"
150       count: "{{get(flow, 'flow.count', '1') }}"
151 uplink_2:
152   ipv4:
153     id: 5
154     outer_l2:
155       framesize:
156         64B: "{{ get(imix, 'imix.uplink.64B', '0') }}"
157         128B: "{{ get(imix, 'imix.uplink.128B', '0') }}"
158         256B: "{{ get(imix, 'imix.uplink.256B', '0') }}"
159         373b: "{{ get(imix, 'imix.uplink.373B', '0') }}"
160         512B: "{{ get(imix, 'imix.uplink.512B', '0') }}"
161         570B: "{{get(imix, 'imix.uplink.570B', '0') }}"
162         1400B: "{{get(imix, 'imix.uplink.1400B', '0') }}"
163         1500B: "{{get(imix, 'imix.uplink.1500B', '0') }}"
164         1518B: "{{get(imix, 'imix.uplink.1518B', '0') }}"
165     outer_l3v4:
166       proto: "udp"
167       srcip4: "{{get(flow, 'flow.src_ip_2', '1.1.1.1-1.1.255.255') }}"
168       dstip4: "{{get(flow, 'flow.dst_ip_2', '90.90.1.1-90.90.255.255') }}"
169       count: "{{get(flow, 'flow.count', '1') }}"
170       ttl: 32
171       dscp: 0
172     outer_l4:
173       srcport: "{{get(flow, 'flow.src_port_2', '1234-4321') }}"
174       dstport: "{{get(flow, 'flow.dst_port_2', '2001-4001') }}"
175       count: "{{get(flow, 'flow.count', '1') }}"
176 downlink_2:
177   ipv4:
178     id: 6
179     outer_l2:
180       framesize:
181         64B: "{{ get(imix, 'imix.downlink.64B', '0') }}"
182         128B: "{{ get(imix, 'imix.downlink.128B', '0') }}"
183         256B: "{{ get(imix, 'imix.downlink.256B', '0') }}"
184         373b: "{{ get(imix, 'imix.downlink.373B', '0') }}"
185         512B: "{{ get(imix, 'imix.downlink.512B', '0') }}"
186         570B: "{{get(imix, 'imix.downlink.570B', '0') }}"
187         1400B: "{{get(imix, 'imix.downlink.1400B', '0') }}"
188         1500B: "{{get(imix, 'imix.downlink.1500B', '0') }}"
189         1518B: "{{get(imix, 'imix.downlink.1518B', '0') }}"
190
191     outer_l3v4:
192       proto: "udp"
193       srcip4: "{{get(flow, 'flow.dst_ip_2', '90.90.1.1-90.90.255.255') }}"
194       dstip4: "{{get(flow, 'flow.src_ip_2', '1.1.1.1-1.1.255.255') }}"
195       count: "{{get(flow, 'flow.count', '1') }}"
196       ttl: 32
197       dscp: 0
198     outer_l4:
199       srcport: "{{get(flow, 'flow.dst_port_2', '1234-4321') }}"
200       dstport: "{{get(flow, 'flow.src_port_2', '2001-4001') }}"
201       count: "{{get(flow, 'flow.count', '1') }}"
202 uplink_3:
203   ipv4:
204     id: 7
205     outer_l2:
206       framesize:
207         64B: "{{ get(imix, 'imix.uplink.64B', '0') }}"
208         128B: "{{ get(imix, 'imix.uplink.128B', '0') }}"
209         256B: "{{ get(imix, 'imix.uplink.256B', '0') }}"
210         373b: "{{ get(imix, 'imix.uplink.373B', '0') }}"
211         512B: "{{ get(imix, 'imix.uplink.512B', '0') }}"
212         570B: "{{get(imix, 'imix.uplink.570B', '0') }}"
213         1400B: "{{get(imix, 'imix.uplink.1400B', '0') }}"
214         1500B: "{{get(imix, 'imix.uplink.1500B', '0') }}"
215         1518B: "{{get(imix, 'imix.uplink.1518B', '0') }}"
216     outer_l3v4:
217       proto: "udp"
218       srcip4: "{{get(flow, 'flow.src_ip_3', '1.1.1.1-1.1.255.255') }}"
219       dstip4: "{{get(flow, 'flow.dst_ip_3', '90.90.1.1-90.90.255.255') }}"
220       count: "{{get(flow, 'flow.count', '1') }}"
221       ttl: 32
222       dscp: 0
223     outer_l4:
224       srcport: "{{get(flow, 'flow.src_port_3', '1234-4321') }}"
225       dstport: "{{get(flow, 'flow.dst_port_3', '2001-4001') }}"
226       count: "{{get(flow, 'flow.count', '1') }}"
227 downlink_3:
228   ipv4:
229     id: 8
230     outer_l2:
231       framesize:
232         64B: "{{ get(imix, 'imix.downlink.64B', '0') }}"
233         128B: "{{ get(imix, 'imix.downlink.128B', '0') }}"
234         256B: "{{ get(imix, 'imix.downlink.256B', '0') }}"
235         373b: "{{ get(imix, 'imix.downlink.373B', '0') }}"
236         512B: "{{ get(imix, 'imix.downlink.512B', '0') }}"
237         570B: "{{get(imix, 'imix.downlink.570B', '0') }}"
238         1400B: "{{get(imix, 'imix.downlink.1400B', '0') }}"
239         1500B: "{{get(imix, 'imix.downlink.1500B', '0') }}"
240         1518B: "{{get(imix, 'imix.downlink.1518B', '0') }}"
241
242     outer_l3v4:
243       proto: "udp"
244       srcip4: "{{get(flow, 'flow.dst_ip_3', '90.90.1.1-90.90.255.255') }}"
245       dstip4: "{{get(flow, 'flow.src_ip_3', '1.1.1.1-1.1.255.255') }}"
246       count: "{{get(flow, 'flow.count', '1') }}"
247       ttl: 32
248       dscp: 0
249     outer_l4:
250       srcport: "{{get(flow, 'flow.dst_port_3', '1234-4321') }}"
251       dstport: "{{get(flow, 'flow.src_port_3', '2001-4001') }}"
252       count: "{{get(flow, 'flow.count', '1') }}"