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 ; Compared to config/bng-4ports.cfg, this configuration sets up a BNG with QoS
19 ; functionality. In total, an extra eight cores (four physical cores) are needed
20 ; to run this configuration. Four cores are used for QoS, two cores are assigned
21 ; with the task of classifying upstream packets and two cores are assigned with
22 ; transmitting downstream packets.
26 -n=4 ; force number of memory channels
27 no-output=no ; disable DPDK debug output
42 ;uncomment one of the following to change the number of workers
43 ;$wk=7s0,7s0h; 2 workers
44 ;$wk=7s0-8s0,7s0h-8s0h; 4 workers
45 $wk=7s0-9s0,7s0h-9s0h; 6 workers
46 ;$wk=7s0-10s0,7s0h-10s0h; 8 workers
50 qinq tag=0xa888;0x0081
52 lpm4 = dofile("ipv4.lua")
53 dscp_table = dofile("dscp.lua")
54 user_table = dofile("user_table-65K-bng.lua")
62 ;*****************************************************************************************
63 ;##### Load Balancing receiving from CPE and from Internet ####
69 tx cores=(${wk})t0 proto=ipv4
70 tx cores=(${wk})t0p proto=arp
79 tx cores=(${wk})t1 proto=ipv4
86 tx cores=(${wk})t0 proto=ipv4
87 tx cores=(${wk})t0p proto=arp
96 tx cores=(${wk})t1 proto=ipv4
98 ;*****************************************************************************************
99 ;#### Workers receiving from LB
100 ;#### Task 0: QinQ decapsulation + gre encapsulation + routing
102 ;#### Task 2: GRE depcapsulation + QinQ encapsulation + use learned mac
108 tx ports from routing table=inet0,inet1
110 local ipv4=21.22.23.24
113 user table=user_table
118 tx cores from cpe table=3s0,4s0 remap=cpe0,cpe1 ;map packets going to cpe0 to 3s0 and cpe1 to 4s0
121 user table=user_table
123 ;*****************************************************************************************
124 ;#### Downstream QoS receiving from workers
125 ;#### classification done by workers
126 ;#### Downstream QoS = QoS core and TX core
136 user table=user_table
155 user table=user_table
165 ;*****************************************************************************************
166 ;#### upstream QoS receiving from CPE
167 ;#### classification done by RX, QoS core
168 ;#### upstream QoS = RX core (classify) + QoS core
177 user table=user_table
188 user table=user_table
198 user table=user_table
209 user table=user_table