CN115361428B - Remote control method and grading system - Google Patents

Remote control method and grading system Download PDF

Info

Publication number
CN115361428B
CN115361428B CN202211290685.9A CN202211290685A CN115361428B CN 115361428 B CN115361428 B CN 115361428B CN 202211290685 A CN202211290685 A CN 202211290685A CN 115361428 B CN115361428 B CN 115361428B
Authority
CN
China
Prior art keywords
target
node
node device
control
equipment
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
CN202211290685.9A
Other languages
Chinese (zh)
Other versions
CN115361428A (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.)
Beijing Dingxuan Tech Co ltd
Original Assignee
Beijing Dingxuan Tech 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 Beijing Dingxuan Tech Co ltd filed Critical Beijing Dingxuan Tech Co ltd
Priority to CN202211290685.9A priority Critical patent/CN115361428B/en
Publication of CN115361428A publication Critical patent/CN115361428A/en
Application granted granted Critical
Publication of CN115361428B publication Critical patent/CN115361428B/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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route

Abstract

In the method, when an application on a certain node device is updated or rolled back, a corresponding control instruction, a device identifier of a target node device, a node path of the target node device and a target version number of the target application need to be determined on a main device, then the target node device is found in the hierarchical system through a heartbeat mechanism, and then the target application in the target node device is subjected to designated control, so that the update or the roll back of the target application on the target node device is completed.

Description

