A distributed network equipment software intelligent upgrade method and device

By using the database to publish and verify software upgrade information in distributed network equipment, automated upgrades are realized, which solves the problems of low upgrade efficiency and difficult maintenance, improves the upgrade efficiency and stability of the system, and reduces costs.

CN113672259BActive Publication Date: 2024-10-01INSPUR NETWORK TECH (SHANDONG) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110939944.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-17
Publication Date
2024-10-01
Estimated Expiration
2041-08-17

AI Technical Summary

Technical Problem

Distributed network equipment has low efficiency and high cost when upgrading system software. It is inconvenient for unified management, requires manual execution, and is difficult to maintain.

Method used

The main control device publishes software version upgrade information in the designated database, and the non-main control device obtains and verifies the upgrade information, automatically upgrades the software, realizes parallel transmission and multiple verifications, reduces transmission error rates, and reduces manual intervention.

Benefits of technology

It improves the efficiency of software upgrades and data stability, reduces maintenance costs, and realizes intelligent upgrade management of distributed communication systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113672259B_ABST
    Figure CN113672259B_ABST
Patent Text Reader

Abstract

The embodiments of this specification disclose a distributed network device software intelligent upgrade method and device. It is used to solve the problems in the prior art that the distributed network devices have low efficiency and high cost when upgrading the system software, are inconvenient for unified management, require manual execution, and are difficult to maintain. The solution includes: publishing the version upgrade information of the specified software in the specified database; obtaining the version upgrade information in the specified database through the non-master device; judging whether the local specified software needs to be upgraded based on the local version information and version upgrade information of the specified software through the non-master device; if so, returning a confirmation upgrade message to the specified database through the non-master device; detecting the confirmation upgrade message through the master device, and publishing the software upgrade data corresponding to the specified software in the specified database; obtaining the software upgrade data through the non-master device, and performing a software upgrade on the local specified software after the software upgrade data is verified.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a distributed network device software intelligent upgrade method and device. Background Art

[0002] With the rapid development of the Internet and the widespread application of 5G technology, distributed network equipment is being deployed in data centers and backbone networks at an accelerated pace. Due to the characteristics of distributed network equipment, such as a large number of devices and scattered deployment locations, upgrading the distributed network equipment system software requires a lot of time and effort, and the upgrade efficiency is low. In addition, the main control network cannot perceive the upgrade progress of other devices, which is inconvenient for unified management. Upgrading one by one has a great impact on the operation of the entire network business. At present, when upgrading the system software of distributed network equipment, users need to manually execute command triggers, which is difficult to maintain and costly. Summary of the invention

[0003] One or more embodiments of this specification provide a distributed network device software intelligent upgrade method and device to solve the following technical problems: the existing distributed network devices have low efficiency and high cost when upgrading system software, are inconvenient for unified management, require manual execution, and are difficult to maintain.

[0004] To solve the above technical problems, one or more embodiments of this specification are implemented as follows:

[0005] On the one hand, one or more embodiments of this specification provide a distributed network device software intelligent upgrade method, including:

[0006] Determine through the main control device that the current working scenario meets the preset conditions, and publish the version upgrade information of the specified software in the specified database;

[0007] Acquiring the version upgrade information from the designated database through a non-master device, the non-master device pre-subscribing to the designated database;

[0008] By means of the non-master control device, judging whether the local designated software needs to be upgraded according to the local version information of the designated software and the version upgrade information;

[0009] If yes, returning a confirmation upgrade message to the designated database via the non-master control device;

[0010] The main control device detects the upgrade confirmation message and publishes software upgrade data corresponding to the specified software in the specified database;

[0011] The software upgrade data is obtained through the non-master control device, and after the software upgrade data is verified, the local designated software is upgraded.

[0012] In an implementation of the present application, the obtaining the software upgrade data through the non-master control device and performing software upgrade on the local designated software after the software upgrade data is verified, specifically includes:

[0013] Reading, by the non-master control device, first version information of the designated software corresponding to the software upgrade data;

