diff options
Diffstat (limited to 'VNFs')
-rw-r--r-- | VNFs/vCGNAPT/config/sample_hwlb_2port_1WT.cfg | 41 | ||||
-rw-r--r-- | VNFs/vCGNAPT/config/sample_hwlb_2port_2WT.cfg | 57 | ||||
-rw-r--r-- | VNFs/vCGNAPT/config/sample_hwlb_2port_2WT.tc | 38 | ||||
-rw-r--r-- | VNFs/vCGNAPT/config/sample_swlb_2port_1WT.cfg | 65 | ||||
-rw-r--r-- | VNFs/vCGNAPT/config/sample_swlb_2port_2WT.cfg | 82 | ||||
-rw-r--r-- | VNFs/vCGNAPT/config/sample_swlb_2port_2WT.tc | 27 |
6 files changed, 310 insertions, 0 deletions
diff --git a/VNFs/vCGNAPT/config/sample_hwlb_2port_1WT.cfg b/VNFs/vCGNAPT/config/sample_hwlb_2port_1WT.cfg new file mode 100644 index 00000000..6a5e4af1 --- /dev/null +++ b/VNFs/vCGNAPT/config/sample_hwlb_2port_1WT.cfg @@ -0,0 +1,41 @@ +[EAL] +w = 05:00.0 +w = 05:00.1 + +[PIPELINE0] +type = MASTER +core = 0 + +[PIPELINE1] +type = ARPICMP +core = 1 +pktq_in = SWQ0 +pktq_out = TXQ0.0 TXQ1.0 + + +pktq_in_prv = RXQ0.0 +prv_to_pub_map = (0, 1) + +[PIPELINE2] +type = TIMER +core = 2 +n_flows = 1048576 + +[PIPELINE3] +type = CGNAPT +core = 3 +pktq_in = RXQ0.0 RXQ1.0 +pktq_out = TXQ0.1 TXQ1.1 SWQ0 +phyport_offset = 204 +n_flows = 1048576 +key_offset = 192;64 +key_size = 8 +hash_offset = 200;72 +timer_period = 100 +max_clients_per_ip = 65535 +max_port_per_client = 10 +public_ip_port_range = 98103214:(1, 65535) +vnf_set = (3,4,5) +pkt_type = ipv4 +cgnapt_meta_offset = 128 +prv_que_handler = (0,) diff --git a/VNFs/vCGNAPT/config/sample_hwlb_2port_2WT.cfg b/VNFs/vCGNAPT/config/sample_hwlb_2port_2WT.cfg new file mode 100644 index 00000000..def015b8 --- /dev/null +++ b/VNFs/vCGNAPT/config/sample_hwlb_2port_2WT.cfg @@ -0,0 +1,57 @@ +[EAL] +w = 05:00.0 +w = 05:00.1 + +[PIPELINE0] +type = MASTER +core = 0 + +[PIPELINE1] +type = ARPICMP +core = 1 +pktq_in = SWQ0 SWQ1 +pktq_out = TXQ0.0 TXQ1.0 + +pktq_in_prv = RXQ0.0 +prv_to_pub_map = (0, 1) + +[PIPELINE2] +type = TIMER +core = 2 +n_flows = 1048576 + +[PIPELINE3] +type = CGNAPT +core = 3 +pktq_in = RXQ0.0 RXQ1.0 +pktq_out = TXQ0.1 TXQ1.1 SWQ0 +phyport_offset = 204 +n_flows = 1048576 +key_offset = 192;64 +key_size = 8 +hash_offset = 200;72 +timer_period = 100 +max_clients_per_ip = 65535 +max_port_per_client = 10 +public_ip_port_range = 98103214:(1, 65535) +vnf_set = (3,4,5) +pkt_type = ipv4 +cgnapt_meta_offset = 128 +prv_que_handler = (0,) + +[PIPELINE4] +type = CGNAPT +core = 4 +pktq_in = RXQ0.1 RXQ1.1 +pktq_out = TXQ0.2 TXQ1.2 SWQ1 +phyport_offset = 204 +n_flows = 1048576 +key_offset = 192;64 +key_size = 8 +hash_offset = 200;72 +timer_period = 100 +max_clients_per_ip = 65535 +max_port_per_client = 10 +pkt_type = ipv4 +cgnapt_meta_offset = 128 +prv_que_handler = (0,) diff --git a/VNFs/vCGNAPT/config/sample_hwlb_2port_2WT.tc b/VNFs/vCGNAPT/config/sample_hwlb_2port_2WT.tc new file mode 100644 index 00000000..47ee0633 --- /dev/null +++ b/VNFs/vCGNAPT/config/sample_hwlb_2port_2WT.tc @@ -0,0 +1,38 @@ + +link 0 down +link 0 config 202.16.100.21 24 +link 0 up +link 1 down +link 1 config 172.16.40.21 24 +link 1 up + + +; uncomment to enable static NAPT +;p <cgnapt pipeline id> entry addm <prv_ipv4/6> prvport> <pub_ip> <pub_port> <phy_port> <ttl> <no_of_entries> <end_prv_port> <end_pub_port> +;p 3 entry addm 202.16.100.20 1234 152.16.40.10 1 0 500 65535 1234 65535 + +; uncomment below lines to enable static arp +;p 1 arpadd 0 202.16.100.20 00:00:00:00:00:01 +;p 1 arpadd 1 172.16.40.20 00:00:00:00:00:02 + +; uncomment below lines to enable static arp +;p 1 arpadd 0 0064:ff9b:0:0:0:0:ca10:6414 00:00:00:00:00:01 +;p 1 arpadd 1 0064:ff9b:0:0:0:0:ac10:2814 00:00:00:00:00:02 + +routeadd 0 202.16.100.20 0xff000000 +routeadd 2 172.16.40.20 0xff000000 + +;routeadd <port #> <ipv6 nhip address in hex> <Depth> +;routeadd 0 0064:ff9b:0:0:0:0:ca10:6414 64 +;routeadd 1 0064:ff9b:0:0:0:0:ac10:6414 64 + + +set fwd rxonly +set_sym_hash_ena_per_port 0 enable +set_hash_global_config 0 simple_xor ipv4-udp enable +set_sym_hash_ena_per_port 1 enable +set_hash_global_config 1 simple_xor ipv4-udp enable +set_hash_input_set 0 ipv4-udp src-ipv4 udp-src-port add +set_hash_input_set 1 ipv4-udp dst-ipv4 udp-dst-port add +set_hash_input_set 0 ipv4-udp src-ipv6 udp-src-port add +set_hash_input_set 1 ipv4-udp dst-ipv6 udp-dst-port add diff --git a/VNFs/vCGNAPT/config/sample_swlb_2port_1WT.cfg b/VNFs/vCGNAPT/config/sample_swlb_2port_1WT.cfg new file mode 100644 index 00000000..d0c0953b --- /dev/null +++ b/VNFs/vCGNAPT/config/sample_swlb_2port_1WT.cfg @@ -0,0 +1,65 @@ +[EAL] +w = 05:00.0 +w = 05:00.1 + +[PIPELINE0] +type = MASTER +core = 0 + +[PIPELINE1] +type = ARPICMP +core = 1 +pktq_in = SWQ0 +pktq_out = SWQ7 + +pktq_in_prv = RXQ0.0 +prv_to_pub_map = (0, 1) + +[PIPELINE2] +type = TIMER +core = 2 +n_flows = 1048576 + +[PIPELINE3] +type = TXRX +core = 3 +pipeline_txrx_type = RXRX +dest_if_offset = 176 +pktq_in = RXQ0.0 RXQ1.0 +pktq_out = SWQ1 SWQ2 SWQ0 + +[PIPELINE4] +type = LOADB +core = 4 +pktq_in = SWQ1 SWQ2 +pktq_out = SWQ3 SWQ4 +outport_offset = 136; 8 +n_vnf_threads = 1 +prv_que_handler = (0,) + +[PIPELINE5] +type = CGNAPT +core = 5 +pktq_in = SWQ3 SWQ4 +pktq_out = SWQ5 SWQ6 +phyport_offset = 204 +n_flows = 1048576 +key_offset = 192;64 +key_size = 8 +hash_offset = 200;72 +timer_period = 100 +max_clients_per_ip = 65535 +max_port_per_client = 10 +public_ip_port_range = 98103214:(1, 65535) +vnf_set = (3,4,5) +pkt_type = ipv4 +cgnapt_meta_offset = 128 +prv_que_handler = (0,) + +[PIPELINE6] +type = TXRX +core = 6 +pipeline_txrx_type = TXTX +dest_if_offset = 176 +pktq_in = SWQ5 SWQ6 +pktq_out = TXQ0.0 TXQ1.0 diff --git a/VNFs/vCGNAPT/config/sample_swlb_2port_2WT.cfg b/VNFs/vCGNAPT/config/sample_swlb_2port_2WT.cfg new file mode 100644 index 00000000..6f789b5b --- /dev/null +++ b/VNFs/vCGNAPT/config/sample_swlb_2port_2WT.cfg @@ -0,0 +1,82 @@ +[EAL] +w = 05:00.0 +w = 05:00.1 + +[PIPELINE0] +type = MASTER +core = 0 + +[PIPELINE1] +type = ARPICMP +core = 1 +pktq_in = SWQ0 +pktq_out = SWQ11 + +pktq_in_prv = RXQ0.0 +prv_to_pub_map = (0, 1) + +[PIPELINE2] +type = TIMER +core = 2 +n_flows = 1048576 + +[PIPELINE3] +type = TXRX +core = 3 +pipeline_txrx_type = RXRX +dest_if_offset = 176 +pktq_in = RXQ0.0 RXQ1.0 +pktq_out = SWQ1 SWQ2 SWQ0 + +[PIPELINE4] +type = LOADB +core = 4 +pktq_in = SWQ1 SWQ2 +pktq_out = SWQ3 SWQ4 SWQ5 SWQ6 +outport_offset = 136; 8 +n_vnf_threads = 2 +prv_que_handler = (0,) + +[PIPELINE5] +type = CGNAPT +core = 5 +pktq_in = SWQ3 SWQ4 +pktq_out = SWQ7 SWQ8 +phyport_offset = 204 +n_flows = 1048576 +key_offset = 192;64 +key_size = 8 +hash_offset = 200;72 +timer_period = 100 +max_clients_per_ip = 65535 +max_port_per_client = 10 +public_ip_port_range = 98103214:(1, 65535) +vnf_set = (3,4,5) +pkt_type = ipv4 +cgnapt_meta_offset = 128 +prv_que_handler = (0,) + +[PIPELINE6] +type = CGNAPT +core = 6 +pktq_in = SWQ5 SWQ6 +pktq_out = SWQ9 SWQ10 +phyport_offset = 204 +n_flows = 1048576 +key_offset = 192;64 +key_size = 8 +hash_offset = 200;72 +timer_period = 100 +max_clients_per_ip = 65535 +max_port_per_client = 10 +pkt_type = ipv4 +cgnapt_meta_offset = 128 +prv_que_handler = (0,) + +[PIPELINE7] +type = TXRX +core = 7 +pipeline_txrx_type = TXTX +dest_if_offset = 176 +pktq_in = SWQ7 SWQ8 SWQ9 SWQ10 SWQ11 +pktq_out = TXQ0.0 TXQ1.0 TXQ0.1 TXQ1.1 diff --git a/VNFs/vCGNAPT/config/sample_swlb_2port_2WT.tc b/VNFs/vCGNAPT/config/sample_swlb_2port_2WT.tc new file mode 100644 index 00000000..05ed058d --- /dev/null +++ b/VNFs/vCGNAPT/config/sample_swlb_2port_2WT.tc @@ -0,0 +1,27 @@ + +link 0 down +link 0 config 202.16.100.21 24 +link 0 up +link 1 down +link 1 config 172.16.40.21 24 +link 1 up + + +; uncomment to enable static NAPT +;p <cgnapt pipeline id> entry addm <prv_ipv4/6> prvport> <pub_ip> <pub_port> <phy_port> <ttl> <no_of_entries> <end_prv_port> <end_pub_port> +;p 5 entry addm 202.16.100.20 1234 152.16.40.10 1 0 500 65535 1234 65535 + +; uncomment below lines to enable static arp +;p 1 arpadd 0 202.16.100.20 00:00:00:00:00:01 +;p 1 arpadd 1 172.16.40.20 00:00:00:00:00:02 + +; uncomment below lines to enable static arp +;p 1 arpadd 0 0064:ff9b:0:0:0:0:ca10:6414 00:00:00:00:00:01 +;p 1 arpadd 1 0064:ff9b:0:0:0:0:ac10:2814 00:00:00:00:00:02 + +routeadd 0 202.16.100.20 0xff000000 +routeadd 2 172.16.40.20 0xff000000 + +;routeadd <port #> <ipv6 nhip address in hex> <Depth> +;routeadd 0 0064:ff9b:0:0:0:0:ca10:6414 64 +;routeadd 1 0064:ff9b:0:0:0:0:ac10:6414 64 |