Single-disk Software Version Upgrade Monitoring Method, Device, Equipment and Readable Storage Medium

The single-board software version upgrade monitoring method uses digital digest information and hash functions to streamline software version management in communication devices, addressing upgrade errors and package size issues by eliminating the need for extensive version numbering.

CN115291910BActive Publication Date: 2025-07-15FIBERHOME TELECOMMUNICATION TECHNOLOGIES CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210901061.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-28
Publication Date
2025-07-15
Estimated Expiration
2042-07-28

AI Technical Summary

Technical Problem

In the prior art, the upgrade of single disk software version of communication devices is prone to errors, and because each incompatible single disk hardware needs to be assigned a unique software version number, it leads to difficulty in managing the software version and huge software packages of the entire device, which affects the use.

Method used

By obtaining the digital summary information of the single disk number in the software package and device to be upgraded, converting it into a digital summary using a hash function, and storing it in a memory array, and determining whether the single disk hardware has passed the verification based on these digest information, thereby determining whether it has been upgraded, avoiding the introduction of a large number of software version numbers.

Benefits of technology

It effectively solves the problem of errors in the single disk software version upgrade, simplifies management, reduces the size of the entire device software package, and improves the efficiency and reliability of the upgrade.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115291910B_ABST
    Figure CN115291910B_ABST
Patent Text Reader

Abstract

The present invention provides a method, device, equipment and readable storage medium for monitoring the software version upgrade of a single disk. The method includes: obtaining a plurality of first digital digest information of the single disk numbers of a plurality of single disks to be upgraded included in the software package to be upgraded; determining a plurality of first data storage addresses according to the plurality of first digest information and the addresses of each element in the array; obtaining each second digital digest information of the single disk numbers of each single disk hardware in the equipment; determining each second data storage address according to each second digest information, and making a judgment based on the values on each second data storage address and the values on the plurality of first data storage addresses; based on the judgment result, determining whether the single disk hardware in the equipment is upgraded. Through the present invention, the problem in the prior art that a large number of software version numbers need to be introduced to avoid errors in the software version upgrade of a single disk, thereby making it difficult to manage the software version of the single disk of the equipment and the software package of the entire equipment being so large as to affect the use is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of software upgrade of communication transmission equipment, and particularly relates to a method, device, equipment and readable storage medium for monitoring the software version upgrade of a single board. Background Art

[0002] Communication equipment has complex functions and diverse bearing technologies. With the development of technology, the types of business single-board hardware in communication equipment are increasing, and there are more and more incompatible single-board hardwares. It is difficult to share the single-board software. When performing software version upgrade on the single-board hardware, problems such as incorrect software version upgrade of the single board are likely to occur.

[0003] In the prior art, it is necessary to assign a unique software version number to each type of incompatible single-board hardware. Although this can solve the problem of incorrect software version upgrade of the single board, it will introduce a large number of software version numbers, which will lead to difficulties in managing the software version of the device's single board and the problem that the overall software package of the device is too large to affect its use. Summary of the Invention

[0004] The main purpose of the present invention is to provide a method, device, equipment and readable storage medium for monitoring the software version upgrade of a single board, aiming to solve the problem in the prior art that a large number of software version numbers need to be introduced to avoid incorrect software version upgrade of the single board, which in turn leads to difficulties in managing the software version of the device's single board and the problem that the overall software package of the device is too large to affect its use.

[0005] In a first aspect, the present invention provides a method for monitoring the software version upgrade of a single board, and the method for monitoring the software version upgrade of the single board includes:

[0006] Obtain a plurality of first digital digest information of the single board numbers of a plurality of single boards to be upgraded included in the software package to be upgraded;

[0007] Create an array in the memory, store the plurality of first digest information in the memory, and determine a plurality of first data storage addresses according to the plurality of first digest information and the addresses of each element in the array;

[0008] Obtain each second digital digest information of the single board numbers of each single board hardware in the device;

[0009] Determine each second data storage address according to each second digest information, and judge whether each single board in the device passes the verification according to the values on each second data storage address and the values on a plurality of first data storage addresses;

[0010] Based on the judgment result, determine whether the single board hardware in the device is upgraded.

[0011] Optionally, the step of obtaining multiple first digital digest information of the single-disk numbers of multiple single disks included in the software package to be upgraded includes:

[0012] Unzip the software package to be upgraded, and obtain the single-disk numbers of multiple single disks included in the software package to be upgraded;

[0013] Convert the single-disk numbers of the multiple single disks to multiple first digital digest information through a hash function.

[0014] Optionally, the single-disk number of the single disk to be upgraded includes the single-disk hardware disk number, the single-disk PCB board number, and the production number of the incompatible hardware devices of the single-disk hardware.

[0015] Optionally, the step of converting the single-disk numbers of the multiple single disks to multiple first digital digest information through a hash function includes:

[0016] Respectively obtain the digital contents of multiple single-disk hardware disk numbers, single-disk PCB board numbers, and the production numbers of the incompatible hardware devices of the single-disk hardware;

[0017] Respectively use the last X digits of multiple single-disk hardware disk numbers and the last X digits of the single-disk PCB board numbers as multiple first calculation digits, where X is a positive integer;

[0018] Respectively use the last X digits of the production numbers of the incompatible hardware devices of the single-disk hardware as multiple second calculation digits;

[0019] Respectively perform exclusive OR operations on multiple first calculation digits and multiple second calculation digits to obtain multiple exclusive OR operation results;

[0020] Respectively perform modulo operations on multiple exclusive OR operation results and a preset value to obtain multiple modulo operation results, and use the multiple modulo operation results as multiple first digital digest information, where the preset value is the largest prime number within the number of software version types of the single disks to be upgraded included in the software package to be upgraded.

[0021] Optionally, the step of obtaining respective second digital digest information of the single-disk numbers of each single-disk hardware in the device includes:

