Merge "Add IOMMU to grub to support OVS/SRIOV SA contexts"
[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   enable_latency: True
47
48 uplink_0:
49       ipv4:
50         id: 1
51         outer_l2:
52             framesize:
53                 64B: "{{ get(imix, 'imix.uplink.imix_64B', '0') }}"
54                 128B: "{{ get(imix, 'imix.uplink.imix_128B', '0') }}"
55                 256B: "{{ get(imix, 'imix.uplink.imix_256B', '0') }}"
56                 373b: "{{ get(imix, 'imix.uplink.imix_373B', '0') }}"
57                 570B: "{{get(imix, 'imix.uplink.imix_570B', '0') }}"
58                 1400B: "{{get(imix, 'imix.uplink.imix_1400B', '0') }}"
59                 1518B: "{{get(imix, 'imix.uplink.imix_1500B', '0') }}"
60
61             QinQ:
62                 S-VLAN:
63                     id: 128
64                     priority: 0
65                     cfi: 0
66                 C-VLAN:
67                     id: 512
68                     priority: 0
69                     cfi: 0
70
71         outer_l3v4:
72             proto: "udp"
73             srcip4: "{{get(flow, 'flow.src_ip_0', '192.168.0.0-192.168.255.255') }}"
74             dstip4: "{{get(flow, 'flow.dst_ip_0', '192.16.0.0-192.16.0.31') }}"
75             count: "{{get(flow, 'flow.count', '1') }}"
76             srcseed: "{{get(flow, 'flow.srcseed', '1') }}"
77             dstseed: "{{get(flow, 'flow.dstseed', '1') }}"
78             ttl: 32
79             dscp: 32
80
81         outer_l4:
82             srcport: "{{get(flow, 'flow.src_port_0', '0') }}"
83             dstport: "{{get(flow, 'flow.dst_port_0', '0') }}"
84             count: "{{get(flow, 'flow.count', '1') }}"
85             seed: "{{get(flow, 'flow.seed', '1') }}"
86 downlink_0:
87       ipv4:
88         id: 2
89         outer_l2:
90             framesize:
91                 64B: "{{ get(imix, 'imix.uplink.imix_64B', '0') }}"
92                 128B: "{{ get(imix, 'imix.uplink.imix_128B', '0') }}"
93                 256B: "{{ get(imix, 'imix.uplink.imix_256B', '0') }}"
94                 373b: "{{ get(imix, 'imix.uplink.imix_373B', '0') }}"
95                 570B: "{{get(imix, 'imix.uplink.imix_570B', '0') }}"
96                 1400B: "{{get(imix, 'imix.uplink.imix_1400B', '0') }}"
97                 1518B: "{{get(imix, 'imix.uplink.imix_1500B', '0') }}"
98
99         outer_l3v4:
100             proto: "udp"
101             srcip4: "{{get(flow, 'flow.dst_ip_0', '192.16.0.0-192.16.0.31') }}"
102             dstip4: "{{get(flow, 'flow.src_ip_0', '192.168.0.0-192.168.255.255') }}"
103             count: "{{get(flow, 'flow.count', '1') }}"
104             srcseed: "{{get(flow, 'flow.srcseed', '1') }}"
105             dstseed: "{{get(flow, 'flow.dstseed', '1') }}"
106             ttl: 32
107             dscp: 32
108
109         outer_l4:
110             srcport: "{{get(flow, 'flow.dst_port_0', '0') }}"
111             dstport: "{{get(flow, 'flow.src_port_0', '0') }}"
112             count: "{{get(flow, 'flow.count', '1') }}"
113             seed: "{{get(flow, 'flow.seed', '1') }}"
114 uplink_1:
115       ipv4:
116         id: 3
117         outer_l2:
118             framesize:
119                 64B: "{{ get(imix, 'imix.uplink.imix_64B', '0') }}"
120                 128B: "{{ get(imix, 'imix.uplink.imix_128B', '0') }}"
121                 256B: "{{ get(imix, 'imix.uplink.imix_256B', '0') }}"
122                 373b: "{{ get(imix, 'imix.uplink.imix_373B', '0') }}"
123                 570B: "{{get(imix, 'imix.uplink.imix_570B', '0') }}"
124                 1400B: "{{get(imix, 'imix.uplink.imix_1400B', '0') }}"
125                 1518B: "{{get(imix, 'imix.uplink.imix_1500B', '0') }}"
126
127             QinQ:
128                 S-VLAN:
129                     id: 128
130                     priority: 0
131                     cfi: 0
132                 C-VLAN:
133                     id: 512
134                     priority: 0
135                     cfi: 0
136
137         outer_l3v4:
138             proto: "udp"
139             srcip4: "{{get(flow, 'flow.srcip_1', '192.168.0.0-192.168.255.255') }}"
140             dstip4: "{{get(flow, 'flow.dstip_1', '192.16.0.0-192.16.0.31') }}"
141             count: "{{get(flow, 'flow.count', '1') }}"
142             srcseed: "{{get(flow, 'flow.srcseed', '1') }}"
143             dstseed: "{{get(flow, 'flow.dstseed', '1') }}"
144             ttl: 32
145             dscp: 32
146
147         outer_l4:
148             srcport: "{{get(flow, 'flow.src_port_1', '0') }}"
149             dstport: "{{get(flow, 'flow.dst_port_1', '0') }}"
150             count: "{{get(flow, 'flow.count', '1') }}"
151             seed: "{{get(flow, 'flow.seed', '1') }}"
152 downlink_1:
153       ipv4:
154         id: 4
155         outer_l2:
156             framesize:
157                 64B: "{{ get(imix, 'imix.uplink.imix_64B', '0') }}"
158                 128B: "{{ get(imix, 'imix.uplink.imix_128B', '0') }}"
159                 256B: "{{ get(imix, 'imix.uplink.imix_256B', '0') }}"
160                 373b: "{{ get(imix, 'imix.uplink.imix_373B', '0') }}"
161                 570B: "{{get(imix, 'imix.uplink.imix_570B', '0') }}"
162                 1400B: "{{get(imix, 'imix.uplink.imix_1400B', '0') }}"
163                 1518B: "{{get(imix, 'imix.uplink.imix_1500B', '0') }}"
164
165         outer_l3v4:
166             proto: "udp"
167             srcip4: "{{get(flow, 'flow.dst_ip_1', '192.16.0.0-192.16.0.31') }}"
168             dstip4: "{{get(flow, 'flow.src_ip_1', '192.168.0.0-192.168.255.255') }}"
169             count: "{{get(flow, 'flow.count', '1') }}"
170             srcseed: "{{get(flow, 'flow.srcseed', '1') }}"
171             dstseed: "{{get(flow, 'flow.dstseed', '1') }}"
172             ttl: 32
173             dscp: 32
174
175         outer_l4:
176             srcport: "{{get(flow, 'flow.dst_port_1', '0') }}"
177             dstport: "{{get(flow, 'flow.src_port_1', '0') }}"
178             count: "{{get(flow, 'flow.count', '1') }}"
179             seed: "{{get(flow, 'flow.seed', '1') }}"