Merge "Add Testcase for Prox Standalone SRIOV." into stable/gambia
[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   enable_latency: True
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             srcseed: "{{get(flow, 'flow.srcseed', '1') }}"
55             dstseed: "{{get(flow, 'flow.dstseed', '1') }}"
56             ttl: 32
57             dscp: 0
58         outer_l4:
59             srcport: "{{get(flow, 'flow.src_port_0', '1234') }}"
60             dstport: "{{get(flow, 'flow.dst_port_0', '2001') }}"
61             count: "{{get(flow, 'flow.count', '1') }}"
62             seed: "{{get(flow, 'flow.seed', '1') }}"
63 downlink_0:
64       ipv4:
65         id: 2
66         outer_l2:
67             framesize:
68                 64B: "{{get(imix, 'imix.downlink.64B', '0') }}"
69                 128B: "{{get(imix, 'imix.downlink.128B', '0') }}"
70                 256B: "{{get(imix, 'imix.downlink.256B', '0') }}"
71                 373b: "{{get(imix, 'imix.downlink.373B', '0') }}"
72                 512B: "{{get(imix, 'imix.downlink.512B', '0') }}"
73                 570B: "{{get(imix, 'imix.downlink.570B', '0') }}"
74                 1400B: "{{get(imix, 'imix.downlink.1400B', '0') }}"
75                 1500B: "{{get(imix, 'imix.downlink.1500B', '0') }}"
76                 1518B: "{{get(imix, 'imix.downlink.1518B', '0') }}"
77
78         outer_l3v4:
79             proto: "udp"
80             srcip4: "{{get(flow, 'flow.dst_ip_0', '1.1.1.1-1.15.255.255') }}"
81             dstip4: "{{get(flow, 'flow.public_ip_0', '10.0.2.1-10.0.2.255') }}"
82             count: "{{get(flow, 'flow.count', '1') }}"
83             srcseed: "{{get(flow, 'flow.srcseed', '1') }}"
84             dstseed: "{{get(flow, 'flow.dstseed', '1') }}"
85             ttl: 32
86             dscp: 0
87         outer_l4:
88             srcport: "{{get(flow, 'flow.src_port_0', '1234') }}"
89             dstport: "{{get(flow, 'flow.dst_port_0', '2001') }}"
90             count: "{{get(flow, 'flow.count', '1') }}"
91             seed: "{{get(flow, 'flow.seed', '1') }}"
92 uplink_1:
93       ipv4:
94         id: 3
95         outer_l2:
96             framesize:
97                 64B: "{{get(imix, 'imix.uplink.64B', '0') }}"
98                 128B: "{{get(imix, 'imix.uplink.128B', '0') }}"
99                 256B: "{{get(imix, 'imix.uplink.256B', '0') }}"
100                 373b: "{{get(imix, 'imix.uplink.373B', '0') }}"
101                 512B: "{{get(imix, 'imix.uplink.512B', '0') }}"
102                 570B: "{{get(imix, 'imix.uplink.570B', '0') }}"
103                 1400B: "{{get(imix, 'imix.uplink.1400B', '0') }}"
104                 1500B: "{{get(imix, 'imix.uplink.1500B', '0') }}"
105                 1518B: "{{get(imix, 'imix.uplink.1518B', '0') }}"
106
107         outer_l3v4:
108             proto: "udp"
109             srcip4: "{{get(flow, 'flow.src_ip_1', '1.1.1.1-1.15.255.255') }}"
110             dstip4: "{{get(flow, 'flow.dst_ip_1', '90.90.1.1-90.105.255.255') }}"
111             count: "{{get(flow, 'flow.count', '1') }}"
112             srcseed: "{{get(flow, 'flow.srcseed', '1') }}"
113             dstseed: "{{get(flow, 'flow.dstseed', '1') }}"
114             ttl: 32
115             dscp: 0
116         outer_l4:
117             srcport: "{{get(flow, 'flow.src_port_1', '1234') }}"
118             dstport: "{{get(flow, 'flow.dst_port_1', '2001') }}"
119             count: "{{get(flow, 'flow.count', '1') }}"
120             seed: "{{get(flow, 'flow.seed', '1') }}"
121 downlink_1:
122       ipv4:
123         id: 4
124         outer_l2:
125             framesize:
126                 64B: "{{get(imix, 'imix.downlink.64B', '0') }}"
127                 128B: "{{get(imix, 'imix.downlink.128B', '0') }}"
128                 256B: "{{get(imix, 'imix.downlink.256B', '0') }}"
129                 373b: "{{get(imix, 'imix.downlink.373B', '0') }}"
130                 512B: "{{get(imix, 'imix.downlink.512B', '0') }}"
131                 570B: "{{get(imix, 'imix.downlink.570B', '0') }}"
132                 1400B: "{{get(imix, 'imix.downlink.1400B', '0') }}"
133                 1500B: "{{get(imix, 'imix.downlink.1500B', '0') }}"
134                 1518B: "{{get(imix, 'imix.downlink.1518B', '0') }}"
135
136         outer_l3v4:
137             proto: "udp"
138             srcip4: "{{get(flow, 'flow.dst_ip_1', '1.1.1.1-1.15.255.255') }}"
139             dstip4: "{{get(flow, 'flow.public_ip_1', '10.0.2.1-10.0.2.255') }}"
140             count: "{{get(flow, 'flow.count', '1') }}"
141             srcseed: "{{get(flow, 'flow.srcseed', '1') }}"
142             dstseed: "{{get(flow, 'flow.dstseed', '1') }}"
143             ttl: 32
144             dscp: 0
145         outer_l4:
146             srcport: "{{get(flow, 'flow.dst_port_1', '1234') }}"
147             dstport: "{{get(flow, 'flow.src_port_1', '2001') }}"
148             count: "{{get(flow, 'flow.count', '1') }}"
149             seed: "{{get(flow, 'flow.seed', '1') }}"