Add "duration" parameter to test case definition
[yardstick.git] / samples / vnf_samples / traffic_profiles / ixia_ipv4_latency_cgnapt.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   duration: {{ duration }}
32
33 uplink_0:
34       ipv4:
35         id: 1
36         outer_l2:
37             framesize:
38                 64B: "{{get(imix, 'imix.uplink.64B', '0') }}"
39                 128B: "{{get(imix, 'imix.uplink.128B', '0') }}"
40                 256B: "{{get(imix, 'imix.uplink.256B', '0') }}"
41                 373b: "{{get(imix, 'imix.uplink.373B', '0') }}"
42                 512B: "{{get(imix, 'imix.uplink.512B', '0') }}"
43                 570B: "{{get(imix, 'imix.uplink.570B', '0') }}"
44                 1400B: "{{get(imix, 'imix.uplink.1400B', '0') }}"
45                 1500B: "{{get(imix, 'imix.uplink.1500B', '0') }}"
46                 1518B: "{{get(imix, 'imix.uplink.1518B', '0') }}"
47
48         outer_l3v4:
49             proto: "udp"
50             srcip4: "{{get(flow, 'flow.src_ip_0', '1.1.1.1-1.15.255.255') }}"
51             dstip4: "{{get(flow, 'flow.dst_ip_0', '90.90.1.1-90.105.255.255') }}"
52             count: "{{get(flow, 'flow.count', '1') }}"
53             ttl: 32
54             dscp: 0
55         outer_l4:
56             srcport: "{{get(flow, 'flow.src_port_0', '1234') }}"
57             dstport: "{{get(flow, 'flow.dst_port_0', '2001') }}"
58             count: "{{get(flow, 'flow.count', '1') }}"
59 downlink_0:
60       ipv4:
61         id: 2
62         outer_l2:
63             framesize:
64                 64B: "{{get(imix, 'imix.downlink.64B', '0') }}"
65                 128B: "{{get(imix, 'imix.downlink.128B', '0') }}"
66                 256B: "{{get(imix, 'imix.downlink.256B', '0') }}"
67                 373b: "{{get(imix, 'imix.downlink.373B', '0') }}"
68                 512B: "{{get(imix, 'imix.downlink.512B', '0') }}"
69                 570B: "{{get(imix, 'imix.downlink.570B', '0') }}"
70                 1400B: "{{get(imix, 'imix.downlink.1400B', '0') }}"
71                 1500B: "{{get(imix, 'imix.downlink.1500B', '0') }}"
72                 1518B: "{{get(imix, 'imix.downlink.1518B', '0') }}"
73
74         outer_l3v4:
75             proto: "udp"
76             srcip4: "{{get(flow, 'flow.dst_ip_0', '1.1.1.1-1.15.255.255') }}"
77             dstip4: "{{get(flow, 'flow.public_ip_0', '10.0.2.1-10.0.2.255') }}"
78             count: "{{get(flow, 'flow.count', '1') }}"
79             ttl: 32
80             dscp: 0
81         outer_l4:
82             srcport: "{{get(flow, 'flow.src_port_0', '1234') }}"
83             dstport: "{{get(flow, 'flow.dst_port_0', '2001') }}"
84             count: "{{get(flow, 'flow.count', '1') }}"
85 uplink_1:
86       ipv4:
87         id: 3
88         outer_l2:
89             framesize:
90                 64B: "{{get(imix, 'imix.uplink.64B', '0') }}"
91                 128B: "{{get(imix, 'imix.uplink.128B', '0') }}"
92                 256B: "{{get(imix, 'imix.uplink.256B', '0') }}"
93                 373b: "{{get(imix, 'imix.uplink.373B', '0') }}"
94                 512B: "{{get(imix, 'imix.uplink.512B', '0') }}"
95                 570B: "{{get(imix, 'imix.uplink.570B', '0') }}"
96                 1400B: "{{get(imix, 'imix.uplink.1400B', '0') }}"
97                 1500B: "{{get(imix, 'imix.uplink.1500B', '0') }}"
98                 1518B: "{{get(imix, 'imix.uplink.1518B', '0') }}"
99
100         outer_l3v4:
101             proto: "udp"
102             srcip4: "{{get(flow, 'flow.src_ip_1', '1.1.1.1-1.15.255.255') }}"
103             dstip4: "{{get(flow, 'flow.dst_ip_1', '90.90.1.1-90.105.255.255') }}"
104             count: "{{get(flow, 'flow.count', '1') }}"
105             ttl: 32
106             dscp: 0
107         outer_l4:
108             srcport: "{{get(flow, 'flow.src_port_1', '1234') }}"
109             dstport: "{{get(flow, 'flow.dst_port_1', '2001') }}"
110             count: "{{get(flow, 'flow.count', '1') }}"
111 downlink_1:
112       ipv4:
113         id: 4
114         outer_l2:
115             framesize:
116                 64B: "{{get(imix, 'imix.downlink.64B', '0') }}"
117                 128B: "{{get(imix, 'imix.downlink.128B', '0') }}"
118                 256B: "{{get(imix, 'imix.downlink.256B', '0') }}"
119                 373b: "{{get(imix, 'imix.downlink.373B', '0') }}"
120                 512B: "{{get(imix, 'imix.downlink.512B', '0') }}"
121                 570B: "{{get(imix, 'imix.downlink.570B', '0') }}"
122                 1400B: "{{get(imix, 'imix.downlink.1400B', '0') }}"
123                 1500B: "{{get(imix, 'imix.downlink.1500B', '0') }}"
124                 1518B: "{{get(imix, 'imix.downlink.1518B', '0') }}"
125
126         outer_l3v4:
127             proto: "udp"
128             srcip4: "{{get(flow, 'flow.dst_ip_1', '1.1.1.1-1.15.255.255') }}"
129             dstip4: "{{get(flow, 'flow.public_ip_1', '10.0.2.1-10.0.2.255') }}"
130             count: "{{get(flow, 'flow.count', '1') }}"
131             ttl: 32
132             dscp: 0
133         outer_l4:
134             srcport: "{{get(flow, 'flow.dst_port_1', '1234') }}"
135             dstport: "{{get(flow, 'flow.src_port_1', '2001') }}"
136             count: "{{get(flow, 'flow.count', '1') }}"