CN117425167A - Service processing method, device, electronic equipment and storage medium - Google Patents
Service processing method, device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN117425167A CN117425167A CN202210814522.XA CN202210814522A CN117425167A CN 117425167 A CN117425167 A CN 117425167A CN 202210814522 A CN202210814522 A CN 202210814522A CN 117425167 A CN117425167 A CN 117425167A
- Authority
- CN
- China
- Prior art keywords
- candidate
- instance
- standby
- service processing
- network element
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 18
- 238000012545 processing Methods 0.000 claims abstract description 83
- 230000004044 response Effects 0.000 claims abstract description 74
- 238000000034 method Methods 0.000 claims abstract description 25
- 230000002159 abnormal effect Effects 0.000 claims abstract description 23
- 230000006870 function Effects 0.000 claims description 28
- 238000004891 communication Methods 0.000 claims description 15
- 230000005856 abnormality Effects 0.000 claims description 10
- 238000013523 data management Methods 0.000 claims description 8
- 238000004590 computer program Methods 0.000 claims description 7
- 238000012544 monitoring process Methods 0.000 claims description 4
- 238000010295 mobile communication Methods 0.000 abstract description 7
- 238000010586 diagram Methods 0.000 description 6
- 238000011084 recovery Methods 0.000 description 6
- 238000007726 management method Methods 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 101100055418 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) AMF1 gene Proteins 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 230000006855 networking Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0893—Assignment of logical groups to network elements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0894—Policy-based network configuration management
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/04—Arrangements for maintaining operational condition
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W88/00—Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
- H04W88/18—Service support devices; Network management devices
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Hardware Redundancy (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The application relates to a service processing method, a device, an electronic device and a storage medium, wherein the method comprises the following steps: under the condition that the primary network function NF instance is determined to be abnormal, sending a candidate NF instance acquisition request to a network storage function NRF network element; receiving a plurality of candidate NF examples returned by the NRF network element, wherein the plurality of candidate NF examples are determined by the NRF network element in response to the candidate NF example acquisition request; and determining a standby NF instance from the candidate NF instances to perform service processing based on a preset strategy, wherein the preset strategy is preset according to actual service processing requirements. Therefore, the standby NF instance can be flexibly selected according to different service processing scenes, and compared with the traditional mode of fixedly selecting the first candidate NF instance or the last candidate NF instance as the standby NF instance, the method and the device can perform optimal selection according to actual service processing scenes, so that the service processing capacity of the whole mobile communication network is improved.
Description
Technical Field
The present invention relates to the field of mobile communications technologies, and in particular, to a service processing method, a device, an electronic device, and a storage medium.
Background
With the development of the fifth generation mobile communication technology (5 th Generation Mobile Communication Technology, abbreviated as 5G), in order to improve the reliability of Network elements, each Network Function (NF) instance is deployed in a set, and each NF instance in the set generally performs physical disaster recovery, for example, different NF instances are deployed in different machine rooms or even in different cities. When an abnormality occurs in the active NF instances in the set, the network storage function (NF Repository Function, abbreviated as NRF) network element returns a plurality of candidate NF instances to the unified data management function (Unified Data Management, abbreviated as UDM) network element. In the prior art, the UDM network element generally directly and fixedly selects the first candidate NF instance or the last candidate NF instance as the standby NF instance, but cannot perform optimal selection according to an actual service processing scenario, so that the service processing capability of the whole mobile communication network is limited.
Disclosure of Invention
The application provides a service processing method, a device, electronic equipment and a storage medium, which are used for solving the problem that in the prior art, a UDM network element usually directly and fixedly selects a first candidate NF instance or a last NF instance as a standby NF instance, but cannot be optimally selected according to an actual service processing scene, so that the service processing capacity of the whole mobile communication network is limited.
In a first aspect, the present application provides a service processing method, applied to a UDM network element, the method including:
under the condition that the primary network function NF instance is determined to be abnormal, sending a candidate NF instance acquisition request to a network storage function NRF network element;
receiving a plurality of candidate NF examples returned by the NRF network element, wherein the plurality of candidate NF examples are determined by the NRF network element in response to the candidate NF example acquisition request;
and determining a standby NF instance from the candidate NF instances to perform service processing based on a preset strategy, wherein the preset strategy is preset according to actual service processing requirements.
Optionally, the determining, based on a preset policy, one standby NF instance from the multiple candidate NF instances to perform service processing includes:
acquiring parameter information corresponding to the candidate NF examples, wherein the parameter information comprises priority, capacity and load level;
under the condition that the candidate NF instance with the highest priority in the candidate NF instances is one, determining the candidate NF instance with the highest priority in the candidate NF instances as the standby NF instance, and carrying out service processing through the standby NF instance;
under the condition that a plurality of candidate NF examples with the highest priority are provided, generating a random number according to the capacity and the load level corresponding to the candidate NF example with the highest priority in the plurality of candidate NF examples, determining the candidate NF example with the highest priority corresponding to a numerical interval corresponding to the random number as the standby NF example, and carrying out service processing through the standby NF example; the upper limit value of the value range of the random number is the sum of priority factors, the priority factors divide the value range of the random number into a plurality of numerical intervals, and the priority factors are determined according to the capacity and the load level.
Optionally, the determining, based on a preset policy, one standby NF instance from the multiple candidate NF instances to perform service processing includes:
acquiring service response success rates corresponding to the candidate NF instances, wherein the service response success rates are determined based on the number of times that each candidate NF instance in the candidate NF instances successfully returns service response;
and determining the candidate NF instance with the highest service response success rate in the candidate NF instances as the standby NF instance, and performing service processing through the standby NF instance.
Optionally, the determining, based on a preset policy, one standby NF instance from the multiple candidate NF instances to perform service processing includes:
acquiring service response time corresponding to the candidate NF examples, wherein the service response time is determined based on the service response time of each candidate NF example in the candidate NF examples;
and determining the candidate NF instance with the minimum service response time in the plurality of candidate NF instances as the standby NF instance, and performing service processing through the standby NF instance.
Optionally, the determining, based on a preset policy, one standby NF instance from the multiple candidate NF instances to perform service processing includes:
acquiring position information corresponding to the candidate NF instances, wherein the position information is acquired from the NRF network element, and the NRF network element is used for storing the position information corresponding to the candidate NF instances under the condition that the candidate NF instances are successfully registered;
and determining the candidate NF instance with the nearest position in the plurality of candidate NF instances as the standby NF instance, and carrying out service processing through the standby NF instance.
Optionally, the determining, based on a preset policy, one standby NF instance from the multiple candidate NF instances to perform service processing includes:
acquiring identification information corresponding to the candidate NF examples, wherein the identification information is recorded under the condition that the candidate NF examples are successfully registered;
and determining the candidate NF instance corresponding to the pre-designated target identification information as the standby NF instance, and carrying out service processing through the standby NF instance.
Optionally, determining that the active NF instance is abnormal includes:
determining based on the received response result of the active NF instance, wherein the response result of the active NF instance is determined by the active NF instance based on the service message sent by the UDM network element, and the response result of the active NF instance is null in case of abnormality of the active NF instance; or,
and determining based on the received subscription information of the active NF instance, wherein the subscription information of the active NF instance is subscribed from the NRF network element, and the NRF network element is used for monitoring the state of the active NF instance in real time under the condition that the active NF instance is successfully registered.
In a second aspect, the present application further provides a service processing device, applied to a UDM network element, where the service processing device includes:
the sending module is used for sending a candidate NF instance acquisition request to the network storage function NRF network element under the condition that the primary NF instance is determined to be abnormal;
the receiving module is used for receiving a plurality of candidate NF examples returned by the NRF network element, wherein the plurality of candidate NF examples are obtained by the NRF network element in response to the candidate NF example acquisition request;
and the determining module is used for determining a standby NF instance from the plurality of candidate NF instances to carry out service processing based on a preset strategy, wherein the preset strategy is preset according to the actual service processing requirement.
In a third aspect, the present application further provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing the steps of the business processing method according to any embodiment of the first aspect when executing the program stored in the memory.
In a fourth aspect, the present application also provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the business processing method according to any of the embodiments of the first aspect.
In the embodiment of the application, under the condition that the unified data management function UDM network element determines that the primary network function NF instance is abnormal, sending a candidate NF instance acquisition request to the network storage function NRF network element; receiving a plurality of candidate NF examples returned by the NRF network element, wherein the plurality of candidate NF examples are determined by the NRF network element in response to the candidate NF example acquisition request; and determining a standby NF instance from the candidate NF instances to perform service processing based on a preset strategy, wherein the preset strategy is preset according to actual service processing requirements. In this way, when the primary NF instance is abnormal, the UDM network element can select one candidate NF instance from the multiple candidate NF instances according to the preset policy as the standby NF instance, and because the prediction policy in the UDM network element can be preset according to the actual service processing requirement, the standby NF instance can be flexibly selected according to different service processing scenarios.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the invention or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, and it will be obvious to a person skilled in the art that other drawings can be obtained from these drawings without inventive effort.
Fig. 1 is a schematic flow chart of a service processing method provided in an embodiment of the present application;
FIG. 2 is a schematic diagram of NF example disaster recovery networking provided in an embodiment of the present application;
FIG. 3 is a disaster recovery flow chart for determining that an active NF instance is abnormal based on a received response result of the active NF instance according to an embodiment of the present application;
FIG. 4 is a disaster recovery flow chart for determining that an active NF instance is abnormal based on a received subscription message of the active NF instance according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a service processing device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present application based on the embodiments herein.
Referring to fig. 1, fig. 1 is a flow chart of a service processing method provided in an embodiment of the present application. The service processing method is applied to a unified data management function (UDM) network element, and comprises the following steps:
step 101, sending a candidate NF instance acquisition request to a network storage function NRF network element under the condition that the active network function NF instance is determined to be abnormal.
Specifically, the service processing method is applied to a UDM network element, and the UDM network element can be in communication connection with an NRF network element and a network element with NF instance, such as an access and mobility management function (Access and Mobility Management Function, abbreviated as AMF) network element, a session management function (Session Management Function, abbreviated as SMF) network element, and the like. In the NF instance disaster recovery networking scenario, the UDM network element may discover an NF instance from the NRF network element, select an optimal standby NF instance when an abnormality occurs in the primary NF instance, and finally send a service message to the standby NF instance for service processing, as shown in fig. 2.
In this step, when determining that the active network function NF instance is abnormal, the UDM network element may send a candidate NF instance acquisition request to the NRF network element, where the candidate NF instance acquisition request is used to request to acquire a candidate NF instance in the set, so that after receiving the candidate NF instance acquisition request, the NRF network element may send a plurality of candidate NF instances to the UDM network element in response to the candidate NF instance acquisition request.
And 102, receiving a plurality of candidate NF examples returned by the NRF network element, wherein the plurality of candidate NF examples are determined by the NRF network element in response to the candidate NF example acquisition request.
In this step, the UDM network element may receive a plurality of candidate NF instances returned by the NRF network element, where the plurality of candidate NF instances are determined by the NRF network element in response to a candidate NF instance acquisition request, where the candidate NF instance acquisition request carries a globally unique AMF identifier (Globally Unique AMF Identifier, abbreviated as GUAMI) or a disaster recovery full-defined domain name (Fully Qualified Domain Name, abbreviated as FQDN) of the active NF instance. Thus, the NRF network element can find out candidate NF examples according to GUAMI or disaster tolerant FQDN of the primary NF examples and return the candidate NF examples to the UDM network element.
Step 103, determining a standby NF instance from a plurality of candidate NF instances to perform service processing based on a preset policy, wherein the preset policy is a policy preset according to actual service processing requirements.
Specifically, the foregoing preset policy may be flexibly set according to the actual service processing requirement, and the manner in which the preset policy selects the standby NF instance may include, but is not limited to: selecting based on parameter information corresponding to a plurality of candidate NF examples, selecting based on service response success rates corresponding to a plurality of candidate NF examples, selecting based on service response times corresponding to a plurality of candidate NF examples, selecting based on location information corresponding to a plurality of candidate NF examples, selecting based on NF examples executed in advance, and the like. Thus, the UDM network element can determine a standby NF instance from a plurality of candidate NF instances to carry out service processing.
In this embodiment, when the primary NF instance is abnormal, the UDM network element may select one candidate NF instance from the multiple candidate NF instances according to a preset policy as a standby NF instance, and because the prediction policy in the UDM network element with the unified data management function may be preset according to the actual service processing requirement, the standby NF instance may be flexibly selected according to different service processing scenarios.
As a first embodiment, the step 103 of determining, based on a preset policy, a standby NF instance from a plurality of candidate NF instances to perform service processing includes:
acquiring parameter information corresponding to a plurality of candidate NF examples, wherein the parameter information comprises priority, capacity and load level;
under the condition that the candidate NF instance with the highest priority in the candidate NF instances is one, determining the candidate NF instance with the highest priority in the candidate NF instances as a standby NF instance, and carrying out service processing through the standby NF instance;
under the condition that a plurality of candidate NF instances with the highest priority are provided, generating a random number according to the capacity and the load level corresponding to the candidate NF instance with the highest priority in the plurality of candidate NF instances, determining the candidate NF instance with the highest priority corresponding to the numerical range corresponding to the random number as a standby NF instance, and carrying out service processing through the standby NF instance, wherein the upper limit value of the numerical range of the random number is the sum of priority factors, the priority factors divide the numerical range of the random number into a plurality of numerical ranges, and the priority factors are determined according to the capacity and the load level.
In an embodiment, the UDM network element may select the standby NF instance based on parameter information corresponding to the multiple candidate NF instances, where the parameter information includes priority (i.e., priority), capacity (i.e., capability), and load level (i.e., load), etc. Specifically, the UDM network element may first select the standby NF instance based on priorities corresponding to the plurality of candidate NF instances. If the priority of the candidate NF instance is higher, then the priority of the NF instance selected as standby is also higher; if the priority of the candidate NF instance is lower, then the priority of the NF instance selected as standby is also lower. For example, assuming that the priority of candidate NF instance 1 is 200, the priority of candidate NF instance 2 is 100, and the priority of candidate NF instance 3 is 50, the UDM network element will preferentially select candidate NF instance 1 as the standby NF embodiment when selecting the standby NF instance. When the candidate NF instances with the highest priority are multiple, the determination needs to be performed in combination with the capacity and load level of each candidate NF instance. As an alternative implementation manner, the capability (1-load%) may be used to calculate the priority factor of each candidate NF instance, the UDM network element generates a random number according to the sum of all priority factors, and finally selects the corresponding candidate NF instance according to the value interval of the random number, as the standby NF instance.
For example, suppose that the UDM network element discovers 3 candidate AMF network elements (i.e., candidate NF instances), and the parameter information of the 3 candidate AMF network elements is as follows;
parameter information | Priority | capacity | load | Computed priority factor |
AMF1 | 100 | 5000 | 50 | 2500 |
AMF2 | 100 | 2000 | 10 | 1800 |
AMF3 | 100 | 1000 | 0 | 1000 |
Then, the UDM network element can generate any random number with the value range of 1-5300, and AMF1 is selected as a standby AMF network element under the assumption that the random number falls in the numerical value range of [ 1-2500 ]; assuming that the random number falls within the numerical interval of [2501 to 4300], selecting AMF2 as a standby AMF network element; assuming that the random number falls within the numerical interval of [4301 to 5300], AMF3 is selected as the standby AMF network element. According to the algorithm, the consistency of the number and the capacity of the messages processed by the AMF can be ensured. Therefore, the standby NF instance matched with the service processing capacity can be selected for processing according to the number of the messages processed by the service, and resource waste is avoided.
As a second embodiment, the step 103 of determining, based on a preset policy, a standby NF instance from a plurality of candidate NF instances to perform service processing includes:
acquiring service response success rates corresponding to a plurality of candidate NF examples, wherein the service response success rates are determined based on the times of successful service response return of each candidate NF example in the plurality of candidate NF examples;
and determining the candidate NF instance with the highest service response success rate in the plurality of candidate NF instances as a standby NF instance, and performing service processing through the standby NF instance.
In an embodiment, the UDM network element may select the standby NF instance based on service response success rates corresponding to the plurality of candidate NF instances. Specifically, each time when the UDM network element is abnormal in the primary NF instance, counting the found multiple candidate NF instances, when the number of the found candidate NF instances is n, generating any random value with a value range of [1, n ], selecting the candidate NF instance corresponding to the random value to send a service message, and if the sending is successful and the response is successfully returned, recording and updating the service response success rate of the candidate NF instance corresponding to the random value; if the sending fails, the candidate NF instance corresponding to another random number is selected randomly to send the service message, and the service response success rate is recorded synchronously. And when the subsequent service is processed, the candidate NF instance with the highest service response success rate is preferentially selected for service processing. Thus, the requirements of service scenes with higher requirements on service response success rate can be met.
As a third embodiment, the step 103 of determining, based on a preset policy, a standby NF instance from a plurality of candidate NF instances to perform service processing includes:
acquiring service response time corresponding to a plurality of candidate NF examples, wherein the service response time is determined based on the service response time of each candidate NF example in the plurality of candidate NF examples;
and determining the candidate NF instance with the minimum service response time in the plurality of candidate NF instances as a standby NF instance, and performing service processing through the standby NF instance.
In an embodiment, the UDM network element may select the standby NF instance based on service response times corresponding to the plurality of candidate NF instances. Specifically, when the UDM network element discovers a plurality of candidate NF instances, it traverses all the candidate NF instances, and records the service response time of each candidate NF instance, where the service response time may refer to an average value of response times corresponding to each service response. Then the UDM network element can preferentially select the candidate NF instance with the minimum service response time to process the service, so that the requirement of a service scene with higher service response time requirement can be met.
As a fourth embodiment, the step 103 of determining, based on a preset policy, a standby NF instance from a plurality of candidate NF instances to perform service processing includes:
acquiring position information corresponding to a plurality of candidate NF examples, wherein the position information is acquired from an NRF network element, and the NRF network element is used for storing the position information corresponding to the plurality of candidate NF examples under the condition that the plurality of candidate NF examples are successfully registered;
and determining the nearest candidate NF instance in the plurality of candidate NF instances as a standby NF instance, and carrying out service processing through the standby NF instance.
In an embodiment, the UDM network element may select the standby NF instance based on location information corresponding to the plurality of candidate NF instances. Specifically, when the UDM network element discovers a plurality of candidate NF instances, the distance between each candidate NF instance and the UDM network element may be determined according to the location information corresponding to each candidate NF instance, and then the standby NF instance may be selected according to the distance. It should be noted that, the UDM network element may acquire the location information from the NRF network element, for example, the location information of the NF instance may be defined in the NF instance of the NRF network element, and the location information may be information of a country, a region, a province, a city, a machine room, and the like. When the candidate NF examples are successfully registered, the NRF network element stores the position information corresponding to the candidate NF examples in the NF instance, when the UDM network element sends an NF example acquisition request to the NRF network element, the NRF network element sends the plurality of candidate NF examples and the position information corresponding to the plurality of candidate NF examples to the UDM network element together, and after the UDM network element finds, the candidate NF example with the nearest position can be preferentially selected as the standby NF example according to the position information. Thus, the requirements of business scenes with higher distance requirements can be met.
As a fifth embodiment, the step 103 of determining, based on a preset policy, a standby NF instance from a plurality of candidate NF instances to perform service processing includes:
acquiring identification information corresponding to a plurality of candidate NF examples, wherein the identification information is recorded under the condition that the plurality of candidate NF examples are successfully registered;
and determining the candidate NF instance corresponding to the pre-designated target identification information as a standby NF instance, and carrying out service processing through the standby NF instance.
In an embodiment, the UDM network element may select the standby NF instance based on pre-specified target identification information. Specifically, the UDM network element may designate target identification information of the standby NF instance in advance, and when the UDM network element discovers a plurality of candidate NF instances, the UDM network element may find a candidate NF instance corresponding to the target identification information from the identification information corresponding to the plurality of candidate NF instances, determine the candidate NF instance as the standby NF instance, and directly send a service message to the standby NF instance. Thus, the requirement on the business scenario of the pre-designated standby NF instance can be met.
Further, the method for determining that the active NF instance is abnormal comprises:
determining based on a received response result of the active NF instance, wherein the response result of the active NF instance is determined by the active NF instance based on a service message sent by the UDM network element, and the response result of the active NF instance is null in case of abnormality of the active NF instance; or,
the method comprises the steps of determining based on received subscription information of a primary NF instance, wherein the subscription information of the primary NF instance is obtained by subscribing from an NRF network element, and the NRF network element is used for monitoring the state of the primary NF instance in real time under the condition that the primary NF instance is successfully registered.
In an embodiment, the UDM network element may determine that the active NF instance is abnormal based on the received response result of the active NF instance, and may determine that the active NF instance is abnormal based on the received subscription message of the active NF instance. When it is determined that the active NF instance is abnormal based on the received response result of the active NF instance, an interaction diagram of the UDM network element and other network elements is shown in fig. 3. In fig. 3, the UDM network element sends a client message (corresponding to the service message above) to the active NF instance according to the active NF instance address stored in the library, when the client message fails to send or the active NF instance response times out, the UDM network element triggers a discovery request (corresponding to the candidate NF instance acquisition request above), the NRF network element returns a discovery result (corresponding to the multiple candidate NF instances above, parameter information, location information, etc.) to the UDM network element after receiving the discovery request, and the UDM network element selects a standby NF instance according to a preset policy and sends the client message to the standby NF instance.
When it is determined that the active NF instance is abnormal based on the received subscription message of the active NF instance, a schematic interaction diagram of the UDM network element and other network elements is shown in fig. 4. In fig. 4, when the primary NF instance completes registration, the UDM network element will record information of the primary NF instance, and subscribe to the state of the primary NF instance to the NRF network element; when the primary NF instance is abnormal, the NRF network element can detect the abnormality and notify the UDM network element; after receiving the state abnormality notification sent by the NRF network element, the UDM network element records the state abnormality of the primary NF instance. And then the UDM network element triggers a discovery request (corresponding to the above candidate NF instance acquisition request), and after receiving the discovery request, the NRF network element returns a discovery result (corresponding to the above candidate NF instances, parameter information, position information, and the like) to the UDM network element, and the UDM network element determines a standby NF instance from the candidate NF instances according to a preset policy, and sends a client message to the standby NF instance.
In this way, the UDM network element can flexibly select the standby NF instance according to different service processing scenarios, and compared with the conventional manner of fixedly selecting the first candidate NF instance or the last candidate NF instance as the standby NF instance, the manner in the present application can perform optimal selection according to actual service processing scenarios, thereby improving service processing capability of the entire mobile communication network.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a service processing apparatus according to an embodiment of the present application. As shown in fig. 5, the service processing apparatus 500 is applied to a unified data management function UDM network element, and the apparatus 500 includes:
a sending module 501, configured to send a candidate NF instance acquisition request to a network storage function NRF network element when it is determined that an abnormality occurs in the primary NF instance;
a receiving module 502, configured to receive multiple candidate NF instances returned by the NRF network element, where the multiple candidate NF instances are determined by the NRF network element in response to the candidate NF instance acquisition request;
a determining module 503, configured to determine, from the multiple candidate NF instances, a standby NF instance for service processing based on a preset policy, where the preset policy is a policy preset according to an actual service processing requirement.
Further, the determining module 503 includes:
the first acquisition sub-module is used for acquiring parameter information corresponding to a plurality of candidate NF examples, wherein the parameter information comprises priority, capacity and load level;
the first determining submodule is used for determining the candidate NF instance with the highest priority in the candidate NF instances as a standby NF instance and carrying out service processing through the standby NF instance under the condition that the candidate NF instance with the highest priority in the candidate NF instances is one;
and the second determining submodule is used for generating a random number according to the capacity and the load grade corresponding to the candidate NF instance with the highest priority in the candidate NF instances when the candidate NF instances with the highest priority are multiple, determining the candidate NF instance with the highest priority corresponding to the numerical range of the random number as a standby NF instance, and carrying out service processing through the standby NF instance, wherein the upper limit value of the numerical range of the random number is the sum of priority factors, the priority factors divide the numerical range of the random number into a plurality of numerical ranges, and the priority factors are determined according to the capacity and the load grade.
Further, the determining module 503 includes:
the second acquisition sub-module is used for acquiring service response success rates corresponding to the candidate NF instances, wherein the service response success rates are determined and obtained based on the times that each candidate NF instance in the candidate NF instances successfully returns service response;
and the third determining submodule is used for determining a candidate NF example with the highest service response success rate from the plurality of candidate NF examples as a standby NF example and carrying out service processing through the standby NF example.
Further, the determining module 503 includes:
the third acquisition sub-module is used for acquiring service response time corresponding to the candidate NF examples, wherein the service response time is determined based on the service response time of each candidate NF example in the candidate NF examples;
and the fourth determining submodule is used for determining a candidate NF example with the minimum service response time from the plurality of candidate NF examples as a standby NF example and carrying out service processing through the standby NF example.
Further, the determining module 503 includes:
a fourth obtaining sub-module, configured to obtain location information corresponding to a plurality of candidate NF instances, where the location information is obtained from an NRF network element, and the NRF network element is configured to store location information corresponding to the plurality of candidate NF instances when registration of the plurality of candidate NF instances is successful;
and a fifth determining submodule, configured to determine a candidate NF instance with the nearest position among the multiple candidate NF instances as a standby NF instance, and perform service processing through the standby NF instance.
Further, the determining module 503 includes:
a fifth obtaining sub-module, configured to obtain identification information corresponding to the multiple candidate NF instances, where the identification information is recorded when the multiple candidate NF instances are successfully registered;
and the sixth determining submodule is used for determining the candidate NF instance corresponding to the pre-designated target identification information as the standby NF instance and carrying out service processing through the standby NF instance.
Further, the method for determining that the active NF instance is abnormal comprises:
determining based on a received response result of the active NF instance, wherein the response result of the active NF instance is determined by the active NF instance based on a service message sent by the UDM network element, and the response result of the active NF instance is null in case of abnormality of the active NF instance; or,
the method comprises the steps of determining based on received subscription information of a primary NF instance, wherein the subscription information of the primary NF instance is obtained by subscribing from an NRF network element, and the NRF network element is used for monitoring the state of the primary NF instance in real time under the condition that the primary NF instance is successfully registered.
It should be noted that, the apparatus 500 may implement the steps of the service processing method provided in any one of the foregoing method embodiments, and may achieve the same technical effects, which are not described herein in detail.
As shown in fig. 6, the embodiment of the present application provides an electronic device, which includes a processor 611, a communication interface 612, a memory 613 and a communication bus 614, wherein the processor 611, the communication interface 612, and the memory 613 perform communication with each other through the communication bus 614,
a memory 613 for storing a computer program;
in one embodiment of the present application, the processor 611 is configured to implement the service processing method provided in any one of the foregoing method embodiments when executing the program stored in the memory 613, where the method includes:
under the condition that the primary network function NF instance is determined to be abnormal, sending a candidate NF instance acquisition request to a network storage function NRF network element;
receiving a plurality of candidate NF examples returned by the NRF network element, wherein the plurality of candidate NF examples are determined by the NRF network element in response to a candidate NF example acquisition request;
and determining a standby NF instance from the plurality of candidate NF instances to perform service processing based on a preset strategy, wherein the preset strategy is preset according to actual service processing requirements.
The present application further provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the service processing method provided in any of the method embodiments described above.
It should be noted that in this document, relational terms such as "first" and "second" and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing is only a specific embodiment of the invention to enable those skilled in the art to understand or practice the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (10)
1. A service processing method, applied to a unified data management function UDM network element, the method comprising:
under the condition that the primary network function NF instance is determined to be abnormal, sending a candidate NF instance acquisition request to a network storage function NRF network element;
receiving a plurality of candidate NF examples returned by the NRF network element, wherein the plurality of candidate NF examples are determined by the NRF network element in response to the candidate NF example acquisition request;
and determining a standby NF instance from the candidate NF instances to perform service processing based on a preset strategy, wherein the preset strategy is preset according to actual service processing requirements.
2. The method of claim 1, wherein determining, based on a preset policy, a standby NF instance from the plurality of candidate NF instances for service processing comprises:
acquiring parameter information corresponding to the candidate NF examples, wherein the parameter information comprises priority, capacity and load level;
under the condition that the candidate NF instance with the highest priority in the candidate NF instances is one, determining the candidate NF instance with the highest priority in the candidate NF instances as the standby NF instance, and carrying out service processing through the standby NF instance;
under the condition that a plurality of candidate NF examples with the highest priority are provided, generating a random number according to the capacity and the load level corresponding to the candidate NF example with the highest priority in the plurality of candidate NF examples, determining the candidate NF example with the highest priority corresponding to a numerical interval corresponding to the random number as the standby NF example, and carrying out service processing through the standby NF example; the upper limit value of the value range of the random number is the sum of priority factors, the priority factors divide the value range of the random number into a plurality of numerical intervals, and the priority factors are determined according to the capacity and the load level.
3. The method of claim 1, wherein determining, based on a preset policy, a standby NF instance from the plurality of candidate NF instances for service processing comprises:
acquiring service response success rates corresponding to the candidate NF instances, wherein the service response success rates are determined based on the number of times that each candidate NF instance in the candidate NF instances successfully returns service response;
and determining the candidate NF instance with the highest service response success rate in the candidate NF instances as the standby NF instance, and performing service processing through the standby NF instance.
4. The method of claim 1, wherein determining, based on a preset policy, a standby NF instance from the plurality of candidate NF instances for service processing comprises:
acquiring service response time corresponding to the candidate NF examples, wherein the service response time is determined based on the service response time of each candidate NF example in the candidate NF examples;
and determining the candidate NF instance with the minimum service response time in the plurality of candidate NF instances as the standby NF instance, and performing service processing through the standby NF instance.
5. The method of claim 1, wherein determining, based on a preset policy, a standby NF instance from the plurality of candidate NF instances for service processing comprises:
acquiring position information corresponding to the candidate NF instances, wherein the position information is acquired from the NRF network element, and the NRF network element is used for storing the position information corresponding to the candidate NF instances under the condition that the candidate NF instances are successfully registered;
and determining the candidate NF instance with the nearest position in the plurality of candidate NF instances as the standby NF instance, and carrying out service processing through the standby NF instance.
6. The method of claim 1, wherein determining, based on a preset policy, a standby NF instance from the plurality of candidate NF instances for service processing comprises:
acquiring identification information corresponding to the candidate NF examples, wherein the identification information is recorded under the condition that the candidate NF examples are successfully registered;
and determining the candidate NF instance corresponding to the pre-designated target identification information as the standby NF instance, and carrying out service processing through the standby NF instance.
7. The method of claim 1, wherein determining the manner in which the active NF instance is abnormal comprises:
determining based on the received response result of the active NF instance, wherein the response result of the active NF instance is determined by the active NF instance based on the service message sent by the UDM network element, and the response result of the active NF instance is null in case of abnormality of the active NF instance; or,
and determining based on the received subscription information of the active NF instance, wherein the subscription information of the active NF instance is subscribed from the NRF network element, and the NRF network element is used for monitoring the state of the active NF instance in real time under the condition that the active NF instance is successfully registered.
8. A service processing device, characterized by being applied to a unified data management function, UDM, network element, the device comprising:
the sending module is used for sending a candidate NF instance acquisition request to the network storage function NRF network element under the condition that the primary NF instance is determined to be abnormal;
the receiving module is used for receiving a plurality of candidate NF examples returned by the NRF network element, wherein the plurality of candidate NF examples are obtained by the NRF network element in response to the candidate NF example acquisition request;
and the determining module is used for determining a standby NF instance from the plurality of candidate NF instances to carry out service processing based on a preset strategy, wherein the preset strategy is preset according to the actual service processing requirement.
9. The electronic equipment is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
a processor for implementing the steps of the business processing method of any one of claims 1 to 7 when executing a program stored on a memory.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the service processing method according to any of claims 1-7.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210814522.XA CN117425167A (en) | 2022-07-11 | 2022-07-11 | Service processing method, device, electronic equipment and storage medium |
PCT/CN2023/106792 WO2024012450A1 (en) | 2022-07-11 | 2023-07-11 | Service processing method and apparatus, electronic device, and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210814522.XA CN117425167A (en) | 2022-07-11 | 2022-07-11 | Service processing method, device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117425167A true CN117425167A (en) | 2024-01-19 |
Family
ID=89525258
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210814522.XA Pending CN117425167A (en) | 2022-07-11 | 2022-07-11 | Service processing method, device, electronic equipment and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN117425167A (en) |
WO (1) | WO2024012450A1 (en) |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109818766B (en) * | 2017-11-21 | 2022-08-16 | 中兴通讯股份有限公司 | Communication method, network function entity, network function storage and computer readable storage medium |
CN110167195B (en) * | 2018-02-13 | 2022-12-06 | 华为技术有限公司 | Communication method and communication device |
CN112188514B (en) * | 2019-07-05 | 2024-05-14 | 中兴通讯股份有限公司 | Service processing method, network equipment and storage medium |
WO2021032501A1 (en) * | 2019-08-21 | 2021-02-25 | Telefonaktiebolaget Lm Ericsson (Publ) | Methods and apparatuses for network function discovery |
CN115396851A (en) * | 2019-09-26 | 2022-11-25 | 华为技术有限公司 | NF-based communication method, NF-based communication equipment and NF-based storage medium |
CN110798360B (en) * | 2019-11-06 | 2022-06-28 | 腾讯科技(深圳)有限公司 | NWDAF network element selection method and device, electronic equipment and readable storage medium |
-
2022
- 2022-07-11 CN CN202210814522.XA patent/CN117425167A/en active Pending
-
2023
- 2023-07-11 WO PCT/CN2023/106792 patent/WO2024012450A1/en unknown
Also Published As
Publication number | Publication date |
---|---|
WO2024012450A1 (en) | 2024-01-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9723583B2 (en) | Masterless slot allocation | |
CN109117275B (en) | Account checking method and device based on data slicing, computer equipment and storage medium | |
CN108881512B (en) | CTDB virtual IP balance distribution method, device, equipment and medium | |
CN108062243B (en) | Execution plan generation method, task execution method and device | |
CN113259139B (en) | Group creating method and device | |
CN112218342A (en) | Method, device and system for realizing core network sub-slice disaster tolerance | |
US20180018363A1 (en) | Time series data processing method and apparatus | |
US8880665B2 (en) | Nonstop service system using voting, and information updating and providing method in the same | |
CN112866408A (en) | Service switching method, device, equipment and storage medium in cluster | |
CN113055461B (en) | ZooKeeper-based unmanned cluster distributed cooperative command control method | |
CN117425167A (en) | Service processing method, device, electronic equipment and storage medium | |
CN112583875B (en) | Asset scanning method and device | |
CN110008068B (en) | Distributed task disaster recovery method and device thereof | |
CN111198756A (en) | Application scheduling method and device of kubernets cluster | |
CN111400327B (en) | Data synchronization method and device, electronic equipment and storage medium | |
CN107493308B (en) | Method and device for sending message and distributed equipment cluster system | |
CN112001800B (en) | Method and device for processing business in block chain system | |
CN101753428A (en) | Method, device and processing system for capturing and reporting the information of instance labels | |
US8825901B2 (en) | Distributed parallel discovery | |
CN111711976A (en) | Node clustering method, system, terminal equipment and computer readable storage medium | |
CN117407855B (en) | Unified user authentication method, system, equipment and medium based on dimension projection | |
CN115622988B (en) | Call response method and device for web interface, electronic equipment and storage medium | |
CN110196874A (en) | Data subscription method, device and server | |
CN112019452B (en) | Method, system and related device for processing service requirement | |
CN113239202B (en) | Data processing method, device, server and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication |