1 # Copyright (c) 2016-2017 Intel Corporation
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
7 # http://www.apache.org/licenses/LICENSE-2.0
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.
15 # flow definition for ACL tests - 1K flows - ipv4 only
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
21 # there is assumption that packets generated will have a random sequences of following addresses pairs
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)
26 # 512. src=1.x.x.x(x.x.x =random from 1..255) dst=10.x.x.x (random from 1..512)
28 # not all combination should be filled
29 # Any other field with random range will be added to flow definition
31 # the example.yaml provides all possibilities for traffic generation
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.
37 schema: "nsb:traffic_profile:0.1"
39 # This file is a template, it will be filled with values from tc.yaml before passing to the traffic generator
42 description: Traffic profile to run RFC2544 latency
44 traffic_type: RFC2544Profile # defines traffic behavior - constant or look for highest possible throughput
45 frame_rate: 100 # pc of linerate
46 duration: {{ duration }}
52 64B: "{{ get(imix, 'imix.uplink.64B', '0') }}"
53 128B: "{{ get(imix, 'imix.uplink.128B', '0') }}"
54 256B: "{{ get(imix, 'imix.uplink.256B', '0') }}"
55 373b: "{{ get(imix, 'imix.uplink.373B', '0') }}"
56 512B: "{{ get(imix, 'imix.uplink.512B', '0') }}"
57 570B: "{{get(imix, 'imix.uplink.570B', '0') }}"
58 1400B: "{{get(imix, 'imix.uplink.1400B', '0') }}"
59 1500B: "{{get(imix, 'imix.uplink.1500B', '0') }}"
60 1518B: "{{get(imix, 'imix.uplink.1518B', '0') }}"
63 srcip4: "{{get(flow, 'flow.src_ip_0', '1.1.1.1-1.1.255.255') }}"
64 dstip4: "{{get(flow, 'flow.dst_ip_0', '90.90.1.1-90.90.255.255') }}"
65 count: "{{get(flow, 'flow.count', '1') }}"
69 srcport: "{{get(flow, 'flow.src_port_0', '1234-4321') }}"
70 dstport: "{{get(flow, 'flow.dst_port_0', '2001') }}"
71 count: "{{get(flow, 'flow.count', '1') }}"
76 64B: "{{ get(imix, 'imix.downlink.64B', '0') }}"
77 128B: "{{ get(imix, 'imix.downlink.128B', '0') }}"
78 256B: "{{ get(imix, 'imix.downlink.256B', '0') }}"
79 373b: "{{ get(imix, 'imix.downlink.373B', '0') }}"
80 512B: "{{ get(imix, 'imix.downlink.512B', '0') }}"
81 570B: "{{get(imix, 'imix.downlink.570B', '0') }}"
82 1400B: "{{get(imix, 'imix.downlink.1400B', '0') }}"
83 1500B: "{{get(imix, 'imix.downlink.1500B', '0') }}"
84 1518B: "{{get(imix, 'imix.downlink.1518B', '0') }}"
88 srcip4: "{{get(flow, 'flow.dst_ip_0', '10.0.3.1-10.0.3.255') }}"
89 dstip4: "{{get(flow, 'flow.downlink_0', '10.0.2.1-10.0.2.255') }}"
90 count: "{{get(flow, 'flow.count', '1') }}"
94 srcport: "{{get(flow, 'flow.dst_port_0', '1234-4321') }}"
95 dstport: "{{get(flow, 'flow.src_port_0', '2001-4001') }}"
96 count: "{{get(flow, 'flow.count', '1') }}"
101 64B: "{{ get(imix, 'imix.uplink.64B', '0') }}"
102 128B: "{{ get(imix, 'imix.uplink.128B', '0') }}"
103 256B: "{{ get(imix, 'imix.uplink.256B', '0') }}"
104 373b: "{{ get(imix, 'imix.uplink.373B', '0') }}"
105 512B: "{{ get(imix, 'imix.uplink.512B', '0') }}"
106 570B: "{{get(imix, 'imix.uplink.570B', '0') }}"
107 1400B: "{{get(imix, 'imix.uplink.1400B', '0') }}"
108 1500B: "{{get(imix, 'imix.uplink.1500B', '0') }}"
109 1518B: "{{get(imix, 'imix.uplink.1518B', '0') }}"
112 srcip4: "{{get(flow, 'flow.src_ip_1', '1.1.1.1-1.1.255.255') }}"
113 dstip4: "{{get(flow, 'flow.dst_ip_1', '90.90.1.1-90.90.255.255') }}"
114 count: "{{get(flow, 'flow.count', '1') }}"
118 srcport: "{{get(flow, 'flow.src_port_1', '1234-4321') }}"
119 dstport: "{{get(flow, 'flow.dst_port_1', '2001') }}"
120 count: "{{get(flow, 'flow.count', '1') }}"
125 64B: "{{ get(imix, 'imix.downlink.64B', '0') }}"
126 128B: "{{ get(imix, 'imix.downlink.128B', '0') }}"
127 256B: "{{ get(imix, 'imix.downlink.256B', '0') }}"
128 373b: "{{ get(imix, 'imix.downlink.373B', '0') }}"
129 512B: "{{ get(imix, 'imix.downlink.512B', '0') }}"
130 570B: "{{get(imix, 'imix.downlink.570B', '0') }}"
131 1400B: "{{get(imix, 'imix.downlink.1400B', '0') }}"
132 1500B: "{{get(imix, 'imix.downlink.1500B', '0') }}"
133 1518B: "{{get(imix, 'imix.downlink.1518B', '0') }}"
137 srcip4: "{{get(flow, 'flow.dst_ip_1', '10.0.3.1-10.0.3.255') }}"
138 dstip4: "{{get(flow, 'flow.downlink_1', '10.0.2.1-10.0.2.255') }}"
139 count: "{{get(flow, 'flow.count', '1') }}"
143 srcport: "{{get(flow, 'flow.dst_port_1', '1234-4321') }}"
144 dstport: "{{get(flow, 'flow.src_port_1', '2001-4001') }}"
145 count: "{{get(flow, 'flow.count', '1') }}"
150 64B: "{{ get(imix, 'imix.uplink.64B', '0') }}"
151 128B: "{{ get(imix, 'imix.uplink.128B', '0') }}"
152 256B: "{{ get(imix, 'imix.uplink.256B', '0') }}"
153 373b: "{{ get(imix, 'imix.uplink.373B', '0') }}"
154 512B: "{{ get(imix, 'imix.uplink.512B', '0') }}"
155 570B: "{{get(imix, 'imix.uplink.570B', '0') }}"
156 1400B: "{{get(imix, 'imix.uplink.1400B', '0') }}"
157 1500B: "{{get(imix, 'imix.uplink.1500B', '0') }}"
158 1518B: "{{get(imix, 'imix.uplink.1518B', '0') }}"
161 srcip4: "{{get(flow, 'flow.src_ip_2', '1.1.1.1-1.1.255.255') }}"
162 dstip4: "{{get(flow, 'flow.dst_ip_2', '90.90.1.1-90.90.255.255') }}"
163 count: "{{get(flow, 'flow.count', '1') }}"
167 srcport: "{{get(flow, 'flow.src_port_2', '1234-4321') }}"
168 dstport: "{{get(flow, 'flow.dst_port_2', '2001') }}"
169 count: "{{get(flow, 'flow.count', '1') }}"
174 64B: "{{ get(imix, 'imix.downlink.64B', '0') }}"
175 128B: "{{ get(imix, 'imix.downlink.128B', '0') }}"
176 256B: "{{ get(imix, 'imix.downlink.256B', '0') }}"
177 373b: "{{ get(imix, 'imix.downlink.373B', '0') }}"
178 512B: "{{ get(imix, 'imix.downlink.512B', '0') }}"
179 570B: "{{get(imix, 'imix.downlink.570B', '0') }}"
180 1400B: "{{get(imix, 'imix.downlink.1400B', '0') }}"
181 1500B: "{{get(imix, 'imix.downlink.1500B', '0') }}"
182 1518B: "{{get(imix, 'imix.downlink.1518B', '0') }}"
186 srcip4: "{{get(flow, 'flow.dst_ip_2', '10.0.3.1-10.0.3.255') }}"
187 dstip4: "{{get(flow, 'flow.downlink_2', '10.0.2.1-10.0.2.255') }}"
188 count: "{{get(flow, 'flow.count', '1') }}"
192 srcport: "{{get(flow, 'flow.dst_port_2', '1234-4321') }}"
193 dstport: "{{get(flow, 'flow.src_port_2', '2001-4001') }}"
194 count: "{{get(flow, 'flow.count', '1') }}"
199 64B: "{{ get(imix, 'imix.uplink.64B', '0') }}"
200 128B: "{{ get(imix, 'imix.uplink.128B', '0') }}"
201 256B: "{{ get(imix, 'imix.uplink.256B', '0') }}"
202 373b: "{{ get(imix, 'imix.uplink.373B', '0') }}"
203 512B: "{{ get(imix, 'imix.uplink.512B', '0') }}"
204 570B: "{{get(imix, 'imix.uplink.570B', '0') }}"
205 1400B: "{{get(imix, 'imix.uplink.1400B', '0') }}"
206 1500B: "{{get(imix, 'imix.uplink.1500B', '0') }}"
207 1518B: "{{get(imix, 'imix.uplink.1518B', '0') }}"
210 srcip4: "{{get(flow, 'flow.src_ip_3', '1.1.1.1-1.1.255.255') }}"
211 dstip4: "{{get(flow, 'flow.dst_ip_3', '90.90.1.1-90.90.255.255') }}"
212 count: "{{get(flow, 'flow.count', '1') }}"
216 srcport: "{{get(flow, 'flow.src_port_3', '1234-4321') }}"
217 dstport: "{{get(flow, 'flow.dst_port_3', '2001') }}"
218 count: "{{get(flow, 'flow.count', '1') }}"
223 64B: "{{ get(imix, 'imix.downlink.64B', '0') }}"
224 128B: "{{ get(imix, 'imix.downlink.128B', '0') }}"
225 256B: "{{ get(imix, 'imix.downlink.256B', '0') }}"
226 373b: "{{ get(imix, 'imix.downlink.373B', '0') }}"
227 512B: "{{ get(imix, 'imix.downlink.512B', '0') }}"
228 570B: "{{get(imix, 'imix.downlink.570B', '0') }}"
229 1400B: "{{get(imix, 'imix.downlink.1400B', '0') }}"
230 1500B: "{{get(imix, 'imix.downlink.1500B', '0') }}"
231 1518B: "{{get(imix, 'imix.downlink.1518B', '0') }}"
235 srcip4: "{{get(flow, 'flow.dst_ip_3', '10.0.3.1-10.0.3.255') }}"
236 dstip4: "{{get(flow, 'flow.downlink_3', '10.0.2.1-10.0.2.255') }}"
237 count: "{{get(flow, 'flow.count', '1') }}"
241 srcport: "{{get(flow, 'flow.dst_port_3', '1234-4321') }}"
242 dstport: "{{get(flow, 'flow.src_port_3', '2001-4001') }}"
243 count: "{{get(flow, 'flow.count', '1') }}"