[0022] Send a query request to each non-activated central processing disk hardware and / or non-central processing disk hardware in the format of an Ethernet message through an Ethernet bus;

[0023] Receive the respective second digital digest information of each non-activated central processing disk hardware and / or non-central processing disk hardware fed back based on the query request by each non-activated central processing disk hardware and / or non-central processing disk hardware;

[0024] Read the single-disk number in the power-off non-volatile device on the hardware base plate of the active central processing disk, and then convert the single-disk number in the power-off non-volatile device on the hardware base plate of the active central processing disk into the second digital digest information of the hardware of the active central processing disk through a hash function.

[0025] Optionally, the step of creating an array in the memory, storing the multiple first digest information in the memory, and determining multiple first data storage addresses according to the multiple first digest information and the addresses of the elements in the array includes:

[0026] Create an array in the memory, store the multiple first digest information in the memory, and determine multiple first data storage addresses according to the multiple first digest information and the addresses of the elements in the array;

[0027] Or, create an array in the memory, store the obtained multiple first digest information in the array in the memory, and determine multiple first data storage addresses corresponding to the multiple first digest information according to the multiple first digest information and the addresses of the elements in the array.

[0028] Optionally, the step of determining whether to upgrade the single-disk hardware in the device based on the judgment result includes:

[0029] If the judgment result is that each single disk in the device passes the verification, upgrade each single-disk hardware in the device;

[0030] Or,

[0031] If the judgment result is that not all single disks in the device pass the verification, upgrade each single-disk hardware that passes the verification;

[0032] Or,

[0033] If the judgment result is that not all single disks in the device pass the verification, update the software package to be upgraded or power off each single-disk hardware that fails the verification, and then upgrade each single-disk hardware in the device.

[0034] In a second aspect, the present invention further provides a single-disk software version upgrade monitoring device, and the single-disk software version upgrade monitoring device includes:

[0035] A first acquisition module, configured to acquire multiple first digital digest information of the single-disk numbers of multiple single disks to be upgraded included in the software package to be upgraded;

[0036] A storage module, configured to create an array in the memory, store the multiple first digest information in the memory, and determine multiple first data storage addresses according to the multiple first digest information and the addresses of the elements in the array;

[0037] A second acquisition module, configured to acquire respective second digital digest information of the single-disk numbers of each single-disk hardware in the device;

[0038] A judgment module, configured to determine respective second data storage addresses according to the respective second digest information, and judge whether each single disk in the device passes verification according to the values on the respective second data storage addresses and the values on a plurality of first data storage addresses;

[0039] A determination module, configured to determine whether to upgrade the single-disk hardware in the device based on the judgment result.

[0040] In a third aspect, the present invention further provides a single-disk software version upgrade monitoring device, which includes a processor, a memory, and a single-disk software version upgrade monitoring program stored on the memory and executable by the processor. When the single-disk software version upgrade monitoring program is executed by the processor, the steps of the single-disk software version upgrade monitoring method as described above are implemented.

[0041] In a fourth aspect, the present invention further provides a readable storage medium, on which a single-disk software version upgrade monitoring program is stored. When the single-disk software version upgrade monitoring program is executed by a processor, the steps of the single-disk software version upgrade monitoring method as described above are implemented.

[0042] In the present invention, a plurality of first digital digest information of the single-disk numbers of a plurality of single disks to be upgraded included in a software package to be upgraded is acquired; an array is created in a memory, and the plurality of first digest information is stored in the memory, and a plurality of first data storage addresses are determined according to the plurality of first digest information and the addresses of each element in the array; respective second digital digest information of the single-disk numbers of each single-disk hardware in the device is acquired; respective second data storage addresses are determined according to the respective second digest information, and it is judged whether each single disk in the device passes verification according to the values on the respective second data storage addresses and the values on a plurality of first data storage addresses; based on the judgment result, it is determined whether to upgrade the single-disk hardware in the device. Through the present invention, a plurality of first digital digest information of the single-disk numbers of a plurality of single disks to be upgraded included in a software package to be upgraded and respective second digital digest information of the single-disk numbers of each single-disk hardware in the device are acquired, and judgment is made based on the values on a plurality of first data storage addresses corresponding to the plurality of first digital digest information and the values on respective second data storage addresses corresponding to the respective second digital digest information. Based on the judgment result, it can be determined whether to upgrade the single-disk hardware in the device, and a large number of software version numbers do not need to be introduced. Therefore, the problems in the prior art that a large number of software version numbers need to be introduced to avoid single-disk software version upgrade errors, thereby making it difficult to manage the single-disk software version of the device and the entire device software package becoming too large to affect use are solved. Description of the Drawings

[0043] Figure 1 It is a schematic diagram of the hardware structure of the single-disk software version upgrade monitoring device involved in the solution of the embodiment of the present invention;

[0044] Figure 2 It is a schematic flowchart of an embodiment of the single-disk software version upgrade monitoring method of the present invention;

[0045] Figure 3 It is a schematic diagram of the single-disk number of the single disk to be upgraded in an embodiment of the single-disk software version upgrade monitoring method of the present invention;

[0046] Figure 4 It is a schematic diagram of the information interaction architecture in an embodiment of the single-disk software version upgrade monitoring method of the present invention;

[0047] Figure 5 It is a schematic diagram of the Ethernet message format in an embodiment of the single-disk software version upgrade monitoring method of the present invention;

[0048] Figure 6 It is a schematic diagram of the single-disk number conversion in an embodiment of the single-disk software version upgrade monitoring method of the present invention;

[0049] Figure 7 It is a schematic diagram of the functional modules of the first embodiment of the single-disk software version upgrade monitoring device of the present invention.

[0050] The realization, functional characteristics and advantages of the purpose of the present invention will be further described with reference to the embodiments and the accompanying drawings. Specific Embodiments

