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:
48 prv_to_pub_map = (0, 1)
58 pipeline_txrx_type = RXRX
60 pktq_in = RXQ0.0 RXQ1.0
61 pktq_out = SWQ1 SWQ2 SWQ0
68 outport_offset = 136; 8
70 prv_que_handler = (0,)
83 max_clients_per_ip = 65535
84 max_port_per_client = 10
85 public_ip_port_range = 98103214:(1, 65535)
88 cgnapt_meta_offset = 128
89 prv_que_handler = (0,)
94 pipeline_txrx_type = TXTX
97 pktq_out = TXQ0.0 TXQ1.0
99 2. HWLB, IPv4, Single Port Pair, 1 WT:
101 This configuration doesn't require LOADB and TXRX pipelines
117 pktq_out = TXQ0.0 TXQ1.0
121 prv_to_pub_map = (0, 1)
131 pktq_in = RXQ0.0 RXQ1.0
132 pktq_out = TXQ0.1 TXQ1.1 SWQ0
139 max_clients_per_ip = 65535
140 max_port_per_client = 10
141 public_ip_port_range = 98103214:(1, 65535)
144 cgnapt_meta_offset = 128
145 prv_que_handler = (0,)
150 The reference configuration files explained here are for Software and Hardware
151 loadbalancing with IPv4 traffic type and single port pair.
152 For other configurations liek IPv6 and Multi-port, refer to example config
153 files provided as part of the source code in config(VNFs/vFW/config) folder
156 1. SWLB, IPv4, Single Port Pair, 4WT:
169 pktq_out = TXQ0.0 TXQ1.0
171 ; IPv4 ARP route table entries (dst_ip, mask, if_port, nh) hex values with no 0x
172 ; arp_route_tbl = (ac102814,ff000000,1,ac102814) (ca106414,ff000000,0,ca106414)
174 ; IPv6 ARP route table entries (dst_ip, mask, if_port, nh) hex values with no 0x
175 ;nd_route_tbl = (fec0::6a05:caff:fe30:21b0,64,0,fec0::6a05:caff:fe30:21b0)
176 ;nd_route_tbl = (2012::6a05:caff:fe30:2081,64,1,2012::6a05:caff:fe30:2081)
178 ; egress (private interface) info
181 ;for pub port <-> prv port mapping (prv, pub)
182 prv_to_pub_map = (0,1)
183 prv_que_handler = (0)
188 pktq_in = RXQ0.0 RXQ1.0
189 pktq_out = SWQ0 SWQ1 SWQ2
190 pipeline_txrx_type = RXRX
196 pktq_out = SWQ3 SWQ4 SWQ5 SWQ6 SWQ7 SWQ8 SWQ9 SWQ10
198 n_vnf_threads = 4 ; Number of worker threads
199 prv_que_handler = (0)
200 n_lb_tuples = 5 ; tuple(src_ip,dst_ip, src_port, dst_port, protocol)
207 pktq_out = SWQ11 SWQ12;TXQ0.0 TXQ1.0
209 n_rules = 4096 ; Max number of ACL rules
210 ;n_flows gets round up to power of 2
211 n_flows = 1048576 ; Max number of connections/flows per vFW WT
212 traffic_type = 4 ; IPv4 Traffic
213 ;traffic_type = 6 ; IPv6 Traffic
214 ; tcp_time_wait controls timeout for closed connection, normally 120
215 tcp_time_wait = 10 ; TCP Connection WAIT timeout
217 ;udp_unreplied and udp_replied controls udp "connection" timeouts, normally 30/180
218 udp_unreplied = 180 ; UDP timeouts for unreplied traffic
219 udp_replied = 180 ; UDP timeout for replied traffic
225 pktq_out = SWQ13 SWQ14;TXQ0.0 TXQ1.0
228 ;n_flows gets round up to power of 2
230 traffic_type = 4 ; IPv4 Traffic
231 ;traffic_type = 6 ; IPv6 Traffic
232 ; tcp_time_wait controls timeout for closed connection, normally 120
235 ;udp_unreplied and udp_replied controls udp "connection" timeouts, normally 30/180
243 pktq_out = SWQ15 SWQ16
246 ;n_flows gets round up to power of 2
248 traffic_type = 4 ; IPv4 Traffic
249 ;traffic_type = 6 ; IPv6 Traffic
250 ; tcp_time_wait controls timeout for closed connection, normally 120
253 ;udp_unreplied and udp_replied controls udp "connection" timeouts, normally 30/180
261 pktq_out = SWQ17 SWQ18
264 ;n_flows gets round up to power of 2
266 traffic_type = 4 ; IPv4 Traffic
267 ;traffic_type = 6 ; IPv6 Traffic
268 ; tcp_time_wait controls timeout for closed connection, normally 120
277 pktq_in = SWQ11 SWQ12 SWQ13 SWQ14 SWQ15 SWQ16 SWQ17 SWQ18
278 pktq_out = TXQ0.1 TXQ1.1 TXQ0.2 TXQ1.2 TXQ0.3 TXQ1.3 TXQ0.4 TXQ1.4
279 pipeline_txrx_type = TXTX
282 2. HWLB, IPv4, Single Port Pair, 4 WT:
284 This configuration doesn't require LOADB and TXRX pipelines
295 pktq_in = SWQ0 SWQ1 SWQ2 SWQ3
296 pktq_out = TXQ0.0 TXQ1.0
298 ; egress (private interface) info
301 ;for pub port <-> prv port mapping (prv, pub)
302 prv_to_pub_map = (0,1)
303 prv_que_handler = (0)
308 pktq_in = RXQ0.0 RXQ1.0
309 pktq_out = TXQ0.1 TXQ1.1 SWQ0
312 ;n_flows gets round up to power of 2
315 traffic_type = 4 ; IPv4 Traffic
316 ;traffic_type = 6 ; IPv6 Traffic
317 ; tcp_time_wait controls timeout for closed connection, normally 120
320 ;udp_unreplied and udp_replied controls udp "connection" timeouts, normally 30/180
327 pktq_in = RXQ0.1 RXQ1.1
328 pktq_out = TXQ0.2 TXQ1.2 SWQ1
331 ;n_flows gets round up to power of 2
334 traffic_type = 4 ; IPv4 Traffic
335 ;traffic_type = 6 ; IPv6 Traffic
336 ; tcp_time_wait controls timeout for closed connection, normally 120
339 ;udp_unreplied and udp_replied controls udp "connection" timeouts, normally 30/180
346 pktq_in = RXQ0.2 RXQ1.2
347 pktq_out = TXQ0.3 TXQ1.3 SWQ2
350 ;n_flows gets round up to power of 2
353 traffic_type = 4 ; IPv4 Traffic
354 ;traffic_type = 6 ; IPv6 Traffic
355 ; tcp_time_wait controls timeout for closed connection, normally 120
358 ;udp_unreplied and udp_replied controls udp "connection" timeouts, normally 30/180
365 pktq_in = RXQ0.3 RXQ1.3
366 pktq_out = TXQ0.4 TXQ1.4 SWQ3
369 ;n_flows gets round up to power of 2
372 traffic_type = 4 ; IPv4 Traffic
373 ;traffic_type = 6 ; IPv6 Traffic
374 ; tcp_time_wait controls timeout for closed connection, normally 120
377 ;udp_unreplied and udp_replied controls udp "connection" timeouts, normally 30/180
385 The reference configuration files explained here are for Software and Hardware
386 loadbalancing with IPv4 traffic type and single port pair.
387 For other configurations liek IPv6 and Multi-port, refer to example config
388 files provided as part of the source code in config(VNFs/vACL/config) folder
391 1. SWLB, IPv4, Single Port Pair, 1 WT:
396 # add pci whitelist eg below
397 w = 05:00.0 ; Network Ports binded to dpdk
398 w = 05:00.1 ; Network Ports binded to dpdk
410 prv_to_pub_map = (0,1)
411 prv_que_handler = (0)
416 pktq_in = RXQ0.0 RXQ1.0
417 pktq_out = SWQ0 SWQ1 SWQ2
418 pipeline_txrx_type = RXRX
429 prv_que_handler = (0)
443 pktq_in = SWQ5 SWQ6 SWQ7
444 pktq_out = TXQ0.0 TXQ1.0
445 pipeline_txrx_type = TXTX
448 2. SWLB, IPv4, Single Port Pair, 1 WT:
453 # add pci whitelist eg below
465 pktq_out = TXQ0.0 TXQ1.0
467 prv_to_pub_map = (0,1)
468 prv_que_handler = (0)
473 pktq_in = RXQ0.0 RXQ1.0
474 pktq_out = TXQ0.1 TXQ1.1 SWQ0