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

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

Info

Publication number
CN111371592B
CN111371592B CN202010108920.0A CN202010108920A CN111371592B CN 111371592 B CN111371592 B CN 111371592B CN 202010108920 A CN202010108920 A CN 202010108920A CN 111371592 B CN111371592 B CN 111371592B
Authority
CN
China
Prior art keywords
node
edge computing
feedback state
computing node
opposite
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.)
Active
Application number
CN202010108920.0A
Other languages
Chinese (zh)
Other versions
CN111371592A (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.)
Wuxi Huayun Data Technology Service Co Ltd
Original Assignee
Wuxi Huayun Data Technology Service Co 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 Wuxi Huayun Data Technology Service Co Ltd filed Critical Wuxi Huayun Data Technology Service Co Ltd
Priority to CN202010108920.0A priority Critical patent/CN111371592B/en
Publication of CN111371592A publication Critical patent/CN111371592A/en
Application granted granted Critical
Publication of CN111371592B publication Critical patent/CN111371592B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/0668Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/1607Details of the supervisory signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/22Arrangements for detecting or preventing errors in the information received using redundant apparatus to increase reliability

Landscapes

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

Abstract

The invention discloses a node switching method, a device, equipment and a storage medium, wherein the method is applied to an edge computing node and comprises the following steps: acquiring a main-standby relation between the main-standby relation and the opposite-end edge computing node; sending a data message to a preset application network to obtain a feedback state of the data message, wherein the preset application network is accessed to an opposite-end edge computing node; and executing switching operation with the opposite end edge computing node according to the feedback state and the main-standby relation. According to the method, the main node switching between the edge computing nodes which are in a main-standby relation is realized by sending the data message to the opposite edge computing node through the local edge computing node, so that the cost of hardware deployment and the complexity of deployment are reduced. In addition, the invention also provides a node switching device, equipment and a storage medium, and the beneficial effects are the same as those described above.

Description