[0051] It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0052] In a first aspect, an embodiment of the present invention provides a single-disk software version upgrade monitoring device, and the single-disk software version upgrade monitoring device can be a device with data processing functions such as a personal computer (PC), a notebook computer, a server, etc.

[0053] Referring to Figure 1 , Figure 1This is a schematic diagram of the hardware structure of the single-disk software version upgrade monitoring device involved in the embodiment solution of the present invention. In the embodiment of the present invention, the single-disk software version upgrade monitoring device may include a processor 1001 (such as a Central Processing Unit, CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components; the user interface 1003 may include a display screen (Display) and an input unit such as a keyboard (Keyboard); the network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a Wireless-Fidelity, WI-FI interface); the memory 1005 may be a high-speed random access memory (random access memory, RAM), or a stable memory (non-volatile memory), such as a disk memory, and the memory 1005 may optionally also be a storage device independent of the aforementioned processor 1001. Those skilled in the art can understand, Figure 1 the hardware structure shown in does not constitute a limitation to the present invention, and may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements.

[0054] Continue to refer to Figure 1 , Figure 1 in, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a single-disk software version upgrade monitoring program. Among them, the processor 1001 may call the single-disk software version upgrade monitoring program stored in the memory 1005 and execute the single-disk software version upgrade monitoring method provided by the embodiment of the present invention.

[0055] In a second aspect, the embodiment of the present invention provides a single-disk software version upgrade monitoring method.

[0056] In one embodiment, referring to Figure 2 , Figure 2 is a schematic flowchart of the first embodiment of the single-disk software version upgrade monitoring method of the present invention. As Figure 2 shown, the single-disk software version upgrade monitoring method includes:

[0057] Step S10, obtaining a plurality of first digital digest information of the single-disk numbers of a plurality of single disks to be upgraded included in the software package to be upgraded;

[0058] In this embodiment, after receiving an instruction from the upper-layer application software to determine whether the single-disk hardware in the device needs to be upgraded, the software package to be upgraded is decompressed, the disk numbers of multiple single disks to be upgraded are obtained from the configuration file included in the software package to be upgraded, and the disk numbers of the multiple single disks to be upgraded are converted into multiple first digital digest information.

[0059] Further, in one embodiment, step S10 includes:

[0060] Decompress the software package to be upgraded, and obtain the disk numbers of multiple single disks to be upgraded included in the software package to be upgraded;

[0061] Convert the disk numbers of the multiple single disks to be upgraded into multiple first digital digest information through a hash function.

[0062] In this embodiment, the software package to be upgraded is decompressed, and the disk numbers of multiple single disks to be upgraded are obtained from the decompressed software package to be upgraded. Among them, the disk numbers of the same type of single disks to be upgraded are the same.

[0063] Convert the disk number of each single disk to be upgraded into first digital digest information through a hash function, and multiple first digital digest information can be obtained. Among them, since the disk numbers of the same type of single disks to be upgraded are the same, the first digital digest information of the disk numbers of the same type of single disks to be upgraded is also the same. It is easy to think that the software version types of the single disks to be upgraded used by the same type of single disks to be upgraded are the same.

[0064] Further, in one embodiment, the disk number of the single disk to be upgraded includes the single-disk hardware disk number, the single-disk PCB board number, and the production number of the incompatible hardware devices of the single-disk hardware.

[0065] In this embodiment, with reference to Figure 3 , Figure 3 is a schematic diagram of the disk number of a single disk to be upgraded in an embodiment of the single-disk software version upgrade monitoring method of the present invention. As Figure 3 shown, the disk number of the single disk to be upgraded includes the single-disk hardware disk number, the single-disk PCB board number, and the production number of the incompatible hardware devices of the single-disk hardware. Among them, the disk number of the single disk to be upgraded is in a two-level numbering format. The first-level number includes the single-disk hardware disk number and the single-disk PCB board number, which are used to distinguish single disks with different types of functional characteristics. The second-level number is the production number of the incompatible hardware devices of the single-disk hardware, which is used to distinguish single disks that use incompatible hardware devices among the same type of functional characteristics.

[0066] Further, in one embodiment, the step of converting the disk numbers of the multiple single disks to be upgraded into multiple first digital digest information through a hash function includes:

[0067] Obtain the digital content of the production numbers of the incompatible hardware components of multiple single-disk hardware disk numbers, single-disk PCB board numbers, and single-disk hardware respectively;

[0068] Use the last X digits of the multiple single-disk hardware disk numbers and the last X digits of the single-disk PCB board numbers as multiple first calculation digits respectively, where X is a positive integer;

[0069] Use the last X digits of the production numbers of the incompatible hardware components of the single-disk hardware as multiple second calculation digits respectively;

[0070] Perform exclusive OR operations on the multiple first calculation digits and the multiple second calculation digits respectively to obtain multiple exclusive OR operation results;

[0071] Perform modulo operations on the multiple exclusive OR operation results and a preset value respectively to obtain multiple modulo operation results, and use the multiple modulo operation results as multiple first digital digest information, where the preset value is the largest prime number within the number of software version types of the single-disk to be upgraded included in the software package to be upgraded.

