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 system that handles the same workload as
19 ; config/bng-4ports.cfg, but on 8 ports instead of 4 and on CPU socket 1
20 ; instead of socket 0.
24 -n=4 ; force number of memory channels
25 no-output=no ; disable DPDK debug output
28 ;uncomment one of the following to change the number of worker threads
43 promiscuous=$promiscuous
50 promiscuous=$promiscuous
57 promiscuous=$promiscuous
64 promiscuous=$promiscuous
71 promiscuous=$promiscuous
78 promiscuous=$promiscuous
85 promiscuous=$promiscuous
92 promiscuous=$promiscuous
94 lpm4 = dofile("ipv4-4ports.lua")
95 dscp_table = dofile("dscp.lua")
96 user_table = dofile("user_table-131K-bng.lua")
98 wk="5s1-9s1,5s1h-9s1h"
99 name="BNG (" .. task_count(wk) .. " workers)"
109 unique mempool per socket=yes
118 ;*****************************************************************************************
119 ;##### Load Balancing receiving from CPE and from Internet ####
126 tx cores=(${wk})t1 proto=ipv4
137 tx cores=(${wk})t1 proto=ipv4
148 tx cores=(${wk})t1 proto=ipv4
159 tx cores=(${wk})t1 proto=ipv4
169 tx cores=(${wk})t0 proto=ipv4
170 tx cores=(${wk})t0p proto=arp
180 tx cores=(${wk})t0 proto=ipv4
181 tx cores=(${wk})t0p proto=arp
191 tx cores=(${wk})t0 proto=ipv4
192 tx cores=(${wk})t0p proto=arp
202 tx cores=(${wk})t0 proto=ipv4
203 tx cores=(${wk})t0p proto=arp
208 ;*****************************************************************************************
209 ;#### Worker Threads receiving from LB
210 ;#### Task 0: QinQ decapsulation + gre encapsulation + routing
212 ;#### Task 2: GRE depcapsulation + QinQ encapsulation + use learned mac
218 tx ports from routing table=inet0,inet1,inet2,inet3
220 local ipv4=21.22.23.24
223 cpe table timeout ms=15000
224 user table=user_table
228 rx ring=yes ; gre received from internal queue
229 tx ports from cpe table=cpe0,cpe1,cpe2,cpe3
231 user table=user_table