# VNF-Enabled 5G Network Orchestration Framework for Slice Creation, Isolation and Management
## 4 Proposed Strategy
### Slice Isolation by Resource Allocation (SIRA) Scheme
#### 4.2.3 Resource Allocation and Performance Assessment  
In this analysis, we assume that all significant NSR nodes have been automatically segmented as eMBB, mMTC, or uRLLC based on their corresponding data. An NSR must be allowed to provide any kind of slice request at any time. To provide the best feasible optimal provisioning for the NSR, the combined NC-SIRA and LC-SIRA are applied. All NSRs which received between 0 and \(T_{max}\) are assigned a node and connected to one another through this combined process. The lifetime of the received NSR is used to update the rank array and path array of the physical infrastructure to identify the best possible provisioning for the next arrival of NSR. This leads to better performance and effectiveness of NSR allocation under changing conditions in physical infrastructure. The proposed process, depicted in Figure 3, begins with the allocation of resources for NSRs for the longest possible time, denoted by the parameter \((T_{max})\). Three key measures used to analyze the efficacy of slice provisioning are the success rate, the resource efficiency and the execution time.  
Figure 3: Sequence for resource allocation.  
In supervised machine learning, algorithms are trained on a labelled dataset. This study investigates the classification of 5G network slices using a number of different classification algorithms such as KNN, SVM, Naive Bayes, and RF. In order to evaluate the performance of these algorithms, a dataset is divided into training and testing procedures. Precision, recall, and F1 Score of the obtained results are used to assess the most appropriate machine learning technique for the prepared performance dataset [34]. Regarding the assessment of resource allocation, the performance of every network must be measured in order to optimise the benefits to both the utility and its customers. Customers want utilities to provide them with consistent and high-quality service. Meanwhile, network service providers aim to maximize earnings while providing the highest degree of customer satisfaction. The network's performance is evaluated in this study by taking into consideration the benefits gained by all stockholders. When determining the outcomes, performance metrics such as the NSR acceptance ratio and resource efficiency are taken into account.  
(i) NSR Acceptance Ratio (NAR): With this metric, we can see how well the chosen network slicing strategy is working with the underlying physical infrastructure. It is determined by dividing the number of successfully completed NSRs by the number of unsuccessful NSRs over a certain period of time \((T_{max})\), which is stated as  
\[\eta_{NAR}=\frac{sNSR}{TNSR} \tag{21}\]  
where sNSR and TNSR refer to successful and total NSR, respectively.  
(ii) Resource Efficiency (RE): This indicator is found by dividing the revenue produced by the physical infrastructure by the amount of resources spent on building it. The amount of CPU power available on the nodes and the amount of link bandwidth needed by NSRs can be used to figure out how much revenue will be made. The expected cost of the investment is based on the actual infrastructure that will be needed for the goal. The following are the mathematical expressions for calculating RE:  
\[\eta_{RE}=\frac{\sum_{t=0}^{T_{max}}NSR_{revenue}(t)}{\sum_{t=0}^{T_{max}}PSI_{ cost}(t)} \tag{22}\]  
\[NSR_{revenue}(t)=\sum_{i\in N^{NSR}}CPU_{i}^{NSR}+\sum_{m\in E^{NSR}}BW_{m}^{NSR} \tag{23}\]  
\[PSI_{cost}(t)=\sum_{i\in N^{NSR}}CPU_{i}^{NSR}+\sum_{m\in E^{NSR}} \sum_{n\in E^{PI}}P_{m}^{n} \tag{24}\] \[*BW_{m}^{NSR}\]  
where \(NSR_{revenue}(t)\) is the revenue of NSR served at time '\(t\)', \(PSI_{cost}(t)\) is the utilised physical infrastructure for serving the NSR received at time '\(t\)', and \(P_{m}^{n}\) is the number of physical infrastructure edges in path '\(n\)' for mapping the virtual link '\(m\)'.