Node switching method, device, equipment and storage medium
Technical Field
The present invention relates to the field of edge computing, and in particular, to a method, an apparatus, a device, and a storage medium for node switching.
Background
Edge computing is increasingly seen by the industry as an extension of cloud computing. The edge computing is to deploy computing power at the edge of the network, and is closer to a data producer, and an application program of the edge computing is used for generating faster network service response at the edge side, so that the basic requirements of the industry in the aspects of real-time service, application intelligence, security, privacy protection and the like can be met.
At present, in order to ensure high availability of edge computing, at least three nodes, namely two nodes which are redundant to each other and an arbitration node are needed, wherein the arbitration node performs switching control of a main node and a standby node in the redundant nodes, but in general, deployment environments at the edge of a network, such as a machine room, electric power, temperature and humidity, and the like, cannot meet large-scale deployment. In addition, the number of network edges is numerous, and the deployment scale is limited, so that in many scenes, the number of nodes deployed on the network edges is limited, and in some scenes, the deployment mode of three nodes inevitably leads to waste of resources and improvement of deployment complexity.
Therefore, the node switching method is provided to relatively reduce the number of nodes deployed in the edge computing scene, so that the overhead of hardware deployment and the complexity of deployment are reduced, and the problem to be solved by the person skilled in the art is solved.
Disclosure of Invention
The invention aims to provide a node switching method, a device, equipment and a storage medium, which are used for relatively reducing the number of nodes deployed in an edge computing scene, so as to reduce the overhead of hardware deployment and the complexity of deployment.
In order to solve the above technical problems, the present invention provides a node switching method, which is applied to an edge computing node, and includes:
acquiring a main-standby relation between the main-standby relation and the opposite-end edge computing node;
sending a data message to a preset application network to obtain a feedback state of the data message, wherein the preset application network is accessed to an opposite-end edge computing node;
and executing switching operation with the opposite end edge computing node according to the feedback state and the main-standby relation.
Preferably, sending the data message to a preset application network to obtain a feedback state of the data message, including:
and sending the data message to an opposite end edge computing node in a preset application network to obtain a feedback state.
Preferably, sending the data message to a preset application network to obtain a feedback state of the data message, including:
sending a data message to an opposite end edge computing node in a preset application network to obtain a first feedback state;
judging whether the first feedback state is a node unresponsive state or not;
if yes, sending a data message to a gateway in a preset application network to obtain a second feedback state;
executing the switching operation with the opposite end edge computing node according to the feedback state and the main-standby relation, including:
and executing running operation or suspending operation on the local control node virtual machine according to the second feedback state and the master-slave relation.
Preferably, when the edge computing node is a master node in the master-slave relationship, executing a running operation or a suspending operation on the local control node virtual machine according to the second feedback state and the master-slave relationship, including:
judging whether the second feedback state is a gateway unresponsive state;
if so, executing a suspending operation on the local control node virtual machine.
Preferably, when the edge computing node is a standby node in the primary-standby relationship, executing a running operation or a suspending operation on the local control node virtual machine according to the second feedback state and the primary-standby relationship, including:
judging whether the second feedback state is a gateway response state or not;
and if so, executing operation on the local control node virtual machine.
Preferably, before executing the running operation on the local control node virtual machine, the method further includes:
sending a data message to an opposite end edge computing node through a backbone network to obtain a third feedback state;
judging whether the third feedback state is a node unresponsive state;
and if so, executing the step of executing the running operation on the local control node virtual machine.
Preferably, sending the data message to the preset application network includes:
and sending the ICMP data message to a preset application network.
In addition, the invention also provides a node switching device, which comprises:
the relation acquisition module is used for acquiring a main-standby relation between the opposite-end edge computing nodes;
the feedback acquisition module is used for sending the data message to a preset application network to obtain the feedback state of the data message, and the preset application network is accessed to the opposite-end edge computing node;
and the switching execution module is used for executing switching operation with the opposite-end edge computing node according to the feedback state and the main-standby relation.
In addition, the present invention also provides an edge computing node, including:
a memory for storing a computer program;
and a processor for implementing the steps of the node switching method as described above when executing the computer program.
The present invention also provides a computer-readable storage medium having a computer program stored thereon, which when executed by a processor implements the steps of the node switching method as described above.
The node switching method provided by the invention is applied to edge computing nodes, and is characterized in that a main-standby relation between the edge computing nodes and opposite-end edge computing nodes is firstly obtained, then a preset application network is used for sending data messages, so that a feedback state corresponding to the data messages is obtained, and finally switching operation between the edge computing nodes and the opposite-end edge computing nodes is executed according to the feedback state and the main-standby relation between the current edge computing nodes and the opposite-end edge computing nodes. According to the method, the data message is sent to the opposite-end edge computing node by the local edge computing node, so that the survival state of the opposite-end edge computing node is judged under the condition that other nodes are not needed to participate, and then the virtual machine of the local control node is selectively operated or suspended according to the feedback state of the data message and the main-standby relation between the local edge computing node and the opposite-end edge computing node, so that the main node switching between the edge computing nodes in the main-standby relation is realized, the number of nodes deployed in an edge computing scene is relatively reduced, and the cost of hardware deployment and the complexity of deployment are further reduced. In addition, the invention also provides a node switching device, equipment and a storage medium, and the beneficial effects are the same as those described above.
Drawings
For a clearer description of embodiments of the present invention, the drawings that are required to be used in the embodiments will be briefly described, it being apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to the drawings without inventive effort for those skilled in the art.
Fig. 1 is a flowchart of a node switching method according to an embodiment of the present invention;
fig. 2 is a flowchart of a node switching method according to an embodiment of the present invention;
fig. 3 is a flowchart of a node switching method according to an embodiment of the present invention;
fig. 4 is a block diagram of a node switching device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by a person of ordinary skill in the art without making any inventive effort are within the scope of the present invention.
At present, in order to ensure high availability of edge computing, at least three nodes, namely two nodes which are redundant to each other and an arbitration node are needed, wherein the arbitration node performs switching control of a main node and a standby node in the redundant nodes, but in general, deployment environments at the edge of a network, such as a machine room, electric power, temperature and humidity, and the like, cannot meet large-scale deployment. In addition, the number of network edges is numerous, and the deployment scale is limited, so that in many scenes, the number of nodes deployed on the network edges is limited, and in some scenes, the deployment mode of three nodes inevitably leads to waste of resources and improvement of deployment complexity.
The core of the invention is to provide a node switching method to relatively reduce the number of nodes deployed in an edge computing scene, thereby reducing the overhead of hardware deployment and the complexity of deployment. Another core of the present invention is to provide a node switching apparatus, a device and a storage medium.
In order to better understand the aspects of the present invention, the present invention will be described in further detail with reference to the accompanying drawings and detailed description.
Fig. 1 is a flowchart of a node switching method according to an embodiment of the present invention. Referring to fig. 1, the node switching method is applied to an edge computing node, and specifically includes the steps of:
step S10: and acquiring a master-slave relation between the master node and the opposite-end edge computing node.
It should be noted that, in this embodiment, the execution body is an edge computing node participating in edge computing, in this embodiment, any edge computing node has a unique corresponding opposite edge computing node, the edge computing node and the opposite edge computing node are two nodes relatively, and a master-slave relationship exists between the edge computing node and the opposite edge computing node, that is, the number of edge computing nodes for executing the same edge computing service is two, and in the same time, there are master nodes for executing the edge computing service and standby nodes in a redundant relationship with the master nodes in the two corresponding edge computing nodes.
In this step, the edge computing node obtains the primary-backup relationship with the opposite edge computing node, and essentially obtains the primary-backup node identities of the edge computing node and the opposite edge computing node.
Step S11: and sending the data message to a preset application network to obtain the feedback state of the data message.
And the preset application network is accessed to the opposite end edge computing node.
It should be noted that, the key point of this step is that the edge computing node sends the data message through the preset application network between the edge computing node and the opposite edge computing node, so as to obtain the feedback state of the data message.
Step S12: and executing switching operation with the opposite end edge computing node according to the feedback state and the main-standby relation.
In this embodiment, after the feedback state is obtained, the switching operation with the opposite-end edge computing node is further performed according to the feedback state and the active-standby relationship, that is, after the feedback state is obtained, the edge computing node further determines whether the active-standby relationship needs to be switched according to the active-standby relationship and the feedback state.
The node switching method provided by the invention is applied to edge computing nodes, and is characterized in that a main-standby relation between the edge computing nodes and opposite-end edge computing nodes is firstly obtained, then a preset application network is used for sending data messages, so that a feedback state corresponding to the data messages is obtained, and finally switching operation between the edge computing nodes and the opposite-end edge computing nodes is executed according to the feedback state and the main-standby relation between the current edge computing nodes and the opposite-end edge computing nodes. According to the method, the data message is sent to the opposite-end edge computing node by the local edge computing node, so that the survival state of the opposite-end edge computing node is judged under the condition that other nodes are not needed to participate, and then the virtual machine of the local control node is selectively operated or suspended according to the feedback state of the data message and the main-standby relation between the local edge computing node and the opposite-end edge computing node, so that the main node switching between the edge computing nodes in the main-standby relation is realized, the number of nodes deployed in an edge computing scene is relatively reduced, and the cost of hardware deployment and the complexity of deployment are further reduced.
On the basis of the foregoing embodiment, as a preferred implementation manner, the sending, to the preset application network, the data packet includes:
and sending the ICMP data message to a preset application network.
It should be noted that, the ICMP data packet is a data packet generated based on the ICMP (Internet Control Message Protocol) Internet control packet protocol, which can relatively accurately determine the type of error occurring in the destination device transmitted thereto, so that the feedback state can be relatively accurately obtained, and further, the overall reliability of node switching is ensured.
Fig. 2 is a flowchart of a node switching method according to an embodiment of the present invention. Referring to fig. 2, the node switching method is applied to an edge computing node, and specifically includes the steps of:
step S20: and acquiring a master-slave relation between the master node and the opposite-end edge computing node.
Step S21: and sending the data message to an opposite end edge computing node in a preset application network to obtain a feedback state.
The method comprises the steps of presetting an application network access opposite end edge computing node.
Step S22: and executing switching operation with the opposite end edge computing node according to the feedback state and the main-standby relation.
It should be noted that, in this embodiment, the edge node sends the data packet to the opposite edge computing node based on the preset application network, so as to obtain the feedback state of the opposite edge computing node.
Fig. 3 is a flowchart of a node switching method according to an embodiment of the present invention. Referring to fig. 3, the node switching method is applied to an edge computing node, and specifically includes the steps of:
step S30: and acquiring a master-slave relation between the master node and the opposite-end edge computing node.
Step S31: and sending the data message to an opposite end edge computing node in a preset application network to obtain a first feedback state.
It should be noted that, in this embodiment, after obtaining the active-standby relationship with the opposite-end edge computing node, a data packet is further sent to the opposite-end edge computing node in the preset application network, so as to obtain a first feedback state corresponding to the opposite-end edge computing node, and in a subsequent step, whether the opposite-end edge computing node is in a state of normal operation is further determined according to the first feedback state.
Step S32: judging whether the first feedback state is a node unresponsive state, if so, executing the steps S33 to S34, otherwise, executing the step S35.
Step S33: and sending the data message to a gateway in a preset application network to obtain a second feedback state.
The method comprises the steps of presetting an application network access opposite end edge computing node.
Step S34: and executing running operation or suspending operation on the local control node virtual machine according to the second feedback state and the master-slave relation.
It should be noted that, the local control node virtual machine in this step refers to a virtual machine for controlling an edge computing node to execute an edge computing service, when the local control node virtual machine in the edge computing node is in an operating state, it is described that the edge computing node is a master node in a master-slave relationship, and conversely, when the local control node virtual machine in the edge computing node is in a suspended state, it is described that the edge computing node is a slave node in the master-slave relationship, so when the edge computing node executes an operation on the local control node virtual machine, it is essentially the operation that the edge computing node is executing a switch from the slave node to the master node; when the edge node performs a suspension operation on the local control node virtual machine, it is essentially the edge computing node that is performing an operation that has a primary node switch to a standby node.
Step S35: and ending the node switching operation.
After the first feedback state is obtained, the embodiment further judges whether the first feedback state is a node unresponsive state, that is, judges whether the first feedback state characterizes that the opposite edge computing node does not perform feedback operation on the data message, if the opposite edge computing node does not perform feedback operation on the data message, the opposite edge computing node is in an abnormal state, or a gateway for forwarding the data message in the application network is in an abnormal state, so in the embodiment, when the first feedback state is judged to be the node unresponsive state, the data message is further sent to a gateway in the preset application network, so as to obtain a second feedback state, and further judges whether the gateway in the preset application network is in a normal state according to the second feedback state in a subsequent step, that is, if the gateway responds to the data message, the gateway is considered to be in the normal state. Further, in this embodiment, after the second feedback state is obtained, the running operation or the suspending operation is further performed on the local control node virtual machine according to the second feedback state and the master-slave relationship. In addition, when the first feedback state is a state that the opposite-end edge computing node initiates a response to the data message, that is, when the first feedback state is not a node unresponsive state, the opposite-end edge computing node is considered to be in a normal operation state, and since the local edge computing node is defaulted to be in a normal operation state in this embodiment, node switching is not needed under the condition, and node switching operation is ended. According to the embodiment, the first feedback state corresponding to the opposite end edge computing node and the second feedback state corresponding to the gateway are comprehensively analyzed to jointly judge whether the node switching operation is carried out, so that the overall accuracy of the node switching is further ensured.
On the basis of the foregoing embodiment, as a preferred implementation manner, when the edge computing node is a master node in the master-slave relationship, executing, according to the second feedback state and the master-slave relationship, a running operation or a suspending operation on the local control node virtual machine, including:
judging whether the second feedback state is a gateway unresponsive state;
if so, executing a suspending operation on the local control node virtual machine.
It should be noted that, in this embodiment, the edge computing node is in a master node role in a master-slave relationship with the opposite edge computing node, after the edge computing node obtains the second feedback state, it is further determined whether the second feedback state is a gateway unresponsive state, if the second feedback state is the gateway unresponsive state, it is indicated that the gateway is in an abnormal state, and in this case, the data packet cannot be normally sent to the opposite edge computing node through the preset application network, so that the actual working state of the opposite edge computing node cannot be determined, in this case, the edge computing node performs a suspension operation on the local control node virtual machine, that is, switches itself into a standby node state, thereby ensuring that only one master node exists between the edge computing node and the opposite edge computing node, relatively avoiding occurrence of database brain-splitting between the two edge computing nodes, and ensuring the overall reliability of node switching.
On the basis of the foregoing embodiment, as a preferred implementation manner, when the edge computing node is a standby node in the primary-standby relationship, executing, according to the second feedback state and the primary-standby relationship, a running operation or a suspending operation on the local control node virtual machine, including:
judging whether the second feedback state is a gateway response state or not;
and if so, executing operation on the local control node virtual machine.
It should be noted that, in this embodiment, the edge computing node is in a standby node role in a primary-standby relationship with the opposite-end edge computing node, after the edge computing node obtains the second feedback state, it is further determined whether the second feedback state is a gateway response state, if the second feedback state is the gateway response state, it is indicated that the gateway is in a normal state, in this case, the edge computing node performs an operation on the local control node virtual machine, that is, switches itself to the primary node state, so as to ensure the overall reliability of node switching.
On the basis of the foregoing embodiment, as a preferred embodiment, before executing the running operation on the local control node virtual machine, the method further includes:
sending a data message to an opposite end edge computing node through a backbone network to obtain a third feedback state;
judging whether the third feedback state is a node unresponsive state;
and if so, executing the step of executing the running operation on the local control node virtual machine.
In this embodiment, before executing the operation on the local control node virtual machine, that is, after determining that the second feedback state is the gateway response state, the edge computing node serving as the standby node further sends a data packet to the opposite edge computing node through the backbone network to obtain a third feedback state, and determines whether the third feedback state is the node unresponsive state, if so, executing the operation on the local control node virtual machine. The backbone network in this embodiment is disposed between the edge computing node and the opposite edge computing node, and has robustness, and often has higher connectivity, so that in this embodiment, a data packet is initiated to the opposite edge computing node through the backbone network, so as to determine whether the opposite edge computing node is in a normal running state again, and further when the third feedback state is a node unresponsive state, further perform a running operation on the local control node virtual machine, and further ensure the overall reliability of node switching.
To further enhance the understanding of the above-described series of embodiments, two specific application scenarios are provided below for illustration.
Scene one: the standby node becomes the master node
A monitoring module needs to be run on the standby node. The monitoring module continues with the following steps to determine if it is the master node and runs the local control node virtual machine. The method comprises the following specific steps:
1. no master node presence is detected at the storage network.
And the monitoring module sends an ICMP type 8 message to the master node in the storage network to judge whether the opposite node exists. If no ICMP type 0 message is received from the other party, the existence of the other party is not detected.
2. The master node is undetectable by a preset application network (e.g., management network or tenant network)
And the monitoring module sends an ICMP type 8 message to the master node in a preset application network to judge whether the opposite node exists or not. If no ICMP type 0 message is received from the other party, the existence of the other party is not detected.
3. A gateway can be detected
And the monitoring module sends an ICMP type 8 message to the gateway in a preset application network to judge whether the opposite node exists or not. If no ICMP type 0 message is received from the other party, the existence of the other party is not detected. Otherwise, the existence of the opposite party is indicated, and the detection can be carried out.
4. The existence of the master node is not detected by the gateway
And the monitoring module logs in the gateway through the SSH, sends an ICMP type 8 message to the master node, and judges whether the master node exists or not. If no ICMP type 0 message is received from the other party, the existence of the other party is not detected.
And under the condition that all four are established, the monitoring module changes the suspended local control node virtual machine into an operation state.
Scene II: the master node becomes the standby node
A monitoring module is to be run on the master node. The monitoring module continues to detect the state of the standby node in the following steps, thereby completing the state transition.
1. The storage network cannot detect the standby node
And the monitoring module sends an ICMP type 8 message to the standby node in the storage network, and judges whether the standby node exists or not. If no ICMP type 0 message is received from the opposite party, the existence of the opposite standby node is not detected.
2. The preset application network (such as management network or tenant network) cannot detect the other party
And the monitoring module sends an ICMP type 8 message to the standby node in a preset application network, and judges whether the standby node exists or not. If no ICMP type 0 message is received from the opposite party, the existence of the opposite standby node is not detected.
3. No gateway is detected
And the monitoring module sends an ICMP type 8 message to the gateway in a preset application network to judge whether the opposite node exists or not. If no ICMP type 0 message is received from the other party, the existence of the other party is not detected. Otherwise, the existence of the opposite party is indicated, and the detection can be carried out.
Under the condition that all four are established, the monitoring module changes the running local control node virtual machine into a suspension state.
Fig. 4 is a block diagram of a node switching device according to an embodiment of the present invention. The node switching device provided by the embodiment of the invention comprises:
the relationship obtaining module 10 is configured to obtain a master-slave relationship between the master-slave relationship and the opposite-end edge computing node;
the feedback acquisition module 11 is configured to send a data packet to a preset application network, and obtain a feedback state of the data packet, where the preset application network is accessed to the opposite end edge computing node;
and the switching execution module 12 is configured to execute a switching operation with the peer edge computing node according to the feedback state and the active-standby relationship.
The node switching device provided by the invention is applied to edge computing nodes, and is used for firstly acquiring the main-standby relation between the edge computing nodes and the opposite-end edge computing nodes, further transmitting a data message to a preset application network, so as to obtain a feedback state corresponding to the data message, and finally executing switching operation with the opposite-end edge computing nodes according to the feedback state and the main-standby relation between the current edge computing nodes and the opposite-end edge computing nodes. According to the device, the data message is sent to the opposite-end edge computing node through the local edge computing node, so that the survival state of the opposite-end edge computing node is judged under the condition that other nodes are not needed to participate, and then the virtual machine of the local control node is selectively operated or suspended according to the feedback state of the data message and the main-standby relation between the local edge computing node and the opposite-end edge computing node, so that the main node switching between the edge computing nodes in the main-standby relation is realized, the number of nodes deployed in an edge computing scene is relatively reduced, and the cost of hardware deployment and the complexity of deployment are further reduced.
In addition, the present invention also provides an edge computing node, including:
a memory for storing a computer program;
and a processor for implementing the steps of the node switching method as described above when executing the computer program.
The edge computing node provided by the invention firstly acquires the primary-backup relationship between the edge computing node and the opposite-end edge computing node, and then sends the data message to the preset application network, so as to obtain the feedback state corresponding to the data message, and finally, the switching operation between the edge computing node and the opposite-end edge computing node is executed according to the feedback state and the primary-backup relationship between the current edge computing node and the opposite-end edge computing node. The edge computing node sends the data message to the opposite edge computing node, so that the survival state of the opposite edge computing node is judged without participation of other nodes, and then the virtual machine of the local control node is selectively operated or suspended according to the feedback state of the data message and the active-standby relation between the local edge computing node and the opposite edge computing node, so that the switching of the active nodes between the edge computing nodes which are in the active-standby relation is realized, the number of deployed nodes in an edge computing scene is relatively reduced, and the cost of hardware deployment and the complexity of deployment are further reduced.
The present invention also provides a computer-readable storage medium having a computer program stored thereon, which when executed by a processor implements the steps of the node switching method as described above.
The computer readable storage medium provided by the invention is applied to edge computing nodes, and is used for firstly acquiring a main-standby relation between the edge computing nodes and opposite-end edge computing nodes, further transmitting a data message to a preset application network, so as to obtain a feedback state corresponding to the data message, and finally executing switching operation between the edge computing nodes and the opposite-end edge computing nodes according to the feedback state and the main-standby relation between the current edge computing nodes and the opposite-end edge computing nodes. The computer readable storage medium realizes the judgment of the survival state of the opposite-end edge computing node under the condition of not needing other nodes to participate by sending the data message to the opposite-end edge computing node through the local edge computing node, and further selectively operates or suspends the local control node virtual machine according to the feedback state of the data message and the main-standby relation between the local edge computing node and the opposite-end edge computing node, thereby realizing the main node switching between the edge computing nodes which are in the main-standby relation, relatively reducing the number of deployed nodes in an edge computing scene, and further reducing the cost of hardware deployment and the complexity of deployment.
The method, the device, the equipment and the storage medium for switching the nodes provided by the invention are described in detail. In the description, each embodiment is described in a progressive manner, and each embodiment is mainly described by the differences from other embodiments, so that the same similar parts among the embodiments are mutually referred. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section. It should be noted that it will be apparent to those skilled in the art that various modifications and adaptations of the invention can be made without departing from the principles of the invention and these modifications and adaptations are intended to be within the scope of the invention as defined in the following claims.
It should also be noted that in this specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.

