WO2021036712A1 - Upgrading method, communication device and computer-readable storage medium - Google Patents

Upgrading method, communication device and computer-readable storage medium Download PDF

Info

Publication number
WO2021036712A1
WO2021036712A1 PCT/CN2020/106846 CN2020106846W WO2021036712A1 WO 2021036712 A1 WO2021036712 A1 WO 2021036712A1 CN 2020106846 W CN2020106846 W CN 2020106846W WO 2021036712 A1 WO2021036712 A1 WO 2021036712A1
Authority
WO
WIPO (PCT)
Prior art keywords
main control
control board
new
version
storage medium
Prior art date
Application number
PCT/CN2020/106846
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 WO2021036712A1 publication Critical patent/WO2021036712A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Definitions

  • the present invention relates to the field of communication technology, and more specifically, to an upgrade method, a communication device, and a computer-readable storage medium.
  • equipment upgrades may be mainly software upgrades, and software upgrades are currently classified in terms of their impact on services in two ways: interrupted service upgrades and uninterrupted service upgrades.
  • the interrupted service upgrade is mainly because the two versions before and after the upgrade have incompatibility that cannot be solved.
  • the uninterrupted service upgrade is realized by protection switching or CPU soft reset while ensuring the compatibility of the software before and after.
  • the service interruption time includes the start-up time of the new main control board, the new main control board resume service configuration time, the line card start time, etc.
  • the new main control board resumes business time longer. The entire upgrade process will have a longer business interruption.
  • the upgrading method, the communication device and the computer-readable storage medium provided by the embodiments of the present invention mainly solve the technical problem that the operation of upgrading the communication device in the related technology is complicated, and the service interruption time of the upgrade process is long and the upgrade efficiency is low.
  • an embodiment of the present invention provides an upgrade method, which is applied to a communication device including a first main control board and a second main control board, including:
  • the second main control board is upgraded.
  • the embodiment of the present invention also provides a communication device, the communication device including a processor, a memory, and a communication bus;
  • the communication bus is configured to realize connection and communication between the processor and the memory
  • the processor is configured to execute one or more computer programs stored in the memory to implement the steps of the upgrade method described above.
  • the embodiment of the present invention also provides a computer-readable storage medium, and the computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the upgrade method as described above. A step of.
  • the upgrade method, communication equipment, and computer-readable storage medium provided by the embodiments of the present invention use the first main control board and the second main control board to perform centralized management, maintain the normal operation of the second main control board, and provide the first main control board to the first main control board.
  • the control board is upgraded.
  • the second main control board is upgraded; it solves the complicated operation of the communication equipment upgrade in the related technology, and the business interruption time of the upgrade process is longer, The problem of low upgrade efficiency.
  • the upgrade method, communication device, and computer-readable storage medium provided by the embodiments of the present invention maintain the normal operation of the second main control board when the first main control board is upgraded, and the service interruption time is short during the upgrade process And the upgrade process is simple to operate, no need to pay attention to the status of the equipment all the time, and smooth upgrade of the business is realized.
  • FIG. 1 is a schematic diagram of the basic flow of an upgrade method provided by Embodiment 1 of the present invention
  • FIG. 2 is a schematic diagram of a basic flow after replacing the first main control board with the first new main control board according to the first embodiment of the present invention
  • FIG. 3 is a schematic diagram of a basic flow after a second main control board resets as a standby main control board according to the first embodiment of the present invention
  • FIG. 4 is a schematic diagram of centralized management of communication device versions according to Embodiment 2 of the present invention.
  • FIG. 5 is a schematic diagram of a version file change of a communication device board replacement upgrade provided in the third embodiment of the present invention.
  • FIG. 6 is a schematic diagram of the basic flow of a specific upgrade method provided by Embodiment 4 of the present invention.
  • FIG. 7 is a schematic structural diagram of a communication device according to Embodiment 5 of the present invention.
  • an upgrade method is provided in an embodiment of the present invention, by adopting a first main control board and a second main control board.
  • the second main control board performs centralized management, maintains the normal operation of the second main control board, and upgrades the first main control board.
  • the second main control board is upgraded ; Please refer to Figure 1, which is a schematic diagram of the basic flow of the upgrade method provided in this embodiment.
  • the communication device in this embodiment adopts two main control boards for centralized management.
  • the main control board supports 1+1 protection, and one of the main control boards serves as the main control board during normal operation. It is also called the master main control board, and the other main control board serves as the protection main control board during abnormal operation, and is also called the standby main control board.
  • S101 Maintain the normal operation of the second main control board, and upgrade the first main control board.
  • upgrading the first main control board in this embodiment includes: replacing the first main control board with the first new main control board.
  • the first new main control board serves as a backup main control board; among them, the first new main control board includes high-standard version files, and the first main control board includes low-standard version files.
  • the first new main control board includes 5G version Files, the first main control board includes 4G version files.
  • the first new main control board downloads the board replacement upgrade identification file and the service configuration file from the second main control board.
  • the board replacement upgrade identification file on the second main control board can be manually configured by the staff when replacing the first main control board with the first new main control, and the replacement upgrade identification file is used for the first new main control board.
  • the control board sets the first new main control board as the active main control board according to the board replacement upgrade identification file.
  • the first new main control board can only download the service configuration file from the second main control board without downloading the replacement upgrade identification file.
  • the second main control board sends the upgrade identification file to the first new one according to the replacement upgrade identification file on it.
  • the main control board only needs to issue an identification or command to set it as the main control board.
  • the service configuration file includes an integrated communication device network attribute configuration file.
  • S202 Close the inter-board communication between the first new main control board and other single boards, and set the first new main control board as the active main control board.
  • the other boards in this embodiment all refer to the second main control board and line card on the communication device, that is, close the connection between the first new main control board and the second main control board and line card. Board-to-board communication.
  • S203 The first new main control board loads the service configuration file to restore the service configuration information.
  • the service configuration file is loaded on the first new main control board to restore the service configuration information.
  • the service configuration file before loading the service configuration file, it further includes: converting the service configuration file so that the first new main control board can recognize the configuration file.
  • the first new main control board loads the service configuration file and restores all service configuration information, it notifies the second main control board to reset or restart.
  • the first new main control board uses logic hardware The connection method informs the second main control board to reset.
  • the first new main control board loads the service configuration file and restores all service configuration information
  • it also includes: resetting the second main control board within the first preset time period. Monitor whether the main control board is reset. When it is detected that the second main control board is not reset, a notification message is issued again to inform the second main control board that the reset is required; among them, in practical applications, the first preset time The period can be flexibly set by the developer according to experiment or experience, for example, the first preset time period is set to 15 minutes.
  • S205 The second main control board is reset as the standby main control board.
  • the second main control board resets after receiving the reset notification.
  • the second main control board serves as a standby main control board.
  • the second main control board is reset as the standby main control board in this embodiment, it also includes at least the following steps, as shown in Figure 3:
  • S301 The first new main control board notifies all line cards to reset.
  • the second main control board after the second main control board is reset as the standby main control board, it can wait for the second preset time period to ensure that the first new main control board can manage all the line cards mechanically or in hardware.
  • the second preset time period can be flexibly set by the developer based on experiments or experience, for example, the first preset time period is set to 30 seconds.
  • the method further includes: enabling the inter-board communication between the first main control board and other boards to respond to the version request of the other boards.
  • the high-standard version file can be requested from the first new main control board to operate normally, and the communication equipment business returns to normal; for the second main control board, it may be because of the first new main control board.
  • the high-standard version file stored on the control board is not supported and cannot be started, that is, the reset fails.
  • the second main control board can be upgraded.
  • the service recovery of communication equipment refers to the original service on the communication equipment. If the communication equipment needs to support new services, such as 5G services, it needs to insert a new line card that supports 5G services; for high and low standard version files, the original communication equipment Some service configurations may be incompatible.
  • the service can be restored by loading the txt script. If the txt script is not compatible, the first new main control board performs compatibility conversion and converts the txt script into A txt script that can be recognized by high-standard version files.
  • upgrading the second main control board in this embodiment includes: replacing the second main control board with a second new main control board.
  • the first new main control board since the first new main control board is operating normally at this time, the first new main control board is used as the main main control board, and the second new main control board after replacement is used as the standby main control board;
  • the new main control board includes high-standard version files, and the second main control board includes low-standard version files.
  • the second new main control board includes 5G version files, and the second main control board includes 4G version files.
  • the line card in this embodiment carries a storage medium or does not carry a storage medium.
  • the storage medium may or may not store the version file; when the storage medium stores the version file
  • filing include at least the following three methods:
  • Method 1 Download and run the version file of the first new main control board based on the version file of the first new main control board.
  • Method 2 Run the version file based on the version file stored in the storage medium of the line card.
  • Method 3 Compare the version file of the first new main control board with the version file in the line card storage medium.
  • the version file of the first new main control board is the latest version
  • download and run the version file of the first new main control board
  • run the version file is the version file in the line card storage medium.
  • the upgrade method provided by the embodiment of the present invention uses the first main control board and the second main control board for centralized management, maintains the normal operation of the second main control board, and upgrades the first main control board.
  • the second main control board is upgraded; it solves the problems of complicated operation of the communication device upgrade in related technologies, long service interruption time in the upgrade process, and low upgrade efficiency. That is to say, the upgrade method provided by the embodiment of the present invention maintains the normal operation of the second main control board when the first main control board is upgraded, and maintains the first successful upgrade when the second main control board is upgraded.
  • the service interruption time during the upgrade process only depends on the start-up time of the line card, not the start-up time of the main control board, the time when the main control board loads the service configuration, and the line card start-up time. It can be seen that the whole The service interruption time is significantly shortened, which greatly improves the efficiency of communication equipment upgrades.
  • the embodiment of the present invention provides a centralized management mode of the version file of the communication device, that is, the software, as shown in Figure 4:
  • the active main control board is recorded as MSC
  • the standby main control board is recorded as SSC
  • the line card is recorded as NSC.
  • the communication device has two main control boards and multiple line cards.
  • the hardware of the main control board is 1+1 protection, that is, the main main control board MSC and the standby main control board SSC, where the main main control board MSC Both the SSC and the standby main control board have storage media, such as SSD cards; the line card NSC may have no storage media, or storage media, such as fash.
  • the line card NSC does not have a storage medium, if the version file corresponding to the line card NSC stored on the main main control board MSC is BaseVer21.bin, then the line card NSCboot will directly download the file from the main main control board MSC to the memory In, and then run;
  • the startup process is the same as that of the board without the storage medium; if there is a saved version file in the storage medium, for example, the version of the version file is BaseVer31.bi n .
  • the running version can be determined according to different usage strategies. For example, the MSC version of the main main control board shall prevail, and the MSC version of the main main control board shall be downloaded first; if the NSC version of the line card shall prevail, the line card shall be run first The version saved by the NSC itself; the version number can also be compared, and the new version of the version number shall prevail.
  • a strategy based on the version of the main control board MSC may be adopted to facilitate the user to manage the version information of the communication device.
  • the embodiment of the present invention takes a relatively specific upgrade process as an example for description.
  • Step 1 Insert the new main control board into the spare main control slot of the communication device.
  • the original main control board is running version V2.0, and the new main control board is running version V5.0;
  • the new main control board inserted at this time is used as the backup main control board, and the original main control board is still used as the main main control board.
  • Step 2 After the new main control board is started, immediately cut off the inter-board communication with the original main control board and line card, and press the main main control board to start.
  • the new main control board at this time serves as the main main control board.
  • Step 3 After the new main control board is started and the service configuration is restored, the original main control board is notified to reset, and then all line cards are notified to reset after a period of time; if the original main control board is not supported by V5.0, it will not be able to Start, all line cards support, request V5.0 version from the new main control board again, and run the new V5.0 version.
  • the new main control board at this time is used as the main main control board, and the original main control board is reset as the standby main control board.
  • both the main main control board and line card are running the new V5.0 version to complete the communication equipment software upgrade and the hardware upgrade of the main main control board; the original main main control board can basically make it clear that it cannot meet the new business needs. Therefore, it will also be unplugged and replaced with a new main control board.
  • the line card may also need to be replaced with a single board to support new business requirements.
  • the embodiment of the present invention takes another more specific upgrade process as an example for description.
  • both the main control board and the line card may need to be upgraded to new hardware.
  • the line card It may be necessary to retain some of the original old boards, as shown in Figure 6:
  • the main control board of the communication device includes the first main control board A1 in the standby main control slot, and the second main control board A2 in the main main control slot. At this time, replace it with the first new main control board B1
  • the new main control board requests a board replacement to upgrade the identification file and the service configuration file from the original main control board.
  • the second main control board A2 is configured with a board replacement upgrade identification file, including a specific directory and File: /sysdisk0/sscupgrade/upgradecfg.ini file; at the same time, the first new main control board B1 downloads the business configuration file startrun.dat from the second main control board A2.
  • the first new main control board B1 successfully downloads the replacement upgrade identification file and the service configuration file from the second main control board A2, shut down the first new main control board B1 and the second communication device Inter-board communication between the main control board A2 and other line cards.
  • the new main control board converts the downloaded service configuration file into a service configuration file that the board can recognize, and then loads the service configuration file when the software starts.
  • the first new main control board B1 converts the downloaded startrun.dat file into a business configuration file that can be recognized by the board, and then loads the business configuration file startrun.dat when the software starts.
  • the second main control board A2 is notified to reset by way of logical hardware connection.
  • the second main control board A2 monitors whether the second main control board A2 is reset within the first preset time period, and when it is detected that the second main control board A2 has not been reset, a notification message is issued again to inform the second main control The board A2 needs to be reset, and the first preset time period can be 15 minutes.
  • the second main control board A2 can wait for a second preset time period to ensure that the first new main control board B1 can manage all the line cards mechanically or in hardware, where the second preset time The segment can take 15 seconds.
  • the new main control board opens the board-to-board communication between this board and other boards, and responds to the version requests of other boards. All boards that can request the version file will run the new version.
  • the high-standard version files contained in the new main control board will generally contain all the new software version files required by the original line card.
  • the first new main control board B1 opens its inter-board communication with the second main control board A2 and all line cards, and all line cards run the high-standard version files on the first new main control board B1 .
  • the communication device includes a processor 701, a memory 702, and a communication bus 703.
  • the communication bus 703 in this embodiment is set to realize the connection and communication between the processor 701 and the memory 702, and the processor 701 is set to execute one or more programs stored in the memory 702 to implement the following steps:
  • the second main control board is upgraded.
  • the communication device in this embodiment adopts two main control boards for centralized management.
  • the main control board supports 1+1 protection, and one of the main control boards serves as the main control board during normal operation. It is also called the master main control board, and the other main control board serves as the protection main control board during abnormal operation, and is also called the standby main control board.
  • upgrading the first main control board in this embodiment includes: replacing the first main control board with the first new main control board.
  • the first new main control board serves as a backup main control board; among them, the first new main control board includes high-standard version files, and the first main control board includes low-standard version files.
  • the first new main control board includes 5G version Files, the first main control board includes 4G version files.
  • the method further includes at least the following steps:
  • the first new main control board downloads the board replacement upgrade identification file and the service configuration file from the second main control board;
  • the first new main control board loads the service configuration file to restore the service configuration information
  • the first new main control board After the first new main control board has restored all service configuration information, the first new main control board notifies the second main control board to reset;
  • the second main control board is reset as the standby main control board.
  • the board replacement upgrade identification file on the second main control board can be manually configured by the staff when replacing the first main control board with the first new main control.
  • the replacement upgrade identification file is used for the first new main control board.
  • the control board sets the first new main control board as the active main control board according to the board replacement upgrade identification file.
  • the first new main control board can only download the service configuration file from the second main control board without downloading the replacement upgrade identification file.
  • the second main control board sends the upgrade identification file to the first new one according to the replacement upgrade identification file.
  • the main control board only needs to issue an identification or command to set it as the main control board.
  • the service configuration file includes an integrated communication device network attribute configuration file.
  • the other boards in this embodiment all refer to the second main control board and line card on the communication device, that is, close the connection between the first new main control board and the second main control board and line card. Board-to-board communication.
  • the service configuration file is loaded on the first new main control board to restore the service configuration information.
  • the service configuration file before loading the service configuration file, it further includes: converting the service configuration file so that the first new main control board can recognize the configuration file.
  • the first new main control board loads the service configuration file and restores all service configuration information, it notifies the second main control board to reset or restart.
  • the first new main control board uses logic hardware The connection method informs the second main control board to reset.
  • the first new main control board loads the service configuration file and restores all service configuration information
  • it also includes: resetting the second main control board within the first preset time period. Monitor whether the main control board is reset. When it is detected that the second main control board is not reset, a notification message is issued again to inform the second main control board that the reset is required; among them, in practical applications, the first preset time The period can be flexibly set by the developer according to experiment or experience, for example, the first preset time period is set to 15 minutes.
  • the second main control board resets after receiving the reset notification.
  • the second main control board serves as a standby main control board.
  • the second main control board is reset as the standby main control board in this embodiment, it further includes at least the following steps:
  • the first new main control board notifies all line cards to reset
  • the second main control board after the second main control board is reset as the standby main control board, it can wait for the second preset time period to ensure that the first new main control board can manage all the line cards mechanically or in hardware.
  • the second preset time period can be flexibly set by the developer based on experiments or experience, for example, the first preset time period is set to 30 seconds.
  • the method further includes: enabling the inter-board communication between the first main control board and other boards to respond to the version request of the other boards.
  • the high-standard version file can be requested from the first new main control board to operate normally, and the communication equipment business returns to normal; for the second main control board, it may be because of the first new main control board.
  • the high-standard version file stored on the control board is not supported and cannot be started, that is, the reset fails.
  • the second main control board can be upgraded.
  • the service recovery of communication equipment refers to the original service on the communication equipment. If the communication equipment needs to support new services, such as 5G services, it needs to insert a new line card that supports 5G services; for high and low standard version files, the original communication equipment Some service configurations may be incompatible.
  • the service can be restored by loading the txt script. If the txt script is not compatible, the first new main control board performs compatibility conversion and converts the txt script into A txt script that can be recognized by high-standard version files.
  • upgrading the second main control board in this embodiment includes: replacing the second main control board with a second new main control board.
  • the first new main control board since the first new main control board is operating normally at this time, the first new main control board is used as the main main control board, and the second new main control board after replacement is used as the standby main control board;
  • the new main control board includes high-standard version files, and the second main control board includes low-standard version files.
  • the second new main control board includes 5G version files, and the second main control board includes 4G version files.
  • the line card in this embodiment carries a storage medium or does not carry a storage medium.
  • the storage medium may or may not store the version file; when the storage medium stores the version file
  • filing include at least the following three methods:
  • Method 1 Download and run the version file of the first new main control board based on the version file of the first new main control board.
  • Method 2 Run the version file based on the version file stored in the storage medium of the line card.
  • Method 3 Compare the version file of the first new main control board with the version file in the line card storage medium.
  • the version file of the first new main control board is the latest version
  • download and run the version file of the first new main control board
  • run the version file is the version file in the line card storage medium.
  • the communication device provided by the embodiment of the present invention uses the first main control board and the second main control board for centralized management, maintains the normal operation of the second main control board, and upgrades the first main control board.
  • the second main control board is upgraded; it solves the problems of complicated operation of the communication device upgrade in related technologies, long service interruption time in the upgrade process, and low upgrade efficiency. That is to say, the communication device provided by the embodiment of the present invention maintains the normal operation of the second main control board when the first main control board is upgraded, and maintains the successful upgrade of the second main control board when the second main control board is upgraded.
  • the service interruption time during the upgrade process only depends on the startup time of the line card, not the startup time of the main control board, the time when the main control board loads the service configuration, and the line card startup time. It can be seen that the whole The service interruption time is significantly shortened, and the communication equipment upgrade efficiency is greatly improved; therefore, the communication equipment upgrade process provided by the embodiment of the present invention is simple to operate. During the entire main control board and software upgrade process, only a new main control board needs to be inserted. Yes, the smooth upgrade of the business has been realized.
  • the embodiments of the present invention also provide a computer-readable storage medium.
  • the computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the above-mentioned embodiments. Steps from one to three of the upgrade method.
  • the computer-readable storage medium includes volatile or nonvolatile, removable or Non-removable media.
  • Computer-readable storage media include but are not limited to RAM (Random Access Memory), ROM (Read-Only Memory, read-only memory), EEPROM (Electrically Erasable Programmable read only memory, charged Erasable Programmable Read-Only Memory) ), flash memory or other memory technology, CD-ROM (Compact Disc Read-Only Memory), digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, Or any other medium that can be used to store desired information and that can be accessed by a computer.
  • the functional modules/units in the system, and the device can be implemented as software (which can be implemented by the program code executable by the computing device) , Firmware, hardware and their appropriate combination.
  • the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may consist of several physical components. The components are executed cooperatively.
  • Some physical components or all physical components can be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit .
  • the computer-readable medium may include computer storage. Medium (or non-transitory medium) and communication medium (or temporary medium).
  • medium or non-transitory medium
  • communication medium or temporary medium
  • the term computer storage medium includes volatile and non-volatile data implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Sexual, removable and non-removable media.
  • communication media usually contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as carrier waves or other transmission mechanisms, and may include any information delivery media. . Therefore, the present invention is not limited to any specific combination of hardware and software.
  • the normal operation of the second main control board is maintained, and the first main control board is upgraded.
  • Upgrade the second main control board solve the problem of complicated operation of communication equipment upgrade in related technologies, long service interruption time in the upgrade process, and low upgrade efficiency. That is, the upgrade method, communication device, and computer-readable storage medium provided by the embodiments of the present invention maintain the normal operation of the second main control board when the first main control board is upgraded, and the service interruption time is short during the upgrade process And the upgrade process is simple to operate, no need to pay attention to the status of the equipment all the time, and smooth upgrade of the business is realized.