[0014] Determine whether the first version information is consistent with the version upgrade information, and if they are consistent, write the software upgrade data into the non-master control device;

[0015] Determine whether the second version information corresponding to the software upgrade data written into the non-master control device is consistent with the version upgrade information, and if they are consistent, send a confirmation reception message to the master control device through the non-master control device;

[0016] Based on the confirmation reception message, the master control device sends an instruction to the non-master control device to perform a software upgrade on the designated software.

[0017] In an implementation of the present application, after determining whether the first version information is consistent with the version upgrade information, the method further includes:

[0018] If they are inconsistent, a retransmission message is sent to the master device via the non-master device, so that the master device republishes the software upgrade data in the designated database based on the retransmission message.

[0019] In one implementation of the present application, before the main control device determines that the current working scenario meets the preset conditions and publishes the version upgrade information of the specified software in the specified database, the method further includes:

[0020] Pre-acquire, by the main control device, version information of the designated software locally on the main control device, and use the version information as the version upgrade information;

[0021] The local version information of the specified software in the non-master control device is pre-acquired through the non-master control device.

[0022] In an implementation of the present application, the detecting the upgrade confirmation message by the master control device and publishing the software upgrade data corresponding to the specified software in the specified database specifically includes:

[0023] A start transmission message is sent to the designated database through the main control device, and the software upgrade data is transmitted to the designated database in segments.

[0024] When the software upgrade data is released, a transmission completion message is written to the designated database through the main control device.

[0025] In an implementation of the present application, the obtaining the software upgrade data through the non-master control device specifically includes:

[0026] Acquire the software upgrade data from the designated database through the non-master control device, and detect the transmission completion message in the designated database;

[0027] When the transmission completion message is detected, it is confirmed that the acquisition of the software upgrade data is complete.

[0028] In one implementation of the present application, a software upgrade status corresponding to the master device and / or the non-master device is determined, and the software upgrade status is changed according to a message sent or received by the master device and / or the non-master device.

[0029] In one implementation of the present application, the software upgrade status specifically includes:

[0030] Initial state, data checking state, data transmission state, data receiving state, and ready to upgrade state.

[0031] In one implementation of the present application, the main control device includes:

[0032] An active master control device and a standby master control device, wherein the standby master control device synchronizes data from the active master control device in real time.

[0033] On the other hand, one or more embodiments of this specification provide a distributed network device software intelligent upgrade device, including:

[0034] at least one processor; and,

[0035] a memory communicatively connected to the at least one processor; wherein,

[0036] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the following instructions:

[0037] Determine through the main control device that the current working scenario meets the preset conditions, and publish the version upgrade information of the specified software in the specified database;

[0038] Acquiring the version upgrade information from the designated database through a non-master device, the non-master device pre-subscribing to the designated database;

[0039] By means of the non-master control device, judging whether the local designated software needs to be upgraded according to the local version information of the designated software and the version upgrade information;

[0040] If yes, returning a confirmation upgrade message to the designated database via the non-master control device;

[0041] The main control device detects the upgrade confirmation message and publishes software upgrade data corresponding to the specified software in the specified database;

[0042] The software upgrade data is obtained through the non-master control device, and after the software upgrade data is verified, the local designated software is upgraded.

[0043] The distributed network device software intelligent upgrade method and device proposed in this application can bring the following beneficial effects:

[0044] 1. Through parallel transmission, it can maximize the transmission efficiency, ensure the stability of transmitted data, reduce the software upgrade time, and reduce business traffic loss.

[0045] 2. During the transmission process, multiple checks are performed and data retransmission can be achieved to reduce the transmission error rate and ensure data reliability. No file sharing server is required, which reduces system complexity and system maintenance costs.

[0046] 3. The non-master control device will automatically verify whether the version information of the specified software is consistent with the version information sent by the master control device. The master control device can automatically control the non-master control device to reload the version without manual intervention, thereby improving the level of intelligent software upgrades in distributed communication systems.