Claims (9)

1. A node switching method, applied to an edge computing node, comprising:
acquiring a main-standby relation between the main-standby relation and the opposite-end edge computing node;
sending a data message to a preset application network to obtain a feedback state of the data message, wherein the preset application network is accessed to the opposite end edge computing node;
executing switching operation with the opposite end edge computing node according to the feedback state and the active-standby relation;
the sending the data message to the preset application network to obtain the feedback state of the data message comprises the following steps:
and sending the data message to an opposite end edge computing node in the preset application network to obtain the feedback state.
2. The method for node switching according to claim 1, wherein the sending the data packet to the preset application network, to obtain the feedback state of the data packet, includes:
sending the data message to an opposite end edge computing node in the preset application network to obtain a first feedback state;
judging whether the first feedback state is a node unresponsive state or not;
if yes, the data message is sent to a gateway in the preset application network to obtain a second feedback state;
and executing the switching operation with the opposite-end edge computing node according to the feedback state and the active-standby relation, wherein the switching operation comprises the following steps:
and executing operation or suspension operation on the local control node virtual machine according to the second feedback state and the master-slave relation.
3. The node switching method according to claim 2, wherein when the edge computing node is a master node in the master-slave relationship, the executing a running operation or a suspending operation on the local control node virtual machine according to the second feedback state and the master-slave relationship includes:
judging whether the second feedback state is a gateway unresponsive state or not;
and if so, executing the suspension operation on the local control node virtual machine.
4. The node switching method according to claim 2, wherein when the edge computing node is a standby node in the primary-standby relationship, the performing a running operation or a suspending operation on a local control node virtual machine according to the second feedback state and the primary-standby relationship includes:
judging whether the second feedback state is a gateway response state or not;
and if so, executing the running operation on the local control node virtual machine.
5. The node switching method of claim 4, wherein prior to said performing said running operation on said local control node virtual machine, said method further comprises:
the data message is sent to the opposite end edge computing node through a backbone network, and a third feedback state is obtained;
judging whether the third feedback state is a node unresponsive state;
and if so, executing the step of executing the running operation on the local control node virtual machine.
6. The method for node switching according to any one of claims 1 to 5, wherein the sending the data packet to the preset application network includes:
and sending the ICMP data message to the preset application network.
7. A node switching apparatus, comprising:
the relation acquisition module is used for acquiring a main-standby relation between the opposite-end edge computing nodes;
the feedback acquisition module is used for sending the data message to a preset application network to obtain the feedback state of the data message, and the preset application network is accessed to the opposite end edge computing node;
the switching execution module is used for executing switching operation with the opposite-end edge computing node according to the feedback state and the main-standby relation;
the feedback acquisition module is specifically configured to:
and sending the data message to an opposite end edge computing node in the preset application network to obtain the feedback state.
8. An edge computing node, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the node switching method according to any of claims 1 to 6 when executing said computer program.
9. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the node switching method according to any of claims 1 to 6.
CN202010108920.0A 2020-02-21 2020-02-21 Node switching method, device, equipment and storage medium Active CN111371592B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010108920.0A CN111371592B (en) 2020-02-21 2020-02-21 Node switching method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010108920.0A CN111371592B (en) 2020-02-21 2020-02-21 Node switching method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111371592A CN111371592A (en) 2020-07-03
CN111371592B true CN111371592B (en) 2023-09-19