[0072] In this embodiment, referring to Figure 6 , Figure 6 is a schematic diagram of single-disk number conversion for an embodiment of the single-disk software version upgrade monitoring method of the present invention. As Figure 6 shown, taking the acquisition of a first digital digest information as an example, remove all the fixed string fields common to the single-disk in the first-level number, and obtain the digital content in the first-level number, that is, obtain the digital content of the single-disk hardware disk number and the single-disk PCB board number, remove the fixed string fields in the second-level number, and obtain the digital content in the second-level number, that is, obtain the digital content of the production number of the incompatible hardware component of the single-disk hardware, and then obtain the last X digits of the single-disk hardware disk number from the single-disk hardware disk number, obtain the last X digits of the single-disk PCB board number from the single-disk PCB board number, and obtain the last X digits of the production number of the incompatible hardware component of the single-disk hardware from the production number of the incompatible hardware component of the single-disk hardware. Among them, use the last X digits of the single-disk hardware disk number and the last X digits of the single-disk PCB board number as the first calculation digits, use the last X digits of the production number of the incompatible hardware component of the single-disk hardware as the second calculation digits, X is a positive integer, perform an exclusive OR operation on the first calculation digits and the second calculation digits to obtain an exclusive OR operation result, perform a modulo operation on the exclusive OR operation result and a preset value to obtain a modulo operation result, and use the modulo operation result as the first digital digest information, where the preset value is the largest prime number within the number of software version types of the single-disk to be upgraded included in the software package to be upgraded. It is easy to think that the implementation steps for obtaining multiple first digital digest information are the same as those for obtaining a first digital digest information.

[0073] Specifically, assume that the software version types of the single disks to be upgraded included in the software package to be upgraded are 100. Then, the largest prime number within 100 is 97. Taking the single-disk hardware disk number ABC1234183, the single-disk PCB board number ABC1234239, and the production number of the incompatible hardware device of the single-disk hardware ICCHIP1234567 as examples, obtain the last three digits "183" of the single-disk hardware disk number and the last three digits "239" of the single-disk PCB board number. After a shift operation, the first calculated number "183239" is obtained. Use the last three digits "567" of the production number of the incompatible hardware device of the single-disk hardware as the second calculated number. Perform an exclusive OR operation on the first calculated number "183239" and the second calculated number "567" to obtain the exclusive OR operation result "182768". Perform a modulo operation on the exclusive OR operation result "182768" and "97" (the largest prime number within 100) to obtain the modulo operation result 20. Take the modulo operation result 20 as the first digital digest information, that is, the first digital digest information is 20.

[0074] Step S20: Create an array in the memory, store the multiple first digest information in the memory, and determine multiple first data storage addresses according to the multiple first digest information and the addresses of each element in the array;

[0075] In this embodiment, refer to Figure 4 , Figure 4 which is a schematic diagram of the information interaction architecture of an embodiment of the single-disk software version upgrade monitoring method of the present invention. As Figure 4 shown, create an array in the memory. If the multiple first digest information is not stored in the array in the memory but only stored in the memory, then determine multiple first data storage addresses according to the multiple first digest information and the addresses of each element in the array, that is, the multiple first data storage addresses are not the data storage addresses corresponding to the multiple first digest information but only the addresses of the elements in the array corresponding to the multiple first digest information.

[0076] Create an array in the memory. If the multiple first digest information is stored in the array in the memory, then determine multiple first data storage addresses corresponding to the multiple first digest information according to the multiple first digest information and the addresses of each element in the array, that is, the multiple first data storage addresses are the data storage addresses corresponding to the multiple first digest information.

[0077] Further, in one embodiment, step S20 includes:

[0078] Create an array in the memory, store the multiple first digest information in the memory, and determine multiple first data storage addresses according to the multiple first digest information and the addresses of each element in the array;

[0079] Alternatively, create an array in memory, store the obtained multiple first digest information in the array in memory, and determine the multiple first data storage addresses corresponding to the multiple first digest information according to the multiple first digest information and the addresses of each element in the array.

[0080] In this embodiment, create an array A[] in memory, store the obtained multiple first digest information in memory. If the multiple first digest information are 20, 24, and 26 respectively, then set the data content corresponding to array A

[20] , array A

[24] , and array A

[26] to valid bits. For example, A

[20] =1, A

[24] =1, A

[26] =1, and set the data content corresponding to other array elements to invalid bits. For example, A

[25] =0. At this time, the multiple first data storage addresses are respectively the addresses of array A

[20] , the address of array A

[24] , and the address of array A

[26] . However, the multiple first data storage addresses are not the data storage addresses corresponding to the multiple first digest information.

[0081] Alternatively, create an array A[] in memory, store the obtained multiple first digest information in the array in memory. If the multiple first digest information are 20, 24, and 26 respectively, then the first data storage address corresponding to the first digest information of 20 is the address of array A

[20] , the first data storage address corresponding to the first digest information of 24 is the address of array A

[24] , and the first data storage address corresponding to the first digest information of 26 is the address of array A

[26] . At this time, the multiple first data storage addresses are the data storage addresses corresponding to the multiple first digest information.

[0082] Step S30, obtain each second digital digest information of the disk numbers of each single-disk hardware in the device;

[0083] In this embodiment, first obtain the disk numbers of each single-disk hardware in the device, and then convert the disk numbers of each single-disk hardware in the device into second digital digest information through a hash function, so as to obtain each second digital digest information of the disk numbers of each single-disk hardware in the device. Among them, the implementation steps of converting the disk numbers of each single-disk hardware in the device into second digital digest information through a hash function are the same as the implementation steps of converting the disk numbers of multiple disks to be upgraded into multiple first digital digest information through a hash function, and will not be elaborated here one by one.

[0084] Further, in one embodiment, step S30 includes:

[0085] Send a query request to each non-activated central processing disk hardware and / or non-central processing disk hardware in the format of an Ethernet message through an Ethernet bus;

[0086] Receiving the second digital digest information of each central processing disk hardware and / or non-central processing disk hardware in the inactive state feedback by each non-activated central processing disk hardware and / or non-central processing disk hardware based on the query request;

[0087] Reading the single-disk number in the power-off non-volatile device on the motherboard of the active central processing disk hardware, and then converting the single-disk number in the power-off non-volatile device on the motherboard of the active central processing disk hardware into the second digital digest information of the active central processing disk hardware through a hash function.

