2 ;; Copyright (c) 2010-2017 Intel Corporation
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
8 ;; http://www.apache.org/licenses/LICENSE-2.0
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.
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.
27 -n=4 ; force number of memory channels
28 no-output=no ; disable DPDK debug output
44 lpm4 = dofile("ipv4.lua")
45 user_table = dofile("user_table-65K-bng.lua")
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
64 ;*****************************************************************************************
65 ;##### Load Balancing receiving from CPE and from Internet ####
71 tx cores=(${wk})t0 proto=ipv4
72 tx cores=(${wk})t0 proto=arp
81 tx cores=(${wk})t1 proto=ipv4
89 tx cores=(${wk})t0 proto=ipv4
90 tx cores=(${wk})t0 proto=arp
99 tx cores=(${wk})t1 proto=ipv4
102 ;*****************************************************************************************
103 ;#### Workers receiving from LB
104 ;#### Task 0: QinQ decapsulation + gre encapsulation + routing
106 ;#### Task 2: GRE depcapsulation + QinQ encapsulation + use learned mac
112 tx ports from routing table=inet0,inet1
114 local ipv4=21.22.23.24
116 user table=user_table
118 fast path handle arp=yes
122 rx ring=yes ; gre received from internal queue
123 tx ports from cpe table=cpe0,cpe1
124 user table=user_table