System software deployment and verification method and system based on directional distribution mechanism

Through the DDS-based targeted distribution mechanism and MD5 verification method, the problems of low efficiency and incomplete verification of traditional software deployment are solved, and efficient and reliable automated software deployment and verification are achieved, ensuring the accuracy and security of software in distributed systems.

CN120704700APending Publication Date: 2025-09-26THE 724TH RESEARCH INSTITUTE OF CHINA STATE SHIPBUILDING CORP LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510854851.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-24
Publication Date
2025-09-26

AI Technical Summary

Technical Problem

The traditional point-to-point software deployment method is inefficient and cannot perform automatic verification, resulting in an unguaranteed success rate for software deployment and an inability to meet the actual needs of large-scale distributed server cabinet clusters.

Method used

Adopting a DDS-based directional distribution mechanism and MD5 verification method, the display and control service software and the agent service software work together to ensure communication consistency, and use MD5 verification to confirm the integrity and correctness of the software package, thus realizing automated deployment and verification.

Benefits of technology

It significantly improves the accuracy and security of software deployment, avoids the risk of misdeployment, reduces hash collisions, and achieves a more efficient and reliable software deployment process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120704700A_ABST
    Figure CN120704700A_ABST
Patent Text Reader

Abstract

The invention discloses a system software deployment and verification method and system based on a directional distribution mechanism, the method is jointly completed by display and control service software and proxy service software, the display and control service software runs on a terminal with an operating system, and a software deployment command can be issued, so that the system software can be deployed and verified. The proxy service software runs in a to-be-deployed distributed system, the proxy service software is in a system self-starting state, and when the system is started, the proxy service software is also started to run; the display control service software and the proxy service software are communicated through a DDS (Direct Digital Synthesizer); and finally completing deployment and verification of the system software. The system comprises a proxy service state processing module, a display control service network transceiving module, an MD5 generation module, a software package processing module and the like, and realizes deployment of full-process closed-loop management and control. According to the method, the Hash collision phenomenon is reduced, and the method is more efficient and reliable.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of software deployment, and in particular relates to a system software deployment and verification method and system based on a directional distribution mechanism. Background Art

[0002] The widespread adoption of informatization and digitalization has driven the widespread use of server cabinets. Server cabinets are generally divided into three levels: the cabinet, the chassis, and the boards. The boards belong to the chassis and plug into its slots; the chassis belongs to the cabinet and is installed in the cabinet's rotating cage. The processing functions of the server cabinet are performed by the software within the boards. The number of software programs within a server ranges from dozens to hundreds. This is especially true for large-scale distributed server cabinet clusters. The traditional manual, point-to-point program loading method is not only inefficient, but also lacks automatic verification after software deployment, resulting in an uncertain success rate and no longer meeting practical needs. Therefore, an efficient communication mechanism is needed to replace the point-to-point model, while also adding a software package verification mechanism to ensure the success rate of software deployment.

[0003] DDS (Data Distribution Service) is a next-generation, data-centric communications middleware technology. Utilizing a publish / subscribe mechanism, DDS is optimized for distributed data exchange with low latency and high throughput, meeting the requirements of a wide range of distributed communications applications. This makes it widely applicable in defense, aviation, simulation, industrial automation, and other fields, including the Aegis Open Architecture, the Ship Self-Defense System, and the Littoral Combat Ship. DDS's data-centric publish / subscribe model eliminates coupling, offering excellent distributed data distribution characteristics and exceptional capabilities for handling complex data flows in distributed systems. DDS is reliable and fault-tolerant, supporting multiple reliability mechanisms to ensure reliable data transmission. Furthermore, DDS automatically detects and recovers from network or node failures, ensuring system stability.

[0004] MD5 (Message-Digest Algorithm 5) is a widely used cryptographic hash function that is irreversible, deterministic, and fast. MD5 is a one-way hash function that generates a hash value of fixed length (128 bits) by operating on messages of arbitrary length. The original message content cannot be reversely deduced from the generated hash value, which provides high security. For the same input information, MD5 always generates the same hash value. This feature makes it suitable for verifying data integrity. For example, in scenarios such as file transfer and data storage, the MD5 code of a file can be compared to determine whether the file is damaged or tampered with. MD5 is relatively fast to calculate and can process large amounts of data in a short period of time.

[0005] Chinese patent document CN105867934B proposes a remote file upgrade method based on binary search and MD5 checksums, and Chinese patent document CN1 12367171B proposes a data transmission method and component based on RSA and MD5. Both of these methods lack the convenience of methods based on the DDS communication mechanism. Therefore, the combination of DDS and MD5 offers a more efficient and reliable approach and method for distributed software deployment, and has broad application prospects compared to traditional point-to-point software deployment methods. Summary of the Invention

