A method, apparatus and medium for upgrading transparent bridge firmware
By acquiring service information of storage nodes through LLDP links, determining the busy level of the transparent bridge and adjusting strategies, orderly upgrades of the transparent bridge firmware are achieved, solving the vulnerabilities and scalability issues of firmware upgrades in large storage networks and improving the user experience.
Patent Information
- Application Number
- CN202310260279.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-17
- Publication Date
- 2025-12-02
- Estimated Expiration
- 2043-03-17
AI Technical Summary
In large and complex storage networks, transparent bridge firmware cannot be upgraded simultaneously or in an orderly manner, resulting in firmware vulnerabilities and scalability issues that affect user experience.
By obtaining service information of storage nodes through the Link Layer Discovery Protocol (LLDP), determining the busy level of the transparent bridge, and adjusting the service information strategy according to the relationship between the busy level and the threshold, the transparent bridge firmware can be upgraded in an orderly manner.
The bugs caused by the firmware not being updated have been resolved, the firmware's extensibility has been improved, and the user experience has been enhanced.
Smart Images

Figure CN116260719B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer technology, and in particular to a method, apparatus and medium for upgrading transparent bridge firmware. Background Technology
[0002] A transparent bridge is a switch device typically used for bus expansion. All devices on the secondary side of the bridge are transparent to the primary side master system. All devices on the secondary side can only be configured and controlled by the primary side master system. The clocks on both sides must be synchronized, allowing for a fixed phase difference. Addresses on the primary and secondary sides are completely transparent; address passing between the primary and secondary sides is pass-through, without address translation. By isolating Peripheral Component Interconnect (PCI) bus segments through a transparent bridge, it provides the ability to expand the number of loads and match different operating frequencies, bus widths, or voltages.
[0003] In storage networks where storage cabinets and independent heads are separate, transparent bridges connect the independent heads and storage cabinets. In large and complex storage networks, the larger the storage capacity, the more storage cabinets need to be connected, and the more transparent bridges are required. When a transparent bridge needs a firmware upgrade, it is impossible to upgrade the firmware of the transparent bridges simultaneously or in an orderly manner, thus failing to resolve firmware vulnerabilities (bugs) and the expanded functionality after the firmware upgrade.
[0004] Therefore, finding a method for transparent bridge firmware upgrade is a problem that urgently needs to be solved by those skilled in the art. Summary of the Invention
[0005] The purpose of this invention is to provide a method, apparatus, and medium for upgrading transparent bridge firmware, which can solve bugs and scalability issues that exist when the firmware is not upgraded after the firmware is upgraded, improve firmware scalability, and enhance user experience.
[0006] To solve the above-mentioned technical problems, the present invention provides a method for upgrading transparent bridge firmware, comprising:
[0007] Determine the target storage node corresponding to the transparent bridge firmware upgrade requirement among each storage node;
[0008] The business information corresponding to each storage node is obtained through the link layer discovery protocol link;
[0009] The busy level of the transparent bridge corresponding to each of the storage nodes is determined based on the business information.
[0010] Based on the relationship between the busy level and the threshold of the target storage node, a corresponding strategy for adjusting the service information of each storage node is determined to facilitate the transparent bridge firmware upgrade of the target storage node.
[0011] Preferably, obtaining the service information corresponding to each storage node through the link layer discovery protocol includes:
[0012] The link layer discovery protocol link sends firmware upgrade message information to each of the storage nodes so that each storage node can determine the service information of its own switch card based on the message information after receiving it, and send the service information to the master control node.
[0013] Receive the service information sent by each of the storage nodes.
[0014] Preferably, determining the corresponding service information adjustment strategy for each storage node based on the relationship between the busy level of the target storage node and a threshold includes:
[0015] Determine whether the busy level is greater than a threshold;
[0016] If so, the service information of the target storage node will be transferred to other storage nodes, wherein the other storage nodes are storage nodes other than the target storage node that have completed firmware upgrades or have not undergone firmware upgrades.
[0017] If not, then a firmware upgrade command is sent to the target storage node.
[0018] Preferably, after transferring the service information of the target storage node to other storage nodes, the method further includes:
[0019] The firmware upgrade file information is sent to the target storage node via a secure copy command, so that the target storage node can generate a link layer discovery protocol message and send the link layer discovery protocol message to the master node.
[0020] The firmware upgrade command is sent to the target storage node to facilitate firmware upgrade.
[0021] Preferably, it further includes:
[0022] Once the target storage node has been upgraded, obtain the upgrade feedback information of the target storage node;
[0023] A transparent bridge firmware upgrade report is generated based on the upgrade feedback information.
[0024] Preferably, when the upgrade feedback information is an upgrade failure message, it further includes:
[0025] Output alarm information and report the upgrade failure information to the user.
[0026] Preferably, the service information includes at least the service level of the input and output, the link bandwidth and link rate of the link layer discovery protocol link.
[0027] To address the aforementioned technical problems, the present invention also provides a device for upgrading transparent bridge firmware, comprising:
[0028] The first determining module is used to determine the target storage node corresponding to the transparent bridge firmware upgrade requirement among the storage nodes;
[0029] The acquisition module is used to acquire the service information corresponding to each storage node through the link layer discovery protocol link;
[0030] The second determining module is used to determine the busy level of the transparent bridge corresponding to each of the storage nodes based on the business information.
[0031] The third determining module is used to determine a corresponding strategy for adjusting the service information of each storage node based on the relationship between the busy level of the target storage node and the threshold, so as to facilitate the transparent bridge firmware upgrade of the target storage node.
[0032] To address the aforementioned technical problems, the present invention also provides a device for upgrading transparent bridge firmware, comprising:
[0033] Memory, used to store computer programs;
[0034] A processor, used to execute the computer program to implement the steps of the transparent bridge firmware upgrade method as described above.
[0035] To address the aforementioned technical problems, the present invention also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the transparent bridge firmware upgrade method described above.
[0036] This invention provides a method for transparent bridge firmware upgrades, comprising: identifying the target storage node corresponding to the transparent bridge firmware upgrade requirement among various storage nodes; obtaining service information corresponding to each storage node through a Link Layer Discovery Protocol (LLDP) link; determining the transparent bridge busy level corresponding to each storage node based on the service information; and determining a corresponding strategy for adjusting the service information of each storage node based on the relationship between the busy level of the target storage node and a threshold, so as to facilitate the transparent bridge firmware upgrade of the target storage node. This method obtains the service information of each storage node through a Link Layer Discovery Protocol link to determine the corresponding busy level, and then adjusts the corresponding service information according to the busy level to facilitate the orderly upgrade of the target storage node requiring transparent bridge firmware upgrades, without affecting the communication of service information between the storage node and the host. Simultaneously, because the firmware upgrade resolves bugs and scalability issues existing in the un-upgraded firmware, it improves firmware scalability and enhances the user experience.
[0037] In addition, the present invention also provides a device and medium for upgrading transparent bridge firmware, which have the same beneficial effects as the above-described method for upgrading transparent bridge firmware. Attached Figure Description
[0038] To more clearly illustrate the embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0039] Figure 1 A flowchart illustrating a method for upgrading transparent bridge firmware, provided as an embodiment of the invention;
[0040] Figure 2 A schematic diagram of a storage node network provided in an embodiment of the present invention;
[0041] Figure 3 A structural diagram of a transparent bridge firmware upgrade device provided in an embodiment of the present invention;
[0042] Figure 4 A structural diagram of another transparent bridge firmware upgrade device provided in an embodiment of the present invention;
[0043] Figure 5 This is a schematic diagram illustrating the application of another transparent bridge firmware upgrade method provided in an embodiment of the present invention. Detailed Implementation
[0044] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the protection scope of the present invention.
[0045] The core of this invention is to provide a method, apparatus, and medium for upgrading transparent bridge firmware, which is used to solve bugs and scalability issues that exist when the firmware is not upgraded after the firmware is upgraded, thereby improving the scalability of the firmware and enhancing the user experience.
[0046] To enable those skilled in the art to better understand the present invention, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0047] It should be noted that the transparent bridge firmware upgrade method provided by this invention is applied to the transparent bridge firmware upgrade of the storage device during the service transmission process between the storage device and the host. Storage devices contain various complex network links, and devices from different manufacturers need to discover each other and exchange their system and configuration information within the network. Link Layer Discovery Protocol (LLDP) technology is a standard information exchange platform that provides a standard link layer discovery method. It can organize information such as the main capabilities, management address, device identifier, and interface identifier of the local device into different types / lengths / values (TLVs) and encapsulate them in a Link Layer Discovery Protocol Data Unit (LLDPDU) to publish to its connected network neighbors. After receiving this information, the neighboring device saves it in the form of a standard Management Information Base (MIB) for the network management system to query and determine the communication status of the link.
[0048] Figure 1 A flowchart of a transparent bridge firmware upgrade method provided for embodiments of the invention, as shown below. Figure 1 As shown, the method includes:
[0049] S11: Determine the target storage node corresponding to the transparent bridge firmware upgrade requirement among each storage node;
[0050] S12: Obtain the business information corresponding to each storage node through the link layer discovery protocol link;
[0051] S13: Determine the busy level of the transparent bridge corresponding to each storage node based on business information;
[0052] S14: Determine the corresponding business information adjustment strategy for each storage node based on the relationship between the busy level of the target storage node and the threshold, so as to facilitate the transparent bridge firmware upgrade of the target storage node.
[0053] Specifically, the target storage node corresponding to the transparent bridge firmware upgrade requirement is determined in each storage node. Each storage node in the storage node network consists of an independent storage head and a storage disk array, which are connected by a transparent bridge. Figure 2 This is a schematic diagram of a storage node network provided in an embodiment of the present invention, as shown below. Figure 2 As shown, multiple storage nodes constitute a storage node network, and the storage nodes can be interconnected through switches.
[0054] In a storage node network, storage nodes are connected via LLDP links. When a transparent bridge requires a firmware upgrade, the master node sends LLDPU commands to each storage node. Before sending the LLDPU commands, the target storage node needs to be determined. The determination of the target storage node can be achieved by having each storage node report its own switch card message information to the master node, which then determines the corresponding storage node's firmware upgrade requirement. Alternatively, the master node can configure a monitoring thread to monitor input / output (IO) status or the switch card information of each storage node to determine the firmware upgrade requirement. This is not limited to any particular method and can be configured according to the actual situation.
[0055] After identifying the target storage nodes, the corresponding service information for each storage node is obtained via LLDP links. Since there are LLDP links between the storage nodes, the master node sends LLDPU commands to each storage node. Upon receiving the firmware upgrade message from the master node, each storage node feeds back its corresponding service information to the master node. Alternatively, an IO monitoring thread can be set up on each storage node to periodically send the current service status of each storage node to the master node.
[0056] As one embodiment, the service information corresponding to each storage node is obtained through the LLDP link, including:
[0057] Firmware upgrade messages are sent to each storage node via the LLDP link so that each storage node can determine the service information of its own switch card after receiving the message and send the service information to the master node.
[0058] Receive business information sent by each storage node.
[0059] Specifically, since there is also an LLDP link between each storage node and the master control node, message information for firmware upgrade is sent to each storage node through the LLDP link. When each storage node receives the message information, it determines the service information of its own switch card according to the message information and feeds the service information back to the master control node. The master control node receives the service information sent by each storage node.
[0060] Correspondingly, the service information is mainly used to record the information corresponding to the current storage node sending IO services to the host. As an example, the service information includes at least the IO service level, the LLDP link bandwidth and link rate.
[0061] The I / O workload level can be the level of I / O activity or the I / O workload level on the current storage node. Link bandwidth is the bandwidth value of the LLDP link, and link rate is the data transfer rate of the current LLDP link.
[0062] The workload of the transparent bridges corresponding to each storage node is determined based on business information. It should be noted that a transparent bridge is the one connecting the independent storage connector on a storage node to the storage expansion cabinet. The workload of the transparent bridges on each storage node can be determined using business information. The upgrade time can be determined based on the workload level.
[0063] The above embodiments mention that service information includes at least the I / O service level, LLDP link bandwidth, and link rate. The corresponding busy level is determined based on this service information. Since there are many parameters related to the service information, the choice of which parameter to use to determine the busy level, and whether each parameter has the same or different weight, are also important factors affecting the determination of the busy level. Different weight parameters can be assigned to various parameters; the parameter with the greater influence is given a higher weight to determine the corresponding busy level. The corresponding weight parameter settings can be set according to actual conditions and are not limited here.
[0064] After obtaining the transparent bridge busy level of each storage node in step S13, the busy level of the target node is also obtained. Based on the relationship between the busy level and a threshold, a corresponding service adjustment strategy is determined. When the busy level is greater than the threshold, it indicates that the current storage node is experiencing high service activity; when the busy level is less than or equal to the threshold, it indicates that the current storage node is experiencing low service activity, and no service information transfer or adjustment is required. If the current storage node's service activity is low, the current storage node's service operation can be interrupted to perform a transparent bridge firmware upgrade.
[0065] This invention provides a method for upgrading transparent bridge firmware, comprising: determining the target storage node corresponding to the transparent bridge firmware upgrade requirement among various storage nodes; obtaining service information corresponding to each storage node through an LLDP link; determining the transparent bridge busy level corresponding to each storage node based on the service information; and determining a corresponding strategy for adjusting the service information of each storage node based on the relationship between the busy level of the target storage node and a threshold, so as to facilitate the transparent bridge firmware upgrade of the target storage node. This method obtains the service information of each storage node through an LLDP link to determine the corresponding busy level, and then adjusts the corresponding service information according to the busy level to facilitate the orderly upgrade of the target storage node with transparent bridge firmware upgrade, without affecting the communication of service information between the storage node and the host. Simultaneously, because the firmware upgrade resolves bugs and scalability issues existing in the un-upgraded firmware, it improves firmware scalability and enhances the user experience.
[0066] Based on the above embodiments, a corresponding strategy for adjusting the service information of each storage node is determined according to the relationship between the busy level of the target storage node and the threshold, including:
[0067] Determine if the busy level exceeds a threshold;
[0068] If so, the business information of the target storage node will be transferred to other storage nodes, which are storage nodes other than the target storage node that have completed firmware upgrades or have not undergone firmware upgrades.
[0069] If not, then send a firmware upgrade command to the target storage node.
[0070] It should be noted that the busy level is determined to be greater than the threshold. If it is greater than the threshold, the current busy level is relatively high, and the business information on the target storage node needs to be adjusted and transferred to other storage nodes. Other storage nodes are storage nodes other than the target storage node that have completed firmware upgrades or do not involve firmware upgrades, or they can be redundant storage nodes of the target storage node.
[0071] If the busy level is less than or equal to the threshold, the current target storage node is not busy and can be interrupted for firmware upgrade.
[0072] This invention provides a method to determine whether the workload level exceeds a threshold. If so, the service information of the target storage node is adjusted and transferred to other storage nodes; otherwise, a firmware upgrade command is issued to the target storage node. By transferring the corresponding service information based on the relationship between workload level and threshold, the workload level on the current target storage node is alleviated, thereby improving the efficiency of firmware upgrades.
[0073] Based on the above embodiments, after adjusting and transferring the service information of the target storage node to other storage nodes, the method further includes:
[0074] The firmware upgrade file information is sent to the target storage node via the secure copy command so that the target storage node can generate LLDP message information and send the LLDP message information to the master node;
[0075] Send firmware upgrade instructions to the target storage node to facilitate firmware upgrade.
[0076] Specifically, the secure copy (scp) command is used to securely copy files to a remote system and from a remote system to the local machine via the SSH protocol. It is considered a secure way to transfer files across two remote hosts. The scp command is a convenient and secure way to transfer files between two remote nodes without worrying about attackers snooping on the data.
[0077] After obtaining the busy status result from the storage node, the scp command is executed to send the firmware file to be upgraded to the target storage node. Upon receiving the file, the target storage node sends the firmware upgrade file preparation information (LLDP message information) to the master node via the LLDP link.
[0078] Upon receiving the command, the master node sends a firmware upgrade instruction to the storage node via the LLDP link, instructing it to perform a firmware upgrade. The target storage node, upon receiving the instruction, executes the firmware upgrade script. It should be noted that there can be one or more target storage nodes; this is not limited here, as any node requiring a transparent bridge firmware upgrade is considered a target storage node.
[0079] This invention provides a method for transferring service information from a target storage node to another storage node. After this transfer, the firmware upgrade file information is sent to the target storage node via the `scp` command, enabling the target storage node to generate an LLDP message and send it to the master node. A firmware upgrade command is then issued to the target storage node to facilitate the firmware upgrade. Using the `scp` command to send the firmware upgrade file information to the target storage node improves data transmission security, and issuing the firmware upgrade command to the target storage node enables the firmware upgrade.
[0080] Based on the above embodiments, it also includes:
[0081] Once the target storage node upgrade is complete, obtain the upgrade feedback information for the target storage node;
[0082] A transparent bridge firmware upgrade report is generated based on the upgrade feedback information.
[0083] Specifically, once the target storage node upgrade is complete, the corresponding upgrade feedback information is obtained, and a transparent bridge firmware upgrade report is generated based on the upgrade feedback information for subsequent staff to review.
[0084] As one embodiment, when the upgrade feedback information is an upgrade failure message, it also includes:
[0085] Output alarm information and report upgrade failure information to the user.
[0086] Understandably, after the storage node firmware upgrade is complete, it will send upgrade information (success, failure, and reason for failure) back to the master node. Upon receiving this information, the master node will generate a transparent bridge firmware upgrade report. If any transparent bridge upgrade fails, an alarm will be sent to the user. The method of outputting alarm information is not limited; it can be a notification in a webpage display, an email notification, or a voice notification, etc., and can be configured according to the actual situation.
[0087] This invention provides a method for obtaining upgrade feedback information from a target storage node after its upgrade is complete, and generating a transparent bridge firmware upgrade report based on the upgrade feedback information. When the upgrade feedback information indicates an upgrade failure, an alarm message is output, and the upgrade failure information is reported to the user. The generated report facilitates easy access for staff, and if a failure message is received, an alarm message is output to alert the user or staff.
[0088] The foregoing has described in detail various embodiments of the transparent bridge firmware upgrade method. Based on this, the present invention also discloses an apparatus for transparent bridge firmware upgrade corresponding to the above method. Figure 3 This is a structural diagram of a transparent bridge firmware upgrade device provided in an embodiment of the present invention. Figure 3 As shown, the device for upgrading the transparent bridge firmware includes:
[0089] The first determining module 11 is used to determine the target storage node corresponding to the transparent bridge firmware upgrade requirement among the storage nodes;
[0090] The acquisition module 12 is used to acquire the business information corresponding to each storage node through the link layer discovery protocol link;
[0091] The second determination module 13 is used to determine the busy level of the transparent bridge corresponding to each storage node based on business information.
[0092] The third determining module 14 is used to determine the corresponding business information strategy for adjusting each storage node based on the relationship between the busy level of the target storage node and the threshold, so as to facilitate the transparent bridge firmware upgrade of the target storage node.
[0093] Since the embodiments of the device part correspond to the embodiments described above, please refer to the embodiments described in the method part for the embodiments of the device part, and will not be repeated here.
[0094] This invention provides an apparatus for transparent bridge firmware upgrades, comprising: determining the target storage node corresponding to the transparent bridge firmware upgrade requirement among various storage nodes; acquiring service information corresponding to each storage node via an LLDP link; determining the transparent bridge busy level of each storage node based on the service information; and determining a corresponding strategy for adjusting the service information of each storage node based on the relationship between the busy level of the target storage node and a threshold, so as to facilitate the transparent bridge firmware upgrade of the target storage node. This apparatus acquires the service information of each storage node via an LLDP link to determine the corresponding busy level, and then adjusts the corresponding service information according to the busy level to facilitate the orderly upgrade of the target storage node requiring transparent bridge firmware upgrades, without affecting the communication of service information between the storage node and the host. Furthermore, because the firmware upgrade resolves bugs and scalability issues existing in the un-upgraded firmware, it improves firmware scalability and enhances the user experience.
[0095] Figure 4 A structural diagram of another transparent bridge firmware upgrade device provided in an embodiment of the present invention is shown below. Figure 4 As shown, the device includes:
[0096] Memory 21 is used to store computer programs;
[0097] Processor 22, steps for implementing a method of transparent bridge firmware upgrade when executing a computer program.
[0098] The device for upgrading the transparent bridge firmware provided in this embodiment may include, but is not limited to, smartphones, tablets, laptops, or desktop computers.
[0099] The processor 22 may include one or more processing cores, such as a quad-core processor or an octa-core processor. The processor 22 may be implemented using at least one of the following hardware forms: Digital Signal Processor (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor 22 may also include a main processor and a coprocessor. The main processor, also known as the Central Processing Unit (CPU), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, the processor 22 may integrate a Graphics Processing Unit (GPU), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, the processor 22 may also include an Artificial Intelligence (AI) processor, which handles computational operations related to machine learning.
[0100] The memory 21 may include one or more computer-readable storage media, which may be non-transitory. The memory 21 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In this embodiment, the memory 21 is used to store at least the following computer program 211, which, after being loaded and executed by the processor 22, is capable of implementing the relevant steps of the transparent bridge firmware upgrade method disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 21 may also include an operating system 212 and data 213, etc., and the storage method may be temporary storage or permanent storage. The operating system 212 may include Windows, Unix, Linux, etc. The data 213 may include, but is not limited to, the data involved in the transparent bridge firmware upgrade method, etc.
[0101] In some embodiments, the transparent bridge firmware upgrade device may further include a display screen 23, an input / output interface 24, a communication interface 25, a power supply 26, and a communication bus 27.
[0102] Those skilled in the field can understand, Figure 4 The structure shown does not constitute a limitation on the apparatus for upgrading transparent bridge firmware and may include more or fewer components than shown.
[0103] The processor 22 implements the transparent bridge firmware upgrade method provided in any of the above embodiments by calling instructions stored in the memory 21.
[0104] This invention provides an apparatus for transparent bridge firmware upgrades, comprising: determining the target storage node corresponding to the transparent bridge firmware upgrade requirement among various storage nodes; acquiring service information corresponding to each storage node via an LLDP link; determining the transparent bridge busy level of each storage node based on the service information; and determining a corresponding strategy for adjusting the service information of each storage node based on the relationship between the busy level of the target storage node and a threshold, so as to facilitate the transparent bridge firmware upgrade of the target storage node. This apparatus acquires the service information of each storage node via an LLDP link to determine the corresponding busy level, and then adjusts the corresponding service information according to the busy level to facilitate the orderly upgrade of the target storage node requiring transparent bridge firmware upgrades, without affecting the communication of service information between the storage node and the host. Furthermore, because the firmware upgrade resolves bugs and scalability issues existing in the un-upgraded firmware, it improves firmware scalability and enhances the user experience.
[0105] Furthermore, the present invention also provides a computer-readable storage medium storing a computer program, which, when executed by processor 22, implements the steps of the transparent bridge firmware upgrade method described above.
[0106] It is understood that if the methods in the above embodiments are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and executes all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0107] For an introduction to the computer-readable storage medium provided by the present invention, please refer to the above method embodiments. The present invention will not be described in detail here, but it has the same beneficial effects as the above transparent bridge firmware upgrade method.
[0108] As one example, Figure 5 This is an application diagram of another transparent bridge firmware upgrade method provided in an embodiment of the present invention, such as... Figure 5As shown, after the master node in the transparent bridge firmware upgrade system 31 obtains the result based on the firmware upgrade algorithm, it executes the scp command and uses the LLDP link to transmit the firmware upgrade file to be upgraded to each storage node in the storage node network. Upon receiving the file, each storage node sends the firmware upgrade file preparation information to the master node via the LLDP link. Upon receiving this information, the master node issues a firmware upgrade command via the LLDP link to instruct the storage nodes to perform the firmware upgrade. After receiving the firmware upgrade command, the storage nodes execute the firmware upgrade script.
[0109] For an introduction to another transparent bridge firmware upgrade method provided by the present invention, please refer to the above method embodiments. The present invention will not be described in detail here, but it has the same beneficial effects as the above transparent bridge firmware upgrade method.
[0110] The present invention has provided a detailed description of a method, apparatus, and medium for upgrading transparent bridge firmware. The various embodiments in the specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to in the method section. It should be noted that those skilled in the art can make various improvements and modifications to the present invention without departing from its principles, and these improvements and modifications also fall within the protection scope of the claims of the present invention.
[0111] It should also be noted that, in this specification, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
Claims
1. A method for upgrading transparent bridge firmware, characterized in that, include: Determine the target storage node corresponding to the transparent bridge firmware upgrade requirement among each storage node; The service information corresponding to each storage node is obtained through the link layer discovery protocol link; wherein, the service information includes at least the service level of input and output, the link bandwidth and link rate of the link layer discovery protocol link; The busy level of the transparent bridge corresponding to each of the storage nodes is determined based on the business information. Based on the relationship between the busy level and the threshold of the target storage node, a corresponding strategy for adjusting the service information of each storage node is determined to facilitate the transparent bridge firmware upgrade of the target storage node; Correspondingly, obtaining the service information corresponding to each storage node through the link layer discovery protocol includes: The link layer discovery protocol link sends firmware upgrade message information to each of the storage nodes so that each storage node can determine the service information of its own switch card based on the message information after receiving it, and send the service information to the master control node. Receive the service information sent by each of the storage nodes; Correspondingly, determining the corresponding service information adjustment strategy for each storage node based on the relationship between the busy level of the target storage node and the threshold includes: Determine whether the busy level is greater than a threshold; If so, the service information of the target storage node will be transferred to other storage nodes, wherein the other storage nodes are storage nodes other than the target storage node that have completed firmware upgrades or have not undergone firmware upgrades. If not, then send a firmware upgrade command to the target storage node; Correspondingly, after transferring the service information of the target storage node to other storage nodes, the method further includes: The firmware upgrade file information is sent to the target storage node via a secure copy command, so that the target storage node can generate a link layer discovery protocol message and send the link layer discovery protocol message to the master node. The firmware upgrade command is sent to the target storage node to facilitate firmware upgrade.
2. The method for upgrading transparent bridge firmware according to claim 1, characterized in that, Also includes: Once the target storage node has been upgraded, obtain the upgrade feedback information of the target storage node; A transparent bridge firmware upgrade report is generated based on the upgrade feedback information.
3. The method for upgrading transparent bridge firmware according to claim 2, characterized in that, When the upgrade feedback information is an upgrade failure message, it also includes: Output alarm information and report the upgrade failure information to the user.
4. A device for upgrading transparent bridge firmware, characterized in that, include: The first determining module is used to determine the target storage node corresponding to the transparent bridge firmware upgrade requirement among the storage nodes; The acquisition module is used to acquire service information corresponding to each storage node through the link layer discovery protocol link; wherein, the service information includes at least the service level of input and output, the link bandwidth and link rate of the link layer discovery protocol link; The second determining module is used to determine the busy level of the transparent bridge corresponding to each of the storage nodes based on the business information. The third determining module is used to determine a corresponding strategy for adjusting the service information of each storage node based on the relationship between the busy level of the target storage node and the threshold, so as to facilitate the transparent bridge firmware upgrade of the target storage node; Correspondingly, obtaining the service information corresponding to each storage node through the link layer discovery protocol includes: The link layer discovery protocol link sends firmware upgrade message information to each of the storage nodes so that each storage node can determine the service information of its own switch card based on the message information after receiving it, and send the service information to the master control node. Receive the service information sent by each of the storage nodes; Correspondingly, determining the corresponding service information adjustment strategy for each storage node based on the relationship between the busy level of the target storage node and the threshold includes: Determine whether the busy level is greater than a threshold; If so, the service information of the target storage node will be transferred to other storage nodes, wherein the other storage nodes are storage nodes other than the target storage node that have completed firmware upgrades or have not undergone firmware upgrades. If not, then send a firmware upgrade command to the target storage node; Correspondingly, after transferring the service information of the target storage node to other storage nodes, the method further includes: The firmware upgrade file information is sent to the target storage node via a secure copy command, so that the target storage node can generate a link layer discovery protocol message and send the link layer discovery protocol message to the master node. The firmware upgrade command is sent to the target storage node to facilitate firmware upgrade.
5. A device for upgrading transparent bridge firmware, characterized in that, include: Memory, used to store computer programs; A processor, configured to implement the steps of the transparent bridge firmware upgrade method as described in any one of claims 1 to 3 when executing the computer program.
6. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the transparent bridge firmware upgrade method as described in any one of claims 1 to 3.
Citation Information
Patent Citations
Firmware upgrading scheduling method, firmware upgrading method and related devices
CN111381843A
Firmware upgrading method, device and system of Internet of Things equipment and storage medium
CN111510323A