Node control method, system and device
By introducing a central system into the VNFM system, monitoring the connection status between the node and the central system and performing appropriate working mode switching, the 'dual-main' and 'no-main' problems in VNFM are solved, and the reliability and stability of the system are improved sex.
Patent Information
- Application Number
- CN202010352126.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-04-28
- Publication Date
- 2024-11-29
- Estimated Expiration
- 2040-04-28
AI Technical Summary
The existing technology is difficult to effectively solve the problems of ‘dual master’ and ‘no master’ in virtualized network element management (VNFM), resulting in inconsistent business processing results or business interruptions.
By introducing a central system into the node control system, monitoring the connection status between the node and the central system, and performing backup or upgrade of the main operation when the connection is interrupted, avoiding the occurrence of "dual main" and "no main" problems.
It effectively avoids the occurrence of "dual master" and "no master" problems, reduces the consumption of invalid switching time, and improves the reliability and stability of the system.
Smart Images

Figure CN113573329B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communications, and in particular to a method, system and device for node control. Background Art
[0002] The European Telecommunications Standards Institute (ETSI) has proposed a mobile edge computing (MEC) technology based on the fifth generation (5G) evolution architecture. On the one hand, the MEC technology can improve user experience and save bandwidth resources; on the other hand, the MEC technology provides unlimited possibilities for service innovation at the mobile edge entrance by sinking computing power to mobile edge nodes and providing third-party application integration.
[0003] MEC technology is inseparable from the orchestration capabilities of the virtualized network function manager (VNFM). For example, MEC technology also needs to consider the issues of VNFM "dual master" and "no master".
[0004] The "dual master" problem refers to the phenomenon that two machines or two nodes in a master-slave relationship will both become master nodes when triggered by certain conditions. When this phenomenon occurs, since both nodes are processing the same business as master nodes, inconsistent business processing results may occur on the two nodes. The master-slave mode dual machines need to avoid this situation as much as possible. Similarly, the "no master" problem refers to the phenomenon that two machines or two nodes in a master-slave relationship will both become backup nodes when triggered by certain conditions. When this phenomenon occurs, since both nodes are backup nodes, it will cause business interruption.
[0005] Therefore, the VNFM "dual master" problem and "no master" problem are issues that need to be solved urgently. Summary of the invention
[0006] The present application provides a node control method, system and device, which can not only solve the dual-master problem at a relatively low cost, but also avoid the occurrence of the masterless problem.
[0007] In a first aspect, a node control method is provided, which is applied to a node control system, wherein the node control system includes: a first node, a second node, and a central system, wherein the first node and the second node are located in an edge system, and both the first node and the second node are connected to the central system, a current working mode of the first node is a master node working mode, and a current working mode of the second node is a standby node working mode, wherein the method includes: the first node monitors the connection status between the first node and the central system, and switches to the standby node working mode when the connection between the first node and the central system is interrupted; the central system monitors the connection status between the first node and the central system, and sends a master upgrade command to the second node when the connection between the central system and the first node is interrupted, wherein the master upgrade command is used to notify the switching from the standby node working mode to the master node working mode; the second node switches to the master node working mode according to the master upgrade command.
[0008] For example, the connection between the first node and the central system is interrupted, or the connection between the central system and the first node is interrupted, both of which indicate that the connection between the central system and the first node is in an interrupted state.
[0009] It should be understood that the current working mode of the first node is the main node working mode, and the current working mode of the second node is the backup node working mode. This is only an example, which is used to indicate that: at a certain time, among multiple nodes in the edge system (such as two nodes, or more than two nodes), one node is in the main node working mode, and the other nodes are in the backup node working mode.
[0010] Based on the above technical solution, for a node in the master node working mode, when the connection between itself and the central system is detected to be interrupted, a downgrade operation is performed; for a node in the standby node working mode, after receiving the master upgrade command from the central system, an upgrade operation is performed. Specifically, on the one hand, by detecting the connectivity between the node in the master node working mode and the central system, it is determined whether the node in the master node working mode needs to be downgraded (that is, the original master node is downgraded to a standby node), thereby avoiding the problem of dual masters. In this way, not only can the occurrence of dual masters be avoided, but also the situation that the network is unusable after the switch can be avoided, reducing the ineffective switching time consumption. On the other hand, by integrating the arbitration capability into the central system, the problem of no master can be avoided. For example, the central system can send a master upgrade command to the node in the standby node working mode, so that the original standby node switches to the master node working mode. Therefore, there is no need to add a new arbitration node, but by integrating the switching capability into the central system, not only can the extra resource waste be reduced, but also the problem of no master can be avoided. In addition, the central system can decide whether to issue a master upgrade command based on the connection status with the node in the master node working mode, which can reduce unnecessary switching and save switching time. For example, the embodiment of the present application can also be used in MEC technology, so as to solve the dual master problem and the masterless problem that may occur in MEC technology.
[0011] In combination with the first aspect, in certain implementations of the first aspect, the first node monitors the connection status between the first node and the second node, and / or the second node monitors the connection status between the first node and the first node; when it is determined that the connection between the first node and the second node is interrupted or connected, the current working mode of the first node and / or the second node is maintained.
[0012] Based on the above technical solution, detection between nodes, such as heartbeat detection, is combined with detection between nodes and the central system to jointly determine whether the node in the master node state needs to be downgraded (i.e., downgraded to a standby node), thereby avoiding the dual-master problem. In addition, the node in the master node working mode determines whether to downgrade based on the connection between itself and the central system, so even if a hardware failure occurs (such as a physical host network card failure or a physical host failure or a network device failure, etc.), or the master node or the standby node cannot detect the heartbeat of the other end due to an internal software failure (a failure caused by factors other than the network card, network, etc.), there will be no misjudgment that causes the dual-master problem.
[0013] In combination with the first aspect, in some implementations of the first aspect, the first node monitors the connection status between the first node and the central system, including: the first node monitors the connection status between the first node and a gateway, and the gateway is between the first node and the central system.
[0014] Based on the above technical solution, whether a node in the master node working mode needs to be downgraded can be determined according to the connectivity between the node and the gateway.
[0015] In combination with the first aspect, in some implementations of the first aspect, the gateway is located in the edge system.
[0016] In a second aspect, a node control method is provided, which is applied to a first node in an edge system, wherein the first node is connected to a central system, the method comprising: when it is determined that a current working mode of the first node is a master node working mode, the first node monitors the connection status between itself and the central system, and when it is determined that the connection between the first node and the central system is interrupted, switches to a backup node working mode; when it is determined that the current working mode of the first node is a backup node working mode, the first node listens to commands from the central system, and when receiving an upgrade command sent by the central system, switches to the master node working mode, wherein the upgrade command is used to notify the switch from the backup node working mode to the master node working mode.
[0017] For example, the master upgrade command may be received when the connection between a second node currently in the master node working mode and the central system is interrupted, and the edge system further includes the second node, which is connected to the central system.
[0018] For example, when it is determined that the node is in the master node working mode, when it detects that the connection between itself and the central system is interrupted, it switches to the standby node working mode. That is to say, if the first node is in the master node working mode, then when the first node detects that the connection between itself and the central system is interrupted, it switches to the standby node working mode. It can be understood that for a node in the master node working mode, when it detects that the connection between itself and the central system is interrupted, it performs a downgrade operation.
[0019] For example, when it is determined that the system is in the standby node working mode, when it is detected that the connection between the system and the central system is interrupted, the standby node working mode is maintained.
[0020] For example, when determining that it is in the standby node working mode, it listens to commands from the central system, and switches to the master node working mode when receiving the master upgrade command from the central system. That is to say, if the first node is in the standby node working mode, then when the first node receives the master upgrade command from the central system, it switches to the master node working mode. It can be understood that for a node in the standby node working mode, after receiving the master upgrade command from the central system, the master upgrade operation is performed.
[0021] For example, monitoring a command from the central system means being in a monitoring state or a receiving state.
[0022] Based on the above technical solution, for a node in the master node working mode, when the connection between itself and the central system is detected to be interrupted, a downgrade operation is performed; for a node in the standby node working mode, after receiving the master upgrade command from the central system, an upgrade operation is performed. Specifically, on the one hand, by detecting the connectivity between the node in the master node working mode and the central system, it is determined whether the node in the master node working mode needs to be downgraded (that is, the original master node is downgraded to a standby node), thereby avoiding the problem of dual masters. In this way, not only can the occurrence of dual masters be avoided, but also the situation that the network is unusable after the switch can be avoided, reducing the ineffective switching time consumption. On the other hand, by integrating the arbitration capability into the central system, the problem of no master can be avoided. For example, the central system can send a master upgrade command to the node in the standby node working mode, so that the original standby node switches to the master node working mode. Therefore, there is no need to add a new arbitration node, but by integrating the switching capability into the central system, not only can the extra resource waste be reduced, but also the problem of no master can be avoided. In addition, the central system can decide whether to issue a master upgrade command based on the connection status with the node in the master node working mode, which can reduce unnecessary switching and save switching time. For example, the embodiment of the present application can also be used in MEC technology, so as to solve the dual master problem and the masterless problem that may occur in MEC technology.
[0023] In combination with the second aspect, in certain implementations of the second aspect, the edge system further includes a second node, which is connected to the central system, and the first node monitors the connection status between itself and the second node; when it is determined that the connection between the first node and the second node is interrupted or connected, the current working mode of the first node is maintained.
[0024] For example, if an interruption in the connection with the second node is detected, and an interruption in the connection with the central system is detected, if itself is in the main node working mode, it switches to the backup node working mode; if itself is in the backup node working mode, it maintains the backup node working mode; if an interruption in the connection with the second node is detected, and an interruption in the connection with the central system is not detected, no matter whether itself is in the main node working mode or the backup node working mode, no processing is performed.
[0025] For example, the first node may periodically detect the connection with the second node. For example, after the system is started, the first node may periodically detect the connection with the second node.
[0026] For example, the first node detects whether the connection with the second node is normal by pinging the gateway IP address or sending a message (such as a heartbeat signal).
[0027] In combination with the second aspect, in some implementations of the second aspect, the first node monitors the connection status between itself and the central system, including: the first node monitors the connection status between itself and a gateway, and the gateway is between the first node and the central system.
[0028] For example, the first node periodically detects the connection with the gateway. For example, after the system is started, the first node may periodically detect the connection with the gateway.
[0029] In combination with the second aspect, in some implementations of the second aspect, the gateway is within the edge system.
[0030] In combination with the second aspect, in certain implementations of the second aspect, the method also includes: when it is detected that the first node is in an active state, determining that the current working mode of the first node is a main node working mode, or, when it is detected that the first node is in an inactive state, determining that the current working mode of the first node is a backup node working mode; or, when it is detected that the business application on the first node is in a running state, determining that the current working mode of the first node is a main node working mode, or, when it is detected that the business application on the first node is in a stopped state, determining that the current working mode of the first node is a backup node working mode; or, when it is detected that there is no status mark on the first node, determining that the current working mode of the first node is the main node working mode, or, when it is detected that there is a status mark on the first node, determining that the current working mode of the first node is the backup node working mode.
[0031] For example, the active state may indicate whether it is possible to provide services externally. That is, the master node provides services externally. For example, when it is detected that the first node provides services externally, the current working mode of the first node is determined to be the master node working mode, or when it is detected that the first node cannot provide services externally, the current working mode of the first node is determined to be the standby node working mode.
[0032] Based on the above technical solution, whether a node is a master node or a backup node can be determined through the node status, the status of the business application on the node, or the identifier.
[0033] According to a third aspect, a method for node control is provided, comprising: a central system monitors the connection status between the central system and a first node, the current working mode of the first node being a master node working mode; when the connection between the central system and the first node is interrupted, a master upgrade command is sent to a second node, the current working mode of the second node being a standby node working mode, and the master upgrade command is used to notify the switching from the standby node working mode to the master node working mode.
[0034] Based on the above technical solution, the arbitration capability can be integrated into the central system. For example, the central system can decide whether the standby node should switch to the master node working mode based on the failure of the service channel, rather than detecting it based on the connectivity of the newly added arbitration node and the edge device. Thus, by integrating the switching capability into the central system, additional resource waste can be reduced. In addition, by deciding whether to switch the master and standby nodes based on the failure of the service channel, unnecessary switching can be reduced and switching time can be saved. By way of example, the embodiments of the present application can also be used in MEC technology, thereby solving the "dual master" problem and "masterless" problem that may arise in MEC technology.
[0035] In combination with the third aspect, in certain implementations of the third aspect, the central system monitors the connection status with the first node, including: the central system remotely logs into the node through a secure shell protocol SSH command to detect whether the connection with the first node is normal.
[0036] In a fourth aspect, a node control method is provided, which is applied to a first node in an edge system, wherein the first node is connected to a central system, and the method comprises: the first node detects the connection with the central system; when determining that the first node is in a main node working mode, upon detecting that the connection between the first node and the central system is interrupted, the first node switches to a backup node working mode; when determining that the first node is in a backup node working mode, upon detecting that the connection between the first node and the central system is interrupted, the first node maintains the backup node working mode.
[0037] Based on the above technical solution, the connectivity detection between the node and the central system is used to determine whether the node needs to be downgraded (that is, the original master node is downgraded to a backup node), thereby avoiding the dual-master problem. For example, the node performs a central system connectivity detection. In the event of a central system connectivity detection failure, if the node is a master node, the master node can actively be downgraded to a backup node. In this way, not only can the occurrence of dual masters be avoided, but also the situation where the network is unusable after the switch can be avoided, thereby reducing the ineffective switching time consumption. By way of example, the embodiments of the present application can also be used in MEC technology, thereby solving the "dual master" problem that may occur in MEC technology.
[0038] In combination with the fourth aspect, in certain implementations of the fourth aspect, the edge system also includes a second node, and the method also includes: the first node detects the connection between the first node and the second node; when it is detected that the connection between the first node and the second node is interrupted, no processing is performed regardless of whether the first node is in the main node working mode or the backup node working mode.
[0039] In combination with the fourth aspect, in certain implementations of the fourth aspect, the first node detects the connection with the central system, including: the first node detects the connection with a gateway, and the gateway is between the first node and the central system.
[0040] In combination with the fourth aspect, in some implementations of the fourth aspect, the gateway is located within the edge system.
[0041] In a fifth aspect, a node control method is provided, which is applied to a first node in an edge system; the method comprises: receiving an upgrade command from a central system, wherein the upgrade command is used to notify a switch from a backup node working mode to a main node working mode; and switching to the main node working mode when it is determined that the node itself is in the backup node working mode.
[0042] For example, when it is determined that it is in the master node working mode, it switches to the standby node working mode. For example, in the case of a software failure, the original master and standby nodes need to be switched, that is, the central system can be connected to the two nodes, and the central system sends a master upgrade command (or can also be called a master upgrade command) to the two nodes, so that the node originally in the master node working mode switches to the standby node working mode, and the node originally in the standby node working mode switches to the master node working mode.
[0043] Based on the above technical solution, for the node in the standby node working mode, after receiving the upgrade command from the central system, the upgrade operation is performed. That is to say, business linkage detection can be performed, and the arbitration capability can be integrated into the central system. For example, the central system can decide whether the original standby node should be switched to the main node based on the failure of the business channel, rather than detecting it based on the connectivity between the arbitration and the edge device. Thus, by integrating the switching capability into the central system, additional resource waste can be reduced. In addition, by deciding whether to switch the main and standby nodes based on the failure of the business channel, unnecessary switching can be reduced and switching time can be saved. By way of example, the embodiments of the present application can also be used in MEC technology, so as to solve the "dual master" problem and "masterless" problem that may arise in MEC technology.
[0044] In a sixth aspect, a node control system is provided, the node control system comprising: a first node, a second node, and a central system, the first node and the second node are located in an edge system, and the first node and the second node are both connected to the central system, the current working mode of the first node is a master node working mode, the current working mode of the second node is a standby node working mode, the first node is used to monitor the connection status between the first node and the central system, and switch to the standby node working mode when the connection between the first node and the central system is interrupted; the central system is used to monitor the connection status between the first node and the second node, and send a master upgrade command to the second node when the connection between the central system and the first node is interrupted, the master upgrade command being used to notify the switch from the standby node working mode to the master node working mode; the second node is used to switch to the master node working mode according to the master upgrade command.
[0045] In combination with the sixth aspect, in certain implementations of the sixth aspect, the first node is further used to monitor the connection status between the first node and the second node; the first node is further used to determine whether the connection between the first node and the second node is interrupted or connected, while maintaining the current working mode of the first node and / or the second node.
[0046] In combination with the sixth aspect, in certain implementations of the sixth aspect, the first node is specifically used to monitor the connection status with a gateway, and the gateway is between the first node and the central system.
[0047] In combination with the sixth aspect, in certain implementations of the sixth aspect, the gateway is located within the edge system.
[0048] In a seventh aspect, a node control device is provided, comprising modules or units for executing the method in any possible implementation of the first to fifth aspects above.
[0049] In an eighth aspect, a node control device is provided, comprising a processor. The processor is coupled to a memory and can be used to execute instructions in the memory to implement the method in any possible implementation of the first to fifth aspects and the first to fifth aspects. Optionally, the device also includes a memory. Optionally, the device also includes a communication interface, the processor is coupled to the communication interface, and the communication interface is used to input and / or output information. The information includes at least one of an instruction and data.
[0050] In one implementation, the device is a node, or the device is a central system. When the device is a node or a central system, the communication interface may be a transceiver, or an input / output interface.
[0051] In another implementation, the device is a chip or a chip system. When the device is a chip or a chip system, the communication interface may be an input / output interface, an input / output interface, an interface circuit, an output circuit, an input circuit, a pin or a related circuit on the chip or the chip system. The processor may also be embodied as a processing circuit or a logic circuit.
[0052] In another implementation, the device is a chip or a chip system configured in a node, or the device is a chip or a chip system configured in a central system.
[0053] Optionally, the transceiver may be a transceiver circuit. Optionally, the input / output interface may be an input / output circuit.
[0054] In a ninth aspect, a processor is provided, comprising: an input circuit, an output circuit, and a processing circuit. The processing circuit is used to receive a signal through the input circuit and transmit a signal through the output circuit, so that the processor executes the method in any possible implementation of the first to fifth aspects above.
[0055] In the specific implementation process, the above-mentioned processor can be a chip, the input circuit can be an input pin, the output circuit can be an output pin, and the processing circuit can be a transistor, a gate circuit, a trigger, and various logic circuits. The input signal received by the input circuit can be, for example, but not limited to, received and input by an input interface, and the signal output by the output circuit can be, for example, but not limited to, output to an output interface and transmitted by the output interface, and the input circuit and the output circuit can be the same circuit, which is used as an input circuit and an output circuit at different times. The embodiments of the present application do not limit the specific implementation methods of the processor and various circuits.
[0056] In a tenth aspect, a processing device is provided, comprising a processor and a memory. The processor is used to read instructions stored in the memory, and can receive signals through an input interface and transmit signals through an output interface to execute the method in any possible implementation of the first to fifth aspects above. The output interface and the input interface can be collectively referred to as a communication interface.
[0057] Optionally, the number of the processors is one or more, and the number of the memories is one or more.
[0058] Optionally, the memory may be integrated with the processor, or the memory may be provided separately from the processor.
[0059] The processing device in the above-mentioned tenth aspect can be a chip. The processor can be implemented by hardware or by software. When implemented by hardware, the processor can be a logic circuit, an integrated circuit, etc.; when implemented by software, the processor can be a general-purpose processor, which is implemented by reading the software code stored in the memory. The memory can be integrated in the processor or can be located outside the processor and exist independently.
[0060] In the eleventh aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a communication device, the communication device implements the methods in the first to fifth aspects, and any possible implementation manner of the first to fifth aspects.
[0061] In a twelfth aspect, a computer program product comprising instructions is provided, and when the instructions are executed by a computer, the device enables the device to implement the methods provided in the first to fifth aspects.
[0062] In a thirteenth aspect, a node control system is provided, comprising the aforementioned first node and second node; or, comprising the aforementioned first node, second node and a central system. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] Figure 1 is a schematic diagram of a network architecture applicable to an embodiment of the present application;
[0064] Figure 2 is a schematic diagram of an application scenario applicable to an embodiment of the present application;
[0065] Figure 3 is a schematic block diagram of a node control method provided by an embodiment of the present application;
[0066] Figure 4 is a schematic block diagram of a node control method provided in yet another embodiment of the present application;
[0067] Figure 5 is a schematic block diagram of a node control method provided by another embodiment of the present application;
[0068] Figure 6 is a schematic block diagram of a node control method provided by another embodiment of the present application
[0069] Figure 7 A schematic diagram showing a node control method applicable to an embodiment of the present application is shown;
[0070] Figure 8 is a schematic block diagram of a node control device provided in an embodiment of the present application;
[0071] Fig. 9It is a schematic block diagram of a node control device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0072] The technical solution in this application will be described below in conjunction with the accompanying drawings.
[0073] The technical solutions of the embodiments of the present application can be applied to various communication systems, such as: fifth generation (5G) system or new radio (NR), long term evolution (LTE) system, LTE frequency division duplex (FDD) system, LTE time division duplex (TDD), universal mobile telecommunication system (UMTS), etc.
[0074] To facilitate understanding of the embodiments of the present application, first Figure 1 and Figure 2 A detailed description of the network architecture applicable to the embodiments of the present application is given.
[0075] Figure 1 It is a schematic diagram of a network architecture applicable to an embodiment of the present application. As shown in Figure 1, the network architecture may belong to a two-layer architecture. Among them, the upper layer is a central system located in the central area, and the lower layer is an edge system located in each city. The central system can act as a central controller, and the creation and deletion of services can be initiated by the central system. And the central system can send requests for the creation and deletion of services to each edge system, and the edge system will create or delete the service. In addition, the edge system also has certain business processing capabilities, such as querying services, troubleshooting, etc.
[0076] The edge system also includes edge nodes, which are business platforms built on the edge of the network close to users, providing storage, computing, network and other resources, and sinking some key business applications to the edge of the access network to reduce the bandwidth and latency losses caused by network transmission and multi-level forwarding.
[0077] Edge nodes can include one or more nodes. A node is a virtual machine that contains the system, application, database, etc. running in the virtual machine. Figure 1As shown, edge nodes, for example, may include node 1 and node 2. Node 1 and node 2 may be two nodes in a master-slave relationship. Node 1 and node 2 are usually deployed on different physical hosts and different storages. The failure of any one node does not affect the other node, and the other node can continue to run. In most cases, each physical host has only two physical network cards, one for hardware management (i.e., network card 0, not marked in the figure), and one for use by virtual machines running on the physical host (i.e., network card 1). For example Figure 1 In the figure, network card 1-1 and network card 1-2 are shown, where network card 1-1 represents network card 1 on physical host 1 where node 1 is located, and network card 1-2 represents network card 1 on physical host 2 where node 2 is located. A heartbeat channel can be configured between node 1 and node 2, such as Figure 1 In the heartbeat 1, node 1 and node 2 can determine whether the connection between the nodes is interrupted by detecting the heartbeat channel between them, such as heartbeat 1.
[0078] In the embodiment of the present application, there is a service connection channel between the edge node and the central system, so that the central system can issue instructions to the edge node through the management channel. Figure 1 or Figure 2 ,The central system can send instructions to edge nodes through gateways, switches, etc.
[0079] Figure 2 It is a schematic diagram of an application scenario applicable to an embodiment of the present application.
[0080] The embodiments of the present application can be applied to mobile edge computing (MEC) scenarios. Figure 1 The architecture shown can be applied to MEC scenarios. Figure 2 As shown, the central system is the central virtualized network function manager (VNFM) device, and the edge system is the edge VNFM device.
[0081] The central VNFM device and the edge VNFM device can collaborate to create a virtualized network function (VNF). At the same time, the VNF can obtain virtual resource information from the edge VNFM device, for example, including but not limited to: virtual machine information, network, etc. If the VNF fails, the VNF can work with the edge VNFM device to repair the VNF. For example, Figure 2 As shown, the VNF may include a user plane function (UPF).
[0082] It should be understood that Figure 2The VNF (UPF network element) shown in the figure can be an independent device or integrated into the same device to implement different functions. This application does not limit this.
[0083] It should also be understood that the above naming is only used to distinguish different functions, and does not mean that these network elements are independent physical devices. This application does not limit the specific form of the above network elements. For example, they can be integrated in the same physical device, or they can be different physical devices. In addition, the above naming is only for the convenience of distinguishing different functions, and should not constitute any limitation on this application. This application does not exclude the possibility of using other names in 5G networks and other future networks. For example, in a 6G network, some or all of the above network elements may use the terminology in 5G, or other names may be used. A unified explanation is given here, and no further details are given below.
[0084] It should also be understood that the above Figure 1 and Figure 2 This is only an exemplary description, and the network architecture applicable to the embodiment of the present application is not limited thereto, and any network architecture that can realize the functions of the above-mentioned network elements is applicable to the embodiment of the present application. For example, the above-mentioned edge system may include a larger number of standby nodes.
[0085] It should also be understood that Figure 1 and Figure 2 The example of a gateway being included in an edge system is used for exemplary description, but is not limited thereto. For example, the gateway may also be included in a central system.
[0086] In order to prevent the mobile bearer network from being piped, deeply integrate with mobile Internet and IoT services, and thus enhance the value of mobile network bandwidth, the European Telecommunications Standards Institute (ETSI) proposed MEC technology based on the 5G evolution architecture. On the one hand, MEC technology can improve user experience and save bandwidth resources; on the other hand, by sinking computing power to mobile edge nodes and providing third-party application integration, it provides unlimited possibilities for service innovation at the mobile edge entrance.
[0087] By sinking computing power to mobile edge nodes, a telecommunications-grade service environment with high performance, low latency and high bandwidth can be created, accelerating the distribution and download of various content, services and applications in the network, allowing consumers to enjoy a higher quality network experience.
[0088] Both MEC of the fourth generation of mobile phone mobilecommunication technology standards and MEC of 5G are inseparable from the orchestration capability of VNFM; VNFM also needs to adapt to the business needs of MEC.
[0089] Take the VNFM "dual master" problem as an example. The "dual master" problem refers to the phenomenon that two machines or two nodes in the master-slave relationship will both become master nodes when certain conditions are triggered. When this phenomenon occurs, since both nodes are processing the same business as master nodes, inconsistent business processing results on the two nodes may occur. The master-slave mode dual machines need to avoid this situation as much as possible. It can be understood that the "no master" problem refers to the phenomenon that two machines or two nodes in the master-slave relationship will both become backup nodes when certain conditions are triggered.
[0090] by Figure 1 or Figure 2 Taking Node 1 and Node 2 in the example, Node 1 and Node 2 in the active-standby mode are usually deployed on different physical hosts and different storages. The failure of any one node will not affect the other node, and the other node can continue to run.
[0091] In the prior art, there are two ways to solve the "dual master" problem.
[0092] One way is to avoid the "dual master" problem by detecting the heartbeat channel between nodes. Figure 2 Taking the architecture shown as an example, multiple heartbeat channels are configured between node 1 and node 2. Specifically, as long as one heartbeat channel is still connected, there will be no dual-master phenomenon, that is, the master node is still the master node, and the backup node is still the backup node; when no heartbeat channel is connected, the backup node is promoted to the master node.
[0093] In this way, hardware failure or software failure will cause the "dual master" problem. For example, hardware failure will cause the "dual master" problem: the virtual network cards through which multiple heartbeat channels of the same node in the virtualization scenario actually correspond to the same physical network card in the physical host (such as Figure 2NIC 1). Assuming that node 1 is the master node and node 2 is the backup node, a physical host NIC failure, a physical host failure, or a network device failure will cause node 2 to be unable to detect the heartbeat of node 1, and node 2 will upgrade itself to the master node, resulting in a "dual master" phenomenon. For another example, a software failure will cause a "dual master" problem: when the master node or the backup node cannot detect the heartbeat of the other end due to an internal software failure (a failure not caused by the NIC, network, etc.), a "dual master" situation will occur; even if multiple heartbeat channel configurations are added, the dual master problem in this scenario cannot be solved.
[0094] Another way is to add arbitration nodes to avoid the "dual master" problem. There are two ways to add arbitration nodes: one is to add arbitration nodes to each edge system and make decisions nearby, that is, the arbitration nodes added to each edge system decide which node in the edge system is the host; the other is to add arbitration nodes at the same position as the central VNFM, and the added arbitration nodes decide which node in each edge system is the host.
[0095] This method not only adds additional resources, such as computing, storage, and network. Moreover, if an arbitration node and a node are on the same physical board, a single point failure of the physical board will cause both the arbitration node and the node to fail at the same time. The remaining node cannot be promoted to the master node due to lack of arbitration, resulting in a "masterless" phenomenon, and ultimately the entire business is unavailable.
[0096] In view of this, the present application provides a method that can not only solve the "dual master" problem at a lower cost, but also avoid the "no master" problem.
[0097] The various embodiments provided in the present application will be described in detail below with reference to the accompanying drawings.
[0098] Figure 3 3 is a schematic block diagram of a node control method 300 provided in an embodiment of the present application. The method 300 can be applied to a node control system, the node control system includes: a first node, a second node, and a central system, the first node and the second node are located in an edge system, and the first node and the second node are both connected to the central system.
[0099] The central system refers to a device that can control the edge system where the first node and the second node are located. For example, the central system can act as a central controller to initiate the creation and deletion of services. The central system can also send requests for the creation and deletion of services to each edge system, and the edge system can create or delete the service.
[0100] For example, the central system may be Figure 1 The central system, or the central system can also be Figure 2The central VNFM device described herein is not limited to the specific form of the central system.
[0101] It should be understood that the central system is only a name used to distinguish different functions, and its naming does not limit the protection scope of the embodiments of the present application. In future agreements, names used to represent the same functions will fall within the protection scope of the embodiments of the present application.
[0102] Assuming that the current working mode of the first node is the master node working mode, and the current working mode of the second node is the standby node working mode, the method 300 may include the following steps.
[0103] 310, the first node monitors the connection status between the first node and the central system, and switches to the standby node working mode when the connection between the first node and the central system is interrupted;
[0104] 320, the central system monitors the connection status between the central system and the first node, and when the connection between the central system and the first node is interrupted, sends a master upgrade command to the second node, where the master upgrade command is used to notify the second node to switch from the standby node working mode to the master node working mode;
[0105] 330. The second node switches to the master node working mode according to the master upgrade command.
[0106] Through the embodiment of the present application, for a node in the master node working mode, when the connection between itself and the central system is detected to be interrupted, a downgrade operation is performed; for a node in the standby node working mode, after receiving the master upgrade command from the central system, a master upgrade operation is performed. Specifically, on the one hand, by detecting the connectivity between the node in the master node working mode and the central system, it is determined whether the node in the master node working mode is to be downgraded (that is, the original master node is downgraded to a standby node), thereby avoiding the problem of dual masters. In this way, not only can the occurrence of dual masters be avoided, but also the situation that the network is unusable after the switch can be avoided, reducing the ineffective switching time consumption. On the other hand, by integrating the arbitration capability into the central system, the problem of no master can be avoided. For example, the central system can send a master upgrade command to the node in the standby node working mode, so that the original standby node switches to the master node working mode. Therefore, there is no need to add a new arbitration node, but by integrating the switching capability into the central system, not only can the extra resource waste be reduced, but also the problem of no master can be avoided. In addition, the central system can decide whether to issue a master upgrade command based on the connection status with the node in the master node working mode, which can reduce unnecessary switching and save switching time.
[0107] The first node and the second node belong to nodes in an edge device or an edge system, and the edge device or the edge system may include multiple nodes. For example, the edge device or the edge system may include two nodes, for example, recorded as the first node and the second node. Alternatively, the edge device or the edge system may include more than two nodes, for example, one node is in the master node working mode, and the other multiple nodes are in the standby node working mode, which is not limited to this. Method 300 is mainly illustrated by assuming that the first node is in the master node working mode and the second node is in the standby node working mode.
[0108] It should be understood that the specific form of the node, such as the first node and the second node, is not limited in the embodiment of the present application. For example, the node may be a virtual machine, which includes the system, application, database, etc. running in the virtual machine. Among them, the application may be composed of a management application and a business application, for example.
[0109] It should be understood that the backup node is relative to the master node. The backup node can also be called a backup node or a non-master node. Its naming does not limit the scope of protection of the embodiments of the present application. In future protocols, the names used to represent the same functions will fall within the scope of protection of the embodiments of the present application.
[0110] It should also be understood that the embodiment of the present application does not limit the state of the node. Taking the first node as an example, the first node is currently in the master node state and may be in the standby node state in a certain period of time, and the first node is not limited to being only the master node.
[0111] Regarding the master node, or that a certain node is a master node, or that a certain node is in the master node working mode, they are all used to express the same meaning, and those skilled in the art should understand their meanings. Regarding the backup node, or that a certain node is a backup node, or that a certain node is in the backup node working mode, they are all used to express the same meaning, and those skilled in the art should understand their meanings. The following text uniformly uses the master node and the backup node to express.
[0112] In one example, it is possible to determine whether a node is a master node or a standby node based on the state of the node. For example, a master node represents a node in an active state, and a standby node represents a node in an inactive state. It is understood that if a node is in an active state, the node is determined to be a master node; if a node is in an inactive state, the node is determined to be a standby node.
[0113] The active state, for example, can indicate whether it is able to provide services to the outside. In other words, the master node provides services to the outside. For example, when the edge system is installed, one node can be set as the master node and the other node as the backup node by default, and the master node provides services to the outside.
[0114] As another example, it is possible to determine whether a node is a primary node or a backup node based on the state of the business application on the node. For example, the system, management application, business application, database, etc. in the primary node can be in a running state; the system, management application, database, etc. of the backup node can be in a running state, and the business application is in a stopped state. It can be understood that if the business application on the node is in a running state, the node is determined to be a primary node; if the business application on the node is in a non-running state or a stopped state, the node is determined to be a backup node. It should be understood that the embodiments of the present application do not limit the business application on the backup node to be in a stopped state. For example, in hot standby mode, the system, management application, business application, database, etc. on the primary node and the backup node can be in a running state.
[0115] As another example, it is possible to determine whether a node is a primary node or a backup node based on an identifier. The primary and backup nodes can be identified by recording a flag. For example, during the installation of the edge system, an identification file (i.e., a file containing a standby status flag, such as standby_flag) can be created under a preset storage path on a certain node to identify the node as a backup node, and a node without the identification file is a primary node. It can be understood that, taking the flag as standby_flag as an example, if there is a file containing the standby_flag flag on the node, the node is determined to be a backup node; if there is no file containing the flag on the node, the node is determined to be a primary node. It should be understood that there are many ways to identify a primary node or a backup node by identification, which will not be repeated here. Any other way of identifying a primary node or a backup node by identification falls within the protection scope of the embodiments of the present application.
[0116] It should be understood that the above examples are merely illustrative, and any method that can determine whether it is a master node or a backup node falls within the protection scope of the embodiments of the present application.
[0117] In the embodiments of the present application, "switching to the standby node working mode" or "downgrading from the main node to the standby node" or "downgrading to standby" are mentioned many times, and those skilled in the art should understand their meanings. They are all used to indicate that a node switches from the original main node mode to the standby node mode; or in other words, a node begins to process business as a standby node; or it can be understood that in the edge system, a node begins to exist as a standby node, such as the node temporarily no longer processes business (such as the node stops all applications on the node). This will not be elaborated below.
[0118] In the embodiments of this application, "switching to the main node working mode" or "upgrading from a backup node to a backup node" or "upgrading to the main node" are mentioned many times, and those skilled in the art should understand their meanings. They are all used to indicate that a node switches from the original backup node mode to the main node mode; or in other words, a node begins to process business as a main node; or it can be understood that in the edge system, a node begins to exist as a main node, such as the main node begins to process business. This will not be elaborated below.
[0119] It can be understood that each node management application controls the communication channel for external access to the edge system and can record the master-slave mode. The master-slave mode will be updated when operations such as upgrading or downgrading are performed.
[0120] Optionally, the first node may detect a connection with a gateway to determine a connection status with the central system.
[0121] For example, when the first node detects that the connection with the gateway is interrupted, it determines that the connection state with the central system is interrupted; when the first node detects that the connection with the gateway is connected, it determines that the connection state with the central system is connected. The following mainly uses the detection of the connection with the gateway as an example for exemplary description. It should be understood that any method that can determine the connectivity between the node and the central system is applicable to the embodiments of the present application.
[0122] For example, the gateway may be located in an edge system, such as Figure 1 or Figure 2 As shown; alternatively, the gateway may also be located in the central system, which is not limited.
[0123] It should be understood that the specific form of the gateway is not limited in the embodiments of the present application. For example, the gateway may be an internetwork connector or a network device in a switch. Alternatively, the gateway may also be an internetwork connector or a network device in a routing device. The connection between the gateway and the node may mean that the node is connected to the gateway so that the node can run. For example, the node is connected to the gateway so that it can run applications such as programs or databases.
[0124] Optionally, the embodiment of the present application does not limit the timing of detection between the node and the central system (such as a gateway).
[0125] In a possible implementation, the first node may periodically detect the connection with the central system. In other words, the first node may periodically detect the connection with the central system. For example, after the system is started, the first node may periodically detect the connection with the central system.
[0126] For example, the first node periodically detects the connection with the central system according to a first preset time.
[0127] The first preset time may be, for example, a configured duration; or, the first preset time may be a predefined duration, such as a duration predefined by a protocol or predefined by a central system; or, the first preset time may be a duration determined based on historical detection conditions. There is no limitation on this.
[0128] For example, the first preset time may be one minute, that is, the first node may detect the connection with the central system every one minute.
[0129] It should be understood that the first node may also detect the connection with the central system irregularly, which is not limited in the embodiments of the present application.
[0130] Optionally, the embodiments of the present application do not limit the method of detection between the node and the central system (such as a gateway).
[0131] In a possible implementation, the first node can determine whether the connection between the first node and the central system is normal by sending a message. For example, the first node sends a message (such as a heartbeat message or a heartbeat signal, etc.) to the central system. If the first node receives a reply message (such as an acknowledgement (ACK) message) from the central system, it can be determined that the connection with the central system is normal; if the first node does not receive a reply message from the central system, it can be determined that the connection with the central system is abnormal.
[0132] In another possible implementation, the first node may detect whether the connection with the central system (such as the gateway) is normal by pinging the gateway IP address.
[0133] For example, if the ping command result returns 0, the connection between the first node and the central system (such as a gateway) is normal; if the ping command result returns other values, the connection between the first node and the central system (such as a gateway) fails (or the connection is interrupted).
[0134] For example, the relevant parameters of the ping command may include but are not limited to: specifying the number of consecutive executions, the interval between each ping execution, and the execution timeout.
[0135] The number of consecutive executions specified may, for example, represent the number of consecutive executions, such as the number of consecutive executions detected by pinging the gateway IP address. The number of consecutive executions specified may be configured or predefined, and there is no limitation on this. For example, the number of consecutive executions may be set to A, where A is an integer greater than 1 or equal to 1. For example, if A is 5, the number of consecutive executions is 5.
[0136] The interval time of each ping execution may, for example, represent the time interval between two adjacent ping executions, such as the time interval between two adjacent detections by pinging the gateway IP address. The interval time of each ping execution may be configured or predefined, and there is no limitation on this. For example, the interval time of each ping execution may be set to T1 by default, where T1 is a number greater than 0. For example, if T1 is 1 second, then the interval time of each ping execution is 1 second.
[0137] The execution timeout may, for example, represent the timeout for executing ping. The execution timeout may be configured or predefined, and is not limited thereto. For example, the execution timeout may be set to T2 by default, where T2 is a number greater than 0. For example, if T2 is 4 seconds, the execution timeout is 4 seconds.
[0138] It should be understood that the above method is only an exemplary description, and any method that can enable the node to detect the connection with the central system falls within the protection scope of the embodiments of the present application.
[0139] As mentioned above, in the embodiment of the present application, the central system may also detect the connection status with the first node. The embodiment of the present application does not limit the detection method between the central system and the node.
[0140] In a possible implementation, the central system can detect whether the connection with the edge node (such as the first node) is normal by remotely logging into the node through a secure shell protocol (SSH) command. If the SSH command result returns 0, it means that the connection between the central system and the edge node (such as the first node) is normal; if the SSH command returns other numbers, it means that the connection between the central system and the edge node (such as the first node) is faulty.
[0141] It should be understood that the embodiment of the present application does not limit the way in which the central system detects whether the connection with the edge node (such as the first node) is normal. Any way that can realize the central system detecting whether the connection with the edge node is normal falls within the protection scope of the embodiment of the present application. For example, the central system can use the ping method as described above to detect whether the connection with the edge node is normal. For another example, it can also be determined by sending a message to the edge node.
[0142] The embodiment of the present application does not limit the timing of detection between the central system and the edge node (such as the first node).
[0143] For example, when the central system receives the error code "unavailable", the central system can detect whether the connection with the edge node (such as the first node) is normal. In one possible situation, when the edge device is in the "ownerless state", all programs on the nodes are stopped, which will cause the established channels between the central system and the edge device, such as the established channels developed based on the Google Remote Procedure Call (RPC) (gRPC) framework, to be forced to be interrupted, so that the central system will receive the error code "unavailable".
[0144] It should be understood that in the embodiments of the present application, "no master state" is mentioned many times, which means that multiple nodes are standby nodes or are in standby node working mode, and there is no master node. In other words, all nodes in the edge system are standby nodes or are in standby node working mode, and there is no master node. For example, all programs on the nodes in the edge system are stopped.
[0145] Among them, gRPC channel means that the communication between the central system and the edge device adopts the gRPC framework, and the protocol is HTTP / 2 (Hypertext Transfer Protocol (HTTP)). After the central system and the edge device establish communication, the communication channel always exists. It should be understood that the gRPC channel is only an example, and the embodiments of this application do not limit the communication between the central system and the edge device to only use the gRPC channel.
[0146] When the central system detects that the service connection channel with the edge device (or edge system) where the first node is located is interrupted, the central system can send a master upgrade command to the edge device. Correspondingly, the second node receives the master upgrade command.
[0147] It should be understood that when there are multiple nodes in the standby node working mode in the edge system, the central system can send a master upgrade command to any of the nodes.
[0148] The upgrade command is used to notify the switch from the standby node working mode to the main node working mode, that is, the upgrade command is used to indicate the switch to the main node working mode, or in other words, the upgrade command is used to indicate the original standby node to switch to the main node working mode. It should be understood that the upgrade command is only a name made to distinguish different functions, and its naming does not limit the protection scope of the embodiments of the present application. The upgrade command can also be called a switching instruction or a forced upgrade command or a forced command, or for the main node, the upgrade command can also be replaced by a downgrade command. In future protocols, the names used to represent the same function will fall within the protection scope of the embodiments of the present application. The following text is expressed as the upgrade command for unification.
[0149] The central system sends a master upgrade command to the second node, or in other words, the central system sends a command to the second node to switch itself from a standby node to a master node. After the second node receives the master upgrade command, it switches from a standby node to a master node according to the master upgrade command. For example, after the application is started, the edge device can actively establish a gRPC connection with the central system. After the gRPC channel is successfully established, the master upgrade process ends.
[0150] Optionally, in the embodiment of the present application, detection may also be performed between nodes.
[0151] For example, the first node monitors the connection status between the first node and the second node; when it is determined that the connection between the first node and the second node is interrupted or connected, the current working mode of the first node is maintained.
[0152] For another example, the second node monitors the connection status between the second node and the first node; when it is determined that the connection between the second node and the first node is interrupted or connected, the current working mode of the second node is maintained.
[0153] It should be understood that regardless of whether the connection between the first node and the second node fails, no processing is performed on either the first node in the master node working mode or the second node in the backup node working mode, or both maintain the current mode.
[0154] In the embodiment of the present application, detection between nodes, such as heartbeat detection, is combined with detection between nodes and central systems (such as gateways) to jointly determine whether the master node needs to be downgraded, thereby avoiding the dual-master problem. In addition, the node determines whether to downgrade based on the connection between the node and the central system, so even if a hardware failure occurs (such as a physical host network card failure or a physical host failure or a network device failure, etc.), or the master node or the backup node cannot detect the heartbeat of the other end due to an internal software failure (a failure caused by factors other than the network card, network, etc.), there will be no misjudgment that causes the dual-master problem.
[0155] On the contrary, if the node detects that the connection between the nodes fails, and the standby node is promoted to the master node, then a dual-master problem may occur. For example, a hardware failure (such as a physical host network card failure or a physical host failure or a network device failure, etc.) or a software failure (such as an internal software failure caused by factors other than a network card or a network) may cause the node to detect that the connection between the nodes fails. In this case, if the standby node is promoted to the master node, then two master nodes (i.e., a dual-master problem) may appear: a node that is itself in the master node state, and a node that is promoted from a standby node to a master node. Therefore, in an embodiment of the present application, after the node detects that the connection between the nodes fails, no matter whether the node is a master node or a standby node, no action is taken to avoid the dual-master problem.
[0156] Optionally, the timing of the detection between nodes is not limited in the embodiment of the present application. The following mainly takes the first node detection as an example for exemplary description.
[0157] In a possible implementation, the first node may periodically detect the connection with the second node. In other words, the first node may periodically detect the connection with the second node. For example, after the system is started, the first node may periodically detect the connection with the second node.
[0158] For example, the first node periodically detects the connection with the second node according to a second preset time.
[0159] The second preset time may be, for example, a configured duration; or, the second preset time may be a predefined duration, such as a duration predefined by a protocol or predefined by a central system; or, the second preset time may be a duration determined based on historical detection conditions. There is no limitation on this. The second preset time and the second preset time may be the same or different, and the two may be related or not related, and there is no limitation on this.
[0160] For example, the second preset time may be one minute, that is, the first node may detect the connection with the second node every one minute.
[0161] It should be understood that the first node may also detect the connection with the second node irregularly, which is not limited in the embodiment of the present application.
[0162] Optionally, the embodiments of the present application do not limit the method of detection between nodes.
[0163] One possible implementation is to detect the connection between nodes by sending messages (such as heartbeat signals). For example, as long as the first node can detect the heartbeat of the second node, it can be considered that the connection between the first node and the second node is normal. When no heartbeat channel can be connected, it can be considered that the connection between the first node and the second node is abnormal.
[0164] In another possible implementation, the first node may detect whether the connection with the second node is normal by pinging the gateway IP address.
[0165] For example, if the ping command result returns 0, the connection between the first node and the second node is normal; if the ping command result returns other values, the connection between the first node and the second node fails (or the connection is interrupted).
[0166] For example, the relevant parameters of the ping command may include but are not limited to: specifying the number of consecutive executions, the interval between each ping execution, and the execution timeout.
[0167] The specified number of consecutive executions may, for example, represent the number of consecutive executions, such as the number of consecutive executions detected by pinging the gateway IP address. The specified number of consecutive executions may be configured or predefined, and there is no limitation on this. For example, the number of consecutive executions may be set to B, where B is an integer greater than 1 or equal to 1. For example, if B is 5, the number of consecutive executions is 5. B and A may be the same or different, and may or may not be related, and there is no limitation on this.
[0168] The interval time for each ping execution, for example, can represent the time interval between two adjacent ping executions, such as the time interval between two adjacent detections by pinging the gateway IP address. The interval time for each ping execution can be configured or predefined, and there is no limitation on this. For example, the interval time for each ping execution can be set to t1 by default, where t1 is a number greater than 0. For example, if t1 is 1 second, the interval time for each ping execution is 1 second. t1 and T1 can be the same or different, and the two can be related or not related, and there is no limitation on this.
[0169] The execution timeout may, for example, represent the timeout for executing ping. The execution timeout may be configured or predefined, and there is no limitation on this. For example, the execution timeout may be set to t2 by default, where t2 is a number greater than 0. For example, if t2 is 4 seconds, the execution timeout is 4 seconds. t2 and T2 may be the same or different, and may or may not be related, and there is no limitation on this.
[0170] It should be understood that the above method is only an exemplary description, and any method that can enable the node to detect the connection between the nodes falls within the protection scope of the embodiments of the present application. For example, the nodes can also determine whether the connection between the nodes is normal by detecting the heartbeat channel between the nodes, such as by sending a heartbeat signal to detect the heartbeat channel between the nodes.
[0171] It should also be understood that there is no strict order between the various steps. For example, step 320 and step 330 are before step 310, that is, the second node can first receive the upgrade command from the central system and perform corresponding processing according to the upgrade command. Alternatively, step 310 is before step 320 and step 330, that is, the first node can also first perform corresponding processing according to the connection status between the first node and the central system.
[0172] In the above method 300, it is assumed that the first node and the second node currently work in the same mode. For the sake of generality, the following description will be made by taking node #1 as an example.
[0173] Figure 4 4 is a schematic block diagram of a node control method 400 provided in an embodiment of the present application. The method 400 may include the following steps.
[0174] 410, Node #1 detects the connection with the central system.
[0175] For example, node #1 may be a master node, or in other words, node #1 is in a master node working mode; or node #1 may be a backup node, or in other words, node #1 is in a backup node working mode.
[0176] It should be understood that when node #1 is a standby node, node #1 may not need to detect the connection with the central system, and there is no limitation to this.
[0177] In a possible implementation, node #1 detects the connection with the gateway. Specifically, reference may be made to the description of the first node detecting the connection with the gateway in the above method 300, which will not be repeated here.
[0178] 420. When node #1 determines that it is in the master node working mode and detects that the connection between itself and the central system is interrupted, it switches to the standby node working mode.
[0179] In one case, node #1 is the master node. If node #1 detects a connection failure with the central system, or node #1 detects a connection interruption with the central system, then node #1 switches from the master node working mode to the backup node working mode, or node #1 switches to the backup node. For example, node #1 can stop the application such as the program or database on node #1.
[0180] In another case, node #1 is a standby node. If node #1 detects a connection failure with the central system, or node #1 detects a connection interruption with the central system, then node #1 remains in the standby node working mode, or node #1 remains the standby node unchanged.
[0181] 430. When node #1 determines that it is in the standby node working mode, it listens to commands from the central system and switches to the master node working mode upon receiving the master upgrade command from the central system. The master upgrade command is used to notify the switch from the standby node working mode to the master node working mode.
[0182] When node #1 does not detect a connection failure with the central system, or in other words, when the connection between node #1 and the central system is not disconnected, node #1 may receive a master upgrade command issued by the central system.
[0183] In a possible implementation, when the central system detects that the service connection channel with the edge device (or edge system) where node #1 is located is interrupted, the central system may send a master upgrade command to the edge device through the management channel.
[0184] It can be understood that the central system can determine whether to send the upgrade command based on business conditions.
[0185] For example, the central system can detect whether the connection with the node of the edge device (such as the node currently in the master node working mode) is normal. In the case where the central system detects that the connection with the node currently in the master node working mode is interrupted, the central system can send a master upgrade command to the node currently in the standby node working mode.
[0186] Regarding the detection method between the central system and the nodes, please refer to the description of method 300, which will not be repeated here.
[0187] When the central system detects that the service connection channel with the edge device (or edge system) where node #1 is located is interrupted, the central system can send a master upgrade command to the edge device. Correspondingly, the node of the edge device receives the master upgrade command.
[0188] In one case, node #1 is the master node, or node #1 is in the master node working mode. In this case, since the service connection channel of the edge device (or edge system) where node #1 is located has been interrupted, that is, all programs on node #1 have been stopped or it can be understood that node #1 is in the standby node working mode, node #1 will not receive the master upgrade command.
[0189] In another case, node #1 is a standby node, or in other words, node #1 is in standby node working mode. In this case, the central system sends a master upgrade command to node #1, or in other words, the central system sends a command to node #1 to switch itself from a standby node to a master node. After node #1 receives the master upgrade command, it switches from a standby node to a master node according to the master upgrade command. For example, after the application is started, the edge device can actively establish a gRPC connection with the central system. After the gRPC channel is successfully established, the master upgrade process ends.
[0190] In an embodiment of the present application, on the one hand, connectivity detection can be performed. Through the connectivity detection between the node and the central system (such as the gateway), it is determined whether the node needs to be downgraded (that is, the original master node is downgraded to a standby node), thereby avoiding the dual-master problem. In this way, not only can the occurrence of dual masters be avoided, but also the situation where the network is unusable after the switch can be avoided, reducing the ineffective switching time consumption. On the other hand, business linkage detection can be performed. By integrating the arbitration capability into the central system, the problem of no master can be avoided. For example, the central system can issue a master upgrade command to the node in the standby node working mode, so that the original standby node switches to the master node working mode. Thus, there is no need to add a new arbitration node, but by integrating the switching capability into the central system, not only can the extra waste of resources be reduced, but also the problem of no master can be avoided.
[0191] It should be understood that the above steps are only examples, and the embodiments of the present application are not limited thereto. For example, when the current working mode of node #1 is the standby node working mode, only step 430 may be performed. For another example, when the current working mode of node #1 is the master node working mode, only steps 410 and 420 may be performed.
[0192] It should also be understood that there is no strict order between node #1 determining whether it is in the master node working mode or the backup node working mode and node #1 detecting whether the connection with the central system is interrupted. For example, node #1 may first determine whether it is in the master node working mode or the backup node working mode, and then detect whether the connection with the central system is interrupted; or node #1 may first detect whether the connection with the central system is interrupted, and then determine whether it is in the master node working mode or the backup node working mode.
[0193] Optionally, method 400 may further include step 401 .
[0194] 401, node #1 detects the connection with node #2.
[0195] For example, node #1 is a primary node and node #2 is a backup node; or, node #1 is a backup node and node #2 is a primary node.
[0196] It should be understood that regardless of whether the connection between node #1 and node #2 fails, node #1 and node #2 do not perform any processing, or both maintain the current mode.
[0197] Regarding the detection between nodes, please refer to the description of method 300 above, which will not be repeated here.
[0198] It should be understood that there is no order relationship between step 401 and step 410. For example, after the system is started, node #1 can periodically detect the connection with node #2, and node #1 can periodically detect the connection with the gateway.
[0199] In the above, in combination with method 300 and method 400, a solution of combining connectivity detection (such as step 410 and step 420) with service linkage detection (such as step 430) is introduced. This solution can solve both the no master problem and the dual master problem. Figure 5 and Figure 6 The solutions of connectivity detection and service linkage detection are introduced respectively. It should be understood that the solutions described in method 500 and method 600 can be used in combination (as described in method 300 or method 400), or can be used separately, which is not limited.
[0200] Figure 5 5 is a schematic block diagram of a node control method 500 provided in an embodiment of the present application. The method 500 may include the following steps.
[0201] 510, Node #1 detects the connection with the central system.
[0202] For example, node #1 may be a master node, or in other words, node #1 is in a master node working mode; or node #1 may be a backup node, or in other words, node #1 is in a backup node working mode.
[0203] The timing and manner of detection between the node and the central system can refer to the description of method 300 and will not be repeated here.
[0204] 520. When node #1 detects that the connection with the central system is interrupted, if it is determined that node #1 is in the main node working mode, it switches to the backup node working mode; if it is determined that node #1 is in the backup node working mode, it maintains the backup node working mode.
[0205] In a possible implementation, node #1 can detect the connection with the gateway. That is, when node #1 detects that the connection with the gateway is interrupted, if node #1 is in the main node working mode, it switches to the standby node working mode; if node #1 is in the standby node working mode, it maintains the standby node working mode.
[0206] Regarding the detection scheme between the node and the gateway, please refer to the description in method 300, which will not be repeated here.
[0207] In one case, node #1 is the master node, or node #1 is in the master node working mode. If node #1 detects a connection failure with the central system, or node #1 detects that the connection between the central system is interrupted, then node #1 switches from the master node working mode to the standby node working mode, or node #1 switches to the standby node. For example, node #1 can stop the application such as the program and database on node #1.
[0208] In another case, node #1 is a standby node, or node #1 is in a standby node working mode. If node #1 detects a connection failure with the central system, or node #1 detects a connection interruption with the central system, then node #1 remains in the standby node working mode, or node #1 remains in the standby node mode.
[0209] In an embodiment of the present application, the connectivity detection between the node and the central system (such as a gateway) is used to determine whether the node needs to be downgraded (i.e., the original master node is downgraded to a backup node), thereby avoiding the dual-master problem. For example, in the case of a connectivity detection failure, that is, when the connection between the master node detection and the central system fails or is interrupted, the node can be actively downgraded, that is, the master node can be actively downgraded to a backup node. In this way, not only can the occurrence of dual masters be avoided, but also the situation where the network is found to be unusable after the switch can be avoided, reducing the ineffective switching time consumption.
[0210] Optionally, method 500 may further include step 501 .
[0211] 501, node #1 detects the connection with node #2.
[0212] It should be understood that regardless of whether a failure occurs in the connection between node #1 and node #2, node #1 and node #2 do not take any action, or in other words, both maintain the current mode.
[0213] Regarding the scheme for detection between nodes, please refer to the description in method 300, which will not be repeated here.
[0214] It should be understood that there is no order relationship between step 501 and step 510. For example, after the system is started, node #1 can periodically detect the connection with node #2, and node #1 can periodically detect the connection with the central system.
[0215] It should also be understood that in method 500, there is no limitation on the triggering conditions for promotion to master, such as when a standby node is promoted to master. Any solution that enables a master node to exist in the edge system after the master node is demoted to a standby node (such as a standby node being promoted to a master node) is applicable to the embodiments of the present application.
[0216] Based on the above technical solution, the connectivity detection between the node and the central system is used to determine whether the node needs to be downgraded (that is, the original master node is downgraded to a backup node), thereby avoiding the dual-master problem. Alternatively, the detection between nodes and the detection between the node and the central system are combined to jointly determine whether the node needs to be downgraded, thereby avoiding the dual-master problem. For example, in the case of a central system connectivity detection failure, that is, when the connection between the master node detection and the central system fails or is interrupted, the node can be actively downgraded, that is, the master node can be actively downgraded to a backup node. In this way, not only can the occurrence of dual masters be avoided, but also the situation where the network is unusable after the switch can be avoided, reducing the ineffective switching time consumption. By way of example, the embodiments of the present application can also be used in MEC technology, so as to solve the "dual master" problem that may occur in MEC technology.
[0217] The above describes the connectivity detection mechanism in conjunction with method 500, that is, the detection of connectivity between a node and a central system, and the following describes the service linkage detection in conjunction with method 600. It should be understood that the solutions described in method 500 and method 600 can be used in combination or separately, and this is not limited in the embodiments of the present application.
[0218] Figure 6 6 is a schematic block diagram of a node control method 600 provided in an embodiment of the present application. The method 600 may include the following steps.
[0219] 610, node #1 receives a master upgrade command from the central system, where the master upgrade command is used to notify the switch from the standby node working mode to the master node working mode.
[0220] For example, node #1 may be a master node, or in other words, node #1 is in a master node working mode; or node #1 may be a backup node, or in other words, node #1 is in a backup node working mode.
[0221] For the central system and the upgrade command, please refer to the description in method 300, which will not be repeated here.
[0222] In a possible implementation, when the central system detects that the service connection channel with the edge device (or edge system) where node #1 is located is interrupted, the central system may send a master upgrade command to the edge device through the management channel.
[0223] It can be understood that the central system can determine whether to send the upgrade command based on business conditions.
[0224] For example, the central system may detect whether the connection with the node of the edge device (such as node #1) is normal.
[0225] Regarding the timing and method of detection between the central system and the nodes, please refer to the description in method 300 and will not be repeated here.
[0226] 620. When node #1 determines that it is in the standby node working mode, it switches to the master node working mode.
[0227] For example, when node #1 determines that it is in the master node working mode, it switches to the backup node working mode. It is understandable that in some cases, the central system can decide to switch the master and backup nodes in the edge system. For example, in the event of a software failure, the original master and backup nodes need to be switched, that is, the central system can be connected to the two nodes, and the central system sends a master upgrade command (or it can also be called a master upgrade command) to the two nodes, so that the node originally in the master node working mode switches to the backup node working mode, and the node originally in the backup node working mode switches to the master node working mode.
[0228] In one possible scenario, the central system can only connect to a certain node (such as node #1, and node #1 is in standby node working mode). In this case, the central system sends a master upgrade command to the node, or in other words, the central system sends a command to the node to switch itself from a standby node to a master node. For example, after the application is started, the edge device can actively establish a gRPC connection with the central system. After the gRPC channel is successfully established, the master upgrade process ends.
[0229] In another possible situation, the central system can be connected to two nodes (such as node #1 and node #2). In this case, the central system sends a master upgrade command (or a switch command) to the two nodes, or in other words, the central system sends a master upgrade command to the two nodes: a command to switch the original master node to a standby node and the original standby node to the master node. The dual-machine monitoring on the node can be operated according to its own master-standby situation. For example, if the node is the master node, the node switches to the standby node working mode; if the node is the standby node, the node switches to the master node working mode. For example, after the edge device is forced to switch successfully, the edge device can actively establish a gRPC connection with the central system. After the gRPC channel is successfully established, the forced switching ends. Regarding this situation, a possible scenario is that the software fails and the original master and standby nodes need to be switched, that is, the central system can be connected to the two nodes, and the central system sends a master upgrade command to the two nodes, so that the original master node is switched to the standby node, and the original standby node is switched to the master node.
[0230] In an embodiment of the present application, arbitration capability can be integrated into the central system. For example, the central system can decide whether to switch (that is, the original master node is switched to the backup node, and the original backup node is switched to the master node) based on the failure of the service channel, rather than detecting based on the connectivity between the arbitration and the edge device. Thus, by integrating the switching capability into the central system, additional resource waste can be reduced. In addition, by deciding whether to switch the master and backup nodes based on the failure of the service channel, unnecessary switching can be reduced and switching time can be saved. By way of example, embodiments of the present application can also be used in MEC technology, thereby solving the "dual master" problem and the "masterless" problem that may arise in MEC technology.
[0231] Optionally, method 600 may further include step 601 .
[0232] 601, node #1 detects the connection with node #2.
[0233] Regarding the timing and method of detection between nodes, please refer to the description in method 300, which will not be repeated here.
[0234] Based on the embodiments of the present application, business linkage detection can be performed, that is, the heartbeat between nodes is interrupted, and the nodes cannot perceive the status of the other end, then the switching can be determined according to the master upgrade command issued by the central system (that is, the original master node is switched to the backup node, and the original backup node is switched to the master node). In other words, the heartbeat between nodes is interrupted, and the nodes cannot perceive the status of the other end. If the business connection channel between the central system and the edge device is interrupted, the central system can send a master upgrade command to the edge device through the management channel.
[0235] In the above, the solution of combining connectivity detection with service linkage detection is introduced in combination with methods 300 and 400, the solution of using connectivity detection alone is introduced in combination with method 500, and the solution of using service linkage detection alone is introduced in combination with method 600. Figure 7 , taking the central system as the central VNFM device, the edge device as the edge VNFM device, and the connection between the node detection and the gateway as an example, an exemplary description is given. It should be understood that what is not described in detail in method 700 can refer to the description in methods 300 to 600.
[0236] Figure 7 A schematic diagram of a method 700 for node control applicable to an embodiment of the present application is shown. Assume that the edge VNFM device includes node #1 and node #2, wherein one of node #1 and node #2 is a master node or is in a master node working mode, and the other is a standby node or is in a standby node working mode. The method 700 may include the following steps.
[0237] 710, node #1 detects whether the connection with the gateway is normal.
[0238] Node #1 can detect the connection with the gateway to determine whether the connection with the central system is normal.
[0239] In a possible implementation, node #1 may periodically detect the connection with the gateway. In other words, node #1 may periodically detect the connection with the gateway. For example, after the system is started, node #1 may periodically detect the connection with the gateway.
[0240] For example, node #1 periodically detects the connection with the gateway according to a first preset time.
[0241] It should be understood that node #1 may also detect the connection with the gateway irregularly, which is not limited in the embodiment of the present application.
[0242] Regarding the first preset time, please refer to the description in method 300, which will not be repeated here.
[0243] In a possible implementation, node #1 can detect whether the connection with the gateway is normal by pinging the gateway IP address.
[0244] For example, if the ping command result returns 0, the connection between node #1 and the gateway is normal; if the ping command result returns other values, the connection between node #1 and the gateway is faulty (or disconnected).
[0245] For example, the relevant parameters of the ping command may include but are not limited to: specifying the number of consecutive executions, the interval between each ping execution, and the execution timeout.
[0246] In another possible implementation, node #1 may detect whether the connection with the gateway is normal by sending a message.
[0247] Regarding the detection between the node and the gateway, reference may be made to the description in method 300 and will not be repeated here.
[0248] 720. If the connection between node #1 and the gateway fails, node #1 is downgraded.
[0249] Assume that node #1 detects a connection failure (or disconnection) between the node and the gateway.
[0250] In one possible case, node #1 itself is a standby node, or in other words, node #1 is in a standby node working mode. In this case, if node #1 detects a connection failure between the node and the gateway, node #1 remains in the standby node working mode.
[0251] In another possible situation, node #1 itself is the master node, or in other words, node #1 is in the master node working mode. In this case, node #1 detects a connection failure between the node and the gateway, and node #1 switches to the standby node working mode. For example, if node #1 stops, all applications such as programs and databases on node #1 are stopped. For example, in this case, both node #1 and node #2 are standby nodes, and the edge VNFM device forms a "masterless" state. In this case, the central VNFM device can forcibly upgrade the node to the master node according to the business situation, and then upgrade node #2 to the master node.
[0252] 730 , node #1 detects whether the connection with node #2 is normal.
[0253] In a possible implementation, node #1 may periodically detect the connection with node #2. In other words, node #1 may periodically detect the connection with node #2. For example, after the system is started, node #1 may periodically detect the connection with node #2.
[0254] For example, node #1 periodically detects the connection with node #2 according to a second preset time.
[0255] Regarding the second preset time, please refer to the description in method 300, which will not be repeated here.
[0256] In a possible implementation, node #1 can detect whether the connection with node #2 is normal by pinging the gateway IP address.
[0257] For example, if the ping command result returns 0, the connection between node #1 and node #2 is normal; if the ping command result returns other values, the connection between node #1 and node #2 is faulty.
[0258] For example, the relevant parameters of the ping command may include but are not limited to: specifying the number of consecutive executions, the interval between each ping execution, and the execution timeout.
[0259] For the relevant parameters of the ping command, please refer to the description in method 300, which will not be repeated here.
[0260] 740, Node #1 detects a connection failure between Node #1 and Node #2, and Node #1 remains unchanged.
[0261] Regardless of whether node #1 is in the master node working mode or the standby node working mode, no processing is performed. On the contrary, assuming that node #1 is in the standby node working mode, if node #1 is promoted from the standby node to the master node according to the connection failure between node #1 and node #2, then a dual master problem may occur. For example, a hardware failure (such as a physical host network card failure or a physical host failure or a network device failure, etc.) or a software failure (such as an internal software failure caused by factors other than a network card or a network) may cause node #1 to detect a connection failure between node #1 and node #2. In this case, if node #1 is promoted from a standby node to a master node, then two master nodes (i.e., a dual master problem) may appear: node #2, which is itself in the master node working mode, and node #1, which is promoted from a standby node to a master node. Therefore, in an embodiment of the present application, after node #1 detects a connection failure between node #1 and node #2, no processing is performed regardless of whether node #1 is in the master node working mode or the standby node working mode, so as to avoid a dual master problem. Further, the problem of no master can also be avoided through the indication of the central VNFM device.
[0262] For example, in the case described in method 700, both node #1 and node #2 are standby nodes, and the edge VNFM device is in a "masterless" state. In this case, the central VNFM device can forcibly promote node #2 to the master node according to the business situation.
[0263] 750 , the central VNFM device detects whether the service channel connection with the edge VNFM device is normal.
[0264] When the edge VNFM device is in an "ownerless state", such as the "ownerless state" described in step 720 or step 740, the programs on all nodes are stopped, which will cause the gRPC channel established between the central VNFM device and the edge VNFM device to be forced to be interrupted, and the central VNFM device will receive an "unavailable" error code.
[0265] When the central VNFM device receives the "unavailable" error code, the central VNFM device can detect whether the service channel connection with the edge VNFM device is normal.
[0266] In a possible implementation, the central VNFM device remotely logs in to the node through the SSH command to detect whether the connection with Node #1 or Node #2 is normal. If the SSH command result returns 0, it means that the connection between the central VNFM device and the edge VNFM device node is normal; if the SSH command returns other numbers, it means that the connection between the central VNFM device and the edge VNFM device node is faulty.
[0267] It should be understood that any method that can enable the central VNFM device to detect whether the connection with the node is normal falls within the protection scope of the embodiments of the present application. For example, the central VNFM device can also detect whether the connection with node #1 or node #2 is normal by pinging or other methods.
[0268] When the central VNFM device detects a service channel connection failure with the edge VNFM device, the central VNFM device may also issue a master upgrade command.
[0269] 760. When the central VNFM device detects a service channel connection failure with the edge VNFM device, it issues a master promotion command.
[0270] In one possible situation, the central VNFM device can only connect to a certain node (such as node #1, and node #1 is in standby node working mode). In this case, the central VNFM device sends a master upgrade command to the node, or in other words, the central VNFM device sends a command to the node to switch itself from a standby node to a master node. For example, after the application is started, the edge VNFM device can actively establish a gRPC connection with the central VNFM device. After the gRPC channel is successfully established, the master upgrade process ends.
[0271] In another possible situation, the central VNFM device can be connected to two nodes (such as node #1 and node #2). In this case, the central VNFM device sends a master upgrade command (or a forced command) to the two nodes, or in other words, the central VNFM device sends a command to the two nodes: switching the original master node to a backup node and the original backup node to a master node. The dual-machine monitoring on the node can be operated according to its own master-slave situation. For example, if this node is the master node, this node switches to the backup node working mode; if this node is the backup node, this node switches to the master node working mode. For example, after the edge VNFM device is forced to switch successfully, the edge VNFM device can actively establish a gRPC connection with the central VNFM device. After the gRPC channel is successfully established, the forced switching ends.
[0272] It should be understood that there is no strict order between the steps in method 700. In one example, there is no order relationship between step 710 and step 720, and step 730 and step 740. For example, after the system is started, node #1 regularly performs detection with the gateway, and node #1 regularly performs detection with node #2. In another example, there is no order relationship between step 710 and step 720, and step 750 and step 760.
[0273] It should also be understood that method 700 is mainly illustrated by taking node #1 as an example, and node #2 can also perform the steps described in method 700. In other words, each node in the edge device can perform the steps of method 700.
[0274] It should also be understood that method 700 is illustratively described by taking a central VNFM device and an edge VNFM device as examples, and the embodiments of the present application are not limited thereto. For example, in actual communication, the central system and the edge system are not limited to VNFM devices.
[0275] In some of the above embodiments, an edge system including two nodes is used as an example for illustrative description, and the present application is not limited thereto. For example, the edge system may also include more than two nodes. In addition, when the edge system includes multiple standby nodes, one of the standby nodes may be selected to send a master upgrade command.
[0276] In some of the above embodiments, the node detection and the gateway connection are normal to determine whether the node is connected to the central system. This is an example for illustrative description, and the present application is not limited to this. For example, any method that can determine whether the node is connected to the central system is normal is applicable to the embodiments of the present application.
[0277] Based on the above technical solution, for a node in the master node working mode, when it is detected that the connection between itself and the central system (such as a gateway) is interrupted, a downgrade operation is performed. That is to say, the connectivity detection between the node and the central system is used to determine whether the node needs to be downgraded (that is, the original master node is downgraded to a backup node), thereby avoiding the dual master problem. Alternatively, a connectivity detection is added in addition to the heartbeat detection. If the connectivity detection fails, the downgrade operation is actively performed to avoid the dual master problem. For example, in the case of a connectivity detection failure, that is, when the connection between the master node detection and the central system fails or is interrupted, the node can be actively downgraded, that is, the master node can be actively downgraded to a backup node. In this way, not only can the occurrence of dual masters be avoided, but also the situation where the network is unusable after the switch can be avoided, thereby reducing the ineffective switching time consumption.
[0278] In addition, based on the embodiments of the present application, for the node in the standby node working mode, after receiving the upgrade command from the central system, the upgrade operation is performed. In other words, business linkage detection can be performed, and the arbitration capability can be integrated into the central system. For example, the central system can decide whether the original standby node should be switched to the main node based on the failure of the business channel, rather than detecting it based on the connectivity between the arbitration and the edge device. Thus, by integrating the switching capability into the central system, additional resource waste can be reduced. In addition, deciding whether the main and standby nodes should be switched based on the failure of the business channel can reduce unnecessary switching and save switching time.
[0279] The various embodiments described herein may be independent solutions or may be combined according to internal logic, and these solutions all fall within the protection scope of this application. For example, the solution described in method 500 and the solution described in method 600 may be used alone or in combination, and this is not limited.
[0280] It can be understood that in the above-mentioned method embodiments, the methods and operations implemented by the edge device (or node) can also be implemented by components (such as chips or circuits) that can be used for the edge device (or node), and the methods and operations implemented by the central system (such as a central device) can also be implemented by components (such as chips or circuits) that can be used for the central system (such as a central device).
[0281] Above, combined Figures 3 to 7 The method provided by the embodiment of the present application is described in detail. Figure 8 and Fig. 9 The device provided in the embodiment of the present application is described in detail. It should be understood that the description of the device embodiment corresponds to the description of the method embodiment, so the contents not described in detail can be referred to the method embodiment above, and for the sake of brevity, they will not be repeated here.
[0282] Those skilled in the art should be aware that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is performed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0283] The embodiment of the present application can divide the functional modules of the edge device (or node) or the central system (such as the central device) according to the above method example. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical functional division. There may be other division methods in actual implementation. The following is an example of dividing each functional module corresponding to each function.
[0284] Figure 8 800 is a schematic block diagram of a node control device provided in an embodiment of the present application. The device 800 includes a transceiver unit 810 and a processing unit 820. The transceiver unit 810 can implement corresponding communication functions, and the processing unit 820 is used for data processing. The transceiver unit 810 can also be called a communication interface or a communication unit.
[0285] Optionally, the device 800 may further include a storage unit, which may be used to store instructions and / or data, and the processing unit 820 may read the instructions and / or data in the storage unit so that the communication device implements the aforementioned method embodiment.
[0286] The device 800 can be used to execute the actions executed by the node in the master node working mode in the above method embodiment. In this case, the device 800 can be a node or a component that can be configured on a node. The transceiver unit 810 is used to execute the transceiver-related operations on the node side in the master node working mode in the above method embodiment, and the processing unit 820 is used to execute the processing-related operations on the node side in the master node working mode in the above method embodiment.
[0287] Alternatively, the device 800 may be used to execute the actions executed by the node in the standby node working mode in the above method embodiment, in which case the device 800 may be a node or a component that can be configured on a node. The transceiver unit 810 is used to execute the transceiver-related operations on the node side in the standby node working mode in the above method embodiment, and the processing unit 820 is used to execute the processing-related operations on the node side in the standby node working mode in the above method embodiment.
[0288] Alternatively, the device 800 can be used to execute the actions executed by the central system in the above method embodiment. In this case, the device 800 can be the central system or a component that can be configured in the central system. The transceiver unit 810 is used to execute the transceiver-related operations on the central system side in the above method embodiment, and the processing unit 820 is used to execute the processing-related operations on the central system side in the above method embodiment.
[0289] As a design, the device 800 is used to execute the actions performed by the node in the above embodiment. The processing unit 820 is used to monitor the connection status between the device 800 and the central system when it is determined that the current working mode of the device 800 is the main node working mode, and switch to the backup node working mode when it is determined that the connection between the device 800 and the central system is interrupted; the transceiver unit 810 is used to monitor the command from the central system when it is determined that the current working mode of the device 800 is the backup node working mode, and when receiving the upgrade command sent by the central system, the processing unit 820 is also used to switch to the main node working mode, wherein the upgrade command is used to notify the switch from the backup node working mode to the main node working mode.
[0290] As an example, the edge system also includes a second node, a processing unit 820, and is also used to monitor the connection status between the second node; when it is determined that the connection between the device 800 and the second node is interrupted or connected, the current working mode of the device 800 is maintained.
[0291] As another example, the processing unit 820 is specifically configured to monitor the connection status between the device 800 and a gateway, where the gateway is between the device 800 and the central system.
[0292] As yet another example, a gateway is within an edge system.
[0293] As another example, the processing unit 820 is also used to determine that the current working mode of the device 800 is the main node working mode when it is detected that the device 800 is in an active state, or to determine that the current working mode of the device 800 is the standby node working mode when it is detected that the device 800 is in an inactive state; or to determine that the current working mode of the device 800 is the main node working mode when it is detected that the business application on the device 800 is in a running state, or to determine that the current working mode of the device 800 is the standby node working mode when it is detected that the business application on the device 800 is in a stopped state; or to determine that the current working mode of the device 800 is the main node working mode when it is detected that there is no status mark on the device 800, or to determine that the current working mode of the device 800 is the standby node working mode when it is detected that there is a status mark on the device 800.
[0294] The device 800 can implement the steps or processes executed by the nodes in the methods 300 to 700 according to the embodiments of the present application. The device 800 may include a Figure 3 Methods 300 to Figure 7 The units of the method executed by the nodes in the method 700 in the apparatus 800 are respectively for implementing Figure 3 Methods 300 to Figure 7The corresponding process of method 700 in FIG.
[0295] Wherein, when the device 800 is used to perform Figure 3 When the method 300 is performed, the transceiver unit 810 can be used to execute step 320 in the method 300, and the processing unit 820 can be used to execute steps 310 and 330 in the method 300.
[0296] When the device 800 is used to perform Figure 4 When the method 400 is performed, the transceiver unit 810 can be used to execute step 430 in the method 400, and the processing unit 820 can be used to execute steps 410, 420, and 401 in the method 400.
[0297] When the device 800 is used to perform Figure 5 When the method 500 is executed, the processing unit 820 can be used to execute steps 510, 520, and 501 in the method 500.
[0298] When the communication device 800 is used to perform Figure 6 When the method 600 is performed, the transceiver unit 810 can be used to execute step 610 in the method 600, and the processing unit 820 can be used to execute steps 620 and 601 in the method 600.
[0299] When the communication device 800 is used to perform Figure 7 When the method 700 is performed, the transceiver unit 810 can be used to execute step 760 in the method 700, and the processing unit 820 can be used to execute steps 710, 720, 730, and 740 in the method 700.
[0300] It should be understood that the specific process of each unit executing the above corresponding steps has been described in detail in the above method embodiment, and for the sake of brevity, it will not be repeated here.
[0301] As another design, the device 800 is used to execute the actions executed by the central system in the above embodiment. The processing unit 820 is used to detect the service channel of the edge system, and the edge system includes a first node and a second node; the transceiver unit 810 is used to send a master upgrade command to the first node and / or the second node when a service channel of the edge system fails, wherein the master upgrade command is used to notify the switching from the standby node working mode to the master node working mode.
[0302] As an example, the processing unit 820 is specifically used to: detect whether the connection with the first node or the second node is normal; when it is detected that the connection with the first node or the second node is interrupted, determine that the service channel of the edge system fails.
[0303] As another example, the processing unit 820 is specifically used to detect whether the connection with the first node or the second node is normal by remotely logging into the node through a secure shell protocol SSH command.
[0304] The device 800 can implement the steps or processes executed by the central system in the methods 300 to 700 according to the embodiments of the present application. The device 800 may include a method for executing Figure 3 Methods 300 to Figure 7 The units of the method performed by the central system in the method 700 in the embodiment. In addition, the units in the device 800 and the above-mentioned other operations and / or functions are respectively for implementing Figure 3 Methods 300 to Figure 7 The corresponding process of method 700 in FIG.
[0305] Wherein, when the device 800 is used to perform Figure 3 When the method 300 is performed, the transceiver unit 810 can be used to execute step 320 in the method 300, and the processing unit 820 can be used to execute step 320 in the method 300.
[0306] When the device 800 is used to perform Figure 4 When the method 400 is performed, the transceiver unit 810 can be used to execute step 430 in the method 400, and the processing unit 820 can be used to execute step 410 in the method 400.
[0307] When the device 800 is used to perform Figure 6 When the method 600 in FIG. 6 is performed, the transceiver unit 810 may be used to execute step 610 in the method 600 .
[0308] When the device 800 is used to perform Figure 7 When the method 700 is performed, the transceiver unit 810 can be used to execute step 760 in the method 700, and the processing unit 820 can be used to execute step 750 in the method 700.
[0309] It should be understood that the specific process of each unit executing the above corresponding steps has been described in detail in the above method embodiment, and for the sake of brevity, it will not be repeated here.
[0310] As another design, the device 800 is used to execute the actions performed by the node control system in the above embodiment. The node control system includes: a first node, a second node, and a central system, the first node and the second node are located in the edge system, and the first node and the second node are both connected to the central system, the current working mode of the first node is the main node working mode, and the current working mode of the second node is the standby node working mode, the processing unit 820 is used to monitor the connection status between the first node and the central system, and when the connection between the first node and the central system is interrupted, the first node is switched to the standby node working mode; the transceiver unit 810 is used to send a master upgrade command to the second node when the connection between the central system and the first node is interrupted, and the master upgrade command is used to notify the switch from the standby node working mode to the main node working mode; the processing unit 820 is also used to switch the second node to the main node working mode according to the master upgrade command.
[0311] As an example, the processing unit 820 is further used to monitor the connection status between the first node and the second node; when it is determined that the connection between the first node and the second node is interrupted or connected, the current working mode of the first node and / or the second node is maintained.
[0312] As another example, the processing unit 820 is specifically configured to monitor the connection status between the first node and a gateway, where the gateway is between the first node and the central system.
[0313] As yet another example, a gateway is located within an edge system.
[0314] The device 800 can implement the steps or processes executed by the node control system in the methods 300 to 700 according to the embodiments of the present application. The device 800 may include a method for executing Figure 3 Methods 300 to Figure 7 The node control system in the method 700 is a unit of the method executed by the node control system in the method 700. In addition, each unit in the device 800 and the above-mentioned other operations and / or functions are respectively for implementing Figure 3 Methods 300 to Figure 7 The corresponding process of method 700 in FIG.
[0315] The processing unit 820 in the above embodiment can be implemented by at least one processor or processor-related circuit. The transceiver unit 810 can be implemented by a transceiver or a transceiver-related circuit. The transceiver unit 810 can also be called a communication unit or a communication interface. The storage unit can be implemented by at least one memory.
[0316] It should be understood that the transceiver unit 810 in the device 800 may correspond to Fig. 9 The transceiver 930 in the device 900 shown in FIG. 8 may correspond to the processing unit 820 in the device 800 Fig. 9The processor 910 in the device 900 is shown in FIG.
[0317] Fig. 9 9 is a schematic block diagram of a node control device 900 provided in an embodiment of the present application. As shown in the figure, the device 900 includes a processor 910, the processor 910 is coupled to a memory 920, the memory 920 is used to store computer programs or instructions and / or data, and the processor 910 is used to execute the computer programs or instructions and / or data stored in the memory 920, so that the method in the above method embodiment is executed.
[0318] Optionally, the device 900 includes one or more processors 910.
[0319] Alternatively, if Fig. 9 As shown, the communication device 900 may further include a memory 920 .
[0320] Optionally, the device 900 may include one or more memories 920 .
[0321] Optionally, the memory 920 may be integrated with the processor 910, or may be separately provided. That is, the processor 910 and the memory 920 may be combined into a processing device, and the processor 910 is used to execute the program code stored in the memory 920 to implement the above functions. In specific implementation, the memory 920 may also be integrated into the processor 910, or may be independent of the processor 910.
[0322] Alternatively, if Fig. 9 As shown, the device 900 may also include a transceiver 930, which is used to receive and / or send signals. For example, the processor 910 is used to control the transceiver 930 to receive and / or send signals. The transceiver 930 may include an input interface (or receiver) and an output interface (or transmitter). The transceiver may also be called a communication interface. The transceiver may further include an antenna, and the number of antennas may be one or more.
[0323] As a solution, the device 900 is used to implement the operations performed by the node in the above method embodiment. In a possible design, the device 900 can be the node in the above method embodiment, or a chip for implementing the functions of the node in the above method embodiment.
[0324] For example, the processor 910 is used to implement processing-related operations performed by the node in the above method embodiment, and the transceiver 930 is used to implement sending and receiving-related operations performed by the node in the above method embodiment.
[0325] Specifically, the device 900 may correspond to the embodiment of the present application. Figures 3 to 7The device 900 may include a node for executing Figure 3 Methods 300 to Figure 7 The units of the method executed by the node in the method 700 in the device 900 are respectively for implementing Figure 3 Methods 300 to Figure 7 It should be understood that the specific process of each unit executing the above corresponding steps has been described in detail in the above method embodiment, and for the sake of brevity, it will not be repeated here.
[0326] As another solution, the communication device 900 is used to implement the operations performed by the central system in the above method embodiment. In a possible design, the device 900 can be the central system in the above method embodiment, or a chip for implementing the functions of the central system in the above method embodiment.
[0327] For example, the processor 910 is used to implement the processing-related operations performed by the central system in the above method embodiment, and the transceiver 930 is used to implement the sending and receiving-related operations performed by the central system in the above method embodiment.
[0328] Specifically, the device 900 may correspond to the embodiment of the present application. Figures 3 to 7 The central system (or central device) in the device 900 may include a device for executing Figure 3 Methods 300 to Figure 7 The units of the method performed by the central system in the method 700 in the device 900 are respectively for implementing Figure 3 Methods 300 to Figure 7 It should be understood that the specific process of each unit executing the above corresponding steps has been described in detail in the above method embodiment, and for the sake of brevity, it will not be repeated here.
[0329] As another solution, the communication device 900 is used to implement the operations performed by the node control system in the above method embodiment. In a possible design, the device 900 can be the node control system in the above method embodiment, or it can be a chip for implementing the functions of the node control system in the above method embodiment.
[0330] For example, the processor 910 is used to implement the processing-related operations performed by the node control system in the above method embodiment, and the transceiver 930 is used to implement the sending and receiving-related operations performed by the node control system in the above method embodiment.
[0331] Specifically, the device 900 may correspond to the embodiment of the present application. Figures 3 to 7The node control system (such as including the first node, the second node, and the central system) in the apparatus 900 may include a Figure 3 Methods 300 to Figure 7 The node control system in the method 700 in the method 700 is a unit of the method executed. In addition, each unit in the device 900 and the above-mentioned other operations and / or functions are respectively for implementing Figure 3 Methods 300 to Figure 7 It should be understood that the specific process of each unit executing the above corresponding steps has been described in detail in the above method embodiment, and for the sake of brevity, it will not be repeated here.
[0332] An embodiment of the present application also provides a computer-readable storage medium on which computer instructions for implementing the method executed by the node in the above method embodiment or the method executed by the central system are stored.
[0333] For example, when the computer program is executed by a computer, the computer can implement the method executed by the node in the above method embodiment, or the method executed by the central system.
[0334] An embodiment of the present application also provides a computer program product comprising instructions, which, when executed by a computer, enables the computer to implement the method executed by the node in the above method embodiment, or the method executed by the central system.
[0335] An embodiment of the present application also provides an edge system, which includes the nodes in the above embodiments, such as the first node and the second node (or node #1 and node #2).
[0336] An embodiment of the present application also provides a node control system, which includes the nodes in the above embodiments (such as the first node and / or the second node) and a central system.
[0337] Those skilled in the art can clearly understand that, for the sake of convenience and brevity of description, the explanation of the relevant contents and beneficial effects in any of the communication devices provided above can refer to the corresponding method embodiments provided above, and will not be repeated here.
[0338] In an embodiment of the present application, a terminal device or a network device may include a hardware layer, an operating system layer running on the hardware layer, and an application layer running on the operating system layer. Among them, the hardware layer may include hardware such as a central processing unit (CPU), a memory management unit (MMU), and a memory (also called main memory). The operating system of the operating system layer may be any one or more computer operating systems that implement business processing through processes, such as Linux operating system, Unix operating system, Android operating system, iOS operating system, or Windows operating system. The application layer may include applications such as browsers, address books, word processing software, and instant messaging software.
[0339] The embodiments of the present application do not specifically limit the specific structure of the execution subject of the method provided in the embodiments of the present application, as long as it is possible to communicate according to the method provided in the embodiments of the present application by running a program that records the code of the method provided in the embodiments of the present application. For example, the execution subject of the method provided in the embodiments of the present application may be a terminal device or a network device, or a functional module in the terminal device or the network device that can call and execute a program.
[0340] Various aspects or features of the present application may be implemented as a method, apparatus, or article of manufacture using standard programming and / or engineering techniques. The term "article of manufacture" as used herein may encompass a computer program accessible from any computer-readable device, carrier, or media.
[0341] The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or a data center that includes one or more available media. Available media (or computer-readable media) may include, but are not limited to: magnetic media or magnetic storage devices (e.g., floppy disks, hard disks (such as mobile hard disks), magnetic tapes), optical media (e.g., optical disks, compact discs (CDs), digital versatile discs (DVDs), etc.), smart cards and flash memory devices (e.g., erasable programmable read-only memory (EPROM), cards, sticks or key drives, etc.), or semiconductor media (e.g., solid state disks (SSDs), etc.), USB flash drives, read-only memories (ROMs), random access memories (RAMs), and other media that can store program codes.
[0342] The various storage media described herein may represent one or more devices and / or other machine-readable media for storing information. The term "machine-readable medium" may include, but is not limited to, wireless channels and various other media capable of storing, containing and / or carrying instructions and / or data.
[0343] It should be understood that the processor mentioned in the embodiments of the present application may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0344] It should also be understood that the memory mentioned in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM). For example, RAM can be used as an external cache. By way of example and not limitation, RAM may include the following forms: static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct rambus RAM (DR RAM).
[0345] It should be noted that when the processor is a general-purpose processor, DSP, ASIC, FPGA or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, the memory (storage module) can be integrated into the processor.
[0346] It should also be noted that the memory described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0347] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0348] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to implement the solution provided by this application.
[0349] In addition, each functional unit in each embodiment of the present application may be integrated into one unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0350] In the above embodiments, all or part of them may be implemented by software, hardware, firmware or any combination thereof.
[0351] When software is used for implementation, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loading and executing computer program instructions on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable devices. For example, the computer can be a personal computer, a server, or a network device, etc. The computer instruction can be stored in a computer-readable storage medium, or transmitted from a computer-readable storage medium to another computer-readable storage medium, for example, the computer instruction can be transmitted from a website site, a computer, a server or a data center by wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. About computer-readable storage medium, it can be described with reference to the above.
[0352] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims and the specification.
Claims
1. A node control method, characterized in that: Applied to a node control system, the node control system includes: a first node, a second node, and a central system, the first node and the second node are located in an edge system, and the first node and the second node are both connected to the central system, the current working mode of the first node is a master node working mode, and the current working mode of the second node is a standby node working mode, The method comprises: The first node monitors the connection status between the first node and the central system, and switches to a standby node working mode when the connection between the first node and the central system is interrupted; The central system monitors the connection status between the central system and the first node, and sends a master upgrade command to the second node when the connection between the central system and the first node is interrupted, wherein the master upgrade command is used to notify the second node to switch from the standby node working mode to the master node working mode; The second node switches to the master node working mode according to the master upgrade command; The method further comprises: The first node monitors the connection status between the first node and the second node, and / or the second node monitors the connection status between the second node and the first node; When it is determined that the connection between the first node and the second node is interrupted or connected, the current working mode of the first node and / or the second node is maintained.
2. The method according to claim 1, characterized in that The first node monitors the connection status with the central system, including: The first node monitors a connection status with a gateway, where the gateway is between the first node and the central system.
3. The method according to claim 2, characterized in that The gateway is located within the edge system.
4. A node control method, characterized in that: Applied to a first node in an edge system, the first node being connected to a central system, the method comprising: In the case where it is determined that the current working mode of the first node is the main node working mode, the first node monitors the connection status between itself and the central system, and switches to the standby node working mode when it is determined that the connection between the first node and the central system is interrupted; In the case of determining that the current working mode of the first node is the standby node working mode, the first node monitors a command from the central system, and switches to the master node working mode upon receiving a master upgrade command sent by the central system, wherein the master upgrade command is used to notify switching from the standby node working mode to the master node working mode; The edge system further comprises a second node, wherein the second node is connected to the central system, and the method further comprises: The first node monitors a connection status with the second node; When it is determined that the connection between the first node and the second node is interrupted or connected, the current working mode of the first node is maintained.
5. The method according to claim 4, characterized in that The first node monitors the connection status between itself and the central system, including: The first node monitors a connection status between itself and a gateway, where the gateway is between the first node and the central system.
6. The method according to claim 5, characterized in that The gateway is within the edge system.
7. The method according to claim 4 or 5, characterized in that: The method further comprises: When it is detected that the first node is in an active state, determining that the current working mode of the first node is a master node working mode, or when it is detected that the first node is in an inactive state, determining that the current working mode of the first node is a standby node working mode; or, When it is detected that the business application on the first node is in a running state, determining that the current working mode of the first node is a master node working mode, or when it is detected that the business application on the first node is in a stopped state, determining that the current working mode of the first node is a standby node working mode; or, When it is detected that there is no status identifier on the first node, the current working mode of the first node is determined to be the main node working mode, or when it is detected that there is a status identifier on the first node, the current working mode of the first node is determined to be the backup node working mode.
8. A node control system, characterized in that: The node control system includes: a first node, a second node, and a central system, wherein the first node and the second node are located in an edge system, and both the first node and the second node are connected to the central system, the current working mode of the first node is a master node working mode, and the current working mode of the second node is a standby node working mode, The first node is used to monitor the connection status between the first node and the central system, and switch to a standby node working mode when the connection between the first node and the central system is interrupted; The central system is used to monitor the connection status between the central system and the first node, and when the connection between the central system and the first node is interrupted, send a master upgrade command to the second node, wherein the master upgrade command is used to notify the switching from the standby node working mode to the master node working mode; The second node is used to switch to the master node working mode according to the master upgrade command; The first node is further configured to monitor a connection status with the second node; The first node is further used to determine whether the connection between the first node and the second node is interrupted or connected, and maintain the current working mode of the first node and / or the second node.
9. The node control system according to claim 8, characterized in that: The first node is specifically used to monitor the connection status between the first node and the gateway, and the gateway is between the first node and the central system.
10. The node control system according to claim 9, characterized in that: The gateway is within the edge system.
11. A node, characterized in that: Applied in the edge system, the node is connected to the central system, and the node includes: A processing unit, configured to monitor the connection status between the node and the central system when it is determined that the current working mode of the node is the main node working mode, and switch to the standby node working mode when it is determined that the connection between the node and the central system is interrupted; a transceiver unit, configured to monitor a command from the central system when determining that the current working mode of the node is the standby node working mode, and when receiving a master upgrade command sent by the central system, the processing unit is further configured to switch to the master node working mode, wherein the master upgrade command is used to notify the switching from the standby node working mode to the master node working mode; The edge system further comprises a second node, wherein the second node is connected to the central system. The processing unit is further used for: monitoring a connection status with the second node; When it is determined that the connection between the node and the second node is interrupted or connected, the current working mode of the node is maintained.
12. The node according to claim 11, characterized in that: The processing unit is specifically used to monitor the connection status between the node and the gateway, and the gateway is between the node and the central system.
13. The node according to claim 11 or 12, characterized in that: The processing unit is further used for: When it is detected that the node is in an active state, determining that the current working mode of the node is a master node working mode, or, when it is detected that the node is in an inactive state, determining that the current working mode of the node is a standby node working mode; or, When it is detected that the business application on the node is in a running state, determining that the current working mode of the node is a master node working mode, or when it is detected that the business application on the node is in a stopped state, determining that the current working mode of the node is a standby node working mode; or, When it is detected that there is no status mark on the node, the current working mode of the node is determined to be the main node working mode, or when it is detected that there is a status mark on the node, the current working mode of the node is determined to be the backup node working mode.
14. The node according to claim 12, characterized in that: The gateway is within the edge system.
15. A node control device, characterized in that: The device comprises at least one processor, wherein the at least one processor is configured to execute a computer program so that the device implements the method according to any one of claims 4 to 7.
16. A computer-readable storage medium, characterized in that: The invention comprises a computer program which, when being run on a computer, causes the computer to execute the method according to any one of claims 4 to 7.
17. A computer program product, characterized in that The computer program product includes computer program code, and is characterized in that when the computer program code is run on a computer, the computer implements the method described in any one of claims 4 to 7.
Citation Information
Patent Citations
Method and apparatus for switching vnf
CN106664216A
Main-standby service system and main node failure recovery method
CN109005045A
Network switching method based on multiple access edge computing
CN109495938A
An MEC service processing method and device
CN109861867A
Node switching method and device of distributed system and computer storage medium
CN110417600A