[0006] The present invention aims to provide a system software deployment and verification method and system based on a targeted distribution mechanism, thereby improving the accuracy and security of software deployment and avoiding the risk of misdeployment.

[0007] To achieve the purpose of the present invention, on the one hand, the present invention provides a system software deployment and verification method based on a targeted distribution mechanism, comprising the following steps:

[0008] S1. Configure the same version of DDS communication middleware for the display and control service software and the proxy service software, and set the same domain name. Ensure that the publishing topic of the display and control service software is consistent with the subscription topic of the proxy service software, and ensure that DDS communication between the display and control service software and the proxy service software can be normal.

[0009] S2. Install the system software library of the display and control service software to ensure that the system software library is available;

[0010] S3, display and control service software runs on a terminal with an operating system;

[0011] S4. The proxy service software runs in the distributed system to be deployed. The proxy service software is set to the system auto-start state. When the system is turned on, the proxy service software also starts running.

[0012] S5. The display and control service software receives the system status information reported by the proxy service software: after starting, the proxy service software obtains the status information of the distributed system in which it is located, and reports the status information to the display and control service software through DDS;

[0013] S6. The display and control service software issues a system software deployment command: the display and control service software issues a software deployment command after receiving the status information reported by the proxy service software;

[0014] S7, the proxy service software receives the software package sent by the display and control service software and performs verification;

[0015] S8, the proxy service software feeds back the verification result to the display and control service software via DDS for display and processing;

[0016] S9. The display and control service software receives and analyzes the software verification information. If the verification result is successful, the deployment is completed; otherwise, for the failed software, the corresponding software is selected again for secondary deployment based on the status information of the proxy service software.

[0017] On the other hand, the present invention also provides a system for system software deployment and verification method based on a targeted distribution mechanism, comprising the following modules:

[0018] The proxy service status processing module is used to obtain and report the status of the distributed system in which it is located;

[0019] a display and control service network receiving module, configured to receive the status reported by the proxy service status processing module;

[0020] Display and control service network sending module, used to send system software package data and system software deployment commands;

[0021] Display and control service display module, used to display the feedback status of system software deployment results;

[0022] Display and control service control module, used to issue system software deployment commands;

[0023] Display and control service database module, used to store system software and system software-system relationship table;

[0024] The display and control service MD5 generation module is used to determine the MD5 code to complete software command deployment and verification;

[0025] The proxy service software package processing module is used to receive and verify the system software package sent by the display and control service network sending module.

[0026] An electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the system software deployment and verification method based on the targeted distribution mechanism is implemented.

[0027] A non-transitory computer-readable storage medium stores computer instructions, wherein the computer instructions are used to enable the computer to execute the above-mentioned system software deployment and verification method based on the targeted distribution mechanism.

[0028] A computer program product includes computer program instructions. When the computer program instructions are run on a computer, the computer is caused to execute the above-mentioned system software deployment and verification method based on a targeted distribution mechanism.

[0029] Compared with the existing technology, the significant progress of the present invention is that: through targeted distribution and multiple verifications, the present invention significantly improves the accuracy and security of software deployment, avoids the risk of misdeployment, reduces hash collisions, and is more efficient and reliable.

[0030] In order to more clearly illustrate the functional characteristics and structural parameters of the present invention, further description is given below with reference to the accompanying drawings and specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0032] Figure 1 is a flow chart of the steps of the present invention;

[0033] Figure 2 It is a schematic diagram of an implementation of the present invention. DETAILED DESCRIPTION

[0034] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments; based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0035] The present invention is a system software deployment and verification method based on a directional distribution mechanism, combined with Figure 1 , including the following steps:

[0036] S1. Configure the same version of DDS communication middleware for the display and control service software and the proxy service software, and set the same domain name. Ensure that the publishing topic of the display and control service software is consistent with the subscription topic of the proxy service software, and ensure that DDS communication between the display and control service software and the proxy service software can be normal.

[0037] S2. Install the system software library of the display and control service software to ensure that the system software library is available;

[0038] S3, display and control service software runs on a terminal with an operating system;

[0039] S4. The proxy service software runs in the distributed system to be deployed. The proxy service software is set to the system auto-start state. When the system is turned on, the proxy service software also starts running.

