Merge "Refactor userguide "Yardstick Installation""
[yardstick.git] / samples / vnf_samples / traffic_profiles / ipv4_throughput_cgnapt-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     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') }}"
72       count: "{{get(flow, 'flow.count', '1') }}"
73 downlink_0:
74   ipv4:
75     outer_l2:
76       framesize:
77         64B: "{{ get(imix, 'imix.downlink.64B', '0') }}"
78         128B: "{{ get(imix, 'imix.downlink.128B', '0') }}"
79         256B: "{{ get(imix, 'imix.downlink.256B', '0') }}"
80         373b: "{{ get(imix, 'imix.downlink.373B', '0') }}"
81         512B: "{{ get(imix, 'imix.downlink.512B', '0') }}"
82         570B: "{{get(imix, 'imix.downlink.570B', '0') }}"
83         1400B: "{{get(imix, 'imix.downlink.1400B', '0') }}"
84         1500B: "{{get(imix, 'imix.downlink.1500B', '0') }}"
85         1518B: "{{get(imix, 'imix.downlink.1518B', '0') }}"
86
87     outer_l3v4:
88       proto: "udp"
89       srcip4: "{{get(flow, 'flow.dst_ip_0', '10.0.3.1-10.0.3.255') }}"
90       dstip4: "{{get(flow, 'flow.downlink_0', '10.0.2.1-10.0.2.255') }}"
91       count: "{{get(flow, 'flow.count', '1') }}"
92       ttl: 32
93       dscp: 0
94     outer_l4:
95       srcport: "{{get(flow, 'flow.dst_port_0', '1234-4321') }}"
96       dstport: "{{get(flow, 'flow.src_port_0', '2001-4001') }}"
97       count: "{{get(flow, 'flow.count', '1') }}"
98 uplink_1:
99   ipv4:
100     outer_l2:
101       framesize:
102         64B: "{{ get(imix, 'imix.uplink.64B', '0') }}"
103         128B: "{{ get(imix, 'imix.uplink.128B', '0') }}"
104         256B: "{{ get(imix, 'imix.uplink.256B', '0') }}"
105         373b: "{{ get(imix, 'imix.uplink.373B', '0') }}"
106         512B: "{{ get(imix, 'imix.uplink.512B', '0') }}"
107         570B: "{{get(imix, 'imix.uplink.570B', '0') }}"
108         1400B: "{{get(imix, 'imix.uplink.1400B', '0') }}"
109         1500B: "{{get(imix, 'imix.uplink.1500B', '0') }}"
110         1518B: "{{get(imix, 'imix.uplink.1518B', '0') }}"
111     outer_l3v4:
112       proto: "udp"
113       srcip4: "{{get(flow, 'flow.src_ip_1', '1.1.1.1-1.1.255.255') }}"
114       dstip4: "{{get(flow, 'flow.dst_ip_1', '90.90.1.1-90.90.255.255') }}"
115       count: "{{get(flow, 'flow.count', '1') }}"
116       ttl: 32
117       dscp: 0
118     outer_l4:
119       srcport: "{{get(flow, 'flow.src_port_1', '1234-4321') }}"
120       dstport: "{{get(flow, 'flow.dst_port_1', '2001') }}"
121       count: "{{get(flow, 'flow.count', '1') }}"
122 downlink_1:
123   ipv4:
124     outer_l2:
125       framesize:
126         64B: "{{ get(imix, 'imix.downlink.64B', '0') }}"
127         128B: "{{ get(imix, 'imix.downlink.128B', '0') }}"
128         256B: "{{ get(imix, 'imix.downlink.256B', '0') }}"
129         373b: "{{ get(imix, 'imix.downlink.373B', '0') }}"
130         512B: "{{ get(imix, 'imix.downlink.512B', '0') }}"
131         570B: "{{get(imix, 'imix.downlink.570B', '0') }}"
132         1400B: "{{get(imix, 'imix.downlink.1400B', '0') }}"
133         1500B: "{{get(imix, 'imix.downlink.1500B', '0') }}"
134         1518B: "{{get(imix, 'imix.downlink.1518B', '0') }}"
135
136     outer_l3v4:
137       proto: "udp"
138       srcip4: "{{get(flow, 'flow.dst_ip_1', '10.0.3.1-10.0.3.255') }}"
139       dstip4: "{{get(flow, 'flow.downlink_1', '10.0.2.1-10.0.2.255') }}"
140       count: "{{get(flow, 'flow.count', '1') }}"
141       ttl: 32
142       dscp: 0
143     outer_l4:
144       srcport: "{{get(flow, 'flow.dst_port_1', '1234-4321') }}"
145       dstport: "{{get(flow, 'flow.src_port_1', '2001-4001') }}"
146       count: "{{get(flow, 'flow.count', '1') }}"
147 uplink_2:
148   ipv4:
149     outer_l2:
150       framesize:
151         64B: "{{ get(imix, 'imix.uplink.64B', '0') }}"
152         128B: "{{ get(imix, 'imix.uplink.128B', '0') }}"
153         256B: "{{ get(imix, 'imix.uplink.256B', '0') }}"
154         373b: "{{ get(imix, 'imix.uplink.373B', '0') }}"
155         512B: "{{ get(imix, 'imix.uplink.512B', '0') }}"
156         570B: "{{get(imix, 'imix.uplink.570B', '0') }}"
157         1400B: "{{get(imix, 'imix.uplink.1400B', '0') }}"
158         1500B: "{{get(imix, 'imix.uplink.1500B', '0') }}"
159         1518B: "{{get(imix, 'imix.uplink.1518B', '0') }}"
160     outer_l3v4:
161       proto: "udp"
162       srcip4: "{{get(flow, 'flow.src_ip_2', '1.1.1.1-1.1.255.255') }}"
163       dstip4: "{{get(flow, 'flow.dst_ip_2', '90.90.1.1-90.90.255.255') }}"
164       count: "{{get(flow, 'flow.count', '1') }}"
165       ttl: 32
166       dscp: 0
167     outer_l4:
168       srcport: "{{get(flow, 'flow.src_port_2', '1234-4321') }}"
169       dstport: "{{get(flow, 'flow.dst_port_2', '2001') }}"
170       count: "{{get(flow, 'flow.count', '1') }}"
171 downlink_2:
172   ipv4:
173     outer_l2:
174       framesize:
175         64B: "{{ get(imix, 'imix.downlink.64B', '0') }}"
176         128B: "{{ get(imix, 'imix.downlink.128B', '0') }}"
177         256B: "{{ get(imix, 'imix.downlink.256B', '0') }}"
178         373b: "{{ get(imix, 'imix.downlink.373B', '0') }}"
179         512B: "{{ get(imix, 'imix.downlink.512B', '0') }}"
180         570B: "{{get(imix, 'imix.downlink.570B', '0') }}"
181         1400B: "{{get(imix, 'imix.downlink.1400B', '0') }}"
182         1500B: "{{get(imix, 'imix.downlink.1500B', '0') }}"
183         1518B: "{{get(imix, 'imix.downlink.1518B', '0') }}"
184
185     outer_l3v4:
186       proto: "udp"
187       srcip4: "{{get(flow, 'flow.dst_ip_2', '10.0.3.1-10.0.3.255') }}"
188       dstip4: "{{get(flow, 'flow.downlink_2', '10.0.2.1-10.0.2.255') }}"
189       count: "{{get(flow, 'flow.count', '1') }}"
190       ttl: 32
191       dscp: 0
192     outer_l4:
193       srcport: "{{get(flow, 'flow.dst_port_2', '1234-4321') }}"
194       dstport: "{{get(flow, 'flow.src_port_2', '2001-4001') }}"
195       count: "{{get(flow, 'flow.count', '1') }}"
196 uplink_3:
197   ipv4:
198     outer_l2:
199       framesize:
200         64B: "{{ get(imix, 'imix.uplink.64B', '0') }}"
201         128B: "{{ get(imix, 'imix.uplink.128B', '0') }}"
202         256B: "{{ get(imix, 'imix.uplink.256B', '0') }}"
203         373b: "{{ get(imix, 'imix.uplink.373B', '0') }}"
204         512B: "{{ get(imix, 'imix.uplink.512B', '0') }}"
205         570B: "{{get(imix, 'imix.uplink.570B', '0') }}"
206         1400B: "{{get(imix, 'imix.uplink.1400B', '0') }}"
207         1500B: "{{get(imix, 'imix.uplink.1500B', '0') }}"
208         1518B: "{{get(imix, 'imix.uplink.1518B', '0') }}"
209     outer_l3v4:
210       proto: "udp"
211       srcip4: "{{get(flow, 'flow.src_ip_3', '1.1.1.1-1.1.255.255') }}"
212       dstip4: "{{get(flow, 'flow.dst_ip_3', '90.90.1.1-90.90.255.255') }}"
213       count: "{{get(flow, 'flow.count', '1') }}"
214       ttl: 32
215       dscp: 0
216     outer_l4:
217       srcport: "{{get(flow, 'flow.src_port_3', '1234-4321') }}"
218       dstport: "{{get(flow, 'flow.dst_port_3', '2001') }}"
219       count: "{{get(flow, 'flow.count', '1') }}"
220 downlink_3:
221   ipv4:
222     outer_l2:
223       framesize:
224         64B: "{{ get(imix, 'imix.downlink.64B', '0') }}"
225         128B: "{{ get(imix, 'imix.downlink.128B', '0') }}"
226         256B: "{{ get(imix, 'imix.downlink.256B', '0') }}"
227         373b: "{{ get(imix, 'imix.downlink.373B', '0') }}"
228         512B: "{{ get(imix, 'imix.downlink.512B', '0') }}"
229         570B: "{{get(imix, 'imix.downlink.570B', '0') }}"
230         1400B: "{{get(imix, 'imix.downlink.1400B', '0') }}"
231         1500B: "{{get(imix, 'imix.downlink.1500B', '0') }}"
232         1518B: "{{get(imix, 'imix.downlink.1518B', '0') }}"
233
234     outer_l3v4:
235       proto: "udp"
236       srcip4: "{{get(flow, 'flow.dst_ip_3', '10.0.3.1-10.0.3.255') }}"
237       dstip4: "{{get(flow, 'flow.downlink_3', '10.0.2.1-10.0.2.255') }}"
238       count: "{{get(flow, 'flow.count', '1') }}"
239       ttl: 32
240       dscp: 0
241     outer_l4:
242       srcport: "{{get(flow, 'flow.dst_port_3', '1234-4321') }}"
243       dstport: "{{get(flow, 'flow.src_port_3', '2001-4001') }}"
244       count: "{{get(flow, 'flow.count', '1') }}"