Abstract

Provided in the embodiments of the present invention are an upgrading method, a communication device and a computer-readable storage medium. By means of maintaining normal running of a second main control board, upgrading is performed on a first main control board, and alternatively, after the first main control board is successfully upgraded, upgrading is performed on a second main control board. Accordingly, the problems of complex device upgrading operations in the related art, and long service interruption time and low upgrading efficiency in an upgrading process are solved. That is, according to the upgrading method, communication device and computer-readable storage medium provided in the embodiments of the present invention, the service interruption time in an upgrading process is short, such that the upgrading efficiency is greatly improved, and the upgrading process is simple in operation without constantly paying attention to the state of a device, and the smooth upgrading of a service is realized.

Description

一种升级方法、通信设备以及计算机可读存储介质Upgrade method, communication equipment and computer readable storage medium 技术领域Technical field
本发明涉及通信技术领域,更具体地说,涉及一种升级方法、通信设备以及计算机可读存储介质。The present invention relates to the field of communication technology, and more specifically, to an upgrade method, a communication device, and a computer-readable storage medium.
背景技术Background technique
在通信领域中,伴随着通信技术不断发展,从3G到4G,再到5G技术,通信设备的软件和硬件也在不断地进行更新和升级换代。同时,在相同的技术背景下,如4G时代,设备的软、硬件也是在不断地升级和更新。在相同的技术时期,设备的升级可能主要是软件的升级,而软件升级当前从对业务影响来分类则主要有两种方式:中断业务升级和不中断业务升级。其中中断业务升级主要是在升级前后的两个版本出现了无法解决的不兼容情况,而不中断业务升级在保证软件前后兼容的情况下,通过保护倒换或者CPU软复位的方式来实现。但如果处理不同的技术时代,如从4G版本升级到5G版本则除了软件可能出现不兼容外,设备硬件也会出现不兼容的情况,如5G时代为了保证更高的下载速度和更低的时延,需要支持高精度时钟功能,这样必然导致硬件需要更新。In the communication field, with the continuous development of communication technology, from 3G to 4G, and then to 5G technology, the software and hardware of communication equipment are constantly being updated and upgraded. At the same time, under the same technological background, such as the 4G era, the software and hardware of the equipment are constantly being upgraded and updated. In the same technological period, equipment upgrades may be mainly software upgrades, and software upgrades are currently classified in terms of their impact on services in two ways: interrupted service upgrades and uninterrupted service upgrades. The interrupted service upgrade is mainly because the two versions before and after the upgrade have incompatibility that cannot be solved. The uninterrupted service upgrade is realized by protection switching or CPU soft reset while ensuring the compatibility of the software before and after. However, if you deal with different technological eras, such as upgrading from 4G version to 5G version, in addition to software incompatibility, device hardware may also appear incompatible. For example, in the 5G era, in order to ensure higher download speeds and lower time Delay, need to support high-precision clock function, this will inevitably lead to the need to update the hardware.
而另一方面,在现网升级时,运营商总是希望成本最小,可以利用之前的设备版本,做到平滑升级。因此,在设备从支持4G功能升级到支持5G功能时,运营商希望能够只更新设备的部分单板,实现即支持4G业务又支持5G业务,从而最大程度的节约成本。那么,在设备单板软、硬件均不兼容时,如何实现快速的设备升级是各个设备厂商都必须面临的一个关键技术问题。通常的升级方法是将原来设备的业务配置文件导入到新主控板上,然后使用新主控板替换旧主控板,然后再整机重启实现升级。这种方式操作复杂,其中业务中断时间包括新主控板启动时间、新主控板恢复业务配置时间、线卡启动时间等,当业务配置文件较多时,新主控板恢复业务时间变长,整个升级过程业务中断时间则会更长。On the other hand, when upgrading an existing network, operators always hope that the cost is minimal, and the previous device version can be used to achieve a smooth upgrade. Therefore, when the equipment is upgraded from supporting 4G functions to supporting 5G functions, operators hope to update only part of the equipment's single boards to realize both 4G services and 5G services, thereby saving costs to the greatest extent. Then, when the software and hardware of the equipment board are incompatible, how to achieve rapid equipment upgrade is a key technical problem that all equipment manufacturers must face. The usual upgrade method is to import the service configuration file of the original device to the new main control board, then replace the old main control board with the new main control board, and then restart the whole machine to achieve the upgrade. This method is complicated to operate. The service interruption time includes the start-up time of the new main control board, the new main control board resume service configuration time, the line card start time, etc. When there are many service configuration files, the new main control board resumes business time longer. The entire upgrade process will have a longer business interruption.
可见,相关技术中通信设备升级的操作复杂,且升级过程的业务中断时间较长、升级效率较低。It can be seen that the operation of upgrading communication equipment in the related technology is complicated, and the service interruption time of the upgrading process is relatively long, and the upgrading efficiency is low.
发明内容Summary of the invention
本发明实施例提供的升级方法、通信设备以及计算机可读存储介质,主要解决的技术问题是相关技术中通信设备升级的操作复杂,且升级过程的业务中断时间较长、升级效率较低。The upgrading method, the communication device and the computer-readable storage medium provided by the embodiments of the present invention mainly solve the technical problem that the operation of upgrading the communication device in the related technology is complicated, and the service interruption time of the upgrade process is long and the upgrade efficiency is low.
为解决上述技术问题,本发明实施例提供了一种升级方法,应用于包括第一主控板和第二主控板的通信设备,包括:In order to solve the above technical problems, an embodiment of the present invention provides an upgrade method, which is applied to a communication device including a first main control board and a second main control board, including:
保持所述第二主控板的正常运行,对所述第一主控板进行升级;Maintaining the normal operation of the second main control board, and upgrading the first main control board;
在所述第一主控板升级成功后,对所述第二主控板进行升级。After the first main control board is successfully upgraded, the second main control board is upgraded.
本发明实施例还提供了一种通信设备,所述通信设备包括处理器、存储器及通信总线;The embodiment of the present invention also provides a communication device, the communication device including a processor, a memory, and a communication bus;
所述通信总线设置为实现处理器和存储器之间的连接通信;The communication bus is configured to realize connection and communication between the processor and the memory;
所述处理器设置为执行存储器中存储的一个或者多个计算机程序,以实现如上所述的升级方法的步骤。The processor is configured to execute one or more computer programs stored in the memory to implement the steps of the upgrade method described above.
本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质存储有一个或者多个程序,一个或者多个程序可被一个或者多个处理器执行,以实现如上所述的升级方法的步骤。The embodiment of the present invention also provides a computer-readable storage medium, and the computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the upgrade method as described above. A step of.
本发明的有益效果是:The beneficial effects of the present invention are:
本发明实施例提供的升级方法、通信设备以及计算机可读存储介质,通过采用第一主控板和第二主控板进行集中式管理,保持第二主控板的正常运行,对第一主控板进行升级,可选地,在第一主控板升级成功后,对第二主控板进行升级;解决了相关技术中通信设备升级的操作复杂,且升级过程的业务中断时间较长、升级效率较低的问题。也即本发明实施例提供的升级方法、通信设备以及计算机可读存储介质,在对第一主控板进行升级时,保持了第二主控板的正常运行,该升级过程中业务中断时间短,且该升级过程操作简单,无需时刻关注设备状态,实现了业务的平滑升级。The upgrade method, communication equipment, and computer-readable storage medium provided by the embodiments of the present invention use the first main control board and the second main control board to perform centralized management, maintain the normal operation of the second main control board, and provide the first main control board to the first main control board. The control board is upgraded. Optionally, after the first main control board is successfully upgraded, the second main control board is upgraded; it solves the complicated operation of the communication equipment upgrade in the related technology, and the business interruption time of the upgrade process is longer, The problem of low upgrade efficiency. That is, the upgrade method, communication device, and computer-readable storage medium provided by the embodiments of the present invention maintain the normal operation of the second main control board when the first main control board is upgraded, and the service interruption time is short during the upgrade process And the upgrade process is simple to operate, no need to pay attention to the status of the equipment all the time, and smooth upgrade of the business is realized.
本发明其他特征和相应的有益效果在说明书的后面部分进行阐述说明,且应当理解,至少部分有益效果从本发明说明书中的记载变的显而易见。Other features and corresponding beneficial effects of the present invention are described in the latter part of the specification, and it should be understood that at least part of the beneficial effects will become apparent from the description in the specification of the present invention.
附图说明Description of the drawings
下面将结合附图及实施例对本发明作进一步说明,附图中:The present invention will be further described below in conjunction with the accompanying drawings and embodiments. In the accompanying drawings:
图1为本发明实施例一提供的一种升级方法的基本流程示意图;FIG. 1 is a schematic diagram of the basic flow of an upgrade method provided by Embodiment 1 of the present invention;
图2为本发明实施例一提供的一种用第一新主控板替换第一主控板之后的基本流程示意图;2 is a schematic diagram of a basic flow after replacing the first main control board with the first new main control board according to the first embodiment of the present invention;
图3为本发明实施例一提供的一种第二主控板进行复位作为备用主控板之后的基本流程示意图;3 is a schematic diagram of a basic flow after a second main control board resets as a standby main control board according to the first embodiment of the present invention;
图4为本发明实施例二提供的一种通信设备版本集中式管理的示意图;FIG. 4 is a schematic diagram of centralized management of communication device versions according to Embodiment 2 of the present invention;
图5为本发明实施例三提供的一种通信设备换板升级的版本文件变化的示意图;FIG. 5 is a schematic diagram of a version file change of a communication device board replacement upgrade provided in the third embodiment of the present invention;
图6为本发明实施例四提供的一种具体的升级方法的基本流程示意图;FIG. 6 is a schematic diagram of the basic flow of a specific upgrade method provided by Embodiment 4 of the present invention;
图7为本发明实施例五提供的一种通信设备的结构示意图。FIG. 7 is a schematic structural diagram of a communication device according to Embodiment 5 of the present invention.
具体实施方式detailed description
为了使本发明的目的、技术方案及优点更加清楚明白,下面通过具体实施方式结合附图对本发明实施例作进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the objectives, technical solutions, and advantages of the present invention clearer, the following further describes the embodiments of the present invention in detail through specific implementations in conjunction with the accompanying drawings. It should be understood that the specific embodiments described here are only used to explain the present invention, but not to limit the present invention.
实施例一:Example one:
为了解决相关技术中通信设备升级的操作复杂,且升级过程的业务中断时间较长、升级效率较低的问题,在本发明实施例中提供一种升级方法,通过采用第一主控板和第二主控板进行集中式管理,保持第二主控板的正常运行,对第一主控板进行升级,可选地,在第一主控板升级成功后,对第二主控板进行升级;请参见图1所示,如图1为本实施例提供的升级方法的基本流程示意图。In order to solve the problems of complicated operation of communication equipment upgrade in related technologies, long service interruption time in the upgrade process, and low upgrade efficiency, an upgrade method is provided in an embodiment of the present invention, by adopting a first main control board and a second main control board. The second main control board performs centralized management, maintains the normal operation of the second main control board, and upgrades the first main control board. Optionally, after the first main control board is successfully upgraded, the second main control board is upgraded ; Please refer to Figure 1, which is a schematic diagram of the basic flow of the upgrade method provided in this embodiment.
应当理解的是,本实施例中的通信设备采用两块主控板进行集中式管理,换句话说,主控板支持1+1保护,其中一块主控板作为正常工作时的主控板,又称之为主用主控板,另一块主控板作为异常工作时的保护主控板,又称之为备用主控板。It should be understood that the communication device in this embodiment adopts two main control boards for centralized management. In other words, the main control board supports 1+1 protection, and one of the main control boards serves as the main control board during normal operation. It is also called the master main control board, and the other main control board serves as the protection main control board during abnormal operation, and is also called the standby main control board.
S101:保持第二主控板的正常运行,对第一主控板进行升级。S101: Maintain the normal operation of the second main control board, and upgrade the first main control board.
可选地,本实施例中对第一主控板进行升级,包括:用第一新主控板替换第一主控板。Optionally, upgrading the first main control board in this embodiment includes: replacing the first main control board with the first new main control board.
应当理解的是,由于此时第二主控板正常运行,换句话说,此时的第二主控板保持与其他单板的正常板间通信,则第二主控板作为主用主控板,第一新主控板则作为备用主控板;其中,第一新主控板包括高制式版本文件,第一主控板包括低制式版本文件,例如第一新主控板包括5G版本文件,第一主控板包括4G版本文件。It should be understood that since the second main control board is operating normally at this time, in other words, the second main control board at this time maintains normal inter-board communication with other boards, the second main control board will act as the master master The first new main control board serves as a backup main control board; among them, the first new main control board includes high-standard version files, and the first main control board includes low-standard version files. For example, the first new main control board includes 5G version Files, the first main control board includes 4G version files.
可选地,本实施例中用第一新主控板替换第一主控板之后,还包括至少以下步骤,请参见图2所示:Optionally, after replacing the first main control board with the first new main control board in this embodiment, it further includes at least the following steps, as shown in Figure 2:
S201:第一新主控板从第二主控板下载换板升级标识文件与业务配置文件。S201: The first new main control board downloads the board replacement upgrade identification file and the service configuration file from the second main control board.
应当理解的是,第二主控板上的换板升级标识文件可由工作人员用第一新主控替换第一主控板时进行手动配置,该换板升级标识文件以用于第一新主控板根据该换板升级标识文件设置第一新主控板为主用主控板。It should be understood that the board replacement upgrade identification file on the second main control board can be manually configured by the staff when replacing the first main control board with the first new main control, and the replacement upgrade identification file is used for the first new main control board. The control board sets the first new main control board as the active main control board according to the board replacement upgrade identification file.
一些示例中,第一新主控板可仅从第二主控板下载业务配置文件,无需下载换板升级标识文件,由第二主控板根据其上的换板升级标识文件向第一新主控板下发设置其为主用主控板的标识或者命令即可。In some examples, the first new main control board can only download the service configuration file from the second main control board without downloading the replacement upgrade identification file. The second main control board sends the upgrade identification file to the first new one according to the replacement upgrade identification file on it. The main control board only needs to issue an identification or command to set it as the main control board.
一些示例中,业务配置文件包括集成在一起的通信设备网络属性配置文件。In some examples, the service configuration file includes an integrated communication device network attribute configuration file.
S202:关闭第一新主控板与其他单板的板间通信,设置第一新主控板为主用主控板。S202: Close the inter-board communication between the first new main control board and other single boards, and set the first new main control board as the active main control board.
应当理解的是,本实施例中的其他单板均指代的是通信设备上的第二主控板和线卡,即关闭第一新主控板与第二主控板和线卡之间的板间通信。It should be understood that the other boards in this embodiment all refer to the second main control board and line card on the communication device, that is, close the connection between the first new main control board and the second main control board and line card. Board-to-board communication.
S203:第一新主控板加载业务配置文件以恢复业务配置信息。S203: The first new main control board loads the service configuration file to restore the service configuration information.
可选地,在第一新主控板对业务配置文件进行加载以恢复业务配置信息。Optionally, the service configuration file is loaded on the first new main control board to restore the service configuration information.
一些示例中,在加载业务配置文件之前,还包括:对业务配置文件进行转换,以使得第一新主控板能够识别该配置文件。In some examples, before loading the service configuration file, it further includes: converting the service configuration file so that the first new main control board can recognize the configuration file.
S204:在第一新主控板恢复完所有业务配置信息后,第一新主控板通知第二主控板复位。S204: After the first new main control board has restored all service configuration information, the first new main control board notifies the second main control board to reset.
可选地,在第一新主控板加载完业务配置文件即恢复完所有业务配置信息之后,其通知第二主控板进行复位即重启,可选地,第一新主控板通过逻辑硬件连线的方式通知第二主控板进行复位。Optionally, after the first new main control board loads the service configuration file and restores all service configuration information, it notifies the second main control board to reset or restart. Optionally, the first new main control board uses logic hardware The connection method informs the second main control board to reset.
一些示例中,在第一新主控板加载完业务配置文件即恢复完所有业务配置信息之后,其通知第二主控板进行复位之后,还包括:在第一预设时间段内对第二主控板是否复位进行监测,当监测到第二主控板未进行复位时,再次下发通知消息,以告知第二主控板需进行复位;其中,在实际应用中,第一预设时间段可由开发人员根据实验或经验进行灵活设置,例如设置第一预设时间段为15分钟。In some examples, after the first new main control board loads the service configuration file and restores all service configuration information, after it notifies the second main control board to reset, it also includes: resetting the second main control board within the first preset time period. Monitor whether the main control board is reset. When it is detected that the second main control board is not reset, a notification message is issued again to inform the second main control board that the reset is required; among them, in practical applications, the first preset time The period can be flexibly set by the developer according to experiment or experience, for example, the first preset time period is set to 15 minutes.
S205:第二主控板进行复位作为备用主控板。S205: The second main control board is reset as the standby main control board.
可选地,第二主控板接收到复位通知后便进行复位,此时第二主控板作为备用主控板。Optionally, the second main control board resets after receiving the reset notification. At this time, the second main control board serves as a standby main control board.
可选地,本实施例中第二主控板进行复位作为备用主控板之后,还包括至少以下步骤,请参见图3所示:Optionally, after the second main control board is reset as the standby main control board in this embodiment, it also includes at least the following steps, as shown in Figure 3:
S301:第一新主控板通知所有线卡复位。S301: The first new main control board notifies all line cards to reset.
一些示例中,在第二主控板进行复位作为备用主控板后,可等待第二预设时间段,以保证第一新主控板机电或者硬件上可以管理上所有的线卡。其中,在实际应用中,第二预设时间段可由开发人员根据实验或经验进行灵活设置,例如设置第一预设时间段为30秒。In some examples, after the second main control board is reset as the standby main control board, it can wait for the second preset time period to ensure that the first new main control board can manage all the line cards mechanically or in hardware. Among them, in practical applications, the second preset time period can be flexibly set by the developer based on experiments or experience, for example, the first preset time period is set to 30 seconds.
S302:所有线卡进行复位。S302: All line cards are reset.
应当理解的是,所有线卡在接收到线卡复位通知时分别进行复位。It should be understood that all line cards are reset separately when receiving the line card reset notification.
可选地,本实施例中在所有线卡进行复位之后,还包括:开启第一主控板与其他单板的板间通信,以应答其他单板的版本请求。Optionally, in this embodiment, after all the line cards are reset, the method further includes: enabling the inter-board communication between the first main control board and other boards to respond to the version request of the other boards.
需要说明的是,对于其他的所有的线卡均可从第一新主控板请求到高制式版本文件后正常运行,及通信设备业务恢复正常;对于第二主控板可能因为第一新主控板上存储的高制式版本文件不支持而无法启动,即复位失败,此时可对第二主控板进行升级。其中,通信设备业务恢复指代的是通信设备上原有的业务,如果通信设备需要支持新的业务,如5G业务,则需要插入支持5G业务的新线卡;对于高低制式版本文件,通信设备原有的业务配置可能不兼容,为了保证兼容性,本实施例中可采用加载txt脚本方式恢复业务,如果txt脚本方式也不兼容,第一新主控板进行兼容性转换,将txt脚本转换成高制式版本文件能够识别的txt脚本。It should be noted that for all other line cards, the high-standard version file can be requested from the first new main control board to operate normally, and the communication equipment business returns to normal; for the second main control board, it may be because of the first new main control board. The high-standard version file stored on the control board is not supported and cannot be started, that is, the reset fails. At this time, the second main control board can be upgraded. Among them, the service recovery of communication equipment refers to the original service on the communication equipment. If the communication equipment needs to support new services, such as 5G services, it needs to insert a new line card that supports 5G services; for high and low standard version files, the original communication equipment Some service configurations may be incompatible. To ensure compatibility, in this embodiment, the service can be restored by loading the txt script. If the txt script is not compatible, the first new main control board performs compatibility conversion and converts the txt script into A txt script that can be recognized by high-standard version files.
S102:在第一主控板升级成功后,对第二主控板进行升级。S102: After the first main control board is successfully upgraded, upgrade the second main control board.
可选地,本实施例中对第二主控板进行升级,包括:用第二新主控板替换所述第二主控板。Optionally, upgrading the second main control board in this embodiment includes: replacing the second main control board with a second new main control board.
应当理解的是,由于此时第一新主控板正常运行,则第一新主控板作为主用主控板,替换后的第二新主控板作为备用主控板;其中,第二新主控板包括高制式版本文件,第二主控板包括低制式版本文件,例如第二新主控板包括5G版本文件,第二主控板包括4G版本文件。It should be understood that, since the first new main control board is operating normally at this time, the first new main control board is used as the main main control board, and the second new main control board after replacement is used as the standby main control board; The new main control board includes high-standard version files, and the second main control board includes low-standard version files. For example, the second new main control board includes 5G version files, and the second main control board includes 4G version files.
可选地,本实施例中的线卡携带存储介质或不携带存储介质,其中当线卡携带存储介质时,存储介质中可存储有版本文件或可不存储版本文件;当存储介质中存储有版本文件时,包括至少以下三种方式:Optionally, the line card in this embodiment carries a storage medium or does not carry a storage medium. When the line card carries the storage medium, the storage medium may or may not store the version file; when the storage medium stores the version file When filing, include at least the following three methods:
方式一:以第一新主控板的版本文件为准,下载并运行第一新主控板的版本文件。Method 1: Download and run the version file of the first new main control board based on the version file of the first new main control board.
方式二:以线卡存储介质中存储的版本文件为准,运行版本文件。Method 2: Run the version file based on the version file stored in the storage medium of the line card.
方式三:比较第一新主控板的版本文件与线卡存储介质中的版本文件,当第一新主控板的版本文件为最新版本时,下载并运行第一新主控板的版本文件,当线卡存储介质中的版本文件为最新版本时,运行版本文件。Method 3: Compare the version file of the first new main control board with the version file in the line card storage medium. When the version file of the first new main control board is the latest version, download and run the version file of the first new main control board , When the version file in the line card storage medium is the latest version, run the version file.
值得注意的是,上述所列举的只是三种常见方式,在实际应用中,可根据具体应用场景做灵活调整。It is worth noting that the above-listed are only three common methods, which can be flexibly adjusted according to specific application scenarios in actual applications.
本发明实施例提供的升级方法,通过采用第一主控板和第二主控板进行集中式管理,保持第二主控板的正常运行,对第一主控板进行升级,可选地,在第一主控板升级成功后,对第二主控板进行升级;解决了相关技术中通信设备升级的操作复杂,且升级过程的业务中断时间较长、升级效率较低的问题。也即本发明实施例提供的升级方法,在对第一主控板进行升级时,保持了第二主控板的正常运行,在对第二主控板进行升级时,保持了升级成功的第一主控板的正常运行,该升级过程业务中断的时间仅取决于线卡的启动时间,而并非取决于主控板启动时间、主控板加载业务配置时间、线卡启动时间,可见,整个业务中断时间明显缩短,大大提高了通信设备升级效率。The upgrade method provided by the embodiment of the present invention uses the first main control board and the second main control board for centralized management, maintains the normal operation of the second main control board, and upgrades the first main control board. Optionally, After the upgrade of the first main control board is successful, the second main control board is upgraded; it solves the problems of complicated operation of the communication device upgrade in related technologies, long service interruption time in the upgrade process, and low upgrade efficiency. That is to say, the upgrade method provided by the embodiment of the present invention maintains the normal operation of the second main control board when the first main control board is upgraded, and maintains the first successful upgrade when the second main control board is upgraded. For the normal operation of a main control board, the service interruption time during the upgrade process only depends on the start-up time of the line card, not the start-up time of the main control board, the time when the main control board loads the service configuration, and the line card start-up time. It can be seen that the whole The service interruption time is significantly shortened, which greatly improves the efficiency of communication equipment upgrades.
实施例二:Embodiment two:
本发明实施例在实施例一的基础上,提供一种通信设备的版本文件即软件的集中式管理 方式,请参见图4所示:On the basis of the first embodiment, the embodiment of the present invention provides a centralized management mode of the version file of the communication device, that is, the software, as shown in Figure 4:
首先,需要说明的是,本实施例中主用主控板记为MSC,备用主控板记为SSC,线卡记为NSC。First, it should be noted that in this embodiment, the active main control board is recorded as MSC, the standby main control board is recorded as SSC, and the line card is recorded as NSC.
可选地,通信设备具有两块主控板和多块线卡,主控板硬件上是1+1保护,即主用主控板MSC和备用主控板SSC,其中主用主控板MSC和备用主控板SSC均带有存储介质,如SSD卡;线卡NSC可不带有存储介质,也可带有存储介质,如f l ash。所有单板启动时都会向主用主控板MSC请求版本文件,然后运行下载到的版本文件。举例如下:Optionally, the communication device has two main control boards and multiple line cards. The hardware of the main control board is 1+1 protection, that is, the main main control board MSC and the standby main control board SSC, where the main main control board MSC Both the SSC and the standby main control board have storage media, such as SSD cards; the line card NSC may have no storage media, or storage media, such as fash. When all boards are started, they will request the version file from the main control board MSC, and then run the downloaded version file. Examples are as follows:
如果线卡NSC不带存储介质,假如主用主控板MSC上存储该线卡NSC对应的版本文件为BaseVer21.bin,则线卡NSCboot启动后直接从主用主控板MSC下载该文件到内存中,然后再运行;If the line card NSC does not have a storage medium, if the version file corresponding to the line card NSC stored on the main main control board MSC is BaseVer21.bin, then the line card NSCboot will directly download the file from the main main control board MSC to the memory In, and then run;
如果线卡NSC带有存储介质,但存储介质中没有保存版本信息,则启动流程与不带存储介质的单板相同;如果存储介质中有保存版本文件,如版本文件的版本是BaseVer31.bi n。则可以根据不同的使用策略来确定运行的版本,如以主用主控板MSC版本为准,则优先下载主用主控板MSC版本;如以线卡NSC版本为准,则优先运行线卡NSC本身保存的版本;也可以比较版本号,以版本号新的版本为准。对于集中式版本管理方式,本实施例中可采用以主用主控板MSC版本为准的策略,以方便用户管理通信设备版本信息。If the line card NSC has a storage medium, but the storage medium does not save the version information, the startup process is the same as that of the board without the storage medium; if there is a saved version file in the storage medium, for example, the version of the version file is BaseVer31.bi n . The running version can be determined according to different usage strategies. For example, the MSC version of the main main control board shall prevail, and the MSC version of the main main control board shall be downloaded first; if the NSC version of the line card shall prevail, the line card shall be run first The version saved by the NSC itself; the version number can also be compared, and the new version of the version number shall prevail. For the centralized version management mode, in this embodiment, a strategy based on the version of the main control board MSC may be adopted to facilitate the user to manage the version information of the communication device.
实施例三:Example three:
本发明实施例在实施例一、二的基础上,以一种较为具体的升级过程为例进行说明。On the basis of the first and second embodiments, the embodiment of the present invention takes a relatively specific upgrade process as an example for description.
如前文所述,当有新的业务需求时,主控板硬件升级的同时通信设备软件也需要进行升级,而通信设备软件升级可以使用主控板上存储的版本来完成,请参见图5所示:As mentioned earlier, when there are new business requirements, the hardware of the main control board needs to be upgraded at the same time that the communication device software also needs to be upgraded. The software upgrade of the communication device can be completed using the version stored on the main control board, as shown in Figure 5. Show:
步骤一:在通信设备的备用主控槽上插入新主控板,原主用主控板上运行的是版本V2.0,新主控板上运行的是版本V5.0;Step 1: Insert the new main control board into the spare main control slot of the communication device. The original main control board is running version V2.0, and the new main control board is running version V5.0;
应当理解的是,此时插入的新主控板作为备用主控板,原主用主控板仍作为主用主控板。It should be understood that the new main control board inserted at this time is used as the backup main control board, and the original main control board is still used as the main main control board.
步骤二:新主控板启动后立即切断与原主用主控板、线卡的板间通信,按主用主控板进行启动。Step 2: After the new main control board is started, immediately cut off the inter-board communication with the original main control board and line card, and press the main main control board to start.
应当理解的是,此时的新主控板作为主用主控板。It should be understood that the new main control board at this time serves as the main main control board.
步骤三:新主控板启动到业务配置恢复完成后,通知原主用主控板复位,再过一段时间通知所有线卡复位;原主用主控板如果在V5.0版本不支持,则一直无法启动,所有线卡支持,重新从新主控板请求V5.0版本,运行新的V5.0版本。Step 3: After the new main control board is started and the service configuration is restored, the original main control board is notified to reset, and then all line cards are notified to reset after a period of time; if the original main control board is not supported by V5.0, it will not be able to Start, all line cards support, request V5.0 version from the new main control board again, and run the new V5.0 version.
应当理解的是,此时的新主控板作为主用主控板,原主用主控板复位后作为备用主控板。It should be understood that the new main control board at this time is used as the main main control board, and the original main control board is reset as the standby main control board.
至此,主用主控板和线卡都运行新的V5.0版本,完成通信设备软件的升级和主主主控板的硬件升级;原主用主控板基本可以明确不能满足新的业务需求,因此,也会被拔掉换成新主控板,另外,线卡也可能需要进行单板替换,来支持新的业务需求。At this point, both the main main control board and line card are running the new V5.0 version to complete the communication equipment software upgrade and the hardware upgrade of the main main control board; the original main main control board can basically make it clear that it cannot meet the new business needs. Therefore, it will also be unplugged and replaced with a new main control board. In addition, the line card may also need to be replaced with a single board to support new business requirements.
实施例四:Embodiment four:
本发明实施例在实施例一至三的基础上,以另一种较为具体的升级过程为例进行说明。On the basis of the first to third embodiments, the embodiment of the present invention takes another more specific upgrade process as an example for description.
如前文所述,对于通信设备需要支持新的技术,如4G升级到5G,或者5G升级到6G,主控板和线卡都可能需要升级到新的硬件,而线卡为了支持传统的业务,可能需要保留部分原 来的老单板,请参见图6所示:As mentioned earlier, for communication equipment that needs to support new technologies, such as 4G to 5G or 5G to 6G, both the main control board and the line card may need to be upgraded to new hardware. In order to support traditional services, the line card It may be necessary to retain some of the original old boards, as shown in Figure 6:
S601:在通信设备的备用主控槽位插入新主控板,主控板boot引导本板操作系统开始启动。S601: Insert a new main control board into the standby main control slot of the communication device, and the main control board boot guides the operating system of the board to start.
例如,设通信设备的主控板包括在备用主控槽位的第一主控板A1,在主用主控槽位的第二主控板A2,此时用第一新主控板B1替换第一主控板A1,第一主控板A1boot引导本板操作系统开始启动。For example, suppose that the main control board of the communication device includes the first main control board A1 in the standby main control slot, and the second main control board A2 in the main main control slot. At this time, replace it with the first new main control board B1 The first main control board A1, the first main control board A1boot guide the operating system of the board to start.
S602:新主控板从原主控板请求换板升级标识文件和业务配置文件。S602: The new main control board requests a board replacement to upgrade the identification file and the service configuration file from the original main control board.
承接上例,可选地,设工作人员在用第一新主控板B1替换第一主控板A1时在第二主控板A2上配置了换板升级标识文件,其中一个特定的目录和文件:/sysdisk0/sscupgrade/upgradecfg.ini文件;同时,第一新主控板B1从第二主控板A2下载业务配置文件startrun.dat。Continuing the above example, optionally, suppose that when the staff replaces the first main control board A1 with the first new main control board B1, the second main control board A2 is configured with a board replacement upgrade identification file, including a specific directory and File: /sysdisk0/sscupgrade/upgradecfg.ini file; at the same time, the first new main control board B1 downloads the business configuration file startrun.dat from the second main control board A2.
S603:当新主控板下载换板升级标识文件和业务配置文件失败时,其作为备用主控板启动,执行S602。S603: When the new main control board fails to download the replacement upgrade identification file and the service configuration file, it starts as the standby main control board, and executes S602.
应当理解的是,由于与原主控板版本文件不一致,单板重启,重启后将从原主控板请求版本文件,但由于原主控板并不支持新主控板,新主控板启动失败,则需继续重启。It should be understood that due to the inconsistency with the version file of the original main control board, the board is restarted. After the restart, the version file will be requested from the original main control board, but since the original main control board does not support the new main control board, the new main control board starts If it fails, you need to continue to restart.
承接上例,可选地,当第一新主控板B1从第二主控板A2下载换板升级标识文件和业务配置文件失败时,重复执行S602。Continuing the above example, optionally, when the first new main control board B1 fails to download the board replacement upgrade identification file and the service configuration file from the second main control board A2, repeat S602.
S604:当新主控板下载换板升级标识文件和业务配置文件成功时,其作为主用主控板启动,关闭本板与其他单板的板间通信。S604: When the new main control board successfully downloads the replacement upgrade identification file and the service configuration file, it starts up as the main main control board, and closes the inter-board communication between the board and other boards.
承接上例,可选地,当第一新主控板B1从第二主控板A2下载换板升级标识文件和业务配置文件成功时,关闭第一新主控板B1与通信设备的第二主控板A2及其他线卡的板间通信。Continuing the above example, optionally, when the first new main control board B1 successfully downloads the replacement upgrade identification file and the service configuration file from the second main control board A2, shut down the first new main control board B1 and the second communication device Inter-board communication between the main control board A2 and other line cards.
S605:新主控板将下载的业务配置文件转换成本板能够识别的业务配置文件,然后软件启动时加载业务配置文件。S605: The new main control board converts the downloaded service configuration file into a service configuration file that the board can recognize, and then loads the service configuration file when the software starts.
承接上例,可选地,第一新主控板B1将下载的startrun.dat文件转换成本板能够识别的业务配置文件,然后软件启动时加载业务配置文件startrun.dat。Continuing the above example, optionally, the first new main control board B1 converts the downloaded startrun.dat file into a business configuration file that can be recognized by the board, and then loads the business configuration file startrun.dat when the software starts.
S606:新主控板业务配置文件加载完成后,通知原主控板复位。S606: After loading the service configuration file of the new main control board, notify the original main control board to reset.
承接上例,可选地,第一新主控板B1业务配置文件加载完成后,通过逻辑硬件连线的方式通知第二主控板A2复位。Continuing the above example, optionally, after the service configuration file of the first new main control board B1 is loaded, the second main control board A2 is notified to reset by way of logical hardware connection.
可选地,在第一预设时间段内对第二主控板A2是否复位进行监测,当监测到第二主控板A2未进行复位时,再次下发通知消息,以告知第二主控板A2需进行复位,其中,第一预设时间段可取15分钟。Optionally, monitor whether the second main control board A2 is reset within the first preset time period, and when it is detected that the second main control board A2 has not been reset, a notification message is issued again to inform the second main control The board A2 needs to be reset, and the first preset time period can be 15 minutes.
S607:原主控板复位后,新主控板机电或者硬件上管理上所有的线卡,通知所有的线卡复位。S607: After the original main control board is reset, all the line cards on the electromechanical or hardware management of the new main control board are notified to reset all the line cards.
承接上例,可选地,第一新主控板B1机电或者硬件上管理上所有的线卡,通知所有的线卡复位。Continuing the above example, optionally, all the line cards on the electromechanical or hardware management of the first new main control board B1 are notified to reset all the line cards.
可选地,在第二主控板A2复位后可等待第二预设时间段,以保证第一新主控板B1机电或者硬件上可以管理上所有的线卡,其中,第二预设时间段可取15秒。Optionally, after the second main control board A2 is reset, it can wait for a second preset time period to ensure that the first new main control board B1 can manage all the line cards mechanically or in hardware, where the second preset time The segment can take 15 seconds.
S608:新主控板打开本板与其他单板的板间通信,应答其他单板的版本请求,所有能够请求到版本文件的单板都会运行新的版本。S608: The new main control board opens the board-to-board communication between this board and other boards, and responds to the version requests of other boards. All boards that can request the version file will run the new version.
应当理解的是,为了保证通信设备的平滑升级,新主控板包含的高制式版本文件一般情况下会包含所有原线卡需要的新的软件版本文件。It should be understood that, in order to ensure the smooth upgrade of communication equipment, the high-standard version files contained in the new main control board will generally contain all the new software version files required by the original line card.
承接上例,可选地,第一新主控板B1打开其与第二主控板A2以及所有线卡的板间通信,所有线卡运行第一新主控板B1上的高制式版本文件。Continuing the above example, optionally, the first new main control board B1 opens its inter-board communication with the second main control board A2 and all line cards, and all line cards run the high-standard version files on the first new main control board B1 .
S609:在通信设备的主用主控槽位插入另一新主控板。S609: Insert another new main control board into the main main control slot of the communication device.
承接上例,可选地,用第二新主控板B2替换第二主控板A2。Continuing the above example, optionally, replace the second main control board A2 with the second new main control board B2.
至此,完成了通信设备上所有单板的软、硬件升级,升级过程中原有业务中断的时间取决于线卡启动的时间,如果需要支持新的业务,则需进行重新配置。So far, the software and hardware upgrades of all the boards on the communication equipment have been completed. The original service interruption time during the upgrade process depends on the time when the line card is started. If new services need to be supported, reconfiguration is required.
实施例五:Embodiment five:
为了解决相关技术中通信设备升级的操作复杂,且升级过程的业务中断时间较长、升级效率较低的问题,在本发明实施例中提供一种通信设备,请参见图7所示,本实施例提供的通信设备包括处理器701、存储器702及通信总线703。In order to solve the problems of complicated operation of the communication device upgrade in the related art, and the business interruption time of the upgrade process is long, and the upgrade efficiency is low, a communication device is provided in an embodiment of the present invention. Please refer to FIG. 7 as shown in this embodiment. The communication device provided in the example includes a processor 701, a memory 702, and a communication bus 703.
其中,本实施例中的通信总线703设置为实现处理器701与存储器702之间的连接通信,处理器701则设置为执行存储器702中存储的一个或者多个程序,以实现以下步骤:Wherein, the communication bus 703 in this embodiment is set to realize the connection and communication between the processor 701 and the memory 702, and the processor 701 is set to execute one or more programs stored in the memory 702 to implement the following steps:
保持第二主控板的正常运行,对第一主控板进行升级;Maintain the normal operation of the second main control board and upgrade the first main control board;
在第一主控板升级成功后,对第二主控板进行升级。After the first main control board is successfully upgraded, the second main control board is upgraded.
应当理解的是,本实施例中的通信设备采用两块主控板进行集中式管理,换句话说,主控板支持1+1保护,其中一块主控板作为正常工作时的主控板,又称之为主用主控板,另一块主控板作为异常工作时的保护主控板,又称之为备用主控板。It should be understood that the communication device in this embodiment adopts two main control boards for centralized management. In other words, the main control board supports 1+1 protection, and one of the main control boards serves as the main control board during normal operation. It is also called the master main control board, and the other main control board serves as the protection main control board during abnormal operation, and is also called the standby main control board.
可选地,本实施例中对第一主控板进行升级,包括:用第一新主控板替换第一主控板。Optionally, upgrading the first main control board in this embodiment includes: replacing the first main control board with the first new main control board.
应当理解的是,由于此时第二主控板正常运行,换句话说,此时的第二主控板保持与其他单板的正常板间通信,则第二主控板作为主用主控板,第一新主控板则作为备用主控板;其中,第一新主控板包括高制式版本文件,第一主控板包括低制式版本文件,例如第一新主控板包括5G版本文件,第一主控板包括4G版本文件。It should be understood that since the second main control board is operating normally at this time, in other words, the second main control board at this time maintains normal inter-board communication with other boards, the second main control board will act as the master master The first new main control board serves as a backup main control board; among them, the first new main control board includes high-standard version files, and the first main control board includes low-standard version files. For example, the first new main control board includes 5G version Files, the first main control board includes 4G version files.
可选地,本实施例中用第一新主控板替换第一主控板之后,还包括至少以下步骤:Optionally, after replacing the first main control board with the first new main control board in this embodiment, the method further includes at least the following steps:
第一新主控板从第二主控板下载换板升级标识文件与业务配置文件;The first new main control board downloads the board replacement upgrade identification file and the service configuration file from the second main control board;
关闭第一新主控板与其他单板的板间通信,设置第一新主控板为主用主控板;Close the inter-board communication between the first new main control board and other boards, and set the first new main control board as the master main control board;
第一新主控板加载业务配置文件以恢复业务配置信息;The first new main control board loads the service configuration file to restore the service configuration information;
在第一新主控板恢复完所有业务配置信息后,第一新主控板通知第二主控板复位;After the first new main control board has restored all service configuration information, the first new main control board notifies the second main control board to reset;
第二主控板进行复位作为备用主控板。The second main control board is reset as the standby main control board.
应当理解的是,第二主控板上的换板升级标识文件可由工作人员用第一新主控替换第一主控板时进行手动配置,该换板升级标识文件以用于第一新主控板根据该换板升级标识文件设置第一新主控板为主用主控板。It should be understood that the board replacement upgrade identification file on the second main control board can be manually configured by the staff when replacing the first main control board with the first new main control. The replacement upgrade identification file is used for the first new main control board. The control board sets the first new main control board as the active main control board according to the board replacement upgrade identification file.
一些示例中,第一新主控板可仅从第二主控板下载业务配置文件,无需下载换板升级标识文件,由第二主控板根据其上的换板升级标识文件向第一新主控板下发设置其为主用主控板的标识或者命令即可。In some examples, the first new main control board can only download the service configuration file from the second main control board without downloading the replacement upgrade identification file. The second main control board sends the upgrade identification file to the first new one according to the replacement upgrade identification file. The main control board only needs to issue an identification or command to set it as the main control board.
一些示例中,业务配置文件包括集成在一起的通信设备网络属性配置文件。In some examples, the service configuration file includes an integrated communication device network attribute configuration file.
应当理解的是,本实施例中的其他单板均指代的是通信设备上的第二主控板和线卡,即 关闭第一新主控板与第二主控板和线卡之间的板间通信。It should be understood that the other boards in this embodiment all refer to the second main control board and line card on the communication device, that is, close the connection between the first new main control board and the second main control board and line card. Board-to-board communication.
可选地,在第一新主控板对业务配置文件进行加载以恢复业务配置信息。Optionally, the service configuration file is loaded on the first new main control board to restore the service configuration information.
一些示例中,在加载业务配置文件之前,还包括:对业务配置文件进行转换,以使得第一新主控板能够识别该配置文件。In some examples, before loading the service configuration file, it further includes: converting the service configuration file so that the first new main control board can recognize the configuration file.
可选地,在第一新主控板加载完业务配置文件即恢复完所有业务配置信息之后,其通知第二主控板进行复位即重启,可选地,第一新主控板通过逻辑硬件连线的方式通知第二主控板进行复位。Optionally, after the first new main control board loads the service configuration file and restores all service configuration information, it notifies the second main control board to reset or restart. Optionally, the first new main control board uses logic hardware The connection method informs the second main control board to reset.
一些示例中,在第一新主控板加载完业务配置文件即恢复完所有业务配置信息之后,其通知第二主控板进行复位之后,还包括:在第一预设时间段内对第二主控板是否复位进行监测,当监测到第二主控板未进行复位时,再次下发通知消息,以告知第二主控板需进行复位;其中,在实际应用中,第一预设时间段可由开发人员根据实验或经验进行灵活设置,例如设置第一预设时间段为15分钟。In some examples, after the first new main control board loads the service configuration file and restores all service configuration information, after it notifies the second main control board to reset, it also includes: resetting the second main control board within the first preset time period. Monitor whether the main control board is reset. When it is detected that the second main control board is not reset, a notification message is issued again to inform the second main control board that the reset is required; among them, in practical applications, the first preset time The period can be flexibly set by the developer according to experiment or experience, for example, the first preset time period is set to 15 minutes.
可选地,第二主控板接收到复位通知后便进行复位,此时第二主控板作为备用主控板。Optionally, the second main control board resets after receiving the reset notification. At this time, the second main control board serves as a standby main control board.
可选地,本实施例中第二主控板进行复位作为备用主控板之后,还包括至少以下步骤:Optionally, after the second main control board is reset as the standby main control board in this embodiment, it further includes at least the following steps:
第一新主控板通知所有线卡复位;The first new main control board notifies all line cards to reset;
所有线卡进行复位。All line cards are reset.
一些示例中,在第二主控板进行复位作为备用主控板后,可等待第二预设时间段,以保证第一新主控板机电或者硬件上可以管理上所有的线卡。其中,在实际应用中,第二预设时间段可由开发人员根据实验或经验进行灵活设置,例如设置第一预设时间段为30秒。In some examples, after the second main control board is reset as the standby main control board, it can wait for the second preset time period to ensure that the first new main control board can manage all the line cards mechanically or in hardware. Among them, in practical applications, the second preset time period can be flexibly set by the developer based on experiments or experience, for example, the first preset time period is set to 30 seconds.
应当理解的是,所有线卡在接收到线卡复位通知时分别进行复位。It should be understood that all line cards are reset separately when receiving the line card reset notification.
可选地,本实施例中在所有线卡进行复位之后,还包括:开启第一主控板与其他单板的板间通信,以应答其他单板的版本请求。Optionally, in this embodiment, after all the line cards are reset, the method further includes: enabling the inter-board communication between the first main control board and other boards to respond to the version request of the other boards.
需要说明的是,对于其他的所有的线卡均可从第一新主控板请求到高制式版本文件后正常运行,及通信设备业务恢复正常;对于第二主控板可能因为第一新主控板上存储的高制式版本文件不支持而无法启动,即复位失败,此时可对第二主控板进行升级。其中,通信设备业务恢复指代的是通信设备上原有的业务,如果通信设备需要支持新的业务,如5G业务,则需要插入支持5G业务的新线卡;对于高低制式版本文件,通信设备原有的业务配置可能不兼容,为了保证兼容性,本实施例中可采用加载txt脚本方式恢复业务,如果txt脚本方式也不兼容,第一新主控板进行兼容性转换,将txt脚本转换成高制式版本文件能够识别的txt脚本。It should be noted that for all other line cards, the high-standard version file can be requested from the first new main control board to operate normally, and the communication equipment business returns to normal; for the second main control board, it may be because of the first new main control board. The high-standard version file stored on the control board is not supported and cannot be started, that is, the reset fails. At this time, the second main control board can be upgraded. Among them, the service recovery of communication equipment refers to the original service on the communication equipment. If the communication equipment needs to support new services, such as 5G services, it needs to insert a new line card that supports 5G services; for high and low standard version files, the original communication equipment Some service configurations may be incompatible. To ensure compatibility, in this embodiment, the service can be restored by loading the txt script. If the txt script is not compatible, the first new main control board performs compatibility conversion and converts the txt script into A txt script that can be recognized by high-standard version files.
可选地,本实施例中对第二主控板进行升级,包括:用第二新主控板替换所述第二主控板。Optionally, upgrading the second main control board in this embodiment includes: replacing the second main control board with a second new main control board.
应当理解的是,由于此时第一新主控板正常运行,则第一新主控板作为主用主控板,替换后的第二新主控板作为备用主控板;其中,第二新主控板包括高制式版本文件,第二主控板包括低制式版本文件,例如第二新主控板包括5G版本文件,第二主控板包括4G版本文件。It should be understood that, since the first new main control board is operating normally at this time, the first new main control board is used as the main main control board, and the second new main control board after replacement is used as the standby main control board; The new main control board includes high-standard version files, and the second main control board includes low-standard version files. For example, the second new main control board includes 5G version files, and the second main control board includes 4G version files.
可选地,本实施例中的线卡携带存储介质或不携带存储介质,其中当线卡携带存储介质时,存储介质中可存储有版本文件或可不存储版本文件;当存储介质中存储有版本文件时,包括至少以下三种方式:Optionally, the line card in this embodiment carries a storage medium or does not carry a storage medium. When the line card carries the storage medium, the storage medium may or may not store the version file; when the storage medium stores the version file When filing, include at least the following three methods:
方式一:以第一新主控板的版本文件为准,下载并运行第一新主控板的版本文件。Method 1: Download and run the version file of the first new main control board based on the version file of the first new main control board.
方式二:以线卡存储介质中存储的版本文件为准,运行版本文件。Method 2: Run the version file based on the version file stored in the storage medium of the line card.
方式三:比较第一新主控板的版本文件与线卡存储介质中的版本文件,当第一新主控板的版本文件为最新版本时,下载并运行第一新主控板的版本文件,当线卡存储介质中的版本文件为最新版本时,运行版本文件。Method 3: Compare the version file of the first new main control board with the version file in the line card storage medium. When the version file of the first new main control board is the latest version, download and run the version file of the first new main control board , When the version file in the line card storage medium is the latest version, run the version file.
值得注意的是,上述所列举的只是三种常见方式,在实际应用中,可根据具体应用场景做灵活调整。It is worth noting that the above-listed are only three common methods, which can be flexibly adjusted according to specific application scenarios in actual applications.
本发明实施例提供的通信设备,通过采用第一主控板和第二主控板进行集中式管理,保持第二主控板的正常运行,对第一主控板进行升级,可选地,在第一主控板升级成功后,对第二主控板进行升级;解决了相关技术中通信设备升级的操作复杂,且升级过程的业务中断时间较长、升级效率较低的问题。也即本发明实施例提供的通信设备,在对第一主控板进行升级时,保持了第二主控板的正常运行,在对第二主控板进行升级时,保持了升级成功的第一主控板的正常运行,该升级过程业务中断的时间仅取决于线卡的启动时间,而并非取决于主控板启动时间、主控板加载业务配置时间、线卡启动时间,可见,整个业务中断时间明显缩短,大大提高了通信设备升级效率;因此,本发明实施例提供的通信设备升级过程的操作简单,整个主控板和软件升级的过程中,只需要插入新的主控板即可,实现了业务的平滑升级。The communication device provided by the embodiment of the present invention uses the first main control board and the second main control board for centralized management, maintains the normal operation of the second main control board, and upgrades the first main control board. Optionally, After the upgrade of the first main control board is successful, the second main control board is upgraded; it solves the problems of complicated operation of the communication device upgrade in related technologies, long service interruption time in the upgrade process, and low upgrade efficiency. That is to say, the communication device provided by the embodiment of the present invention maintains the normal operation of the second main control board when the first main control board is upgraded, and maintains the successful upgrade of the second main control board when the second main control board is upgraded. For the normal operation of a main control board, the service interruption time during the upgrade process only depends on the startup time of the line card, not the startup time of the main control board, the time when the main control board loads the service configuration, and the line card startup time. It can be seen that the whole The service interruption time is significantly shortened, and the communication equipment upgrade efficiency is greatly improved; therefore, the communication equipment upgrade process provided by the embodiment of the present invention is simple to operate. During the entire main control board and software upgrade process, only a new main control board needs to be inserted. Yes, the smooth upgrade of the business has been realized.
同时,本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质存储有一个或者多个程序,一个或者多个程序可被一个或者多个处理器执行,以实现如上述实施例一至三中升级方法的步骤。At the same time, the embodiments of the present invention also provide a computer-readable storage medium. The computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the above-mentioned embodiments. Steps from one to three of the upgrade method.
该计算机可读存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、计算机程序模块或其他数据)的任何方法或技术中实施的易失性或非易失性、可移除或不可移除的介质。计算机可读存储介质包括但不限于RAM(Random Access Memory,随机存取存储器),ROM(Read-Only Memory,只读存储器),EEPROM(Electrically Erasable Programmable read only memory,带电可擦可编程只读存储器)、闪存或其他存储器技术、CD-ROM(Compact Disc Read-Only Memory,光盘只读存储器),数字多功能盘(DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其他的介质。The computer-readable storage medium includes volatile or nonvolatile, removable or Non-removable media. Computer-readable storage media include but are not limited to RAM (Random Access Memory), ROM (Read-Only Memory, read-only memory), EEPROM (Electrically Erasable Programmable read only memory, charged Erasable Programmable Read-Only Memory) ), flash memory or other memory technology, CD-ROM (Compact Disc Read-Only Memory), digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, Or any other medium that can be used to store desired information and that can be accessed by a computer.
显然,本领域的技术人员应该明白,上文中所公开方法中的全部或某些步骤、系统、装置中的功能模块/单元可以被实施为软件(可以用计算装置可执行的程序代码来实现)、固件、硬件及其适当的组合。在硬件实施方式中,在以上描述中提及的功能模块/单元之间的划分不一定对应于物理组件的划分;例如,一个物理组件可以具有多个功能,或者一个功能或步骤可以由若干物理组件合作执行。某些物理组件或所有物理组件可以被实施为由处理器,如中央处理器、数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读介质上,由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,计算机可读介质可以包括计算机存储介质(或非暂时性介质)和通信介质(或暂时性介质)。如本领域普通技术人员公知的,术语计算机存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、程序模 块或其他数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。Obviously, those skilled in the art should understand that all or some of the steps in the method disclosed above, the functional modules/units in the system, and the device can be implemented as software (which can be implemented by the program code executable by the computing device) , Firmware, hardware and their appropriate combination. In the hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may consist of several physical components. The components are executed cooperatively. Some physical components or all physical components can be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit . Such software may be distributed on a computer-readable medium and executed by a computing device. In some cases, the steps shown or described may be executed in a different order than here. The computer-readable medium may include computer storage. Medium (or non-transitory medium) and communication medium (or temporary medium). As is well known to those of ordinary skill in the art, the term computer storage medium includes volatile and non-volatile data implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Sexual, removable and non-removable media.
此外,本领域普通技术人员公知的是,通信介质通常包含计算机可读指令、数据结构、程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。所以,本发明不限制于任何特定的硬件和软件结合。In addition, as is well known to those of ordinary skill in the art, communication media usually contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as carrier waves or other transmission mechanisms, and may include any information delivery media. . Therefore, the present invention is not limited to any specific combination of hardware and software.
以上内容是结合具体的实施方式对本发明实施例所作的进一步详细说明,不能认定本发明的具体实施只局限于这些说明。对于本发明所属技术领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干简单推演或替换,都应当视为属于本发明的保护范围。The above content is a further detailed description of the embodiments of the present invention in combination with specific implementations, and it cannot be considered that the specific implementations of the present invention are limited to these descriptions. For those of ordinary skill in the technical field to which the present invention belongs, several simple deductions or substitutions can be made without departing from the concept of the present invention, which should be regarded as belonging to the protection scope of the present invention.
工业实用性Industrial applicability
通过采用第一主控板和第二主控板进行集中式管理,保持第二主控板的正常运行,对第一主控板进行升级,可选地,在第一主控板升级成功后,对第二主控板进行升级;解决了相关技术中通信设备升级的操作复杂,且升级过程的业务中断时间较长、升级效率较低的问题。也即本发明实施例提供的升级方法、通信设备以及计算机可读存储介质,在对第一主控板进行升级时,保持了第二主控板的正常运行,该升级过程中业务中断时间短,且该升级过程操作简单,无需时刻关注设备状态,实现了业务的平滑升级。By using the first main control board and the second main control board for centralized management, the normal operation of the second main control board is maintained, and the first main control board is upgraded. Optionally, after the first main control board is successfully upgraded , Upgrade the second main control board; solve the problem of complicated operation of communication equipment upgrade in related technologies, long service interruption time in the upgrade process, and low upgrade efficiency. That is, the upgrade method, communication device, and computer-readable storage medium provided by the embodiments of the present invention maintain the normal operation of the second main control board when the first main control board is upgraded, and the service interruption time is short during the upgrade process And the upgrade process is simple to operate, no need to pay attention to the status of the equipment all the time, and smooth upgrade of the business is realized.