[0047] 4. During the upgrade process of the specified software, the software upgrade status of the master device and / or non-master device can be determined in real time through protocol message interaction, and the user can check the software upgrade status of the master device and / or non-master device in the distributed communication system at any time. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] In order to more clearly illustrate the embodiments of this specification or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0049] Figure 1 A distributed communication system provided for one or more embodiments of this specification;

[0050] Figure 2 It is a distributed communication system structure;

[0051] Figure 3 A schematic diagram of a distributed communication system software upgrade module provided for one or more embodiments of this specification;

[0052] Figure 4 A schematic diagram of a distributed network device software intelligent upgrade method provided by one or more embodiments of this specification;

[0053] Figure 5 A process for changing a software upgrade state provided in one or more embodiments of this specification;

[0054] Figure 6 A distributed communication system software upgrade flow chart provided for one or more embodiments of this specification;

[0055] Figure 7 A schematic diagram of the structure of a distributed network device software intelligent upgrade device provided in one or more embodiments of this specification. DETAILED DESCRIPTION

[0056] The embodiments of the present application provide a distributed network device software intelligent upgrade method and device.

[0057] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this application.

[0058] The technical solutions provided by the embodiments of this specification are described in detail below in conjunction with the accompanying drawings.

[0059] Figure 1 A distributed communication system is provided for one or more embodiments of this specification. Figure 1As shown, a distributed communication system is generally composed of a master control device (in some cases, the master control device includes a primary master control device and a backup master control device) and a number of non-master control devices. The primary master control device is responsible for the network topology discovery, maintenance, management and configuration synchronization of the entire communication system; the backup master control device, as a backup of the primary master control device, synchronizes the operating status and data from the primary master control device in real time, and can quickly take over the operating services of the primary master control device when the primary master control device fails, ensuring the stable operation of the entire communication system; the non-master control device runs network-related business processes to ensure the forwarding and routing of network data. It is worth noting that in this application, if the primary master control device operates normally, the master control device appearing in this application refers to the primary master control device, and if the primary master control device fails, the master control device refers to the backup master control device.

[0060] In traditional schemes, such as Figure 2 A distributed communication system structure is provided as shown, in which the main master control device, the backup master control device, and the non-master control device all include storage chips, Flash, business chips, control MCUs, and communication chips. Data communication can be carried out between the master control device and the non-master control device through the communication chip, mainly for control and management data, and business data is exchanged and forwarded through the physical channel between the business chips. File data is transmitted with the file sharing server through the external interface of the communication chip.

[0061] Traditional distributed communication systems are generally triggered by manually executing software upgrade commands. The master device first detects whether the specified software version information in the local Flash is consistent with the version information in the file server. If not, it obtains the latest software version from the file sharing server to the local Flash and sends the version information to the non-master device. It is necessary to manually execute the load version command and restart the device to complete the upgrade of the specified software.

[0062] To this end, we provide a distributed network device software intelligent upgrade method, including multiple software upgrade modules. Figure 3 A schematic diagram of a distributed communication system software upgrade module provided in one or more embodiments of this specification, such as Figure 3 As shown, the master control device includes system software version detection, system software version transmission, system software version verification and retransmission, and system software version loading; the non-master control device includes system software version confirmation, system software version transmission, system software version verification confirmation, and system software version loading.

[0063] Figure 4 A schematic diagram of a distributed network device software intelligent upgrade method provided by one or more embodiments of this specification. Figure 4 As shown, a distributed network device software intelligent upgrade method includes the following steps:

[0064] S401: Determine, through the main control device, whether the current working scenario meets the preset conditions, and publish version upgrade information of the specified software in the specified database.

[0065] The master control device and the non-master control device together constitute a distributed communication system. Before the master control device publishes the version upgrade information of the specified software in the specified database, it will first determine whether the current working scenario meets the preset conditions, for example, whether there is a new non-master control device added to the current distributed communication system or whether there is a non-master control device started in the current distributed communication system. When a non-master control device is started or a new non-master control device is added to the current distributed communication system, the master control device publishes the version upgrade information of the specified software in the specified database. In addition, the master control device can also publish the version upgrade information of the specified software in the specified database at a scheduled time, and the preset condition can be whether the scheduled time has been reached.

