# Cloud-Enabled Deployment of 5G Core Network with Analytics Features
## 4 The Testbed
### Slicing Configuration
```
classBaseMfClient: @classmethod defsend_query(cls,http_proxy:PycurlClient,url)->Union[dict,None]: http_proxy.setopt(pycurl.URL,url) try: http_proxy.send_get_event() exceptInvalidQueryException as e: print(e) returnNone _response=http_proxy.get_http_response() ifnot_response: print(f'didnt receive any response from shi: {http_proxy. get_targeted_nf()}') elifisinstance(_response,str): try: _response=json.loads(_response) exceptjson.decoder.JSONDecodeError: _message=f'Failed to compile response into json: {_response}' returnNone return_response
```
The quasi-NEF data aggregation methods are called by invoking a Singleton of the _A/Service_ class, which mimics a northbound API of a real NEF [47]. Then a selection of methods can be called on the object. For example, to provide the collection of preemption-capable UEs for a particular slice as presented in Listing 11. Other possible methods allow, for example, obtaining aggregated slice data, summarizing data per slice, and obtaining the collection of preemption-vulnerable UEs. Thus, the designed functionalities are provided. The complete implementation of the _A/Service_ class is available in the repository [42]. ```
nb_api=AfService() nb_api.get_all_preemption_capable_ues(sst=1,sd='000001')
```

The implemented quasi-NEF is capable of aggregating session and access management data extracted from the UDR. This method of data access is not typical for an actual 5 GCN, as the UDR is not intended to be directly interfaced by a NEF. However, this approach was necessary to implement an NF that emulates NEF functionality using the Open5 GS software. This workaround allows us to achieve a level of NEF functionality within the constraints of the current Open5 GS implementation. ### Anticipated Impact of the Proposed Extension

The proposed extension creates an opportunity to significantly enhance the functionality and efficiency of 5G networks. The presented integration is anticipated to have several impactful benefits for network operators and improve overall analytics capabilities. Firstly, the NEF acts as a crucial intermediary that facilitates secure and efficient exposure of network capabilities and data to external applications and services. It enables better management and control over how network resources and data are accessed and utilized. This enhancement allows network operators to expose selected network functionsand data to third-party applications in a controlled and secure manner, improving the flexibility and scalability of network services. The NEF enhances analytics capabilities by providing a more structured and accessible framework for data collection and analysis. It enables operators to gather, process, and analyze data from various network functions and slices, facilitating more informed decision-making and optimization. With improved access to network data, operators can perform advanced AI-based analytics to gain deeper insights into network performance, user behavior, and service quality. This, in turn, allows for more accurate predictions, better resource allocation, and targeted service improvements. Additionally, the NEF provides robust mechanisms for ensuring data privacy and security. By controlling how and which network data are exposed, it helps mitigate risks associated with unauthorized access and data breaches. Network operators can enforce security policies and compliance requirements more effectively, ensuring that external interactions with the network are secure and aligned with regulatory standards. In summary, the integration of the NEF into our 5G core network is expected to substantially benefit network operators by enhancing network exposure, improving analytics capabilities, increasing operational efficiency, and ensuring robust security and compliance. This advancement supports more efficient network management and optimization, drives innovation, and ultimately contributes to the overall effectiveness and competitiveness of 5G network deployments.