add yardstick iruya 9.0.0 release notes
[yardstick.git] / samples / vnf_samples / traffic_profiles / ixia_ipv4_latency.yaml
1 # flow definition for ACL tests - 1K flows - ipv4 only
2 #
3 # the number of flows defines the widest range of parameters
4 # 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
5 # and it should define only 16 flows
6 #
7 #there is assumption that packets generated will have a random sequences of following addresses pairs
8 # in the packets
9 # 1. src=1.x.x.x(x.x.x =random from 1..255) dst=10.x.x.x (random from 1..512)
10 # 2. src=1.x.x.x(x.x.x =random from 1..255) dst=10.x.x.x (random from 1..512)
11 # ...
12 # 512. src=1.x.x.x(x.x.x =random from 1..255) dst=10.x.x.x (random from 1..512)
13 #
14 # not all combination should be filled
15 # Any other field with random range will be added to flow definition
16 #
17 # the example.yaml provides all possibilities for traffic generation
18 #
19 # the profile defines a public and private side to make limited traffic correlation
20 # between private and public side same way as it is made by IXIA solution.
21 #
22 {% set frame_rate = get(extra_args, 'frame_rate' or '100%' ) %}
23 schema: "nsb:traffic_profile:0.1"
24
25 # This file is a template, it will be filled with values from tc.yaml before passing to the traffic generator
26
27 name:            rfc2544
28 description:     Traffic profile to run RFC2544 latency
29 traffic_profile:
30   traffic_type : IXIARFC2544Profile # defines traffic behavior - constant or look for highest possible throughput
31   frame_rate : {{ frame_rate }}  # pc of linerate
32   duration: {{ duration }}
33   enable_latency: True
34
35 uplink_0:
36       ipv4:
37         id: 1
38         outer_l2:
39             framesize:
40                 64B: "{{get(imix, 'imix.uplink.64B', '0') }}"
41                 128B: "{{get(imix, 'imix.uplink.128B', '0') }}"
42                 256B: "{{get(imix, 'imix.uplink.256B', '0') }}"
43                 373b: "{{get(imix, 'imix.uplink.373B', '0') }}"
44                 512B: "{{get(imix, 'imix.uplink.512B', '0') }}"
45                 570B: "{{get(imix, 'imix.uplink.570B', '0') }}"
46                 1024B: "{{get(imix, 'imix.uplink.1024B', '0') }}"
47                 1280B: "{{get(imix, 'imix.uplink.1280B', '0') }}"
48                 1400B: "{{get(imix, 'imix.uplink.1400B', '0') }}"
49                 1500B: "{{get(imix, 'imix.uplink.1500B', '0') }}"
50                 1518B: "{{get(imix, 'imix.uplink.1518B', '0') }}"
51
52         outer_l3v4:
53             proto: "udp"
54             srcip4: "{{get(flow, 'flow.src_ip_0', '1.1.1.1-1.15.255.255') }}"
55             dstip4: "{{get(flow, 'flow.dst_ip_0', '90.90.1.1-90.105.255.255') }}"
56             count: "{{get(flow, 'flow.count', '1') }}"
57             srcseed: "{{get(flow, 'flow.srcseed', '1') }}"
58             dstseed: "{{get(flow, 'flow.dstseed', '1') }}"
59             ttl: 32
60             dscp: 0
61         outer_l4:
62             srcport: "{{get(flow, 'flow.src_port_0', '1234') }}"
63             dstport: "{{get(flow, 'flow.dst_port_0', '2001') }}"
64             count: "{{get(flow, 'flow.count', '1') }}"
65             seed: "{{get(flow, 'flow.seed', '1') }}"
66 downlink_0:
67       ipv4:
68         id: 2
69         outer_l2:
70             framesize:
71                 64B: "{{get(imix, 'imix.downlink.64B', '0') }}"
72                 128B: "{{get(imix, 'imix.downlink.128B', '0') }}"
73                 256B: "{{get(imix, 'imix.downlink.256B', '0') }}"
74                 373b: "{{get(imix, 'imix.downlink.373B', '0') }}"
75                 512B: "{{get(imix, 'imix.downlink.512B', '0') }}"
76                 570B: "{{get(imix, 'imix.downlink.570B', '0') }}"
77                 1024B: "{{get(imix, 'imix.downlink.1024B', '0') }}"
78                 1280B: "{{get(imix, 'imix.downlink.1280B', '0') }}"
79                 1400B: "{{get(imix, 'imix.downlink.1400B', '0') }}"
80                 1500B: "{{get(imix, 'imix.downlink.1500B', '0') }}"
81                 1518B: "{{get(imix, 'imix.downlink.1518B', '0') }}"
82
83         outer_l3v4:
84             proto: "udp"
85             srcip4: "{{get(flow, 'flow.dst_ip_0', '1.1.1.1-1.15.255.255') }}"
86             dstip4: "{{get(flow, 'flow.src_ip_0', '90.90.1.1-90.105.255.255') }}"
87             {% if flow.flow.public_ip_0 is defined %}
88             dstip4: "{{get(flow, 'flow.public_ip_0', '90.90.1.1-90.105.255.255') }}"
89             {% endif %}
90             count: "{{get(flow, 'flow.count', '1') }}"
91             srcseed: "{{get(flow, 'flow.srcseed', '1') }}"
92             dstseed: "{{get(flow, 'flow.dstseed', '1') }}"
93             ttl: 32
94             dscp: 0
95         outer_l4:
96             srcport: "{{get(flow, 'flow.src_port_0', '1234') }}"
97             dstport: "{{get(flow, 'flow.dst_port_0', '2001') }}"
98             count: "{{get(flow, 'flow.count', '1') }}"
99             seed: "{{get(flow, 'flow.seed', '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                 1024B: "{{get(imix, 'imix.uplink.1024B', '0') }}"
112                 1280B: "{{get(imix, 'imix.uplink.1280B', '0') }}"
113                 1400B: "{{get(imix, 'imix.uplink.1400B', '0') }}"
114                 1500B: "{{get(imix, 'imix.uplink.1500B', '0') }}"
115                 1518B: "{{get(imix, 'imix.uplink.1518B', '0') }}"
116
117         outer_l3v4:
118             proto: "udp"
119             srcip4: "{{get(flow, 'flow.src_ip_1', '1.1.1.1-1.15.255.255') }}"
120             dstip4: "{{get(flow, 'flow.dst_ip_1', '90.90.1.1-90.105.255.255') }}"
121             count: "{{get(flow, 'flow.count', '1') }}"
122             srcseed: "{{get(flow, 'flow.srcseed', '1') }}"
123             dstseed: "{{get(flow, 'flow.dstseed', '1') }}"
124             ttl: 32
125             dscp: 0
126         outer_l4:
127             srcport: "{{get(flow, 'flow.src_port_1', '1234') }}"
128             dstport: "{{get(flow, 'flow.dst_port_1', '2001') }}"
129             count: "{{get(flow, 'flow.count', '1') }}"
130             seed: "{{get(flow, 'flow.seed', '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', '1.1.1.1-1.15.255.255') }}"
151             dstip4: "{{get(flow, 'flow.src_ip_1', '90.90.1.1-90.105.255.255') }}"
152             {% if flow.public_ip_1 is defined %}
153             dstip4: "{{get(flow, 'flow.public_ip_1', '90.90.1.1-90.105.255.255') }}"
154             {% endif %}
155             count: "{{get(flow, 'flow.count', '1') }}"
156             srcseed: "{{get(flow, 'flow.srcseed', '1') }}"
157             dstseed: "{{get(flow, 'flow.dstseed', '1') }}"
158             ttl: 32
159             dscp: 0
160         outer_l4:
161             srcport: "{{get(flow, 'flow.dst_port_1', '1234') }}"
162             dstport: "{{get(flow, 'flow.src_port_1', '2001') }}"
163             count: "{{get(flow, 'flow.count', '1') }}"
164             seed: "{{get(flow, 'flow.seed', '1') }}"