Nothing Special   »   [go: up one dir, main page]

CN114363935A - Network element detection method and device, storage medium and electronic equipment - Google Patents

Network element detection method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN114363935A
CN114363935A CN202111664530.2A CN202111664530A CN114363935A CN 114363935 A CN114363935 A CN 114363935A CN 202111664530 A CN202111664530 A CN 202111664530A CN 114363935 A CN114363935 A CN 114363935A
Authority
CN
China
Prior art keywords
network element
target network
state
heartbeat message
target
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
Application number
CN202111664530.2A
Other languages
Chinese (zh)
Inventor
黄泽源
谢晓军
张会炎
万亭君
周奇
陈长怡
薛龙
马壮展
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Telecom Corp Ltd
Original Assignee
China Telecom Corp Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by China Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN202111664530.2A priority Critical patent/CN114363935A/en
Publication of CN114363935A publication Critical patent/CN114363935A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present disclosure relates to a network element detection method, device, storage medium and electronic device, and relates to the technical field of communications, wherein the method comprises: the method comprises the steps of firstly receiving a subscription request of a target network element NF on a target NF state, receiving a heartbeat message sent by the target network element NF, monitoring whether the heartbeat message is received within a preset period time, if the heartbeat message is not received within the preset period time, initiating an NF state detection request to an NF state notification interface of the target network element NF, then determining a prediction state of the target network element NF according to the response time of the target network element NF on the NF state detection request, and returning the obtained prediction state to the target network element NF. Therefore, the state detection can be actively initiated on the abnormal network element by the NRF under the condition that the NF service interface of the network element is not increased, the problem of misjudgment on NF faults caused by untimely detection can be avoided, the detection efficiency of the network element state can be improved, and the availability of the 5GC system can be further improved.

Description

