1 .. This work is licensed under a Creative Commons Attribution 4.0 International
3 .. http://creativecommons.org/licenses/by/4.0
4 .. (c) OPNFV, Intel Corporation and others.
6 SampleVNF - Config files
7 ========================
9 The configuration files are created based on the DUT test scenarios.
10 The example reference files are provided as part of the VNFs in the
13 Following parameters will define the config files.
15 1. Load balancing type: Hardware or Software
16 2. Traffic type: IPv4 or IPv6
17 3. Number of Port Pairs: Single or Multi
19 Following are the example configuration files for sampleVNFs.
23 The reference configuration files explained here are for Software and Hardware
24 loadbalancing with IPv4 traffic type and single port pair.
25 For other configurations liek IPv6 and Multi-port, refer to example config
26 files provided as part of the source code in config(VNFs/vCGNAPT/config) folder
29 1. SWLB, IPv4, Single Port Pair, 1WT:
47 prv_to_pub_map = (0, 1)
57 pipeline_txrx_type = RXRX
59 pktq_in = RXQ0.0 RXQ1.0
60 pktq_out = SWQ1 SWQ2 SWQ0
67 outport_offset = 136; 8
69 prv_que_handler = (0,)
82 max_clients_per_ip = 65535
83 max_port_per_client = 10
84 public_ip_port_range = 98103214:(1, 65535)
87 cgnapt_meta_offset = 128
88 prv_que_handler = (0,)
93 pipeline_txrx_type = TXTX
96 pktq_out = TXQ0.0 TXQ1.0
98 2. HWLB, IPv4, Single Port Pair, 1 WT:
100 This configuration doesn't require LOADB and TXRX pipelines
115 pktq_out = TXQ0.0 TXQ1.0
119 prv_to_pub_map = (0, 1)
129 pktq_in = RXQ0.0 RXQ1.0
130 pktq_out = TXQ0.1 TXQ1.1 SWQ0
137 max_clients_per_ip = 65535
138 max_port_per_client = 10
139 public_ip_port_range = 98103214:(1, 65535)
142 cgnapt_meta_offset = 128
143 prv_que_handler = (0,)
148 The reference configuration files explained here are for Software and Hardware
149 loadbalancing with IPv4 traffic type and single port pair.
150 For other configurations liek IPv6 and Multi-port, refer to example config
151 files provided as part of the source code in config(VNFs/vFW/config) folder
154 1. SWLB, IPv4, Single Port Pair, 4WT:
167 pktq_out = TXQ0.0 TXQ1.0
169 ; IPv4 ARP route table entries (dst_ip, mask, if_port, nh) hex values with no 0x
170 ; arp_route_tbl = (ac102814,ff000000,1,ac102814) (ca106414,ff000000,0,ca106414)
172 ; IPv6 ARP route table entries (dst_ip, mask, if_port, nh) hex values with no 0x
173 ;nd_route_tbl = (fec0::6a05:caff:fe30:21b0,64,0,fec0::6a05:caff:fe30:21b0)
174 ;nd_route_tbl = (2012::6a05:caff:fe30:2081,64,1,2012::6a05:caff:fe30:2081)
176 ; egress (private interface) info
179 ;for pub port <-> prv port mapping (prv, pub)
180 prv_to_pub_map = (0,1)
181 prv_que_handler = (0)
186 pktq_in = RXQ0.0 RXQ1.0
187 pktq_out = SWQ0 SWQ1 SWQ2
188 pipeline_txrx_type = RXRX
194 pktq_out = SWQ3 SWQ4 SWQ5 SWQ6 SWQ7 SWQ8 SWQ9 SWQ10
196 n_vnf_threads = 4 ; Number of worker threads
197 prv_que_handler = (0)
198 n_lb_tuples = 5 ; tuple(src_ip,dst_ip, src_port, dst_port, protocol)
205 pktq_out = SWQ11 SWQ12;TXQ0.0 TXQ1.0
207 n_rules = 4096 ; Max number of ACL rules
208 ;n_flows gets round up to power of 2
209 n_flows = 1048576 ; Max number of connections/flows per vFW WT
210 traffic_type = 4 ; IPv4 Traffic
211 ;traffic_type = 6 ; IPv6 Traffic
212 ; tcp_time_wait controls timeout for closed connection, normally 120
213 tcp_time_wait = 10 ; TCP Connection WAIT timeout
215 ;udp_unreplied and udp_replied controls udp "connection" timeouts, normally 30/180
216 udp_unreplied = 180 ; UDP timeouts for unreplied traffic
217 udp_replied = 180 ; UDP timeout for replied traffic
223 pktq_out = SWQ13 SWQ14;TXQ0.0 TXQ1.0
226 ;n_flows gets round up to power of 2
228 traffic_type = 4 ; IPv4 Traffic
229 ;traffic_type = 6 ; IPv6 Traffic
230 ; tcp_time_wait controls timeout for closed connection, normally 120
233 ;udp_unreplied and udp_replied controls udp "connection" timeouts, normally 30/180
241 pktq_out = SWQ15 SWQ16
244 ;n_flows gets round up to power of 2
246 traffic_type = 4 ; IPv4 Traffic
247 ;traffic_type = 6 ; IPv6 Traffic
248 ; tcp_time_wait controls timeout for closed connection, normally 120
251 ;udp_unreplied and udp_replied controls udp "connection" timeouts, normally 30/180
259 pktq_out = SWQ17 SWQ18
262 ;n_flows gets round up to power of 2
264 traffic_type = 4 ; IPv4 Traffic
265 ;traffic_type = 6 ; IPv6 Traffic
266 ; tcp_time_wait controls timeout for closed connection, normally 120
275 pktq_in = SWQ11 SWQ12 SWQ13 SWQ14 SWQ15 SWQ16 SWQ17 SWQ18
276 pktq_out = TXQ0.1 TXQ1.1 TXQ0.2 TXQ1.2 TXQ0.3 TXQ1.3 TXQ0.4 TXQ1.4
277 pipeline_txrx_type = TXTX
280 2. HWLB, IPv4, Single Port Pair, 4 WT:
282 This configuration doesn't require LOADB and TXRX pipelines
293 pktq_in = SWQ0 SWQ1 SWQ2 SWQ3
294 pktq_out = TXQ0.0 TXQ1.0
296 ; egress (private interface) info
299 ;for pub port <-> prv port mapping (prv, pub)
300 prv_to_pub_map = (0,1)
301 prv_que_handler = (0)
306 pktq_in = RXQ0.0 RXQ1.0
307 pktq_out = TXQ0.1 TXQ1.1 SWQ0
310 ;n_flows gets round up to power of 2
313 traffic_type = 4 ; IPv4 Traffic
314 ;traffic_type = 6 ; IPv6 Traffic
315 ; tcp_time_wait controls timeout for closed connection, normally 120
318 ;udp_unreplied and udp_replied controls udp "connection" timeouts, normally 30/180
325 pktq_in = RXQ0.1 RXQ1.1
326 pktq_out = TXQ0.2 TXQ1.2 SWQ1
329 ;n_flows gets round up to power of 2
332 traffic_type = 4 ; IPv4 Traffic
333 ;traffic_type = 6 ; IPv6 Traffic
334 ; tcp_time_wait controls timeout for closed connection, normally 120
337 ;udp_unreplied and udp_replied controls udp "connection" timeouts, normally 30/180
344 pktq_in = RXQ0.2 RXQ1.2
345 pktq_out = TXQ0.3 TXQ1.3 SWQ2
348 ;n_flows gets round up to power of 2
351 traffic_type = 4 ; IPv4 Traffic
352 ;traffic_type = 6 ; IPv6 Traffic
353 ; tcp_time_wait controls timeout for closed connection, normally 120
356 ;udp_unreplied and udp_replied controls udp "connection" timeouts, normally 30/180
363 pktq_in = RXQ0.3 RXQ1.3
364 pktq_out = TXQ0.4 TXQ1.4 SWQ3
367 ;n_flows gets round up to power of 2
370 traffic_type = 4 ; IPv4 Traffic
371 ;traffic_type = 6 ; IPv6 Traffic
372 ; tcp_time_wait controls timeout for closed connection, normally 120
375 ;udp_unreplied and udp_replied controls udp "connection" timeouts, normally 30/180
383 The reference configuration files explained here are for Software and Hardware
384 loadbalancing with IPv4 traffic type and single port pair.
385 For other configurations liek IPv6 and Multi-port, refer to example config
386 files provided as part of the source code in config(VNFs/vACL/config) folder
389 1. SWLB, IPv4, Single Port Pair, 1 WT:
394 # add pci whitelist eg below
395 w = 05:00.0 ; Network Ports binded to dpdk
396 w = 05:00.1 ; Network Ports binded to dpdk
408 prv_to_pub_map = (0,1)
409 prv_que_handler = (0)
414 pktq_in = RXQ0.0 RXQ1.0
415 pktq_out = SWQ0 SWQ1 SWQ2
416 pipeline_txrx_type = RXRX
427 prv_que_handler = (0)
441 pktq_in = SWQ5 SWQ6 SWQ7
442 pktq_out = TXQ0.0 TXQ1.0
443 pipeline_txrx_type = TXTX
446 2. SWLB, IPv4, Single Port Pair, 1 WT:
451 # add pci whitelist eg below
463 pktq_out = TXQ0.0 TXQ1.0
465 prv_to_pub_map = (0,1)
466 prv_que_handler = (0)
471 pktq_in = RXQ0.0 RXQ1.0
472 pktq_out = TXQ0.1 TXQ1.1 SWQ0