In this section, we will explore the role and functionality of the NRF in the 5G core network. We’ll gain a comprehensive understanding of its importance and discover how it facilitates service discovery. Additionally, we will delve into the process of configuring the NRF with its parameters.
NRF: The Central Registry for Network Functions
The NRF (Network Repository Function) serves as a central registry in the network, containing information about each Network Function (NF). This information can be shared with any NF whenever necessary.
When introducing a new NF or expanding an existing one, the new NF instance only needs to interact with the NRF. By doing so, it registers its profile and gains visibility into all the NFs that make up the network.
In order to establish their presence within the network, all Network Functions (NFs) are required to register their profiles in the NRF. The NF profile encompasses crucial details such as the supported services, PLMN specifications, IP address and other relevant information.
The following figure present the NRF registration and discovery process:
Example: PLMN = 20893 (MCC = 208, MNC=93)
To properly configure the NRF (Network Repository Function), you need to set up the following attributes in the configuration file located at “~/free5gc/config/nrfcfg.yaml”:
registerIPv4: 127.0.0.10
bindingIPv4: 127.0.0.10
port: 8000
mcc: 208
mnc: 93
Open the NRF configuration file and modify the mentioned attributes with their respective values.
vim ~/free5gc/config/nrfcfg.yaml
Tip: In vim, press “i” to enter insert mode and start editing. To save and exit, press the “esc” key followed by “:wq” and hit Enter.
Error generating access link