Merge "Update NSB PROX devguide"
[yardstick.git] / samples / vnf_samples / traffic_profiles / ipv4_throughput-3.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   enable_latency: False
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         1024B: "{{get(imix, 'imix.uplink.1024B', '0') }}"
61         1280B: "{{get(imix, 'imix.uplink.1280B', '0') }}"
62         1400B: "{{get(imix, 'imix.uplink.1400B', '0') }}"
63         1500B: "{{get(imix, 'imix.uplink.1500B', '0') }}"
64         1518B: "{{get(imix, 'imix.uplink.1518B', '0') }}"
65     outer_l3v4:
66       proto: "udp"
67       srcip4: "{{get(flow, 'flow.src_ip_0', '1.1.1.1-1.1.255.255') }}"
68       dstip4: "{{get(flow, 'flow.dst_ip_0', '90.90.1.1-90.90.255.255') }}"
69       count: "{{get(flow, 'flow.count', '1') }}"
70       ttl: 32
71       dscp: 0
72     outer_l4:
73       srcport: "{{get(flow, 'flow.src_port_0', '1234-4321') }}"
74       dstport: "{{get(flow, 'flow.dst_port_0', '2001-4001') }}"
75       count: "{{get(flow, 'flow.count', '1') }}"
76 downlink_0:
77   ipv4:
78     id: 2
79     outer_l2:
80       framesize:
81         64B: "{{ get(imix, 'imix.downlink.64B', '0') }}"
82         128B: "{{ get(imix, 'imix.downlink.128B', '0') }}"
83         256B: "{{ get(imix, 'imix.downlink.256B', '0') }}"
84         373b: "{{ get(imix, 'imix.downlink.373B', '0') }}"
85         512B: "{{ get(imix, 'imix.downlink.512B', '0') }}"
86         570B: "{{get(imix, 'imix.downlink.570B', '0') }}"
87         1024B: "{{get(imix, 'imix.downlink.1024B', '0') }}"
88         1280B: "{{get(imix, 'imix.downlink.1280B', '0') }}"
89         1400B: "{{get(imix, 'imix.downlink.1400B', '0') }}"
90         1500B: "{{get(imix, 'imix.downlink.1500B', '0') }}"
91         1518B: "{{get(imix, 'imix.downlink.1518B', '0') }}"
92
93     outer_l3v4:
94       proto: "udp"
95       srcip4: "{{get(flow, 'flow.dst_ip_0', '90.90.1.1-90.90.255.255') }}"
96       dstip4: "{{get(flow, 'flow.src_ip_0', '1.1.1.1-1.1.255.255') }}"
97       count: "{{get(flow, 'flow.count', '1') }}"
98       ttl: 32
99       dscp: 0
100     outer_l4:
101       srcport: "{{get(flow, 'flow.dst_port_0', '1234-4321') }}"
102       dstport: "{{get(flow, 'flow.src_port_0', '2001-4001') }}"
103       count: "{{get(flow, 'flow.count', '1') }}"
104 uplink_1:
105   ipv4:
106     id: 3
107     outer_l2:
108       framesize:
109         64B: "{{ get(imix, 'imix.uplink.64B', '0') }}"
110         128B: "{{ get(imix, 'imix.uplink.128B', '0') }}"
111         256B: "{{ get(imix, 'imix.uplink.256B', '0') }}"
112         373b: "{{ get(imix, 'imix.uplink.373B', '0') }}"
113         512B: "{{ get(imix, 'imix.uplink.512B', '0') }}"
114         570B: "{{get(imix, 'imix.uplink.570B', '0') }}"
115         1024B: "{{get(imix, 'imix.uplink.1024B', '0') }}"
116         1280B: "{{get(imix, 'imix.uplink.1280B', '0') }}"
117         1400B: "{{get(imix, 'imix.uplink.1400B', '0') }}"
118         1500B: "{{get(imix, 'imix.uplink.1500B', '0') }}"
119         1518B: "{{get(imix, 'imix.uplink.1518B', '0') }}"
120     outer_l3v4:
121       proto: "udp"
122       srcip4: "{{get(flow, 'flow.src_ip_1', '1.1.1.1-1.1.255.255') }}"
123       dstip4: "{{get(flow, 'flow.dst_ip_1', '90.90.1.1-90.90.255.255') }}"
124       count: "{{get(flow, 'flow.count', '1') }}"
125       ttl: 32
126       dscp: 0
127     outer_l4:
128       srcport: "{{get(flow, 'flow.src_port_1', '1234-4321') }}"
129       dstport: "{{get(flow, 'flow.dst_port_1', '2001-4001') }}"
130       count: "{{get(flow, 'flow.count', '1') }}"
131 downlink_1:
132   ipv4:
133     id: 4
134     outer_l2:
135       framesize:
136         64B: "{{ get(imix, 'imix.downlink.64B', '0') }}"
137         128B: "{{ get(imix, 'imix.downlink.128B', '0') }}"
138         256B: "{{ get(imix, 'imix.downlink.256B', '0') }}"
139         373b: "{{ get(imix, 'imix.downlink.373B', '0') }}"
140         512B: "{{ get(imix, 'imix.downlink.512B', '0') }}"
141         570B: "{{get(imix, 'imix.downlink.570B', '0') }}"
142         1024B: "{{get(imix, 'imix.downlink.1024B', '0') }}"
143         1280B: "{{get(imix, 'imix.downlink.1280B', '0') }}"
144         1400B: "{{get(imix, 'imix.downlink.1400B', '0') }}"
145         1500B: "{{get(imix, 'imix.downlink.1500B', '0') }}"
146         1518B: "{{get(imix, 'imix.downlink.1518B', '0') }}"
147
148     outer_l3v4:
149       proto: "udp"
150       srcip4: "{{get(flow, 'flow.dst_ip_1', '90.90.1.1-90.90.255.255') }}"
151       dstip4: "{{get(flow, 'flow.src_ip_1', '1.1.1.1-1.1.255.255') }}"
152       count: "{{get(flow, 'flow.count', '1') }}"
153       ttl: 32
154       dscp: 0
155     outer_l4:
156       srcport: "{{get(flow, 'flow.dst_port_1', '1234-4321') }}"
157       dstport: "{{get(flow, 'flow.src_port_1', '2001-4001') }}"
158       count: "{{get(flow, 'flow.count', '1') }}"
159 uplink_2:
160   ipv4:
161     id: 5
162     outer_l2:
163       framesize:
164         64B: "{{ get(imix, 'imix.uplink.64B', '0') }}"
165         128B: "{{ get(imix, 'imix.uplink.128B', '0') }}"
166         256B: "{{ get(imix, 'imix.uplink.256B', '0') }}"
167         373b: "{{ get(imix, 'imix.uplink.373B', '0') }}"
168         512B: "{{ get(imix, 'imix.uplink.512B', '0') }}"
169         570B: "{{get(imix, 'imix.uplink.570B', '0') }}"
170         1024B: "{{get(imix, 'imix.uplink.1024B', '0') }}"
171         1280B: "{{get(imix, 'imix.uplink.1280B', '0') }}"
172         1400B: "{{get(imix, 'imix.uplink.1400B', '0') }}"
173         1500B: "{{get(imix, 'imix.uplink.1500B', '0') }}"
174         1518B: "{{get(imix, 'imix.uplink.1518B', '0') }}"
175     outer_l3v4:
176       proto: "udp"
177       srcip4: "{{get(flow, 'flow.src_ip_1', '1.1.1.1-1.1.255.255') }}"
178       dstip4: "{{get(flow, 'flow.dst_ip_1', '90.90.1.1-90.90.255.255') }}"
179       count: "{{get(flow, 'flow.count', '1') }}"
180       ttl: 32
181       dscp: 0
182     outer_l4:
183       srcport: "{{get(flow, 'flow.src_port_1', '1234-4321') }}"
184       dstport: "{{get(flow, 'flow.dst_port_1', '2001-4001') }}"
185       count: "{{get(flow, 'flow.count', '1') }}"
186 downlink_2:
187   ipv4:
188     id: 6
189     outer_l2:
190       framesize:
191         64B: "{{ get(imix, 'imix.downlink.64B', '0') }}"
192         128B: "{{ get(imix, 'imix.downlink.128B', '0') }}"
193         256B: "{{ get(imix, 'imix.downlink.256B', '0') }}"
194         373b: "{{ get(imix, 'imix.downlink.373B', '0') }}"
195         512B: "{{ get(imix, 'imix.downlink.512B', '0') }}"
196         570B: "{{get(imix, 'imix.downlink.570B', '0') }}"
197         1024B: "{{get(imix, 'imix.downlink.1024B', '0') }}"
198         1280B: "{{get(imix, 'imix.downlink.1280B', '0') }}"
199         1400B: "{{get(imix, 'imix.downlink.1400B', '0') }}"
200         1500B: "{{get(imix, 'imix.downlink.1500B', '0') }}"
201         1518B: "{{get(imix, 'imix.downlink.1518B', '0') }}"
202
203     outer_l3v4:
204       proto: "udp"
205       srcip4: "{{get(flow, 'flow.dst_ip_1', '90.90.1.1-90.90.255.255') }}"
206       dstip4: "{{get(flow, 'flow.src_ip_1', '1.1.1.1-1.1.255.255') }}"
207       count: "{{get(flow, 'flow.count', '1') }}"
208       ttl: 32
209       dscp: 0
210     outer_l4:
211       srcport: "{{get(flow, 'flow.dst_port_1', '1234-4321') }}"
212       dstport: "{{get(flow, 'flow.src_port_1', '2001-4001') }}"
213       count: "{{get(flow, 'flow.count', '1') }}"