Disclosure of Invention
The invention provides a method for realizing slice error correction of a 5G core network service interface, which is used for completing slice error correction on the premise of normal operation of a 5GC system and ensuring normal online of a user.
The embodiment of the invention provides a 5G core network user registration method, which comprises the following steps:
the AMF network element establishes a link relation with an initial UDM network element corresponding to the initial UDM information according to the initial UDM information fed back by the NRF network element, and sends a user registration request to the initial UDM network element when a user is online, wherein the user registration request comprises a subscription permanent identifier of the user;
when the initial UDM network element refuses user registration according to the user registration request, the AMF network element sends a UDM service request containing the subscription permanent identifier to the NRF network element;
and the NRF network element determines a target UDM network element from the UDM network elements according to the UDM service request, and returns target UDM information of the target UDM network element to the AMF network element so as to realize successful registration of the user.
Optionally, before the AMF network element establishes a link relationship with the initial UDM network element corresponding to the initial UDM information according to the initial UDM information fed back by the NRF network element, the method further includes:
the AMF network element sends an initial UDM service request to the NRF network element, and the NRF network element determines the initial UDM network element from each UDM network element according to the UDM network element name.
Optionally, before the AMF network element sends an initial UDM service request to the NRF network element, the NRF network element determines the initial UDM network element from each UDM network element according to a UDM network element name, the method further includes:
the AMF network element registers service to the NRF network element;
each UDM network element registers service with the NRF network element respectively.
Optionally, the initial UDM network element refuses the user registration according to the user registration request, including:
the initial UDM network element determines a target slice to which the user belongs according to a subscription permanent identifier in the user registration request;
and if the target slice is inconsistent with the slice to which the initial UDM network element belongs, the initial UDM network element refuses the user registration.
Optionally, the NRF network element determines a target UDM network element from each UDM network element according to the UDM service request, and returns target UDM information of the target UDM network element to the AMF network element, so as to implement successful registration of the user, including:
the NRF network element determines a target slice to which the user belongs according to the subscription permanent identifier in the UDM service request, and determines the UDM network element of which the slice belongs to as the target slice as a target UDM network element;
the NRF network element sends target UDM information corresponding to the target UDM network element to the AMF network element;
the AMF network element sends a link establishment request to the target UDM network element according to the target UDM information, and the target UDM network element replies a link establishment response to the AMF network element;
and the AMF network element sends a user registration request to the target UDM network element, and the target UDM network element replies a registration success response to the AMF network element.
Optionally, the 5G core network further includes at least one SMF network element;
correspondingly, after the successful registration of the user is realized, the method further comprises the following steps:
and the AMF network element requests SMF service to the NRF network element according to the subscription permanent identifier of the user so as to realize the session creation of the user and the target SMF network element.
Optionally, before the AMF network element requests the SMF service from the NRF network element according to the subscription permanent identifier of the user, the method further includes:
the AMF network element sends a user session establishment request to an initial SMF network element corresponding to the initial SMF information according to the initial SMF information fed back by the NRF network element, wherein the user session establishment request comprises the subscription permanent identifier;
the initial SMF network element determines a target slice to which the user belongs according to a subscription permanent identifier in the user session establishment request;
and when the target slice is inconsistent with the slice to which the initial SMF network element belongs, the initial SMF network element refuses the session establishment.
Optionally, before the AMF network element sends the user session establishment request to the initial SMF network element corresponding to the initial SMF information according to the initial SMF information fed back by the NRF network element, the method further includes:
each SMF network element registers service to the NRF network element respectively;
and the NRF network element determines the initial SMF network element from the SMF network elements according to the SMF network element name.
Optionally, the AMF network element requests SMF service from the NRF network element according to the subscription permanent identifier of the user, so as to implement session creation between the user and the target SMF network element, including:
when the initial SMF network element searched by the NRF network element fails to establish a session with the AMF network element, the AMF network element sends an SMF service request containing the subscription permanent identifier to the NRF network element;
the NRF network element determines a target SMF network element from the SMF network elements according to the SMF service request, and returns target SMF information of the target SMF network element to the AMF network element;
and the AMF network element realizes the session creation between the user and the target SMF network element according to the target SMF information.
Optionally, the NRF network element determines a target SMF network element from the SMF network elements according to the SMF service request, including:
and the NRF network element determines a target slice to which the user belongs according to the subscription permanent identifier in the SMF service request, and determines the SMF network element of which the slice belongs to as the target slice as a target SMF network element.
According to initial UDM information fed back by an NRF network element, an AMF network element in a 5G core network establishes a link relation with an initial UDM network element corresponding to the initial UDM information, and sends a user registration request to the initial UDM network element when a user is online, wherein the user registration request comprises a subscription permanent identifier of the user; when the initial UDM network element refuses user registration according to the user registration request, the AMF network element sends a UDM service request containing a subscription permanent identifier to the NRF network element; the NRF network element determines a target UDM network element from all UDM network elements according to the UDM service request, and returns target UDM information of the target UDM network element to the AMF network element so as to realize successful registration of a user, solve the problem of user online failure caused by fuzzy networking of the existing core network system, realize automatic completion of slicing error correction on the premise of normal operation of a 5G core network and ensure the effect of normal online of the user.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings, and furthermore, embodiments of the present invention and features in the embodiments may be combined with each other without conflict.
Example 1
Fig. 1 is a flowchart of a method for implementing slice error correction of a 5G core network service interface, which is provided by an embodiment of the present invention, where the embodiment is applicable to a case of 5G core network user registration, the method may be applied to a 5G core network, and the 5G core network may include an AMF network element, an NRF network element, and at least one UDM network element, where each network element may be implemented by software and/or hardware.
As shown in fig. 1, the method specifically includes the following steps:
step 110, the AMF network element establishes a link relation with an initial UDM network element corresponding to the initial UDM information according to the initial UDM information fed back by the NRF network element, and sends a user registration request to the initial UDM network element when a user is online, wherein the user registration request comprises a subscription permanent identifier of the user.
Optionally, before step 110, the implementation method for error correction of the 5G core network servitization interface slice provided in this embodiment may further include the following steps:
the AMF network element sends an initial UDM service request to the NRF network element, and the NRF network element determines the initial UDM network element from all the UDM network elements according to the UDM network element names.
Further, before the AMF network element sends an initial UDM service request to the NRF network element, and the NRF network element determines the initial UDM network element from each UDM network element according to the UDM network element name, the method for implementing slice error correction of the 5G core network serviced interface provided in this embodiment may further include the following steps:
the AMF network element registers service to the NRF network element; each UDM network element registers services with the NRF network element, respectively.
Specifically, the AMF (Access and Mobility Management Function ) network element operates normally, and registers services with the NRF (Network Repository Function, network storage function) network element. The UDM (Unified Data Management ) network element operates normally, registering services with the NRF network element. The AMF network element requests UDM service to the NRF network element, and the AMF network element sends an initial UDM service request which does not carry home slice information of the network element to the NRF network element. The NRF network element determines an initial UDM network element from UDM network elements of the registered service according to the UDM network element name, for example, the NRF network element may search according to the UDM network element name, and determine the UDM network element corresponding to the first UDM information searched as the initial UDM network element.
When the NRF network element searches the initial UDM network element, returning initial UDM information corresponding to the initial UDM network element to the AMF network element. The initial UDM information may be service information of all the initial UDM network elements, and the service information may include information such as an IP address, a port number, and service capability of the UDM. After the AMF network element obtains the initial UDM information, a link establishment request is initiated to the initial UDM network element. The initial UDM network element receives the link establishment request of the AMF, replies a response of successfully establishing the link to the AMF network element, and establishes a link relation with the initial UDM network element.
When a user is online, the user sends online information containing a user subscription permanent identifier to an AMF network element. In this embodiment, the user's subscription permanent identifier may be a SUPI (Subscription Permanent Identifier) number. After the AMF network element obtains the subscription permanent identifier of the user, the AMF network element sends a user registration request to the initial UDM network element, wherein the user registration request comprises SUPI.
Optionally, after the AMF network element sends the user registration request to the initial UDM network element, the method for registering a 5G core network user provided in this embodiment may further include the following steps:
the initial UDM network element determines a target slice to which the user belongs according to the subscription permanent identifier in the user registration request; if the target slice is inconsistent with the slice to which the initial UDM network element belongs, the initial UDM network element refuses the user registration.
Specifically, when the initial UDM network element receives a user registration request sent by the AMF network element, a subscription permanent identifier is obtained from the user registration request, slice information to which the subscription permanent identifier belongs is determined, and the slice is marked as a target slice of the user. The initial UDM network element determines the slice information of the self attribution, judges whether the slice information is consistent with the target slice, and if the slice information is inconsistent with the target slice, the initial UDM network element refuses the user registration. It can be understood that the UDM network element may acquire and store subscription data including a subscription permanent identifier of a user, and periodically initiate a service update message to the NRF network element, and report slice information corresponding to the SUPI number.
And 120, when the initial UDM network element refuses the user registration according to the user registration request, the AMF network element transmits a UDM service request containing a subscription permanent identifier to the NRF network element.
Specifically, when the initial UDM network element determines, according to the subscription permanent identifier in the user registration request, that the slice to which the user belongs is inconsistent with the slice to which the user belongs, the initial UDM network element may return an error response to the AMF network element, and reject the user registration. When the AMF network element receives an error response returned by the initial UDM network element, a UDM service request containing a subscription permanent identifier may be sent to the NRF network element.
And 130, the NRF network element determines a target UDM network element from all the UDM network elements according to the UDM service request, and returns target UDM information of the target UDM network element to the AMF network element so as to realize successful registration of the user.
The target UDM network element may be understood as a UDM network element consistent with the slice information to which the subscription permanent identifier of the user belongs.
Specifically, the NRF network element may determine, according to the subscription permanent identifier in the UDM service request sent by the AMF network element, a target UDM network element consistent with slice information to which the subscription permanent identifier belongs, and return target UDM information of the target UDM network element to the AMF network element, where the AMF network element may establish a link relationship with the target UDM network element according to the target UDM information, so as to complete a registration operation of the user.
Alternatively, step 130 may be implemented by the following specific steps:
s1301, the NRF network element determines a target slice to which the user belongs according to the subscription permanent identifier in the UDM service request, and determines the UDM network element of which the slice belongs to the target slice as the target UDM network element.
S1302, the NRF network element sends target UDM information corresponding to the target UDM network element to the AMF network element.
S1303, the AMF network element sends a link establishment request to the target UDM network element, and the target UDM network element replies a link establishment response to the AMF network element.
S1304, the AMF network element sends a user registration request to the target UDM network element, and the target UDM network element replies a registration success response to the AMF network element.
Specifically, when the NRF network element receives a UDM service request sent by the AMF network element, a subscription permanent identifier may be obtained from the UDM service request, a target slice to which the user belongs is determined according to the subscription permanent identifier, and a UDM network element to which the slice belongs is the target slice is determined as the target UDM network element. And the NRF network element sends the target UDM information corresponding to the target UDM network element to the AMF network element. After the AMF network element establishes a link relation with the target UDM network element according to the target UDM information, a user registration request is sent to the target UDM network element, the target UDM network element judges that the slice to which the user belongs is consistent with the slice to which the user belongs according to the subscription permanent identifier in the user registration request, and the target UDM network element replies a registration success response to the AMF network element, and the user is registered successfully at the moment.
Fig. 2 is a schematic diagram of an implementation method of slice error correction of a 5G core network service interface according to an embodiment of the present invention. The AMF shown in fig. 2 represents an AMF network element, the NRF represents an NRF network element, and the UDM represents an initial UDM network element, where the initial UDM network element in this example is not the same UDM network element as the target UDM network element corresponding to the slice to which the SUPI number of the user belongs, and the main steps may include:
1) The initial UDM network element operates normally, and registers service to the NRF network element;
2) The AMF network element normally operates, and registers service to the NRF network element;
3) The AMF network element sends an initial UDM service request UDM Service Request to the NRF network element;
4) The NRF network element determines the UDM network element corresponding to the first searched UDM information as an initial UDM network element according to the network element name, loads UDM Service Response the initial UDM information corresponding to the initial UDM network element and returns the initial UDM information to the AMF network element;
5) The AMF network element initiates a link establishment request Nnrf_discovery_req to the initial UDM network element;
6) The initial UDM network element replies a response Nnrf_discovery_rsp for successfully establishing a link to the AMF network element, and the AMF network element establishes a link relation with the initial UDM network element;
7) When a user is online, an AMF network element acquires a subscription permanent identifier SUPI number of the user, and sends a user registration request User Register request (SUPI) containing a SUPI number segment to an initial UDM network element;
8) The initial UDM network element acquires the SUPI number from the user registration request, judges that the slice information to which the SUPI number belongs is inconsistent with the slice information to which the SUPI number belongs, and sends a response User Register response _Err for rejecting user registration to the AMF network element;
9) The AMF network element sends a UDM service request UDM Service Request (SUPI) containing a SUPI number segment to the NRF network element;
10 The NRF network element determines a target UDM network element according to the UDM service request, loads UDM Service Response target UDM information of the target UDM network element and returns the target UDM information to the AMF network element;
11 When the AMF network element obtains the target UDM information, the step similar to step 5) can be performed in a return mode, a link relation is established with the target UDM network element, and the registration operation of the user is completed.
The technical scheme of the embodiment is applied to a 5G core network, an AMF network element in the 5G core network establishes a link relation with an initial UDM network element corresponding to initial UDM information according to initial UDM information fed back by an NRF network element, and a user registration request is sent to the initial UDM network element when a user is online, wherein the user registration request comprises a subscription permanent identifier of the user; when the initial UDM network element refuses user registration according to the user registration request, the AMF network element sends a UDM service request containing a subscription permanent identifier to the NRF network element; the NRF network element determines a target UDM network element from all UDM network elements according to the UDM service request, and returns target UDM information of the target UDM network element to the AMF network element so as to realize successful registration of a user, solve the problem of user online failure caused by fuzzy networking of the existing core network system, realize automatic completion of slicing error correction on the premise of normal operation of a 5G core network and ensure the effect of normal online of the user.
On the basis of the above technical solution, the 5G core network may further include at least one SMF network element. Correspondingly, the method provided by the embodiment of the invention can also realize the session creation of the user and the target SMF network element.
Fig. 3 is a flowchart of another implementation method of slice error correction for a 5G core network service interface according to an embodiment of the present invention. The embodiment further optimizes the implementation method of the 5G core network service interface slice error correction based on the embodiment.
As shown in fig. 3, the method specifically includes:
step 210, the AMF network element sends a user session establishment request to an initial SMF network element corresponding to the initial SMF information according to the initial SMF information fed back by the NRF network element, where the user session establishment request includes a subscription permanent identifier.
Optionally, before step 210, the method provided in this embodiment may further include the following steps:
each SMF network element registers service to NRF network element; the NRF network element determines an initial SMF network element from the SMF network elements according to the SMF network element names.
Specifically, the SMF (Session Management Function ) network element operates normally, and registers services with the NRF network element. The NRF network element determines an initial SMF network element from the SMF network elements according to the SMF network element name, for example, the NRF network element corresponding to the first SMF information may be searched according to the SMF network element name, and the SMF network element corresponding to the first SMF information is determined as the initial SMF network element. When the NRF network element searches the initial SMF network element, returning initial SMF information corresponding to the initial SMF network element to the AMF network element. The initial SMF information may be service information of all the initial SMF network elements, and the service information may include information such as an IP address, a port number, and a service capability of the SMF.
After the user is successfully registered, a session establishment flow is initiated, and a request message for user session establishment reaches an AMF network element through a base station. The AMF network element receives a session request of the terminal user, and initiates a user session establishment request to the initial SMF network element after obtaining the initial SMF information, wherein the user session establishment request can comprise a subscription permanent identifier of the user.
Step 220, the initial SMF network element determines a target slice to which the user belongs according to the subscription permanent identifier in the user session establishment request, and when the target slice is inconsistent with the slice to which the initial SMF network element belongs, the initial SMF network element refuses the session establishment.
Specifically, when the initial SMF network element receives a user session establishment request sent by the AMF network element, a subscription permanent identifier is obtained from the user session establishment request, slice information to which the subscription permanent identifier belongs is determined, and the slice is recorded as a target slice of the user. The initial SMF network element determines the self-attributive slice information, judges whether the slice information is consistent with the target slice, if not, the initial SMF network element returns an error response to the AMF network element, and refuses the establishment of the session.
Step 230, the AMF network element requests the SMF service from the NRF network element according to the subscription permanent identifier of the user, so as to implement session creation between the user and the target SMF network element.
The target SMF network element may be understood as an SMF network element consistent with slice information to which the subscription permanent identifier of the user belongs.
Specifically, when the initial SMF network element refuses the session establishment, the AMF network element may request the SMF service to the NRF network element again according to the subscription permanent identifier when the AMF network element receives an error response returned by the initial SMF network element.
Alternatively, step 230 may be implemented by the following specific steps:
s2301, when the initial SMF network element searched by the NRF network element fails to create a session with the AMF network element, the AMF network element sends an SMF service request containing a subscription permanent identifier to the NRF network element.
Specifically, when the initial SMF network element returns an error response to the AMF network element and refuses to establish a session, the AMF network element loads a subscription permanent identifier of the user into an SMF service request and sends the subscription permanent identifier to the NRF network element.
S2302, the NRF network element determines a target SMF network element from the SMF network elements according to the SMF service request, and returns target SMF information of the target SMF network element to the AMF network element.
Further, the NRF network element determines a target SMF network element from the SMF network elements according to the SMF service request, which may be specifically implemented in the following manner: the NRF network element determines a target slice to which the user belongs according to the subscription permanent identifier in the SMF service request, and determines the SMF network element of which the slice belongs to the target slice as a target SMF network element.
Specifically, the NRF network element may acquire the subscription permanent identifier from the SMF service request sent by the AMF network element, determine slice information to which the subscription permanent identifier belongs, and record the slice as a target slice of the user. The NRF network element may determine the SMF network element of which the slice belongs to as the target slice as the target SMF network element, and return target SMF information of the target SMF network element to the AMF network element.
S2303, the AMF network element realizes the session creation between the user and the target SMF network element according to the target SMF information.
Specifically, the AMF network element may send a user session establishment request to the target SMF network element according to the target SMF information, where the target SMF network element determines, according to a subscription permanent identifier in the user session establishment request, that a slice to which the user belongs is consistent with a slice to which the user belongs, and returns a successful response of session establishment to the AMF network element, where the user session establishment is completed.
Fig. 4 is a schematic diagram of another implementation method of slice error correction of a 5G core network service interface according to an embodiment of the present invention. The AMF shown in fig. 4 represents an AMF network element, the NRF represents an NRF network element, the UDM represents a target UDM network element consistent with a slice to which the SUPI number of the user belongs, the SMF represents an initial SMF network element, and the initial SMF network element in this example is not the same SMF network element as the target SMF network element corresponding to the slice to which the SUPI number of the user belongs, and the main steps may include:
1) The target UDM network element operates normally, and registers service to the NRF network element;
2) The AMF network element normally operates, and registers service to the NRF network element;
3) The initial UDM network element operates normally, and registers service to the NRF network element;
4) The AMF network element requests UDM information from the NRF network element, and the user registration process is successfully completed;
5) The AMF network element sends a user session establishment request PDU Session Establishment Request to the initial SMF network element;
6) The initial SMF network element acquires the SUPI number from the user session establishment request, judges that the slice information to which the SUPI number belongs is inconsistent with the slice information to which the SUPI number belongs, and sends a refusal session establishment response PDU Session Establishment Response _Err to the AMF network element;
7) The AMF network element sends an SMF service request SMF Service Request (SUPI) containing a SUPI number segment to the NRF network element;
8) The NRF network element determines a target SMF network element according to the SMF service request, loads SMF Service Response target SMF information of the target SMF network element and returns the target SMF information to the AMF network element;
9) When the AMF network element obtains the target SMF information, the step similar to 5) may be performed in a return manner, and a user session establishment request is sent to the target SMF network element, so as to complete the session creation operation of the user.
The technical scheme of the embodiment is applied to a 5G core network, an AMF network element in the 5G core network sends a user session establishment request to an initial SMF network element corresponding to initial SMF information according to initial SMF information fed back by an NRF network element, wherein the user session establishment request comprises a subscription permanent identifier; the initial SMF network element determines a target slice to which the user belongs according to the subscription permanent identifier in the user session establishment request, and when the target slice is inconsistent with the slice to which the initial SMF network element belongs, the initial SMF network element refuses the session establishment; AMF network element requests SMF service to NRF network element according to user subscription permanent identifier to realize user and target SMF network element session creation, solve user online failure problem caused by current core network system networking ambiguity, realize automatic slice error correction under 5G core network normal operation premise, ensure user normal online and create session effect.
It should be noted that, in the above embodiment, each unit and module included are only divided according to the functional logic, but not limited to the above division, so long as the corresponding functions can be implemented; in addition, the specific names of the functional units are also only for distinguishing from each other, and are not used to limit the protection scope of the present invention.
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.