Network element detection method and device, storage medium and electronic equipment
Technical Field
The embodiment of the disclosure relates to the technical field of communication, and in particular, to a network element detection method, a network element detection device, a storage medium and electronic equipment.
Background
With the rapid development of the fifth Generation Mobile Communication Technology (5G), the standard R15 specification of 3GPP introduces a Service Based Architecture (SBA) in the 5G control plane, and each Network Function (Network Function) provides a Service interface to the outside. Network warehousing Function (NRF) Network elements are responsible for the automated management of all NFs, including registration, discovery, and status detection. After the NF is started, information of a Network Function Service (NFs) of the NF is actively reported to the NRF, and the corresponding NF is found through the NRF.
In the current 3GPP specification, the method used is that a network element (NF) and an NRF keep alive through a heartbeat message, and the NRF determines whether the NF is available by determining whether the NF heartbeat is detected within a timeout period. Therefore, the time for monitoring the heartbeat message cannot be accurately set, so that the fault or transient fault of the NF caused by the NRF is easily misjudged, and the availability of the system is reduced.
Therefore, a new method and apparatus for detecting a network element are needed.
It is to be noted that the information invented in the background section above is only for enhancement of understanding of the background of the present disclosure, and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
In order to overcome the problems in the related art, the present disclosure provides a network element detection method, apparatus, storage medium, and electronic device, so as to at least solve the problem that the NRF makes a false determination on a NF fault or a transient fault and reduces system availability due to an inability to accurately set a time for monitoring a heartbeat message in the related art.
According to an aspect of the present disclosure, there is provided a network element detection method applied to NRF, the method including:
receiving a subscription request of a target network element NF for the target NF state, and receiving a heartbeat message sent by the target network element NF;
monitoring whether the heartbeat message is received within a preset period time;
if the heartbeat message is not received after the preset period time is exceeded, initiating an NF state detection request to an NF state notification interface of the target network element NF;
determining the prediction state of the target network element NF according to the response time of the target network element NF to the NF state detection request;
and returning the obtained prediction state to the target network element NF.
Optionally, the initiating a NF status detection request to the NF status notification interface of the target network element NF includes:
and periodically sending an NF state detection request to an NF state notification interface of the target network element NF.
Optionally, the determining the predicted state of the target network element NF according to the response time of the target network element NF to the NF state detection request includes:
acquiring the response time of the target network element NF to the NF state detection request;
and calculating the response time by using a preset random algorithm, and determining the predicted state of the target network element NF.
Optionally, the calculating the response time by using a preset random algorithm to determine the predicted state of the target network element NF includes:
calculating a transition matrix and transition probability of the response time by a Markov chain algorithm;
and determining the prediction state of the target network element NF according to the transition matrix of the response time and the transition probability.
Optionally, the method further includes:
receiving a subscription request of other network elements NF to the NF state of the target network element;
and if the heartbeat message is not received after the preset period time, returning a message that the target network element NF is in the first state to the other network elements NF.
Optionally, after determining the predicted state of the target network element NF according to the response time of the target network element NF to the NF state detection request, the method further includes:
and returning the message that the target network element NF is in the prediction state to the other network elements NF.
Optionally, the method further includes:
and after the preset period time is exceeded, the heartbeat message sent by the target network element NF is received again, and the operation of monitoring whether the heartbeat message is received within the preset period time is stopped.
According to an aspect of the present disclosure, there is provided a network element detecting apparatus applied to NRF, the apparatus including:
a first receiving module, configured to receive a subscription request of a target network element NF on a state of the target NF, and receive a heartbeat message sent by the target network element NF;
the monitoring module is used for monitoring whether the heartbeat message is received within a preset period time;
the initiation module is used for initiating an NF state detection request to an NF state notification interface of the target network element NF if the heartbeat message is not received after the preset period time;
a determining module, configured to determine a predicted state of the target network element NF according to a response time of the target network element NF to the NF state detection request;
and the first returning module is used for returning the obtained prediction state to the target network element NF.
Optionally, the initiating module is further configured to:
and periodically sending an NF state detection request to an NF state notification interface of the target network element NF.
Optionally, the determining module is further configured to:
acquiring the response time of the target network element NF to the NF state detection request;
and calculating the response time by using a preset random algorithm, and determining the predicted state of the target network element NF.
Optionally, the determining module is further configured to:
calculating a transition matrix and transition probability of the response time by a Markov chain algorithm;
and determining the prediction state of the target network element NF according to the transition matrix of the response time and the transition probability.
Optionally, the apparatus further comprises:
a second receiving module, configured to receive a subscription request of another network element NF for the target network element NF status;
and the second returning module is used for returning the message that the target network element NF is in the first state to the other network elements NF if the heartbeat message is not received after the preset period time.
Optionally, the apparatus further comprises:
and a third returning module, configured to return the message that the target network element NF is in the predicted state to the other network elements NF.
Optionally, the apparatus further comprises:
and a stopping module, configured to stop executing the operation of monitoring whether the heartbeat message is received within a preset period of time when the heartbeat message sent by the target network element NF is received again after the preset period of time is exceeded.
According to an aspect of the present disclosure, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the network element detection method of any one of the above.
According to an aspect of the present disclosure, there is provided an electronic device including:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the network element detection method of any one of the above via execution of the executable instructions.
In summary, the network element detection method provided in the embodiment of the present invention may receive a subscription request of a target network element NF for a target NF status, receive a heartbeat message sent by the target network element NF, and monitor whether the heartbeat message is received within a preset period time, if the heartbeat message is not received within the preset period time, initiate an NF status detection request to an NF status notification interface of the target network element NF, determine a predicted status of the target network element NF according to a response time of the target network element NF for the NF status detection request, and return the obtained predicted status to the target network element NF. Therefore, the state detection can be actively initiated on the abnormal network element by the NRF under the condition that the NF service interface of the network element is not increased, the problem of misjudgment on NF faults caused by untimely detection can be avoided, the detection efficiency of the network element state can be improved, and the availability of the 5GC system can be further improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure. It is to be understood that the drawings in the following description are merely exemplary of the disclosure, and that other drawings may be derived from those drawings by one of ordinary skill in the art without the exercise of inventive faculty.
Fig. 1 is a flowchart illustrating steps of a network element detection method according to an embodiment of the present disclosure;
fig. 2 is a flowchart illustrating steps of another network element detecting method according to an embodiment of the present disclosure;
fig. 3 is a flowchart illustrating steps of another network element detecting method according to an embodiment of the present disclosure
Fig. 4 is a schematic diagram of a network element detection flow provided in the embodiment of the present disclosure;
fig. 5 is a schematic diagram of a network element detection interaction provided in an embodiment of the present disclosure;
fig. 6 is a block diagram of an apparatus for detecting a network element according to an embodiment of the present disclosure;
fig. 7 schematically illustrates an electronic device for implementing the network element detection method according to an exemplary embodiment of the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the subject matter of the present disclosure can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and the like. In other instances, well-known technical solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repetitive description will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
Fig. 1 is a flowchart of steps of a network element detection method provided in an embodiment of the present disclosure, which is applied to NRF, and as shown in fig. 1, the method may include:
step S101, receiving a subscription request of a target network element NF to the target NF state, and receiving a heartbeat message sent by the target network element NF.
In this embodiment of the present disclosure, the receiving of the subscription request of the target network element NF for the target NF status may be that the target network element NF sends a request for subscribing to its own status to the NRF, and accordingly, the NRF receives the subscription request of the target network element NF for the target NF status, where the subscription request of the target NF status may be a request for obtaining the target NF status, specifically, the subscription request of the target NF status may be a request for obtaining the target NF status periodically according to a preset time, or an updated target NF status may be obtained when the target NF status changes.
In this embodiment of the present disclosure, the heartbeat message sent by the target network element NF is received, where the heartbeat message may be a heartbeat message sent by the target network element NF to the NRF, and accordingly, the NRF receives the heartbeat message, where the heartbeat message may be a message sent according to a preset rule, for example, a message sent according to a preset period, or a message sent idle, so that the NRF monitors whether or not the NF fails and when the NF fails.
And S102, monitoring whether the heartbeat message is received within a preset period time.
In this embodiment of the disclosure, the preset period time may be a time for monitoring a heartbeat message, and monitoring whether the heartbeat message is received within the preset period time, and may be monitoring whether the heartbeat message sent by the target network element NF is received within the preset period time by the NRF.
Step S103, if the heartbeat message is not received after the preset period time, a NF state detection request is initiated to a NF state notification interface of the target network element NF.
In the embodiment of the present disclosure, if the NRF monitors that the heartbeat message sent by the target network element NF is not received after exceeding the preset period time, the NRF may directly initiate an NF status detection request to an NF status notification interface of the target network element NF, and start to detect the status of the target network element NF. The NF status notification interface may be a subscription request of a target NF status sent by the target network element NF, where the subscription request carries parameter information of the NF status notification interface, so that when the NRF monitors that the target network element NF fails, the NF sends a detection status request to the target network element NF. After receiving the NF status detection request, the target network element NF needs to return response information to the NRF, so that the NRF determines the status of the target network element NF according to the returned response information.
And step S104, determining the prediction state of the target network element NF according to the response time of the target network element NF to the NF state detection request.
In the embodiment of the present disclosure, since the NRF may send the multiple NF status detection requests to the target network element NF through the NF status notification interface, the NRF may count response times of the target network element NF to the multiple NF status detection requests in sequence, so as to predict a current status of the target network element NF based on the response times of the multiple NF status detection requests, and obtain a predicted status of the target network element NF.
For example, a response time interval of the target network element NF to the adjacent NF status detection request may be determined, if the response time interval matches with a transmission time interval of the NF status detection request and is smaller than a preset delay threshold, the predicted status of the target network element NF may be determined to be a normal status, and if the response time interval does not match with the transmission time interval of the NF status detection request and/or the response time interval is greater than the preset delay threshold, the predicted status of the target network element NF may be determined to be a failure status.
Step S105, the obtained prediction state is returned to the target network element NF.
In the embodiment of the present disclosure, the NRF may return the predicted state of the target network element NF to the network element NF that subscribes to the state of the target network element NF, that is, the NRF may return the predicted state of the target network element NF to the target network element NF, so that the target network element NF can repair its own fault in time according to the predicted state, thereby quickly recovering to a normal operating state.
In summary, the network element detection method provided in the embodiment of the present invention may receive a subscription request of a target network element NF for a target NF status, receive a heartbeat message sent by the target network element NF, and monitor whether the heartbeat message is received within a preset period time, if the heartbeat message is not received within the preset period time, initiate an NF status detection request to an NF status notification interface of the target network element NF, determine a predicted status of the target network element NF according to a response time of the target network element NF for the NF status detection request, and return the obtained predicted status to the target network element NF. Therefore, the state detection can be actively initiated on the abnormal network element by the NRF under the condition that the NF service interface of the network element is not increased, the problem of misjudgment on NF faults caused by untimely detection can be avoided, the detection efficiency of the network element state can be improved, and the availability of the 5GC system can be further improved.
Optionally, the operation of initiating the NF status detection request to the NF status notification interface of the target network element NF in the embodiment of the present disclosure may specifically include:
and periodically sending an NF state detection request to an NF state notification interface of the target network element NF.
In the embodiment of the present disclosure, the NRF may send the NF status detection request to the NF status notification interface of the target network element NF according to a preset detection period, so that the NRF counts the response time of the target network element NF to the periodic NF status detection request to determine the predicted status of the target network element NF.
Optionally, in the embodiment of the present disclosure, the determining, according to the response time of the target network element NF to the NF status detection request, an operation of the prediction status of the target network element NF, as shown in fig. 2, may specifically include:
step S1041, obtaining a response time of the target network element NF to the NF status detection request.
In the embodiment of the present disclosure, after the NRF periodically sends the NF status detection request through the NF status notification interface, the target network element NF responds to the NF status detection request, the target network element NF returns response information to the NF status detection request to the NRF, the NRF obtains the returned response information to the NF status detection request, and the NRF may determine response time to the NF status detection request.
Step S1042, calculating the response time by using a preset random algorithm, and determining the prediction state of the target network element NF.
In the embodiment of the present disclosure, the preset random algorithm may be a Markov Chain (MC) algorithm, a forest accumulation algorithm, or other random prediction models. The response time is calculated by using a preset random algorithm, and the predicted state of the target network element NF is determined, where the response time is calculated in a simulation manner by using a preset stacking algorithm, and the probabilities of the target network element NF being in different states are determined, for example, the target network element NF may have three states, which are respectively a normal state (register), an unstable state (unstable) or a suspend state (suspend), and then the probabilities of the target network element NF being in the normal state (register), the unstable state (unstable) or the suspend state (suspend) may be determined, and the state with the highest probability may be used as the predicted state of the target network element NF.
Optionally, the operation of calculating the response time by using a preset random algorithm to determine the predicted state of the target network element NF in the embodiment of the present disclosure may specifically include:
calculating a transition matrix and transition probability of the response time by a Markov chain algorithm; and determining the prediction state of the target network element NF according to the transition matrix of the response time and the transition probability.
In the embodiment of the present disclosure, the markov chain algorithm is used to determine the predicted state of the target network element NF, and the specific steps are as follows: the method comprises the steps of firstly obtaining response time of n target network elements NF to NF state detection requests, calculating and determining probability states of downstream micro services, deducing transition states through the probability states, counting the states based on the probability states and the transition states to generate state spaces, generating transition matrixes according to the state spaces, wherein the matrixes can represent the overall state positions of the micro services, finally calculating current transition matrixes according to matrix multiplication, calculating transition probabilities through the transition matrixes, and selecting the state with the maximum transition probability as a prediction state of the target network elements NF according to the transition probabilities corresponding to different states.
The exemplary flow of determining the predicted state of the target network element NF using the markov chain algorithm is as follows: 1) get _ responsetime _ data (): n state detection response time data are acquired and automatically generated to drive a markov chain process. Determining the status of NF1 by processing the response time data; the total _ time parameter returned by the curl _ getinfo can obtain the total response time of each state detection request and store it in the sequence response _ time. 2) find _ bin (): grouping and arranging the response times in ascending order; the obtained response time samples response _ time are grouped, bin ═ bin0, bin1, … …, binn ], where n ═ ceil (sqrt (count)), bin0 ═ min, bin1 ═ min + β, … …, and bin ═ min + n β. count is the total number of sample response _ time, sqrt (count) is the square of count, ceil (sqrt (count)) is the next integer no less than sqrt (count). The gradient beta of the grouping is (max-min)/sqrt (count), max is the maximum value in the samples, and min is the minimum value in the samples. 3) fin _ freq (): calculating the number of response time samples in each response time packet by combining the previous two steps; the number mn of the statistical sample response _ time in each packet xn (0< ═ n < ceil (sqrt (count))), freq ═ freq0, freq1, … … freqn ], (0< ═ n < ceil (sqrt (count))). When n is 0, freq0 ═ count (response _ time < x1), and when n >0, freqn-1 ═ count (xn-1< response _ time < xn). 4) find _ cum _ freq (): calculating the cumulative frequency of the response time data from the frequency obtained in the last step; the cumulative frequency cumfreq ═ cumfreq 0, cumfreq 1, … …, cumfreqn ], (0< ═ n < ceil (sqrt (count))). cumfreq 0 ═ freq0, cumfreq 1 ═ cumfreq 0+ freq1, … …, cumfreqn ═ cumfreqn-1 + freqn. 5) find _ quartz _ range (): dividing the accumulated frequency of the previous step into four groups to find the quartile range of the response time set; the response times are grouped and divided into four equal parts, and the number of quartiles is calculated by calculating the data at the positions of the three split points. 6) find _ p _ states (): calculating the probability of each state by using the response time of 1) and the range of the previous step; according to the range calculated by 5), the range in which the response time sample of response time of response _ time is positioned is counted as states P1, P2 and P3. 7) find _ transition _ states (): the transition state is calculated based on the state probabilities of the previous step. 8) find _ state _ count (): determining a state count using the probability state of 6) and the transition state of 7); calculating the state frequency numbers of P1, P2, P3, P _11, P _12, P _13, P _21, P _22, P _23, P _31, P _32 and P _ 33; 9) create _ transition _ matrix (): creating a transition matrix based on 8) the state count; calculating a state transition matrix transition _ matrix { [ P11/P1, P12/P1, P13/P1], [ P21/P2, P22/P2, P23/P2], [ P31/P3, P32/P3, P33/P3] }; 10) matrix _ mult _3_3 (): 3 x 3 multiplication matrix function is used to calculate transition probability; the function calculates the result of multiplying the 3 x 3 matrix m1 with the matrix of the 3 x 3 matrix m 2. 11) find _ transition _ matrix (): the current transition probability is calculated and may be determined using the transition matrix multiplied by the matrix of the current state. 12) predict _ state (): through 1) -11) steps ultimately predict the state of the NF as "Register", "Unstable", or "Suspend".
Optionally, in this embodiment of the present disclosure, as shown in fig. 3, the network element detection method may further specifically include:
step S21, receiving a subscription request of the target network element NF status from another network element NF.
In the embodiment of the present disclosure, when the other network element NF is associated with the target network element NF and the state of the target network element NF needs to be obtained, the other network element NF may send a subscription request for the state of the target network element NF to the NRF, and accordingly, the NRF receives the subscription request for the state of the target network element NF sent by the other network element NF.
Step S22, if the heartbeat message is not received after the preset period time, returning a message that the target network element NF is in the first state to the other network elements NF.
In this embodiment of the present disclosure, when the NRF detects that the heartbeat message is not received even after the preset period time is exceeded, the NRF may return a message that the target network element NF is in the first state to the other network element NF. The message of the first status may be that the target network element NF is in a suspended state.
Optionally, after the operation of determining the predicted state of the target network element NF according to the response time of the target network element NF to the NF state detection request in the embodiment of the present disclosure, the method may further include:
and returning the message that the target network element NF is in the prediction state to the other network elements NF.
In the embodiment of the present disclosure, the NRF may return a message that the target network element NF is in the predicted state to other network elements NF that subscribe to the target network element NF state according to the predicted state of the target network element NF obtained by the calculation.
Optionally, in this embodiment of the present disclosure, the network element detecting method may further include:
and after the preset period time is exceeded, the heartbeat message sent by the target network element NF is received again, and the operation of monitoring whether the heartbeat message is received within the preset period time is stopped.
In the embodiment of the present disclosure, after the NRF exceeds the preset period time, the NRF may re-receive the heartbeat message sent by the target network element NF, and then the NRF may stop performing the operation of monitoring whether the heartbeat message is received within the preset period time.
For example, fig. 4 is a schematic diagram of a network element detection flow provided by an embodiment of the present disclosure, as shown in fig. 4, a network element NF may register with an NRF and subscribe to a self state, and the NF periodically sends a heartbeat message to the NRF to keep alive; when the heartbeat detection module on the NRF detects that the heartbeat message is overtime and the NRF does not receive the NF heartbeat message, the heartbeat detection module on the NRF opens the NF state detection module to preliminarily judge that the NF is in a SUSPEND state; the NRF informs other network elements subscribed with the NF state that the NF state is a SUSPEND state; before receiving the next non-overtime heartbeat message, the NF state detection module of the NRF periodically initiates a NF state detection request to a state notification interface of the NF; the NRF collects the state detection response time of the NF, and judges whether the state of the NF is 'REGISTER', 'UNSTABLE' or 'SUSPEND' through a Markov chain model; the NRF informs other network elements according to the prediction state. And the NRF receives the heartbeat message of the NF again within the heartbeat timeout time, and the NF state detection module closes and stops NF state detection.
For example, fig. 5 is a schematic diagram of a network element detection interaction provided in an embodiment of the present disclosure, as shown in fig. 5, 1, a network element NF1 registers with an NRF and subscribes to a state of NF1 itself; 2. NF1 sends a heartbeat message to the NRF; 3. NRF judges whether heartbeat is overtime; 4. if yes, the NRF determines that the NF1 state is a pause state, and opens an NF abnormal state detector; 5. the NRF returns NF1 to other NF as a suspended state; 6. NRF returns NF1 to NF1 as a pause state; 7. the NRF predicts NF1 states using a Markov chain model; 8. the NRF periodically initiates a NF state detection request to the NF 1; 9. the NRF returns the predicted status of NF1 to the other NFs; 10. NF1 sends a heartbeat request to the NRF; 11. NRF judges whether heartbeat is overtime; 12. if not, NRF determines NF1 status as normal status, and closes NF abnormal status detector.
Fig. 6 is a block diagram of an apparatus for detecting a network element according to an embodiment of the present disclosure, and as shown in fig. 6, the apparatus 30 includes:
a first receiving module 301, configured to receive a subscription request of a target network element NF on a state of the target NF, and receive a heartbeat message sent by the target network element NF;
a monitoring module 302, configured to monitor whether the heartbeat message is received within a preset period time;
an initiating module 303, configured to initiate an NF status detection request to an NF status notification interface of the target network element NF if the heartbeat message is not received after the preset period time;
a determining module 304, configured to determine a predicted state of the target network element NF according to a response time of the target network element NF to the NF status detection request;
a first returning module 305, configured to return the obtained prediction status to the target network element NF.
In summary, the network element detection apparatus provided in the embodiment of the present invention may receive a subscription request of the target network element NF for the target NF status, receive a heartbeat message sent by the target network element NF, and monitor whether the heartbeat message is received within a preset period time, if the heartbeat message is not received within the preset period time, initiate an NF status detection request to an NF status notification interface of the target network element NF, determine the predicted status of the target network element NF according to the response time of the target network element NF for the NF status detection request, and return the obtained predicted status to the target network element NF. Therefore, the state detection can be actively initiated on the abnormal network element by the NRF under the condition that the NF service interface of the network element is not increased, the problem of misjudgment on NF faults caused by untimely detection can be avoided, the detection efficiency of the network element state can be improved, and the availability of the 5GC system can be further improved.
Optionally, the initiating module 303 is further configured to:
and periodically sending an NF state detection request to an NF state notification interface of the target network element NF.
Optionally, the determining module 304 is further configured to:
acquiring the response time of the target network element NF to the NF state detection request;
and calculating the response time by using a preset random algorithm, and determining the predicted state of the target network element NF.
Optionally, the determining module 304 is further configured to:
calculating a transition matrix and transition probability of the response time by a Markov chain algorithm;
and determining the prediction state of the target network element NF according to the transition matrix of the response time and the transition probability.
Optionally, the apparatus 30 further includes:
a second receiving module, configured to receive a subscription request of another network element NF for the target network element NF status;
and the second returning module is used for returning the message that the target network element NF is in the first state to the other network elements NF if the heartbeat message is not received after the preset period time.
Optionally, the apparatus 30 further includes:
and a third returning module, configured to return the message that the target network element NF is in the predicted state to the other network elements NF.
Optionally, the apparatus 30 further includes:
and a stopping module, configured to stop executing the operation of monitoring whether the heartbeat message is received within a preset period of time when the heartbeat message sent by the target network element NF is received again after the preset period of time is exceeded.
The details of each module in the network element detection apparatus have been described in detail in the corresponding network element detection method, and therefore are not described herein again.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Moreover, although the steps of the methods of the present disclosure are depicted in the drawings in a particular order, this does not require or imply that the steps must be performed in this particular order, or that all of the depicted steps must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions, etc.
In an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.
As will be appreciated by one skilled in the art, aspects of the present disclosure may be embodied as a system, method or program product. Accordingly, various aspects of the present disclosure may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
An electronic device 400 according to this embodiment of the disclosure is described below with reference to fig. 7. The electronic device 400 shown in fig. 4 is only an example and should not bring any limitations to the functionality and scope of use of the embodiments of the present disclosure.
As shown in fig. 7, electronic device 400 is embodied in the form of a general purpose computing device. The components of electronic device 400 may include, but are not limited to: the at least one processing unit 410, the at least one memory unit 420, a bus 430 connecting the various system components (including the memory unit 420 and the processing unit 410), and a display unit 440.
Wherein the storage unit stores program code that is executable by the processing unit 410 to cause the processing unit 410 to perform steps according to various exemplary embodiments of the present disclosure as described in the above section "exemplary methods" of this specification. For example, the processing unit 410 may perform step 101 as shown in fig. 1: receiving a subscription request of a target network element NF for the target NF state, and receiving a heartbeat message sent by the target network element NF; step 102: monitoring whether the heartbeat message is received within a preset period time; step 103: if the heartbeat message is not received after the preset period time is exceeded, initiating an NF state detection request to an NF state notification interface of the target network element NF; step 104: determining the prediction state of the target network element NF according to the response time of the target network element NF to the NF state detection request; step 105: and returning the obtained prediction state to the target network element NF.
The storage unit 420 may include readable media in the form of volatile storage units, such as a random access memory unit (RAM)4201 and/or a cache memory unit 4202, and may further include a read only memory unit (ROM) 4203.
The storage unit 420 may also include a program/utility 4204 having a set (at least one) of program modules 4205, such program modules 4205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 430 may be any bus representing one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 400 may also communicate with one or more external devices 500 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 400, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 400 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 450. Also, the electronic device 400 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) via the network adapter 460. As shown, the network adapter 460 communicates with the other modules of the electronic device 400 over the bus 430. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with electronic device 400, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
In an exemplary embodiment of the present disclosure, there is also provided a computer-readable storage medium having stored thereon a program product capable of implementing the above-described method of the present specification. In some possible embodiments, various aspects of the disclosure may also be implemented in the form of a program product comprising program code for causing a terminal device to perform the steps according to various exemplary embodiments of the disclosure described in the "exemplary methods" section above of this specification, when the program product is run on the terminal device.
According to the program product for implementing the above method of the embodiments of the present disclosure, it may employ a portable compact disc read only memory (CD-ROM) and include program codes, and may be run on a terminal device, such as a personal computer. However, the program product of the present disclosure is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
A computer readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
Furthermore, the above-described figures are merely schematic illustrations of processes included in methods according to exemplary embodiments of the present disclosure, and are not intended to be limiting. It will be readily understood that the processes shown in the above figures are not intended to indicate or limit the chronological order of the processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, e.g., in multiple modules.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (10)

