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.
30 The reference configuration files explained here are for Software and Hardware
31 loadbalancing with IPv4 traffic type and single port pair.
32 For other configurations liek IPv6 and Multi-port, refer to example config
33 files provided as part of the source code in config(VNFs/vFW/config) folder
36 1. SWLB, IPv4, Single Port Pair, 4WT:
49 pktq_out = TXQ0.0 TXQ1.0
51 ; IPv4 ARP route table entries (dst_ip, mask, if_port, nh) hex values with no 0x
52 ; arp_route_tbl = (ac102814,ff000000,1,ac102814) (ca106414,ff000000,0,ca106414)
54 ; IPv6 ARP route table entries (dst_ip, mask, if_port, nh) hex values with no 0x
55 ;nd_route_tbl = (fec0::6a05:caff:fe30:21b0,64,0,fec0::6a05:caff:fe30:21b0)
56 ;nd_route_tbl = (2012::6a05:caff:fe30:2081,64,1,2012::6a05:caff:fe30:2081)
58 ; egress (private interface) info
61 ;for pub port <-> prv port mapping (prv, pub)
62 prv_to_pub_map = (0,1)
68 pktq_in = RXQ0.0 RXQ1.0
69 pktq_out = SWQ0 SWQ1 SWQ2
70 pipeline_txrx_type = RXRX
76 pktq_out = SWQ3 SWQ4 SWQ5 SWQ6 SWQ7 SWQ8 SWQ9 SWQ10
78 n_vnf_threads = 4 ; Number of worker threads
80 n_lb_tuples = 5 ; tuple(src_ip,dst_ip, src_port, dst_port, protocol)
87 pktq_out = SWQ11 SWQ12;TXQ0.0 TXQ1.0
89 n_rules = 4096 ; Max number of ACL rules
90 ;n_flows gets round up to power of 2
91 n_flows = 1048576 ; Max number of connections/flows per vFW WT
92 traffic_type = 4 ; IPv4 Traffic
93 ;traffic_type = 6 ; IPv6 Traffic
94 ; tcp_time_wait controls timeout for closed connection, normally 120
95 tcp_time_wait = 10 ; TCP Connection WAIT timeout
97 ;udp_unreplied and udp_replied controls udp "connection" timeouts, normally 30/180
98 udp_unreplied = 180 ; UDP timeouts for unreplied traffic
99 udp_replied = 180 ; UDP timeout for replied traffic
105 pktq_out = SWQ13 SWQ14;TXQ0.0 TXQ1.0
108 ;n_flows gets round up to power of 2
110 traffic_type = 4 ; IPv4 Traffic
111 ;traffic_type = 6 ; IPv6 Traffic
112 ; tcp_time_wait controls timeout for closed connection, normally 120
115 ;udp_unreplied and udp_replied controls udp "connection" timeouts, normally 30/180
123 pktq_out = SWQ15 SWQ16
126 ;n_flows gets round up to power of 2
128 traffic_type = 4 ; IPv4 Traffic
129 ;traffic_type = 6 ; IPv6 Traffic
130 ; tcp_time_wait controls timeout for closed connection, normally 120
133 ;udp_unreplied and udp_replied controls udp "connection" timeouts, normally 30/180
141 pktq_out = SWQ17 SWQ18
144 ;n_flows gets round up to power of 2
146 traffic_type = 4 ; IPv4 Traffic
147 ;traffic_type = 6 ; IPv6 Traffic
148 ; tcp_time_wait controls timeout for closed connection, normally 120
157 pktq_in = SWQ11 SWQ12 SWQ13 SWQ14 SWQ15 SWQ16 SWQ17 SWQ18
158 pktq_out = TXQ0.1 TXQ1.1 TXQ0.2 TXQ1.2 TXQ0.3 TXQ1.3 TXQ0.4 TXQ1.4
159 pipeline_txrx_type = TXTX
162 2. HWLB, IPv4, Single Port Pair, 4 WT:
164 This configuration doesn't require LOADB and TXRX pipelines
175 pktq_in = SWQ0 SWQ1 SWQ2 SWQ3
176 pktq_out = TXQ0.0 TXQ1.0
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 = TXQ0.1 TXQ1.1 SWQ0
192 ;n_flows gets round up to power of 2
195 traffic_type = 4 ; IPv4 Traffic
196 ;traffic_type = 6 ; IPv6 Traffic
197 ; tcp_time_wait controls timeout for closed connection, normally 120
200 ;udp_unreplied and udp_replied controls udp "connection" timeouts, normally 30/180
207 pktq_in = RXQ0.1 RXQ1.1
208 pktq_out = TXQ0.2 TXQ1.2 SWQ1
211 ;n_flows gets round up to power of 2
214 traffic_type = 4 ; IPv4 Traffic
215 ;traffic_type = 6 ; IPv6 Traffic
216 ; tcp_time_wait controls timeout for closed connection, normally 120
219 ;udp_unreplied and udp_replied controls udp "connection" timeouts, normally 30/180
226 pktq_in = RXQ0.2 RXQ1.2
227 pktq_out = TXQ0.3 TXQ1.3 SWQ2
230 ;n_flows gets round up to power of 2
233 traffic_type = 4 ; IPv4 Traffic
234 ;traffic_type = 6 ; IPv6 Traffic
235 ; tcp_time_wait controls timeout for closed connection, normally 120
238 ;udp_unreplied and udp_replied controls udp "connection" timeouts, normally 30/180
245 pktq_in = RXQ0.3 RXQ1.3
246 pktq_out = TXQ0.4 TXQ1.4 SWQ3
249 ;n_flows gets round up to power of 2
252 traffic_type = 4 ; IPv4 Traffic
253 ;traffic_type = 6 ; IPv6 Traffic
254 ; tcp_time_wait controls timeout for closed connection, normally 120
257 ;udp_unreplied and udp_replied controls udp "connection" timeouts, normally 30/180
265 The reference configuration files explained here are for Software and Hardware
266 loadbalancing with IPv4 traffic type and single port pair.
267 For other configurations liek IPv6 and Multi-port, refer to example config
268 files provided as part of the source code in config(VNFs/vACL/config) folder
271 1. SWLB, IPv4, Single Port Pair, 1 WT:
276 # add pci whitelist eg below
277 w = 05:00.0 ; Network Ports binded to dpdk
278 w = 05:00.1 ; Network Ports binded to dpdk
290 prv_to_pub_map = (0,1)
291 prv_que_handler = (0)
296 pktq_in = RXQ0.0 RXQ1.0
297 pktq_out = SWQ0 SWQ1 SWQ2
298 pipeline_txrx_type = RXRX
309 prv_que_handler = (0)
323 pktq_in = SWQ5 SWQ6 SWQ7
324 pktq_out = TXQ0.0 TXQ1.0
325 pipeline_txrx_type = TXTX
328 2. SWLB, IPv4, Single Port Pair, 1 WT:
333 # add pci whitelist eg below
345 pktq_out = TXQ0.0 TXQ1.0
347 prv_to_pub_map = (0,1)
348 prv_que_handler = (0)
353 pktq_in = RXQ0.0 RXQ1.0
354 pktq_out = TXQ0.1 TXQ1.1 SWQ0