Family

ID=71211560

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010108920.0A Active CN111371592B (en) 2020-02-21 2020-02-21 Node switching method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111371592B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112291333A (en) * 2020-10-26 2021-01-29 济南浪潮高新科技投资发展有限公司 Edge device cooperative computing method based on affinity registration mechanism
CN114697197A (en) * 2022-03-22 2022-07-01 支付宝(杭州)信息技术有限公司 Edge computing apparatus and method
CN114996021A (en) * 2022-06-28 2022-09-02 慧之安信息技术股份有限公司 Air defense auxiliary detection system based on edge calculation

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101159678A (en) * 2003-12-08 2008-04-09 华为技术有限公司 Method and system for detecting default gateway state
CN102546389A (en) * 2011-11-08 2012-07-04 杭州华三通信技术有限公司 Method and device for flow trusteeship of cross-data center
CN103001799A (en) * 2012-11-23 2013-03-27 北京东土科技股份有限公司 Method and node for achieving redundancy on basis of chain network
CN104283739A (en) * 2014-10-20 2015-01-14 杭州华三通信技术有限公司 Detection method and device based on distributed ISSU
CN104410570A (en) * 2014-12-16 2015-03-11 北京东土科技股份有限公司 VRRP (virtual router redundancy protocol) based data transmission method and device
CN107547301A (en) * 2017-06-21 2018-01-05 新华三信息安全技术有限公司 A kind of master/slave device switching method and device
CN108075971A (en) * 2017-12-25 2018-05-25 新华三技术有限公司 A kind of main/standby switching method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101159678A (en) * 2003-12-08 2008-04-09 华为技术有限公司 Method and system for detecting default gateway state
CN102546389A (en) * 2011-11-08 2012-07-04 杭州华三通信技术有限公司 Method and device for flow trusteeship of cross-data center
CN103001799A (en) * 2012-11-23 2013-03-27 北京东土科技股份有限公司 Method and node for achieving redundancy on basis of chain network
CN104283739A (en) * 2014-10-20 2015-01-14 杭州华三通信技术有限公司 Detection method and device based on distributed ISSU
CN104410570A (en) * 2014-12-16 2015-03-11 北京东土科技股份有限公司 VRRP (virtual router redundancy protocol) based data transmission method and device
CN107547301A (en) * 2017-06-21 2018-01-05 新华三信息安全技术有限公司 A kind of master/slave device switching method and device
CN108075971A (en) * 2017-12-25 2018-05-25 新华三技术有限公司 A kind of main/standby switching method and device

