samples: Add generic L3 forwarder tests
[yardstick.git] / samples / vnf_samples / nsut / router / tc_ovs_rfc2544_ipv4_128Kflows_9cores_4ports_1518B_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: {1518B: 100}
29       downlink: {1518B: 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: 5
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        # 8 cores (CPU 22-29) in NUMA 1 of a 2 socket 20 cpus per socket
73        pmd_cpu_mask: "0x3FC00000"
74        lcore_mask: "0x200000"
75        ram:
76          socket_0: 0
77          socket_1: 4096
78        queues: 2
79        vpath: "/usr/local"
80
81      flavor:
82        images: "/var/lib/libvirt/images/ubuntu_9cores.qcow2"
83        ram: 4096
84        hw_socket: 1
85        extra_specs:
86          hw:cpu_sockets: 1
87          hw:cpu_cores: 9
88          hw:cpu_threads: 1
89          cputune: "<cputune>
90     <vcpupin vcpu='0' cpuset='31'/>
91     <vcpupin vcpu='1' cpuset='32'/>
92     <vcpupin vcpu='2' cpuset='33'/>
93     <vcpupin vcpu='3' cpuset='34'/>
94     <vcpupin vcpu='4' cpuset='35'/>
95     <vcpupin vcpu='5' cpuset='36'/>
96     <vcpupin vcpu='6' cpuset='37'/>
97     <vcpupin vcpu='7' cpuset='38'/>
98     <vcpupin vcpu='8' cpuset='39'/>
99     <emulatorpin cpuset='31-39'/>
100                    </cputune>"
101
102        user: "root"
103        password: "password"
104      servers:
105        vnf:
106          network_ports:
107            mgmt:
108              ip: '10.166.31.252'
109              cidr: '10.166.31.252/28'
110            xe0:
111              - uplink_0
112            xe1:
113              - downlink_0
114            xe2:
115              - uplink_1
116            xe3:
117              - downlink_1
118      networks:
119        uplink_0:
120          port_num: 0
121          phy_port: "0000:88:00.0"
122          vpci: "0000:00:07.0"
123          cidr: '152.16.100.19/24'
124          gateway_ip: '152.16.100.20'
125        downlink_0:
126          port_num: 1
127          phy_port: "0000:d8:00.0"
128          vpci: "0000:00:08.0"
129          cidr: '152.16.40.19/24'
130          gateway_ip: '152.16.40.20'
131        uplink_1:
132          port_num: 2
133          phy_port: "0000:81:00.0"
134          vpci: "0000:00:09.0"
135          cidr: '152.16.101.19/24'
136          gateway_ip: '152.16.101.20'
137        downlink_1:
138          port_num: 3
139          phy_port: "0000:86:00.0"
140          vpci: "0000:00:0a.0"
141          cidr: '152.16.41.19/24'
142          gateway_ip: '152.16.41.20'