Merge "task: use CONF_FILE from constants"
[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 schema: "isb:traffic_profile:0.1"
23
24 # This file is a template, it will be filled with values from tc.yaml before passing to the traffic generator
25
26 name:            rfc2544
27 description:     Traffic profile to run RFC2544 latency
28 traffic_profile:
29   traffic_type : IXIARFC2544Profile # defines traffic behavior - constant or look for highest possible throughput
30   frame_rate : 100  # pc of linerate
31   # that specifies a range (e.g. ipv4 address, port)
32
33
34 uplink_0:
35       ipv4:
36         id: 1
37         outer_l2:
38             framesize:
39                 64B: "{{get(imix, 'imix.uplink.64B', '0') }}"
40                 128B: "{{get(imix, 'imix.uplink.128B', '0') }}"
41                 256B: "{{get(imix, 'imix.uplink.256B', '0') }}"
42                 373b: "{{get(imix, 'imix.uplink.373B', '0') }}"
43                 512B: "{{get(imix, 'imix.uplink.512B', '0') }}"
44                 570B: "{{get(imix, 'imix.uplink.570B', '0') }}"
45                 1400B: "{{get(imix, 'imix.uplink.1400B', '0') }}"
46                 1500B: "{{get(imix, 'imix.uplink.1500B', '0') }}"
47                 1518B: "{{get(imix, 'imix.uplink.1518B', '0') }}"
48
49         outer_l3v4:
50             proto: "udp"
51             srcip4: "{{get(flow, 'flow.src_ip_0', '1.1.1.1-1.15.255.255') }}"
52             dstip4: "{{get(flow, 'flow.dst_ip_0', '90.90.1.1-90.105.255.255') }}"
53             count: "{{get(flow, 'flow.count', '1') }}"
54             ttl: 32
55             dscp: 0
56         outer_l4:
57             srcport: "{{get(flow, 'flow.src_port_0', '1234') }}"
58             dstport: "{{get(flow, 'flow.dst_port_0', '2001') }}"
59             count: "{{get(flow, 'flow.count', '1') }}"
60 downlink_0:
61       ipv4:
62         id: 2
63         outer_l2:
64             framesize:
65                 64B: "{{get(imix, 'imix.downlink.64B', '0') }}"
66                 128B: "{{get(imix, 'imix.downlink.128B', '0') }}"
67                 256B: "{{get(imix, 'imix.downlink.256B', '0') }}"
68                 373b: "{{get(imix, 'imix.downlink.373B', '0') }}"
69                 512B: "{{get(imix, 'imix.downlink.512B', '0') }}"
70                 570B: "{{get(imix, 'imix.downlink.570B', '0') }}"
71                 1400B: "{{get(imix, 'imix.downlink.1400B', '0') }}"
72                 1500B: "{{get(imix, 'imix.downlink.1500B', '0') }}"
73                 1518B: "{{get(imix, 'imix.downlink.1518B', '0') }}"
74
75         outer_l3v4:
76             proto: "udp"
77             srcip4: "{{get(flow, 'flow.dst_ip_0', '1.1.1.1-1.15.255.255') }}"
78             dstip4: "{{get(flow, 'flow.src_ip_0', '90.90.1.1-90.105.255.255') }}"
79             {% if flow.flow.public_ip_0 is defined %}
80             dstip4: "{{get(flow, 'flow.public_ip_0', '90.90.1.1-90.105.255.255') }}"
81             {% endif %}
82             count: "{{get(flow, 'flow.count', '1') }}"
83             ttl: 32
84             dscp: 0
85         outer_l4:
86             srcport: "{{get(flow, 'flow.src_port_0', '1234') }}"
87             dstport: "{{get(flow, 'flow.dst_port_0', '2001') }}"
88             count: "{{get(flow, 'flow.count', '1') }}"
89 uplink_1:
90       ipv4:
91         id: 3
92         outer_l2:
93             framesize:
94                 64B: "{{get(imix, 'imix.uplink.64B', '0') }}"
95                 128B: "{{get(imix, 'imix.uplink.128B', '0') }}"
96                 256B: "{{get(imix, 'imix.uplink.256B', '0') }}"
97                 373b: "{{get(imix, 'imix.uplink.373B', '0') }}"
98                 512B: "{{get(imix, 'imix.uplink.512B', '0') }}"
99                 570B: "{{get(imix, 'imix.uplink.570B', '0') }}"
100                 1400B: "{{get(imix, 'imix.uplink.1400B', '0') }}"
101                 1500B: "{{get(imix, 'imix.uplink.1500B', '0') }}"
102                 1518B: "{{get(imix, 'imix.uplink.1518B', '0') }}"
103
104         outer_l3v4:
105             proto: "udp"
106             srcip4: "{{get(flow, 'flow.src_ip_1', '1.1.1.1-1.15.255.255') }}"
107             dstip4: "{{get(flow, 'flow.dst_ip_1', '90.90.1.1-90.105.255.255') }}"
108             count: "{{get(flow, 'flow.count', '1') }}"
109             ttl: 32
110             dscp: 0
111         outer_l4:
112             srcport: "{{get(flow, 'flow.src_port_1', '1234') }}"
113             dstport: "{{get(flow, 'flow.dst_port_1', '2001') }}"
114             count: "{{get(flow, 'flow.count', '1') }}"
115 downlink_1:
116       ipv4:
117         id: 4
118         outer_l2:
119             framesize:
120                 64B: "{{get(imix, 'imix.downlink.64B', '0') }}"
121                 128B: "{{get(imix, 'imix.downlink.128B', '0') }}"
122                 256B: "{{get(imix, 'imix.downlink.256B', '0') }}"
123                 373b: "{{get(imix, 'imix.downlink.373B', '0') }}"
124                 512B: "{{get(imix, 'imix.downlink.512B', '0') }}"
125                 570B: "{{get(imix, 'imix.downlink.570B', '0') }}"
126                 1400B: "{{get(imix, 'imix.downlink.1400B', '0') }}"
127                 1500B: "{{get(imix, 'imix.downlink.1500B', '0') }}"
128                 1518B: "{{get(imix, 'imix.downlink.1518B', '0') }}"
129
130         outer_l3v4:
131             proto: "udp"
132             srcip4: "{{get(flow, 'flow.dst_ip_1', '1.1.1.1-1.15.255.255') }}"
133             dstip4: "{{get(flow, 'flow.src_ip_1', '90.90.1.1-90.105.255.255') }}"
134             {% if flow.public_ip_1 is defined %}
135             dstip4: "{{get(flow, 'flow.public_ip_1', '90.90.1.1-90.105.255.255') }}"
136             {% endif %}
137             count: "{{get(flow, 'flow.count', '1') }}"
138             ttl: 32
139             dscp: 0
140         outer_l4:
141             srcport: "{{get(flow, 'flow.dst_port_1', '1234') }}"
142             dstport: "{{get(flow, 'flow.src_port_1', '2001') }}"
143             count: "{{get(flow, 'flow.count', '1') }}"