[0066] The designated database can be a Redis database. When the database is a Redis database, Redis components are deployed on the master device and the non-master device. With the help of Redis cluster technology, the master device can publish the version upgrade information of the designated software in the Redis database. The designated software refers to a certain software installed on the master device and the non-master device, and no specific requirements are made. The version upgrade information includes the version number, MD5 checksum, size of the designated software, etc. In this manual, by deploying Redis components on the master device and the non-master device, and transmitting messages and file data through the Redis publish-subscribe mechanism, the transmission efficiency is greatly improved.

[0067] In one or more embodiments of the present specification, the version information of the local designated software of the master control device is obtained in advance through the master control device, and the version information is used as the version upgrade information; the local version information of the designated software in the non-master control device is obtained in advance through the non-master control device. The version information of the designated software of the master control device and the non-master control device is obtained in advance, and the version information of the local designated software of the master control device is used as the version upgrade information, so as to facilitate the subsequent judgment of whether the designated software of the non-master control device needs to be upgraded.

[0068] S402: Obtaining version upgrade information from a designated database through a non-master device, the non-master device pre-subscribes to the designated database.

[0069] Redis components can be deployed in advance on the master device and non-master device. With the help of Redis's publish-subscribe technology, the non-master device can obtain version upgrade information from the Redis database. In a distributed communication system, there can be multiple non-master devices, and multiple non-master devices can obtain version upgrade information from the Redis database at the same time, realizing parallel transmission of version upgrade information and improving efficiency.

[0070] S403: Determine whether the local designated software needs to be upgraded based on the local version information and version upgrade information of the designated software through the non-master control device.

[0071] After obtaining the version upgrade information, the non-master device determines whether the local version information of the specified software is consistent with the version upgrade information. If the local version information is inconsistent with the version upgrade information, it means that the specified software of the non-master device needs to be upgraded. If the local version information is consistent with the version upgrade information, it means that the specified software of the non-master device does not need to be upgraded. If the specified software of the non-master device does not need to be upgraded, a message indicating that no upgrade is required is sent to the specified database.

[0072] In this application, by verifying the local version information and the version upgrade information, it is determined whether the local version information is consistent with the version upgrade information. The version number, MD5 checksum, and software size of the local version information and the version upgrade information are verified. If at least one of the version number, MD5 checksum, and software size of the local version information and the version upgrade information is different, it is determined that the local version information is inconsistent with the version upgrade information.

[0073] S404: If yes, a confirmation upgrade message is returned to the designated database via the non-master control device.

[0074] After determining that the local version information is inconsistent with the version upgrade information, the non-master device returns a confirmation upgrade message to the designated database, and the confirmation upgrade message includes the bitmap information of the non-master device. The bitmap information refers to the location information, number information, and name information of the non-master device in the distributed communication system. This facilitates the master device to determine which non-master device needs to upgrade the specified software.

[0075] S405: The main control device detects the upgrade confirmation message and publishes the software upgrade data corresponding to the specified software in the specified database.

[0076] In one or more embodiments of the present specification, after the master device detects the confirmation upgrade message, the master device sends a start transmission message to the designated database, and transmits the software upgrade data stored in the local flash of the master device to the designated database in segments. The software upgrade data is generally relatively large, and segmented transmission can effectively solve the problem of large software upgrade data, and has a higher fault tolerance rate. When a certain segment of data transmission is erroneous, only the segment of data needs to be retransmitted.

[0077] In one or more embodiments of the present specification, when the software upgrade data is released, a transmission completion message is written to the designated database through the master control device. The master control device writes a start transmission message and a transmission completion message in the designated database. The start transmission message indicates that the software upgrade data starts to be transmitted, and the transmission completion message indicates that the software upgrade data is transmitted. The designated database has both the start transmission message and the transmission completion message, indicating that the software upgrade data is complete.