[0088] In this embodiment, continue to refer to Figure 4 , if you want to obtain the second digital digest information of the single-disk number of each non-central processing disk hardware, a request for querying the single-disk number of each non-activated central processing disk hardware and / or non-central processing disk hardware is sent to each non-activated central processing disk hardware and / or non-central processing disk hardware in the format of an Ethernet message through the FE / GE Ethernet bus and the ETH network port. Among them, refer to Figure 5 Figure 5 is a schematic diagram of the Ethernet message format of an embodiment of the single-disk software version upgrade monitoring method of the present invention. As Figure 5 shown, the query request information is in the format of an Ethernet message, encapsulated with a preset specific vlan, and the internal transfer control of the message in the device is performed using a preset specific MAC address format. Among them, the destination MAC (DMAC) field carried in the message, the first five fixed bytes are used to indicate internal device communication, and the last byte is used to indicate the slot information (destination end) of the single disk (i.e., non-activated central processing disk hardware and / or non-central processing disk hardware) being queried. For example, 00-01-0a-c2-00-09 (hexadecimal), the first five bytes 00-01-0a-c2-00 indicate internal device communication, and the last byte 0x09 indicates the information for querying slot 9; the source MAC (SMAC) field carried in the message, the first five fixed bytes are used to indicate internal device communication, and the last byte is used to indicate the slot information (source end) of the central control disk (i.e., active central processing disk hardware) that initiates the query. For example, 00-01-0a-c2-00-20 (hexadecimal), indicating the query information sent for slot 32; the specific vlan information carried in the message is used to indicate that the purpose of the message is single-disk software version query or response to the query. For example Figure 5 in the double-layer label field, the value of the inner VLAN being 1 indicates that the purpose of the message is single-disk software version query, and the value being 2 indicates the response to the single-disk software version query. The payload information carried in the message is used to store digital digest information when responding to the service disk. For example Figure 5 ​The middle payload field. The padding field is used to pad the message length to an effective length so that the message can be forwarded normally; crc (redundancy check) is used for the receiving end to check the message to ensure that the message has not been changed during transmission.

[0089] Continue to refer to Figure 4 , after the hardware of the central processing disk and / or non-central processing disk in each inactive state receives a query request through the Ethernet bus and the ETH network interface, the data processing module reads each single-disk number stored in each power-off non-volatile device on the motherboard of the hardware of the central processing disk and / or non-central processing disk in each inactive state, and converts each single-disk number in each power-off non-volatile device on the motherboard of the hardware of the central processing disk and / or non-central processing disk in each inactive state into each second digital digest information through a hash function. Among them, there is one and only one power-off non-volatile device on each single-disk floor, which only stores the relevant information of this single disk, and each single-disk number is stored at the fixed register address in each power-off non-volatile storage device. The step of converting each single-disk number in each power-off non-volatile device on the motherboard of the hardware of the central processing disk and / or non-central processing disk in each inactive state into each second digital digest information through a hash function is the same as the implementation step of converting the single-disk numbers of multiple single disks to be upgraded into multiple first digital digest information through a hash function, and will not be elaborated here one by one.

[0090] The hardware of the central processing disk and / or non-central processing disk in each inactive state sends each second digital digest information in the format of an Ethernet message through the Ethernet bus and the ETH network interface. Continue to refer to Figure 4 and Figure 5 , fill each second digital digest information into Figure 5 the payload field of the Ethernet message used for communication in, fill the slot information of the hardware of the central processing disk and / or non-central processing disk in the inactive state in the last byte of SMAC, fill the slot information of the hardware of the central processing disk in the active state in the last byte of DMAC, and after encapsulating with a preset specific vlan in the format of an Ethernet message, transmit it to the central processing disk CPU through the internal Ethernet bus and the ETH network interface of the device.

[0091] The data processing module of the hardware of the central processing disk in the active state parses each received Ethernet message to obtain each second digital digest information. Specifically, according to Figure 5Parse the Ethernet packet according to the packet format defined in , that is, parse the last byte of the DMAC address (the 6th byte of the packet), and determine whether it is the slot ID of the active central processing disk. If it is not, discard the packet. If it is, then parse the second-to-last byte of the DMAC address (the 5th byte of the packet), and determine whether it is 0x00. If it is not, discard the packet. If it is, then parse the second-to-last byte of the SMAC address (the 11th byte of the packet), and determine whether it is 0x00. If it is not, discard the packet. If it is, then obtain the V-TAG content of the 13th and 14th bytes of the packet, and determine whether it is a packet with vlan encapsulation. If it is not a packet with vlan encapsulation, then discard the packet. If it is a packet with vlan encapsulation, then parse the vlan_id information (the 15th and 16th bytes of the packet). If it is not 4092 (i.e., 0xffc), then discard the packet. If it is, then obtain the V-TAG content of the 17th and 18th bytes, and determine whether it is 0x79f. If it is not, then do nothing but stop parsing. If it is, then parse the vlan_id information (the 19th and 20th bytes), and determine whether it is 01 (query packet) or 02 (response packet). If it is not, then discard the packet. If it is, then obtain the slot ID of the non-active central processing disk hardware and / or non-central processing disk hardware where the second digital digest information is located from the last byte of the SMAC address (the 12th byte of the packet), and obtain the second digital digest information of the non-central processing disk hardware from the 21st byte of the packet. Among them, if the 20th byte is 0x01, it represents a query packet, and the subsequent payload data field is all zeros; if the 20th byte is 0x02, it represents a response packet, and the subsequent payload data field is the second digital digest information filled in by the line card in response to the active central processing disk. The second digital digest information is used for judgment, and the slot ID information of the non-active central processing disk hardware and / or non-central processing disk hardware is used when recording the judgment result.

[0092] If you want to obtain the second digital digest information of the single-disk number of the active central processing disk hardware, directly read the single-disk number in the power-off non-volatile device on the backplane of the active central processing disk hardware, without sending and receiving query requests. After obtaining the second digital digest information of the single-disk number of the active central processing disk hardware, directly convert the single-disk number in the power-off non-volatile device on the backplane of the active central processing disk hardware into the second digital digest information through a hash function.

