samples: Add generic L3 forwarder tests
[yardstick.git] / samples / vnf_samples / nsut / router / tc_ovs_rfc2544_ipv4_128Kflows_9cores_4ports_1024B_trex.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 ---
16 schema: yardstick:task:0.1
17 scenarios:
18 - type: NSPerf
19   traffic_profile: ../../traffic_profiles/ipv4_throughput-2.yaml
20   topology: router-tg-topology-4port.yaml
21   nodes:
22     tg__0: trafficgen_1.yardstick
23     vnf__0: vnf.yardstick
24 # Required for enabling NFVi collection
25     cpt__0: ovs_dpdk.yardstick
26   options:
27     framesize:
28       uplink: {1024B: 100}
29       downlink: {1024B: 100}
30     flow:
31       src_ip:
32         - '152.16.100.26-152.16.100.105'
33         - '152.16.101.26-152.16.101.105'
34       dst_ip:
35         - '152.16.40.26-152.16.40.105'
36         - '152.16.41.26-152.16.41.105'
37       src_port:
38         - '1234-1238'
39       dst_port:
40         - '2001-2004'
41       count: 128000
42     traffic_type: 4
43     rfc2544:
44       allowed_drop_rate: 0.0001 - 0.1
45     tg__0:
46       queues_per_port: 8
47     vnf__0:
48       nfvi_enable: True
49   runner:
50     type: Iteration
51     iterations: 10
52     interval: 35
53 contexts:
54    - name: yardstick
55      type: Node
56      file: /etc/yardstick/nodes/standalone/pod_ovs.yaml
57
58    - name: yardstick
59      type: Node
60      file: /etc/yardstick/nodes/standalone/pod_trex_4ports.yaml
61
62    - name: yardstick
63      type: StandaloneOvsDpdk
64      file: /etc/yardstick/nodes/standalone/pod_ovs.yaml
65      vm_deploy: True
66      ovs_properties:
67        version:
68          ovs: 2.7.0
69          dpdk: 16.11.1
70        pmd_threads: 8
71        # override pmd_threads to use NUMA 1 vcpus
72        pmd_cpu_mask: "0x3FC00000"
73        lcore_mask: "0x200000"
74        ram:
75          socket_0: 0
76          socket_1: 4096
77        queues: 2
78        vpath: "/usr/local"
79
80      flavor:
81        images: "/var/lib/libvirt/images/ubuntu_9cores.qcow2"
82        ram: 4096
83        hw_socket: 1
84        extra_specs:
85          hw:cpu_sockets: 1
86          hw:cpu_cores: 9
87          hw:cpu_threads: 1
88          cputune: "<cputune>
89     <vcpupin vcpu='0' cpuset='31'/>
90     <vcpupin vcpu='1' cpuset='32'/>
91     <vcpupin vcpu='2' cpuset='33'/>
92     <vcpupin vcpu='3' cpuset='34'/>
93     <vcpupin vcpu='4' cpuset='35'/>
94     <vcpupin vcpu='5' cpuset='36'/>
95     <vcpupin vcpu='6' cpuset='37'/>
96     <vcpupin vcpu='7' cpuset='38'/>
97     <vcpupin vcpu='8' cpuset='39'/>
98     <emulatorpin cpuset='31-39'/>
99                    </cputune>"
100
101        user: "root"
102        password: "password"
103      servers:
104        vnf:
105          network_ports:
106            mgmt:
107              ip: '10.166.31.252'
108              cidr: '10.166.31.252/28'
109            xe0:
110              - uplink_0
111            xe1:
112              - downlink_0
113            xe2:
114              - uplink_1
115            xe3:
116              - downlink_1
117      networks:
118        uplink_0:
119          port_num: 0
120          phy_port: "0000:88:00.0"
121          vpci: "0000:00:07.0"
122          cidr: '152.16.100.19/24'
123          gateway_ip: '152.16.100.20'
124        downlink_0:
125          port_num: 1
126          phy_port: "0000:d8:00.0"
127          vpci: "0000:00:08.0"
128          cidr: '152.16.40.19/24'
129          gateway_ip: '152.16.40.20'
130        uplink_1:
131          port_num: 2
132          phy_port: "0000:81:00.0"
133          vpci: "0000:00:09.0"
134          cidr: '152.16.101.19/24'
135          gateway_ip: '152.16.101.20'
136        downlink_1:
137          port_num: 3
138          phy_port: "0000:86:00.0"
139          vpci: "0000:00:0a.0"
140          cidr: '152.16.41.19/24'
141          gateway_ip: '152.16.41.20'