Remote control method and grading system
Technical Field
The application relates to the technical field of remote control, in particular to a remote control method and a grading system.
Background
In the existing hierarchical system, if it is desired to update or rollback an application on a certain node device, an installer of a corresponding version needs to be sent to an operation and maintenance unit of the node device through a offline manner, and then an operation and maintenance worker manually updates or rolls back the application, which results in that the node device in the hierarchical system cannot be remotely controlled, thereby causing a problem of large manual workload.
Disclosure of Invention
In view of this, embodiments of the present application provide a remote control method and a hierarchical system, so as to implement remote control on node devices in the hierarchical system, so as to reduce manual workload.
In a first aspect, an embodiment of the present application provides a remote control method, where the method is applied to a hierarchical system, the hierarchical system includes a master device and node devices at different levels, the number of the node devices belonging to the same level is at least 1, the master device can control the node devices at different levels, a higher node device can control all lower node devices belonging to the higher node device, and different higher node devices correspond to different lower node devices, and the method includes:
the master device responds to a control operation of a user on a target node device, and determines a control instruction corresponding to the control operation, a device identifier of the target node device, a node path of the target node device, and a target version number of a target application as control information, wherein the control instruction is used for performing specified control on a version running in the target node device by the target application, and the specified control includes one of: updating and rolling back;
the master device packages the control information into first heartbeat information corresponding to the current heartbeat cycle so as to send the first heartbeat information to subordinate node devices belonging to the master device;
for each level of node equipment, after the node equipment receives heartbeat information, analyzing the received heartbeat information;
for each node device which obtains the control information by analysis, the node device judges whether the target node device is a subordinate node device of the node device according to the device identification; if the target node device is a subordinate node device of the node device, packaging the control information into second heartbeat information corresponding to the current heartbeat cycle so as to send the second heartbeat information to the target node device; after receiving the second heartbeat information, the target node equipment performs specified control on the target application according to the target version number and the control instruction carried in the heartbeat information; if the target node device is not the lower node device of the node device, the node device judges whether the node device is positioned on the node path according to the node path in the control information; if the node equipment is on the node path, packaging the control information into third heartbeat information corresponding to the current heartbeat cycle so as to send the third heartbeat information to lower-level node equipment belonging to the node equipment; and if the node equipment is not on the node path, deleting the control information.
Optionally, after receiving the second heartbeat information, the target node device performs specified control on the target application according to the target version number and the control instruction carried in the heartbeat information, where the specified control includes:
the target node equipment generates a version query instruction according to the target version number;
the target node device packages the version query instruction into third heartbeat information corresponding to a current heartbeat cycle, so as to send the third heartbeat information to an adjacent node device adjacent to the target node device, where the adjacent node device includes: subordinate node equipment of the target node equipment and superior node equipment to which the target node equipment belongs;
for each adjacent node device corresponding to each node device, after receiving heartbeat information containing the version query instruction, the adjacent node device queries whether the version number of the currently running target application is the same as the target version number, and generates a query path formed by the node devices passed by the version query instruction;
if the version number of the target application currently operated by the adjacent node equipment is the same as the target version number, the adjacent node equipment packages the target application;
the adjacent node equipment sends the encapsulated target application to the target node equipment in a data stream mode according to the query path;
and the target node equipment performs specified control on the currently running target application according to the encapsulated target application.
Optionally, the method further comprises:
if the version number of the target application currently operated by the adjacent node equipment is different from the target version number, the adjacent node equipment updates the query path according to the position of the adjacent node equipment to obtain a new query path;
and the adjacent node equipment packages the query instruction and the new query path into fourth heartbeat information corresponding to the current heartbeat cycle so as to send the fourth heartbeat information to adjacent node equipment of the adjacent node equipment.
Optionally, the method further comprises:
and after the target node equipment receives the encapsulated target application for the first time, deleting the subsequently received encapsulated target application.
Optionally, the method further comprises:
and the target node equipment stores the appointed control, the equipment identifier of the node equipment of the encapsulated target application, the version number before the appointed control and the version number after the appointed control in a key value pair mode.
In a second aspect, an embodiment of the present application provides a hierarchical system, where the hierarchical system includes a master device and node devices at each level, the number of the node devices belonging to the same level is at least 1, the master device can control the node devices at each level, a higher-level node device can control all lower-level node devices belonging to the higher-level node device, and different higher-level node devices correspond to different lower-level node devices;
the master device is configured to determine, in response to a control operation performed on a target node device by a user, a control instruction corresponding to the control operation, a device identifier of the target node device, a node path of the target node device, and a target version number of a target application as control information, where the control instruction is used to perform specified control on a version of the target application running in the target node device, and the specified control includes one of: updating and rolling back;
the master device is further configured to encapsulate the control information into first heartbeat information corresponding to a current heartbeat cycle, so as to send the first heartbeat information to a lower node device belonging to the master device;
for each level of node equipment, after the node equipment receives heartbeat information, analyzing the received heartbeat information;
for each node device which obtains the control information by analysis, the node device is also used for judging whether the target node device is a lower node device of the node device according to the device identifier; if the target node device is a lower node device of the node device, the target node device is used for packaging the control information into second heartbeat information corresponding to the current heartbeat cycle so as to send the second heartbeat information to the target node device; the target node device is configured to perform, after receiving the second heartbeat information, specified control on the target application according to the target version number and the control instruction carried in the heartbeat information; if the target node device is not the lower node device of the node device, the node device is further configured to determine whether the target node device is located on the node path according to the node path in the control information; if the node device is on the node path, the node device is used for packaging the control information into third heartbeat information corresponding to the current heartbeat cycle so as to send the third heartbeat information to a lower-level node device belonging to the node device; and if the node equipment is not on the node path, deleting the control information.
Optionally, when the target node device is configured to perform specified control on the target application according to the target version number and the control instruction carried in the heartbeat information after receiving the second heartbeat information, the method includes:
the target node equipment generates a version query instruction according to the target version number;
the target node device packages the version query instruction into third heartbeat information corresponding to a current heartbeat cycle, so as to send the third heartbeat information to an adjacent node device adjacent to the target node device, where the adjacent node device includes: subordinate node equipment of the target node equipment and superior node equipment to which the target node equipment belongs;
for each adjacent node device corresponding to each node device, after receiving heartbeat information containing the version query instruction, the adjacent node device queries whether the version number of the currently running target application is the same as the target version number, and generates a query path formed by the node devices passed by the version query instruction;
if the version number of the target application currently operated by the adjacent node equipment is the same as the target version number, the adjacent node equipment packages the target application;
the adjacent node equipment sends the encapsulated target application to the target node equipment in a data stream mode according to the query path;
and the target node equipment performs specified control on the currently running target application according to the encapsulated target application.
Optionally, if the version number of the target application currently operated by the neighboring node device is different from the target version number, the neighboring node device is further configured to update the query path according to the location of the neighboring node device, so as to obtain a new query path;
the neighboring node device is further configured to encapsulate the query instruction and the new query path into fourth heartbeat information corresponding to the current heartbeat cycle, so as to send the fourth heartbeat information to the neighboring node device adjacent to the neighboring node device.
Optionally, the target node device is further configured to delete a subsequently received encapsulated target application after receiving the encapsulated target application for the first time.
Optionally, the target node device is further configured to store the specified control, the device identifier of the node device that sends the encapsulated target application, the version number before the specified control, and the version number after the specified control in a key value pair form.
The technical scheme provided by the embodiment of the application can have the following beneficial effects:
in the application, when an application on a certain node device is updated or rolled back, a corresponding control instruction, a device identifier of a target node device, a node path of the target node device, and a target version number of the target application need to be determined on a main device, then the target node device is found in a hierarchical system through a heartbeat mechanism, and then the target application in the target node device is subjected to designated control, so that the update or the roll back of the target application on the target node device is completed.
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a schematic partial structural diagram of a classification system according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a remote control method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of another remote control method according to an embodiment of the present application;
fig. 4 is a schematic flowchart of another remote control method according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
Fig. 1 is a partial structural schematic diagram of a hierarchical system provided in an embodiment of the present application, as shown in fig. 1, the hierarchical system includes 1 master device and multiple node devices at each level, the number of the node devices belonging to the same level is at least 1, as shown in fig. 1, the node devices located on the same dotted line belong to the node devices at the same level, where the master device can manage and control the node devices at each level, and the higher node device manages and controls all the lower node devices belonging to the higher node device, in the adjacent two-level node devices, the node device a is the higher node device, and the node device B, the node device C, and the node device D are the lower node devices belonging to the higher node device, as shown in fig. 1, for the node device a, the node device B, the node device C, and the node device D, the node device a is the higher node device, and the node device B are the lower node devices belonging to the higher node device a, and the node device D are different higher node devices, and the different numbers of the lower node devices corresponding to different higher node devices are also different higher node devices, as shown in fig. 1.
Meanwhile, it should be noted that version numbers of the same application running in different node devices may be different, and applications running in different node devices may also be different.
The following is a detailed description of examples of the present application.
Example one
Fig. 2 is a schematic flowchart of a remote control method according to an embodiment of the present application, where the method is applied to the hierarchical system shown in fig. 1, and as shown in fig. 2, the method includes the following steps:
step 201, the master device, in response to a control operation of a target node device by a user, determines a control instruction corresponding to the control operation, a device identifier of the target node device, a node path of the target node device, and a target version number of a target application as control information, where the control instruction is used to perform specified control on a version of the target application running in the target node device, and the specified control includes one of: update and rollback.
Specifically, as shown in fig. 1, when a user wants to update or rollback a certain application on a certain node device, the node device may be regarded as a target node device, the application may be regarded as a target application, and a control operation is performed on a master device, for example: the main device may display all the node devices, the user may select a target node device to be operated, at this time, each application running on the target node device is displayed on the main device, the user selects the target application again, then selects whether to perform an update operation or a rollback operation on the target application, and determines a version after the update or the rollback operation on the target application, at this time, the main device may determine whether to perform the update operation or the rollback operation on the control instruction of the target node device, a device identifier of the target node device, and a target version number of the target application according to the above operations, and may determine a path from the main device to the target node device according to a structure of the hierarchical system, so as to use the path as a node path of the target node device.
It should be noted that the update referred to in the present application is to update an application program from an application with a lower version number to an application with a higher version number, and the rollback is to update an application program from an application with a higher version number to an application with a lower version number.
Step 202, the master device packages the control information into first heartbeat information corresponding to a current heartbeat cycle, so as to send the first heartbeat information to a subordinate node device belonging to the master device.
Specifically, heartbeat information is sent between the master device and the subordinate node devices belonging to the master device, and between the superior node device and the subordinate node devices according to a set heartbeat cycle, so as to determine whether the master device and each node device still survive, that is: the main device sends heartbeat information to subordinate node devices belonging to the main device, the subordinate node devices also send heartbeat information to the main device, the superior node devices send heartbeat information to the subordinate node devices belonging to the superior node devices, the subordinate node devices also send heartbeat information to the superior node devices, and further the heartbeat information is sent mutually.
Since the heartbeat information is sent according to a period, the control information can be encapsulated in the heartbeat information to be sent in the current heartbeat period, so that the heartbeat information is sent to the subordinate node device belonging to the main device, and the subordinate node device can send the control information to the subordinate node device belonging to the subordinate node device after receiving the heartbeat information until the target node device is found.
And 203, for each level of node equipment, after the node equipment receives the heartbeat information, analyzing the received heartbeat information.
Step 204, for each node device that has acquired the control information by analysis, the node device determines whether the target node device is a subordinate node device of the node device according to the device identifier; if the target node device is a lower node device of the node device, packaging the control information into second heartbeat information corresponding to the current heartbeat cycle so as to send the second heartbeat information to the target node device; after receiving the second heartbeat information, the target node equipment performs specified control on the target application according to the target version number and the control instruction carried in the heartbeat information; if the target node device is not the lower node device of the node device, the node device judges whether the node device is positioned on the node path according to the node path in the control information; if the node equipment is on the node path, packaging the control information into third heartbeat information corresponding to the current heartbeat cycle so as to send the third heartbeat information to subordinate node equipment belonging to the node equipment; and if the node equipment is not on the node path, deleting the control information.
Specifically, for each node device, the node device may parse the heartbeat information after receiving the heartbeat information, and if the heartbeat information is obtained through parsing and the node device is not a target node device, after receiving the control information, the node device needs to encapsulate the control information in the heartbeat information sent to a lower node device, but not in the heartbeat information sent to a higher node device, so that the control information may be continuously transmitted in a direction away from the main device until reaching the target node device.
Since the higher node device can control the lower node devices, the higher node device knows all the lower node devices belonging to the higher node device, and therefore after one node device analyzes the heartbeat information to obtain the control information, it needs to judge whether the higher node device is the higher node device of the target node device according to the device identifier in the control information, if so, the control information needs to be carried in the heartbeat information sent to the target node device, but not in the heartbeat information sent to other lower node devices, as shown in fig. 1, if the node device B is the target node device, after the node device a receives the control information, the node device a only carries the control information in the heartbeat information sent to the node device B, and does not carry the control information in the heartbeat information sent to the node device C and the node device D.
If the node device receiving the control information is not the upper node device of the target node device, it indicates that the node device receiving the control information may be located on the node path, and therefore, it may be determined whether the node device itself is located on the node path according to the node path, and if the node device is located on the node path, the node device only needs to encapsulate the control information into the heartbeat information sent to all the node devices belonging thereto, so that it may be ensured that the control information is still sent toward the target node device, and if not, it indicates that it is impossible to send the control information to the target node device through the node device, and therefore, it is necessary to delete the control information, as shown in fig. 1, if the node device B is located in the hierarchical subsequent node device, after the node device a analyzes the obtained control information, if the node device B, the node device C, and the node device D are not target node devices, the control information is carried in the heartbeat information sent to the node device B, the node device C, and the node device D, if the node device B is located on the node path, the node device C and the node device D are not located on the node path, and if the target node device B carries the control information, it is not a target node device, it determines that the target node device that the control information is sent to the target node B, and if the target node device D, it only sends the target node device that the control information carried in the target node device is not carried in the control information, and if it is sent to the target node device, and if it is not carried in the target node device, and if it, and the target node device.
According to the method, the node devices positioned on the node path in each level of node devices can be screened, then the screened node devices send the control information to the lower level node devices, and the like until the control information is sent to the target node device.
In a feasible embodiment, fig. 3 is a schematic flowchart of another remote control method provided in an embodiment of the present application, and as shown in fig. 3, after receiving the second heartbeat information, the target node device performs specified control on the target application according to the target version number and the control instruction carried in the heartbeat information, which specifically may be implemented by the following steps:
step 301, the target node device generates a version query instruction according to the target version number.
Step 302, the target node device encapsulates the version query instruction into third heartbeat information corresponding to a current heartbeat cycle, so as to send the third heartbeat information to an adjacent node device adjacent to the target node device, where the adjacent node device includes: subordinate node devices of the target node device and a superior node device to which the target node device belongs.
Step 303, for each adjacent node device corresponding to each node device, after receiving heartbeat information including the version query instruction, the adjacent node device queries whether the version number of the currently running target application is the same as the target version number, and generates a query path formed by the node devices passed by the version query instruction.
And 304, if the version number of the target application currently operated by the adjacent node device is the same as the target version number, encapsulating the target application by the adjacent node device.
And 305, the adjacent node device sends the encapsulated target application to the target node device in a data stream form according to the query path.
And step 306, the target node device performs specified control on the currently running target application according to the encapsulated target application.
Specifically, because versions of target applications running in different node devices are different, the target node device may update or rollback the target application running by using the target application in the node device running the target version number, in order to determine which version number of the target application running in the node device is the target version number, the target node device may encapsulate the target version number into all heartbeat information to be sent, so as to send the heartbeat information to all neighboring node devices capable of performing heartbeat interaction with the target node device, for each neighboring node device adjacent to the target node device (including a higher node device of the target node device and each lower node device belonging to the target node device), the neighboring node device queries whether the version number of the target application running by itself is the same as the target version number after receiving the heartbeat information carrying the target version number, and if so, the neighboring node device encapsulates the target application, and then sends the encapsulated target application to the target node device in a data stream form, so that the target node device updates or rolls back the target application running by using a new query path after receiving the encapsulated target application. If the version number of the target application running in the adjacent node device adjacent to the target node device is not the target version number, for each adjacent node device, the adjacent node device packages the target version number into heartbeat information, then sends the heartbeat information to the adjacent node device adjacent to the adjacent node device, and so on until the version number of the target application running in a certain node device is the target version number, then the node device packages the target application running by itself, and then sends the heartbeat information to the target node device in a data stream mode, at this time, the node device does not send the heartbeat information carrying the target version number to the adjacent node device adjacent to the node device, only sends common heartbeat information to the adjacent node device adjacent to the node device, and when other node devices determine that the version number of the target application running by itself is not the target version number, the node device adjacent to the node device continues to send the heartbeat information carrying the target version number.
When a certain node device determines that the version number of the target application running by the certain node device is not the target version number, a query path is formed according to the node devices through which the version query instruction received by the node device passes, and the node path from the node device to the target node device can be determined through the query path, so that the target node device can be found. In the process of searching for the target version number, a plurality of query paths may be formed, where for each query path, the starting location is the target node device, and the end location includes two types: the first is the node device with the running target application version number as the target version number, and the second is the node device with the running target application version number not as the target version number, but the node device no longer has the adjacent node device adjacent to the node device, for the query path corresponding to the first condition, the node device with the running target application version number as the target version number stops continuously querying downwards, and the node devices with the running target application version numbers as the target version numbers in the hierarchical system can be traversed by the mode.
It should be noted that, the neighboring node devices in this application are not mutual, that is: the node device receiving the heartbeat information carrying the version inquiry command is a node device adjacent to the node device sending the heartbeat information, but the node device sending the heartbeat information is not the node device adjacent to the node device receiving the heartbeat information.
By the method, the target application in the target node equipment can be updated or rolled back by using the applications in the surrounding node equipment, so that the data volume in the heartbeat information is reduced, and the remote control efficiency of the target node equipment is improved.
In a possible embodiment, fig. 4 is a schematic flowchart of another remote control method provided in an embodiment of the present application, and as shown in fig. 4, after step 303 is executed, if a version number of the target application currently run by the neighboring node device is different from the target version number, the execution continues according to the following steps:
step 401, the adjacent node device updates the query path according to the position of the adjacent node device, so as to obtain a new query path.
Step 402, the neighboring node device packages the query instruction and the new query path into fourth heartbeat information corresponding to the current heartbeat cycle, so as to send the fourth heartbeat information to neighboring node devices adjacent to the neighboring node device.
Specifically, for a certain version query instruction, in the process that the version query instruction is carried in heartbeat information and sent to an adjacent node device, a node device, that is, a query path, through which the version query instruction has passed is also recorded, the node device that has currently received the heartbeat information can determine the node device that has passed from a target node device to the node device according to the query path, and when the version number of a target application running in the node device is not a target version number, the query path is updated according to the position of the node device, a node path from the node device to the target node device can be obtained through the new query path, and then the new node path is sent to the adjacent node device of the node device through heartbeat information.
In a feasible embodiment, because a plurality of node devices running the target version number can be found by the method, and each node device sends the encapsulated target application to the target node device, in order to prevent the target node device from repeatedly updating or rolling back, the target node device deletes the subsequently received encapsulated target application after receiving the encapsulated target application for the first time, and the method can prevent the grading system from performing additional management on heartbeat information, thereby being beneficial to reducing the complexity of the analysis system.
In a possible embodiment, after the target node device completes the designated control, the target node device stores the designated control, the device identifier of the node device that sends the encapsulated target application, the version number before the designated control, and the version number after the designated control in the form of a key-value pair. Through the information, an update or rollback log of the target node device can be formed so as to facilitate subsequent inquiry.
Example two
The second embodiment of the present application provides a hierarchical system, where the hierarchical system includes a main device and node devices at different levels, the number of the node devices belonging to the same level is at least 1, the main device can manage and control the node devices at different levels, an upper node device can manage and control all lower node devices belonging to the upper node device, and different upper node devices correspond to different lower node devices;
the master device responds to a control operation of a user on a target node device, and determines a control instruction corresponding to the control operation, a device identifier of the target node device, a node path of the target node device, and a target version number of a target application as control information, where the control instruction is used to perform specified control on a version of the target application running in the target node device, and the specified control includes one of: updating and rolling back;
the master device is further configured to encapsulate the control information into first heartbeat information corresponding to a current heartbeat cycle, so as to send the first heartbeat information to a lower node device belonging to the master device;
for each level of node equipment, after the node equipment receives the heartbeat information, analyzing the received heartbeat information;
for each node device which analyzes and acquires the control information, the node device is also used for judging whether the target node device is a subordinate node device of the node device according to the device identification; if the target node device is a lower node device of the node device, the target node device is used for packaging the control information into second heartbeat information corresponding to the current heartbeat cycle so as to send the second heartbeat information to the target node device; the target node device is configured to perform, after receiving the second heartbeat information, specified control on the target application according to the target version number and the control instruction carried in the heartbeat information; if the target node device is not the lower node device of the node device, the node device is further configured to determine whether the target node device is located on the node path according to the node path in the control information; if the node device is on the node path, the node device is used for packaging the control information into third heartbeat information corresponding to the current heartbeat cycle so as to send the third heartbeat information to a lower-level node device belonging to the node device; and if the node equipment is not on the node path, deleting the control information.
In a possible embodiment, when the target node device is configured to perform, after receiving the second heartbeat message, specified control on the target application according to the target version number and the control instruction carried in the heartbeat message, the method includes:
the target node equipment generates a version query instruction according to the target version number;
the target node device packages the version query instruction into third heartbeat information corresponding to a current heartbeat cycle, so as to send the third heartbeat information to an adjacent node device adjacent to the target node device, where the adjacent node device includes: subordinate node equipment of the target node equipment and superior node equipment to which the target node equipment belongs;
for each adjacent node device corresponding to each node device, after receiving heartbeat information containing the version query instruction, the adjacent node device queries whether the version number of the currently running target application is the same as the target version number, and generates a query path formed by the node devices passed by the version query instruction;
if the version number of the target application currently operated by the adjacent node equipment is the same as the target version number, the adjacent node equipment packages the target application;
the adjacent node equipment sends the encapsulated target application to the target node equipment in a data stream mode according to the query path;
and the target node equipment performs specified control on the currently running target application according to the encapsulated target application.
In a possible embodiment, if the version number of the target application currently operated by the neighboring node device is different from the target version number, the neighboring node device is further configured to update the query path according to the location of the neighboring node device, so as to obtain a new query path;
the adjacent node device is further configured to encapsulate the query instruction and the new query path into fourth heartbeat information corresponding to the current heartbeat cycle, so as to send the fourth heartbeat information to the adjacent node device adjacent to the adjacent node device.
In a possible embodiment, the target node device is further configured to delete a subsequently received encapsulated target application after receiving the encapsulated target application for the first time.
In a possible embodiment, the target node device is further configured to store the specified control, the device identifier of the node device that sends the encapsulated target application, the version number before the specified control, and the version number after the specified control in a key-value pair form.
For the related description of the second embodiment, reference is made to the detailed explanation of the first embodiment, and the detailed explanation is not repeated here.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus once an item is defined in one figure, it need not be further defined and explained in subsequent figures, and moreover, the terms "first", "second", "third", etc. are used merely to distinguish one description from another and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present application, and are used for illustrating the technical solutions of the present application, but not limiting the same, and the scope of the present application is not limited thereto, and although the present application is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: those skilled in the art can still make modifications or changes to the embodiments described in the foregoing embodiments, or make equivalent substitutions for some features, within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present application. Are intended to be covered by the scope of this application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A remote control method is characterized in that the method is applied to a hierarchical system, the hierarchical system comprises a main device and node devices of all levels, the number of the node devices belonging to the same level is at least 1, the main device can control the node devices of all levels, a superior node device can control all subordinate node devices belonging to the superior node device, and different superior node devices correspond to different subordinate node devices, the method comprises the following steps:
the method includes that a master device responds to a control operation of a user on a target node device, and determines a control instruction corresponding to the control operation, a device identifier of the target node device, a node path of the target node device, and a target version number of a target application as control information, wherein the control instruction is used for performing specified control on a version of the target application running in the target node device, and the specified control includes one of: updating and rolling back;
the master device packages the control information into first heartbeat information corresponding to the current heartbeat cycle so as to send the first heartbeat information to subordinate node devices belonging to the master device;
for each level of node equipment, after the node equipment receives heartbeat information, analyzing the received heartbeat information;
for each node device which obtains the control information by analysis, the node device judges whether the target node device is a subordinate node device of the node device according to the device identification; if the target node device is a subordinate node device of the node device, packaging the control information into second heartbeat information corresponding to the current heartbeat cycle so as to send the second heartbeat information to the target node device; after receiving the second heartbeat information, the target node equipment performs specified control on the target application according to the target version number and the control instruction carried in the heartbeat information; if the target node device is not the lower node device of the node device, the node device judges whether the node device is located on the node path according to the node path in the control information; if the node equipment is on the node path, packaging the control information into third heartbeat information corresponding to the current heartbeat cycle so as to send the third heartbeat information to lower-level node equipment belonging to the node equipment; and if the node equipment is not on the node path, deleting the control information.
2. The method of claim 1, wherein after receiving the second heartbeat information, the target node device performs specified control on the target application according to the target version number and the control instruction carried in the heartbeat information, and includes:
the target node equipment generates a version query instruction according to the target version number;
the target node device packages the version query instruction into third heartbeat information corresponding to a current heartbeat cycle, so as to send the third heartbeat information to an adjacent node device adjacent to the target node device, where the adjacent node device includes: subordinate node equipment of the target node equipment and superior node equipment to which the target node equipment belongs;
for each adjacent node device corresponding to each node device, after receiving heartbeat information containing the version query instruction, the adjacent node device queries whether the version number of the currently running target application is the same as the target version number, and generates a query path formed by the node devices passed by the version query instruction;
if the version number of the target application currently operated by the adjacent node equipment is the same as the target version number, the adjacent node equipment packages the target application;
the adjacent node equipment sends the encapsulated target application to the target node equipment in a data stream mode according to the query path;
and the target node equipment performs specified control on the currently running target application according to the encapsulated target application.
3. The method of claim 2, wherein the method further comprises:
if the version number of the target application currently operated by the adjacent node equipment is different from the target version number, the adjacent node equipment updates the query path according to the position of the adjacent node equipment to obtain a new query path;
and the adjacent node equipment packages the query instruction and the new query path into fourth heartbeat information corresponding to the current heartbeat cycle so as to send the fourth heartbeat information to adjacent node equipment of the adjacent node equipment.
4. The method of claim 3, further comprising:
and after the target node equipment receives the encapsulated target application for the first time, deleting the subsequently received encapsulated target application.
5. The method of claim 3, wherein the method further comprises:
and the target node equipment stores the appointed control, the equipment identifier of the node equipment of the encapsulated target application, the version number before the appointed control and the version number after the appointed control in a key value pair mode.
6. A grading system is characterized by comprising main equipment and node equipment of each grade, wherein the number of the node equipment belonging to the same grade is at least 1, the main equipment can control the node equipment of each grade, the upper node equipment can control all lower node equipment belonging to the upper node equipment, and different upper node equipment corresponds to different lower node equipment;
the master device is configured to, in response to a control operation of a user on a target node device, determine, as control information, a control instruction corresponding to the control operation, a device identifier of the target node device, a node path of the target node device, and a target version number of a target application, where the control instruction is used to perform specified control on a version of the target application running in the target node device, and the specified control includes one of: updating and rolling back;
the master device is further configured to encapsulate the control information into first heartbeat information corresponding to a current heartbeat cycle, so as to send the first heartbeat information to a lower node device belonging to the master device;
for each level of node equipment, after the node equipment receives heartbeat information, analyzing the received heartbeat information;
for each node device which obtains the control information by analysis, the node device is also used for judging whether the target node device is a lower node device of the node device according to the device identifier; if the target node device is a lower node device of the node device, the target node device is used for packaging the control information into second heartbeat information corresponding to the current heartbeat cycle so as to send the second heartbeat information to the target node device; the target node device is configured to perform, after receiving the second heartbeat information, specified control on the target application according to the target version number and the control instruction carried in the heartbeat information; if the target node device is not the lower node device of the node device, the node device is further configured to determine whether the target node device is located on the node path according to the node path in the control information; if the node device is on the node path, the node device is used for packaging the control information into third heartbeat information corresponding to the current heartbeat cycle so as to send the third heartbeat information to a lower-level node device belonging to the node device; and if the node equipment is not on the node path, deleting the control information.
7. The system according to claim 6, wherein the target node device, when configured to perform specified control on the target application according to the target version number and the control instruction carried in the heartbeat information after receiving the second heartbeat information, is configured to:
the target node equipment generates a version query instruction according to the target version number;
the target node device packages the version query instruction into third heartbeat information corresponding to a current heartbeat cycle, so as to send the third heartbeat information to an adjacent node device adjacent to the target node device, wherein the adjacent node device includes: subordinate node equipment of the target node equipment and superior node equipment to which the target node equipment belongs;
for each adjacent node device corresponding to each node device, after receiving heartbeat information containing the version query instruction, the adjacent node device queries whether the version number of the currently running target application is the same as the target version number, and generates a query path formed by the node devices passed by the version query instruction;
if the version number of the target application currently operated by the adjacent node equipment is the same as the target version number, the adjacent node equipment packages the target application;
the adjacent node equipment sends the encapsulated target application to the target node equipment in a data stream mode according to the query path;
and the target node equipment performs specified control on the currently running target application according to the encapsulated target application.
8. The system of claim 7, wherein if the version number of the target application currently operated by the neighboring node device is different from the target version number, the neighboring node device is further configured to update the query path according to its location to obtain a new query path;
the adjacent node device is further configured to encapsulate the query instruction and the new query path into fourth heartbeat information corresponding to the current heartbeat cycle, so as to send the fourth heartbeat information to the adjacent node device adjacent to the adjacent node device.
9. The system of claim 8, wherein the target node device is further configured to delete a subsequently received encapsulated target application after receiving the encapsulated target application for the first time.
10. The system of claim 8, wherein the target node device is further configured to store the designated control, the device identifier of the node device that sent the encapsulated target application, the version number before the designated control, and the version number after the designated control in the form of key-value pairs.
CN202211290685.9A 2022-10-21 2022-10-21 Remote control method and grading system Active CN115361428B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211290685.9A CN115361428B (en) 2022-10-21 2022-10-21 Remote control method and grading system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211290685.9A CN115361428B (en) 2022-10-21 2022-10-21 Remote control method and grading system