[0093] Among them, in each slot of each single disk in the device, the slot information of each single disk is provided by the upper-layer software, and each single disk includes non-active central processing disk hardware, non-central processing disk hardware, and active central processing disks.

[0094] Step S40: Determine each second data storage address according to the respective second summary information, and determine whether each single disk in the device passes the verification based on the values at the respective second data storage addresses and the values at multiple first data storage addresses.

[0095] In this embodiment, if the respective second summary information is 19, 20, 28, the respective second data storage addresses are A

[19] , A

[20] , and A

[28] . Since A

[19] =0, A

[20] =1, A

[28] =0, the judgment result is that not all single disks in the device pass the verification. If the respective second summary information is 20, 24, 26, the respective second data storage addresses are A

[20] , A

[24] , and A

[26] . Since A

[20] =1, A

[24] =1, A

[26] =1, the judgment result is that all single disks in the device pass the verification. If the respective second summary information is 19, 21, 28, the respective second data storage addresses are A

[19] , A

[20] , and A

[28] . Since A

[19] =0, A

[21] =0, A

[28] =0, the judgment result is that all single disks in the device do not pass the verification.

[0096] Or, if the respective second summary information is 19, 20, 28, the respective second data storage addresses are A

[19] , A

[20] , and A

[28] . Since only 20 is stored at the address of A

[20] , 24 is stored at the address of A

[24] , and 26 is stored at the address of A

[26] , so A

[20] is equal to 20, A

[19] is not equal to 19, A

[28] is not equal to 28, so the judgment result is that not all single disks in the device pass the verification. If the respective second summary information is 20, 24, 26, the respective second data storage addresses are A

[20] , A

[24] , and A

[26] . Since 20 is stored at the address of A

[20] , 24 is stored at the address of A

[24] , and 26 is stored at the address of A

[26] , so A

[20] is equal to 20, A

[24] is equal to 24, A

[26] is not equal to 26, so the judgment result is that all single disks in the device pass the verification.

[0097] Further, after obtaining the judgment results of each single disk in the device, record the judgment results of each single disk in the device in the verification log.

[0098] Step S50: Based on the judgment result, determine whether to upgrade the single-disk hardware in the device.

[0099] In this embodiment, based on the judgment result, determine that the single-disk hardware in the device can be upgraded or cannot be upgraded.

[0100] Further, in one embodiment, step S50 includes:

[0101] If the judgment result is that all single disks in the device pass the verification, then upgrade the hardware of each single disk in the device;

[0102] Or,

[0103] If the judgment result is that not all single disks in the device pass the verification, then upgrade the hardware of each single disk that passes the verification;

[0104] Or,

[0105] If the judgment result is that not all single disks in the device pass the verification, then update the software package to be upgraded or power off the hardware of each single disk that fails the verification, and then upgrade the hardware of each single disk in the device.

[0106] In this embodiment, if the judgment result is that all single disks in the device pass the verification, then upgrade the hardware of each single disk in the device.

[0107] Or, if the judgment result is that all single disks in the device fail the verification, then update the new software package to be upgraded.

[0108] Or, if the judgment result is that not all single disks in the device pass the verification, then upgrade the hardware of each single disk that passes the verification. For example, if the second digest information is 19 and A

[19] =0, then the single disk with the second digest information of 19 fails the verification, and the single disk with the second digest information of 19 will not be upgraded. If the second digest information is 20 and A

[20] =1, then the single disk with the second digest information of 20 passes the verification, and the single disk with the second digest information of 20 will be upgraded. That is, according to the judgment result, if the verification passes, upgrade the single disk

[0109] Or, if the respective second digest information is 19, 20, 28, and A

[19] =0, A

[20] =1, A

[28] =0, then only the single disk with the second digest information of 20 passes the verification, and update the software package to be upgraded. That is, as long as there is one single disk in the device that fails the verification, update the software package to be upgraded and do not upgrade the single disk. Or, after powering off the hardware of the single disks with the second digest information of 19 and 28, then upgrade the hardware of each single disk in the device, that is, upgrade the hardware of each single disk that passes the verification, that is, upgrade the single disk with the second digest information of 20. That is, after summarizing all the single disk judgment results, then perform the operation of updating the software package to be upgraded or the operation of upgrading the hardware of each single disk that passes the verification.

[0110] In this embodiment, multiple first digital digest information of the disk numbers of multiple disks to be upgraded included in the software package to be upgraded is obtained; an array is created in the memory, and the multiple first digest information is stored in the memory, and multiple first data storage addresses are determined according to the multiple first digest information and the addresses of each element in the array; each second digital digest information of the disk numbers of each single-disk hardware in the device is obtained; each second data storage address is determined according to each second digest information, and it is judged whether each single disk in the device passes the verification according to the values on each second data storage address and the values on multiple first data storage addresses; based on the judgment result, it is determined whether the single-disk hardware in the device is upgraded. Through this embodiment, multiple first digital digest information of the disk numbers of multiple disks to be upgraded included in the software package to be upgraded and each second digital digest information of the disk numbers of each single-disk hardware in the device are obtained, and the judgment is made based on the values on multiple first data storage addresses corresponding to the multiple first digital digest information and the values on each second data storage address corresponding to each second digital digest information. Based on the judgment result, it can be determined whether the single-disk hardware in the device is upgraded, and a large number of software version numbers do not need to be introduced. Therefore, the problem in the prior art that a large number of software version numbers need to be introduced to avoid errors in single-disk software version upgrade, which leads to difficult management of the single-disk software version of the device and a huge software package of the whole device affecting the use, is solved.

[0111] In a third aspect, an embodiment of the present invention further provides a single-disk software version upgrade monitoring device.

