Commit 29a001bd authored by Franck Messaoudi's avatar Franck Messaoudi

Update: change the default values for the maps

parent de11cb2a
...@@ -37,7 +37,7 @@ log_level: ...@@ -37,7 +37,7 @@ log_level:
# If you enable registration, the other NFs will use the NRF discovery mechanism # If you enable registration, the other NFs will use the NRF discovery mechanism
register_nf: register_nf:
general: yes general: no
http_version: 2 http_version: 2
...@@ -229,61 +229,42 @@ upf: ...@@ -229,61 +229,42 @@ upf:
support_features: support_features:
enable_bpf_datapath: yes # If "on": BPF is used as datapath else simpleswitch is used, DEFAULT= off enable_bpf_datapath: yes # If "on": BPF is used as datapath else simpleswitch is used, DEFAULT= off
enable_qos: yes enable_qos: yes
# OAI UPF EBPF MAP SIZES Configuration File # OAI UPF EBPF MAP SIZES Configuration File
# These configuration map entries define key parameters for optimizing memory allocation and tuning the UPF. # These configuration map entries define key parameters for optimizing memory allocation and tuning the UPF.
# The values set in this file directly impact the size of eBPF maps used for packet processing. # The values set in this file directly impact the size of eBPF maps used for packet processing.
# Configuration Parameters: Each parameter in this file controls a specific aspect of UPF behavior. # Configuration Parameters: Each parameter in this file controls a specific aspect of UPF behavior.
# 1. Network Interface Limits # 1. Network Interface Limits
# max_upf_interfaces (Default: 3)
# max_upf_interfaces (Default: 8)
# Specifies the maximum number of network interfaces that UPF can manage. # Specifies the maximum number of network interfaces that UPF can manage.
# Example: Physical/virtual interfaces for GTP-U traffic. # Example: Physical/virtual interfaces for GTP-U traffic.
# max_upf_redirect_interfaces (Default: 4) # max_upf_redirect_interfaces (Default: 2)
# Defines the maximum number of interfaces used for traffic redirection. # Defines the maximum number of interfaces used for traffic redirection.
# Example: Used in PDRs for forwarding packets to specific egress interfaces. # Example: Used in PDRs for forwarding packets to specific egress interfaces.
max_upf_interfaces: 3
max_upf_interfaces: 8 max_upf_redirect_interfaces: 2
max_upf_redirect_interfaces: 4
# 2. Session and Rule Limits # 2. Session and Rule Limits
# max_pdu_session (Default: 10,000) # max_pdu_session (Default: 10,000)
# Determines the maximum number of concurrent PDU sessions that UPF can handle. # Determines the maximum number of concurrent PDU sessions that UPF can handle.
# Affects the memory allocation for session-related eBPF maps. # Affects the memory allocation for session-related eBPF maps.
# max_pdrs_per_pdu_session (Default: 8) # max_pdrs_per_pdu_session (Default: 8)
# Defines the maximum number of Packet Detection Rules (PDRs) that can be applied per PDU session. # Defines the maximum number of Packet Detection Rules (PDRs) that can be applied per PDU session.
# PDRs dictate how packets are processed, forwarded, or dropped. # PDRs dictate how packets are processed, forwarded, or dropped.
# max_qos_flows_per_pdu_session (Default: 8) # max_qos_flows_per_pdu_session (Default: 8)
# Sets the maximum number of QoS flows that a single PDU session can manage. # Sets the maximum number of QoS flows that a single PDU session can manage.
# Impacts QoS-related eBPF maps (e.g., shaping, policing). # Impacts QoS-related eBPF maps (e.g., shaping, policing).
# max_sdf_filters_per_pdu_session (Default: 8) # max_sdf_filters_per_pdu_session (Default: 8)
# Specifies the maximum number of Service Data Flow (SDF) filters per session. # Specifies the maximum number of Service Data Flow (SDF) filters per session.
# SDF filters define how traffic is classified within a QoS flow. # SDF filters define how traffic is classified within a QoS flow.
max_pdu_session: 10000
max_pdu_session: 10000
max_pdrs_per_pdu_session: 8 max_pdrs_per_pdu_session: 8
max_qos_flows_per_pdu_session: 8 #max_qos_flows_per_pdu_session: 8
max_sdf_filters_per_pdu_session: 8 max_sdf_filters_per_pdu_session: 8
# 3. ARP Table Limit # 3. ARP Table Limit
# max_arp_entries (Default: 2)
# max_arp_entries (Default: 4)
# Limits the number of ARP table entries stored in eBPF maps. # Limits the number of ARP table entries stored in eBPF maps.
# Used for resolving MAC addresses in the UPF forwarding path. # Used for resolving MAC addresses in the UPF forwarding path.
max_arp_entries: 2
max_arp_entries: 1572
remote_n6_gw: oai-ext-dn remote_n6_gw: oai-ext-dn
upf_info: upf_info:
sNssaiUpfInfoList: sNssaiUpfInfoList:
......
...@@ -180,13 +180,13 @@ class upf_config { ...@@ -180,13 +180,13 @@ class upf_config {
enable_5g_features = true; enable_5g_features = true;
enable_bpf_datapath = false; enable_bpf_datapath = false;
enable_qos = false; enable_qos = false;
max_upf_interfaces = 8; max_upf_interfaces = 3;
max_upf_redirect_interfaces = 4; max_upf_redirect_interfaces = 2;
max_pdu_session = 10000; max_pdu_session = 10000;
max_pdrs_per_pdu_session = 8; max_pdrs_per_pdu_session = 8;
max_qos_flows_per_pdu_session = 8; max_qos_flows_per_pdu_session = 8;
max_sdf_filters_per_pdu_session = 8; max_sdf_filters_per_pdu_session = 8;
max_arp_entries = 1572; max_arp_entries = 2;
register_nrf = false; register_nrf = false;
upf_info = {}; upf_info = {};
......
...@@ -220,7 +220,7 @@ upf::upf( ...@@ -220,7 +220,7 @@ upf::upf(
const std::map<std::string, upf_interface_config>& interfaces) const std::map<std::string, upf_interface_config>& interfaces)
: nf(name, host, sbi), : nf(name, host, sbi),
m_upf_support_features( m_upf_support_features(
false, false, 8, 4, 10000, 8, 8, 8, 1572, false, false), false, false, 3, 2, 10000, 8, 8, 8, 2, false, false),
m_interfaces(interfaces) { m_interfaces(interfaces) {
model::nrf::SnssaiUpfInfoItem item; model::nrf::SnssaiUpfInfoItem item;
item.setSNssai(DEFAULT_SNSSAI); item.setSNssai(DEFAULT_SNSSAI);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment