CN111294845A - Node switching method and device, computer equipment and storage medium - Google Patents

Node switching method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN111294845A
CN111294845A CN202010090114.5A CN202010090114A CN111294845A CN 111294845 A CN111294845 A CN 111294845A CN 202010090114 A CN202010090114 A CN 202010090114A CN 111294845 A CN111294845 A CN 111294845A
Authority
CN
China
Prior art keywords
edge node
target
core data
node
cloud
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.)
Granted
Application number
CN202010090114.5A
Other languages
Chinese (zh)
Other versions
CN111294845B (en
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.)
Tianyi Shilian Technology Co ltd
Original Assignee
21cn 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 21cn Corp ltd filed Critical 21cn Corp ltd
Priority to CN202010090114.5A priority Critical patent/CN111294845B/en
Publication of CN111294845A publication Critical patent/CN111294845A/en
Application granted granted Critical
Publication of CN111294845B publication Critical patent/CN111294845B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/04Arrangements for maintaining operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1034Reaction to server failures by a load balancer

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application relates to a node switching method, a node switching device, computer equipment and a storage medium. The method comprises the following steps: receiving core data sent by a target edge node, wherein the core data is data which must be used by the target edge node for providing services for a terminal; then when the target edge node fails, selecting a target alternative edge node from the alternative edge nodes, and sending the core data to the target alternative edge node; and finally, controlling the target alternative edge node to replace the target edge node to provide service for the terminal. The method can improve the reliability of the traditional multi-access edge computing technology.

Description

Node switching method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a node switching method and apparatus, a computer device, and a storage medium.
Background
In the fifth generation mobile communication technology (english: 5G), a core network node may be used to provide data service functions such as computation and storage for a terminal. However, the data service function provided by the core network node only causes the problems of overlarge data transmission pressure of the core network node, increased network backhaul bandwidth and the like. To alleviate the pressure on the core network nodes, multiple access edge computing (MEC) technology has emerged.
In a related MEC, an edge node is deployed near an edge terminal outside a core network node, and the edge terminal can directly use the nearest edge node to provide data service for itself, thereby reducing the pressure of the core network node.
However, when an edge node fails, the data service function of the terminal corresponding to the failed edge node is not guaranteed, and thus the reliability of the related MEC technology is low.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a node switching method, an apparatus, a computer device, and a storage medium capable of improving reliability of an edge node in response to the foregoing technical problem.
In a first aspect, a node switching method is provided, where the method includes:
receiving core data sent by a target edge node, wherein the core data is data which must be used by the target edge node for providing services for a terminal;
when the target edge node fails, selecting a target alternative edge node from the alternative edge nodes, and sending the core data to the target alternative edge node;
and controlling the target alternative edge node to replace the target edge node to provide service for the terminal.
In one embodiment, when the target edge node fails, before selecting the target candidate edge node among the candidate edge nodes, the method further includes:
determining whether the target edge node has a fault according to at least one of the log data, the interface access state and the resource occupancy rate of the target edge node;
the log data is used for representing time information and operation information of service provided by the target edge node, the interface access state is used for representing whether the target edge node can be normally accessed by the terminal and whether the target edge node can be normally accessed by the cloud, and the resource occupancy rate is used for representing at least one of central processor occupancy rate, memory occupancy rate and hard disk occupancy rate of the target edge node.
In one embodiment, the receiving core data sent by the target edge node includes:
detecting the integrity of core data in a cloud end, and detecting whether the core data in the cloud end is consistent with the core data in the target edge node;
when the core data in the cloud end is detected to be incomplete, or the core data in the cloud end is detected to be inconsistent with the core data in the target edge node, sending a core data resending instruction to the target edge node, wherein the core data resending instruction is used for indicating the target edge node to resend the core data to the cloud end;
and updating the core data in the cloud by using the core data retransmitted to the cloud by the target edge node.
In one embodiment, selecting a target candidate edge node from the candidate edge nodes includes:
determining the alternative edge nodes with the resource occupancy rates smaller than a preset threshold value as the alternative edge nodes, wherein the resource occupancy rates comprise at least one of central processing unit occupancy rates, memory occupancy rates and hard disk occupancy rates;
when at least two candidate edge nodes exist, determining a target candidate edge node according to the geographic positions of the candidate edge nodes.
In one embodiment, determining the target candidate edge node according to the geographical location information of the candidate edge node includes:
and determining the candidate edge node with the closest geographical position to the target edge node as a target candidate edge node.
In one embodiment, the method further comprises:
and when only one candidate edge node exists, taking the candidate edge node as a target candidate edge node.
In one embodiment, controlling the target candidate edge node to replace the target edge node to provide a service for the terminal includes:
and sending modified routing information to the core network, wherein the modified routing information is used for indicating the core network to control the target alternative edge node to replace the target edge node through the routing equipment so as to provide service for the terminal.
In a second aspect, a node switching apparatus is provided, and is used in a cloud, the apparatus includes:
a receiving module, configured to receive core data sent by a target edge node, where the core data is data that must be used by the target edge node to provide a service for a terminal;
a selecting module, configured to select a target candidate edge node from the candidate edge nodes when the target edge node fails, and send the core data to the target candidate edge node;
and the control module is used for controlling the target alternative edge node to replace the target edge node to provide service for the terminal.
In one embodiment, the apparatus further includes a determining module, configured to determine whether the target edge node fails according to at least one of log data of the target edge node, an interface access status, and a resource occupancy rate; the log data is used for representing time information and operation information of service provided by the target edge node, the interface access state is used for representing whether the target edge node can be normally accessed by the terminal and whether the target edge node can be normally accessed by the cloud, and the resource occupancy rate is used for representing at least one of central processor occupancy rate, memory occupancy rate and hard disk occupancy rate of the target edge node.
In one embodiment, the receiving module is specifically configured to detect integrity of core data in a cloud and detect whether the core data in the cloud is consistent with the core data in the target edge node; when the core data in the cloud end is detected to be incomplete, or the core data in the cloud end is detected to be inconsistent with the core data in the target edge node, sending a core data resending instruction to the target edge node, wherein the core data resending instruction is used for indicating the target edge node to resend the core data to the cloud end; and updating the core data in the cloud by using the core data retransmitted to the cloud by the target edge node.
In one embodiment, the selection module is specifically configured to determine a candidate edge node with a resource occupancy rate smaller than a preset threshold as the candidate edge node, where the resource occupancy rate includes at least one of a central processing unit occupancy rate, a memory occupancy rate, and a hard disk occupancy rate; when at least two candidate edge nodes exist, determining a target candidate edge node according to the geographic positions of the candidate edge nodes.
In one embodiment, the selection module is specifically configured to determine a candidate edge node whose geographic location is closest to the target edge node as the target candidate edge node.
In one embodiment, the selection module is specifically configured to, when only one candidate edge node exists, take the candidate edge node as the target candidate edge node.
In one embodiment, the control module is specifically configured to send modified routing information to a core network, where the modified routing information is used to instruct the core network to control a target candidate edge node to replace a target edge node through a routing device to provide a service for a terminal.
In a third aspect, a computer device is provided, which includes a memory and a processor, where the memory stores a computer program, and the processor implements the node switching method according to any one of the first aspect when executing the computer program.
In a fourth aspect, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the node switching method of any one of the first aspects.
The node switching method, the node switching device, the computer equipment and the storage medium can receive core data sent by a target edge node, wherein the core data is data which is necessary to be used by the target edge node for providing services for a terminal; then when the target edge node fails, selecting a target alternative edge node from the alternative edge nodes, and sending the core data to the target alternative edge node; and finally, controlling the target alternative edge node to replace the target edge node to provide service for the terminal. According to the node switching method, the cloud end can store the core data of the target edge node, when the target edge node has a problem, the core data of the target edge node can be sent to the target alternative edge node, and the target alternative edge node is controlled to replace the target edge node to continue to provide service for the terminal. Therefore, compared with the traditional multi-access edge access technology, the node switching method provided by the application can still continuously provide service for the terminal under the condition that the edge node fails, and greatly improves the reliability of the traditional multi-access edge computing technology.
Drawings
FIG. 1 is a diagram of an application environment of a node switching method in one embodiment;
FIG. 2 is a flow chart illustrating a node switching method according to an embodiment;
fig. 3 is a flowchart illustrating a method for receiving core data of a target edge node in a node switching method according to an embodiment;
fig. 4 is a schematic flowchart illustrating a method for selecting a target candidate edge node in the node switching method according to an embodiment;
FIG. 5 is a block diagram of a node switching apparatus according to an embodiment;
FIG. 6 is a block diagram showing the structure of a node switching apparatus according to another embodiment;
FIG. 7 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
On the premise of the day and development of computer technology and communication technology, a fifth generation mobile communication technology (english: 5G) is emerging. In the fifth generation mobile communication technology, the terminal may obtain service through the core network node, but some problems may also occur therewith. For example, in the case of increasing number of terminals requiring services, the data transmission pressure of the core network node is too high due to the fact that the terminals are only served by the core network node. In order to relieve the data transmission pressure of the core network nodes, a multi-access edge computing (MEC) technology is introduced.
In the related MEC, some edge nodes are deployed in addition to the original core network node, and the terminal may not only obtain services by relying on the core network node, but also select an edge node closer to the terminal from among the edge nodes to provide services for the terminal. The data transmission pressure of the core network nodes is greatly relieved.
However, in the related MECs, there are still some problems. For example, when an edge node corresponding to a certain terminal fails, the terminal cannot obtain service guarantee, and thus, the related MEC technology has a problem of low reliability.
The node switching method provided by the application can be applied to the application environment shown in fig. 1. The cloud 101 may receive core data sent by the target edge node 102, when the target edge node 102 fails, the cloud 101 may select a target candidate edge node from the candidate edge nodes, and send the core data to the target candidate edge node, and finally the cloud 101 may control the target candidate edge node to replace the target edge node 102 to provide a service for the terminal.
The cloud 101 may be implemented by an independent server or a server cluster composed of a plurality of servers, and the target edge node 102 may be implemented by an independent server or a server cluster composed of a plurality of servers.
In the embodiment of the present application, as shown in fig. 2, a node switching method is provided, which is described by taking an example that the method is applied to the cloud in fig. 1, and includes the following steps:
in step 201, the cloud receives core data sent by a target edge node, where the core data is data that the target edge node must use to provide a service for a terminal.
In this step, the target edge node may provide a service for the terminal, and optionally, data required by the target edge node to provide a service for the terminal may be divided into two types, core data and non-core data. The core data is data that is necessary for the target edge node to serve the terminal, and the non-core data is data that may not be needed for the target edge node to serve the terminal. The target edge node must retain the core data to ensure availability and continuity of service. The division of the core data and the non-core data can be set according to actual conditions or by management personnel. The target edge node only uploads the core data of the target edge node to the cloud for backup, the mass storage function of the cloud is utilized, the problem of bandwidth resource shortage caused by backup of the full data (the core data and the non-core data) under the condition that the cloud manages a large number of edge nodes is avoided, and the data storage pressure of the cloud is greatly reduced.
Step 202, when the target edge node fails, the cloud selects a target candidate edge node from the candidate edge nodes, and sends the core data to the target candidate edge node.
As shown in step 201, the cloud may manage a large number of edge nodes, for example, one cloud may manage thousands or tens of thousands of edge nodes. The cloud end can monitor the managed edge nodes in real time or at regular time, when the cloud end monitors that a certain edge node fails, one target alternative edge node can be selected from other managed alternative edge nodes, and then the core data of the edge node which is stored by the cloud end and fails is sent to the target alternative edge node, so that the core data of the edge node which fails exists in the target alternative edge node, and the target alternative edge node can further replace the edge node which fails to provide service for the corresponding terminal.
In step 203, the cloud controls the target candidate edge node to replace the target edge node to provide service for the terminal.
In the embodiment of the present application, what is opposite to the edge node is a core network node, the core network node includes a single server or a server cluster and a routing device, and the cloud end can communicate with the core network node. Optionally, in this step, the cloud controls the target candidate edge node to replace the target edge node to provide the service for the terminal, where the cloud communicates with the core network node, so that the routing device in the core network node changes the flow direction of data between the terminal and the edge node, that is, the corresponding relationship between the edge node and the terminal may be changed, thereby implementing that the target candidate edge node replaces the target edge node to continue to provide the service for the terminal corresponding to the target edge node, and thus ensuring the continuity and reliability of the service.
In the node switching method, core data sent by a target edge node can be received, wherein the core data is data which is necessary to be used by the target edge node for providing service for a terminal; then when the target edge node fails, selecting a target alternative edge node from the alternative edge nodes, and sending the core data to the target alternative edge node; and finally, controlling the target alternative edge node to replace the target edge node to provide service for the terminal. According to the node switching method, the cloud end can store the core data of the target edge node, when the target edge node has a problem, the core data of the target edge node can be sent to the target alternative edge node, and the target alternative edge node is controlled to replace the target edge node to continue to provide service for the terminal. Therefore, compared with the traditional multi-access edge access technology, the node switching method provided by the application can still continuously provide service for the terminal under the condition that the edge node fails, and greatly improves the reliability of the traditional multi-access edge computing technology.
In an embodiment of the present application, a method for determining whether a target edge node fails in a node switching method is provided, where the method includes:
the cloud determines whether the target edge node fails according to at least one of the log data, the interface access state and the resource occupancy rate of the target edge node;
the log data is used for representing time information and operation information of service provided by the target edge node, the interface access state is used for representing whether the target edge node can be normally accessed by the terminal and whether the target edge node can be normally accessed by the cloud, and the resource occupancy rate is used for representing at least one of central processor occupancy rate, memory occupancy rate and hard disk occupancy rate of the target edge node.
In the embodiment of the application, the cloud end can monitor the target edge node in real time or at regular time, so as to determine whether the target edge node fails. In order to avoid misjudgment, the cloud end needs to determine whether the target edge node fails by combining data of multiple aspects, for example, the target edge node may report its log data, interface access status, and resource occupancy rate to the cloud end in real time or at regular time, and then the cloud end may combine these data to determine whether the target edge node fails. Specifically, when the cloud monitors that the log data, the interface access state and the resource occupancy rate of the target edge node are all displayed to be abnormal, it is determined that the target edge node actually fails. The abnormal performance of the log data can be that the time information recorded in the log data of the edge node is abnormal or the recorded operation information when the target edge node provides service does not accord with the preset standard; the abnormal interface access state can be represented by that the cloud end cannot access the target edge node or the target edge node cannot be normally accessed by the corresponding terminal; the abnormal resource occupancy rate can be represented by that the value of any one of the central processor occupancy rate, the memory occupancy rate and the hard disk occupancy rate of the target edge node is greater than a preset threshold value.
In the embodiment of the application, the fault judgment is carried out by combining data of multiple aspects of the target edge node, so that the finally judged result is more accurate.
In an embodiment of the present application, please refer to fig. 3, which provides a method for receiving core data of a target edge node in a node switching method, where the method includes:
step 301, the cloud detects the integrity of the core data in the cloud, and detects whether the core data in the cloud is consistent with the core data in the target edge node.
In the embodiment of the application, the cloud end receives the core data uploaded by the target edge node, and in order to ensure that the core data stored in the cloud end is complete and is consistent with the current core data in the target edge node, the cloud end can check the core data stored in the cloud end in this step.
Optionally, the cloud may periodically check the core data stored in the cloud. Specifically, the cloud and the target edge node can respectively adopt the same calculation mode to calculate the core data of the cloud and the target edge node to obtain a numerical value, then the target edge node can send the numerical value obtained by the calculation of the target edge node to the cloud, the cloud can compare the numerical value obtained by the calculation of the cloud with the numerical value obtained by the calculation of the target edge node, and if the two numerical values are inconsistent, the core data stored in the cloud is incomplete and inconsistent with the core data stored in the target edge node. The above calculation methods are usually parity check, cyclic redundancy check, block check, longitudinal redundancy check, or digest algorithm.
Step 302, when detecting that the core data in the cloud is incomplete, or detecting that the core data in the cloud is inconsistent with the core data in the target edge node, the cloud sends a core data resending instruction to the target edge node, where the core data resending instruction is used to instruct the target edge node to resend the core data to the cloud.
After the integrity and consistency of the core data in the cloud are checked based on the step 301, if the cloud detects that the core data does not conform to the integrity or consistency, the cloud needs to re-backup a copy of the core data with integrity and consistency. Specifically, the cloud end sends a data repotting instruction to the target edge node, the target edge node sends the current latest core data to the cloud end after receiving the core data repotting instruction, and the cloud end checks the integrity and consistency of the received core data again after receiving the core data reportedly by the target edge node until the received core data meets the integrity and consistency.
In step 303, the cloud updates the core data in the cloud by using the core data retransmitted to the cloud by the target edge node.
After the cloud determines that the received core data conforms to the integrity and the consistency, the cloud stores the received core data as the latest core data, so that the cloud is guaranteed to have the backup of the latest core data of the target edge node.
In the embodiment of the application, the cloud checks the integrity and consistency of the core data of the target edge node stored by the cloud, and when the target edge node fails, the cloud can utilize the latest and most complete backup of the core data to perform subsequent failure emergency.
In an embodiment of the present application, please refer to fig. 4, which provides a method for selecting a target candidate edge node in a node switching method, where the method includes:
step 401, the cloud determines a candidate edge node with a resource occupancy rate smaller than a preset threshold as a candidate edge node, where the resource occupancy rate includes at least one of a central processing unit occupancy rate, a memory occupancy rate, and a hard disk occupancy rate.
As noted above, resource occupancy may be an important indicator of whether an edge node is available. Optionally, in the step, the manner of measuring whether the candidate edge node is available by using the resource occupancy rate may be that when all of the values of the central processor occupancy rate, the memory occupancy rate, and the hard disk occupancy rate of the candidate edge node are less than the preset threshold, it indicates that the candidate edge node is in an available state, and the candidate edge node in the available state may be used as a candidate edge node for the next step.
Step 402, when at least two candidate edge nodes exist, the cloud determines a target candidate edge node according to the geographic position of the candidate edge nodes.
After the candidate edge nodes are screened out in step 401, the cloud end needs to determine a target candidate edge node which finally replaces the target edge node to continue providing service. If the cloud end screens out a plurality of candidate edge nodes, further, the target candidate edge nodes can be determined according to the positions of the candidate edge nodes. Specifically, the cloud may determine a candidate edge node whose geographic position is closest to the target edge node as the target candidate edge node, and the cloud may acquire the geographic position of the candidate edge node in a manner that the cloud accesses a network address of the candidate edge node, so as to obtain geographic position information of the candidate edge node.
In one possible case, when only one candidate edge node exists, the cloud end takes the candidate edge node as a target candidate edge node.
In the embodiment of the application, a strict screening method is provided, so that the cloud can quickly and accurately screen out the target candidate edge nodes with good performance states.
In this embodiment of the present application, the step 203 includes: the cloud sends modified routing information to the core network, wherein the modified routing information is used for indicating the core network to control the target alternative edge node to replace the target edge node through the routing equipment so as to provide service for the terminal.
In this embodiment of the present application, the routing device may change a path through which traffic passes in the network, that is, the routing device may change a data flow direction relationship between the terminal and the edge node. Therefore, the cloud end can change the service corresponding relation between the terminal and the edge node by managing the routing equipment through the core network by sending the routing modification information to the core network, that is, the edge node corresponding to the terminal can be changed.
After the cloud determines the target candidate edge node and changes the edge node corresponding to the terminal through the routing device, the latest core data of the target edge node which is backed up by the cloud and has a fault is sent to the target candidate edge node, so that the target candidate edge node can continue to provide service for the terminal by using the core data.
In the embodiment of the application, the cloud sends the modified routing information to the core network and timely sends the latest core data of the target edge node to the target alternative edge node, so that when the target edge node fails, the corresponding terminal can be timely oriented to the new edge node, and continuity and reliability of service are guaranteed.
It should be understood that, although the steps in the flowcharts of fig. 2 to 4 are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-4 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.
In an embodiment of the present application, as shown in fig. 5, there is provided a node switching apparatus, including: a receiving module 501, a selecting module 502 and a control module 503, wherein:
a receiving module 501, configured to receive core data sent by a target edge node, where the core data is data that must be used by the target edge node to provide a service for a terminal;
a selecting module 502, configured to select a target candidate edge node from the candidate edge nodes when the target edge node fails, and send the core data to the target candidate edge node;
a control module 503, configured to control the target candidate edge node to provide a service for the terminal instead of the target edge node.
In the embodiment of the present application, please refer to fig. 6, another node switching apparatus 600 is provided, where the node switching apparatus 600 includes, in addition to the modules included in the node switching apparatus 500, optionally, the node switching apparatus 600 further includes a determining module 504.
The determining module 504 is configured to determine whether the target edge node fails according to at least one of the log data of the target edge node, the interface access status, and the resource occupancy rate; the log data is used for representing time information and operation information of service provided by the target edge node, the interface access state is used for representing whether the target edge node can be normally accessed by the terminal and whether the target edge node can be normally accessed by the cloud, and the resource occupancy rate is used for representing at least one of central processor occupancy rate, memory occupancy rate and hard disk occupancy rate of the target edge node.
In this embodiment, the receiving module 501 is specifically configured to detect integrity of core data in a cloud, and detect whether the core data in the cloud is consistent with the core data in the target edge node; when the core data in the cloud end is detected to be incomplete, or the core data in the cloud end is detected to be inconsistent with the core data in the target edge node, sending a core data resending instruction to the target edge node, wherein the core data resending instruction is used for indicating the target edge node to resend the core data to the cloud end; and updating the core data in the cloud by using the core data retransmitted to the cloud by the target edge node.
In this embodiment of the present application, the selecting module 502 is specifically configured to determine, as a candidate edge node, a candidate edge node whose resource occupancy rate is less than a preset threshold, where the resource occupancy rate includes at least one of a central processing unit occupancy rate, a memory occupancy rate, and a hard disk occupancy rate; when at least two candidate edge nodes exist, determining a target candidate edge node according to the geographic positions of the candidate edge nodes.
In this embodiment of the application, the selecting module 502 is specifically configured to determine a candidate edge node whose geographic position is closest to the target edge node as a target candidate edge node.
In this embodiment of the application, the selecting module 502 is specifically configured to, when there is only one candidate edge node, take the candidate edge node as a target candidate edge node.
In this embodiment of the present application, the control module 503 is specifically configured to send modified routing information to a core network, where the modified routing information is used to instruct the core network to control a target candidate edge node to replace a target edge node through a routing device to provide a service for a terminal.
For the specific definition of the node switching device, reference may be made to the above definition of the node switching method, which is not described herein again. The modules in the node switching device can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 7. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing core data of the target edge node. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a node switching method.
Those skilled in the art will appreciate that the architecture shown in fig. 7 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In an embodiment of the present application, there is provided a computer device including a memory and a processor, the memory storing a computer program, and the processor implementing the following steps when executing the computer program:
receiving core data sent by a target edge node, wherein the core data is data which must be used by the target edge node for providing services for a terminal;
when the target edge node fails, selecting a target alternative edge node from the alternative edge nodes, and sending the core data to the target alternative edge node;
and controlling the target alternative edge node to replace the target edge node to provide service for the terminal.
In the embodiment of the present application, the processor, when executing the computer program, further implements the following steps:
determining whether the target edge node has a fault according to at least one of the log data, the interface access state and the resource occupancy rate of the target edge node; the log data is used for representing time information and operation information of service provided by the target edge node, the interface access state is used for representing whether the target edge node can be normally accessed by the terminal and whether the target edge node can be normally accessed by the cloud, and the resource occupancy rate is used for representing at least one of central processor occupancy rate, memory occupancy rate and hard disk occupancy rate of the target edge node.
In the embodiment of the present application, the processor, when executing the computer program, further implements the following steps:
detecting the integrity of core data in a cloud end, and detecting whether the core data in the cloud end is consistent with the core data in the target edge node; when the core data in the cloud end is detected to be incomplete, or the core data in the cloud end is detected to be inconsistent with the core data in the target edge node, sending a core data resending instruction to the target edge node, wherein the core data resending instruction is used for indicating the target edge node to resend the core data to the cloud end; and updating the core data in the cloud by using the core data retransmitted to the cloud by the target edge node.
In the embodiment of the present application, the processor, when executing the computer program, further implements the following steps:
determining the alternative edge nodes with the resource occupancy rates smaller than a preset threshold value as the alternative edge nodes, wherein the resource occupancy rates comprise at least one of central processing unit occupancy rates, memory occupancy rates and hard disk occupancy rates; when at least two candidate edge nodes exist, determining a target candidate edge node according to the geographic positions of the candidate edge nodes.
In the embodiment of the present application, the processor, when executing the computer program, further implements the following steps:
and determining the candidate edge node with the closest geographical position to the target edge node as a target candidate edge node.
In the embodiment of the present application, the processor, when executing the computer program, further implements the following steps:
and when only one candidate edge node exists, taking the candidate edge node as a target candidate edge node.
In the embodiment of the present application, the processor, when executing the computer program, further implements the following steps:
and sending modified routing information to the core network, wherein the modified routing information is used for indicating the core network to control the target alternative edge node to replace the target edge node through the routing equipment so as to provide service for the terminal.
In an embodiment of the application, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, realizes the steps of:
receiving core data sent by a target edge node, wherein the core data is data which must be used by the target edge node for providing services for a terminal;
when the target edge node fails, selecting a target alternative edge node from the alternative edge nodes, and sending the core data to the target alternative edge node;
and controlling the target alternative edge node to replace the target edge node to provide service for the terminal.
In an embodiment of the application, the computer program when executed by the processor further performs the steps of:
determining whether the target edge node has a fault according to at least one of the log data, the interface access state and the resource occupancy rate of the target edge node; the log data is used for representing time information and operation information of service provided by the target edge node, the interface access state is used for representing whether the target edge node can be normally accessed by the terminal and whether the target edge node can be normally accessed by the cloud, and the resource occupancy rate is used for representing at least one of central processor occupancy rate, memory occupancy rate and hard disk occupancy rate of the target edge node.
In an embodiment of the application, the computer program when executed by the processor further performs the steps of:
detecting the integrity of core data in a cloud end, and detecting whether the core data in the cloud end is consistent with the core data in the target edge node; when the core data in the cloud end is detected to be incomplete, or the core data in the cloud end is detected to be inconsistent with the core data in the target edge node, sending a core data resending instruction to the target edge node, wherein the core data resending instruction is used for indicating the target edge node to resend the core data to the cloud end; and updating the core data in the cloud by using the core data retransmitted to the cloud by the target edge node.
In an embodiment of the application, the computer program when executed by the processor further performs the steps of:
determining the alternative edge nodes with the resource occupancy rates smaller than a preset threshold value as the alternative edge nodes, wherein the resource occupancy rates comprise at least one of central processing unit occupancy rates, memory occupancy rates and hard disk occupancy rates; when at least two candidate edge nodes exist, determining a target candidate edge node according to the geographic positions of the candidate edge nodes.
In an embodiment of the application, the computer program when executed by the processor further performs the steps of:
and determining the candidate edge node with the closest geographical position to the target edge node as a target candidate edge node.
In an embodiment of the application, the computer program when executed by the processor further performs the steps of:
and when only one candidate edge node exists, taking the candidate edge node as a target candidate edge node.
In an embodiment of the application, the computer program when executed by the processor further performs the steps of:
and sending modified routing information to the core network, wherein the modified routing information is used for indicating the core network to control the target alternative edge node to replace the target edge node through the routing equipment so as to provide service for the terminal.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A node switching method is used in a cloud, and the method comprises the following steps:
receiving core data sent by a target edge node, wherein the core data is data which is necessary to be used by the target edge node for providing service for a terminal;
when the target edge node fails, selecting a target alternative edge node from alternative edge nodes, and sending the core data to the target alternative edge node;
and controlling the target alternative edge node to replace the target edge node to provide service for the terminal.
2. The method of claim 1, wherein before selecting a target candidate edge node among the candidate edge nodes when the target edge node fails, the method further comprises:
determining whether the target edge node fails according to at least one of the log data, the interface access state and the resource occupancy rate of the target edge node;
the log data is used for representing time information and operation information of service provided by the target edge node, the interface access state is used for representing whether the target edge node can be normally accessed by the terminal and whether the target edge node can be normally accessed by the cloud, and the resource occupancy rate is used for representing at least one of central processor occupancy rate, memory occupancy rate and hard disk occupancy rate of the target edge node.
3. The method of claim 1, wherein the receiving core data sent by the target edge node comprises:
detecting the integrity of core data in the cloud end, and detecting whether the core data in the cloud end is consistent with the core data in the target edge node;
when the core data in the cloud are detected to be incomplete, or when the core data in the cloud are detected to be inconsistent with the core data in the target edge node, sending a core data resending instruction to the target edge node, wherein the core data resending instruction is used for indicating the target edge node to resend the core data to the cloud;
updating the core data in the cloud by using the core data retransmitted to the cloud by the target edge node.
4. The method of claim 1, wherein selecting the target candidate edge node among the candidate edge nodes comprises:
determining candidate edge nodes with resource occupancy rates smaller than a preset threshold value as candidate edge nodes, wherein the resource occupancy rates comprise at least one of central processing unit occupancy rates, memory occupancy rates and hard disk occupancy rates;
and when at least two candidate edge nodes exist, determining the target candidate edge node according to the geographic positions of the candidate edge nodes.
5. The method of claim 4, wherein determining the target candidate edge node according to the geographical location information of the candidate edge node comprises:
and determining the candidate edge node with the closest geographical position to the target edge node as the target candidate edge node.
6. The method of claim 4, further comprising:
and when only one candidate edge node exists, taking the candidate edge node as the target candidate edge node.
7. The method of claim 1, wherein the controlling the target candidate edge node to serve the terminal in place of the target edge node comprises:
and sending modified routing information to a core network, wherein the modified routing information is used for indicating the core network to control the target alternative edge node to replace the target edge node through a routing device so as to provide service for the terminal.
8. A node switching apparatus, for use in a cloud, the apparatus comprising:
a receiving module, configured to receive core data sent by a target edge node, where the core data is data that must be used by the target edge node to provide a service for a terminal;
the selection module is used for selecting a target alternative edge node from alternative edge nodes when the target edge node fails and sending the core data to the target alternative edge node;
and the control module is used for controlling the target alternative edge node to replace the target edge node to provide service for the terminal.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202010090114.5A 2020-02-13 2020-02-13 Node switching method, device, computer equipment and storage medium Active CN111294845B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010090114.5A CN111294845B (en) 2020-02-13 2020-02-13 Node switching method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010090114.5A CN111294845B (en) 2020-02-13 2020-02-13 Node switching method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111294845A true CN111294845A (en) 2020-06-16
CN111294845B CN111294845B (en) 2023-07-25