Also Published As

Publication number Publication date
CN111371592A (en) 2020-07-03

Similar Documents

Publication Publication Date Title
CN111371592B (en) Node switching method, device, equipment and storage medium
CN106330475B (en) Method and device for managing main and standby nodes in communication system and high-availability cluster
US10862735B2 (en) Method and apparatus for implementing operation, administration, and maintenance function
US11150946B2 (en) Method and system for processing communication channel
CN115225634B (en) Data forwarding method, device and computer program product under virtual network
CN113726556B (en) Edge internet of things proxy node operation and maintenance method, system, storage medium and computing equipment
CN110971462A (en) Equipment switching method, device, equipment and storage medium
CN109698767A (en) A kind of main/standby switching method and device
CN107645402A (en) A kind of route management method and device
CN111585797B (en) Ethernet link switching method, device, equipment and computer readable storage medium
CN106230667B (en) VTEP keep-alive detection method and device
CN110674192A (en) Redis high-availability VIP (very important person) drifting method, terminal and storage medium
CN106921553B (en) Method and system for realizing high availability in virtual network
CN108616423B (en) Offline device monitoring method and device
CN117370316A (en) High availability management method and device for database, electronic equipment and storage medium
CN105763347B (en) For method getparms, the network equipment and system
US10462848B2 (en) Non-transitory computer readable recording medium, communication method and communication device
CN111835544B (en) Monitoring method and system of virtual router based on user mode protocol stack
JP6278868B2 (en) Communication control device and computing device
CN109361781B (en) Message forwarding method, device, server, system and storage medium
CN106533818B (en) Monitoring method and communication method, system and equipment based on NFV resource pool
CN112787868A (en) Information synchronization method and device
CN106972964B (en) A kind of restoration methods of SDN network system and its controller failure
CN115277375B (en) Method, system, equipment and storage medium for switching master server and standby server
CN114866509B (en) Virtual IP switching method, device and system

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
GR01 Patent grant
GR01 Patent grant