[0040] S5. The display and control service software receives the system status information reported by the proxy service software: after starting, the proxy service software obtains the status information of the distributed system in which it is located, and reports the status information to the display and control service software through DDS;

[0041] S6. The display and control service software issues a system software deployment command: the display and control service software issues a software deployment command after receiving the status information reported by the proxy service software;

[0042] S7, the proxy service software receives the software package sent by the display and control service software and performs verification;

[0043] S8, the proxy service software feeds back the verification result to the display and control service software via DDS for display and processing;

[0044] S9. The display and control service software receives and analyzes the software verification information. If the verification result is successful, the deployment is completed; otherwise, for the failed software, the corresponding software is selected again for secondary deployment based on the status information of the proxy service software.

[0045] The status information in S5 is status information of the cabinet number, chassis number, and slot number.

[0046] In S7, when the agent service software receives the software package sent by the display control service software, it first determines whether the value of the status information carried by the system software in the software package is consistent with the current system. If it is consistent, the software package is accepted, otherwise it is rejected.

[0047] The status information in S7 is status information of the cabinet number, chassis number, and slot number.

[0048] The software deployment command of S6 is specifically as follows: the display and control service software selects a corresponding software package from the software library based on the cabinet number, chassis number, and slot number numerical information reported by the agent service software and the software preset information, and makes the software package correspond to the first binary data Data1, the status information SysState1 composed of the cabinet number, chassis number, and slot number numerical information corresponds to the second binary data Data2, and the current system time information SysTime corresponds to the third binary data Data3; the MD5 code of the first binary data Data1 is determined as MD51, the MD5 code of the first binary data Data1 plus the second binary data Data2 is determined as MD52, and the MD5 code of the first binary data Data1 plus the second binary data Data2 plus the third binary data Data3 is determined as MD53; the software package, the above three groups of MD5 codes, the current system time information SysTime, and the status information SysState1 composed of the cabinet number, chassis number, and slot number numerical information are sent to the agent service software together.

[0049] The verification method of S7 is specifically as follows: let the received software package correspond to the fourth binary data Data4, the status information SysState2 composed of the cabinet number, chassis number, and slot number numerical information carried by the system software in the software package correspond to the fifth binary data Data5, and the current system time information SysTime corresponds to the sixth binary data Data6, determine the MD5 code of the fourth binary data Data4 as MD54, determine the MD5 code of the fourth binary data Data4 plus the fifth binary data Data5 as MD55, and determine the MD5 code of the fourth binary data Data4 plus the fifth binary data Data5 plus the sixth binary data Data6 as MD56, and compare the above three groups of MD5 codes with the three groups of MD5 codes sent by the display and control service software respectively. If they are consistent, the verification passes, and the verification success information is fed back to the display and control service software, otherwise the verification failure information is fed back to the display and control service software.

[0050] The present invention provides a system for system software deployment and verification method based on a targeted distribution mechanism, comprising the following modules:

[0051] The proxy service status processing module is used to obtain and report the status of the distributed system in which it is located;

[0052] a display and control service network receiving module, configured to receive the status reported by the proxy service status processing module;

[0053] Display and control service network sending module, used to send system software package data and system software deployment commands;

[0054] Display and control service display module, used to display the feedback status of system software deployment results;

[0055] Display and control service control module, used to issue system software deployment commands;

[0056] Display and control service database module, used to store system software and system software-system relationship table;

[0057] The display and control service MD5 generation module is used to determine the MD5 code to complete software command deployment and verification;

[0058] The proxy service software package processing module is used to receive and verify the system software package sent by the display and control service network sending module.

[0059] The specific implementation methods of each module of the above system are the same as the aforementioned system software deployment and verification methods, and will not be repeated here.

[0060] When cabinets 1 to L are cabinets belonging to the distributed system, chassis 1 to M are chassis in the cabinets belonging to the distributed system, and slots 1 to N are slots in the chassis of the cabinets belonging to the distributed system, the implementation diagram of the present invention is as shown in FIG. Figure 2 shown.

[0061] It should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that includes a list of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus.

[0062] While embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions, and variations may be made to these embodiments without departing from the principles and spirit of the invention, and that the scope of the invention is defined by the appended claims and their equivalents.

Claims

