Merge "VNF_Catalogue Codebase"
[samplevnf.git] / VNFs / DPPD-PROX / config / bng-no-cpu-topology-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 [eal options]
18 -n=4 ; force number of memory channels
19 no-output=no ; disable DPDK debug output
20
21 [port 0]
22 name=cpe0
23 mac=00:00:00:00:00:01
24 [port 1]
25 name=inet0
26 mac=00:00:00:00:00:03
27 [port 2]
28 name=cpe1
29 mac=00:00:00:00:00:02
30 [port 3]
31 name=inet1
32 mac=00:00:00:00:00:04
33 [variables]
34 $wk=3-6,9-12
35
36 [defaults]
37 mempool size=16K
38 [lua]
39 lpm4 = dofile("ipv4.lua")
40 user_table = dofile("user_table-65K-bng.lua")
41 [global]
42 start time=20
43 name=vBNG
44
45 [core 0]
46 mode=master
47 ; IPv4
48 ;*****************************************************************************************
49 ;##### Load Balancing receiving from CPE and from Internet ####
50 [core 1]
51 name=LB-cpe
52 task=0
53 mode=lbqinq
54 rx port=cpe0
55 tx cores=(${wk})t0 proto=ipv4
56 tx cores=(${wk})t0p proto=arp
57
58 [core 7]
59 name=LB-inet
60 task=0
61 mode=lbnetwork
62 rx port=inet0
63 untag mpls=yes
64 tx cores=(${wk})t1 proto=ipv4
65
66 [core 2]
67 name=LB-cpe
68 task=0
69 mode=lbqinq
70 rx port=cpe1
71 tx cores=(${wk})t0 proto=ipv4
72 tx cores=(${wk})t0p proto=arp
73
74 [core 8]
75 name=LB-inet
76 task=0
77 mode=lbnetwork
78 untag mpls=yes
79 rx port=inet1
80 tx cores=(${wk})t1 proto=ipv4
81
82 ;*****************************************************************************************
83 ;#### Workers receiving from LB
84 ;#### Task 0: QinQ decapsulation + gre encapsulation + routing
85 ;#### Task 1: ARP
86 ;#### Task 2: GRE depcapsulation + QinQ encapsulation + use learned mac
87 [core $wk]
88 name=Worker
89 task=0
90 mode=qinqdecapv4
91 rx ring=yes
92 tx ports from routing table=inet0,inet1
93 route table=lpm4
94 local ipv4=21.22.23.24
95 handle arp=yes
96 user table=user_table
97
98 task=1
99 mode=qinqencapv4
100 rx ring=yes
101 tx ports from cpe table=cpe0,cpe1
102 user table=user_table