Claims (10)

  1. 一种升级方法,应用于包括第一主控板和第二主控板的通信设备,包括:An upgrade method, applied to a communication device including a first main control board and a second main control board, includes:
    保持所述第二主控板的正常运行,对所述第一主控板进行升级;Maintaining the normal operation of the second main control board, and upgrading the first main control board;
    在所述第一主控板升级成功后,对所述第二主控板进行升级。After the first main control board is successfully upgraded, the second main control board is upgraded.
  2. 如权利要求1所述的升级方法,其中,所述对所述第一主控板进行升级,包括:The upgrading method according to claim 1, wherein said upgrading said first main control board comprises:
    用第一新主控板替换所述第一主控板,所述第一新主控板作为备用主控板,所述第一新主控板包括高制式版本文件,所述第一主控板包括低制式版本文件。Replace the first main control board with a first new main control board, the first new main control board serves as a backup main control board, the first new main control board includes a high-standard version file, the first main control board The board includes low-standard version files.
  3. 如权利要求2所述的升级方法,其中,所述用第一新主控板替换第一主控板之后,还包括:The upgrading method according to claim 2, wherein, after replacing the first main control board with the first new main control board, the method further comprises:
    所述第一新主控板从所述第二主控板下载换板升级标识文件与业务配置文件;The first new main control board downloads the board replacement upgrade identification file and the service configuration file from the second main control board;
    关闭所述第一新主控板与其他单板的板间通信,设置所述第一新主控板为主用主控板;Close the inter-board communication between the first new main control board and other single boards, and set the first new main control board as the active main control board;
    所述第一新主控板加载所述业务配置文件以恢复业务配置信息;The first new main control board loads the service configuration file to restore service configuration information;
    在所述第一新主控板恢复完所有业务配置信息后,所述第一新主控板通知所述第二主控板复位;After the first new main control board recovers all service configuration information, the first new main control board notifies the second main control board to reset;
    所述第二主控板进行复位作为备用主控板。The second main control board is reset as a standby main control board.
  4. 如权利要求3所述的升级方法,其中,所述第二主控板进行复位作为备用主控板之后,还包括:The upgrade method according to claim 3, wherein after the second main control board is reset as the standby main control board, the method further comprises:
    所述第一新主控板通知所有线卡复位;The first new main control board notifies all line cards to reset;
    所述所有线卡进行复位。All the line cards are reset.
  5. 如权利要求3所述的升级方法,其中,在所述第二主控板进行复位失败时,对所述第二主控板进行升级;The upgrade method according to claim 3, wherein when the reset of the second main control board fails, the second main control board is upgraded;
    所述对所述第二主控板进行升级,包括:The upgrading of the second main control board includes:
    用第二新主控板替换所述第二主控板,所述第二新主控板作为备用主控板,所述第二新主控板包括高制式版本文件,所述第二主控板包括低制式版本文件。Replace the second main control board with a second new main control board. The second new main control board serves as a backup main control board. The second new main control board includes a high-standard version file. The board includes low-standard version files.
  6. 如权利要求4所述的升级方法,其中,所述所有线卡进行复位之后,还包括:The upgrade method according to claim 4, wherein after all the line cards are reset, the method further comprises:
    开启所述第一主控板与其他单板的板间通信。Enable inter-board communication between the first main control board and other boards.
  7. 如权利要求4所述的升级方法,其中,所述线卡携带存储介质或不携带存储介质;The upgrade method according to claim 4, wherein the line card carries a storage medium or does not carry a storage medium;
    当所述线卡携带存储介质时,所述存储介质中存储有版本文件或未存储版本文件。When the line card carries a storage medium, a version file or no version file is stored in the storage medium.
  8. 如权利要求7所述的升级方法,其中,所述存储介质中存储有版本文件时,包括:8. The upgrade method according to claim 7, wherein when a version file is stored in the storage medium, it comprises:
    以所述第一新主控板的版本文件为准,下载并运行所述第一新主控板的版本文件;Download and run the version file of the first new main control board based on the version file of the first new main control board;
    或,以所述线卡存储介质中存储的版本文件为准,运行所述版本文件;Or, run the version file based on the version file stored in the line card storage medium;
    或,比较所述第一新主控板的版本文件与所述线卡存储介质中的版本文件,当所述第一新主控板的版本文件为最新版本时,下载并运行所述第一新主控板的版本文件,当所述线卡存储介质中的版本文件为最新版本时,运行所述版本文件。Or, compare the version file of the first new main control board with the version file in the line card storage medium, and when the version file of the first new main control board is the latest version, download and run the first For the version file of the new main control board, when the version file in the line card storage medium is the latest version, run the version file.
  9. 一种通信设备,所述通信设备包括处理器、存储器及通信总线;A communication device, the communication device including a processor, a memory, and a communication bus;
    所述通信总线用于实现处理器和存储器之间的连接通信;The communication bus is used to realize the connection and communication between the processor and the memory;
    所述处理器设置为执行存储器中存储的一个或者多个计算机程序,以实现如权利要求1-8中任一项所述的升级方法的步骤。The processor is configured to execute one or more computer programs stored in the memory to implement the steps of the upgrading method according to any one of claims 1-8.
  10. 一种计算机可读存储介质,所述计算机可读存储介质存储有一个或者多个程序,所述一个或者多个程序可被一个或者多个处理器执行,以实现如权利要求1-8中任一项所述的升级方法的步骤。A computer-readable storage medium, the computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement any of claims 1-8 One of the steps of the upgrade method.
