Support packets in flight
[samplevnf.git] / VNFs / DPPD-PROX / config / bng-1q-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 system that handles the same workload as
19 ; config/bng-4ports.cfg. The difference is that on each of the interfaces, only
20 ; one queue is used. Use-cases for this configuration include running in a
21 ; virtualized environment using SRIOV.
22 ;;
23
24 [eal options]
25 -n=4 ; force number of memory channels
26 no-output=no ; disable DPDK debug output
27
28 [port 0]
29 name=cpe0
30 mac=hardware
31 [port 1]
32 name=inet0
33 mac=hardware
34 [port 2]
35 name=cpe1
36 mac=hardware
37 [port 3]
38 name=inet1
39 mac=hardware
40 [variables]
41 ;$wk=3s0,3s0h; 2 workers
42 ;$wk=3s0-4s0,3s0h-4s0h; 4 workers
43 ;$wk=3s0-5s0,3s0h-5s0h; 6 workers
44 $wk=5s0-8s0,5s0h-8s0h; 8 workers
45 ;$wk=3s0-7s0,3s0h-7s0h; 10 workers
46 ;$wk=3s0-8s0,3s0h-8s0h; 12 workers
47 [lua]
48 lpm4 = dofile("ipv4.lua")
49 user_table = dofile("user_table-65K-bng.lua")
50 [defaults]
51 mempool size=16K
52
53 [global]
54 start time=20
55 name=BNG (1Q)
56
57 [core 0s0]
58 mode=master
59 ; IPv4
60 ;*****************************************************************************************
61 ;##### Load Balancing receiving from CPE and from Internet ####
62 [core 1s0]
63 name=LB-cpe
64 task=0
65 mode=nop
66 rx ring=yes
67 tx port=cpe0
68 task=1
69 mode=lbqinq
70 rx port=cpe0
71 tx cores=(${wk})t0 proto=ipv4
72 tx cores=(${wk})t0p proto=arp
73
74 [core 2s0]
75 name=LB-inet
76 task=0
77 mode=nop
78 rx ring=yes
79 tx port=inet0
80 task=1
81 mode=lbnetwork
82 rx port=inet0
83 untag mpls=yes
84 tx cores=(${wk})t1 proto=ipv4
85
86 [core 3s0]
87 name=LB-cpe
88 task=0
89 mode=nop
90 rx ring=yes
91 tx port=cpe1
92 task=1
93 mode=lbqinq
94 rx port=cpe1
95 tx cores=(${wk})t0 proto=ipv4
96 tx cores=(${wk})t0p proto=arp
97
98 [core 4s0]
99 name=LB-inet
100 task=0
101 mode=nop
102 rx ring=yes
103 tx port=inet1
104 task=1
105 mode=lbnetwork
106 untag mpls=yes
107 rx port=inet1
108 tx cores=(${wk})t1 proto=ipv4
109
110 ;*****************************************************************************************
111 ;#### Workers receiving from LB
112 ;#### Task 0: QinQ decapsulation + gre encapsulation + routing
113 ;#### Task 1: ARP
114 ;#### Task 2: GRE depcapsulation + QinQ encapsulation + use learned mac
115 [core $wk]
116 name=Worker
117 task=0
118 mode=qinqdecapv4
119 rx ring=yes
120 tx cores from routing table=2s0,4s0
121 route table=lpm4
122 local ipv4=21.22.23.24
123 user table=user_table
124 handle arp=yes
125
126 task=1
127 mode=qinqencapv4
128 rx ring=yes
129 user table=user_table
130 tx cores from cpe table=1s0,3s0 remap=cpe0,cpe1