Family

ID=71020152

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010090114.5A Active CN111294845B (en) 2020-02-13 2020-02-13 Node switching method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111294845B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112073265A (en) * 2020-08-31 2020-12-11 帷幄匠心科技(杭州)有限公司 Internet of things monitoring method and system based on distributed edge computing
CN112105069A (en) * 2020-09-22 2020-12-18 云南电网有限责任公司电力科学研究院 Internet edge computing wireless network switching method and system
CN112822283A (en) * 2021-01-21 2021-05-18 重庆紫光华山智安科技有限公司 Edge node control method and device, control node and storage medium
CN112910981A (en) * 2021-01-27 2021-06-04 联想(北京)有限公司 Control method and device
CN113114716A (en) * 2021-02-25 2021-07-13 浙江工商大学 Edge cloud collaborative control system and method
CN114040217A (en) * 2021-11-05 2022-02-11 南京小灿灿网络科技有限公司 Double-mixed streaming media live broadcasting method
CN114979188A (en) * 2022-05-30 2022-08-30 阿里云计算有限公司 Self-healing method and device for edge equipment, electronic equipment and storage medium
CN114978875A (en) * 2021-02-23 2022-08-30 广州汽车集团股份有限公司 Vehicle-mounted node management method and device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127882A (en) * 2007-08-31 2008-02-20 中兴通讯股份有限公司 Distributed storage method for distributed network TV system and this system
CN109783190A (en) * 2018-12-12 2019-05-21 北京世纪互联宽带数据中心有限公司 Data migration method and its device, electronic equipment, computer-readable medium
CN110581782A (en) * 2019-09-17 2019-12-17 中国联合网络通信集团有限公司 Disaster tolerance data processing method, device and system
CN110737442A (en) * 2019-09-24 2020-01-31 厦门网宿有限公司 edge application management method and system
CN110769045A (en) * 2019-10-16 2020-02-07 世纪龙信息网络有限责任公司 Data processing method, data processing device, computer equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127882A (en) * 2007-08-31 2008-02-20 中兴通讯股份有限公司 Distributed storage method for distributed network TV system and this system
CN109783190A (en) * 2018-12-12 2019-05-21 北京世纪互联宽带数据中心有限公司 Data migration method and its device, electronic equipment, computer-readable medium
CN110581782A (en) * 2019-09-17 2019-12-17 中国联合网络通信集团有限公司 Disaster tolerance data processing method, device and system
CN110737442A (en) * 2019-09-24 2020-01-31 厦门网宿有限公司 edge application management method and system
CN110769045A (en) * 2019-10-16 2020-02-07 世纪龙信息网络有限责任公司 Data processing method, data processing device, computer equipment and storage medium

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112073265A (en) * 2020-08-31 2020-12-11 帷幄匠心科技(杭州)有限公司 Internet of things monitoring method and system based on distributed edge computing
CN112105069A (en) * 2020-09-22 2020-12-18 云南电网有限责任公司电力科学研究院 Internet edge computing wireless network switching method and system
CN112105069B (en) * 2020-09-22 2023-04-28 云南电网有限责任公司电力科学研究院 Internet edge computing wireless network switching method and system
CN112822283A (en) * 2021-01-21 2021-05-18 重庆紫光华山智安科技有限公司 Edge node control method and device, control node and storage medium
CN112822283B (en) * 2021-01-21 2023-02-28 重庆紫光华山智安科技有限公司 Edge node control method and device, control node and storage medium
CN112910981A (en) * 2021-01-27 2021-06-04 联想(北京)有限公司 Control method and device
CN112910981B (en) * 2021-01-27 2022-07-26 联想(北京)有限公司 Control method and device
CN114978875A (en) * 2021-02-23 2022-08-30 广州汽车集团股份有限公司 Vehicle-mounted node management method and device and storage medium
CN113114716A (en) * 2021-02-25 2021-07-13 浙江工商大学 Edge cloud collaborative control system and method
CN114040217A (en) * 2021-11-05 2022-02-11 南京小灿灿网络科技有限公司 Double-mixed streaming media live broadcasting method
CN114979188A (en) * 2022-05-30 2022-08-30 阿里云计算有限公司 Self-healing method and device for edge equipment, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN111294845B (en) 2023-07-25