PCT/CN2020/106846 2019-08-28 2020-08-04 Upgrading method, communication device and computer-readable storage medium WO2021036712A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910804251.8A CN112445503A (en) 2019-08-28 2019-08-28 Upgrading method, communication equipment and computer readable storage medium
CN201910804251.8 2019-08-28

Publications (1)

Publication Number Publication Date
WO2021036712A1 true WO2021036712A1 (en) 2021-03-04

Family

ID=74684445

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/106846 WO2021036712A1 (en) 2019-08-28 2020-08-04 Upgrading method, communication device and computer-readable storage medium

Country Status (2)

Country Link
CN (1) CN112445503A (en)
WO (1) WO2021036712A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101888304A (en) * 2009-05-15 2010-11-17 华为技术有限公司 Updating method, device and system for routing equipment
CN102739442A (en) * 2012-06-06 2012-10-17 中兴通讯股份有限公司 Method and system for carrying out software updating on equipment
CN103414590A (en) * 2013-08-19 2013-11-27 杭州华三通信技术有限公司 Software upgrading method and device
US20140351803A1 (en) * 2012-10-17 2014-11-27 Movimento Group Module updating device
CN105677380A (en) * 2014-11-21 2016-06-15 中兴通讯股份有限公司 Method and device for plate-to-plate upgrading with dual master controls isolated
CN109525434A (en) * 2018-12-13 2019-03-26 中国航空工业集团公司上海航空测控技术研究所 A kind of redundancy backup method based on airborne equipment board

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101888304A (en) * 2009-05-15 2010-11-17 华为技术有限公司 Updating method, device and system for routing equipment
CN102739442A (en) * 2012-06-06 2012-10-17 中兴通讯股份有限公司 Method and system for carrying out software updating on equipment
US20140351803A1 (en) * 2012-10-17 2014-11-27 Movimento Group Module updating device
CN103414590A (en) * 2013-08-19 2013-11-27 杭州华三通信技术有限公司 Software upgrading method and device
CN105677380A (en) * 2014-11-21 2016-06-15 中兴通讯股份有限公司 Method and device for plate-to-plate upgrading with dual master controls isolated
CN109525434A (en) * 2018-12-13 2019-03-26 中国航空工业集团公司上海航空测控技术研究所 A kind of redundancy backup method based on airborne equipment board