1. A network element detection method, applied to NRF, the method comprising:
receiving a subscription request of a target network element NF for the target NF state, and receiving a heartbeat message sent by the target network element NF;
monitoring whether the heartbeat message is received within a preset period time;
if the heartbeat message is not received after the preset period time is exceeded, initiating an NF state detection request to an NF state notification interface of the target network element NF;
determining the prediction state of the target network element NF according to the response time of the target network element NF to the NF state detection request;
and returning the obtained prediction state to the target network element NF.
2. The method of claim 1, wherein the initiating a NF status detection request to a NF status notification interface of the target network element NF comprises:
and periodically sending an NF state detection request to an NF state notification interface of the target network element NF.
3. The method of claim 2, wherein the determining the predicted status of the target network element NF according to the response time of the target network element NF to the NF status detection request comprises:
acquiring the response time of the target network element NF to the NF state detection request;
and calculating the response time by using a preset random algorithm, and determining the predicted state of the target network element NF.
4. The method of claim 3, wherein the determining the predicted state of the target network element NF by calculating the response time using a preset random algorithm comprises:
calculating a transition matrix and transition probability of the response time by a Markov chain algorithm;
and determining the prediction state of the target network element NF according to the transition matrix of the response time and the transition probability.
5. The method of claim 1, further comprising:
receiving a subscription request of other network elements NF to the NF state of the target network element;
and if the heartbeat message is not received after the preset period time, returning a message that the target network element NF is in the first state to the other network elements NF.
6. The method of claim 5, wherein after said determining the predicted status of the target network element NF according to the response time of the target network element NF to the NF status detection request, further comprising:
and returning the message that the target network element NF is in the prediction state to the other network elements NF.
7. The method of claim 1, further comprising:
and after the preset period time is exceeded, the heartbeat message sent by the target network element NF is received again, and the operation of monitoring whether the heartbeat message is received within the preset period time is stopped.
8. A network element detection apparatus, applied to NRF, the apparatus comprising:
a first receiving module, configured to receive a subscription request of a target network element NF on a state of the target NF, and receive a heartbeat message sent by the target network element NF;
the monitoring module is used for monitoring whether the heartbeat message is received within a preset period time;
the initiation module is used for initiating an NF state detection request to an NF state notification interface of the target network element NF if the heartbeat message is not received after the preset period time;
a determining module, configured to determine a predicted state of the target network element NF according to a response time of the target network element NF to the NF state detection request;
and the first returning module is used for returning the obtained prediction state to the target network element NF.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the network element detection method according to any one of claims 1 to 7.
10. An electronic device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the network element detection method of any one of claims 1-7 via execution of the executable instructions.
CN202111664530.2A 2021-12-31 2021-12-31 Network element detection method and device, storage medium and electronic equipment Pending CN114363935A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111664530.2A CN114363935A (en) 2021-12-31 2021-12-31 Network element detection method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111664530.2A CN114363935A (en) 2021-12-31 2021-12-31 Network element detection method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN114363935A true CN114363935A (en) 2022-04-15