[0112] In one embodiment, referring to Figure 7 , Figure 7 is a schematic diagram of the functional modules of the first embodiment of the single-disk software version upgrade monitoring device of the present invention. As Figure 7 shown, the single-disk software version upgrade monitoring device includes:

[0113] A first acquisition module 10, configured to acquire multiple first digital digest information of the disk numbers of multiple disks to be upgraded included in the software package to be upgraded;

[0114] A storage module 20, configured to create an array in the memory, store the multiple first digest information in the memory, and determine multiple first data storage addresses according to the multiple first digest information and the addresses of each element in the array;

[0115] A second acquisition module 30, configured to acquire each second digital digest information of the disk numbers of each single-disk hardware in the device;

[0116] A judgment module 40, configured to determine respective second data storage addresses according to the respective second summary information, and determine whether each single disk in the device passes verification according to the values on the respective second data storage addresses and the values on a plurality of first data storage addresses;

[0117] A determination module 50, configured to determine whether to upgrade the single-disk hardware in the device based on the judgment result.

[0118] Further, in one embodiment, a first acquisition module 10 is configured to:

[0119] Decompress the software package to be upgraded, and obtain the disk numbers of a plurality of single disks to be upgraded included in the software package to be upgraded;

[0120] Convert the disk numbers of the plurality of single disks to be upgraded into a plurality of first digital summary information through a hash function.

[0121] Further, in one embodiment, the disk number of the single disk to be upgraded includes the hardware disk number of the single disk, the PCB board number of the single disk, and the production number of the incompatible hardware components of the single disk hardware.

[0122] Further, in one embodiment, the first acquisition module 10 is further configured to:

[0123] Respectively obtain the digital contents of a plurality of single-disk hardware disk numbers, single-disk PCB board numbers, and production numbers of the incompatible hardware components of the single disk hardware;

[0124] Respectively use the last X digits of a plurality of single-disk hardware disk numbers and the last X digits of the single-disk PCB board numbers as a plurality of first calculation digits, where X is a positive integer;

[0125] Respectively use the last X digits of the production numbers of the incompatible hardware components of the single disk hardware as a plurality of second calculation digits;

[0126] Respectively perform exclusive OR operations on the plurality of first calculation digits and the plurality of second calculation digits to obtain a plurality of exclusive OR operation results;

[0127] Respectively perform modulo operations on the plurality of exclusive OR operation results and a preset value to obtain a plurality of modulo operation results, and use the plurality of modulo operation results as a plurality of first digital summary information, where the preset value is the largest prime number within the number of types of software version types of the single disks to be upgraded included in the software package to be upgraded.

[0128] Further, in one embodiment, a second acquisition module 30 is configured to:

[0129] Send a query request to each non-activated central processing disk hardware and / or non-central processing disk hardware in an Ethernet message format through an Ethernet bus;

[0130] Receiving the second digital digest information of each central processing disk hardware and / or non-central processing disk hardware in the inactive state feedback by each non-activated central processing disk hardware and / or non-central processing disk hardware based on the query request;

[0131] Reading the single-disk number in the power-off non-volatile device on the motherboard of the active central processing disk hardware, and then converting the single-disk number in the power-off non-volatile device on the motherboard of the active central processing disk hardware into the second digital digest information of the active central processing disk hardware through a hash function.

[0132] Further, in one embodiment, the storage module 20 is configured to:

[0133] Create an array in the memory, store the multiple first digest information in the memory, and determine multiple first data storage addresses according to the multiple first digest information and the addresses of each element in the array;

[0134] Or, create an array in the memory, store the obtained multiple first digest information in the array in the memory, and determine the multiple first data storage addresses corresponding to the multiple first digest information according to the multiple first digest information and the addresses of each element in the array.

[0135] Further, in one embodiment, the determination module 50 is configured to:

[0136] If the judgment result is that each single disk in the device passes the verification, upgrade each single disk hardware in the device;

[0137] Or,

[0138] If the judgment result is that not all single disks in the device pass the verification, upgrade each single disk hardware that passes the verification;

[0139] Or,

[0140] If the judgment result is that not all single disks in the device pass the verification, update the software package to be upgraded or power off each single disk hardware that fails the verification, and then upgrade each single disk hardware in the device.

[0141] Wherein, the function implementation of each module in the above single-disk software version upgrade monitoring device corresponds to each step in the embodiment of the above single-disk software version upgrade monitoring method, and its function and implementation process will not be elaborated here one by one.

[0142] Fourthly, an embodiment of the present invention further provides a readable storage medium.

[0143] The readable storage medium of the present invention stores a single-disk software version upgrade monitoring program, wherein when the single-disk software version upgrade monitoring program is executed by a processor, the steps of the above single-disk software version upgrade monitoring method are implemented.

[0144] Among them, the method implemented when the single-disk software version upgrade monitoring program is executed can refer to the respective embodiments of the single-disk software version upgrade monitoring method of the present invention, which will not be elaborated herein.

[0145] It should be noted that in this article, the terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or further includes elements inherent to such process, method, article or system. Without more limitations, an element defined by the statement "including one..." does not exclude the existence of additional identical elements in the process, method, article or system including that element.