Also Published As

Publication number Publication date
CN112445503A (en) 2021-03-05

Similar Documents

Publication Publication Date Title
JP5342302B2 (en) Firmware update system, firmware distribution server, and program
US20030182411A1 (en) Method for updating and restoring operating software in an active region of a network element
JP5346253B2 (en) Firmware update system, information device, and program
JP5113700B2 (en) Firmware update apparatus and method
US7698698B2 (en) Method for over-the-air firmware update of NAND flash memory based mobile devices
CN110096302B (en) Software data storage and upgrading method, device, equipment and storage medium
EP1077407A1 (en) Method of upgrading a program using associated configuration data
CN104823160A (en) Virtual machine-preserving host updates
CN101770383B (en) Method and device for on-line upgrade of cross-platform version
EP2652599A1 (en) System reset
CN109634638B (en) Cluster software upgrading method, device, equipment and medium
US8972964B2 (en) Dynamic firmware updating system for use in translated computing environments
CN109086078A (en) Android system upgrade method, device, server and mobile terminal
CN104915226A (en) Network device software starting method, device and network device
CN103186390A (en) Home gateway and software upgrading method thereof
CN109710297B (en) Method for upgrading and backing equipment wholly or in modules
US8316363B2 (en) Concurrent embedded application update
US7783921B2 (en) Code recovery system and method
WO2021036712A1 (en) Upgrading method, communication device and computer-readable storage medium
CN107003880B (en) Kernel updating method and device and computer equipment
KR100832269B1 (en) Program update method and system for wireless communication terminal
CN107526615B (en) Single-machine program upgrading method and device in service operation process
CN113721959A (en) Information processing method and device and electronic equipment
CN104503811A (en) Method and system for upgrading communication device based on single memory area
CN113722147A (en) Method for keeping service connection and related equipment

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: 20856056

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: 20856056

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 08.08.2022)

122 Ep: pct application non-entry in european phase

Ref document number: 20856056

Country of ref document: EP

Kind code of ref document: A1