CN113271229B - Equipment control method and device, storage equipment, safety equipment, switch, router and server - Google Patents

Equipment control method and device, storage equipment, safety equipment, switch, router and server Download PDF

Info

Publication number
CN113271229B
CN113271229B CN202110821151.3A CN202110821151A CN113271229B CN 113271229 B CN113271229 B CN 113271229B CN 202110821151 A CN202110821151 A CN 202110821151A CN 113271229 B CN113271229 B CN 113271229B
Authority
CN
China
Prior art keywords
node
indication information
target
event
original
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110821151.3A
Other languages
Chinese (zh)
Other versions
CN113271229A (en
Inventor
王健
金学良
王冬娟
赵立伟
张孝安
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ziguang Hengyue Technology Co Ltd
Original Assignee
Ziguang Hengyue Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ziguang Hengyue Technology Co Ltd filed Critical Ziguang Hengyue Technology Co Ltd
Priority to CN202110821151.3A priority Critical patent/CN113271229B/en
Publication of CN113271229A publication Critical patent/CN113271229A/en
Application granted granted Critical
Publication of CN113271229B publication Critical patent/CN113271229B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0246Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
    • H04L41/0266Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols using meta-data, objects or commands for formatting management information, e.g. using eXtensible markup language [XML]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality

Abstract

The embodiment of the application provides a device control method, a safety device, a switch, a router and a server. The equipment control method is applied to a main node and comprises the following steps: receiving first indication information, sending second indication information to an original node, and sending third indication information to a target node; the first indication information indicates that a management node of the target equipment is switched to a target node from an original node; the second indication information indicates the original node to update the configuration information of the target device, and a first communication channel between the original node and the target device is closed according to fourth indication information; the fourth indication information indicates an expiration event of the target device handled by the original node. The method and the device control the priority of the service event of the processing device through mutual negotiation between the management nodes of the device, realize the communication channel of the management device under the condition of not interrupting the upper layer service event, and finish the redistribution of the management nodes of the device.

Description

Equipment control method and device, storage equipment, safety equipment, switch, router and server
Technical Field
The present application relates to the technical field of device control, and in particular, to a device control method and apparatus, a storage device, a security device, a switch, a router, and a server.
Background
With the popularization of cloud computing, more and more enterprises deploy applications on a cloud computing platform provided by a cloud service provider, the cloud computing platform is built on a cloud data center formed by hundreds of devices and even tens of thousands of devices, and a set of software system is needed to manage the large-scale devices. Besides the need to support the management of large-scale equipment, the software system also needs to have expansion capability, because as the number of cloud service users increases, the capacity expansion of the cloud data center is a common occurrence, which means that the scale of equipment managed by the system also increases continuously. The cluster system can ensure high availability of service, namely, the service can be still provided when a few cluster nodes fail, and the advantage of transversely expanding the cluster capability is achieved, namely, when the working load of all the cluster nodes is high, the pressure of the system can be shared by adding new cluster nodes, and the stability of the system is ensured.
The device configuration issuing channel is a communication channel established between the device management system and the device and used for issuing configuration to the device. When a cluster node is newly added to an existing equipment management system, a configuration issuing channel of the equipment needs to be changed, namely, an original configuration issuing channel is closed and a new configuration issuing channel is established.
Disclosure of Invention
The application provides an equipment control method, a safety device, a switch, a router and a server, which are used for solving the technical problem that when the configuration of an existing equipment management system is changed and a channel is issued, a service event of the equipment needs to be interrupted, and upper-layer service deployment is influenced.
According to an aspect of the present application, there is provided an apparatus control method applied to a master node, the method including:
receiving first indication information, sending second indication information to an original node, and sending third indication information to a target node;
the first indication information indicates that a management node of the target equipment is switched to a target node from an original node;
the second indication information indicates the original node to update the configuration information of the target device, and a first communication channel between the original node and the target device is closed according to fourth indication information; the fourth indication information indicates the deadline event of the target device processed by the original node;
the third indication information indicates the target node to establish a second communication channel with the target device, and sends fourth indication information to the original node.
According to another aspect of the present application, there is provided an apparatus control method applied to an origin node, the method including:
receiving second indication information sent by the main node; the second indication information indicates that the management node of the target equipment is switched from the original node to the target node;
responding to the second indication information, and updating the configuration information of the target equipment corresponding to the second indication information;
receiving fourth indication information, and closing a first communication channel between the fourth indication information and the target equipment; the fourth indication information indicates an expiration event of the target device handled by the original node.
In one or more embodiments, receiving the fourth indication information, and closing the first communication channel with the target device includes:
receiving fourth indication information, and sending confirmation information to the target node under the condition that the ending event is consistent with the first event; the first event is the last event of the target equipment processed by the original node before the first moment; the first moment is the moment of receiving the fourth indication information;
receiving fifth indication information sent by the target node, and closing the first communication channel; wherein the fifth indication information indicates that the target node has taken over the target device.
In one or more embodiments, after sending the acknowledgement information to the target node, the method further comprises:
receiving service change indication information sent by a main node, and caching a second event corresponding to the service change indication information;
receiving fifth indication information sent by the target node, and closing the first communication channel, including:
and receiving fifth indication information sent by the target node, clearing the cache event of the target equipment, and closing the first communication channel.
In one or more embodiments, the receiving the fifth indication information sent by the target node, and closing the first communication channel includes:
and receiving fourth indication information, and sending request invalidation information to the target node when the deadline event is inconsistent with the first event.
According to another aspect of the present application, there is provided an apparatus control method applied to a target node, the method including:
receiving third indication information sent by the main node; the third indication information indicates that the management node of the target equipment is switched from the original node to the target node;
responding to the third indication information, and establishing a second communication channel of the target equipment corresponding to the third indication information;
and sending fourth indication information to the original node, wherein the fourth indication information indicates the original node to close the first communication channel between the original node and the target device.
In one or more embodiments, the fourth indication information indicates an expiration event of the target device handled by the originating node;
after sending the fourth indication information to the original node, the method further includes:
receiving confirmation information sent by an original node, and taking over target equipment; wherein the confirmation information indicates that the expiration event is consistent with the first event; the first event is the last event of the target equipment processed by the original node before the first moment; the first moment is the moment when the original node receives the fourth indication information;
and sending fifth indication information indicating that the target node takes over the target device to the original node.
In one or more embodiments, receiving a first identification of a first event of a target device sent by an origin node, and taking over the target device includes:
receiving service change indication information sent by a main node, and caching a second event corresponding to the service change indication information;
receiving request invalidation information sent by an original node, and processing a second event; wherein the request invalidation information indicates that the expiration event does not coincide with the first event.
According to another aspect of the present application, there is provided an apparatus control device including:
the first receiving module is used for receiving the first indication information, sending second indication information to the original node and sending third indication information to the target node;
the first indication information indicates that a management node of the target equipment is switched to a target node from an original node;
the second indication information indicates the original node to update the configuration information of the target device, and a first communication channel between the original node and the target device is closed according to fourth indication information; the fourth indication information indicates the deadline event of the target device processed by the original node;
the third indication information indicates the target node to establish a second communication channel with the target device, and sends fourth indication information to the original node.
According to another aspect of the present application, there is provided an apparatus control device including:
the second receiving module is used for receiving second indication information sent by the main node; the second indication information indicates that the management node of the target equipment is switched from the original node to the target node;
the updating module is used for responding to the second indication information and updating the configuration information of the target equipment corresponding to the second indication information;
the closing module is used for receiving the fourth indication information and closing a first communication channel between the closing module and the target equipment; the fourth indication information indicates an expiration event of the target device handled by the original node.
In one or more embodiments, the shutdown module includes:
the confirmation module is used for receiving the fourth indication information and sending confirmation information to the target node under the condition that the ending event is consistent with the first event; the first event is the last event of the target equipment processed by the original node before the first moment; the first moment is the moment of receiving the fourth indication information;
the closing submodule is used for receiving fifth indication information sent by the target node and closing the first communication channel; wherein the fifth indication information indicates that the target node has taken over the target device.
In one or more embodiments, the apparatus further comprises:
the first cache module is used for receiving the service change indication information sent by the main node and caching a second event corresponding to the service change indication information;
the closing submodule is specifically configured to receive fifth indication information sent by the target node, clear a cache event of the target device, and close the first communication channel.
In one or more embodiments, the shutdown submodule is specifically configured to receive the fourth indication information, and send request invalidation information to the target node in a case that the deadline event is inconsistent with the first event.
According to another aspect of the present application, there is provided a storage device having stored thereon a computer program which, when executed by a processor, executes the device control method shown in any one of the aspects of the present application.
According to another aspect of the present application, there is provided a security device including:
one or more processors;
a memory;
one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to: the apparatus control method shown in any one aspect of the present application is executed.
According to another aspect of the present application, there is provided a switch for performing the device control method shown in any one of the aspects of the present application.
According to another aspect of the present application, there is provided a router for executing the device control method shown in any one of the aspects of the present application.
According to another aspect of the present application, there is provided a server comprising a memory for storing a computer program and a processor for executing the device control method shown in any one of the aspects of the present application.
According to another aspect of the application, a computer program product or computer program is provided, comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to perform the method provided in the various alternative implementations of any of the aspects described above.
The equipment control method provided by the application is applied to receive first indication information, send second indication information to an original node and send third indication information to a target node; the first indication information indicates that a management node of the target equipment is switched to a target node from an original node; the second indication information indicates the original node to update the configuration information of the target device, and a first communication channel between the original node and the target device is closed according to fourth indication information; the fourth indication information indicates the deadline event of the target device processed by the original node; the third indication information indicates the target node to establish a second communication channel with the target device, and sends fourth indication information to the original node.
According to the method and the device, multiple negotiations are carried out among the management nodes corresponding to the equipment to control the priority of the service event of the processing equipment, the communication channel of the equipment is managed under the condition that the upper-layer service event is not interrupted, the reallocation of the management nodes of the equipment is completed, the efficiency of changing the management nodes of the equipment and the corresponding communication channel is improved, the processing of the upper-layer service event is not influenced in the changing process, and the continuity, reliability and stability of the service of the upper-layer service and the service of the equipment management system are guaranteed.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments of the present application will be briefly described below.
Fig. 1 is a diagram illustrating an architecture of an apparatus control system according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of an apparatus control method according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of an apparatus control method according to another embodiment of the present application;
fig. 4 is an exemplary diagram of a first example provided by an embodiment of the present application;
FIG. 5 is an illustration of a second example provided by an embodiment of the present application;
fig. 6 is an exemplary diagram of a third example provided by an embodiment of the present application;
fig. 7 is a schematic flowchart of an apparatus control method according to another embodiment of the present application;
fig. 8 is a schematic structural diagram of an apparatus control device according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of an apparatus control security apparatus according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
In an existing application scenario, a device management system uniformly allocates devices to cluster nodes, the cluster nodes establish corresponding communication channels for management, and when a cluster node is newly added, the device management system preferentially allocates the newly added device to the newly added cluster node without changing the home relationship between the original device and the cluster node. In this way, the original cluster node still maintains a high load state, and the system pressure is not effectively relieved.
In another existing application scenario, a device management system uniformly allocates devices to cluster nodes, the cluster nodes establish corresponding communication channels for management, when a cluster node is newly added, the communication channel corresponding to an original cluster node is closed, the newly added cluster node establishes a new communication channel and is opened, and the newly added cluster node takes over the devices of the original cluster node. By adopting the mode, when the cluster node of the equipment and the communication channel corresponding to the cluster node are changed, the relevant service event of the equipment is temporarily interrupted, and the equipment management system cannot process the relevant service event of the equipment within a period of time.
The application provides a device control method, a device and an electronic device, and aims to solve the above technical problems in the prior art.
The following describes the technical solutions of the present application and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
The terms referred to in this application will first be introduced and explained:
cloud computing: cloud computing (cloud computing) is one type of distributed computing, and means that a huge data computing processing program is decomposed into countless small programs through a network "cloud", and then the small programs are processed and analyzed through a system consisting of a plurality of servers to obtain results and are returned to a user. In the early stage of cloud computing, simple distributed computing is adopted, task distribution is solved, and computing results are merged. Thus, cloud computing is also known as grid computing. By the technology, tens of thousands of data can be processed in a short time (several seconds), so that strong network service is achieved.
Clustering technology: cluster (cluster) technology is a newer technology, by which relatively high gains in performance, reliability, flexibility can be obtained at a low cost, and task scheduling is a core technology in a cluster system. A cluster is a group of mutually independent computers interconnected by a high-speed network, which form a group and are managed in a single system mode. A client interacts with a cluster, which appears as a stand-alone server. The cluster configuration is for improved availability and scalability.
The equipment configuration issues a channel: and the communication channel is established between the equipment management system and the equipment and used for issuing the configuration to the equipment.
An embodiment of the present application provides a system architecture for device control, as shown in fig. 1, the system architecture includes: the system comprises a main node, an original node, a first communication channel corresponding to the original node, a target node and a second communication channel corresponding to the target node. Each cluster node is provided with a corresponding management process, data interaction is carried out between the cluster nodes through the corresponding management processes, and one cluster node is provided with at least one corresponding management process and at least one corresponding communication channel. The cluster nodes are responsible for the management of relevant business events of the devices, and several such cluster nodes exist in the cluster system.
(1) When a cluster node is newly added, the master node initiates a process change notification to all cluster nodes in the cluster system in a broadcast manner, wherein all cluster nodes naturally also comprise an original node and a target node of a change process. Specifically, the master node initiates a notification to the cluster node by initiating a notification to a management process in the cluster node. The notification information sent by the master node to the original process is called second indication information, and the notification information sent by the master node to the target process is called third indication information.
(2) And the original node receives second indication information sent by the main node, and the target node receives third indication information sent by the main node. And the target node establishes a second communication channel of the corresponding target device based on the received third indication information. After the original node and the target node receive the notification information of the master node, the management process of the target node sends a notification to the management process of the original node, that is, fourth indication information is sent. The content of the fourth indication information may include a "No. 1 event followed by a service change event request that is not to be processed. "where, the event No.1 is a first service event of the target device received by the original node and the target node after the management node of the target device starts to be changed, and it should be noted that, the content of the indication information in this embodiment is only an example, and is not limited to the above content.
(3) And after receiving the fourth indication information sent by the management process of the target node, the management process of the original node feeds back the fourth indication information based on the actual situation. For example, when the original node receives the fourth indication information, the event No.1 is the last service event received by the original node, the acknowledgement information fed back to the target node may be "received", and No.1 is the last event processed by me. "; when the original node receives the fourth indication information, the No.1 event is not the last service event received by the original node, the request invalidation information fed back to the target node may be a "invalidation request", and the last processing event is not No. 1. ".
(4) When the management process of the target node receives the confirmation information sent by the management process of the original node, the target node feeds back fifth indication information to the original process, wherein the content of the fifth indication information may include 'received and taken over equipment'. "; when the management process of the target node receives the request invalidation information sent by the management process of the original node, the target node sends the fourth indication information to the original process again, at this time, the content of the fourth indication information changes, and the content of the fourth indication information sent for the second time may include a "No. 2 event followed by a service change event request that is not processed. "where, the event No.2 is a second service event of the target device received by the original node and the target node after the management node of the target device starts to be changed. In other words, when the notification information received by the target node is the confirmation information, the target node feeds back the fifth indication information and starts to execute the step (5), when the notification information received by the target node is the request invalidation information, the target node sends the fourth indication information for the second time, and the steps (2) to (4) are repeated until the target node receives the confirmation information.
(5) And after the management process of the original node receives the fifth indication information sent by the management process of the target node, the management process of the target device confirms that the management node is changed and finishes, and the corresponding first communication channel is closed.
By adopting the mode, when the management node of the target equipment is changed from the original node to the target node by the cluster system, the main process controls the original node and the target node to carry out negotiation, a new communication channel is established first, and after all relevant service events of the target equipment are processed, the original communication channel is closed, so that the processing of the relevant service events of the equipment is not influenced.
Further, the device in the embodiment of the present application may have the following features:
(1) on a hardware architecture, a device has a central processing unit, a memory, an input unit and an output unit, that is, the device is often a microcomputer device having a communication function. In addition, various input modes such as a keyboard, a mouse, a touch screen, a microphone, a camera and the like can be provided, and input can be adjusted as required. Meanwhile, the equipment often has a plurality of output modes, such as a telephone receiver, a display screen and the like, and can be adjusted according to needs;
(2) on a software system, the device must have an operating system, such as Windows Mobile, Symbian, Palm, Android, iOS, and the like. Meanwhile, the operating systems are more and more open, and personalized application programs developed based on the open operating system platforms are infinite, such as a communication book, a schedule, a notebook, a calculator, various games and the like, so that the requirements of personalized users are met to a great extent;
(3) in terms of communication capacity, the device has flexible access mode and high-bandwidth communication performance, and can automatically adjust the selected communication mode according to the selected service and the environment, thereby being convenient for users to use. The device may support 3GPP (3 rd Generation Partnership Project), 4GPP (4 rd Generation Partnership Project), 5GPP (5 rd Generation Partnership Project), LTE (Long Term Evolution), WIMAX (World Interoperability for Microwave Access), mobile communication based on TCP/IP (Transmission Control Protocol/Internet Protocol), UDP (User data Protocol, User Datagram Protocol) Protocol, computer network communication based on TCP/IP Protocol, and short-range wireless Transmission based on bluetooth and infrared Transmission standards, not only supporting voice services, but also supporting various wireless data services;
(4) in the aspect of function use, the equipment focuses more on humanization, individuation and multi-functionalization. With the development of computer technology, devices enter a human-centered mode from a device-centered mode, and the embedded computing, control technology, artificial intelligence technology, biometric authentication technology and the like are integrated, so that the human-oriented purpose is fully embodied. Due to the development of software technology, the equipment can be adjusted and set according to individual requirements, and is more personalized. Meanwhile, the device integrates a plurality of software and hardware, and the function is more and more powerful.
Further, in an apparatus control method as disclosed in the present application, the various types of data described above may be stored on a blockchain.
An embodiment of the present application provides an apparatus control method, which is applied to a master node, and as shown in fig. 2, specifically includes:
step S201, receiving first indication information; the first indication information indicates that the management node of the target device is switched from the original node to the target node.
By way of example, a device management system is shown in FIG. 1; with reference to fig. 1, the master node is responsible for managing cluster nodes in the device management system. The target device is a device targeted by the management operation, for example, when a cluster node is added to a certain device, the device is the target device.
The first indication information indicates that management node switching occurs in target equipment, and the management node is switched from an original node to a target node; the first indication information is, for example, an indication from an upper layer of the cluster system or an indication sent by the target device.
Step S202, sending second indication information to the original node; the second indication information indicates the original node to update the configuration information of the target device, and a first communication channel between the original node and the target device is closed according to fourth indication information; the fourth indication information indicates an expiration event of the target device handled by the original node.
Wherein, the main node executes a cluster main control process; and the master node receives the first indication information, sends the indication information to the original node and the target node of the target equipment, and informs the original node and the target node of starting to process the service event changed by the management node of the target equipment. And the second indication information indicates that the original node updates the configuration information of the target equipment when receiving the service event sent by the main node. Specifically, the master node sends second indication information to the original node, where the second indication information indicates the original node to update the configuration information of the target device, and the target device sends management node switching, so that the configuration information needs to be updated, but the management node of the target device is still the original node, so that the original node needs to update the configuration information of the target device, for example, the master node issues new configuration information of the target device, the original node issues the configuration information to the target device, and the target device updates the configuration information after receiving the configuration information.
As a first example, referring to fig. 4, fig. 4 shows a specific application process of the embodiment of the present application, where a master node sends second indication information to a device management process of an original node, that is, an original process, and the device management process updates configuration information of a target device.
Step S203, sending third indication information to the target node; the third indication information indicates the target node to establish a second communication channel with the target device, and sends fourth indication information to the original node.
And the master node sends third indication information to the target node, and specifically, the cluster master control process corresponding to the master node sends the third indication information to the target process corresponding to the target node. The third indication information indicates the target node to establish a second communication channel of the corresponding target device, and when a service event of the target device sent by the master node is received, the fourth indication information is sent to the original node.
The first communication channel corresponding to the original node and the second communication channel corresponding to the target node are both communication channels through which the device management cluster system issues data information such as configuration information to the target device. And the target node is used as a newly added node, and before formally changing into the management node of the target device, a corresponding second communication channel needs to be created in advance for updating the configuration information of the target device after the management node is changed.
In the present embodiment, in the process of changing the management node of the target device, the upper layer service event of the target device is not interrupted. Therefore, both the original node and the target node of the target device receive the relevant service event sent from the master node. Specifically, the master node numbers related service events of the target device, for example, No.1 event, No.2 event, and the like. When the original node and the target node receive the service event, different service events can be confirmed according to the number carried by the service event.
And the third indication information indicates that the target node sends fourth indication information to the original node when receiving the service event of the target equipment. For example, the target node receives a No.1 event of the target device, and the third indication information indicates that the target node sends fourth indication information to the original node.
As a first example, referring to fig. 4, fig. 4 shows a specific application process of the embodiment of the present application, where a master node sends third indication information to a device management process of a target node, that is, a target process, and the target process creates a second communication channel and sends fourth indication information to an original node when receiving an event No. 1.
In the embodiment of the application, the second indication information is sent to the original node through the main node, and the third indication information is sent to the target node; the second indication information indicates the original node to update the configuration information of the target device, and a first communication channel between the original node and the target device is closed according to fourth indication information; the fourth indication information indicates the deadline event of the target device processed by the original node; the third indication information indicates the target node to establish a second communication channel with the target device, and sends fourth indication information to the original node. Therefore, the original node closes the first communication channel after receiving the ending event aiming at the target equipment, the communication channel of the equipment is managed under the condition of not interrupting the service event, the redistribution of the management node of the equipment is completed, the efficiency of changing the management node of the equipment and the corresponding communication channel is improved, the processing of the upper-layer service event is not influenced in the changing process, and the continuity, reliability and stability of the upper-layer service and the service of the equipment management system are ensured. The embodiment of the application solves the technical problem that in the related technology, when the configuration of the equipment is changed and the channel is issued, the service event of the equipment needs to be interrupted, and the deployment of the upper-layer service is influenced.
The embodiment of the present application provides an apparatus control method, which is applied to an original node, and as shown in fig. 3, specifically includes:
step S301, receiving second indication information sent by the main node; and the second indication information indicates that the management node of the target device is switched from the original node to the target node.
The original node receives second indication information sent by the master node, specifically, data interaction is performed between the original node and the master node through a process, a device management process corresponding to the original node receives the second indication information sent by a cluster master control process corresponding to the master node, and the second indication information includes that a management node of a target device is switched from the original node to the target node.
In this embodiment, the master node may send the indication information to the original node in a broadcast manner. Before receiving the indication information sent by the master node, the original node needs to subscribe to the broadcast of the related topic published by the master node. When the master node issues new data information based on the related topic, the original node as the subscriber and other cluster nodes can receive the indication information issued by the master node in a broadcast manner.
Communication among clusters in the device management system can be realized through a data synchronization mechanism of a zookeeper which is a reliable coordination system of a distributed system, and further, a cluster main control process corresponding to a main node can issue data of related subjects on the zookeeper. It should be noted that the present embodiment is not limited to the zookeeper manner, and any manner that can implement communication between clusters in a cluster system may be applied to the present embodiment.
Step S302, in response to the second indication information, updating configuration information of the target device corresponding to the second indication information.
And the original node responds to the second indication information, immediately responds to the second indication information after receiving the notification of the service event change from the main node, and updates the configuration information of the corresponding target equipment. The notification of the change of the service event sent by the main node comprises the number information corresponding to the service event.
The device management system comprises a plurality of cluster nodes, wherein the cluster nodes are used for managing devices, different cluster nodes manage service events of different devices, and each cluster node is provided with a corresponding device management process and a corresponding device configuration channel. The device management process is used for communication between nodes in the cluster system, and the device configuration channel is used for communication between the device management system and management nodes of the device.
The original node is an original management node of the target device, and is provided with a device management process and a device configuration channel of the corresponding target device. The first communication channel is a device configuration channel of the target device corresponding to the original node.
Step S303, receiving fourth indication information, and closing a first communication channel between the target device and the terminal device; the fourth indication information indicates an expiration event of the target device handled by the original node.
In a preferred embodiment of the present application, receiving the fourth indication information to close the first communication channel with the target device includes:
receiving fourth indication information, and sending confirmation information to the target node under the condition that the ending event is consistent with the first event; the first event is the last event of the target equipment processed by the original node before the first moment; the first moment is the moment of receiving the fourth indication information;
receiving fifth indication information sent by the target node, and closing the first communication channel; wherein the fifth indication information indicates that the target node has taken over the target device.
As a first example, referring to fig. 4, fig. 4 shows a specific application process of the embodiment of the present application, where an original node receives a notification of a change of a service event sent by a master node, and acquires a first event of a target device based on the notification. The first event is the last service event of the target device processed after the original node starts to change the management node of the target device and before the fourth indication information sent by the target node is received.
And the original node receives fourth indication information sent by the target node, and acquires the processed ending event of the target device as a No.1 event based on the fourth indication information.
And comparing the first event with the ending event, and determining that the last service event received by the original node is a No.1 event, wherein the ending event is consistent with the first event, and the original node sends corresponding confirmation information to the target node. The confirmation message may be "received", and the last event to be processed is confirmed to be No.1 event. ".
And when the ending event is consistent with the first event, the original node sends confirmation information to the target node, and then waits for the target node to feed back the confirmation information. And receiving fifth indication information sent by the target node, acquiring indication information that the target node has successfully taken over the target equipment, closing the first communication channel of the corresponding target equipment by the original node, and finishing the processing of the management node change event of the target equipment.
In a preferred embodiment of the present application, after sending the acknowledgement information to the target node, the method further includes:
receiving service change indication information sent by a main node, and caching a second event corresponding to the service change indication information;
receiving fifth indication information sent by the target node, and closing the first communication channel, including:
and receiving fifth indication information sent by the target node, clearing the cache event of the target equipment, and closing the first communication channel.
And when the management node of the target equipment is changed, the related service event of the corresponding target equipment is not interrupted. Therefore, in the process of changing the management node of the target device, the management node of the target device may receive a new pending traffic event. The present embodiment provides a method of smoothly switching the management node of the target device in this case.
As a second example, referring to fig. 5, fig. 5 shows a specific application process of the embodiment of the present application, wherein after the original node receives the fourth indication information sent by the target node and feeds back the confirmation information to the target node, and before the management node of the target device is successfully changed, the original node further receives a service event No.2 sent by the master node.
When the cluster node receives the service change indication information sent by the master node, it is determined that the service event corresponding to the service change indication information is a No.2 event, that is, a second event. And caching the No.2 event by the equipment management process of the cluster node. It should be noted that the second event in this embodiment is not limited to one event, and may also be multiple events, and as long as the service event received by the cluster node after the original node receives the fourth indication information sent by the target node and feeds back the confirmation information to the target node and before the management node of the target device is successfully changed, may be referred to as the second event, and the processing manner of the second event is the same as that of the No.2 event. The cluster nodes include an origin node and a target node.
And after receiving the No.2 event sent by the master node, the original node caches the No.2 event and waits for the fifth indication information of the target node. And after receiving the No.2 event sent by the master node, the target node caches the No.2 event, processes the No.2 event after receiving confirmation information fed back by the original node based on the fourth indication information, and sends fifth indication information to the original node.
And the original node receives the fifth indication information sent by the target node, clears the cached No.2 event, closes the first communication channel of the corresponding target device, and completes the processing of the management node change event of the target device.
In a preferred embodiment of the present application, receiving fifth indication information sent by a target node, and closing a first communication channel includes:
and receiving fourth indication information, and sending request invalidation information to the target node when the deadline event is inconsistent with the first event.
And when the management node of the target equipment is changed, the related service event of the corresponding target equipment is not interrupted. Therefore, in the process of changing the management node of the target device, the management node of the target device may receive a new pending traffic event. The present embodiment provides a method of smoothly switching the management node of the target device in this case.
As a third example, referring to fig. 6, fig. 6 shows a specific application process of the embodiment of the present application, where after the management node of the target device starts to be changed and before the original node receives the fourth indication information sent by the target node, the original node further receives a service event No.2 sent by the master node, that is, the first event is a No.2 event. Therefore, when the fourth indication information is received, the cutoff event is a No.1 event, the first event is a No.2 event, and the cutoff event is inconsistent with the first event. And the original node feeds back the request invalid information to the target node based on the fourth indication information, and waits for the target node to send the fourth indication information again.
In the embodiment of the application, second indication information sent by a main node is received; the second indication information indicates that the management node of the target equipment is switched from the original node to the target node; responding to the second indication information, and updating the configuration information of the target equipment corresponding to the second indication information; receiving fourth indication information, and closing a first communication channel between the fourth indication information and the target equipment; the fourth indication information indicates an expiration event of the target device handled by the original node. Therefore, the original node closes the first communication channel after receiving the ending event aiming at the target equipment, the communication channel of the equipment is managed under the condition of not interrupting the service event, the redistribution of the management node of the equipment is completed, the efficiency of changing the management node of the equipment and the corresponding communication channel is improved, the processing of the upper-layer service event is not influenced in the changing process, and the continuity, reliability and stability of the upper-layer service and the service of the equipment management system are ensured. The embodiment of the application solves the technical problem that in the related technology, when the configuration of the equipment is changed and the channel is issued, the service event of the equipment needs to be interrupted, and the deployment of the upper-layer service is influenced.
The embodiment of the present application provides an apparatus control method, which is applied to a target node, and as shown in fig. 7, specifically includes:
step S701, receiving third indication information sent by a main node; and the third indication information indicates that the management node of the target equipment is switched from the original node to the target node.
The target node receives third indication information sent by the master node, specifically, data interaction is performed between the target node and the master node through a process, the device management process corresponding to the target node receives the third indication information sent by the cluster master control process corresponding to the master node, and the third indication information includes that the management node of the target device is switched to the target node from the target node.
In this embodiment, the master node may send the indication information to the target node in a broadcast manner. Before receiving the indication information sent by the master node, the target node needs to subscribe to the broadcast of the related topic published by the master node. When the master node issues new data information based on the related topic, the target node as the subscriber and other cluster nodes can receive the indication information issued by the master node in a broadcast manner.
Communication among clusters in the device management system can be realized through a data synchronization mechanism of a zookeeper which is a reliable coordination system of a distributed system, and further, a cluster main control process corresponding to a main node can issue data of related subjects on the zookeeper. It should be noted that the present embodiment is not limited to the zookeeper manner, and any manner that can implement communication between clusters in a cluster system may be applied to the present embodiment.
Step S702, in response to the third indication information, establishing a second communication channel of the target device corresponding to the third indication information.
And after receiving the third indication information from the main node, the equipment management process corresponding to the target node immediately responds to the third indication information and establishes a corresponding second communication channel. The second communication channel is a device configuration channel of the target device corresponding to the target node, and is used for communication between the device management system and the target node. And the equipment management system issues the configuration information to the target node of the target equipment through the second communication channel.
Step S703 is to send fourth indication information to the original node, where the fourth indication information indicates that the original node closes the first communication channel with the target device.
In a preferred embodiment of the present application, the fourth indication information indicates an expiration event of the target device handled by the originating node.
After sending the fourth indication information to the original node, the method further includes:
receiving confirmation information sent by an original node, and taking over target equipment; wherein the confirmation information indicates that the expiration event is consistent with the first event; the first event is the last event of the target equipment processed by the original node before the first moment; the first moment is the moment when the original node receives the fourth indication information;
and sending fifth indication information indicating that the target node takes over the target device to the original node.
As a first example, referring to fig. 4, fig. 4 shows a specific application process of an embodiment of the present application, where in this embodiment, the fourth indication information indicates an expiration event of a target device processed by an original node, and the target node sends the fourth indication information to the original node.
The master node may number a service change event of a target device that needs to be processed by the cluster node.
And after receiving the third indication information sent by the master node, the target node creates a second communication channel of the target device based on the third indication information. Further, when the target node receives the notice of the service change event from the main node, fourth indication information is sent to the original node. The notification of the service change event includes the number of the service change event, for example, No.1 event, No.2 event, and the like. The fourth indication information may include an indication that the event following the "No. 1 event is not to be processed. ", i.e., a No.1 event as the cutoff event for the target device handled by the originating node. It should be noted that, in this embodiment, no limitation is imposed on the number manner of the service change event and the specific instruction content included in the instruction information.
After the original node receives the fourth indication information sent by the target node, when the deadline event is consistent with the first event, the original node feeds back confirmation information to the target node. And after receiving the confirmation information from the original node, the target node takes over the target equipment formally and feeds back fifth indication information to the original node, wherein the indication content included in the fifth indication information can be 'received and taken over equipment'. ".
And after the target node takes over the target equipment formally, the original node closes the first communication channel of the corresponding target equipment.
In a preferred embodiment of the present application, receiving a first identifier of a first event of a target device sent by an original node, and taking over the target device includes:
receiving service change indication information sent by a main node, and caching a second event corresponding to the service change indication information;
receiving request invalidation information sent by an original node, and processing a second event; wherein the request invalidation information indicates that the expiration event does not coincide with the first event.
And when the management node of the target equipment is changed, the related service event of the corresponding target equipment is not interrupted. Therefore, in the process of changing the management node of the target device, the management node of the target device may receive a new pending traffic event. The present embodiment provides a method of smoothly switching the management node of the target device in this case.
As a second example, referring to fig. 5, fig. 5 shows a specific application process of the embodiment of the present application, where after the original node receives the fourth indication information sent by the target node and feeds back the confirmation information to the target node, and before the management node of the target device is successfully changed, the target node further receives a service event No.2 sent by the master node.
When the cluster node receives the service change indication information sent by the master node, it is determined that the service event corresponding to the service change indication information is a No.2 event, that is, a second event. And caching the No.2 event by the equipment management process of the cluster node. It should be noted that the second event in this embodiment is not limited to one event, and may also be multiple events, and as long as the service event received by the cluster node after the original node receives the fourth indication information sent by the target node and feeds back the confirmation information to the target node and before the management node of the target device is successfully changed, may be referred to as the second event, and the processing manner of the second event is the same as that of the No.2 event. The cluster nodes include an origin node and a target node.
And the target node receives the service change indication information sent by the host node, confirms that the service event corresponding to the service change indication information is a No.2 event, caches the No.2 event by the equipment management process corresponding to the target node, processes the cached No.2 event by the equipment management process of the target node after receiving the confirmation information sent by the original node based on the fourth indication information, and sends fifth indication information to the original node. After the cache event processing is completed, the target node can update the second communication channel of the target device.
As a third example, referring to fig. 6, fig. 6 shows a specific application process in an embodiment of the present application, where in this embodiment, the first event is a last service event of the target device processed after the original node starts to change the management node of the target device and before the fourth indication information sent by the target node is received. After the management node of the target device starts to be changed and before the original node receives the fourth indication information sent by the target node, the target node also receives a service event No.2 sent by the master node, that is, the first event is a No.2 event. And caching the No.2 event by the equipment management process of the target node. And the second event is a service event corresponding to the service change notification sent by the main node and received again after the target node receives the first event.
And the target node receives request invalidation information fed back by the original node based on the fourth indication information, and confirms that the last event processed by the original node is not a No.1 event but a No.2 event. In other words, in this case, the first event and the second event of the target node are both No.2 events.
And the device management process corresponding to the target node processes the No.2 event and sends fourth indication information to the original node again after the processing is finished. The fourth indication information sent again may be that the event following the "No. 2 event is not to be processed. ". And the original node feeds back again based on the new fourth indication information until the management process of the target device is changed.
In the embodiment of the application, third indication information sent by a main node is received; the third indication information indicates that the management node of the target equipment is switched from the original node to the target node; responding to the third indication information, and establishing a second communication channel of the target equipment corresponding to the third indication information; and sending fourth indication information to the original node, wherein the fourth indication information indicates the original node to close the first communication channel between the original node and the target device. Therefore, the original node closes the first communication channel after receiving the ending event aiming at the target equipment, the communication channel of the equipment is managed under the condition of not interrupting the service event, the redistribution of the management node of the equipment is completed, the efficiency of changing the management node of the equipment and the corresponding communication channel is improved, the processing of the upper-layer service event is not influenced in the changing process, and the continuity, reliability and stability of the upper-layer service and the service of the equipment management system are ensured. The embodiment of the application solves the technical problem that in the related technology, when the configuration of the equipment is changed and the channel is issued, the service event of the equipment needs to be interrupted, and the deployment of the upper-layer service is influenced.
An embodiment of the present application provides an apparatus control device, as shown in fig. 8, the apparatus includes:
a first receiving module 801, configured to receive first indication information, send second indication information to an original node, and send third indication information to a target node;
the first indication information indicates that a management node of the target equipment is switched to a target node from an original node;
the second indication information indicates the original node to update the configuration information of the target device, and a first communication channel between the original node and the target device is closed according to fourth indication information; the fourth indication information indicates the deadline event of the target device processed by the original node;
the third indication information indicates the target node to establish a second communication channel with the target device, and sends fourth indication information to the original node.
A second receiving module 802, configured to receive second indication information sent by the master node; the second indication information indicates that the management node of the target equipment is switched from the original node to the target node;
an updating module 803, configured to update, in response to the second indication information, configuration information of the target device corresponding to the second indication information;
a closing module 804, configured to receive the fourth indication information, and close the first communication channel with the target device; the fourth indication information indicates an expiration event of the target device handled by the original node.
In one or more embodiments, the shutdown module includes:
the confirmation module is used for receiving the fourth indication information and sending confirmation information to the target node under the condition that the ending event is consistent with the first event; the first event is the last event of the target equipment processed by the original node before the first moment; the first moment is the moment of receiving the fourth indication information;
the closing submodule is used for receiving fifth indication information sent by the target node and closing the first communication channel; wherein the fifth indication information indicates that the target node has taken over the target device.
In one or more embodiments, the apparatus further comprises:
the first cache module is used for receiving the service change indication information sent by the main node and caching a second event corresponding to the service change indication information;
the closing submodule is specifically configured to receive fifth indication information sent by the target node, clear a cache event of the target device, and close the first communication channel.
In one or more embodiments, the shutdown submodule is specifically configured to receive the fourth indication information, and send request invalidation information to the target node in a case that the deadline event is inconsistent with the first event.
A third receiving module 805, configured to receive third indication information sent by the host node; the third indication information indicates that the management node of the target equipment is switched from the original node to the target node;
an establishing module 806, configured to, in response to the third indication information, establish a second communication channel of the target device corresponding to the third indication information;
a sending module 807, configured to send fourth indication information to the original node, where the fourth indication information indicates that the original node closes the first communication channel with the target device.
In one or more embodiments, the fourth indication information indicates an expiration event of the target device handled by the originating node;
the device still includes:
the takeover module is used for receiving the confirmation information sent by the original node and taking over the target equipment; wherein the confirmation information indicates that the expiration event is consistent with the first event; the first event is the last event of the target equipment processed by the original node before the first moment; the first moment is the moment when the original node receives the fourth indication information;
and the sending submodule is used for sending fifth indication information which indicates that the target node takes over the target equipment to the original node.
In one or more embodiments, the takeover module comprises:
the second cache module is used for receiving the service change indication information sent by the main node and caching a second event corresponding to the service change indication information;
the processing module is used for receiving request invalidation information sent by the original node and processing a second event; wherein the request invalidation information indicates that the expiration event does not coincide with the first event.
The device control device receives first indication information, sends second indication information to an original node, and sends third indication information to a target node; the first indication information indicates that a management node of the target equipment is switched to a target node from an original node; the second indication information indicates the original node to update the configuration information of the target device, and a first communication channel between the original node and the target device is closed according to fourth indication information; the fourth indication information indicates the deadline event of the target device processed by the original node; the third indication information indicates the target node to establish a second communication channel with the target device, and sends fourth indication information to the original node.
According to the method and the device, multiple negotiations are carried out among the management nodes corresponding to the equipment to control the priority of the service event of the processing equipment, the communication channel of the equipment is managed under the condition that the upper-layer service event is not interrupted, the reallocation of the management nodes of the equipment is completed, the efficiency of changing the management nodes of the equipment and the corresponding communication channel is improved, the processing of the upper-layer service event is not influenced in the changing process, and the continuity, reliability and stability of the service of the upper-layer service and the service of the equipment management system are guaranteed.
The embodiment of the application provides a storage device, and the storage device can realize the contents shown in the embodiment. Compared with the prior art, the priority of the service event of the processing equipment is controlled by carrying out multiple negotiations between the management nodes corresponding to the equipment, the communication channel of the equipment is managed under the condition of not interrupting the upper-layer service event, the reallocation of the management nodes of the equipment is completed, the efficiency of changing the management nodes of the equipment and the corresponding communication channel is improved, the processing of the upper-layer service event is not influenced in the changing process, and the continuity, reliability and stability of the upper-layer service and the service of the equipment management system are ensured.
An embodiment of the present application provides a security device, including: a memory and a processor; at least one program stored in the memory for execution by the processor, which when executed by the processor, implements: the communication channel of the equipment is managed and the redistribution of the management node of the equipment is completed under the condition that the upper-layer service event is not interrupted by carrying out multiple negotiations among the management nodes corresponding to the equipment to control the priority of the service event of the processing equipment, so that the efficiency of changing the management node of the equipment and the corresponding communication channel is improved, the processing of the upper-layer service event is not influenced in the changing process, and the continuity, reliability and stability of the service of the upper-layer service and the service of the equipment management system are ensured.
In an alternative embodiment, there is provided a security device, as shown in fig. 9, a security device 9000 of fig. 9 comprising: a processor 9001 and a memory 9003. Among other things, the processor 9001 and memory 9003 are coupled, such as via a bus 9002. Optionally, the security device 9000 may further comprise a transceiver 9004, and the transceiver 9004 may be used for data interaction between the security device and other security devices, such as transmission of data and/or reception of data. Note that the transceiver 9004 is not limited to one in practical use, and the structure of the security device 9000 does not limit the embodiments of the present application.
The Processor 9001 may be a CPU (Central Processing Unit), a general purpose Processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other Programmable logic device, transistor logic, hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. The processor 9001 may also be a combination of computing functions, e.g., comprising one or more microprocessors, a combination of DSPs and microprocessors, or the like.
The bus 9002 may include a pathway to transfer information between the aforementioned components. The bus 9002 may be a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus 9002 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is used, but not to indicate only one bus or type of bus.
The Memory 9003 may be a ROM (Read Only Memory) or other types of static storage devices that may store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that may store information and instructions, an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical Disc storage, optical Disc storage (including Compact Disc, laser Disc, optical Disc, digital versatile Disc, blu-ray Disc, etc.), a magnetic disk storage medium or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to these.
The memory 9003 is used to store application code for performing aspects of the present application and is controlled by the processor 9001 for execution. The processor 9001 is configured to execute application program code stored in the memory 9003 to implement what is shown in the foregoing method embodiments.
The embodiment of the application provides a switch, and the switch can realize the content shown in the embodiment. Compared with the prior art, the priority of the service event of the processing equipment is controlled by carrying out multiple negotiations between the management nodes corresponding to the equipment, the communication channel of the equipment is managed under the condition of not interrupting the upper-layer service event, the reallocation of the management nodes of the equipment is completed, the efficiency of changing the management nodes of the equipment and the corresponding communication channel is improved, the processing of the upper-layer service event is not influenced in the changing process, and the continuity, reliability and stability of the upper-layer service and the service of the equipment management system are ensured.
The embodiment of the present application provides a router, which can implement the content shown in the above embodiment. Compared with the prior art, the priority of the service event of the processing equipment is controlled by carrying out multiple negotiations between the management nodes corresponding to the equipment, the communication channel of the equipment is managed under the condition of not interrupting the upper-layer service event, the reallocation of the management nodes of the equipment is completed, the efficiency of changing the management nodes of the equipment and the corresponding communication channel is improved, the processing of the upper-layer service event is not influenced in the changing process, and the continuity, reliability and stability of the upper-layer service and the service of the equipment management system are ensured.
The embodiment of the application provides a server, and the server can realize the content shown in the embodiment. Compared with the prior art, the priority of the service event of the processing equipment is controlled by carrying out multiple negotiations between the management nodes corresponding to the equipment, the communication channel of the equipment is managed under the condition of not interrupting the upper-layer service event, the reallocation of the management nodes of the equipment is completed, the efficiency of changing the management nodes of the equipment and the corresponding communication channel is improved, the processing of the upper-layer service event is not influenced in the changing process, and the continuity, reliability and stability of the upper-layer service and the service of the equipment management system are ensured.
Embodiments of the present application provide a computer program product containing instructions, which when run on a computer device, cause the computer device to execute the device control method provided by the above-mentioned method embodiments.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
The foregoing is only a partial embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (15)

1. An apparatus control method applied to a master node, the method comprising:
receiving first indication information, sending second indication information to an original node through broadcasting, and sending third indication information to a target node;
wherein the first indication information indicates that a management node of a target device is switched from the original node to the target node;
the second indication information indicates the original node to update the configuration information of the target device, receives fourth indication information, and closes a first communication channel between the original node and the target device according to the fourth indication information under the condition that a cutoff event is consistent with a first event; the fourth indication information indicates an expiration event of a target device handled by the origin node;
the first event is a last event of the target device, which is processed by the original node before the first time when the management node of the target device is switched from the original node to the target node and is sent by the master node; the first moment is the moment when the original node receives the fourth indication information;
the third indication information indicates the target node to establish a second communication channel with the target device, and the fourth indication information is sent to the original node.
2. An apparatus control method applied to an original node, the method comprising:
receiving second indication information sent by the main node through broadcasting; wherein the second indication information indicates that the management node of the target device is switched from the original node to the target node;
responding to the second indication information, and updating configuration information of the target device corresponding to the second indication information;
receiving fourth indication information, and closing a first communication channel between the target device and the target device under the condition that a cutoff event is consistent with a first event; the fourth indication information indicates an expiration event of a target device handled by the origin node;
the first event is a last event of the target device, which is processed by the original node before the first time when the management node of the target device is switched from the original node to the target node and is sent by the master node; the first time is the time when the original node receives the fourth indication information.
3. The device control method according to claim 2, wherein the receiving of the fourth indication information and closing the first communication channel with the target device in a case where the cutoff event coincides with the first event includes:
receiving the fourth indication information, and sending confirmation information to the target node under the condition that the deadline event is consistent with the first event;
receiving fifth indication information sent by the target node, and closing the first communication channel; wherein the fifth indication information indicates that the target node has taken over the target device.
4. The device control method according to claim 3, wherein after sending the acknowledgement information to the target node, the method further comprises:
receiving service change indication information sent by the main node, and caching a second event corresponding to the service change indication information; the second event is a service event sent by the master node after the original node sends the confirmation information to the target node and before the management node of the target device is successfully changed;
the receiving fifth indication information sent by the target node, and closing the first communication channel includes:
and receiving fifth indication information sent by the target node, clearing the cache event of the target equipment, and closing the first communication channel.
5. The device control method according to claim 3, wherein said receiving fifth indication information sent by the target node and closing the first communication channel comprises:
and receiving the fourth indication information, and sending request invalidation information to the target node when the deadline event is inconsistent with the first event.
6. An apparatus control method applied to a target node, the method comprising:
receiving third indication information sent by a main node through broadcasting; wherein the third indication information indicates that the management node of the target device is switched from the original node to the target node;
responding to the third indication information, and establishing a second communication channel of the target device corresponding to the third indication information;
sending fourth indication information to the original node, wherein the fourth indication information indicates that the original node closes a first communication channel with the target device under the condition that a cutoff event is consistent with a first event; the fourth indication information indicates an expiration event of a target device handled by the origin node;
the first event is a last event of the target device, which is processed by the original node before the first time when the management node of the target device is switched from the original node to the target node and is sent by the master node; the first time is the time when the original node receives the fourth indication information.
7. The device control method according to claim 6, wherein after sending the fourth indication information to the original node, the method further comprises:
receiving confirmation information sent by the original node, and taking over the target equipment; wherein the confirmation information indicates that the expiration event is consistent with a first event;
and sending fifth indication information indicating that the target node takes over the target device to the original node.
8. The device control method according to claim 7, wherein the receiving the acknowledgement sent by the original node, taking over the target device comprises:
receiving service change indication information sent by the main node, and caching a second event corresponding to the service change indication information; the second event is a service event sent by the master node after the original node sends the confirmation information to the target node and before the management node of the target device is successfully changed;
receiving request invalidation information sent by the original node, and processing the second event; wherein the request invalidation information indicates that the deadline event is inconsistent with the first event.
9. An apparatus control device, characterized in that the device comprises:
the first receiving module is used for receiving the first indication information, sending second indication information to the original node through broadcasting and sending third indication information to the target node;
wherein the first indication information indicates that a management node of a target device is switched from the original node to the target node;
the second indication information indicates the original node to update the configuration information of the target device, receives fourth indication information, and closes a first communication channel between the original node and the target device according to the fourth indication information under the condition that a cutoff event is consistent with a first event; the fourth indication information indicates an expiration event of a target device handled by the origin node;
when the management node of the target device is switched from the original node to the target node, the first event is the last event of the target device, which is processed by the original node and sent by the master node before the first time; the first moment is the moment when the original node receives the fourth indication information;
the third indication information indicates the target node to establish a second communication channel with the target device, and the fourth indication information is sent to the original node.
10. An apparatus control device, characterized in that the device comprises:
the second receiving module is used for receiving second indication information sent by the main node through broadcasting; wherein the second indication information indicates that the management node of the target device is switched from the original node to the target node;
the updating module is used for responding to the second indication information and updating the configuration information of the target equipment corresponding to the second indication information;
the closing module is used for receiving the fourth indication information and closing a first communication channel between the closing module and the target device under the condition that the ending event is consistent with the first event; the fourth indication information indicates an expiration event of a target device handled by the origin node;
the first event is a last event of the target device, which is processed by the original node before the first time when the management node of the target device is switched from the original node to the target node and is sent by the master node; the first time is the time when the original node receives the fourth indication information.
11. A storage device having a computer program stored thereon, wherein the computer program, when executed by a processor, performs the device control method according to any one of claims 1 to 8.
12. A security device, characterized in that the security device comprises:
one or more processors;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to: performing the device control method according to any one of claims 1-8.
13. A switch having a computer program stored thereon, the computer program, when executed by a processor, performing the steps of the device control method according to any one of claims 1-8.
14. A router having a computer program stored thereon, the computer program, when being executed by a processor, performing the steps of the device control method according to any one of claims 1-8.
15. A server, comprising:
a memory for storing a computer program;
a processor for performing the steps of the device control method according to any one of claims 1-8.
CN202110821151.3A 2021-07-20 2021-07-20 Equipment control method and device, storage equipment, safety equipment, switch, router and server Active CN113271229B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110821151.3A CN113271229B (en) 2021-07-20 2021-07-20 Equipment control method and device, storage equipment, safety equipment, switch, router and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110821151.3A CN113271229B (en) 2021-07-20 2021-07-20 Equipment control method and device, storage equipment, safety equipment, switch, router and server

Publications (2)

Publication Number Publication Date
CN113271229A CN113271229A (en) 2021-08-17
CN113271229B true CN113271229B (en) 2021-11-23

Family

ID=77236867

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110821151.3A Active CN113271229B (en) 2021-07-20 2021-07-20 Equipment control method and device, storage equipment, safety equipment, switch, router and server

Country Status (1)

Country Link
CN (1) CN113271229B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102893638A (en) * 2012-06-13 2013-01-23 华为技术有限公司 Method of obtaining service gateway, mobile management node, data gateway and system
WO2017180211A1 (en) * 2016-04-14 2017-10-19 Google Inc. Smooth handover of active user traffic in mobile radio base stations
CN107786361A (en) * 2016-08-30 2018-03-09 中兴通讯股份有限公司 A kind of switching NFVO method, apparatus, VNFM/VIM and NFVO
CN110463262A (en) * 2017-03-24 2019-11-15 索尼公司 Early stage switching prepares and early stage switching command

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102893638A (en) * 2012-06-13 2013-01-23 华为技术有限公司 Method of obtaining service gateway, mobile management node, data gateway and system
WO2017180211A1 (en) * 2016-04-14 2017-10-19 Google Inc. Smooth handover of active user traffic in mobile radio base stations
CN107786361A (en) * 2016-08-30 2018-03-09 中兴通讯股份有限公司 A kind of switching NFVO method, apparatus, VNFM/VIM and NFVO
CN110463262A (en) * 2017-03-24 2019-11-15 索尼公司 Early stage switching prepares and early stage switching command

Also Published As

Publication number Publication date
CN113271229A (en) 2021-08-17

Similar Documents

Publication Publication Date Title
CN110311983B (en) Service request processing method, device and system, electronic equipment and storage medium
CN104219316A (en) Method and device for processing call request in distributed system
CN110958281B (en) Data transmission method and communication device based on Internet of things
CN103237060B (en) A kind of data object acquisition, Apparatus and system
CN111163130B (en) Network service system and data transmission method thereof
CN112118315A (en) Data processing system, method, device, electronic equipment and storage medium
CN113572835B (en) Data processing method, network element equipment and readable storage medium
EP2838243A1 (en) Capability aggregation and exposure method and system
CN113572864B (en) Data processing method, network element equipment and readable storage medium
US9628567B2 (en) Methods and systems for efficient discovery of devices in a peer-to-peer network
WO2016184178A1 (en) Resource control method and apparatus
CN113329417B (en) Network configuration method and device
CN112804289A (en) Resource synchronization method, device, equipment and storage medium
CN113300854A (en) Edge node capability expansion method, system and expansion box
Du et al. ML-SLD: A message-level stateless design for cloud-native 5G core network
CN116069493A (en) Data processing method, device, equipment and readable storage medium
CN115550354A (en) Data processing method and device and computer readable storage medium
CN113271229B (en) Equipment control method and device, storage equipment, safety equipment, switch, router and server
CN109981778B (en) Method, device, equipment and storage medium for realizing service of content distribution network
CN111770176A (en) Traffic scheduling method and device
CN106936643B (en) Equipment linkage method and terminal equipment
CN110661857B (en) Data synchronization method and device
CN112187916B (en) Cross-system data synchronization method and device
CN114595080A (en) Data processing method and device, electronic equipment and computer readable storage medium
CN113660353A (en) Method, device, equipment and medium for managing Provisioner address based on Bluetooth Mesh

Legal Events

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