Similar Documents

Publication Publication Date Title
CN111294845B (en) Node switching method, device, computer equipment and storage medium
CN108710673B (en) Method, system, computer device and storage medium for realizing high availability of database
CN111818159B (en) Management method, device, equipment and storage medium of data processing node
US10558517B2 (en) Proactive cloud orchestration
CN108897658B (en) Method and device for monitoring master database, computer equipment and storage medium
CN103631666B (en) The fault-tolerant adaptation management equipment of data redundancy, service equipment, system and method
CN110825698B (en) Metadata management method and related device
CN111198921A (en) Database switching method and device, computer equipment and storage medium
WO2024148854A1 (en) Database fault processing method and apparatus based on monitor service, and distributed cluster
CN112291904A (en) Intelligent street lamp equipment integrated control method, server, system and medium
CN112866408A (en) Service switching method, device, equipment and storage medium in cluster
CN110377664B (en) Data synchronization method, device, server and storage medium
US11695856B2 (en) Scheduling solution configuration method and apparatus, computer readable storage medium thereof, and computer device
CN113489149B (en) Power grid monitoring system service master node selection method based on real-time state sensing
CN108924772B (en) Short message sending method and device, computer equipment and storage medium
CN115686951A (en) Fault processing method and device for database server
CN111913927A (en) Data writing method and device and computer equipment
US10382301B2 (en) Efficiently calculating per service impact of ethernet ring status changes
CN110955647A (en) Database assistance method, database assistance device, computer equipment and storage medium
CN116107797A (en) Data storage method and device, electronic equipment and storage medium
CN114490231A (en) Database arbitration service scheduling method and system
CN114745446B (en) Routing method and device based on remote multi-activity scene, electronic equipment and storage medium
CN118132346B (en) Industrial Internet platform assembly and application reliability optimization system
CN115022157B (en) Method, device, equipment and medium for node failover in cluster
CN113485978B (en) Method, system and memory for improving read-write throughput capacity of file storage NAS

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20220118

Address after: Room 1423, No. 1256 and 1258, Wanrong Road, Jing'an District, Shanghai 200040

Applicant after: Tianyi Digital Life Technology Co.,Ltd.

Address before: 1 / F and 2 / F, East Garden, Huatian International Plaza, 211 Longkou Middle Road, Tianhe District, Guangzhou, Guangdong 510630

Applicant before: Century Dragon Information Network Co.,Ltd.

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240315

Address after: Unit 1, Building 1, China Telecom Zhejiang Innovation Park, No. 8 Xiqin Street, Wuchang Street, Yuhang District, Hangzhou City, Zhejiang Province, 311100

Patentee after: Tianyi Shilian Technology Co.,Ltd.

Country or region after: China

Address before: Room 1423, No. 1256 and 1258, Wanrong Road, Jing'an District, Shanghai 200040

Patentee before: Tianyi Digital Life Technology Co.,Ltd.

Country or region before: China