1. A system software deployment and verification method based on a targeted distribution mechanism, characterized in that: The following steps are involved: S1. Configure the same version of DDS communication middleware for the display and control service software and the proxy service software, and set the same domain name. Ensure that the publishing topic of the display and control service software is consistent with the subscription topic of the proxy service software, and ensure that DDS communication between the display and control service software and the proxy service software can be normal. S2. Install the system software library on the display and control service software to ensure that the system software library is available; S3. Run the display and control service software on a terminal with an operating system; S4. Run the proxy service software in the distributed system to be deployed, and set the proxy service software to the system auto-start state. When the system is turned on, the proxy service software also starts running; S5. The display and control service software receives the system status information reported by the proxy service software: after starting, the proxy service software obtains the status information of the distributed system in which it is located, and reports the status information to the display and control service software through DDS; S6. The display and control service software issues a software deployment command after receiving the status information reported by the proxy service software; S7, the proxy service software receives the software package sent by the display and control service software and performs verification; S8, the proxy service software feeds back the verification result to the display and control service software via DDS for display and processing; S9. The display and control service software receives and analyzes the software verification information. If the verification result is successful, the deployment is completed; otherwise, for the failed software, the corresponding software is selected again for secondary deployment based on the status information of the proxy service software.

2. A system software deployment and verification method based on a targeted distribution mechanism according to claim 1, characterized in that: The status information in S5 is the status information of the cabinet number, chassis number, and slot number.

3. A system software deployment and verification method based on a targeted distribution mechanism according to claim 1, characterized in that: In step S7, when the agent service software receives the software package sent by the display control service software, it first determines whether the value of the status information carried by the system software in the software package is consistent with the current system. If it is consistent, the software package is received; otherwise, it is rejected.

4. A system software deployment and verification method based on a targeted distribution mechanism according to claim 3, characterized in that: The status information in S7 is the status information of the cabinet number, chassis number, and slot number.

5. The system software deployment and verification method based on the targeted distribution mechanism according to claim 2, characterized in that: The software deployment command of S6 is specifically as follows: the display and control service software selects a corresponding software package from the software library according to the cabinet number, chassis number, and slot number numerical information reported by the agent service software and the software preset information, and makes the software package correspond to the first binary data Data1, the status information SysState1 composed of the cabinet number, chassis number, and slot number numerical information corresponds to the second binary data Data2, and the current system time information SysTime corresponds to the third binary data Data3; the MD5 code of the first binary data Data1 is determined as MD5_1, the MD5 code of the first binary data Data1 plus the second binary data Data2 is determined as MD5_2, and the MD5 code of the first binary data Data1 plus the second binary data Data2 plus the third binary data Data3 is determined as MD53; the software package, the above three groups of MD5 codes, the current system time information SysTime, and the status information SysState1 composed of the cabinet number, chassis number, and slot number numerical information are sent to the agent service software together.

6. A system software deployment and verification method based on a targeted distribution mechanism according to claim 4, characterized in that: The verification method of S7 is specifically as follows: let the received software package correspond to the fourth binary data Data4, the status information SysState2 composed of the cabinet number, chassis number, and slot number numerical information carried by the system software in the software package correspond to the fifth binary data Data5, and the current system time information SysTime corresponds to the sixth binary data Data6, determine the MD5 code of the fourth binary data Data4 as MD54, determine the MD5 code of the fourth binary data Data4 plus the fifth binary data Data5 as MD55, and determine the MD5 code of the fourth binary data Data4 plus the fifth binary data Data5 plus the sixth binary data Data6 as MD56, and compare the above three groups of MD5 codes with the three groups of MD5 codes sent by the display and control service software respectively. If they are consistent, the verification passes, and the verification success information is fed back to the display and control service software, otherwise the verification failure information is fed back to the display and control service software.

7. A system for system software deployment and verification method based on a targeted distribution mechanism according to any one of claims 1 to 6, characterized in that: Includes the following modules: The proxy service status processing module is used to obtain and report the status of the distributed system in which it is located; a display and control service network receiving module, configured to receive the status reported by the proxy service status processing module; Display and control service network sending module, used to send system software package data and system software deployment commands; Display and control service display module, used to display the feedback status of system software deployment results; Display and control service control module, used to issue system software deployment commands; Display and control service database module, used to store system software and system software-system relationship table; The display and control service MD5 generation module is used to determine the MD5 code to complete software command deployment and verification; The proxy service software package processing module is used to receive and verify the system software package sent by the display and control service network sending module.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the method according to any one of claims 1 to 6 is implemented.

9. A non-transitory computer-readable storage medium, characterized in that The non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 6.

10. A computer program product comprising computer program instructions, characterized in that When the computer program instructions are executed on a computer, the computer is caused to perform the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • A remote file upgrade method based on binary search and MD5 checksum

    CN105867934B

  • A data transmission method and component based on RSA and MD5

    CN112367171B