Publications (2)

Publication Number Publication Date
CN115361428A CN115361428A (en) 2022-11-18
CN115361428B true CN115361428B (en) 2022-12-16

Family

ID=84008639

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211290685.9A Active CN115361428B (en) 2022-10-21 2022-10-21 Remote control method and grading system

Country Status (1)

Country Link
CN (1) CN115361428B (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110633096B (en) * 2018-06-21 2023-09-15 阿里巴巴集团控股有限公司 Node control method and device, version control method and device and distributed system
CN110222500A (en) * 2019-06-14 2019-09-10 深圳前海微众银行股份有限公司 Method for edition management, device, equipment and computer readable storage medium
EP4099655A4 (en) * 2020-02-28 2023-02-15 Huawei Technologies Co., Ltd. Software version rollback method, apparatus and system
CN111625262B (en) * 2020-05-28 2023-08-22 广东浪潮大数据研究有限公司 Rollback method, system, equipment and storage medium of workload resource
CN112905230A (en) * 2021-03-16 2021-06-04 深圳市麦谷科技有限公司 Application program management method and device, terminal equipment and storage medium
CN115129351A (en) * 2022-07-04 2022-09-30 潍柴动力股份有限公司 Method for upgrading slave controller, master controller and slave controller

Also Published As

Publication number Publication date
CN115361428A (en) 2022-11-18

Similar Documents

Publication Publication Date Title
US11386156B1 (en) Threshold establishment for key performance indicators derived from machine data
US10887191B2 (en) Service monitoring interface with aspect and summary components
US10503745B2 (en) Creating an entity definition from a search result set
US9760613B2 (en) Incident review interface
US9838280B2 (en) Creating an entity definition from a file
US20160103918A1 (en) Associating entities with services using filter criteria
CN102487522B (en) Management method and gateway device of terminal devices
CN111552521A (en) Application data reporting method, device, server and storage medium
CN115361428B (en) Remote control method and grading system
CN105893445A (en) Data processing method, server and terminal device
JP2007026391A (en) Operation management rule diversion device, operation management rule diversion method and program
CN113377682A (en) Service testing method and device
CN113711146A (en) Management system

Legal Events

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