Merge "Specify the networks to be used per pod"
[yardstick.git] / samples / vnf_samples / traffic_profiles / ixia_ipv4_latency_vpe.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 schema: "isb:traffic_profile:0.1"
37
38 # This file is a template, it will be filled with values from tc.yaml before passing to the traffic generator
39
40 name:            rfc2544
41 description:     Traffic profile to run RFC2544 latency
42 traffic_profile:
43   traffic_type : IXIARFC2544Profile # defines traffic behavior - constant or look for highest possible throughput
44   frame_rate : 100  # pc of linerate
45   injection_time: {{ injection_time }}
46
47 uplink_0:
48       ipv4:
49         id: 1
50         outer_l2:
51             framesize:
52                 64B: "{{ get(imix, 'imix.uplink.imix_small', '0') }}"
53                 128B: "{{ get(imix, 'imix.uplink.imix_128B', '0') }}"
54                 256B: "{{ get(imix, 'imix.uplink.imix_256B', '0') }}"
55                 373b: "{{ get(imix, 'imix.uplink.imix_373B', '0') }}"
56                 570B: "{{get(imix, 'imix.uplink.imix_570B', '0') }}"
57                 1400B: "{{get(imix, 'imix.uplink.imix_1400B', '0') }}"
58                 1518B: "{{get(imix, 'imix.uplink.imix_1500B', '0') }}"
59
60             QinQ:
61                 S-VLAN:
62                     id: 128
63                     priority: 0
64                     cfi: 0
65                 C-VLAN:
66                     id: 512
67                     priority: 0
68                     cfi: 0
69
70         outer_l3v4:
71             proto: "tcp"
72             srcip4: "{{get(flow, 'flow.src_ip_0', '192.168.0.0-192.168.255.255') }}"
73             dstip4: "{{get(flow, 'flow.dst_ip_0', '192.16.0.0-192.16.0.31') }}"
74             count: "{{get(flow, 'flow.count', '1') }}"
75             ttl: 32
76             dscp: 32
77
78         outer_l4:
79             srcport: "{{get(flow, 'flow.src_port_0', '0') }}"
80             dstport: "{{get(flow, 'flow.dst_port_0', '0') }}"
81             count: "{{get(flow, 'flow.count', '1') }}"
82 downlink_0:
83       id: 2
84       ipv4:
85         outer_l2:
86             framesize:
87                 64B: "{{ get(imix, 'imix.uplink.imix_small', '0') }}"
88                 128B: "{{ get(imix, 'imix.uplink.imix_128B', '0') }}"
89                 256B: "{{ get(imix, 'imix.uplink.imix_256B', '0') }}"
90                 373b: "{{ get(imix, 'imix.uplink.imix_373B', '0') }}"
91                 570B: "{{get(imix, 'imix.uplink.imix_570B', '0') }}"
92                 1400B: "{{get(imix, 'imix.uplink.imix_1400B', '0') }}"
93                 1518B: "{{get(imix, 'imix.uplink.imix_1500B', '0') }}"
94
95         outer_l3v4:
96             proto: "tcp"
97             srcip4: "{{get(flow, 'flow.dst_ip_0', '192.16.0.0-192.16.0.31') }}"
98             dstip4: "{{get(flow, 'flow.src_ip_0', '192.168.0.0-192.168.255.255') }}"
99             count: "{{get(flow, 'flow.count', '1') }}"
100             ttl: 32
101             dscp: 32
102
103         outer_l4:
104             srcport: "{{get(flow, 'flow.dst_port_0', '0') }}"
105             dstport: "{{get(flow, 'flow.src_port_0', '0') }}"
106             count: "{{get(flow, 'flow.count', '1') }}"
107 uplink_1:
108       id: 3
109       ipv4:
110         outer_l2:
111             framesize:
112                 64B: "{{ get(imix, 'imix.uplink.imix_small', '0') }}"
113                 128B: "{{ get(imix, 'imix.uplink.imix_128B', '0') }}"
114                 256B: "{{ get(imix, 'imix.uplink.imix_256B', '0') }}"
115                 373b: "{{ get(imix, 'imix.uplink.imix_373B', '0') }}"
116                 570B: "{{get(imix, 'imix.uplink.imix_570B', '0') }}"
117                 1400B: "{{get(imix, 'imix.uplink.imix_1400B', '0') }}"
118                 1518B: "{{get(imix, 'imix.uplink.imix_1500B', '0') }}"
119
120             QinQ:
121                 S-VLAN:
122                     id: 128
123                     priority: 0
124                     cfi: 0
125                 C-VLAN:
126                     id: 512
127                     priority: 0
128                     cfi: 0
129
130         outer_l3v4:
131             proto: "tcp"
132             srcip4: "{{get(flow, 'flow.srcip_1', '192.168.0.0-192.168.255.255') }}"
133             dstip4: "{{get(flow, 'flow.dstip_1', '192.16.0.0-192.16.0.31') }}"
134             ttl: 32
135             dscp: 32
136
137         outer_l4:
138             srcport: "{{get(flow, 'flow.src_port_1', '0') }}"
139             dstport: "{{get(flow, 'flow.dst_port_1', '0') }}"
140             count: "{{get(flow, 'flow.count', '1') }}"
141 downlink_1:
142       id: 4
143       ipv4:
144         outer_l2:
145             framesize:
146                 64B: "{{ get(imix, 'imix.uplink.imix_small', '0') }}"
147                 128B: "{{ get(imix, 'imix.uplink.imix_128B', '0') }}"
148                 256B: "{{ get(imix, 'imix.uplink.imix_256B', '0') }}"
149                 373b: "{{ get(imix, 'imix.uplink.imix_373B', '0') }}"
150                 570B: "{{get(imix, 'imix.uplink.imix_570B', '0') }}"
151                 1400B: "{{get(imix, 'imix.uplink.imix_1400B', '0') }}"
152                 1518B: "{{get(imix, 'imix.uplink.imix_1500B', '0') }}"
153
154         outer_l3v4:
155             proto: "tcp"
156             srcip4: "{{get(flow, 'flow.dst_ip_1', '192.16.0.0-192.16.0.31') }}"
157             dstip4: "{{get(flow, 'flow.src_ip_1', '192.168.0.0-192.168.255.255') }}"
158             count: "{{get(flow, 'flow.count', '1') }}"
159             ttl: 32
160             dscp: 32
161
162         outer_l4:
163             srcport: "{{get(flow, 'flow.dst_port_1', '0') }}"
164             dstport: "{{get(flow, 'flow.src_port_1', '0') }}"
165             count: "{{get(flow, 'flow.count', '1') }}"