# AI-Based Resource Allocation in E2E Network Slicing with Both Public and Non-Public Slices
## 1 Introduction  
With the development of fifth-generation (5G) technology and the emergence of diverse services, a wide variety of quality of service (QoS) demands are placed on existing communication networks [1]. In order to meet the different needs of terminal devices using existing communication networks, network slicing (NS) technology has emerged. NS technology divides the traditional physical network into multiple dedicated, virtualized, customized, and isolated logical networks, where each slice is used to fulfill the requirement of a specific service [2]. The current diverse scenarios for NS services are mainly categorized into enhanced mobile broadband (eMBB), ultra-reliable, low-latency communication (URLLC) and massive machine-type communication (mMTC) services [3]. Different scenarios have different requirements for network resources, which determines the differentiated services they can provided. The eMBB services are mainly suitable for high data rate application scenarios, such as ultra-high-definition video transmission, virtual reality, live streaming of races, etc. The URLLC services are mainly targeted at low-latency and high-reliability application scenarios, such as autonomous driving, 5G smart factories, remote surgery, etc. The mMTC service are mainly suitable for scenarios with a high number of terminal connections, such as smart home, automatic meter reading, smart agriculture, etc. NS uses network function virtualization (NFV) and software-defined networking (SDN) technology to manage and allocate resources to achieve logical unified management and flexible control. As a result, the use of the above technology has resulted in asignificant increase in resource utilization [4]. More specifically, NFV abstracts general servers as computing resources, storage resources, and network resources in the network, manages them uniformly, and then divides them on demand. Using NFV technology, previously dedicated communication network equipment can be replaced with general high-performance servers, and communication network functions are implemented via virtual network functions (VNFs) running on virtual machines (VMs) [5]. SDN enables the separation of the control plane and the data plane, making the network much more flexible and scalable. NS has many features such as end-to-end (E2E), isolation, flexibility, customization, and so on. First, the E2E concept indicates that the slice is an E2E network with the ability to provide network services independently. Therefore, the resource allocation of the radio access network (RAN) and the core network (CN) should be considered together. Isolation means that any changes in one slice (e.g., addition of users, changes in channel state information, etc.) will not affect the operation of other slices. Flexibility is reflected in the fact that the network elements that make up the slices can be deployed independently or shared for scheduling. Customization indicates that slicing provides on-demand logical network topology and connectivity for different industries, services, or users to meet their differentiated QoS. 3 GPP states that networks can be classified into two main categories: Public Land Mobile Network (PLMN) and non-public network (NPN) [6]. PLMN is a communication network built by mobile network operators (MNOs) for public users, which is most closely related to our daily life. NPN achieves network signal coverage in specific areas. It provides communication services within the enterprise according to the characteristics of the industry. It can be understood as a supplement to the public network. NPN requires high reliability as well as high security. High reliability is reflected in the priority to ensure that the QoS of NPN is not affected when the resources are relatively insufficient. High security is demonstrated by the fact that the resources used by NPN are relatively independent, which ensures that private data within the enterprise is not exposed.