Fix Idle count
[samplevnf.git] / VNFs / DPPD-PROX / config / bng-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 sets up a simplified Border Network Gateway (BNG) on the
19 ; first socket (socket 0). Four load balancers (two physical cores, four logical
20 ; cores) and eight workers (four physical cores, eight logical cores) are set
21 ; up. The number of workers can be changed by uncommenting one of the lines in
22 ; the [variables] section. If this configuration is to be used on a system with
23 ; few cores, the number of workers need to be reduced.
24 ;;
25
26 [eal options]
27 -n=4 ; force number of memory channels
28 no-output=no ; disable DPDK debug output
29
30 [port 0]
31 name=cpe0
32 mac=hardware
33 [port 1]
34 name=inet0
35 mac=hardware
36 [port 2]
37 name=cpe1
38 mac=hardware
39 [port 3]
40 name=inet1
41 mac=hardware
42
43 [lua]
44 lpm4 = dofile("ipv4.lua")
45 user_table = dofile("user_table-65K-bng.lua")
46 [variables]
47 ;uncomment one of the following to change the number of workers
48 ;$wk=3s0,3s0h; 2 workers
49 ;$wk=3s0-4s0,3s0h-4s0h; 4 workers
50 ;$wk=3s0-5s0,3s0h-5s0h; 6 workers
51 $wk=3s0-6s0,3s0h-6s0h; 8 workers
52 ;$wk=3s0-7s0,3s0h-7s0h; 10 workers
53 ;$wk=3s0-8s0,3s0h-8s0h; 12 workers
54
55 [defaults]
56 mempool size=16K
57 qinq tag=0x0081
58 [global]
59 start time=20
60 name=BNG
61 [core 0s0]
62 mode=master
63 ; IPv4
64 ;*****************************************************************************************
65 ;##### Load Balancing receiving from CPE and from Internet ####
66 [core 1s0]
67 name=LB-cpe
68 task=0
69 mode=lbqinq
70 rx port=cpe0
71 tx cores=(${wk})t0 proto=ipv4
72 tx cores=(${wk})t0 proto=arp
73 drop=no
74
75 [core 1s0h]
76 name=LB-inet
77 task=0
78 mode=lbnetwork
79 rx port=inet0
80 untag mpls=yes
81 tx cores=(${wk})t1 proto=ipv4
82 drop=no
83
84 [core 2s0]
85 name=LB-cpe
86 task=0
87 mode=lbqinq
88 rx port=cpe1
89 tx cores=(${wk})t0 proto=ipv4
90 tx cores=(${wk})t0 proto=arp
91 drop=no
92
93 [core 2s0h]
94 name=LB-inet
95 task=0
96 mode=lbnetwork
97 untag mpls=yes
98 rx port=inet1
99 tx cores=(${wk})t1 proto=ipv4
100 drop=no
101
102 ;*****************************************************************************************
103 ;#### Workers receiving from LB
104 ;#### Task 0: QinQ decapsulation + gre encapsulation + routing
105 ;#### Task 1: ARP
106 ;#### Task 2: GRE depcapsulation + QinQ encapsulation + use learned mac
107 [core $wk]
108 name=Worker
109 task=0
110 mode=qinqdecapv4
111 rx ring=yes
112 tx ports from routing table=inet0,inet1
113 route table=lpm4
114 local ipv4=21.22.23.24
115 handle arp=yes
116 user table=user_table
117 drop=no
118 fast path handle arp=yes
119
120 task=1
121 mode=qinqencapv4
122 rx ring=yes ; gre received from internal queue
123 tx ports from cpe table=cpe0,cpe1
124 user table=user_table
125 drop=no