[0146] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0147] Through the description of the above embodiments, those skilled in the art can clearly understand that the above embodiment methods can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium as described above (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions for causing a terminal device to execute the methods described in the respective embodiments of the present invention.

[0148] The above are only the preferred embodiments of the present invention and do not limit the patent scope of the present invention accordingly. Any equivalent structure or equivalent process transformation made by using the description of the specification and drawings of the present invention, or directly or indirectly applied in other related technical fields, shall be similarly included in the patent protection scope of the present invention.

Claims

1. A method for monitoring the upgrade of a single-disk software version, characterized in that, The single-disk software version upgrade monitoring method includes: Obtaining a plurality of first digital digest information of the single-disk numbers of a plurality of single disks to be upgraded included in the software package to be upgraded; Creating an array in the memory, storing the plurality of first digital digest information in the memory, and determining a plurality of first data storage addresses according to the plurality of first digital digest information and the addresses of each element in the array; Obtaining each second digital digest information of the single-disk numbers of each single-disk hardware in the device; Determining each second data storage address according to the each second digital digest information, and judging whether each single disk in the device passes the verification according to the values on the each second data storage address and the values on the plurality of first data storage addresses; Based on the judgment result, determining whether the single-disk hardware in the device is upgraded; The step of obtaining each second digital digest information of the single-disk numbers of each single-disk hardware in the device includes: Sending a query request to each non-activated central processing disk hardware and / or non-central processing disk hardware in the format of an Ethernet message through an Ethernet bus; Receiving each second digital digest information of each non-activated central processing disk hardware and / or non-central processing disk hardware fed back by each non-activated central processing disk hardware and / or non-central processing disk hardware based on the query request; Reading the single-disk number in the power-off non-volatile device on the motherboard of the activated central processing disk hardware, and then converting the single-disk number in the power-off non-volatile device on the motherboard of the activated central processing disk hardware into the second digital digest information of the activated central processing disk hardware through a hash function.

2. The single-disk software version upgrade monitoring method according to claim 1, wherein The step of obtaining a plurality of first digital digest information of the single-disk numbers of a plurality of single disks to be upgraded included in the software package to be upgraded includes: Uncompressing the software package to be upgraded, and obtaining the single-disk numbers of a plurality of single disks to be upgraded included in the software package to be upgraded; Converting the single-disk numbers of the plurality of single disks to be upgraded into a plurality of first digital digest information through a hash function.

3. The single-disk software version upgrade monitoring method according to claim 2, wherein The single-disk number of the single disk to be upgraded includes the single-disk hardware disk number, the single-disk PCB board number, and the production number of the incompatible hardware devices of the single-disk hardware.

4. The single-disk software version upgrade monitoring method according to claim 3, wherein The step of converting the single-disk numbers of the plurality of single disks to be upgraded into a plurality of first digital digest information through a hash function includes: Respectively obtaining the digital contents of a plurality of single-disk hardware disk numbers, single-disk PCB board numbers, and production numbers of the incompatible hardware devices of the single-disk hardware; Respectively using the last X digits of a plurality of single-disk hardware disk numbers and the last X digits of the single-disk PCB board numbers as a plurality of first calculation digits, where X is a positive integer; Respectively using the last X digits of the production numbers of the incompatible hardware devices of the single-disk hardware as a plurality of second calculation digits; Respectively performing exclusive OR operations on the plurality of first calculation digits and the plurality of second calculation digits to obtain a plurality of exclusive OR operation results; Respectively performing modulo operations on the plurality of exclusive OR operation results and a preset value to obtain a plurality of modulo operation results, and using the plurality of modulo operation results as a plurality of first digital digest information, where the preset value is the largest prime number within the number of types of software version types of the single disks to be upgraded included in the software package to be upgraded.

5. The single-disk software version upgrade monitoring method according to claim 1, wherein The step of creating an array in the memory, storing the multiple first digital digest information in the memory, and determining multiple first data storage addresses according to the multiple first digital digest information and the addresses of each element in the array includes: Create an array in the memory, store the multiple first digital digest information in the memory, and determine multiple first data storage addresses according to the multiple first digital digest information and the addresses of each element in the array; Or, create an array in the memory, store the obtained multiple first digital digest information in the array in the memory, and determine multiple first data storage addresses corresponding to the multiple first digital digest information according to the multiple first digital digest information and the addresses of each element in the array.

6. The single-disk software version upgrade monitoring method according to claim 1, characterized in that, The step of determining whether to upgrade the single-disk hardware in the device based on the judgment result includes: If the judgment result is that each single disk in the device passes the verification, upgrade each single-disk hardware in the device; Or, If the judgment result is that not all single disks in the device pass the verification, upgrade each single-disk hardware that passes the verification; Or, If the judgment result is that not all single disks in the device pass the verification, after updating the software package to be upgraded, then upgrade each single-disk hardware in the device; Or, If the judgment result is that not all single disks in the device pass the verification, power off each single-disk hardware that fails the verification, and then upgrade each single-disk hardware in the device.

7. A single-disk software version upgrade monitoring device, which is used to implement the steps of the single-disk software version upgrade monitoring method described in any one of claims 1 to 6, and is characterized in that, The single-disk software version upgrade monitoring device includes: A first acquisition module, configured to acquire multiple first digital digest information of the single-disk numbers of multiple single disks to be upgraded included in the software package to be upgraded; A storage module, configured to create an array in the memory, store the multiple first digital digest information in the memory, and determine multiple first data storage addresses according to the multiple first digital digest information and the addresses of each element in the array; A second acquisition module, configured to acquire each second digital digest information of the single-disk numbers of each single-disk hardware in the device; A judgment module, configured to determine each second data storage address according to the each second digital digest information, and judge whether each single disk in the device passes the verification according to the values on the each second data storage address and the values on the multiple first data storage addresses; A determination module, configured to determine whether to upgrade the single-disk hardware in the device based on the judgment result.

8. A single-disk software version upgrade monitoring device, characterized in that The single-disk software version upgrade monitoring device includes a processor, a memory, and a single-disk software version upgrade monitoring program stored on the memory and executable by the processor. When the single-disk software version upgrade monitoring program is executed by the processor, the steps of the single-disk software version upgrade monitoring method described in any one of claims 1 to 6 are implemented.

9. A readable storage medium, characterized in that, A readable storage medium stores a single-disk software version upgrade monitoring program. When the single-disk software version upgrade monitoring program is executed by a processor, the steps of the single-disk software version upgrade monitoring method described in any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Method of updating software edition of mobile terminal

    CN101179791A