Family

ID=81104983

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111664530.2A Pending CN114363935A (en) 2021-12-31 2021-12-31 Network element detection method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN114363935A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115134837A (en) * 2022-06-27 2022-09-30 中国电信股份有限公司 Network element state detection method and device, computer readable medium and electronic equipment
WO2023109335A1 (en) * 2021-12-14 2023-06-22 中兴通讯股份有限公司 Network function state detection method and device and storage medium
WO2024109550A1 (en) * 2022-11-25 2024-05-30 中兴通讯股份有限公司 State information determination method and system for nf end, and electronic device and storage medium
CN118714048A (en) * 2024-08-27 2024-09-27 江阴长仪集团有限公司 Convergence monitoring method for concentrator

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111200833A (en) * 2018-11-19 2020-05-26 大唐移动通信设备有限公司 Method and device for determining network element state
CN111200812A (en) * 2020-01-07 2020-05-26 广州爱浦路网络技术有限公司 Method for accelerating NFs mutual discovery in 5G core network
US20200314672A1 (en) * 2019-03-29 2020-10-01 T-Mobile Usa, Inc. Monitoring network functions
US10833938B1 (en) * 2019-07-31 2020-11-10 Oracle International Corporation Methods, systems, and computer readable media for network function (NF) topology synchronization
CN112534776A (en) * 2018-08-09 2021-03-19 诺基亚技术有限公司 Method and apparatus for detecting network function failure and restart in network environment
CN112866932A (en) * 2019-11-28 2021-05-28 中兴通讯股份有限公司 Communication connection method, device and storage medium
WO2021233563A1 (en) * 2020-05-21 2021-11-25 Telefonaktiebolaget Lm Ericsson (Publ) Service producer health-check
WO2021251948A1 (en) * 2020-06-08 2021-12-16 Nokia Solutions And Networks Oy Workload distribution from a network function (nf) service consumer to nf service producers

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112534776A (en) * 2018-08-09 2021-03-19 诺基亚技术有限公司 Method and apparatus for detecting network function failure and restart in network environment
CN111200833A (en) * 2018-11-19 2020-05-26 大唐移动通信设备有限公司 Method and device for determining network element state
US20200314672A1 (en) * 2019-03-29 2020-10-01 T-Mobile Usa, Inc. Monitoring network functions
US10833938B1 (en) * 2019-07-31 2020-11-10 Oracle International Corporation Methods, systems, and computer readable media for network function (NF) topology synchronization
CN112866932A (en) * 2019-11-28 2021-05-28 中兴通讯股份有限公司 Communication connection method, device and storage medium
CN111200812A (en) * 2020-01-07 2020-05-26 广州爱浦路网络技术有限公司 Method for accelerating NFs mutual discovery in 5G core network
WO2021233563A1 (en) * 2020-05-21 2021-11-25 Telefonaktiebolaget Lm Ericsson (Publ) Service producer health-check
WO2021251948A1 (en) * 2020-06-08 2021-12-16 Nokia Solutions And Networks Oy Workload distribution from a network function (nf) service consumer to nf service producers

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023109335A1 (en) * 2021-12-14 2023-06-22 中兴通讯股份有限公司 Network function state detection method and device and storage medium
CN115134837A (en) * 2022-06-27 2022-09-30 中国电信股份有限公司 Network element state detection method and device, computer readable medium and electronic equipment
WO2024109550A1 (en) * 2022-11-25 2024-05-30 中兴通讯股份有限公司 State information determination method and system for nf end, and electronic device and storage medium
CN118714048A (en) * 2024-08-27 2024-09-27 江阴长仪集团有限公司 Convergence monitoring method for concentrator

