Addition of storage of extra counters for Grafana
[yardstick.git] / samples / vnf_samples / nsut / prox / configs / handle_lw_aftr-4.cfg
1 # Copyright (c) 2016-2017 Intel Corporation
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #      http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14 #
15 #
16 # This configuration creates the functionality of a lwAFTR component of the
17 # lw4over6 architecture as described in IETF draft available at:
18 #   http://tools.ietf.org/id/draft-ietf-softwire-lw4over6-13.txt
19 # The lwAFTR simply terminates IPv6 tunnels that carry IPv4 traffic for many
20 # customers (one tunnel per customer). It consists of two tasks:
21 # 1) ipv6_encap that encapsulates IPv4 packets into IPv6 and sends those tunnel
22 #    packets towards the customer tunnel endpoint. For this, it must use a
23 #    binding table that associates with each tunnel, a public IPv4 address and a
24 #    set of ports.
25 # 2) ipv6_decap which handles packets arriving from the tunnel, checks they use
26 #    a source IPv4 address and port combination that matches their originating
27 #    tunnel (based on the same binding table as used by ipv6_encap), removes the
28 #    IPv6 encapsulation and sends them out its "internet" interface.
29 # The binding table must be loaded in the [lua] section and assigned to the
30 # tasks using the "tun_bindings" parameter. This configuration loads its binding
31 # table from the provided ip6_tun_bind_65k.lua.
32 #
33
34 [lua]
35 bindings = dofile("ip6_tun_bind_65k.lua")
36
37 [variables]
38 $tun_hop_limit=5
39 $local_ipv6=fe80:0000:0000:0000:0100:00ff:fe00:0000
40 $lookup_port_mask=0xffc0
41 $master        =0
42 $core_inet_0   =1
43 $core_inet_1   =2
44 $core_lwb4_0   =3
45 $core_lwb4_1   =4
46
47 [eal options]
48 -n=4
49 no-output=no ; disable DPDK debug output
50
51 [port 0]
52 name=inet_0
53 mac=hardware
54 rx desc=2048
55 tx desc=2048
56 promiscuous=yes
57
58 [port 1]
59 name=lwB4_0
60 mac=hardware
61 rx desc=2048
62 tx desc=2048
63 promiscuous=yes
64
65 [port 2]
66 name=inet_1
67 mac=hardware
68 rx desc=2048
69 tx desc=2048
70 promiscuous=yes
71
72 [port 3]
73 name=lwB4_1
74 mac=hardware
75 rx desc=2048
76 tx desc=2048
77 promiscuous=yes
78
79 [defaults]
80 mempool size=32K
81 memcache size=512
82
83 [global]
84 start time=20
85 name=lwAFTR
86
87 [core $master]
88 mode=master
89
90 ;*****************************************************************************************
91 ;##### Send Internet IPv4 traffic into IPv6 tunnels, according to binding table ####
92 [core $core_inet_0]
93 name=v6_encap
94 task=0
95 mode=ipv6_encap
96 rx port=inet_0
97 tx cores=${self}t1
98 drop=no
99 local ipv6=$local_ipv6
100 tunnel hop limit=$tun_hop_limit
101 lookup port mask=$lookup_port_mask
102 tun_bindings=bindings
103
104 name=tx_lwb4_0
105 task=1
106 mode=l2fwd
107 dst mac=@@tester_p1
108 rx ring=yes
109 tx port=lwB4_0
110 drop=no
111
112 [core $core_inet_1]
113 name=v6_encap
114 task=0
115 mode=ipv6_encap
116 rx port=inet_1
117 tx cores=${self}t1
118 drop=no
119 local ipv6=$local_ipv6
120 tunnel hop limit=$tun_hop_limit
121 lookup port mask=$lookup_port_mask
122 tun_bindings=bindings
123
124 name=tx_lwb4_1
125 task=1
126 mode=l2fwd
127 dst mac=@@tester_p3
128 rx ring=yes
129 tx port=lwB4_1
130 drop=no
131
132 ;*****************************************************************************************
133 ;##### Terminate IPv6 tunnels and transmit IPv4 out to Internet ####
134 ;# Binding table is checked to ensure src IPv4 address and port combo is allocated to the originating tunnel
135 [core $core_lwb4_0]
136 name=v6_decap
137 task=0
138 mode=ipv6_decap
139 rx port=lwB4_0
140 tx cores=${self}t1
141 drop=no
142 local ipv6=$local_ipv6
143 tunnel hop limit=$tun_hop_limit
144 lookup port mask=$lookup_port_mask
145 tun_bindings=bindings
146
147 name=tx_inet_0
148 task=1
149 mode=l2fwd
150 dst mac=@@tester_p0
151 rx ring=yes
152 tx port=inet_0
153 drop=no
154
155 [core $core_lwb4_1]
156 name=v6_decap
157 task=0
158 mode=ipv6_decap
159 rx port=lwB4_1
160 tx cores=${self}t1
161 drop=no
162 local ipv6=$local_ipv6
163 tunnel hop limit=$tun_hop_limit
164 lookup port mask=$lookup_port_mask
165 tun_bindings=bindings
166
167 name=tx_inet_1
168 task=1
169 mode=l2fwd
170 dst mac=@@tester_p2
171 rx ring=yes
172 tx port=inet_1
173 drop=no
174
175