Merge "Resolve NameError in test_utils.py"
[yardstick.git] / samples / vnf_samples / nsut / prox / configs / handle_bng_qos-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 [lua]
17 lpm4 = dofile("ipv4.lua")
18 user_table = dofile("gre_table.lua")
19 dscp_table = dofile("dscp.lua")
20
21 [eal options]
22 -n=4 ; $sut_memory_channels
23 no-output=no ; disable DPDK debug output
24
25 [variables]
26 $master        =0
27 $core_lb_cpe0  =1
28 $core_inet0    =2
29 $core_lb_cpe1  =3
30 $core_inet1    =4
31 $core_workers  =13-14,15-16 ;sut_bng_qos_wk
32 $core_qos_cpe0 =5
33 $core_tx_cpe0  =6
34 $core_qos_cpe1 =7
35 $core_tx_cpe1  =8
36 $core_tx_inet0 =9
37 $core_cpe0     =10
38 $core_tx_inet1 =11
39 $core_cpe1     =12
40
41 [port 0]
42 name=cpe0
43 mac=hardware
44 rx desc=2048
45 tx desc=2048
46 [port 1]
47 name=inet0
48 mac=hardware
49 rx desc=2048
50 tx desc=2048
51 [port 2]
52 name=cpe1
53 mac=hardware
54 rx desc=2048
55 tx desc=2048
56 [port 3]
57 name=inet1
58 mac=hardware
59 rx desc=2048
60 tx desc=2048
61
62 [defaults]
63 mempool size=142K
64 memcache size=512
65 qinq tag=0xa888
66
67 [global]
68 start time=20
69 name=BNG + QoS
70
71 [core $master]
72 mode=master
73
74 ; IPv4
75 ;*****************************************************************************************
76 ;##### Load Balancing receiving from CPE and from Internet ####
77 [core $core_lb_cpe0]
78 name=LB-cpe
79 task=0
80 mode=lbqinq
81 rx ring=yes
82 tx cores=(${core_workers})t0 proto=ipv4
83 tx cores=(${core_workers})t0 proto=arp
84 drop=no
85
86 [core $core_inet0]
87 name=LB-inet
88 task=0
89 mode=lbnetwork
90 rx port=inet0
91 untag mpls=yes
92 tx cores=(${core_workers})t1 proto=ipv4
93 drop=no
94
95 [core $core_lb_cpe1]
96 name=LB-cpe
97 task=0
98 mode=lbqinq
99 rx ring=yes
100 tx cores=(${core_workers})t0 proto=ipv4
101 tx cores=(${core_workers})t0 proto=arp
102 drop=no
103
104 [core $core_inet1]
105 name=LB-inet
106 task=0
107 mode=lbnetwork
108 rx port=inet1
109 untag mpls=yes
110 tx cores=(${core_workers})t1 proto=ipv4
111 drop=no
112
113 ;*****************************************************************************************
114 ;#### Workers receiving from LB
115 ;#### Task 0: QinQ decapsulation + gre encapsulation + routing
116 ;#### Task 1: ARP
117 ;#### Task 2: GRE depcapsulation + QinQ encapsulation + use learned mac
118 [core $core_workers]
119 name=Worker
120 task=0
121 mode=qinqdecapv4
122 rx ring=yes
123 tx cores from routing table=${core_tx_inet0},${core_tx_inet1}
124 drop=no
125 route table=lpm4
126 local ipv4=21.22.23.24
127 handle arp=yes
128 user table=user_table
129 fast path handle arp=yes
130
131 task=1
132 mode=qinqencapv4
133 rx ring=yes
134 tx cores from cpe table=${core_qos_cpe0},${core_qos_cpe1} remap=cpe0,cpe1 ;map packets going to cpe0 to 3s0 and cpe1 to 4s0
135 drop=no
136 user table=user_table
137 dscp=dscp_table
138 classify=yes
139
140 ;*****************************************************************************************
141 ;#### Downstream QoS receiving from workers
142 ;#### classification done by workers
143 ;#### Downstream QoS = QoS core and TX core
144 [core $core_qos_cpe0]
145 name=txqos0
146 task=0
147 mode=qos
148 rx ring=yes
149 tx cores=(${core_tx_cpe0})t0
150 drop=no
151 pipe tc rate=125000
152 pipe tb rate=125000
153 user table=user_table
154
155 [core $core_tx_cpe0]
156 name=txnop0
157 task=0
158 mode=l2fwd
159 rx ring=yes
160 dst mac=@@tester_p0
161 tx port=cpe0
162 drop=no
163
164 [core $core_qos_cpe1]
165 name=txqos1
166 task=0
167 mode=qos
168 rx ring=yes
169 tx cores=(${core_tx_cpe1})t0
170 drop=no
171 pipe tc rate=125000
172 pipe tb rate=125000
173 user table=user_table
174
175 [core $core_tx_cpe1]
176 name=txnop1
177 task=0
178 mode=l2fwd
179 rx ring=yes
180 dst mac=@@tester_p2
181 tx port=cpe1
182 drop=no
183
184 ;*****************************************************************************************
185 ;#### upstream QoS receiving from CPE
186 ;#### classification done by RX, QoS core
187 ;#### upstream QoS = RX core (classify) + QoS core
188 [core $core_tx_inet0]
189 name=rxcl0
190 task=0
191 mode=l2fwd
192 rx ring=yes
193 dst mac=@@tester_p1
194 tx port=inet0
195 drop=no
196
197 [core $core_cpe0]
198 name=rxqos0
199 task=0
200 mode=qos
201 rx port=cpe0
202 tx cores=(${core_lb_cpe0})t0
203 drop=no
204 pipe tc rate=125000
205 pipe tb rate=125000
206 user table=user_table
207 dscp=dscp_table
208 classify=yes
209
210 [core $core_tx_inet1]
211 name=rxcl1
212 task=0
213 mode=l2fwd
214 rx ring=yes
215 dst mac=@@tester_p3
216 tx port=inet1
217 drop=no
218
219 [core $core_cpe1]
220 name=rxqos1
221 task=0
222 mode=qos
223 rx port=cpe1
224 tx cores=(${core_lb_cpe1})t0
225 drop=no
226 pipe tc rate=125000
227 pipe tb rate=125000
228 user table=user_table
229 dscp=dscp_table
230 classify=yes