[0078] In one or more embodiments of the present specification, the software upgrade data is obtained from the designated database by the non-master device, and a transmission completion message is detected in the designated database; when the transmission completion message is detected, it is confirmed that the software upgrade data has been obtained. The non-master device detects the transmission completion message in the designated database. If the transmission completion message is not detected, it indicates that the software upgrade data has not been obtained, and the designated software is not upgraded.

[0079] S406: Acquire software upgrade data through a non-master control device, and after verifying the software upgrade data, perform software upgrade on the local designated software.

[0080] After the transmission completion message is detected, it is confirmed that the software upgrade data has been acquired, and the software upgrade data is verified.

[0081] In one or more embodiments of the present specification, the first version information of the designated software corresponding to the software upgrade data is determined by the non-master device; it is determined whether the first version information is consistent with the version upgrade information, if they are consistent, the software upgrade data is written to the non-master device; it is determined whether the second version information corresponding to the software upgrade data written to the non-master device is consistent with the version upgrade information, if they are consistent, a confirmation reception message is sent to the master device by the non-master device; based on the confirmation reception message, an instruction is sent to the non-master device by the master device to perform a software upgrade on the designated software. Among them, the first version information and the second version information are both version information corresponding to the software upgrade data, the first version information refers to the version information corresponding to the software upgrade data read before writing to the non-master device, and the second version information refers to the version information corresponding to the software upgrade data determined after writing to the non-master device, so as to prevent software upgrade data errors caused by reading errors or device failures, and ensure the reliability of software upgrade data.

[0082] Before the non-master device obtains the software upgrade data from the specified database, the non-master device determines the first version information of the specified software corresponding to the software upgrade data, compares the first version information with the previously obtained version upgrade information, and determines whether the version number, MD5 checksum, and software size of the first version information are consistent with the version number, MD5 checksum, and software size in the version upgrade information. If they are consistent, the software upgrade data is written to the Flash of the non-master device.

[0083] In one or more embodiments of the present specification, if the version number, MD5 checksum, and software size of the first version information are inconsistent with the version number, MD5 checksum, and software size in the version upgrade information, a retransmission message is sent to the master device through the non-master device, so that the master device re-publishes the software upgrade data in the designated database based on the retransmission message. The retransmission message carries a transmission frame number to facilitate the master device to retransmit the software upgrade data.

[0084] After detecting the transmission completion message, the non-master device confirms that the software upgrade data has been written, determines the second version information corresponding to the software upgrade data written to the non-master device, and determines whether the version number, MD5 checksum, and software size of the second version information are consistent with the version number, MD5 checksum, and software size in the version upgrade information. If they are consistent, the non-master device sends a confirmation message to the master device, indicating that the software upgrade data has been received. After receiving the confirmation message, the master device sends a reload instruction to the non-master device to reload the specified software and complete the upgrade of the specified software. By checking the software upgrade data multiple times, error control and retransmission of software upgrade data transmission can be achieved, minimizing transmission errors.

[0085] In one or more embodiments of the present specification, during a specified software upgrade process, a software upgrade status corresponding to the master device and / or the non-master device is determined, and the software upgrade status is changed according to a message sent or received by the master device and / or the non-master device.

[0086] In one or more embodiments of the present specification, the software upgrade state includes an initial state, a data checking state, a data transmission state, a data receiving state, and a ready-to-upgrade state.

[0087] like Figure 5The figure shows a software upgrade state change process provided by one or more embodiments of the present specification. At the beginning, both the master device and the non-master device are in the initial state (UPGRATE_INIT). The master device sends a start upgrade message (START UPGRAT). After the non-master device receives the start upgrade message (START UPGRAT), the state of the master device and the non-master device changes to a data checking state (UPGRATE_DATA_CHECKING). After the non-master device sends an acknowledgment start message (ACK_UPGRATE_START_OK) to the master device, the master device sends software upgrade data (TRANSDATA) to the non-master device, and the state of the master device changes to a data transmission state (UPGRATE_DATA_TRANS), and the state of the non-master device changes to a data receiving state (UPGRATE_DATA_DOWNLOADING). After the master device sends a transmission completion message to the non-master device, the state of the master device and the non-master device changes to a ready upgrade state (UPGRATE_READY_RELOAD), and the non-master device sends a acknowledgment reception message (ACK_UPGRATE_END_OK) to the master device.

