[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

WO2015158120A1 - Method and apparatus for upgrading software version - Google Patents

Method and apparatus for upgrading software version Download PDF

Info

Publication number
WO2015158120A1
WO2015158120A1 PCT/CN2014/088627 CN2014088627W WO2015158120A1 WO 2015158120 A1 WO2015158120 A1 WO 2015158120A1 CN 2014088627 W CN2014088627 W CN 2014088627W WO 2015158120 A1 WO2015158120 A1 WO 2015158120A1
Authority
WO
WIPO (PCT)
Prior art keywords
board
upgrade
software
subrack
agent
Prior art date
Application number
PCT/CN2014/088627
Other languages
French (fr)
Chinese (zh)
Inventor
雷磊
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2015158120A1 publication Critical patent/WO2015158120A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/34Signalling channels for network management communication

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a software version upgrade method and apparatus.
  • the software upgrade method of the board is used by the NMS to download all the software files to be upgraded to a main control board through FTP (File Transfer Protocol). Then, the software that needs to be upgraded is distributed through the main control board. Go to the corresponding board and activate the board to complete the software version upgrade. All boards in a network element must control the scheduling and execution of software upgrade tasks through this main control board. As the number of subracks connected to a network element is increasing, the number of boards of the same type may be more and more. The increase in the number of boards of the same type that are upgraded in parallel will inevitably lead to a decrease in the success rate of the upgrade.
  • FTP File Transfer Protocol
  • the embodiments of the present invention provide a method and a device for upgrading a software version of a communication device, so as to solve the related problem that the upgrade success rate of the board is upgraded in a large-scale environment and the other device management functions are affected.
  • the problem of normal operation is a problem of normal operation.
  • the embodiment of the present invention provides a method for upgrading a software version, which is used for a main control board on a primary subrack, where the main control board corresponds to at least one intermediate board on the subrack, the middle The board is a board selected from the board of the slave sub-rack, and the intermediate board corresponds to at least one other board of the sub-rack.
  • the software version upgrade method includes:
  • the first transmission step is: transmitting the first software to the intermediate board, so that the intermediate board is upgraded to an upgrade agent board;
  • the second transmission step is: transmitting the second software to the upgrade agent board, so that the upgrade agent board provides the second software to the corresponding board, and implements software upgrade of the board from the sub-rack.
  • the intermediate board is a single board with an external storage medium, and the method further includes:
  • the querying step is to send a query request to the board on the slave subrack, and obtain the set of boards that are composed of the board with the external storage medium on the subrack;
  • the first step is to select a board with the smallest slot number as the intermediate board from the board in the active state.
  • the first transmitting step includes:
  • Identification step adding an upgrade agent backup field as an identifier in the configuration file of the intermediate board;
  • a first transmission sub-step transmitting the first software to the intermediate board having the identifier
  • the first activation step is: transmitting an intermediate board activation command to the intermediate board having the identifier, so that the intermediate board is upgraded to an upgrade agent board.
  • the number of the intermediate boards is multiple, and the main control board obtains a first upgrade configuration file, where the first upgrade configuration file stores an upgrade priority of the sub-rack from which the intermediate board is located.
  • the first activation step includes: transmitting an intermediate board upgrade command to the intermediate board having the identifier according to the first upgrade configuration file, so that the intermediate board is upgraded to the upgrade agent according to the upgrade priority. board.
  • the upgrade agent board is multiple, and the upgrade agent board obtains a first upgrade configuration file, where the first upgrade configuration file saves an upgrade priority of the slave subrack from which the upgrade agent board is located.
  • Level, the second transmission step includes:
  • a second transmission sub-step transmitting the second software to the corresponding upgrade agent board on the slave subrack;
  • a first loading step sending a board software load command to the upgrade agent board, so that the upgrade agent board transmits the second software to its corresponding board;
  • a second activation step sending a board software activation command to the upgrade agent board in sequence according to the first upgrade configuration file, so that the upgrade agent board sends the board software activation command to the corresponding board to implement The software upgrade from the board on the subrack.
  • the method for upgrading the software version further includes:
  • a third transmission step transmitting third software to all the boards on the primary subrack to implement software upgrade of the board on the primary subrack;
  • the fourth transmission step is: transmitting fourth software to all the boards on the slave sub-rack without upgrading the proxy board, and implementing software upgrade of the board on the slave sub-rack.
  • the method for upgrading the software version further includes:
  • Receiving step receiving an upgrade progress and a software loading progress of the corresponding board on the slave subrack transmitted by the upgrade agent board.
  • the embodiment of the present invention further provides a software version upgrade method, which is used for an intermediate board on a sub-rack, wherein the intermediate board corresponds to a main control board on the main sub-rack, and the intermediate board For the board selected from the board from the subrack, the intermediate board corresponds to at least one other board on the subrack, and the method for upgrading the software version includes:
  • a first receiving step receiving the first software transmitted by the main control board, and upgrading to the upgrade proxy board by using the first software;
  • the second receiving step is: receiving the second software transmitted by the main control board, and providing the second software to the corresponding board on the subrack to implement software upgrade of the slave board on the subrack.
  • the intermediate board is a board with an external storage medium
  • the method further includes: receiving a query request sent by the main control board, and returning a message having an external storage medium to the master control board.
  • the upgrade agent board is multiple, and the upgrade agent board obtains a second upgrade configuration file, where the upgrade configuration file saves the upgrade priority of the board from the subrack of the upgrade agent board.
  • the second receiving step includes:
  • a second receiving sub-step receiving the second upgrade software transmitted by the main control board;
  • a second loading step receiving a board software loading command sent by the main control board, and transmitting the second software to the corresponding board;
  • a third activation step receiving a board software activation command transmitted by the main control board, and sequentially sending the board software activation command to the corresponding board according to the second configuration file, to implement the slave subrack Software upgrade for the board.
  • the method for upgrading the software version further includes:
  • the transmitting step receiving an upgrade progress and a software loading progress of the corresponding board from the subrack, and transmitting the upgrade progress and the software loading progress to the main control board.
  • the embodiment of the present invention further provides a device for upgrading a software version, which is used for a main control board on a primary subrack, where the main control board corresponds to at least one intermediate board on the subrack, and the intermediate board is a slave
  • the board selected from the boards in the subrack, the intermediate board corresponding to the at least one other board on the subrack, the software version upgrade device includes:
  • a first transmission module configured to: transfer the first software to the intermediate board, so that the intermediate board is upgraded to an upgrade agent board;
  • a second transmission module configured to: transmit the second software to the upgrade agent board, so that the upgrade agent board provides the second software to the corresponding board, and implements software of the board on the slave subrack upgrade.
  • the intermediate board is a single board having an external storage medium
  • the device further includes:
  • a query unit configured to: send a query request to the board on the slave subrack, and respectively obtain the set of boards that are composed of the board having the external storage medium on the subrack;
  • the first execution unit is configured to select, from the board in the active state, the board with the smallest slot number as the intermediate board.
  • the first transmission module includes:
  • An identification unit which is configured to: add an upgrade agent backup field as an identifier in a configuration file of the intermediate board;
  • a first transmission unit configured to: transmit the first software to the intermediate board having the identifier
  • a first activation unit configured to: transmit an intermediate board to the intermediate board having the identifier
  • the live command is used to upgrade the intermediate board to the upgrade agent board.
  • the number of the intermediate boards is multiple, and the main control board obtains a first upgrade configuration file, where the first upgrade configuration file stores an upgrade priority of the sub-rack from which the intermediate board is located.
  • the first activation unit is configured to: according to the first upgrade configuration file, sequentially send an intermediate board upgrade command to the intermediate board having the identifier, so that the intermediate board is upgraded to the upgrade priority according to the upgrade priority. Upgrade the agent board.
  • the upgrade agent board is multiple, and the upgrade agent board obtains a first upgrade configuration file, where the upgrade priority of the sub-rack from which the upgrade agent board is located is saved in the first upgrade configuration file.
  • the second transmission module includes:
  • a second transmission unit configured to: transmit the second software to the corresponding upgrade agent board on the slave subrack;
  • a first loading unit configured to: send a board software load command to the upgrade agent board, so that the upgrade agent board transmits the second software to its corresponding board;
  • a second activation unit configured to: send a board software activation command to the upgrade agent board in sequence according to the first upgrade configuration file, so that the upgrade agent board sends the board software to its corresponding board Activate the command to implement software upgrade of the board from the subrack.
  • the device for upgrading the software version further includes:
  • a third transmission module configured to: transmit third software to all the boards on the primary subrack, and implement software upgrade of the board on the primary subrack;
  • a fourth transmission module configured to: transmit the fourth software to all the boards on the slave subrack that does not upgrade the proxy board, and implement software upgrade of the board on the slave subrack.
  • the embodiment of the present invention further provides a software version upgrade device, which is used for an intermediate board on a subrack, where the intermediate board corresponds to a main control board on the main subrack, and the intermediate board is from the The board selected from the boards in the subrack, the intermediate board corresponding to the at least one board on the subrack, the software version upgrade device includes:
  • a first receiving module configured to: receive the first software transmitted by the main control board, and upgrade to an upgrade proxy board by using the first software
  • a second receiving module configured to: receive the second software transmitted by the main control board, and provide the second software to the corresponding board on the sub-rack to implement the board on the sub-rack Software rise level.
  • the intermediate board is a board with an external storage medium
  • the selecting the intermediate board includes: receiving a query request sent by the main control board, and returning a message having an external storage medium to the Main control board.
  • the upgrade agent board is multiple, and the upgrade agent board obtains a second upgrade configuration file, where the upgrade configuration file saves the upgrade priority of the board from the subrack of the upgrade agent board.
  • the second receiving module includes:
  • a second receiving unit configured to: receive the second upgrade software transmitted by the main control board;
  • a second loading unit configured to: receive a board software loading command sent by the main control board, and transmit the second software to a corresponding board on the slave subrack;
  • a third activation unit configured to: receive the board software activation command transmitted by the main control board, and send the board software activation command to the corresponding board from the subrack according to the second configuration file The software upgrade of the single board from the subrack is implemented.
  • the embodiment of the invention further provides a computer program, including program instructions, when the program instruction is executed by the main control board on the main subrack, so that the main control board can execute the above method.
  • the embodiment of the present invention further provides a computer program, including a program instruction, when the program instruction is executed from an intermediate board on the subrack, so that the intermediate board can execute the foregoing method.
  • Embodiments of the present invention also provide a carrier carrying the above computer program.
  • the board from the sub-rack no longer relies on the main sub-board main control board to directly issue and activate the board software, but uses multiple upgrade agent boards to share the upgrade task of the main control board.
  • the main pressure of the main control board is relieved, and the main control board can ensure that the non-upgraded device management functions are not affected when the large-scale device software is upgraded.
  • the embodiment of the present invention can also greatly reduce the main The total number of concurrently upgraded boards and the probability of failures caused by the timeout of the board upgrade can greatly improve the upgrade success rate.
  • FIG. 1 is a schematic flowchart of a method for upgrading a software version according to an embodiment of the present invention
  • FIG. 2 is another schematic flowchart of a method for upgrading a software version according to an embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of an apparatus for upgrading a software version according to an embodiment of the present invention.
  • FIG. 4 is another schematic structural diagram of an apparatus for upgrading a software version according to an embodiment of the present invention.
  • FIG. 5 is a schematic flowchart of a process of upgrading an intermediate board to an upgrade agent board according to an embodiment of the present invention
  • FIG. 6 is a structural diagram of a software upgrade device according to an embodiment of the present invention.
  • FIG. 7 is a schematic flowchart of an upgrade process of a board on each slave subrack according to an embodiment of the present invention.
  • FIG. 1 is a schematic flowchart of a method for upgrading a software version according to an embodiment of the present invention.
  • an embodiment of the present invention provides a method for upgrading a software version, which is used for a main control board on a primary subrack, where the main control board corresponds to at least one intermediate board on the subrack, and the middle The board is a board selected from the board of the subrack, and the middle board corresponds to at least one board of the slave subrack.
  • the method for upgrading the software version includes:
  • the first transmission step 101 is: transmitting the first software to the intermediate board, so that the intermediate board is upgraded to an upgrade agent board;
  • a second transmission step 102 transmitting the second software to the upgrade agent board, so that the upgrade agent board provides the second software to the corresponding board, and implements the board on the slave subrack. software upgrade.
  • the upgrade task of the main control board is shared by upgrading the board from the slave subrack to the upgrade agent version, so that the working load of the main control board is reduced.
  • the upgrade success rate of the entire system is improved.
  • the intermediate board is a single board having an external storage medium, and the selected intermediate board includes:
  • the querying step is to send a query request to the board on the slave subrack, and obtain the set of boards that are composed of the board with the external storage medium on the subrack;
  • the first step is to select a slot number from the board in the active state in the board set.
  • the smallest board is used as the intermediate board.
  • the foregoing embodiment is a preferred embodiment of the present invention.
  • the definition of the slot number can be understood as a specific implementation manner, that is, it is also feasible to select any single board from the board in the active state.
  • the determined intermediate board that can be upgraded to the upgrade agent board can be selected from a plurality of boards having external storage media.
  • the first transmission step is a process of upgrading the intermediate board to an upgrade agent board, including:
  • Identification step adding an upgrade agent backup field as an identifier in the configuration file of the intermediate board;
  • a first transmission sub-step transmitting the first software to the intermediate board having the identifier
  • the first activation step is: transmitting an intermediate board activation command to the intermediate board having the identifier, so that the intermediate board is upgraded to an upgrade agent board.
  • the first software may be a component with an upgrade function. Activating a software installation process that can be understood as a general meaning.
  • the master subrack corresponds to a plurality of slave subracks, and each of the slave subracks may have its own upgrade proxy board.
  • the main control board obtains the first upgrade configuration file.
  • the first upgrade configuration file saves the upgrade priority of the sub-rack from which the intermediate board is located, and the first activation step includes: sequentially, according to the first upgrade configuration file, an intermediate ticket having the identifier
  • the intermediate board upgrade command is used to upgrade the intermediate board to the upgrade agent board according to the upgrade priority.
  • the first upgrade configuration file includes a subrack number, a subrack priority, and an upgrade proxy board address. Upgrading the intermediate boards in sequence according to the upgrade priority of the sub-racks enables the upgrade to be upgraded and the upgrade pressure of the main control board is reduced, so that the main control board has the capability to handle other upgrade tasks and non-upgrades. Management tasks.
  • the second transmission step is a step of upgrading a board by using the upgrade agent version.
  • the upgrade agent board obtains a first upgrade configuration file, where the first upgrade configuration file is The upgrade priority of the sub-rack from which the upgrade agent board is located is saved, and the second transmission step includes:
  • a second transmission sub-step transmitting the second software to the corresponding upgrade agent board on the slave subrack;
  • a first loading step sending a board software load command to the upgrade agent board, so that the upgrade agent board transmits the second software to the corresponding board;
  • a second activation step sending a board software activation command to the upgrade agent board in sequence according to the first upgrade configuration file, so that the upgrade agent board sends the board software activation command to the corresponding board.
  • the board software activation command is sent in the same manner according to the upgrade priority of the subrack, and the board software activation command is sent to the upgrade agent board in sequence, thereby reducing the upgrade pressure of the main control board.
  • the main control board performs the software upgrade of the board through the upgrade agent board, and also processes other non-upgraded management tasks and other upgrade tasks.
  • the software version upgrade method further includes:
  • a third transmission step transmitting third software to all the boards on the primary subrack to implement software upgrade of the board on the primary subrack;
  • the fourth transmission step is: transmitting fourth software to all the boards on the slave sub-rack without upgrading the proxy board, and implementing software upgrade of the board on the slave sub-rack.
  • the upgrade task includes the upgrade task of the board of the primary subrack and the upgrade task of the board from the subrack without the upgrade agent board. It can be seen that the upgrade agent board shares a considerable part of the upgrade task.
  • the method for upgrading the software version further includes: receiving, receiving, according to the corresponding sub-frame transmitted by the upgrade agent board, the software version of the sub-rack is loaded and activated Board upgrade progress and software activation progress.
  • the main control board reports the upgrade progress and the software activation progress of the received board to the network management server, so that the network management server can understand the upgrade progress at any time.
  • FIG. 2 is another schematic flowchart of a method for upgrading a software version according to an embodiment of the present invention.
  • the present invention further provides a method for upgrading a software version, which is used for an intermediate board on a subrack, where the intermediate board corresponds to a main control board on the main subrack, and the intermediate board For the board selected from the board from the subrack, the intermediate board corresponds to at least one board on the subrack, and the software version upgrade method includes:
  • the first receiving step 201 is: receiving the first software transmitted by the main control board, and upgrading to the upgrade proxy board by using the first software.
  • the second receiving step 202 is to receive the second software that is transmitted by the main control board, and provide the second software to the corresponding board to implement software upgrade of the board on the slave subrack.
  • the embodiment is an upgrade process of the intermediate board itself and an upgrade process of the board from the subrack that the upgrade agent board is responsible for.
  • the upgrade agent board shares part of the upgrade task of the main control board, so that the work load of the main control board is reduced, and the upgrade success rate of the entire system is improved.
  • the intermediate board is a board with an external storage medium
  • the selecting the intermediate board includes: receiving a query request sent by the main control board, and returning a message having an external storage medium to the Main control board.
  • the upgrade agent board is multiple, and the upgrade agent board obtains a second upgrade configuration file, where the upgrade configuration file saves the upgrade priority of the board from the subrack of the upgrade agent board.
  • the second receiving step includes:
  • a second receiving sub-step receiving the second upgrade software transmitted by the main control board;
  • a second loading step receiving a board software loading command sent by the main control board, and transmitting the second software to the corresponding board;
  • a third activation step receiving a board software activation command transmitted by the main control board, and sequentially sending the board software activation command to the corresponding board according to the second configuration file, to implement the slave Software upgrade of the board on the rack.
  • the method for upgrading the software version further includes:
  • the transmitting step receiving an upgrade progress and a software loading progress of the corresponding board on the subrack, and transmitting the upgrade progress and the software loading progress to the main control board.
  • FIG. 3 is a schematic structural diagram of an apparatus for upgrading a software version according to an embodiment of the present invention.
  • the present invention further provides a device for upgrading a software version, which is used for a main control board on a primary subrack, where the main control board corresponds to at least one intermediate veneer on a subrack, the intermediate order The board is a board selected from the board from the subrack, and the middle board corresponds to at least one board on the subrack.
  • the software version upgrade apparatus includes:
  • a first transmission module transmitting the first software to the intermediate board, so that the intermediate board is upgraded to an upgrade agent board;
  • a second transmission module the second software is transmitted to the upgrade agent board, so that the upgrade agent board provides the second software to the corresponding board, and the software of the board on the slave sub-rack is implemented. upgrade.
  • the intermediate board is a single board having an external storage medium
  • the device further includes:
  • the query unit sends a query request to the board on the slave subrack, and obtains a set of boards that are composed of the board with the external storage medium on the subrack;
  • the first execution unit is configured to select a board with the smallest slot number as the intermediate board from the board in the active state.
  • the first transmission module includes:
  • the identification unit adds an upgrade agent backup field to the configuration file of the intermediate board for identification.
  • a first transmission unit transmitting the first software to the intermediate board having the identifier
  • the first activation unit transmits an intermediate board activation command to the intermediate board having the identifier, so that the intermediate board is upgraded to an upgrade agent board.
  • the number of the intermediate boards is multiple, and the main control board obtains a first upgrade configuration file, where the first upgrade configuration file stores an upgrade priority of the sub-rack from which the intermediate board is located.
  • the first activation unit is configured to: according to the first upgrade configuration file, sequentially send an intermediate board upgrade command to the intermediate board having the identifier, so that the intermediate board is upgraded to the upgrade priority according to the upgrade priority. Upgrade the agent board.
  • the upgrade agent board is multiple, and the upgrade agent board obtains a first upgrade configuration file, where the upgrade priority of the sub-rack from which the upgrade agent board is located is saved in the first upgrade configuration file.
  • the second transmission module includes:
  • a second transmission unit transmitting the second software to the corresponding upgrade agent board on the slave subrack;
  • a first loading unit sending a board software load command to the upgrade agent board, so that the upgrade agent board transmits the second software to the corresponding board;
  • a second activation unit sending, according to the first upgrade configuration file, a board software activation command to the upgrade agent board, so that the upgrade agent board sends the board software activation command to the corresponding board.
  • the device for upgrading the software version further includes:
  • a third transmission module transmitting third software to all the boards on the primary subrack, and implementing software upgrade of the board on the primary subrack;
  • the fourth transmission module the fourth software is transmitted to all the boards on the slave sub-rack that does not upgrade the proxy board, and the software upgrade of the board on the slave sub-rack is implemented.
  • the device for upgrading the software version further includes:
  • the receiving module receiving an upgrade progress and a software loading progress of the corresponding board on the slave subrack transmitted by the upgrade agent board.
  • FIG. 4 is another schematic structural diagram of an apparatus for upgrading a software version according to an embodiment of the present invention.
  • the present invention further provides a device for upgrading a software version, which is used for an intermediate board on a subrack, where the intermediate board corresponds to a main control board on the main subrack, and the intermediate board For the board selected from the board from the subrack, the intermediate board corresponds to at least one board on the subrack, and the software version upgrade apparatus includes:
  • a first receiving module receiving the first software transmitted by the main control board, and upgrading to an upgrade proxy board by using the first software
  • the second receiving module is configured to receive the second software that is transmitted by the main control board, and provide the second software to the corresponding board to implement software upgrade of the board on the slave subrack.
  • the intermediate board is a board with an external storage medium
  • the selecting the intermediate board includes: receiving a query request sent by the main control board, and returning a message having an external storage medium to the Main control board.
  • the upgrade agent board is multiple, and the upgrade agent board obtains a second upgrade configuration file, where the upgrade configuration file saves the upgrade priority of the board from the subrack of the upgrade agent board.
  • the second receiving module includes:
  • a second receiving unit receiving the second upgrade software transmitted by the main control board
  • a second loading unit receiving a board software loading command sent by the main control board, and transmitting the second software to the corresponding board;
  • a third activation unit receiving a board software activation command transmitted by the main control board, and sending the board software activation command to the corresponding board according to the second configuration file to implement the slave Software upgrade of the board on the rack.
  • the device for upgrading the software version further includes:
  • the transmission module receives an upgrade progress and a software loading progress of the corresponding board on the subrack, and transmits the upgrade progress and the software loading progress to the main control board.
  • FIG. 5 is a schematic flowchart of a process of upgrading an intermediate board to an upgrade agent board according to an embodiment of the present invention.
  • the method for upgrading an intermediate board in the embodiment of the present invention to the agent board is used for the main control board on the primary subrack, and the main control board corresponds to at least one intermediate board on the subrack.
  • the intermediate board is a board with an external storage medium, and the step of upgrading the intermediate board to the upgrade agent board includes:
  • Step 301 Send a query request to the board on the slave subrack, and obtain a set of boards that are composed of the board with the external storage medium on the subrack. On the same subrack, there may be multiple boards that meet the query conditions. In this case, you need to select one board from the set of boards with all external storage media on the subrack as the middle of the upgrade. veneer.
  • the board with the smallest slot number is selected as the intermediate board from the board in the active state.
  • Step 303 Add an upgrade agent backup field to the configuration file of the intermediate board for identification. And sending the path information of the intermediate board to the network management server for storage.
  • the upgrade agent backup field is used to identify that the board of this type has the ability to become an upgrade agent board.
  • Step 304 The first software is transmitted to the intermediate board with the identifier according to the received intermediate board upgrade command, so that the intermediate board is upgraded to the upgrade agent board.
  • the first software is a component with an upgrade function.
  • the intermediate board upgrade command includes an intermediate board loading command and an intermediate board activation command.
  • the first software is sequentially activated according to the priority of the sub-racks in which the intermediate boards are located, and the first software is activated at the same time.
  • FIG. 6 is a structural diagram of a software upgrade device according to an embodiment of the present invention
  • FIG. 7 is a schematic flowchart of a process for upgrading a board from a subrack according to an embodiment of the present invention. As shown in Figure 6 and Figure 7, after upgrading the intermediate board to the upgrade agent board, you can upgrade the board from the subrack.
  • the main control board obtains the upgrade configuration file.
  • the upgrade process of the board includes the following steps:
  • Step 401 The main control board receives the first upgrade package and the first upgrade command delivered by the network management server.
  • the network management server queries the main control board that is currently Does not include the same upgrade software as the first upgrade package. If it does not exist, it will not be delivered. If it does not exist, it will be delivered to a newly created upgrade directory on the main control board.
  • the upgrade software that exists in the main control board links these upgrade software to the newly created upgrade directory in a hard link manner.
  • the third upgrade configuration file includes multiple types of board types, software names included under each type of board, and paths that are stored by default in the newly created upgrade directory.
  • Step 402 The main control board splits the first upgrade software package, and transmits the second upgrade software package obtained by the split to the corresponding upgrade agent board.
  • the main control board obtains the second upgrade software package according to the splitting of the first software package, and transmits the second software package to the corresponding Upgrade the agent board.
  • the main control board queries the type of the board that is included in the subrack.
  • the third upgrade configuration file obtains one or more types of software that need to be upgraded on the board and the default path of the software in the newly created upgrade directory. Search from the newly created upgrade directory and send the found software to the upgrade agent board corresponding to the slave subrack.
  • Step 403 The main control board sends a board software upgrade command to the upgrade agent board on the slave subrack.
  • the upgrade command includes a board software load command and a board software activation command.
  • Step 404 After the upgrade agent board receives the board software upgrade command, split the second upgrade software package, and perform software upgrade on the board on the slave subrack.
  • the second upgrade configuration file includes a type number of a plurality of types of boards, an upgrade priority of multiple types of boards, and multiple types of software upgrade priorities under multiple types of boards, and multiple types of boards. Multiple types of software names and paths where the software is stored by default.
  • the main control board upgrades the subracks according to the corresponding subrack number, subrack priority, and upgrade proxy address in the first upgrade configuration file.
  • the agent board issues the activation command from the subrack.
  • the upgrade agent board is configured according to the type of the board in the second upgrade configuration file, the upgrade priority of each type of board, and the software under each type of board. Upgrade the priority and activate the sequence of each type. If the priorities are the same, activate them at the same time. If the components have the same priority and are activated at the same time, the components with different priorities are activated in sequence. .
  • Step 405 The upgrade agent board receives the software upgrade progress of the board, and sends the progress of the overall board software upgrade from the sub-rack to the main control board.
  • the upgrade progress includes a loading progress and an activation progress.
  • the upgrade agent board receives the software activation progress of the board, and sends the progress of the overall board software activation from the sub-rack to the main control board.
  • Step 406 The main control board sends the received overall board software upgrade progress to the network management server.
  • the loading progress information of the single board from the subrack is not reported. Finally, only the loading progress of the subnet from the subrack is reported. After the subrack is loaded, the NMS reports the detailed board software from the subrack. Load status.
  • the main control board sends the received overall board software activation progress to the network management server.
  • the progress of the board software is the same as that of the board software. Only the overall board software activation progress from the subrack is reported to the network management system. After the activation is complete, a detailed software activation status of the board software from the subrack is reported to the network management server.
  • the main control board is also responsible for the upgrade task of the board on the main subrack and the upgrade task of the board from the subrack without upgrading the agent board. .
  • the board responsible for the main control board is loaded and activated simultaneously with other boards that are responsible for the upgrade agent board.
  • the board from the subrack no longer relies on the main control board of the main subrack to directly load and activate the board software. Instead, it uses multiple upgrade agent boards to share the upgrade task of the main control board. Distributed board upgrades within the yuan.
  • the distributed board upgrade mode greatly relieves the upgrade pressure of the main control board, which enables the main control board to ensure that it does not affect other non-upgraded device management functions when upgrading large-scale device software. .
  • the distributed upgrade mode can greatly reduce the total number of concurrently upgraded boards on the main control board and the probability of failure due to timeout of the board upgrade. Therefore, the upgrade success rate can be greatly improved.
  • all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve. Thus, the invention is not limited to any specific combination of hardware and software.
  • the devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
  • each device/function module/functional unit in the above embodiment When each device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium.
  • the above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
  • the board from the subrack no longer relies on the main subrack main control board to directly issue and activate the board software, but uses multiple upgrade agent boards to share the upgrade of the main control board.
  • the task greatly relieves the upgrade pressure of the main control board, and enables the main control board to ensure that it does not affect other non-upgraded device management functions when upgrading large-scale device software.
  • the present invention can also greatly reduce The main control board processes the total number of concurrently upgraded boards and the probability that the board upgrade will time out and cause failures, thus greatly improving the upgrade success rate.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Disclosed are a method and apparatus for upgrading software version, which are applied to a main control board on a master subrack. The main control board is corresponding to at least one intermediate single board on each slave subrack, the intermediate single board is a single board chosen from among the single boards on the slave subrack, and the intermediate single board is corresponding to at least one single board on the slave subrack. The method for upgrading software version comprises: a first transfer step of transferring first software to the intermediate single board to upgrade the intermediate single board to an upgraded proxy board; and a second transfer step of transferring second software to the upgraded proxy board to enable the upgraded proxy board to provide the second software for the corresponding single board, so as to realize software upgrading of the single board on the slave subrack.

Description

一种软件版本升级的方法及装置Method and device for upgrading software version 技术领域Technical field
本发明涉及通信技术领域,尤其涉及一种软件版本升级方法及装置。The present invention relates to the field of communications technologies, and in particular, to a software version upgrade method and apparatus.
背景技术Background technique
随着时代的发展和信息技术的进步,通信设备软件和硬件的更新换代的速度越来越快,一个站点开通的业务越来越多,该站点需求的功能单板的数量也越来越大。多年前一个网元下只接入一个主子架即可满足业务需求,而现在一个网元下接入多个子架的情况是非常普遍的。With the development of the times and the advancement of information technology, the update speed of communication equipment software and hardware is getting faster and faster, and more and more services are opened at one site. The number of functional boards required by the site is also increasing. . Many years ago, only one primary subrack was connected to a network element to meet the business needs. Now, it is very common to access multiple subracks under one network element.
对于通讯设备软件的升级指标,主要是看软件升级的效率以及升级成功率。升级完成消耗的时间越少,升级成功的单板越多,就意味着业务中断的时间越少,故障恢复的时间越短,对用户的影响就会越少,对整个通信市场的额外损失就会更少。因此,提供一个高效稳定的设备软件版本升级方法,成为了各网络运营商竞相追逐的一个目标。For the upgrade indicators of communication equipment software, it is mainly to see the efficiency of software upgrade and the success rate of upgrade. The less time it takes to complete the upgrade, the more boards that are successfully upgraded, which means that the less time for business interruption, the shorter the time for failure recovery, the less impact on users, and the additional loss to the entire communication market. There will be less. Therefore, providing an efficient and stable device software version upgrade method has become a goal pursued by various network operators.
目前使用的单板软件升级方法,是网管通过FTP(文件传输协议-File Transfer Protocol),将需要升级的软件文件全部下载到一个主控板,再通过该主控板将这些需要升级的软件发放到对应的单板上,之后激活单板,完成软件版本的升级。一个网元下的所有的单板,都要通过这一个主控板来控制软件升级任务的调度和执行。由于目前一个网元下接入的子架数目越来越多,同一个类型的单板数量可能会越来越多。并行升级的同类型单板的数量的增多,必然会导致升级成功率的下降,因为主控板只有一个,而它还需要同时处理其他的非升级任务,由于其他非升级任务的总量并未减少,即使人为的限制并行升级的总量,也很可能出现升级任务调度不过来,或者升级任务影响其他非升级任务调度的情况。因此,如果把现有的升级方式放到大型设备环境下进行升级,很可能升级成功率会受到显著下降,甚至影响其他基本功能如配置、告警的正常运转,这显然是无法接受的。Currently, the software upgrade method of the board is used by the NMS to download all the software files to be upgraded to a main control board through FTP (File Transfer Protocol). Then, the software that needs to be upgraded is distributed through the main control board. Go to the corresponding board and activate the board to complete the software version upgrade. All boards in a network element must control the scheduling and execution of software upgrade tasks through this main control board. As the number of subracks connected to a network element is increasing, the number of boards of the same type may be more and more. The increase in the number of boards of the same type that are upgraded in parallel will inevitably lead to a decrease in the success rate of the upgrade. Because there is only one main control board, it also needs to process other non-upgrade tasks at the same time, because the total number of other non-upgrade tasks is not Reducing, even if artificially limiting the total amount of concurrent upgrades, it is very likely that the upgrade task schedule will not occur, or the upgrade task will affect other non-upgrade task schedules. Therefore, if the existing upgrade method is upgraded in a large-scale equipment environment, it is likely that the upgrade success rate will be significantly reduced, and even affect other basic functions such as configuration and alarm operation, which is obviously unacceptable.
发明内容 Summary of the invention
有鉴于此,本发明实施例提供了一种通信设备软件版本升级的方法及装置,以解决相关技术中,在大型设备环境下单板并行升级带来的升级成功率下降以及影响其他设备管理功能正常运行的问题。In view of the above, the embodiments of the present invention provide a method and a device for upgrading a software version of a communication device, so as to solve the related problem that the upgrade success rate of the board is upgraded in a large-scale environment and the other device management functions are affected. The problem of normal operation.
为解决上述问题,本发明实施例提供了一种软件版本升级的方法,用于主子架上的主控板,所述主控板对应于从子架上的至少一个中间单板,所述中间单板为从所述从子架上的单板中挑选出来的单板,所述中间单板对应于所述从子架上的至少一个其他单板,所述软件版本升级的方法包括:In order to solve the above problem, the embodiment of the present invention provides a method for upgrading a software version, which is used for a main control board on a primary subrack, where the main control board corresponds to at least one intermediate board on the subrack, the middle The board is a board selected from the board of the slave sub-rack, and the intermediate board corresponds to at least one other board of the sub-rack. The software version upgrade method includes:
第一传输步骤:向所述中间单板传输第一软件,使得所述中间单板升级为升级代理板;The first transmission step is: transmitting the first software to the intermediate board, so that the intermediate board is upgraded to an upgrade agent board;
第二传输步骤:向所述升级代理板传输第二软件,使得所述升级代理板向其对应的单板提供所述第二软件,实现所述从子架上的单板的软件升级。The second transmission step is: transmitting the second software to the upgrade agent board, so that the upgrade agent board provides the second software to the corresponding board, and implements software upgrade of the board from the sub-rack.
可选地,所述中间单板为具有外部存储介质的单板,所述方法还包括:Optionally, the intermediate board is a single board with an external storage medium, and the method further includes:
查询步骤:向所述从子架上的单板发出查询请求,分别获取所述从子架上具有所述外部存储介质的单板组成的单板集合;The querying step is to send a query request to the board on the slave subrack, and obtain the set of boards that are composed of the board with the external storage medium on the subrack;
第一执行步骤:从所述单板集合中的处于主用状态的单板中选择槽位号最小的单板作为中间单板。The first step is to select a board with the smallest slot number as the intermediate board from the board in the active state.
可选地,所述第一传输步骤包括:Optionally, the first transmitting step includes:
标识步骤:在所述中间单板的配置文件中添加升级代理后备字段作为标识;Identification step: adding an upgrade agent backup field as an identifier in the configuration file of the intermediate board;
第一传输子步骤:向具有所述标识的中间单板传输第一软件;a first transmission sub-step: transmitting the first software to the intermediate board having the identifier;
第一激活步骤:向具有所述标识的中间单板传输中间单板激活命令,使得所述中间单板升级为升级代理板。The first activation step is: transmitting an intermediate board activation command to the intermediate board having the identifier, so that the intermediate board is upgraded to an upgrade agent board.
可选地,所述中间单板为多个,所述主控板获得第一升级配置文件,所述第一升级配置文件中保存有所述中间单板所在从子架的升级优先级,所述第一激活步骤包括:根据所述第一升级配置文件,依次向具有所述标识的中间单板传输中间单板升级命令,使得所述中间单板按照所述升级优先级依次升级为升级代理板。Optionally, the number of the intermediate boards is multiple, and the main control board obtains a first upgrade configuration file, where the first upgrade configuration file stores an upgrade priority of the sub-rack from which the intermediate board is located. The first activation step includes: transmitting an intermediate board upgrade command to the intermediate board having the identifier according to the first upgrade configuration file, so that the intermediate board is upgraded to the upgrade agent according to the upgrade priority. board.
可选地,所述升级代理板为多个,所述升级代理板获得第一升级配置文件,所述第一升级配置文件中保存有所述升级代理板所在从子架的升级优先 级,所述第二传输步骤包括:Optionally, the upgrade agent board is multiple, and the upgrade agent board obtains a first upgrade configuration file, where the first upgrade configuration file saves an upgrade priority of the slave subrack from which the upgrade agent board is located. Level, the second transmission step includes:
第二传输子步骤:向从子架上对应的所述升级代理板传输第二软件;a second transmission sub-step: transmitting the second software to the corresponding upgrade agent board on the slave subrack;
第一加载步骤:向所述升级代理板发送单板软件加载命令,使得所述升级代理板向其对应的单板传输所述第二软件;a first loading step: sending a board software load command to the upgrade agent board, so that the upgrade agent board transmits the second software to its corresponding board;
第二激活步骤:根据所述第一升级配置文件,依次向所述升级代理板发送单板软件激活命令,使得所述升级代理板向其对应的单板发送所述单板软件激活命令,实现所述从子架上的单板的软件升级。a second activation step: sending a board software activation command to the upgrade agent board in sequence according to the first upgrade configuration file, so that the upgrade agent board sends the board software activation command to the corresponding board to implement The software upgrade from the board on the subrack.
可选地,所述软件版本升级的方法还包括:Optionally, the method for upgrading the software version further includes:
第三传输步骤:向所述主子架上的所有单板传输第三软件,实现所述主子架上的所述单板的软件升级;a third transmission step: transmitting third software to all the boards on the primary subrack to implement software upgrade of the board on the primary subrack;
第四传输步骤:向没有升级代理板的所述从子架上的所有单板传输第四软件,实现所述从子架上的所述单板的软件升级。The fourth transmission step is: transmitting fourth software to all the boards on the slave sub-rack without upgrading the proxy board, and implementing software upgrade of the board on the slave sub-rack.
可选地,所述软件版本升级的方法还包括:Optionally, the method for upgrading the software version further includes:
接收步骤:接收所述升级代理板传输的所述从子架上对应的单板的升级进度和软件加载进度。Receiving step: receiving an upgrade progress and a software loading progress of the corresponding board on the slave subrack transmitted by the upgrade agent board.
本发明实施例还提供一种软件版本升级的方法,用于一从子架上的中间单板,其特征在于,所述中间单板对应于主子架上的主控板,所述中间单板为从所述从子架上的单板中挑选出来的单板,所述中间单板对应于所述从子架上的至少一个其他单板,所述软件版本升级的方法包括:The embodiment of the present invention further provides a software version upgrade method, which is used for an intermediate board on a sub-rack, wherein the intermediate board corresponds to a main control board on the main sub-rack, and the intermediate board For the board selected from the board from the subrack, the intermediate board corresponds to at least one other board on the subrack, and the method for upgrading the software version includes:
第一接收步骤:接收所述主控板传输的第一软件,利用所述第一软件升级为升级代理板;a first receiving step: receiving the first software transmitted by the main control board, and upgrading to the upgrade proxy board by using the first software;
第二接收步骤:接收所述主控板传输的第二软件,并向对应的从子架上的单板提供所述第二软件,实现所述从子架上的单板的软件升级。The second receiving step is: receiving the second software transmitted by the main control board, and providing the second software to the corresponding board on the subrack to implement software upgrade of the slave board on the subrack.
可选地,所述中间单板为具有外部存储介质的单板,所述方法还包括:接收所述主控板发出的查询请求,并将自己具有外部存储介质的消息返回给所述主控板。Optionally, the intermediate board is a board with an external storage medium, and the method further includes: receiving a query request sent by the main control board, and returning a message having an external storage medium to the master control board.
可选地,所述升级代理板为多个,所述升级代理板获得第二升级配置文件,所述升级配置文件中保存有所述升级代理板所在从子架上的单板的升级优先级,所述第二接收步骤包括: Optionally, the upgrade agent board is multiple, and the upgrade agent board obtains a second upgrade configuration file, where the upgrade configuration file saves the upgrade priority of the board from the subrack of the upgrade agent board. The second receiving step includes:
第二接收子步骤:接收所述主控板传输的所述第二升级软件;a second receiving sub-step: receiving the second upgrade software transmitted by the main control board;
第二加载步骤:接收所述主控板发送的单板软件加载命令,并向对应的单板传输所述第二软件;a second loading step: receiving a board software loading command sent by the main control board, and transmitting the second software to the corresponding board;
第三激活步骤:接收所述主控板传输的单板软件激活命令,并根据所述第二配置文件,依次向对应的单板发送所述单板软件激活命令,实现所述从子架上的单板的软件升级。a third activation step: receiving a board software activation command transmitted by the main control board, and sequentially sending the board software activation command to the corresponding board according to the second configuration file, to implement the slave subrack Software upgrade for the board.
可选地,所述软件版本升级的方法还包括:Optionally, the method for upgrading the software version further includes:
传输步骤:接收所述从子架上对应的单板的升级进度和软件加载进度,并将所述升级进度和软件加载进度传输给所述主控板。The transmitting step: receiving an upgrade progress and a software loading progress of the corresponding board from the subrack, and transmitting the upgrade progress and the software loading progress to the main control board.
本发明实施例还提供一种软件版本升级的装置,用于主子架上的主控板,所述主控板对应于从子架上的至少一个中间单板,所述中间单板为从所述从子架上的单板中挑选出来的单板,所述中间单板对应于所述从子架上的至少一个其他单板,所述软件版本升级的装置包括:The embodiment of the present invention further provides a device for upgrading a software version, which is used for a main control board on a primary subrack, where the main control board corresponds to at least one intermediate board on the subrack, and the intermediate board is a slave The board selected from the boards in the subrack, the intermediate board corresponding to the at least one other board on the subrack, the software version upgrade device includes:
第一传输模块,其设置为:向所述中间单板传输第一软件,使得所述中间单板升级为升级代理板;以及a first transmission module, configured to: transfer the first software to the intermediate board, so that the intermediate board is upgraded to an upgrade agent board;
第二传输模块,其设置为:向所述升级代理板传输第二软件,使得所述升级代理板向对应的单板提供所述第二软件,实现所述从子架上的单板的软件升级。a second transmission module, configured to: transmit the second software to the upgrade agent board, so that the upgrade agent board provides the second software to the corresponding board, and implements software of the board on the slave subrack upgrade.
可选地,所述中间单板为具有外部存储介质的单板,所述装置还包括:Optionally, the intermediate board is a single board having an external storage medium, and the device further includes:
查询单元,其设置为:向所述从子架上的单板发出查询请求,分别获取所述从子架上具有所述外部存储介质的单板组成的单板集合;以及a query unit, configured to: send a query request to the board on the slave subrack, and respectively obtain the set of boards that are composed of the board having the external storage medium on the subrack;
第一执行单元,其设置为:从所述单板集合中的处于主用状态的单板中选择槽位号最小的单板作为中间单板。The first execution unit is configured to select, from the board in the active state, the board with the smallest slot number as the intermediate board.
可选地,所述第一传输模块包括:Optionally, the first transmission module includes:
标识单元,其设置为:在所述中间单板的配置文件中添加升级代理后备字段作为标识;An identification unit, which is configured to: add an upgrade agent backup field as an identifier in a configuration file of the intermediate board;
第一传输单元,其设置为:向具有所述标识的中间单板传输第一软件;以及a first transmission unit, configured to: transmit the first software to the intermediate board having the identifier;
第一激活单元,其设置为:向具有所述标识的中间单板传输中间单板激 活命令,使得所述中间单板升级为升级代理板。a first activation unit, configured to: transmit an intermediate board to the intermediate board having the identifier The live command is used to upgrade the intermediate board to the upgrade agent board.
可选地,所述中间单板为多个,所述主控板获得第一升级配置文件,所述第一升级配置文件中保存有所述中间单板所在从子架的升级优先级,所述第一激活单元是设置为:根据所述第一升级配置文件,依次向具有所述标识的中间单板传输中间单板升级命令,使得所述中间单板按照所述升级优先级依次升级为升级代理板。Optionally, the number of the intermediate boards is multiple, and the main control board obtains a first upgrade configuration file, where the first upgrade configuration file stores an upgrade priority of the sub-rack from which the intermediate board is located. The first activation unit is configured to: according to the first upgrade configuration file, sequentially send an intermediate board upgrade command to the intermediate board having the identifier, so that the intermediate board is upgraded to the upgrade priority according to the upgrade priority. Upgrade the agent board.
可选地,所述升级代理板为多个,所述升级代理板获得第一升级配置文件,所述第一升级配置文件中保存有所述升级代理板所在从子架的升级优先级,所述第二传输模块包括:Optionally, the upgrade agent board is multiple, and the upgrade agent board obtains a first upgrade configuration file, where the upgrade priority of the sub-rack from which the upgrade agent board is located is saved in the first upgrade configuration file. The second transmission module includes:
第二传输单元,其设置为:向从子架上对应的所述升级代理板传输第二软件;a second transmission unit, configured to: transmit the second software to the corresponding upgrade agent board on the slave subrack;
第一加载单元,其设置为:向所述升级代理板发送单板软件加载命令,使得所述升级代理板向其对应的单板传输所述第二软件;以及a first loading unit, configured to: send a board software load command to the upgrade agent board, so that the upgrade agent board transmits the second software to its corresponding board;
第二激活单元,其设置为:根据所述第一升级配置文件,依次向所述升级代理板发送单板软件激活命令,使得所述升级代理板向其对应的单板发送所述单板软件激活命令,实现所述从子架上的单板的软件升级。a second activation unit, configured to: send a board software activation command to the upgrade agent board in sequence according to the first upgrade configuration file, so that the upgrade agent board sends the board software to its corresponding board Activate the command to implement software upgrade of the board from the subrack.
可选地,所述软件版本升级的装置还包括:Optionally, the device for upgrading the software version further includes:
第三传输模块,其设置为:向所述主子架上的所有单板传输第三软件,实现所述主子架上的所述单板的软件升级;a third transmission module, configured to: transmit third software to all the boards on the primary subrack, and implement software upgrade of the board on the primary subrack;
第四传输模块,其设置为:向没有升级代理板的所述从子架上的所有单板传输第四软件,实现所述从子架上的所述单板的软件升级。And a fourth transmission module, configured to: transmit the fourth software to all the boards on the slave subrack that does not upgrade the proxy board, and implement software upgrade of the board on the slave subrack.
本发明实施例还提供一种软件版本升级的装置,用于一从子架上的中间单板,所述中间单板对应于主子架上的主控板,所述中间单板为从所述从子架上的单板中挑选出来的单板,所述中间单板对应于所述从子架上的至少一个单板,所述软件版本升级的装置包括:The embodiment of the present invention further provides a software version upgrade device, which is used for an intermediate board on a subrack, where the intermediate board corresponds to a main control board on the main subrack, and the intermediate board is from the The board selected from the boards in the subrack, the intermediate board corresponding to the at least one board on the subrack, the software version upgrade device includes:
第一接收模块,其设置为:接收所述主控板传输的第一软件,利用所述第一软件升级为升级代理板;以及a first receiving module, configured to: receive the first software transmitted by the main control board, and upgrade to an upgrade proxy board by using the first software;
第二接收模块,其设置为:接收所述主控板传输的第二软件,并向所述从子架上对应的单板提供所述第二软件,实现所述从子架上的单板的软件升 级。a second receiving module, configured to: receive the second software transmitted by the main control board, and provide the second software to the corresponding board on the sub-rack to implement the board on the sub-rack Software rise level.
可选地,所述中间单板为具有外部存储介质的单板,所述挑选中间单板包括:接收所述主控板发出的查询请求,并将自己具有外部存储介质的消息返回给所述主控板。Optionally, the intermediate board is a board with an external storage medium, and the selecting the intermediate board includes: receiving a query request sent by the main control board, and returning a message having an external storage medium to the Main control board.
可选地,所述升级代理板为多个,所述升级代理板获得第二升级配置文件,所述升级配置文件中保存有所述升级代理板所在从子架上的单板的升级优先级,所述第二接收模块包括:Optionally, the upgrade agent board is multiple, and the upgrade agent board obtains a second upgrade configuration file, where the upgrade configuration file saves the upgrade priority of the board from the subrack of the upgrade agent board. The second receiving module includes:
第二接收单元,其设置为:接收所述主控板传输的所述第二升级软件;a second receiving unit, configured to: receive the second upgrade software transmitted by the main control board;
第二加载单元,其设置为:接收所述主控板发送的单板软件加载命令,并向所述从子架上对应的单板传输所述第二软件;a second loading unit, configured to: receive a board software loading command sent by the main control board, and transmit the second software to a corresponding board on the slave subrack;
第三激活单元,其设置为:接收所述主控板传输的单板软件激活命令,并根据所述第二配置文件,依次向从子架上对应的单板发送所述单板软件激活命令,实现所述从子架上的单板的软件升级。a third activation unit, configured to: receive the board software activation command transmitted by the main control board, and send the board software activation command to the corresponding board from the subrack according to the second configuration file The software upgrade of the single board from the subrack is implemented.
本发明实施例还提供一种计算机程序,包括程序指令,当该程序指令被主子架上的主控板执行时,使得该主控板可执行上述方法。The embodiment of the invention further provides a computer program, including program instructions, when the program instruction is executed by the main control board on the main subrack, so that the main control board can execute the above method.
本发明实施例还提供一种计算机程序,包括程序指令,当该程序指令被从子架上的中间单板执行时,使得该中间单板可执行上述方法。The embodiment of the present invention further provides a computer program, including a program instruction, when the program instruction is executed from an intermediate board on the subrack, so that the intermediate board can execute the foregoing method.
本发明实施例还提供一种载有上述计算机程序的载体。Embodiments of the present invention also provide a carrier carrying the above computer program.
本发明实施中,从子架下的单板不再依靠主子架主控板直接进行单板软件的下发和激活,而是用多个升级代理板来分担主控板一部分的升级任务,极大的缓解了主控板的升级压力,能够使得主控板在进行大型设备软件升级时,也能够保证不会影响其他的非升级的设备管理功能,本发明实施例还能够极大的减少主控板处理并行升级单板的总数量以及单板升级出现超时导致失败的概率,因此能够很大程度上提高升级成功率。In the implementation of the present invention, the board from the sub-rack no longer relies on the main sub-board main control board to directly issue and activate the board software, but uses multiple upgrade agent boards to share the upgrade task of the main control board. The main pressure of the main control board is relieved, and the main control board can ensure that the non-upgraded device management functions are not affected when the large-scale device software is upgraded. The embodiment of the present invention can also greatly reduce the main The total number of concurrently upgraded boards and the probability of failures caused by the timeout of the board upgrade can greatly improve the upgrade success rate.
附图概述BRIEF abstract
图1为本发明的实施例的软件版本升级的方法的一流程示意图; 1 is a schematic flowchart of a method for upgrading a software version according to an embodiment of the present invention;
图2为本发明的实施例的软件版本升级的方法的另一流程示意图;2 is another schematic flowchart of a method for upgrading a software version according to an embodiment of the present invention;
图3为本发明的实施例的软件版本升级的装置的一结构示意图;3 is a schematic structural diagram of an apparatus for upgrading a software version according to an embodiment of the present invention;
图4为本发明的实施例的软件版本升级的装置的另一结构示意图;4 is another schematic structural diagram of an apparatus for upgrading a software version according to an embodiment of the present invention;
图5为本发明的实施例的中间单板升级为升级代理板的过程的一流程示意图;FIG. 5 is a schematic flowchart of a process of upgrading an intermediate board to an upgrade agent board according to an embodiment of the present invention;
图6为本发明的实施例的软件升级设备结构图;6 is a structural diagram of a software upgrade device according to an embodiment of the present invention;
图7为本发明的实施例的各从子架上的单板的升级过程的一流程示意图。FIG. 7 is a schematic flowchart of an upgrade process of a board on each slave subrack according to an embodiment of the present invention.
本发明的较佳实施方式Preferred embodiment of the invention
下面将结合附图对本发明的实施例进行详细描述,在不冲突的情况下,本发明实施例及实施例中的特征可以相互任意组合。The embodiments of the present invention will be described in detail below with reference to the accompanying drawings, and the features of the embodiments and the embodiments of the present invention can be arbitrarily combined with each other without conflict.
图1为本发明的实施例的软件版本升级的方法的一流程示意图。如图1所示,本发明实施例提供一种软件版本升级的方法,用于主子架上的主控板,所述主控板对应于从子架上的至少一个中间单板,所述中间单板为从所述从子架上的单板中挑选出来的单板,所述中间单板对应于所述从子架上的至少一个单板,所述软件版本升级的方法包括:FIG. 1 is a schematic flowchart of a method for upgrading a software version according to an embodiment of the present invention. As shown in FIG. 1 , an embodiment of the present invention provides a method for upgrading a software version, which is used for a main control board on a primary subrack, where the main control board corresponds to at least one intermediate board on the subrack, and the middle The board is a board selected from the board of the subrack, and the middle board corresponds to at least one board of the slave subrack. The method for upgrading the software version includes:
第一传输步骤101:向所述中间单板传输第一软件,使得所述中间单板升级为升级代理板;The first transmission step 101 is: transmitting the first software to the intermediate board, so that the intermediate board is upgraded to an upgrade agent board;
第二传输步骤102:向所述升级代理板传输第二软件,使得所述升级代理板向对应的所述单板提供所述第二软件,实现所述从子架上的所述单板的软件升级。a second transmission step 102: transmitting the second software to the upgrade agent board, so that the upgrade agent board provides the second software to the corresponding board, and implements the board on the slave subrack. software upgrade.
本实施例的软件版本升级方法,通过将所述从子架上的一单板升级为升级代理版,分担了所述主控板的部分升级任务,使得所述主控板的工作负担降低,整个系统的升级成功率提高。In the software version upgrade method of the embodiment, the upgrade task of the main control board is shared by upgrading the board from the slave subrack to the upgrade agent version, so that the working load of the main control board is reduced. The upgrade success rate of the entire system is improved.
所述中间单板为具有外部存储介质的单板,所述挑选中间单板包括:The intermediate board is a single board having an external storage medium, and the selected intermediate board includes:
查询步骤:向所述从子架上的单板发出查询请求,分别获取所述从子架上具有所述外部存储介质的单板组成的单板集合;The querying step is to send a query request to the board on the slave subrack, and obtain the set of boards that are composed of the board with the external storage medium on the subrack;
第一执行步骤:从所述单板集合中的处于主用状态的单板中选择槽位号 最小的单板作为中间单板。The first step is to select a slot number from the board in the active state in the board set. The smallest board is used as the intermediate board.
上述实施例为本发明的优选实施方式,其中,对于槽位号的限定可以理解为一种具体的实施方式,也就是从处于主用状态的单板中进行任意单板的选择也是可行的。通过上述实施例的技术方案,可从众多具有外部存储介质的单板中选择出确定的可升级为升级代理板的中间单板。The foregoing embodiment is a preferred embodiment of the present invention. The definition of the slot number can be understood as a specific implementation manner, that is, it is also feasible to select any single board from the board in the active state. Through the technical solution of the foregoing embodiment, the determined intermediate board that can be upgraded to the upgrade agent board can be selected from a plurality of boards having external storage media.
所述第一传输步骤为将所述中间单板升级为升级代理板的过程,包括:The first transmission step is a process of upgrading the intermediate board to an upgrade agent board, including:
标识步骤:在所述中间单板的配置文件中添加升级代理后备字段作为标识;Identification step: adding an upgrade agent backup field as an identifier in the configuration file of the intermediate board;
第一传输子步骤:向具有所述标识的中间单板传输第一软件;a first transmission sub-step: transmitting the first software to the intermediate board having the identifier;
第一激活步骤:向具有所述标识的中间单板传输中间单板激活命令,使得所述中间单板升级为升级代理板。The first activation step is: transmitting an intermediate board activation command to the intermediate board having the identifier, so that the intermediate board is upgraded to an upgrade agent board.
本实施例给出了将所述中间单板升级为升级代理板的优选实施方式,所述第一软件可为具有升级功能的组件。激活可理解为通常意义的软件安装过程。This embodiment provides a preferred implementation manner of upgrading the intermediate board to an upgrade agent board. The first software may be a component with an upgrade function. Activating a software installation process that can be understood as a general meaning.
主子架对应多个从子架,每个所述从子架都可以有自己的所述升级代理板,当所述中间单板为多个时,所述主控板获得第一升级配置文件,所述第一升级配置文件中保存有所述中间单板所在从子架的升级优先级,所述第一激活步骤包括:根据所述第一升级配置文件,依次向具有所述标识的中间单板传输中间单板升级命令,使得所述中间单板按照所述升级优先级依次升级为升级代理板。The master subrack corresponds to a plurality of slave subracks, and each of the slave subracks may have its own upgrade proxy board. When the intermediate boards are multiple, the main control board obtains the first upgrade configuration file. The first upgrade configuration file saves the upgrade priority of the sub-rack from which the intermediate board is located, and the first activation step includes: sequentially, according to the first upgrade configuration file, an intermediate ticket having the identifier The intermediate board upgrade command is used to upgrade the intermediate board to the upgrade agent board according to the upgrade priority.
所述第一升级配置文件包括从子架号、从子架优先级、升级代理板地址。根据从子架的所述升级优先级依次升级所述中间单板,可使升级有序,并减轻所述主控板的升级压力,使得所述主控板有能力处理其他升级任务及非升级的管理任务。The first upgrade configuration file includes a subrack number, a subrack priority, and an upgrade proxy board address. Upgrading the intermediate boards in sequence according to the upgrade priority of the sub-racks enables the upgrade to be upgraded and the upgrade pressure of the main control board is reduced, so that the main control board has the capability to handle other upgrade tasks and non-upgrades. Management tasks.
所述第二传输步骤为通过所述升级代理版升级单板的步骤,当所述升级代理板为多个时,所述升级代理板获得第一升级配置文件,所述第一升级配置文件中保存有所述升级代理板所在从子架的升级优先级,所述第二传输步骤包括:The second transmission step is a step of upgrading a board by using the upgrade agent version. When the upgrade agent board is multiple, the upgrade agent board obtains a first upgrade configuration file, where the first upgrade configuration file is The upgrade priority of the sub-rack from which the upgrade agent board is located is saved, and the second transmission step includes:
第二传输子步骤:向从子架上对应的所述升级代理板传输第二软件; a second transmission sub-step: transmitting the second software to the corresponding upgrade agent board on the slave subrack;
第一加载步骤:向所述升级代理板发送单板软件加载命令,使得所述升级代理板向对应的所述单板传输所述第二软件;a first loading step: sending a board software load command to the upgrade agent board, so that the upgrade agent board transmits the second software to the corresponding board;
第二激活步骤:根据所述第一升级配置文件,依次向所述升级代理板发送单板软件激活命令,使得所述升级代理板向对应的所述单板发送所述单板软件激活命令,实现所述从子架上的所述单板的软件升级。a second activation step: sending a board software activation command to the upgrade agent board in sequence according to the first upgrade configuration file, so that the upgrade agent board sends the board software activation command to the corresponding board. Implementing a software upgrade of the board from the subrack.
在上述实施例中,同样根据从子架的升级优先级依次下发所述单板软件激活命令,依次向所述升级代理板发送所述单板软件激活命令,减轻了主控板的升级压力。In the foregoing embodiment, the board software activation command is sent in the same manner according to the upgrade priority of the subrack, and the board software activation command is sent to the upgrade agent board in sequence, thereby reducing the upgrade pressure of the main control board. .
所述主控板通过所述升级代理板进行单板软件升级的同时,还处理其他非升级的管理任务及其他升级任务,所述软件版本升级的方法还包括:The main control board performs the software upgrade of the board through the upgrade agent board, and also processes other non-upgraded management tasks and other upgrade tasks. The software version upgrade method further includes:
第三传输步骤:向所述主子架上的所有单板传输第三软件,实现所述主子架上的所述单板的软件升级;a third transmission step: transmitting third software to all the boards on the primary subrack to implement software upgrade of the board on the primary subrack;
第四传输步骤:向没有升级代理板的所述从子架上的所有单板传输第四软件,实现所述从子架上的所述单板的软件升级。The fourth transmission step is: transmitting fourth software to all the boards on the slave sub-rack without upgrading the proxy board, and implementing software upgrade of the board on the slave sub-rack.
所述其他升级任务包括所述主子架的单板的升级任务和没有升级代理板的从子架上的单板的升级任务。可见所述升级代理板分担了相当大一部分的升级任务。The upgrade task includes the upgrade task of the board of the primary subrack and the upgrade task of the board from the subrack without the upgrade agent board. It can be seen that the upgrade agent board shares a considerable part of the upgrade task.
在所述从子架上的单板进行软件的加载与激活的同时,所述软件版本升级的方法还包括:接收步骤:接收所述升级代理板传输的所述从子架上对应的所述单板的升级进度和软件激活进度。And the method for upgrading the software version further includes: receiving, receiving, according to the corresponding sub-frame transmitted by the upgrade agent board, the software version of the sub-rack is loaded and activated Board upgrade progress and software activation progress.
所述主控板将接收到的所述单板的升级进度和软件激活进度上报给网管服务器,以便网管服务器随时了解升级进度。The main control board reports the upgrade progress and the software activation progress of the received board to the network management server, so that the network management server can understand the upgrade progress at any time.
图2为本发明的实施例的软件版本升级的方法的另一流程示意图。如图2所示,本发明还提供一种软件版本升级的方法,用于一从子架上的中间单板,所述中间单板对应于主子架上的主控板,所述中间单板为从所述从子架上的单板中挑选出来的单板,所述中间单板对应于所述从子架上的至少一个单板,所述软件版本升级的方法包括:FIG. 2 is another schematic flowchart of a method for upgrading a software version according to an embodiment of the present invention. As shown in FIG. 2, the present invention further provides a method for upgrading a software version, which is used for an intermediate board on a subrack, where the intermediate board corresponds to a main control board on the main subrack, and the intermediate board For the board selected from the board from the subrack, the intermediate board corresponds to at least one board on the subrack, and the software version upgrade method includes:
第一接收步骤201:接收所述主控板传输的第一软件,利用所述第一软件升级为升级代理板。 The first receiving step 201 is: receiving the first software transmitted by the main control board, and upgrading to the upgrade proxy board by using the first software.
第二接收步骤202:接收所述主控板传输的第二软件,并向对应的所述单板提供所述第二软件,实现所述从子架上的所述单板的软件升级。The second receiving step 202 is to receive the second software that is transmitted by the main control board, and provide the second software to the corresponding board to implement software upgrade of the board on the slave subrack.
所述实施例为所述中间单板自身的升级过程及所述升级代理板所负责的所在从子架的单板的升级过程。所述升级代理板分担了所述主控板的部分升级任务,使得所述主控板的工作负担降低,整个系统的升级成功率提高。The embodiment is an upgrade process of the intermediate board itself and an upgrade process of the board from the subrack that the upgrade agent board is responsible for. The upgrade agent board shares part of the upgrade task of the main control board, so that the work load of the main control board is reduced, and the upgrade success rate of the entire system is improved.
可选地,所述中间单板为具有外部存储介质的单板,所述挑选中间单板包括:接收所述主控板发出的查询请求,并将自己具有外部存储介质的消息返回给所述主控板。Optionally, the intermediate board is a board with an external storage medium, and the selecting the intermediate board includes: receiving a query request sent by the main control board, and returning a message having an external storage medium to the Main control board.
可选地,所述升级代理板为多个,所述升级代理板获得第二升级配置文件,所述升级配置文件中保存有所述升级代理板所在从子架上的单板的升级优先级,所述第二接收步骤包括:Optionally, the upgrade agent board is multiple, and the upgrade agent board obtains a second upgrade configuration file, where the upgrade configuration file saves the upgrade priority of the board from the subrack of the upgrade agent board. The second receiving step includes:
第二接收子步骤:接收所述主控板传输的所述第二升级软件;a second receiving sub-step: receiving the second upgrade software transmitted by the main control board;
第二加载步骤:接收所述主控板发送的单板软件加载命令,并向对应的所述单板传输所述第二软件;a second loading step: receiving a board software loading command sent by the main control board, and transmitting the second software to the corresponding board;
第三激活步骤:接收所述主控板传输的单板软件激活命令,并根据所述第二配置文件,依次向对应的所述单板发送所述单板软件激活命令,实现所述从子架上的所述单板的软件升级。a third activation step: receiving a board software activation command transmitted by the main control board, and sequentially sending the board software activation command to the corresponding board according to the second configuration file, to implement the slave Software upgrade of the board on the rack.
可选地,所述软件版本升级的方法还包括:Optionally, the method for upgrading the software version further includes:
传输步骤:接收所述从子架上对应的所述单板的升级进度和软件加载进度,并将所述升级进度和软件加载进度传输给所述主控板。The transmitting step: receiving an upgrade progress and a software loading progress of the corresponding board on the subrack, and transmitting the upgrade progress and the software loading progress to the main control board.
图3为本发明的实施例的软件版本升级的装置的一结构示意图。如图3所示,本发明还提供一种软件版本升级的装置,用于主子架上的主控板,所述主控板对应于从子架上的至少一个中间单板,所述中间单板为从所述从子架上的单板中挑选出来的单板,所述中间单板对应于所述从子架上的至少一个单板,所述软件版本升级的装置包括:FIG. 3 is a schematic structural diagram of an apparatus for upgrading a software version according to an embodiment of the present invention. As shown in FIG. 3, the present invention further provides a device for upgrading a software version, which is used for a main control board on a primary subrack, where the main control board corresponds to at least one intermediate veneer on a subrack, the intermediate order The board is a board selected from the board from the subrack, and the middle board corresponds to at least one board on the subrack. The software version upgrade apparatus includes:
第一传输模块:向所述中间单板传输第一软件,使得所述中间单板升级为升级代理板;a first transmission module: transmitting the first software to the intermediate board, so that the intermediate board is upgraded to an upgrade agent board;
第二传输模块:向所述升级代理板传输第二软件,使得所述升级代理板向对应的所述单板提供所述第二软件,实现所述从子架上的所述单板的软件 升级。a second transmission module: the second software is transmitted to the upgrade agent board, so that the upgrade agent board provides the second software to the corresponding board, and the software of the board on the slave sub-rack is implemented. upgrade.
可选地,所述中间单板为具有外部存储介质的单板,所述装置还包括:Optionally, the intermediate board is a single board having an external storage medium, and the device further includes:
查询单元:向所述从子架上的单板发出查询请求,分别获取所述从子架上具有所述外部存储介质的单板组成的单板集合;The query unit: sends a query request to the board on the slave subrack, and obtains a set of boards that are composed of the board with the external storage medium on the subrack;
第一执行单元:从所述单板集合中的处于主用状态的单板中选择槽位号最小的单板作为中间单板。The first execution unit is configured to select a board with the smallest slot number as the intermediate board from the board in the active state.
可选地,所述第一传输模块包括:Optionally, the first transmission module includes:
标识单元:在所述中间单板的配置文件中添加升级代理后备字段进行标识;The identification unit adds an upgrade agent backup field to the configuration file of the intermediate board for identification.
第一传输单元:向具有所述标识的中间单板传输第一软件;a first transmission unit: transmitting the first software to the intermediate board having the identifier;
第一激活单元:向具有所述标识的中间单板传输中间单板激活命令,使得所述中间单板升级为升级代理板。The first activation unit: transmits an intermediate board activation command to the intermediate board having the identifier, so that the intermediate board is upgraded to an upgrade agent board.
可选地,所述中间单板为多个,所述主控板获得第一升级配置文件,所述第一升级配置文件中保存有所述中间单板所在从子架的升级优先级,所述第一激活单元是设置为:根据所述第一升级配置文件,依次向具有所述标识的中间单板传输中间单板升级命令,使得所述中间单板按照所述升级优先级依次升级为升级代理板。Optionally, the number of the intermediate boards is multiple, and the main control board obtains a first upgrade configuration file, where the first upgrade configuration file stores an upgrade priority of the sub-rack from which the intermediate board is located. The first activation unit is configured to: according to the first upgrade configuration file, sequentially send an intermediate board upgrade command to the intermediate board having the identifier, so that the intermediate board is upgraded to the upgrade priority according to the upgrade priority. Upgrade the agent board.
可选地,所述升级代理板为多个,所述升级代理板获得第一升级配置文件,所述第一升级配置文件中保存有所述升级代理板所在从子架的升级优先级,所述第二传输模块包括:Optionally, the upgrade agent board is multiple, and the upgrade agent board obtains a first upgrade configuration file, where the upgrade priority of the sub-rack from which the upgrade agent board is located is saved in the first upgrade configuration file. The second transmission module includes:
第二传输单元:向从子架上对应的所述升级代理板传输第二软件;a second transmission unit: transmitting the second software to the corresponding upgrade agent board on the slave subrack;
第一加载单元:向所述升级代理板发送单板软件加载命令,使得所述升级代理板向对应的所述单板传输所述第二软件;a first loading unit: sending a board software load command to the upgrade agent board, so that the upgrade agent board transmits the second software to the corresponding board;
第二激活单元:根据所述第一升级配置文件,依次向所述升级代理板发送单板软件激活命令,使得所述升级代理板向对应的所述单板发送所述单板软件激活命令,实现所述从子架上的所述单板的软件升级。a second activation unit: sending, according to the first upgrade configuration file, a board software activation command to the upgrade agent board, so that the upgrade agent board sends the board software activation command to the corresponding board. Implementing a software upgrade of the board from the subrack.
可选地,所述软件版本升级的装置还包括:Optionally, the device for upgrading the software version further includes:
第三传输模块:向所述主子架上的所有单板传输第三软件,实现所述主子架上的所述单板的软件升级; a third transmission module: transmitting third software to all the boards on the primary subrack, and implementing software upgrade of the board on the primary subrack;
第四传输模块:向没有升级代理板的所述从子架上的所有单板传输第四软件,实现所述从子架上的所述单板的软件升级。The fourth transmission module: the fourth software is transmitted to all the boards on the slave sub-rack that does not upgrade the proxy board, and the software upgrade of the board on the slave sub-rack is implemented.
可选地,所述软件版本升级的装置还包括:Optionally, the device for upgrading the software version further includes:
接收模块:接收所述升级代理板传输的所述从子架上对应的所述单板的升级进度和软件加载进度。The receiving module: receiving an upgrade progress and a software loading progress of the corresponding board on the slave subrack transmitted by the upgrade agent board.
图4为本发明的实施例的软件版本升级的装置的另一结构示意图。如图4所示,本发明还提供一种软件版本升级的装置,用于一从子架上的中间单板,所述中间单板对应于主子架上的主控板,所述中间单板为从所述从子架上的单板中挑选出来的单板,所述中间单板对应于所述从子架上的至少一个单板,所述软件版本升级的装置包括:FIG. 4 is another schematic structural diagram of an apparatus for upgrading a software version according to an embodiment of the present invention. As shown in FIG. 4, the present invention further provides a device for upgrading a software version, which is used for an intermediate board on a subrack, where the intermediate board corresponds to a main control board on the main subrack, and the intermediate board For the board selected from the board from the subrack, the intermediate board corresponds to at least one board on the subrack, and the software version upgrade apparatus includes:
第一接收模块:接收所述主控板传输的第一软件,利用所述第一软件升级为升级代理板;a first receiving module: receiving the first software transmitted by the main control board, and upgrading to an upgrade proxy board by using the first software;
第二接收模块:接收所述主控板传输的第二软件,并向对应的所述单板提供所述第二软件,实现所述从子架上的所述单板的软件升级。The second receiving module is configured to receive the second software that is transmitted by the main control board, and provide the second software to the corresponding board to implement software upgrade of the board on the slave subrack.
可选地,所述中间单板为具有外部存储介质的单板,所述挑选中间单板包括:接收所述主控板发出的查询请求,并将自己具有外部存储介质的消息返回给所述主控板。Optionally, the intermediate board is a board with an external storage medium, and the selecting the intermediate board includes: receiving a query request sent by the main control board, and returning a message having an external storage medium to the Main control board.
可选地,所述升级代理板为多个,所述升级代理板获得第二升级配置文件,所述升级配置文件中保存有所述升级代理板所在从子架上的单板的升级优先级,所述第二接收模块包括:Optionally, the upgrade agent board is multiple, and the upgrade agent board obtains a second upgrade configuration file, where the upgrade configuration file saves the upgrade priority of the board from the subrack of the upgrade agent board. The second receiving module includes:
第二接收单元:接收所述主控板传输的所述第二升级软件;a second receiving unit: receiving the second upgrade software transmitted by the main control board;
第二加载单元:接收所述主控板发送的单板软件加载命令,并向对应的所述单板传输所述第二软件;a second loading unit: receiving a board software loading command sent by the main control board, and transmitting the second software to the corresponding board;
第三激活单元:接收所述主控板传输的单板软件激活命令,并根据所述第二配置文件,依次向对应的所述单板发送所述单板软件激活命令,实现所述从子架上的所述单板的软件升级。a third activation unit: receiving a board software activation command transmitted by the main control board, and sending the board software activation command to the corresponding board according to the second configuration file to implement the slave Software upgrade of the board on the rack.
可选地,所述软件版本升级的装置还包括:Optionally, the device for upgrading the software version further includes:
传输模块:接收所述从子架上对应的所述单板的升级进度和软件加载进度,并将所述升级进度和软件加载进度传输给所述主控板。 The transmission module: receives an upgrade progress and a software loading progress of the corresponding board on the subrack, and transmits the upgrade progress and the software loading progress to the main control board.
上述实施例仅为本发明的优选实施例,对上述实施例的任何组合和修饰,均应涵盖在本发明的保护范围之内。The above embodiments are merely preferred embodiments of the present invention, and any combinations and modifications of the above embodiments are intended to be included within the scope of the present invention.
图5为本发明的实施例的中间单板升级为升级代理板的过程的一流程示意图。如图5所示,本发明实施例提供的中间单板升级为升级代理板的方法,用于主子架上的主控板,所述主控板对应于从子架上的至少一个中间单板,所述中间单板为具有外部存储介质的单板,所述中间单板升级为升级代理板的步骤包括:FIG. 5 is a schematic flowchart of a process of upgrading an intermediate board to an upgrade agent board according to an embodiment of the present invention. As shown in FIG. 5, the method for upgrading an intermediate board in the embodiment of the present invention to the agent board is used for the main control board on the primary subrack, and the main control board corresponds to at least one intermediate board on the subrack. The intermediate board is a board with an external storage medium, and the step of upgrading the intermediate board to the upgrade agent board includes:
步骤301:向所述从子架上的单板发出查询请求,分别获取所述从子架上具有所述外部存储介质的单板组成的单板集合。同一从子架上或许存在多个符合查询条件的单板,此时,需要从所述从子架上所有具有外部存储介质的单板组成的单板集合中挑选一单板作为准备升级的中间单板。Step 301: Send a query request to the board on the slave subrack, and obtain a set of boards that are composed of the board with the external storage medium on the subrack. On the same subrack, there may be multiple boards that meet the query conditions. In this case, you need to select one board from the set of boards with all external storage media on the subrack as the middle of the upgrade. veneer.
步骤302:Step 302:
从所述处于主用状态的单板中选择槽位号最小的单板作为中间单板。The board with the smallest slot number is selected as the intermediate board from the board in the active state.
步骤303:在所述中间单板的配置文件中添加升级代理后备字段进行标识。并将所述中间单板的路径信息发送给所述网管服务器进行存储。用所述升级代理后备字段来标识该类型的单板具有成为升级代理板的能力。Step 303: Add an upgrade agent backup field to the configuration file of the intermediate board for identification. And sending the path information of the intermediate board to the network management server for storage. The upgrade agent backup field is used to identify that the board of this type has the ability to become an upgrade agent board.
步骤304:根据接收到的中间单板升级命令,向具有标识的所述中间单板传输第一软件,使得所述中间单板升级为升级代理板。所述第一软件为带有升级功能的组件。所述中间单板升级命令包括中间单板加载命令和中间单板激活命令。其中,根据所述中间单板所在的从子架的升级优先级,按优先级顺序,依次激活所述第一软件;优先级相同的从子架,则同时激活所述第一软件。Step 304: The first software is transmitted to the intermediate board with the identifier according to the received intermediate board upgrade command, so that the intermediate board is upgraded to the upgrade agent board. The first software is a component with an upgrade function. The intermediate board upgrade command includes an intermediate board loading command and an intermediate board activation command. The first software is sequentially activated according to the priority of the sub-racks in which the intermediate boards are located, and the first software is activated at the same time.
图6为本发明的实施例的软件升级设备结构图;图7为本发明的实施例的从子架上的单板的升级过程的一流程示意图。如图6、图7所示,将所述中间单板升级为升级代理板后,就可以进行从子架上的单板的升级工作,主控板获得升级配置文件,所述从子架上的单板的升级过程包括如下步骤:FIG. 6 is a structural diagram of a software upgrade device according to an embodiment of the present invention; FIG. 7 is a schematic flowchart of a process for upgrading a board from a subrack according to an embodiment of the present invention. As shown in Figure 6 and Figure 7, after upgrading the intermediate board to the upgrade agent board, you can upgrade the board from the subrack. The main control board obtains the upgrade configuration file. The upgrade process of the board includes the following steps:
步骤401:主控板接收网管服务器下发的第一升级软件包及第一升级命令。Step 401: The main control board receives the first upgrade package and the first upgrade command delivered by the network management server.
所述网管服务器在下发第一升级软件包之前,先查询所述主控板当前是 否包含了与第一升级软件包中相同的升级软件,如果存在,则不下发,如果不存在,则下发到所述主控板上一个新建的升级目录下,同时将未下发而又存在于所述主控板中的升级软件,以硬链接的方式将这些升级软件链接到新建的升级目录下。Before the first upgrade package is delivered, the network management server queries the main control board that is currently Does not include the same upgrade software as the first upgrade package. If it does not exist, it will not be delivered. If it does not exist, it will be delivered to a newly created upgrade directory on the main control board. The upgrade software that exists in the main control board links these upgrade software to the newly created upgrade directory in a hard link manner.
其中,第三升级配置文件包括了多个类型单板类型号、每个类型单板下包括的软件名称以及在新建的升级目录下软件默认存放的路径。The third upgrade configuration file includes multiple types of board types, software names included under each type of board, and paths that are stored by default in the newly created upgrade directory.
步骤402:所述主控板拆分所述第一升级软件包,将拆分获得的第二升级软件包传输给相应的升级代理板。Step 402: The main control board splits the first upgrade software package, and transmits the second upgrade software package obtained by the split to the corresponding upgrade agent board.
根据网管服务器的升级指令及从子架上的单板类型,所述主控板根据,拆分所述第一软件包获得第二升级软件包,并将所述第二软件包传输给相应的升级代理板。According to the upgrade instruction of the network management server and the type of the board from the subrack, the main control board obtains the second upgrade software package according to the splitting of the first software package, and transmits the second software package to the corresponding Upgrade the agent board.
主控板查询从子架下包含的单板类型,从第三升级配置文件中获取到该类型单板下需要升级的一个或多个类型软件以及在新建的升级目录下软件默认存放的路径,从新建的升级目录下进行查找,将查找出来的软件都下发给对应从子架下的升级代理板。The main control board queries the type of the board that is included in the subrack. The third upgrade configuration file obtains one or more types of software that need to be upgraded on the board and the default path of the software in the newly created upgrade directory. Search from the newly created upgrade directory and send the found software to the upgrade agent board corresponding to the slave subrack.
步骤403:所述主控板发送单板软件升级命令给从子架上的所述升级代理板。Step 403: The main control board sends a board software upgrade command to the upgrade agent board on the slave subrack.
所述升级命令包括单板软件加载命令及单板软件激活命令。The upgrade command includes a board software load command and a board software activation command.
步骤404:所述升级代理板收到所述单板软件升级命令后,拆分所述第二升级软件包,并对所述从子架上的单板进行软件升级。Step 404: After the upgrade agent board receives the board software upgrade command, split the second upgrade software package, and perform software upgrade on the board on the slave subrack.
当所述升级代理板收到所述单板软件加载命令后,根据第二配置文件,将由所述第二升级软件包拆分后的升级软件下发给后所述从子架上的单板。所述第二升级配置文件包括了多个类型单板的类型号、多个类型单板的升级优先级、多个类型单板下的多个类型软件升级优先级、多个类型单板下的多个类型软件名称以及软件默认存放的路径。After the upgrade agent board receives the board software loading command, the upgrade software that is split by the second upgrade software package is sent to the board of the slave sub-rack according to the second configuration file. . The second upgrade configuration file includes a type number of a plurality of types of boards, an upgrade priority of multiple types of boards, and multiple types of software upgrade priorities under multiple types of boards, and multiple types of boards. Multiple types of software names and paths where the software is stored by default.
从子架下的所有单板软件加载结束后,主控板根据第一升级配置文件中对应的子架号、子架优先级、升级代理板地址,按顺序的对各从子架下的升级代理板下发从子架激活命令。所述升级代理板根据所述第二升级配置文件中对应的各类型单板类型号、各类型单板升级优先级、各类型单板下的软件 升级优先级,对各类型单板顺序进行激活,优先级相同的,则同时进行激活;同一单板下,组件优先级相同的,同时进行激活,组件优先级不相同的,则按顺序进行激活。After all the boards are loaded from the subrack, the main control board upgrades the subracks according to the corresponding subrack number, subrack priority, and upgrade proxy address in the first upgrade configuration file. The agent board issues the activation command from the subrack. The upgrade agent board is configured according to the type of the board in the second upgrade configuration file, the upgrade priority of each type of board, and the software under each type of board. Upgrade the priority and activate the sequence of each type. If the priorities are the same, activate them at the same time. If the components have the same priority and are activated at the same time, the components with different priorities are activated in sequence. .
步骤405:所述升级代理板接收单板的软件升级进度,并将所在从子架的整体单板软件升级进度发送给所述主控板。Step 405: The upgrade agent board receives the software upgrade progress of the board, and sends the progress of the overall board software upgrade from the sub-rack to the main control board.
所述升级进度包括加载进度和激活进度。所述升级代理板接收单板的软件激活进度,并将所在从子架的整体单板软件激活进度发送给所述主控板。The upgrade progress includes a loading progress and an activation progress. The upgrade agent board receives the software activation progress of the board, and sends the progress of the overall board software activation from the sub-rack to the main control board.
步骤406:所述主控板将接收到的所述整体单板软件升级进度发送给所述网管服务器。Step 406: The main control board sends the received overall board software upgrade progress to the network management server.
所述从子架上单个单板的加载进度信息不进行上报,最后只上报给网管从子架总体的加载进度,从子架加载完成后,会给网管上报从子架下详细的单板软件加载状态。The loading progress information of the single board from the subrack is not reported. Finally, only the loading progress of the subnet from the subrack is reported. After the subrack is loaded, the NMS reports the detailed board software from the subrack. Load status.
而后,所述主控板将接收到的所述整体单板软件激活进度发送给所述网管服务器。和上报单板软件加载进度一样,只上报给网管从子架的一个总体单板软件激活进度,激活完成后,上报一个详细的从子架下的单板软件激活状态给网管服务器。Then, the main control board sends the received overall board software activation progress to the network management server. The progress of the board software is the same as that of the board software. Only the overall board software activation progress from the subrack is reported to the network management system. After the activation is complete, a detailed software activation status of the board software from the subrack is reported to the network management server.
在通过升级代理板进行从子架上的单板升级的过程中,所述主控板还负责主子架上的单板的升级任务以及没有升级代理板的从子架上的单板的升级任务。所述主控板负责的单板与其他由所述升级代理板负责的单板同时进行软件加载与激活。In the process of upgrading the board from the subrack by upgrading the proxy board, the main control board is also responsible for the upgrade task of the board on the main subrack and the upgrade task of the board from the subrack without upgrading the agent board. . The board responsible for the main control board is loaded and activated simultaneously with other boards that are responsible for the upgrade agent board.
1.从子架下的单板不再依靠主子架的主控板直接进行单板软件的加载和激活,而是用多个升级代理板来分担主控板一部分的升级任务,实现了一个网元内的分布式的单板升级。1. The board from the subrack no longer relies on the main control board of the main subrack to directly load and activate the board software. Instead, it uses multiple upgrade agent boards to share the upgrade task of the main control board. Distributed board upgrades within the yuan.
2.这种分布式的单板升级方式极大的缓解了主控板的升级压力,能够使得主控板在进行大型设备软件升级时,也能够保证不会影响其他的非升级的设备管理功能。2. The distributed board upgrade mode greatly relieves the upgrade pressure of the main control board, which enables the main control board to ensure that it does not affect other non-upgraded device management functions when upgrading large-scale device software. .
3.这种分布式的升级方式还能够极大的减少主控板处理并行升级单板的总数量以及单板升级出现超时导致失败的概率,因此能够很大程度上提高升级成功率。 The distributed upgrade mode can greatly reduce the total number of concurrently upgraded boards on the main control board and the probability of failure due to timeout of the board upgrade. Therefore, the upgrade success rate can be greatly improved.
以上所述是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明所述原理的前提下,还可以作出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above is a preferred embodiment of the present invention, and it should be noted that those skilled in the art can also make several improvements and retouchings without departing from the principles of the present invention. It should be considered as the scope of protection of the present invention.
本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中,所述计算机程序在相应的硬件平台上(如系统、设备、装置、器件等)执行,在执行时,包括方法实施例的步骤之一或其组合。One of ordinary skill in the art will appreciate that all or a portion of the steps of the above-described embodiments can be implemented using a computer program flow, which can be stored in a computer readable storage medium, such as on a corresponding hardware platform (eg, The system, device, device, device, etc. are executed, and when executed, include one or a combination of the steps of the method embodiments.
可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。Alternatively, all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve. Thus, the invention is not limited to any specific combination of hardware and software.
上述实施例中的各装置/功能模块/功能单元可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。The devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
上述实施例中的各装置/功能模块/功能单元以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。When each device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium. The above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求所述的保护范围为准。Variations or substitutions are readily conceivable within the scope of the present invention by those skilled in the art and are within the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the claims.
工业实用性Industrial applicability
本发明实施例的方案中,从子架下的单板不再依靠主子架主控板直接进行单板软件的下发和激活,而是用多个升级代理板来分担主控板一部分的升级任务,极大的缓解了主控板的升级压力,能够使得主控板在进行大型设备软件升级时,也能够保证不会影响其他的非升级的设备管理功能,本发明还能够极大的减少主控板处理并行升级单板的总数量以及单板升级出现超时导致失败的概率,因此能够很大程度上提高升级成功率。 In the solution of the embodiment of the present invention, the board from the subrack no longer relies on the main subrack main control board to directly issue and activate the board software, but uses multiple upgrade agent boards to share the upgrade of the main control board. The task greatly relieves the upgrade pressure of the main control board, and enables the main control board to ensure that it does not affect other non-upgraded device management functions when upgrading large-scale device software. The present invention can also greatly reduce The main control board processes the total number of concurrently upgraded boards and the probability that the board upgrade will time out and cause failures, thus greatly improving the upgrade success rate.

Claims (20)

  1. 一种软件版本升级的方法,用于主子架上的主控板,其特征在于,所述主控板对应于从子架上的至少一个中间单板,所述中间单板为从所述从子架上的单板中挑选出来的单板,所述中间单板对应于所述从子架上的至少一个其他单板,所述软件版本升级的方法包括:A method for upgrading a software version, which is used for a main control board on a primary subrack, wherein the main control board corresponds to at least one intermediate veneer from the subrack, and the intermediate veneer is from the slave The board selected from the board in the subrack, the intermediate board corresponding to the at least one other board on the subrack, and the method for upgrading the software version includes:
    第一传输步骤:向所述中间单板传输第一软件,使得所述中间单板升级为升级代理板;The first transmission step is: transmitting the first software to the intermediate board, so that the intermediate board is upgraded to an upgrade agent board;
    第二传输步骤:向所述升级代理板传输第二软件,使得所述升级代理板向其对应的单板提供所述第二软件,实现所述从子架上的单板的软件升级。The second transmission step is: transmitting the second software to the upgrade agent board, so that the upgrade agent board provides the second software to the corresponding board, and implements software upgrade of the board from the sub-rack.
  2. 根据权利要求1所述的方法,其中,所述中间单板为具有外部存储介质的单板,所述方法还包括:The method of claim 1, wherein the intermediate board is a single board having an external storage medium, the method further comprising:
    查询步骤:向所述从子架上的单板发出查询请求,分别获取所述从子架上具有所述外部存储介质的单板组成的单板集合;The querying step is to send a query request to the board on the slave subrack, and obtain the set of boards that are composed of the board with the external storage medium on the subrack;
    第一执行步骤:从所述单板集合中的处于主用状态的单板中选择槽位号最小的单板作为中间单板。The first step is to select a board with the smallest slot number as the intermediate board from the board in the active state.
  3. 根据权利要求1所述的方法,其中,所述第一传输步骤包括:The method of claim 1 wherein said first transmitting step comprises:
    标识步骤:在所述中间单板的配置文件中添加升级代理后备字段作为标识;Identification step: adding an upgrade agent backup field as an identifier in the configuration file of the intermediate board;
    第一传输子步骤:向具有所述标识的中间单板传输第一软件;a first transmission sub-step: transmitting the first software to the intermediate board having the identifier;
    第一激活步骤:向具有所述标识的中间单板传输中间单板激活命令,使得所述中间单板升级为升级代理板。The first activation step is: transmitting an intermediate board activation command to the intermediate board having the identifier, so that the intermediate board is upgraded to an upgrade agent board.
  4. 根据权利要求3所述的方法,其中,所述中间单板为多个,所述主控板获得第一升级配置文件,所述第一升级配置文件中保存有所述中间单板所在从子架的升级优先级,所述第一激活步骤包括:根据所述第一升级配置文件,依次向具有所述标识的中间单板传输中间单板升级命令,使得所述中间单板按照所述升级优先级依次升级为升级代理板。The method of claim 3, wherein the intermediate boards are multiple, the main control board obtains a first upgrade configuration file, and the first upgrade configuration file stores the slave board where the intermediate board is located. The upgrade priority of the shelf, the first activation step includes: transmitting an intermediate board upgrade command to the intermediate board having the identifier according to the first upgrade configuration file, so that the intermediate board is upgraded according to the upgrade The priority is upgraded to the upgrade agent board in turn.
  5. 根据权利要求1所述的方法,其中,所述升级代理板为多个,所述升级代理板获得第一升级配置文件,所述第一升级配置文件中保存有所述升级 代理板所在从子架的升级优先级,所述第二传输步骤包括:The method of claim 1, wherein the upgrade agent board is a plurality, the upgrade agent board obtains a first upgrade configuration file, and the upgrade is saved in the first upgrade configuration file. The agent board is in the upgrade priority from the subrack, and the second transmission step includes:
    第二传输子步骤:向从子架上对应的所述升级代理板传输第二软件;a second transmission sub-step: transmitting the second software to the corresponding upgrade agent board on the slave subrack;
    第一加载步骤:向所述升级代理板发送单板软件加载命令,使得所述升级代理板向其对应的单板传输所述第二软件;a first loading step: sending a board software load command to the upgrade agent board, so that the upgrade agent board transmits the second software to its corresponding board;
    第二激活步骤:根据所述第一升级配置文件,依次向所述升级代理板发送单板软件激活命令,使得所述升级代理板向其对应的单板发送所述单板软件激活命令,实现所述从子架上的单板的软件升级。a second activation step: sending a board software activation command to the upgrade agent board in sequence according to the first upgrade configuration file, so that the upgrade agent board sends the board software activation command to the corresponding board to implement The software upgrade from the board on the subrack.
  6. 根据权利要求1所述的方法,还包括:The method of claim 1 further comprising:
    第三传输步骤:向所述主子架上的所有单板传输第三软件,实现所述主子架上的所述单板的软件升级;a third transmission step: transmitting third software to all the boards on the primary subrack to implement software upgrade of the board on the primary subrack;
    第四传输步骤:向没有升级代理板的所述从子架上的所有单板传输第四软件,实现所述从子架上的所述单板的软件升级。The fourth transmission step is: transmitting fourth software to all the boards on the slave sub-rack without upgrading the proxy board, and implementing software upgrade of the board on the slave sub-rack.
  7. 根据权利要求5所述的方法,还包括:The method of claim 5 further comprising:
    接收步骤:接收所述升级代理板传输的所述从子架上对应的单板的升级进度和软件加载进度。Receiving step: receiving an upgrade progress and a software loading progress of the corresponding board on the slave subrack transmitted by the upgrade agent board.
  8. 一种软件版本升级的方法,用于一从子架上的中间单板,其特征在于,所述中间单板对应于主子架上的主控板,所述中间单板为从所述从子架上的单板中挑选出来的单板,所述中间单板对应于所述从子架上的至少一个其他单板,所述软件版本升级的方法包括:A method for upgrading a software version, which is used for an intermediate board on a sub-rack, wherein the intermediate board corresponds to a main control board on the main sub-rack, and the intermediate board is from the slave The board selected from the board, the intermediate board corresponding to the at least one other board on the slave subrack, and the software version upgrade method includes:
    第一接收步骤:接收所述主控板传输的第一软件,利用所述第一软件升级为升级代理板;a first receiving step: receiving the first software transmitted by the main control board, and upgrading to the upgrade proxy board by using the first software;
    第二接收步骤:接收所述主控板传输的第二软件,并向对应的从子架上的单板提供所述第二软件,实现所述从子架上的单板的软件升级。The second receiving step is: receiving the second software transmitted by the main control board, and providing the second software to the corresponding board on the subrack to implement software upgrade of the slave board on the subrack.
  9. 根据权利要求8所述的方法,其中,所述中间单板为具有外部存储介质的单板,所述方法还包括:接收所述主控板发出的查询请求,并将自己具有外部存储介质的消息返回给所述主控板。The method according to claim 8, wherein the intermediate board is a board having an external storage medium, the method further comprising: receiving a query request sent by the main control board, and having an external storage medium The message is returned to the main control board.
  10. 根据权利要求8所述的方法,其中,所述升级代理板为多个,所述升级代理板获得第二升级配置文件,所述升级配置文件中保存有所述升级代理板所在从子架上的单板的升级优先级,所述第二接收步骤包括: The method according to claim 8, wherein the upgrade agent board is a plurality, and the upgrade agent board obtains a second upgrade configuration file, where the upgrade configuration file stores the slave agent board on which the upgrade agent board is located. The upgrade priority of the board, the second receiving step includes:
    第二接收子步骤:接收所述主控板传输的所述第二升级软件;a second receiving sub-step: receiving the second upgrade software transmitted by the main control board;
    第二加载步骤:接收所述主控板发送的单板软件加载命令,并向对应的单板传输所述第二软件;a second loading step: receiving a board software loading command sent by the main control board, and transmitting the second software to the corresponding board;
    第三激活步骤:接收所述主控板传输的单板软件激活命令,并根据所述第二配置文件,依次向对应的单板发送所述单板软件激活命令,实现所述从子架上的单板的软件升级。a third activation step: receiving a board software activation command transmitted by the main control board, and sequentially sending the board software activation command to the corresponding board according to the second configuration file, to implement the slave subrack Software upgrade for the board.
  11. 根据权利要求10所述的方法,还包括:The method of claim 10 further comprising:
    传输步骤:接收所述从子架上对应的单板的升级进度和软件加载进度,并将所述升级进度和软件加载进度传输给所述主控板。The transmitting step: receiving an upgrade progress and a software loading progress of the corresponding board from the subrack, and transmitting the upgrade progress and the software loading progress to the main control board.
  12. 一种软件版本升级的装置,用于主子架上的主控板,其特征在于,所述主控板对应于从子架上的至少一个中间单板,所述中间单板为从所述从子架上的单板中挑选出来的单板,所述中间单板对应于所述从子架上的至少一个其他单板,所述软件版本升级的装置包括:A software version upgrade device is used for a main control board on a main subrack, wherein the main control board corresponds to at least one intermediate veneer from the subrack, and the intermediate veneer is from the slave The board selected from the board in the subrack, the intermediate board corresponding to the at least one other board on the subrack, the software version upgrade device includes:
    第一传输模块,其设置为:向所述中间单板传输第一软件,使得所述中间单板升级为升级代理板;以及a first transmission module, configured to: transfer the first software to the intermediate board, so that the intermediate board is upgraded to an upgrade agent board;
    第二传输模块,其设置为:向所述升级代理板传输第二软件,使得所述升级代理板向对应的单板提供所述第二软件,实现所述从子架上的单板的软件升级。a second transmission module, configured to: transmit the second software to the upgrade agent board, so that the upgrade agent board provides the second software to the corresponding board, and implements software of the board on the slave subrack upgrade.
  13. 根据权利要求12所述的装置,其中,所述中间单板为具有外部存储介质的单板,所述装置还包括:The device of claim 12, wherein the intermediate board is a single board having an external storage medium, the apparatus further comprising:
    查询单元,其设置为:向所述从子架上的单板发出查询请求,分别获取所述从子架上具有所述外部存储介质的单板组成的单板集合;以及a query unit, configured to: send a query request to the board on the slave subrack, and respectively obtain the set of boards that are composed of the board having the external storage medium on the subrack;
    第一执行单元,其设置为:从所述单板集合中的处于主用状态的单板中选择槽位号最小的单板作为中间单板。The first execution unit is configured to select, from the board in the active state, the board with the smallest slot number as the intermediate board.
  14. 根据权利要求12所述的装置,其中,所述第一传输模块包括:The apparatus of claim 12, wherein the first transmission module comprises:
    标识单元,其设置为:在所述中间单板的配置文件中添加升级代理后备字段作为标识;An identification unit, which is configured to: add an upgrade agent backup field as an identifier in a configuration file of the intermediate board;
    第一传输单元,其设置为:向具有所述标识的中间单板传输第一软件;以及 a first transmission unit, configured to: transmit the first software to the intermediate board having the identifier;
    第一激活单元,其设置为:向具有所述标识的中间单板传输中间单板激活命令,使得所述中间单板升级为升级代理板。The first activation unit is configured to: send an intermediate board activation command to the intermediate board having the identifier, so that the intermediate board is upgraded to an upgrade agent board.
  15. 根据权利要求12所述的装置,其中,所述升级代理板为多个,所述升级代理板获得第一升级配置文件,所述第一升级配置文件中保存有所述升级代理板所在从子架的升级优先级,所述第二传输模块包括:The device of claim 12, wherein the upgrade agent board is a plurality, the upgrade agent board obtains a first upgrade configuration file, and the first upgrade configuration file saves the slave agent board where the upgrade agent board is located The upgrade priority of the rack, the second transmission module includes:
    第二传输单元,其设置为:向从子架上对应的所述升级代理板传输第二软件;a second transmission unit, configured to: transmit the second software to the corresponding upgrade agent board on the slave subrack;
    第一加载单元,其设置为:向所述升级代理板发送单板软件加载命令,使得所述升级代理板向其对应的单板传输所述第二软件;以及a first loading unit, configured to: send a board software load command to the upgrade agent board, so that the upgrade agent board transmits the second software to its corresponding board;
    第二激活单元,其设置为:根据所述第一升级配置文件,依次向所述升级代理板发送单板软件激活命令,使得所述升级代理板向其对应的单板发送所述单板软件激活命令,实现所述从子架上的单板的软件升级。a second activation unit, configured to: send a board software activation command to the upgrade agent board in sequence according to the first upgrade configuration file, so that the upgrade agent board sends the board software to its corresponding board Activate the command to implement software upgrade of the board from the subrack.
  16. 一种软件版本升级的装置,用于一从子架上的中间单板,其特征在于,所述中间单板对应于主子架上的主控板,所述中间单板为从所述从子架上的单板中挑选出来的单板,所述中间单板对应于所述从子架上的至少一个单板,所述软件版本升级的装置包括:A software version upgrade device is used for an intermediate board on a sub-rack, wherein the intermediate board corresponds to a main control board on the main sub-rack, and the intermediate board is from the slave The board selected from the board, the intermediate board corresponding to the at least one board on the slave subrack, the software version upgrade device includes:
    第一接收模块,其设置为:接收所述主控板传输的第一软件,利用所述第一软件升级为升级代理板;以及a first receiving module, configured to: receive the first software transmitted by the main control board, and upgrade to an upgrade proxy board by using the first software;
    第二接收模块,其设置为:接收所述主控板传输的第二软件,并向所述从子架上对应的单板提供所述第二软件,实现所述从子架上的单板的软件升级。a second receiving module, configured to: receive the second software transmitted by the main control board, and provide the second software to the corresponding board on the sub-rack to implement the board on the sub-rack Software upgrade.
  17. 根据权利要求16所述的装置,其中,所述升级代理板为多个,所述升级代理板获得第二升级配置文件,所述升级配置文件中保存有所述升级代理板所在从子架上的单板的升级优先级,所述第二接收模块包括:The device according to claim 16, wherein the upgrade agent board is a plurality, and the upgrade agent board obtains a second upgrade configuration file, where the upgrade configuration file stores the slave agent board on which the upgrade agent board is located. The upgrade priority of the board, the second receiving module includes:
    第二接收单元,其设置为:接收所述主控板传输的所述第二升级软件;a second receiving unit, configured to: receive the second upgrade software transmitted by the main control board;
    第二加载单元,其设置为:接收所述主控板发送的单板软件加载命令,并向所述从子架上对应的单板传输所述第二软件;以及a second loading unit, configured to: receive a board software loading command sent by the main control board, and transmit the second software to a corresponding board on the slave subrack;
    第三激活单元,其设置为:接收所述主控板传输的单板软件激活命令,并根据所述第二配置文件,依次向所述从子架上对应的单板发送所述单板软 件激活命令,实现所述从子架上的单板的软件升级。a third activation unit, configured to: receive a board software activation command transmitted by the main control board, and send the board soft to the corresponding board on the slave subrack according to the second configuration file The software activates the command to implement software upgrade of the board from the subrack.
  18. 一种计算机程序,包括程序指令,当该程序指令被主子架上的主控板执行时,使得该主控板可执行权利要求1-7所述的方法。A computer program comprising program instructions that, when executed by a main control board on a primary subrack, cause the main control board to perform the method of claims 1-7.
  19. 一种计算机程序,包括程序指令,当该程序指令被从子架上的中间单板执行时,使得该中间单板可执行权利要求8-11所述的方法。A computer program comprising program instructions that, when executed from an intermediate board on a subrack, cause the intermediate board to perform the method of claims 8-11.
  20. 一种载有权利要求18或19所述计算机程序的载体。 A carrier carrying the computer program of claim 18 or 19.
PCT/CN2014/088627 2014-04-18 2014-10-15 Method and apparatus for upgrading software version WO2015158120A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410158885.8A CN105024839B (en) 2014-04-18 2014-04-18 A kind of method and device of software release upgrade
CN201410158885.8 2014-04-18

Publications (1)

Publication Number Publication Date
WO2015158120A1 true WO2015158120A1 (en) 2015-10-22

Family

ID=54323452

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/088627 WO2015158120A1 (en) 2014-04-18 2014-10-15 Method and apparatus for upgrading software version

Country Status (2)

Country Link
CN (1) CN105024839B (en)
WO (1) WO2015158120A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109032635A (en) * 2018-07-16 2018-12-18 新华三技术有限公司 Method for upgrading software, device and the network equipment
CN110633094A (en) * 2019-10-22 2019-12-31 宁波三星医疗电气股份有限公司 Remote upgrading method for power terminal, master station and power system
CN114448799A (en) * 2022-01-30 2022-05-06 合肥美的电冰箱有限公司 Remote upgrading method and device, main control board, household appliance and storage medium
CN115348172A (en) * 2022-07-28 2022-11-15 鹿马智能科技(上海)有限公司 Method, device and medium for upgrading versions of different parts of edge network device

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105915362A (en) * 2015-11-09 2016-08-31 乐视致新电子科技(天津)有限公司 Method for controlling system upgrading according to version information and device thereof
CN105915363A (en) * 2015-11-09 2016-08-31 乐视致新电子科技(天津)有限公司 Transition upgrading method and device
CN109189449B (en) * 2018-10-24 2022-02-15 天津津航计算技术研究所 Multi-FPGA remote upgrading method based on CAN bus
CN110704081A (en) * 2019-09-23 2020-01-17 超讯通信股份有限公司 Remote software upgrading system and method based on 5G distributed small base station
CN112769589B (en) * 2019-11-06 2022-03-11 大唐移动通信设备有限公司 Base station upgrading method and device
CN113835715A (en) * 2020-06-24 2021-12-24 中兴通讯股份有限公司 Case board card, cluster system, software deployment method and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101267344A (en) * 2008-04-25 2008-09-17 中兴通讯股份有限公司 An upgrade method and device for network element single-board software
CN101753352A (en) * 2008-12-12 2010-06-23 华为技术有限公司 Method, system for loading business single plate and main control single plate
WO2010142092A1 (en) * 2009-06-10 2010-12-16 中兴通讯股份有限公司 Upgrade method and system of single-board software in equipment in communication system
CN102831000A (en) * 2012-09-11 2012-12-19 华为技术有限公司 System upgrading method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101277223A (en) * 2008-05-07 2008-10-01 中兴通讯股份有限公司 Method for obtaining veneer software

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101267344A (en) * 2008-04-25 2008-09-17 中兴通讯股份有限公司 An upgrade method and device for network element single-board software
CN101753352A (en) * 2008-12-12 2010-06-23 华为技术有限公司 Method, system for loading business single plate and main control single plate
WO2010142092A1 (en) * 2009-06-10 2010-12-16 中兴通讯股份有限公司 Upgrade method and system of single-board software in equipment in communication system
CN102831000A (en) * 2012-09-11 2012-12-19 华为技术有限公司 System upgrading method and system

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109032635A (en) * 2018-07-16 2018-12-18 新华三技术有限公司 Method for upgrading software, device and the network equipment
CN110633094A (en) * 2019-10-22 2019-12-31 宁波三星医疗电气股份有限公司 Remote upgrading method for power terminal, master station and power system
CN110633094B (en) * 2019-10-22 2023-06-27 宁波三星医疗电气股份有限公司 Remote upgrading method for power terminal, main station and power system
CN114448799A (en) * 2022-01-30 2022-05-06 合肥美的电冰箱有限公司 Remote upgrading method and device, main control board, household appliance and storage medium
CN114448799B (en) * 2022-01-30 2023-06-30 合肥美的电冰箱有限公司 Remote upgrading method, device, main control board, household electrical appliance and storage medium
CN115348172A (en) * 2022-07-28 2022-11-15 鹿马智能科技(上海)有限公司 Method, device and medium for upgrading versions of different parts of edge network device
CN115348172B (en) * 2022-07-28 2024-05-14 鹿马智能科技(上海)有限公司 Method, equipment and medium for upgrading versions of different parts of edge network equipment

Also Published As

Publication number Publication date
CN105024839A (en) 2015-11-04
CN105024839B (en) 2019-12-03

Similar Documents

Publication Publication Date Title
WO2015158120A1 (en) Method and apparatus for upgrading software version
US9231849B2 (en) Apparatus and method for controlling virtual switches
US9503322B2 (en) Automatic stack unit replacement system
CN102185718B (en) System upgrading method and device
EP3447965B1 (en) Network function instance management method and relevant device
US8554980B2 (en) Triggered notification
EP2915285B1 (en) Adding device-wide capabilities and parameters to split-architecture devices
US9491043B2 (en) Communication path switching device, communication path switching method and communication path switching program
CN107003983A (en) Configuration network
CN110275680B (en) Double-control double-active storage system
US20150363340A1 (en) Providing multiple synchronous serial console sessions using data buffering
WO2011116583A1 (en) Method and apparatus for implementing management of multi-protocol communication components
US9928206B2 (en) Dedicated LAN interface per IPMI instance on a multiple baseboard management controller (BMC) system with single physical network interface
USRE46770E1 (en) Computer managing method
CN102769544A (en) Equipment service adaptation layer architecture in communication system and service adaptation layer realization method
CN109739622A (en) Active and standby master control configuration and synchronization method and device based on frame type equipment
CN112416969A (en) Parallel task scheduling system in distributed database
Sun et al. Republic: Data multicast meets hybrid rack-level interconnections in data center
EP4030776A1 (en) Method and apparatus for triggering vomci function from olt to send omci messages
CN114679349A (en) Data communication method and device
US20150212834A1 (en) Interoperation method of newtork device performed by computing device including cloud operating system in could environment
CN106708701B (en) Central maintenance device and method based on ARINC659 bus
CN107547277A (en) One kind virtualization control panel implementation method and network communication equipment
CN108847959A (en) Server monitoring method and server
CN103685017A (en) Message forwarding method in stacking system, stacking equipment and stacking system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14889762

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14889762

Country of ref document: EP

Kind code of ref document: A1