Merge "[UDP_Replay] fixing of compiler warning"
[samplevnf.git] / VNFs / DPPD-PROX / config / bng-ovs-usv-4ports.cfg
1 ;;
2 ;; Copyright (c) 2010-2017 Intel Corporation
3 ;;
4 ;; Licensed under the Apache License, Version 2.0 (the "License");
5 ;; you may not use this file except in compliance with the License.
6 ;; You may obtain a copy of the License at
7 ;;
8 ;;     http://www.apache.org/licenses/LICENSE-2.0
9 ;;
10 ;; Unless required by applicable law or agreed to in writing, software
11 ;; distributed under the License is distributed on an "AS IS" BASIS,
12 ;; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 ;; See the License for the specific language governing permissions and
14 ;; limitations under the License.
15 ;;
16
17 ;;
18 ; This configuration is provided for virtualized environments running on top of
19 ; a soft-switch. Specifically, ingredients are Open vSwitch (openvswitch.org)
20 ; and Qemu version 1.6.2. Note that since the currently supported version of
21 ; Open vSwitch does not handle all the protocols that are used in the full BNG,
22 ; PROX has to be recompiled to use different packet processing paths as a
23 ; workaround. DPDK version 1.8.0 should be used with this configuration and it
24 ; has to be compiled with COMBINE_LIBS enabled:
25 ;   make install T=$RTE_TARGET CONFIG_RTE_BUILD_COMBINE_LIBS=y CONFIG_RTE_LIBRTE_VHOST=y
26 ; The following commands demonstrate how to set up Open vSwitch:
27 ;   git clone https://github.com/openvswitch/ovs.git
28 ;   cd ovs
29 ;   git checkout 5c62a855c7bb24424cbe7ec48ecf2f128db8b102
30 ;   ./boot.sh && ./configure --with-dpdk=$RTE_SDK/$RTE_TARGET --disable-ssl && make
31 ; This configuration is intended to be used in a VM with 4 virtual ports. This
32 ; means that 4 virtual ports (with type dpdkvhost) and 4 physical ports (with
33 ; type dpdk) will need to be added and connected through open-flow commands in
34 ; Open vSwitch. After Open vSwitch has been set up on the host, PROX needs to be
35 ; recompiled in the VM as follows before running it with this configuration:
36 ;   make BNG_QINQ=n MPLS_ROUTING=n
37 ;;
38
39 [eal options]
40 -n=4 ; force number of memory channels
41 no-output=no ; disable DPDK debug output
42
43 [port 0]
44 name=cpe0
45 mac=00:00:00:00:00:01
46 [port 1]
47 name=inet0
48 mac=00:00:00:00:00:03
49 [port 2]
50 name=cpe1
51 mac=00:00:00:00:00:02
52 [port 3]
53 name=inet1
54 mac=00:00:00:00:00:04
55 [variables]
56 $wk=5s0,6s0
57
58 [defaults]
59 mempool size=16K
60 [lua]
61 lpm4 = dofile("ipv4.lua")
62 user_table =dofile("user_table-65K-bng.lua")
63 [global]
64 start time=20
65 name=BNG (OVS)
66
67 [core 0s0]
68 mode=master
69 ; IPv4
70 ;*****************************************************************************************
71 ;##### Load Balancing receiving from CPE and from Internet ####
72 [core 1s0]
73 name=LB-cpe
74 task=0
75 mode=nop
76 rx ring=yes
77 tx port=cpe0
78 task=1
79 mode=lbqinq
80 rx port=cpe0
81 tx cores=(${wk})t0 proto=ipv4
82
83 [core 2s0]
84 name=LB-inet
85 task=0
86 mode=nop
87 rx ring=yes
88 tx port=inet0
89 task=1
90 mode=lbnetwork
91 rx port=inet0
92 untag mpls=yes
93 tx cores=(${wk})t1 proto=ipv4
94
95 [core 3s0]
96 name=LB-cpe
97 task=0
98 mode=nop
99 rx ring=yes
100 tx port=cpe1
101 task=1
102 mode=lbqinq
103 rx port=cpe1
104 tx cores=(${wk})t0 proto=ipv4
105
106 [core 4s0]
107 name=LB-inet
108 task=0
109 mode=nop
110 rx ring=yes
111 tx port=inet1
112 task=1
113 mode=lbnetwork
114 untag mpls=yes
115 rx port=inet1
116 tx cores=(${wk})t1 proto=ipv4
117
118 ;*****************************************************************************************
119 ;#### Workers receiving from LB
120 ;#### Task 0: Upstream traffic
121 ;#### Task 1: Downstream traffic
122 [core $wk]
123 name=Worker
124 task=0
125 mode=qinqdecapv4
126 rx ring=yes
127 tx cores from routing table=2s0,4s0
128 route table=lpm4
129 local ipv4=21.22.23.24
130 handle arp=no
131 user table=user_table
132
133 task=1
134 mode=qinqencapv4
135 rx ring=yes
136 tx cores from cpe table=1s0,3s0 remap=cpe0,cpe1
137 user table=user_table