An upgrade method, a communication device, and a computer-readable storage medium
By adopting centralized management of the first main control board and the second main control board in the communication device, maintaining the normal operation of the second main control board, upgrading the first main control board, and upgrading the second main control board after it is successful, solving the problems of complex and long interruption time for communication equipment upgrade operations, and achieving efficient smooth business upgrades.
Patent Information
- Application Number
- CN201910804251.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-08-28
- Publication Date
- 2025-07-22
- Estimated Expiration
- 2039-08-28
AI Technical Summary
In the prior art, the upgrade operation of communication equipment is complicated, and the service interruption time of the upgrade process is long and the upgrade efficiency is low.
The first main control board and the second main control board are used for centralized management to maintain the normal operation of the second main control board, upgrade the first main control board, and upgrade the second main control board after the first main control board is successfully upgraded.
It shortens the business interruption time of the upgrade process, improves the upgrade efficiency, and makes the upgrade process simple to operate without paying attention to the equipment status at all times, achieving smooth business upgrades.
Smart Images

Figure CN112445503B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technologies, and more specifically, to an upgrade method, a communication device, and a computer-readable storage medium. Background Art
[0002] In the field of communication, with the continuous development of communication technologies, from 3G to 4G, and then to 5G technologies, the software and hardware of communication devices are constantly updated and upgraded. At the same time, in the same technical background, such as the 4G era, the software and hardware of devices are also constantly upgraded and updated. During the same technical period, the upgrade of devices may mainly be the upgrade of software, and currently, there are mainly two ways to classify software upgrades from the impact on services: service interruption upgrade and non-service interruption upgrade. Among them, the service interruption upgrade is mainly due to insoluble incompatibility between two versions before and after the upgrade, while the non-service interruption upgrade is achieved by means of protection switching or CPU soft reset under the condition of ensuring software compatibility before and after. However, when dealing with different technical eras, such as upgrading from a 4G version to a 5G version, in addition to possible software incompatibility, there will also be hardware incompatibility. For example, in the 5G era, to ensure higher download speed and lower latency, it is necessary to support high-precision clock functions, which will inevitably lead to hardware updates.
[0003] On the other hand, during in-network upgrades, operators always hope to minimize costs and make use of previous device versions to achieve smooth upgrades. Therefore, when a device upgrades from supporting 4G functions to supporting 5G functions, operators hope to be able to update only some single boards of the device to support both 4G services and 5G services, thereby saving costs to the greatest extent. Then, when the software and hardware of the device single board are both incompatible, how to achieve rapid device upgrade is a key technical problem that every device manufacturer must face. The usual upgrade method is to import the service configuration file of the original device onto 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 complex to operate. The service interruption time includes the startup time of the new main control board, the time for the new main control board to restore the service configuration, the startup time of the line card, etc. When there are many service configuration files, the time for the new main control board to restore the service becomes longer, and the service interruption time during the entire upgrade process will be even longer.
[0004] It can be seen that in the prior art, the upgrade of communication devices is complex to operate, and the service interruption time during the upgrade process is long and the upgrade efficiency is low. Summary of the Invention
[0005] The upgrade method, communication device, and computer-readable storage medium provided by the embodiments of the present invention mainly solve the technical problem that in the prior art, the upgrade of communication devices is complex to operate, and the service interruption time during the upgrade process is long and the upgrade efficiency is low.
[0006] 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, and includes:
[0007] Keep the second main control board running normally and upgrade the first main control board;
[0008] After the first main control board is successfully upgraded, upgrade the second main control board.
[0009] An embodiment of the present invention also provides a communication device, which includes a processor, a memory, and a communication bus;
[0010] The communication bus is used to realize the connection and communication between the processor and the memory;
[0011] The processor is used to execute one or more computer programs stored in the memory to implement the steps of the above-mentioned upgrade method.
[0012] An embodiment of the present invention also provides a computer-readable storage medium, which stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the above-mentioned upgrade method.
[0013] The beneficial effects of the present invention are:
[0014] The upgrade method, communication device, and computer-readable storage medium provided by the embodiments of the present invention, through centralized management using the first main control board and the second main control board, keep the second main control board running normally and upgrade the first main control board. Further, after the first main control board is successfully upgraded, upgrade the second main control board; it solves the problems in the prior art that the operation of upgrading the communication device is complex, the service interruption time during the upgrade process is long, and the upgrade efficiency is low. That is, the upgrade method, communication device, and computer-readable storage medium provided by the embodiments of the present invention keep the second main control board running normally when upgrading the first main control board. The service interruption time during this upgrade process is short, and the upgrade process is simple and does not require constant attention to the device status, realizing smooth upgrade of the service.
[0015] Other features and corresponding beneficial effects of the present invention are described and explained in the following part of the specification, and it should be understood that at least some of the beneficial effects are obvious from the records in the specification of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The present invention will be further described below in conjunction with the drawings and embodiments. In the drawings:
[0017] Figure 1 is a schematic diagram of the basic process of an upgrade method provided by Embodiment 1 of the present invention;
[0018] Figure 2 Schematic diagram of the basic process after replacing the first main control board with the first new main control board provided in the first embodiment of the present invention;
[0019] Figure 3 Schematic diagram of the basic process after resetting the second main control board as the standby main control board provided in the first embodiment of the present invention;
[0020] Figure 4 Schematic diagram of the centralized management of the communication device version provided in the second embodiment of the present invention;
[0021] Figure 5 Schematic diagram of the change of the version file for the board replacement and upgrade of the communication device provided in the third embodiment of the present invention;
[0022] Figure 6 Schematic diagram of the basic process of a specific upgrade method provided in the fourth embodiment of the present invention;
[0023] Figure 7 Schematic diagram of the structure of a communication device provided in the fifth embodiment of the present invention. Detailed implementation manners
[0024] In order to make the objectives, technical solutions and advantages of the present invention clearer, the embodiments of the present invention will be further described in detail below through specific implementation manners in combination with the accompanying drawings. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0025] Embodiment 1:
[0026] In order to solve the problems of complex operation in the upgrade of communication devices in the prior art, long service interruption time and low upgrade efficiency during the upgrade process, an upgrade method is provided in the embodiment of the present invention. By adopting centralized management of the first main control board and the second main control board, keeping the second main control board running normally, upgrading the first main control board, and further, after the first main control board is successfully upgraded, upgrading the second main control board; please refer to Figure 1 As shown, as Figure 1 Schematic diagram of the basic process of the upgrade method provided in this embodiment.
[0027] It should be understood that the communication device in this embodiment adopts centralized management with two main control boards. In other words, the main control board supports 1+1 protection. One of the main control boards is the main control board during normal operation, also known as the active main control board, and the other main control board is the protection main control board during abnormal operation, also known as the standby main control board.
[0028] S101: Keep the second main control board running normally and upgrade the first main control board.
[0029] Optionally, in this embodiment, upgrading the first main control board includes replacing the first main control board with a first new main control board.
[0030] 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 maintains normal inter-board communication with other single boards at this time, the second main control board serves as the active main control board, and the first new main control board serves as the standby main control board; among them, the first new main control board includes a high-standard version file, and the first main control board includes a low-standard version file. For example, the first new main control board includes a 5G version file, and the first main control board includes a 4G version file.
[0031] 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, please refer to Figure 2 as shown:
[0032] 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.
[0033] 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 board. This board replacement upgrade identification file is used for the first new main control board to set itself as the active main control board according to this board replacement upgrade identification file.
[0034] 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 board replacement upgrade identification file. The second main control board can send the identification or command to set the first new main control board as the active main control board to the first new main control board according to the board replacement upgrade identification file on it.
[0035] In some examples, the service configuration file includes a communication device network attribute configuration file integrated together.
[0036] 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.
[0037] It should be understood that other single boards in this embodiment all refer to the second main control board and line cards on the communication device, that is, close the inter-board communication between the first new main control board and the second main control board and line cards.
[0038] S203: The first new main control board loads the service configuration file to restore the service configuration information.
[0039] Furthermore, the first new main control board loads the service configuration file to restore the service configuration information.
[0040] 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.
[0041] S204: After the first new main control board restores all service configuration information, the first new main control board notifies the second main control board to reset.
[0042] Further, 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, that is, restart. Optionally, the first new main control board notifies the second main control board to reset by means of logical hardware connection.
[0043] In some examples, after the first new main control board loads the service configuration file and restores all service configuration information, and then notifies the second main control board to reset, it further includes: monitoring whether the second main control board resets within a first preset time period. When it is detected that the second main control board does not reset, a notification message is sent again to inform the second main control board that it needs to reset; among them, in actual applications, the first preset time period can be flexibly set by developers according to experiments or experience. For example, the first preset time period is set to 15 minutes.
[0044] S205: The second main control board resets to be the standby main control board.
[0045] Further, after the second main control board receives the reset notification, it resets, and at this time, the second main control board is used as the standby main control board.
[0046] Optionally, after the second main control board in this embodiment resets to be the standby main control board, it further includes at least the following steps, please refer to Figure 3 shown as follows:
[0047] S301: The first new main control board notifies all line cards to reset.
[0048] In some examples, after the second main control board resets to be the standby main control board, it can wait for a second preset time period to ensure that the first new main control board can manage all line cards mechanically or hardware-wise. Among them, in actual applications, the second preset time period can be flexibly set by developers according to experiments or experience. For example, the first preset time period is set to 30 seconds.
[0049] S302: All line cards reset.
[0050] It should be understood that all line cards reset separately when receiving the line card reset notification.
[0051] Optionally, after all line cards in this embodiment reset, it further includes: enabling the board - to - board communication between the first main control board and other single boards to respond to the version requests of other single boards.
[0052] It should be noted that for all other line cards, after successfully requesting the high - format version file from the first new main control board, they can run normally, and the communication device services resume normal; for the second main control board, it may not be able to start because the high - format version file stored on the first new main control board is not supported, that is, the reset fails. At this time, the second main control board can be upgraded. Among them, the restoration of communication device services refers to the original services on the communication device. If the communication device needs to support new services, such as 5G services, a new line card supporting 5G services needs to be inserted; for the high - and low - format version files, the original service configurations of the communication device may be incompatible. To ensure compatibility, in this embodiment, the service can be restored by loading a txt script. If the txt script method is also incompatible, the first new main control board performs compatibility conversion to convert the txt script into a txt script that can be recognized by the high - format version file.
[0053] S102: After the first main control board is successfully upgraded, upgrade the second main control board.
[0054] Optionally, in this embodiment, upgrading the second main control board includes: replacing the second main control board with a second new main control board.
[0055] It should be understood that since the first new main control board is running normally at this time, the first new main control board serves as the active main control board, and the replaced second new main control board serves as the standby main control board; among them, the second new main control board includes a high - format version file, and the second main control board includes a low - format version file. For example, the second new main control board includes a 5G version file, and the second main control board includes a 4G version file.
[0056] Optionally, the line card in this embodiment may carry a storage medium or not carry a storage medium. When the line card carries a storage medium, the storage medium may store a version file or may not store a version file; when the storage medium stores a version file, there are at least the following three methods:
[0057] Method 1: Take the version file of the first new main control board as the standard, download and run the version file of the first new main control board.
[0058] Method 2: Take the version file stored in the line card storage medium as the standard and run the version file.
[0059] 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.
[0060] It should be noted that the above - listed are only three common methods, and in actual applications, flexible adjustments can be made according to specific application scenarios.
[0061] The upgrade method provided by the embodiment of the present invention performs centralized management by using a first main control board and a second main control board, keeps the second main control board running normally, upgrades the first main control board, and further upgrades the second main control board after the upgrade of the first main control board is successful; it solves the problems in the prior art that the operation of upgrading communication devices is complex, the service interruption time during the upgrade process is long, and the upgrade efficiency is low. That is, the upgrade method provided by the embodiment of the present invention keeps the second main control board running normally when upgrading the first main control board, and keeps the first main control board that has been successfully upgraded running normally when upgrading the second main control board. The service interruption time of this upgrade process only depends on the startup time of the line card, rather than on the startup time of the main control board, the time for the main control board to load the service configuration, and the startup time of the line card. It can be seen that the entire service interruption time is significantly shortened, and the upgrade efficiency of communication devices is greatly improved.
[0062] Embodiment 2:
[0063] Based on Embodiment 1, the embodiment of the present invention provides a centralized management method for the version file (i.e., software) of a communication device. Please refer to Figure 4 as shown below:
[0064] First of all, it should be noted that in this embodiment, the active main control board is denoted as MSC, the standby main control board is denoted as SSC, and the line card is denoted as NSC.
[0065] Optionally, the communication device has two main control boards and multiple line cards. The main control boards are in 1+1 protection in terms of hardware, that is, the active main control board MSC and the standby main control board SSC. Both the active main control board MSC and the standby main control board SSC are equipped with storage media, such as SSD cards; the line card NSC may or may not be equipped with a storage media, such as flash. When all single boards start up, they will request the version file from the active main control board MSC, and then run the downloaded version file. The following is an example:
[0066] If the line card NSC does not have a storage media, assuming that the version file corresponding to the line card NSC stored on the active main control board MSC is BaseVer21.bin, then after the line card NSC boots up, it directly downloads this file from the active main control board MSC to the memory, and then runs it;
[0067] If the line card NSC has a storage medium but no version information is saved in the storage medium, the startup process is the same as that of a single board without a storage medium; if there is a saved version file in the storage medium, such as the version of the version file is BaseVer31.bin. Then the running version can be determined according to different usage policies. For example, if the version of the primary master control board MSC is used as the standard, the version of the primary master control board MSC is downloaded first; if the version of the line card NSC is used as the standard, the version saved in the line card NSC itself is run first; the version numbers can also be compared, and the version with the newer version number is used as the standard. For the centralized version management method, in this embodiment, the policy of using the version of the primary master control board MSC as the standard can be adopted to facilitate users to manage the version information of communication devices.
[0068] Embodiment 3:
[0069] On the basis of Embodiments 1 and 2, this embodiment of the present invention will be described by taking a more specific upgrade process as an example.
[0070] As described above, when there are new service requirements, while the hardware of the master control board is upgraded, the software of the communication device also needs to be upgraded, and the software upgrade of the communication device can be completed using the version stored on the master control board. Please refer to Figure 5 as shown:
[0071] Step 1: Insert a new master control board into the spare master control slot of the communication device. The version running on the original primary master control board is V2.0, and the version running on the new master control board is V5.0;
[0072] It should be understood that at this time, the newly inserted master control board serves as the spare master control board, and the original primary master control board still serves as the primary master control board.
[0073] Step 2: Immediately after the new master control board starts up, cut off the inter-board communication with the original primary master control board and the line cards, and start up as the primary master control board.
[0074] It should be understood that at this time, the new master control board serves as the primary master control board.
[0075] Step 3: After the new master control board starts up until the service configuration is restored, notify the original primary master control board to reset, and after a period of time, notify all line cards to reset; if the original primary master control board does not support the V5.0 version, it will never be able to start up. All line cards support it, request the V5.0 version from the new master control board again, and run the new V5.0 version.
[0076] It should be understood that at this time, the new master control board serves as the primary master control board, and the original primary master control board serves as the spare master control board after reset.
[0077] So far, the active main control board and line cards are all running the new V5.0 version, completing the software upgrade of the communication device and the hardware upgrade of the main main control board. It is basically clear that the original active main control board cannot meet the new service requirements. Therefore, it will also be unplugged and replaced with a new main control board. In addition, the line cards may also need to be replaced with single boards to support the new service requirements.
[0078] Embodiment 4:
[0079] Based on Embodiments 1 to 3 of the present invention, another more specific upgrade process will be taken as an example for illustration.
[0080] As mentioned above, for a communication device to support new technologies, such as upgrading from 4G to 5G, or from 5G to 6G, both the main control board and the line cards may need to be upgraded to new hardware. And in order to support traditional services, some of the original old single boards may need to be retained for the line cards. Please refer to Figure 6 as shown:
[0081] S601: Insert a new main control board into the standby main control slot of the communication device, and the main control board's boot starts the operating system of this board.
[0082] For example, assume 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 active main control slot. At this time, replace the first main control board A1 with the first new main control board B1, and the first main control board A1's boot starts the operating system of this board.
[0083] S602: The new main control board requests the board replacement upgrade identification file and service configuration file from the original main control board.
[0084] Continuing with the above example, further assume that when the staff replaces the first main control board A1 with the first new main control board B1, they configure the board replacement upgrade identification file on the second main control board A2, including a specific directory and file: the / sysdisk0 / sscupgrade / upgradecfg.ini file; at the same time, the first new main control board B1 downloads the service configuration file startrun.dat from the second main control board A2.
[0085] S603: When the new main control board fails to download the board replacement upgrade identification file and service configuration file, it starts as a standby main control board and executes S602.
[0086] It should be understood that since the version files are inconsistent with the original main control board, the single board restarts. After the restart, it will request the version file from the original main control board. However, since the original main control board does not support the new main control board, the new main control board fails to start and needs to continue restarting.
[0087] Continuing with the previous example, further, 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, S602 is repeatedly executed.
[0088] S604: When the new main control board successfully downloads the board replacement upgrade identification file and the service configuration file, it starts as the active main control board and closes the inter-board communication between this board and other single boards.
[0089] Continuing with the previous example, further, when the first new main control board B1 successfully downloads the board replacement upgrade identification file and the service configuration file from the second main control board A2, the inter-board communication between the first new main control board B1 and the second main control board A2 of the communication device and other line cards is closed.
[0090] S605: The new main control board converts the downloaded service configuration file into a service configuration file that this board can recognize, and then loads the service configuration file when the software starts.
[0091] Continuing with the previous example, further, the first new main control board B1 converts the downloaded startrun.dat file into a service configuration file that this board can recognize, and then loads the service configuration file startrun.dat when the software starts.
[0092] S606: After the new main control board finishes loading the service configuration file, it notifies the original main control board to reset.
[0093] Continuing with the previous example, further, after the first new main control board B1 finishes loading the service configuration file, it notifies the second main control board A2 to reset through the logical hardware connection.
[0094] Optionally, monitor whether the second main control board A2 resets within the first preset time period. When it is detected that the second main control board A2 does not reset, send a notification message again to inform the second main control board A2 that it needs to reset. Here, the first preset time period can be 15 minutes.
[0095] S607: After the original main control board resets, the new main control board manages all the line cards mechanically, electrically, or in terms of hardware, and notifies all the line cards to reset.
[0096] Continuing with the previous example, further, the first new main control board B1 manages all the line cards mechanically, electrically, or in terms of hardware, and notifies all the line cards to reset.
[0097] Optionally, after the second main control board A2 resets, it can wait for the second preset time period to ensure that the first new main control board B1 can manage all the line cards mechanically, electrically, or in terms of hardware. Here, the second preset time period can be 15 seconds.
[0098] S608: The new main control board enables inter-board communication with other single boards, responds to the version requests from other single boards, and all single boards that can request the version file will run the new version.
[0099] It should be understood that, in order to ensure the smooth upgrade of the communication device, the high-standard version file included in the new main control board generally includes all the new software version files required by the original line cards.
[0100] Continuing with the above example, further, the first new main control board B1 enables its inter-board communication with the second main control board A2 and all line cards, and all line cards run the high-standard version file on the first new main control board B1.
[0101] S609: Insert another new main control board into the active main control slot of the communication device.
[0102] Continuing with the above example, further, replace the second main control board A2 with the second new main control board B2.
[0103] Thus, the software and hardware upgrades of all single boards on the communication device are completed. The interruption time of the original services during the upgrade process depends on the startup time of the line cards. If new services need to be supported, reconfiguration is required.
[0104] Embodiment Five:
[0105] To solve the problems in the prior art that the upgrade operation of communication devices is complex, the service interruption time during 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 Figure 7 As shown, the communication device provided in this embodiment includes a processor 701, a memory 702, and a communication bus 703.
[0106] Among them, the communication bus 703 in this embodiment is used to realize the connection and communication between the processor 701 and the memory 702. The processor 701 is used to execute one or more programs stored in the memory 702 to implement the following steps:
[0107] Keep the second main control board running normally and upgrade the first main control board;
[0108] After the upgrade of the first main control board is successful, upgrade the second main control board.
[0109] 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 boards support 1+1 protection. One main control board is the main control board during normal operation, also known as the active main control board, and the other main control board is the protection main control board during abnormal operation, also known as the standby main control board.
[0110] Optionally, in this embodiment, upgrading the first main control board includes: replacing the first main control board with a first new main control board.
[0111] 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 maintains normal inter-board communication with other single boards at this time, the second main control board serves as the active main control board, and the first new main control board serves as the standby main control board; among them, the first new main control board includes a high-standard version file, and the first main control board includes a low-standard version file. For example, the first new main control board includes a 5G version file, and the first main control board includes a 4G version file.
[0112] 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:
[0113] The first new main control board downloads the board replacement upgrade identification file and service configuration file from the second main control board;
[0114] 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;
[0115] The first new main control board loads the service configuration file to restore the service configuration information;
[0116] After the first new main control board restores all service configuration information, the first new main control board notifies the second main control board to reset;
[0117] The second main control board resets to serve as the standby main control board.
[0118] 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 board, and this board replacement upgrade identification file is used for the first new main control board to set itself as the active main control board according to this board replacement upgrade identification file.
[0119] 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 board replacement upgrade identification file. The second main control board can send the identification or command to set the first new main control board as the active main control board to the first new main control board according to the board replacement upgrade identification file on it.
[0120] In some examples, the service configuration file includes a communication device network attribute configuration file integrated together.
[0121] It should be understood that other single boards in this embodiment all refer to the second main control board and line cards on the communication device, that is, close the inter-board communication between the first new main control board and the second main control board and line cards.
[0122] Further, the first new main control board loads the service configuration file to restore the service configuration information.
[0123] 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.
[0124] Further, after the first new main control board finishes loading the service configuration file and restores all service configuration information, it notifies the second main control board to perform a reset, that is, to restart. Optionally, the first new main control board notifies the second main control board to perform a reset by means of logical hardware connection.
[0125] In some examples, after the first new main control board finishes loading the service configuration file and restores all service configuration information and notifies the second main control board to perform a reset, it further includes: monitoring whether the second main control board has been reset within a first preset time period. When it is detected that the second main control board has not been reset, a notification message is sent again to inform the second main control board that it needs to perform a reset; wherein, in practical applications, the first preset time period can be flexibly set by developers according to experiments or experience. For example, the first preset time period is set to 15 minutes.
[0126] Further, after the second main control board receives the reset notification, it performs a reset. At this time, the second main control board serves as a standby main control board.
[0127] Optionally, after the second main control board in this embodiment performs a reset to serve as a standby main control board, it further includes at least the following steps:
[0128] The first new main control board notifies all line cards to perform a reset;
[0129] All line cards perform a reset.
[0130] In some examples, after the second main control board performs a reset to serve as a standby main control board, it can wait for a second preset time period to ensure that the first new main control board can manage all line cards mechanically or hardware-wise. Among them, in practical applications, the second preset time period can be flexibly set by developers according to experiments or experience. For example, the first preset time period is set to 30 seconds.
[0131] It should be understood that all line cards perform a reset respectively when receiving the line card reset notification.
[0132] Optionally, after all line cards in this embodiment perform a reset, it further includes: enabling the inter-board communication between the first main control board and other single boards to respond to the version requests of other single boards.
[0133] It should be noted that all other line cards can operate normally after requesting the high - format version file from the first new main control board, and the communication device services resume normal; for the second main control board, it may not be able to start because the high - format version file stored on the first new main control board is not supported, that is, the reset fails. At this time, the second main control board can be upgraded. Among them, the restoration of communication device services refers to the original services on the communication device. If the communication device needs to support new services, such as 5G services, a new line card supporting 5G services needs to be inserted; for the high - and low - format version files, the original service configurations of the communication device may be incompatible. To ensure compatibility, in this embodiment, the service can be restored by loading a txt script. If the txt script method is also incompatible, the first new main control board performs compatibility conversion to convert the txt script into a txt script that can be recognized by the high - format version file.
[0134] Optionally, in this embodiment, upgrading the second main control board includes: replacing the second main control board with a second new main control board.
[0135] It should be understood that since the first new main control board is operating normally at this time, the first new main control board serves as the active main control board, and the replaced second new main control board serves as the standby main control board; among them, the second new main control board includes a high - format version file, and the second main control board includes a low - format version file. For example, the second new main control board includes a 5G version file, and the second main control board includes a 4G version file.
[0136] Optionally, the line card in this embodiment may carry a storage medium or not carry a storage medium. When the line card carries a storage medium, the storage medium may store a version file or may not store a version file; when the storage medium stores a version file, there are at least the following three methods:
[0137] Method 1: Take the version file of the first new main control board as the standard, download and run the version file of the first new main control board.
[0138] Method 2: Take the version file stored in the line card storage medium as the standard and run the version file.
[0139] 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.
[0140] It is worth noting that the above - listed are only three common methods, and in actual applications, flexible adjustments can be made according to specific application scenarios.
[0141] The communication device provided by the embodiment of the present invention performs centralized management by adopting a first main control board and a second main control board, keeps the second main control board running normally, upgrades the first main control board, and further upgrades the second main control board after the upgrade of the first main control board is successful; it solves the problems in the prior art that the operation of upgrading the communication device is complex, the service interruption time during the upgrade process is long, and the upgrade efficiency is low. That is, the communication device provided by the embodiment of the present invention keeps the second main control board running normally when upgrading the first main control board, and keeps the first main control board that has been successfully upgraded running normally when upgrading the second main control board. The service interruption time of this upgrade process only depends on the startup time of the line card, rather than on the startup time of the main control board, the time for the main control board to load the service configuration, and the startup time of the line card. It can be seen that the entire service interruption time is significantly shortened, greatly improving the upgrade efficiency of the communication device; therefore, the operation of the upgrade process of the communication device provided by the embodiment of the present invention is simple. During the entire process of upgrading the main control board and software, only need to insert a new main control board to achieve smooth upgrade of the service.
[0142] Meanwhile, the embodiment of the present invention also provides 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 steps of the upgrade method in the above-mentioned first to third embodiments.
[0143] The computer-readable storage medium includes volatile or non-volatile, removable or non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, computer program modules, or other data). The computer-readable storage medium includes, but is not limited to, RAM (Random Access Memory), ROM (Read-Only Memory), EEPROM (Electrically Erasable Programmable Read Only Memory), flash memory or other memory technologies, CD-ROM (Compact Disc Read-Only Memory), digital versatile disc (DVD) or other optical disc storage, magnetic cassette, tape, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer.
[0144] Obviously, those skilled in the art should understand that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices, can be implemented as software (which can be realized by program codes executable by a computing device), firmware, hardware, and their appropriate combinations. In the hardware implementation, the division of the functional modules / units mentioned above does not necessarily correspond to the division of physical components; for example, one physical component can have multiple functions, or one function or step can be executed by the cooperation of several physical components. Some or all of the 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 be implemented as hardware, or be implemented as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on a computer-readable medium and executed by a computing device, and in some cases, the steps shown or described can be executed in a different order than here. The computer-readable medium can include computer storage media (or non-transitory media) and communication media (or transitory media). As is well known to those of ordinary skill in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information, such as computer-readable instructions, data structures, program modules, or other data.
[0145] In addition, as is well known to those of ordinary skill in the art, communication media typically contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transmission mechanisms, and can include any information delivery medium. Therefore, the present invention is not limited to any specific combination of hardware and software.
[0146] The above content is a further detailed description of the embodiments of the present invention in combination with specific implementation manners, and it cannot be determined that the specific implementation of the present invention is only limited to these descriptions. For those of ordinary skill in the technical field to which the present invention pertains, without departing from the concept of the present invention, several simple deductions or substitutions can be made, and all should be regarded as belonging to the protection scope of the present invention.
Claims
1. An upgrade method, applied to a communication device including a first main control board and a second main control board, comprising: Maintaining the normal operation of the second main control board, replacing the first main control board with a first new main control board, the first new main control board serving as a standby main control board, the first new main control board including a high-standard version file, and the first main control board including a low-standard version file; After the upgrade of the first main control board is successful, upgrading the second main control board; After replacing the first main control board with the first new main control board, further comprising: The first new main control board downloads a board replacement upgrade identification file and a service configuration file from the second main control board; Closing the inter-board communication between the first new main control board and other single boards, and setting 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 restores all service configuration information, the first new main control board notifies the second main control board to reset; The second main control board resets to serve as a standby main control board.
2. The upgrade method according to claim 1, wherein After the second main control board resets to serve as a standby main control board, further comprising: The first new main control board notifies all line cards to reset; All the line cards perform a reset.
3. The upgrade method according to claim 1, wherein When the reset of the second main control board fails, upgrading the second main control board; The upgrading of the second main control board includes: Replacing the second main control board with a second new main control board, the second new main control board serving as a standby main control board, the second new main control board including a high-standard version file, and the second main control board including a low-standard version file.
4. The upgrade method according to claim 2, wherein After all the line cards perform a reset, further comprising: Enabling the inter-board communication between the first main control board and other single boards.
5. The upgrade method according to claim 2, characterized in that, The line card may carry a storage medium or not carry a storage medium; When the line card carries a storage medium, a version file may or may not be stored in the storage medium.
6. The upgrade method according to claim 5, wherein When a version file is stored in the storage medium, it includes: Taking the version file of the first new main control board as the standard, downloading and running the version file of the first new main control board; Or, taking the version file stored in the storage medium of the line card as the standard, running the version file; Or, comparing the version file of the first new main control board with the version file stored in the storage medium of the line card. When the version file of the first new main control board is the latest version, downloading and running the version file of the first new main control board. When the version file stored in the storage medium of the line card is the latest version, running the version file.
7. A communication device, characterized in that, The communication device includes a processor, a memory, and a communication bus; The communication bus is used to implement the connection communication between the processor and the memory; The processor is used to execute one or more computer programs stored in the memory to implement the steps of the upgrade method as described in any one of claims 1-6.
8. A computer-readable storage medium, characterized in that, 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 steps of the upgrade method as described in any one of claims 1-6.
Citation Information
Patent Citations
Distributed dual-master control network equipment software updating method and device
CN102081540A
Equipment machine case and electronic equipment
CN207339902U