[0088] In one or more embodiments of the present specification, the master control device includes an active master control device and a standby master control device, and the standby master control device synchronizes data from the active master control device in real time.

[0089] Figure 6 A distributed communication system software upgrade flow chart provided for one or more embodiments of this specification, such as Figure 6 As shown, the master device starts, sends a start upgrade message when the number of detections is no more than 20 times, and ends directly when it is more than 20 times. If a confirmation upgrade message is received, a start transmission message is sent and the software upgrade data is transmitted to the Redis database. If the start upgrade message is not received, re-detect. If the transmission is completed, a transmission completion message is sent. If the transmission is not completed, the software upgrade data is transmitted to the Redis database again through the error control and retransmission mechanism. If a reception completion message sent by a non-master device is received, a reload instruction is sent to the non-master device to complete the upgrade of the specified software. If a reception completion message sent by a non-master device is not received, the software upgrade data is transmitted to the Redis database again through the error control and retransmission mechanism.

[0090] The non-master device starts, receives the start upgrade message, checks whether the version information is consistent, if it is consistent, sends a message to the master device that no upgrade is required and ends, if the version information is inconsistent, sends a confirmation upgrade message to the master device, receives the software upgrade data, and if a transmission completion message is detected, verifies the version upgrade information, if no transmission completion message is detected, re-receives the software upgrade data. After receiving the software upgrade data, it determines whether the version information corresponding to the received software upgrade data is consistent with the version information sent by the master device. If not, it is received again. If it is consistent, it sends a reception completion message, and receives the reload instruction sent by the master device to complete the upgrade of the specified software.

[0091] Figure 7 A schematic diagram of the structure of a distributed network device software intelligent upgrade device provided in one or more embodiments of this specification.

[0092] like Figure 7 As shown, a distributed network device software intelligent upgrade device includes:

[0093] at least one processor; and,

[0094] a memory communicatively connected to the at least one processor; wherein,

[0095] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the following instructions:

[0096] Determine through the main control device that the current working scenario meets the preset conditions, and publish the version upgrade information of the specified software in the specified database;

[0097] Acquiring the version upgrade information from the designated database through a non-master device, the non-master device pre-subscribing to the designated database;

[0098] By means of the non-master control device, judging whether the local designated software needs to be upgraded according to the local version information of the designated software and the version upgrade information;

[0099] If yes, returning a confirmation upgrade message to the designated database via the non-master control device;

[0100] The main control device detects the upgrade confirmation message and publishes software upgrade data corresponding to the specified software in the specified database;

[0101] The software upgrade data is obtained through the non-master control device, and after the software upgrade data is verified, the local designated software is upgraded.

[0102] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0103] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0104] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0105] The above description is only one or more embodiments of this specification and is not intended to limit this specification. For those skilled in the art, one or more embodiments of this specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of one or more embodiments of this specification shall be included in the scope of the claims of this specification.

Claims

1. A distributed network device software intelligent upgrade method, characterized in that: include: Determine through the main control device that the current working scenario meets the preset conditions, and publish the version upgrade information of the specified software in the specified database; Acquiring the version upgrade information from the designated database through a non-master device, the non-master device pre-subscribing to the designated database; By means of the non-master control device, judging whether the local designated software needs to be upgraded according to the local version information of the designated software and the version upgrade information; If yes, returning a confirmation upgrade message to the designated database via the non-master control device; The main control device detects the upgrade confirmation message and publishes software upgrade data corresponding to the specified software in the specified database; Acquire the software upgrade data through the non-master control device, and after verifying the software upgrade data, perform software upgrade on the local designated software; The step of obtaining the software upgrade data through the non-master control device and performing software upgrade on the local designated software after verifying the software upgrade data specifically includes: Reading, by the non-master control device, first version information of the designated software corresponding to the software upgrade data; Determine whether the first version information is consistent with the version upgrade information, and if they are consistent, write the software upgrade data into the non-master control device; Determine whether the second version information corresponding to the software upgrade data written into the non-master control device is consistent with the version upgrade information, and if they are consistent, send a confirmation reception message to the master control device through the non-master control device; Based on the confirmation reception message, sending an instruction to the non-master control device through the master control device to perform software upgrade on the designated software; The detecting the upgrade confirmation message by the main control device and publishing the software upgrade data corresponding to the specified software in the specified database specifically includes: Sending a start transmission message to the designated database through the main control device, and transmitting the software upgrade data to the designated database in segments; When the software upgrade data is released, a transmission completion message is written to the designated database through the main control device.