Similar Documents

Publication Publication Date Title
CN110516971B (en) Anomaly detection method, device, medium and computing equipment
CN108509325B (en) Method and device for dynamically determining system timeout time
CN111049705A (en) Method and device for monitoring distributed storage system
CN114363935A (en) Network element detection method and device, storage medium and electronic equipment
CN107204875B (en) Data reporting link monitoring method and device, electronic equipment and storage medium
US11551085B2 (en) Method, device, and computer program product for error evaluation
CN113495820A (en) Method and device for collecting and processing abnormal information and abnormal monitoring system
CN110717132A (en) Data collection method and pushing method for full-link monitoring system and related equipment
CN114844768A (en) Information analysis method and device and electronic equipment
CN113825164A (en) Network fault repairing method and device, storage medium and electronic equipment
CN114490078A (en) Dynamic capacity reduction and expansion method, device and equipment for micro-service
CN112860504B (en) Monitoring method and device, computer storage medium and electronic equipment
CN111130944B (en) System monitoring method and system
CN115001989B (en) Equipment early warning method, device, equipment and readable storage medium
CN109639755B (en) Associated system server decoupling method, device, medium and electronic equipment
KR20110037969A (en) Targeted user notification of messages in a monitoring system
CN108255710B (en) Script abnormity detection method and terminal thereof
CN114461437B (en) Data processing method, electronic equipment and storage medium
CN112463343B (en) Restarting method and device of business process, storage medium and electronic equipment
CN113141407B (en) Page resource loading method and device and electronic equipment
CN115277479A (en) Method and system for realizing system operation condition monitoring based on monitoring assistant
CN114546743A (en) Method and device for testing performance of equipment interface
CN114827157A (en) Cluster task processing method, device and system, electronic equipment and readable medium
CN114091702A (en) Event monitoring method and device, electronic equipment and storage medium
CN112799957A (en) User behavior based fault handling method, system, device and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination