aboutsummaryrefslogtreecommitdiffstats
path: root/samples/vnf_samples/nsut/cgnapt/cgnat.cfg
blob: 27169f8dcd8863deed8ae1657afc2ce39700f0f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# Copyright (c) 2016-2017 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

[PIPELINE0]
type = MASTER
core = 0
[PIPELINE1]
type =  ARPICMP
core = 1

pktq_in  = SWQ4
pktq_out = TXQ0.0 TXQ1.0 TXQ2.0 TXQ3.0

; egress (private interface) info
pktq_in_prv =  RXQ0.0
;
;for pub port <-> prv port mapping (prv, pub)
prv_to_pub_map = (0,1)
;lib_arp_debug = 0
[PIPELINE2]
type =  TIMER
core = 2
timer_dyn_timeout = 1000000
n_flows = 1048576
[PIPELINE3]
type = TXRX
core = 3
pipeline_txrx_type = RXRX
dest_if_offset = 176
pktq_in  = RXQ0.0 RXQ1.0 RXQ2.0 RXQ3.0
pktq_out = SWQ0 SWQ1 SWQ2 SWQ3 SWQ4
;
[PIPELINE4]
type = LOADB
core = 4
pktq_in  = SWQ0 SWQ1 SWQ2 SWQ3
pktq_out = SWQ4 SWQ5 SWQ6 SWQ7 SWQ8 SWQ9 SWQ10 SWQ11
outport_offset = 136; 8
n_vnf_threads = 2
;loadb_debug = 0
[PIPELINE5]
type = CGNAPT
core = 5
pktq_in  = SWQ4  SWQ5  SWQ6  SWQ7
pktq_out = SWQ12 SWQ13 SWQ14 SWQ15
;
; to make pipeline timer as 1-sec granularity
;
phyport_offset = 204
n_flows = 1048576
key_offset = 192;64
key_size = 8
hash_offset = 200;72
;cgnapt_debug = 2
;
timer_period = 100
max_clients_per_ip = 65535
max_port_per_client = 100
public_ip_port_range = 04040000:(1, 65535)
vnf_set = (3,4,5)
pkt_type = ipv4
cgnapt_meta_offset = 128
prv_que_handler = (0)


[PIPELINE7]
type = TXRX
core = 7
pipeline_txrx_type = TXTX
dest_if_offset = 176
pktq_in  = SWQ12  SWQ13  SWQ14  SWQ15  SWQ16  SWQ17  SWQ18  SWQ19
pktq_out = TXQ0.1 TXQ1.1 TXQ2.1 TXQ3.1 TXQ0.2 TXQ1.2 TXQ2.2 TXQ3.2