2. A distributed network device software intelligent upgrade method according to claim 1, characterized in that: After determining whether the first version information is consistent with the version upgrade information, the method further includes: If they are inconsistent, a retransmission message is sent to the master device via the non-master device, so that the master device republishes the software upgrade data in the designated database based on the retransmission message.

3. A distributed network device software intelligent upgrade method according to claim 1, characterized in that: Before determining that the current working scenario meets the preset condition through the main control device and publishing the version upgrade information of the specified software in the specified database, the method also includes: Pre-acquire, by the main control device, version information of the designated software locally on the main control device, and use the version information as the version upgrade information; The local version information of the specified software in the non-master control device is pre-acquired through the non-master control device.

4. A distributed network device software intelligent upgrade method according to claim 1, characterized in that: The obtaining the software upgrade data through the non-master control device specifically includes: Acquire the software upgrade data from the designated database through the non-master control device, and detect the transmission completion message in the designated database; When the transmission completion message is detected, it is confirmed that the acquisition of the software upgrade data is complete.

5. A distributed network device software intelligent upgrade method according to claim 1, characterized in that: The method further comprises: A software upgrade state corresponding to the master device and / or the non-master device is determined, and the software upgrade state is changed according to a message sent or received by the master device and / or the non-master device.

6. A distributed network device software intelligent upgrade method according to claim 5, characterized in that: The software upgrade status specifically includes: Initial state, data checking state, data transmission state, data receiving state, and ready to upgrade state.

7. A distributed network device software intelligent upgrade method according to claim 1, characterized in that: The main control device comprises: An active master control device and a standby master control device, wherein the standby master control device synchronizes data from the active master control device in real time.

8. A distributed network device software intelligent upgrade device, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to execute: Determine through the main control device that the current working scenario meets the preset conditions, and publish the version upgrade information of the specified software in the specified database; Acquiring the version upgrade information from the designated database through a non-master device, the non-master device pre-subscribing to the designated database; By means of the non-master control device, judging whether the local designated software needs to be upgraded according to the local version information of the designated software and the version upgrade information; If yes, returning a confirmation upgrade message to the designated database via the non-master control device; The main control device detects the upgrade confirmation message and publishes software upgrade data corresponding to the specified software in the specified database; Acquire the software upgrade data through the non-master control device, and after verifying the software upgrade data, perform software upgrade on the local designated software; The step of obtaining the software upgrade data through the non-master control device and performing software upgrade on the local designated software after verifying the software upgrade data specifically includes: Reading, by the non-master control device, first version information of the designated software corresponding to the software upgrade data; Determine whether the first version information is consistent with the version upgrade information, and if they are consistent, write the software upgrade data into the non-master control device; Determine whether the second version information corresponding to the software upgrade data written into the non-master control device is consistent with the version upgrade information, and if they are consistent, send a confirmation reception message to the master control device through the non-master control device; Based on the confirmation reception message, sending an instruction to the non-master control device through the master control device to perform software upgrade on the designated software; The detecting the upgrade confirmation message by the main control device and publishing the software upgrade data corresponding to the specified software in the specified database specifically includes: Sending a start transmission message to the designated database through the main control device, and transmitting the software upgrade data to the designated database in segments; When the software upgrade data is released, a transmission completion message is written to the designated database through the main control device.