[go: up one dir, main page]

CN112445503B - Upgrade method, communication device and computer readable storage medium - Google Patents

Upgrade method, communication device and computer readable storage medium

Info

Publication number
CN112445503B
CN112445503B CN201910804251.8A CN201910804251A CN112445503B CN 112445503 B CN112445503 B CN 112445503B CN 201910804251 A CN201910804251 A CN 201910804251A CN 112445503 B CN112445503 B CN 112445503B
Authority
CN
China
Prior art keywords
main control
control board
new
storage medium
new main
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201910804251.8A
Other languages
Chinese (zh)
Other versions
CN112445503A (en
Inventor
何中圣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201910804251.8A priority Critical patent/CN112445503B/en
Priority to PCT/CN2020/106846 priority patent/WO2021036712A1/en
Publication of CN112445503A publication Critical patent/CN112445503A/en
Application granted granted Critical
Publication of CN112445503B publication Critical patent/CN112445503B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

本发明提供一种升级方法、通信设备以及计算机可读存储介质,通过保持第二主控板的正常运行,对第一主控板进行升级,进一步地,在第一主控板升级成功后,对第二主控板进行升级;解决了现有技术中设备升级的操作复杂,且升级过程的业务中断时间较长、升级效率较低的问题。也即本发明实施例提供的升级方法、通信设备以及计算机可读存储介质,升级过程中业务中断时间短,大大提升了升级效率且该升级过程操作简单,无需时刻关注设备状态,实现了业务的平滑升级。

The present invention provides an upgrade method, a communication device, and a computer-readable storage medium, which upgrades the first main control board by maintaining the normal operation of the second main control board, and further, after the first main control board is successfully upgraded, the second main control board is upgraded; the problems of the complicated operation of equipment upgrades in the prior art, the long service interruption time during the upgrade process, and the low upgrade efficiency are solved. That is, the upgrade method, communication device, and computer-readable storage medium provided by the embodiments of the present invention have a short service interruption time during the upgrade process, which greatly improves the upgrade efficiency and the upgrade process is simple to operate, without having to pay attention to the device status at all times, and a smooth upgrade of the service is achieved.

Description

Upgrade method, communication device and computer readable storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to an upgrade method, a communications device, and a computer readable storage medium.
Background
In the field of communications, with the continuous development of communications technologies, from 3G to 4G to 5G technologies, software and hardware of communications devices are also being updated and upgraded continuously. Meanwhile, under the same technical background, such as the 4G age, the software and hardware of the equipment are continuously updated. During the same technical period, the upgrade of the device may be mainly the upgrade of the software, and the current classification of the software upgrade from the impact on the service is mainly in two ways, namely interrupting the service upgrade and not interrupting the service upgrade. The interrupt service upgrade is mainly realized by protection switching or CPU soft reset under the condition that the front and back compatibility of software is ensured while the incompatible situation of the two versions before and after the upgrade is not solved. However, if a different technology age is processed, in addition to possible incompatibility of software when upgrading from a 4G version to a 5G version, incompatibility of device hardware may also occur, for example, in the 5G age, in order to guarantee a higher downloading speed and lower time delay, a high-precision clock function needs to be supported, which necessarily results in hardware updating.
On the other hand, in the current network upgrading process, the operator always hopes that the cost is minimum, and the smooth upgrading can be achieved by using the previous equipment version. Therefore, when the device is upgraded from supporting the 4G function to supporting the 5G function, the operator hopes to update only part of the single boards of the device, so that the 4G service and the 5G service are supported, and the cost is saved to the greatest extent. Then, when the software and hardware of the device single board are not compatible, how to implement rapid device upgrade is a key technical problem that all device manufacturers must face. The general upgrading method is that the service configuration file of the original equipment is imported to a new main control board, then the old main control board is replaced by the new main control board, and then the whole machine is restarted to realize the upgrading. The operation of the mode is complex, wherein the service interruption time comprises a new main control board starting time, a new main control board service restoration configuration time, a line card starting time and the like, when the service configuration files are more, the service restoration time of the new main control board is longer, and the service interruption time in the whole upgrading process is longer.
Therefore, in the prior art, the operation of upgrading the communication equipment is complex, and the service interruption time and the upgrading efficiency of the upgrading process are long.
Disclosure of Invention
The upgrading method, the communication equipment and the computer readable storage medium mainly solve the technical problems that in the prior art, the operation of upgrading the communication equipment is complex, the service interruption time of the upgrading process is long, and the upgrading 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;
and after the first main control board is successfully upgraded, upgrading the second main control board.
The embodiment of the invention also provides communication equipment, which comprises a processor, a memory and a communication bus;
the communication bus is used for realizing connection 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 as described above.
Embodiments of the present invention also provide a computer-readable storage medium storing one or more programs executable by one or more processors to implement the steps of the upgrade method as described above.
The beneficial effects of the invention are as follows:
The upgrading method, the communication equipment and the computer readable storage medium provided by the embodiment of the invention perform centralized management by adopting the first main control board and the second main control board, keep the normal operation of the second main control board, upgrade the first main control board, further upgrade the second main control board after the first main control board is successfully upgraded, and solve the problems of complex operation of the communication equipment upgrading, longer service interruption time and lower upgrading efficiency in the upgrading process in the prior art. Namely, the upgrading method, the communication equipment and the computer readable storage medium provided by the embodiment of the invention keep the normal operation of the second main control board when the first main control board is upgraded, the service interruption time is short in the upgrading process, the upgrading process is simple to operate, the equipment state is not required to be paid attention to at any time, and the smooth upgrading of the service is realized.
Additional features and corresponding advantages of the invention will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of the invention.
Drawings
The invention will be further described with reference to the accompanying drawings and examples, in which:
fig. 1 is a basic flow diagram of an upgrade method according to a first embodiment of the present invention;
fig. 2 is a schematic diagram of a basic flow after a first main control board is replaced by a first new main control board according to a first embodiment of the present invention;
fig. 3 is a schematic diagram of a basic flow after a second main control board is reset 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 versions of a communication device according to a second embodiment of the present invention;
Fig. 5 is a schematic diagram of a version file change of a board change upgrade of a communication device according to a third embodiment of the present invention;
fig. 6 is a basic flow diagram of a specific upgrading method according to a fourth embodiment of the present invention;
fig. 7 is a schematic structural diagram of a communication device according to a fifth embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following detailed description of the embodiments of the present invention is given with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Embodiment one:
In order to solve the problems of complex operation, longer service interruption time and lower upgrading efficiency in the upgrading process of the communication equipment in the prior art, the embodiment of the invention provides an upgrading method, which is characterized in that a first main control board and a second main control board are adopted for centralized management, the normal operation of the second main control board is kept, the first main control board is upgraded, and further, after the first main control board is successfully upgraded, the second main control board is upgraded, as shown in fig. 1, and the basic flow diagram of the upgrading method provided by the embodiment is shown in fig. 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 boards support 1+1 protection, wherein one main control board is used as a main control board in normal operation, also called a main control board, and the other main control board is used as a protection main control board in abnormal operation, also called a standby main control board.
S101, maintaining normal operation of the second main control board, and upgrading the first main control board.
Optionally, in this embodiment, upgrading the first main control board includes replacing the first main control board with a first new main control board.
It should be understood that, since the second main control board is running normally at this time, in other words, the second main control board keeps communicating with the normal boards of other boards at this time, the second main control board is used as the active main control board, and the first new main control board is used as the standby main control board, where the first new main control board includes the high-format version file, the first main control board includes the low-format version file, for example, the first new main control board includes the 5G version file, and the first main control board includes the 4G version file.
Optionally, in this embodiment, after replacing the first main control board with the first new main control board, at least the following steps are further included, please refer to fig. 2:
S201, the first new main control board downloads the board changing upgrading identification file and the service configuration file from the second main control board.
It should be understood that the board change upgrade identification file on the second main control board may be manually configured by a worker when replacing the first main control board with the first new main control board, where the board change upgrade identification file is used for the first new main control board to set the first new main control board as the main control board according to the board change upgrade identification file.
In some examples, the first new main control board may only download the service configuration file from the second main control board, without downloading the board change upgrade identification file, and the second main control board may issue an identification or command for setting the second main control board as the active main control board to the first new main control board according to the board change upgrade identification file thereon.
In some examples, the service profile includes a communication device network attribute profile that is integrated together.
S202, closing the communication between the first new main control board and boards of other single boards, and setting the first new main control board as the main control board.
It should be understood that the other boards in this embodiment refer to the second main control board and the line card on the communication device, that is, the board-to-board communication between the first new main control board and the second main control board and the line card is closed.
S203, the first new main control board loads the service configuration file to restore the service configuration information.
Further, the service configuration file is loaded on the first new main control board to recover the service configuration information.
In some examples, before loading the service profile, converting the service profile to enable the first new master control board to identify the profile is also included.
S204, after the first new main control board recovers all the service configuration information, the first new main control board notifies the second main control board to reset.
Further, after the first new main control board finishes loading the service configuration file, i.e. after all the service configuration information is restored, the first new main control board notifies the second main control board to reset, i.e. restart, optionally, the first new main control board notifies the second main control board to reset in a mode of connecting logic hardware.
In some examples, after the first new main control board finishes loading the service configuration file, i.e. after recovering all the service configuration information, it also includes monitoring whether the second main control board resets or not in a first preset time period, and when the second main control board is monitored not to reset, issuing a notification message again to inform the second main control board that the second main control board needs to reset, where in practical application, the first preset time period can be flexibly set by a developer according to experiments or experience, for example, the first preset time period is set to 15 minutes.
S205, the second main control board resets to serve as a standby main control board.
Further, the second main control board resets after receiving the reset notification, and at this time, the second main control board is used as a standby main control board.
Optionally, in this embodiment, after the second main control board resets to be used as the standby main control board, at least the following steps are further included, please refer to fig. 3:
S301, the first new main control board informs all line cards of reset.
In some examples, after the second main control board resets as the standby main control board, a second preset period of time may be waited to ensure that all line cards on the first new main control board may be managed mechanically or in hardware. In practical application, the second preset time period may be flexibly set by a developer according to experiments or experience, for example, the first preset time period is set to 30 seconds.
S302, resetting all line cards.
It should be appreciated that all line cards are reset separately upon receiving a line card reset notification.
Optionally, after all the line cards are reset, the method further includes starting inter-board communication between the first main control board and other single boards to answer version requests of the other single boards.
It should be noted that, for all other line cards, the service of the communication device can be recovered to normal operation after the line cards request from the first new main control board to the high-format version file, and for the second main control board, the second main control board may not be started, i.e. the reset fails, because the high-format version file stored on the first new main control board is not supported, and at this time, the second main control board can be upgraded. The service recovery of the communication device refers to an original service on the communication device, if the communication device needs to support a new service, such as a 5G service, a new line card supporting the 5G service needs to be inserted, and for a high-low format version file, the original service configuration of the communication device may not be compatible, in order to ensure compatibility, a txt script loading mode may be used to recover the service, and if the txt script mode is also not compatible, the first new main control board performs compatibility conversion, and converts the txt script into a txt script that can be identified by the high-format version file.
S102, after the first main control board is successfully upgraded, the second main control board is upgraded.
Optionally, in this embodiment, upgrading the second main control board includes replacing the second main control board with a second new main control board.
It should be understood that, because the first new main control board is normally operated at this time, the first new main control board is used as a main control board, and the replaced second new main control board is used as a standby main control board, where the second new main control board includes a high-format version file, 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.
Optionally, the line card in the embodiment carries a storage medium or does not carry a storage medium, wherein when the line card carries the storage medium, a version file or a version file which can not be stored may be stored in the storage medium, and when the version file is stored in the storage medium, at least three modes are included:
the first mode is to 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.
And secondly, operating the version file by taking the version file stored in the line card storage medium as the reference.
And comparing the version file of the first new main control board with the version file in the line card storage medium, downloading and operating the version file of the first new main control board when the version file of the first new main control board is the latest version, and operating the version file when the version file in the line card storage medium is the latest version.
It should be noted that the above-mentioned three common ways are listed, and in practical application, the adjustment can be flexibly performed according to the specific application scenario.
According to the upgrading method provided by the embodiment of the invention, the first main control board and the second main control board are adopted for centralized management, so that the normal operation of the second main control board is kept, the first main control board is upgraded, and further, after the first main control board is successfully upgraded, the second main control board is upgraded, so that the problems that the operation of upgrading communication equipment in the prior art is complex, the service interruption time in the upgrading process is long, and the upgrading efficiency is low are solved. That is, in the upgrading method provided by the embodiment of the invention, when the first main control board is upgraded, the normal operation of the second main control board is maintained, and when the second main control board is upgraded, the normal operation of the first main control board which is successfully upgraded is maintained, and the service interruption time in the upgrading process only depends on the starting time of the line card, but not depends on the starting time of the main control board, the loading service configuration time of the main control board and the line card starting time, so that the whole service interruption time is obviously shortened, and the upgrading efficiency of the communication equipment is greatly improved.
Embodiment two:
Based on the first embodiment, the embodiment of the present invention provides a centralized management manner for version files, i.e. software, of a communication device, please refer to fig. 4:
First, in this embodiment, the main control board is denoted as MSC, the standby main control board is denoted as SSC, and the line card is denoted as NSC.
Optionally, the communication device has two main control boards and multiple line cards, and the main control board is protected by 1+1 on hardware, that is, the main control board MSC and the standby main control board SSC, where the main control board MSC and the standby main control board SSC both have storage media, such as SSD cards, and the line cards NSC may have no storage media, or may have storage media, such as flash. When all single boards are started, the version files are requested to the MSC of the main control board, and then the downloaded version files are operated. Examples are as follows:
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 control board MSC is basever21.Bin, the line card NSCboot directly downloads the file from the main control board MSC to the memory after being started, and then operates;
if the line card NSC has a storage medium, but version information is not stored in the storage medium, the starting flow is the same as that of a single board without the storage medium, and if the storage medium has a version file stored in the storage medium, for example, the version of the version file is BaseVer31.Bin. The running version can be determined according to different use strategies, if the version of the main control board MSC is used as the standard, the version of the main control board MSC is downloaded preferentially, if the version of the line card NSC is used as the standard, the version stored by the line card NSC can be run preferentially, and the version number can be compared, and if the version number is used as the standard, the new version of the version number can be used as the standard. For the centralized version management mode, the embodiment can adopt a strategy based on the version of the MSC of the main control board, so as to facilitate the user to manage the version information of the communication equipment.
Embodiment III:
the embodiment of the invention is described by taking a more specific upgrading process as an example on the basis of the first embodiment and the second embodiment.
As described above, when there is a new service requirement, the main control board hardware is upgraded while the communication device software also needs to be upgraded, and the communication device software upgrade can be completed by using the version stored on the main control board, see fig. 5:
Inserting a new main control board into a standby main control slot of the communication equipment, wherein the version V2.0 operates on the original main control board, and the version V5.0 operates on the new main control board;
It should be understood that the new master control board inserted at this time is used as a standby master control board, and the original master control board is still used as a master control board.
And step two, immediately cutting off the communication between the new main control board and the boards of the original main control board and the line card after the new main control board is started, and starting according to the main control board.
It should be understood that the new master control board at this time serves as the master control board.
And thirdly, after the new main control board is started until the service configuration is restored, notifying the original main control board to reset, and notifying all line cards to reset after a period of time, wherein if the original main control board is not supported by the V5.0 version, the original main control board cannot be started all the time, all the line cards support, and the V5.0 version is requested from the new main control board again to operate the new V5.0 version.
It should be understood that the new main control board is used as the main control board at this time, and the original main control board is used as the standby main control board after being reset.
The primary main control board can basically definitely not meet new service requirements, so that the primary main control board can be pulled out and replaced by a new main control board, and in addition, the line card can also need to be replaced by a single board to support the new service requirements.
Embodiment four:
the embodiments of the present invention will be described with reference to another specific upgrading process based on the first to third embodiments.
As described above, for the communication device to support new technologies, such as 4G upgrade to 5G, or 5G upgrade to 6G, both the main control board and the line card may need to be upgraded to new hardware, and the line card may need to reserve part of the original old board in order to support the traditional service, see fig. 6:
S601, inserting a new main control board into a standby main control slot position of the communication equipment, and guiding the operating system of the main control board to start.
For example, the main control board of the communication device includes a first main control board A1 at the standby main control slot, and a second main control board A2 at the active main control slot, at this time, the first main control board A1 is replaced by a first new main control board B1, and the first main control board A1boot guides the present board operating system to start.
S602, the new master control board requests a board changing upgrade identification file and a service configuration file from the original master control board.
In the above example, when the first main control board A1 is replaced by the first new main control board B1, the staff is further provided with a board replacing and upgrading identification file on the second main control board A2, wherein a specific directory and file is/sysdisk 0/sscupgrade/upgradecfg. Ini file, and meanwhile, the first new main control board B1 downloads a service configuration file startrun. Dat from the second main control board A2.
And S603, when the new main control board fails to download the board changing upgrading identification file and the service configuration file, the new main control board is started as a standby main control board, and S602 is executed.
It should be understood that, due to the inconsistency with the version file of the original master control board, the single board restarts, and requests the version file from the original master control board after restarting, but since the original master control board does not support the new master control board, the new master control board fails to start, and then the restarting is continued.
In the above example, further, when the first new main control board B1 fails to download the board change upgrade identification file and the service configuration file from the second main control board A2, S602 is repeatedly executed.
S604, when the new main control board downloads the board-changing upgrading identification file and the service configuration file successfully, the new main control board is used as a main control board to start, and the board-to-board communication between the main control board and other single boards is closed.
In the above example, further, when the first new main control board B1 downloads the board change upgrade identification file and the service configuration file from the second main control board A2 successfully, the board communication between the first new main control board B1 and the second main control board A2 and other line cards of the communication device is closed.
S605, the new main control board converts the downloaded service configuration file into a service configuration file which can be identified by the board, and then the service configuration file is loaded when the software is started.
In the above example, further, the first new main control board B1 converts the downloaded startrun. Dat file into a service configuration file that can be identified by the board, and then loads the service configuration file startrun. Dat when the software is started.
S606, after the new main control board service configuration file is loaded, the original main control board is notified to reset.
The above example is received, and further, after the loading of the service configuration file of the first new main control board B1 is completed, the second main control board A2 is notified to reset in a mode of connecting logic hardware.
Optionally, whether the second main control board A2 is reset is monitored in a first preset time period, and when the second main control board A2 is monitored to be not reset, a notification message is issued again to inform the second main control board A2 that the second main control board A2 needs to be reset, wherein the first preset time period can take 15 minutes.
S607, after the original main control board is reset, all the line cards on the new main control board are managed mechanically and electrically or on hardware, and all the line cards are notified to reset.
In the above example, further, the first new main control board B1 manages all the line cards on the machine or hardware, and notifies all the line cards to reset.
Optionally, after the second main control board A2 is reset, a second preset period of time may be waited to ensure that all the line cards on the first new main control board B1 can be managed mechanically or electrically or in hardware, where the second preset period of time may take 15 seconds.
And S608, the new main control board opens the board-to-board communication between the board and other boards, responds to the version requests of the other boards, and all boards capable of requesting the version file can run new versions.
It should be understood that, in order to ensure smooth upgrade of the communication device, the new main control board will typically include a high-format version file that includes new software version files required by all the original line cards.
In the above example, further, 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 format version file on the first new main control board B1.
S609, another new main control board is inserted into the main control slot of the communication equipment.
The above example is received, and further, the second main control board A2 is replaced by the second new main control board B2.
Thus, the software and hardware upgrading of all single boards on the communication equipment is completed, the time of the original service interruption in the upgrading process depends on the starting time of the line card, and if a new service needs to be supported, reconfiguration is needed.
Fifth embodiment:
In order to solve the problems of complex operation of upgrading a communication device, longer service interruption time and lower upgrading efficiency in the upgrading process in the prior art, in the embodiment of the present invention, a communication device is provided, and as shown in fig. 7, the communication device provided in the embodiment includes a processor 701, a memory 702 and a communication bus 703.
The communication bus 703 in the present embodiment is used to implement connection communication between the processor 701 and the memory 702, and the processor 701 is then used to execute one or more programs stored in the memory 702 to implement the following steps:
the normal operation of the second main control board is kept, and the first main control board is updated;
and after the first main control board is successfully upgraded, upgrading the second main control board.
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, wherein one main control board is used as a main control board in normal operation, also called a main control board, and the other main control board is used as a protection main control board in abnormal operation, also called a standby main control board.
Optionally, in this embodiment, upgrading the first main control board includes replacing the first main control board with a first new main control board.
It should be understood that, since the second main control board is running normally at this time, in other words, the second main control board keeps communicating with the normal boards of other boards at this time, the second main control board is used as the active main control board, and the first new main control board is used as the standby main control board, where the first new main control board includes the high-format version file, the first main control board includes the low-format version file, for example, the first new main control board includes the 5G version file, and the first main control board includes the 4G version file.
Optionally, in this embodiment, after replacing the first main control board with the first new main control board, at least the following steps are further included:
the first new main control board downloads a board changing upgrading identification file and a service configuration file from the second main control board;
Closing the communication between the first new main control board and the boards of other single boards, and setting the first new main control board as the 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 recovers all the service configuration information, the first new main control board notifies the second main control board to reset;
The second main control board resets to be used as a standby main control board.
It should be understood that the board change upgrade identification file on the second main control board may be manually configured by a worker when replacing the first main control board with the first new main control board, where the board change upgrade identification file is used for the first new main control board to set the first new main control board as the main control board according to the board change upgrade identification file.
In some examples, the first new main control board may only download the service configuration file from the second main control board, without downloading the board change upgrade identification file, and the second main control board may issue an identification or command for setting the second main control board as the active main control board to the first new main control board according to the board change upgrade identification file thereon.
In some examples, the service profile includes a communication device network attribute profile that is integrated together.
It should be understood that the other boards in this embodiment refer to the second main control board and the line card on the communication device, that is, the board-to-board communication between the first new main control board and the second main control board and the line card is closed.
Further, the service configuration file is loaded on the first new main control board to recover the service configuration information.
In some examples, before loading the service profile, converting the service profile to enable the first new master control board to identify the profile is also included.
Further, after the first new main control board finishes loading the service configuration file, i.e. after all the service configuration information is restored, the first new main control board notifies the second main control board to reset, i.e. restart, optionally, the first new main control board notifies the second main control board to reset in a mode of connecting logic hardware.
In some examples, after the first new main control board finishes loading the service configuration file, i.e. after recovering all the service configuration information, it also includes monitoring whether the second main control board resets or not in a first preset time period, and when the second main control board is monitored not to reset, issuing a notification message again to inform the second main control board that the second main control board needs to reset, where in practical application, the first preset time period can be flexibly set by a developer according to experiments or experience, for example, the first preset time period is set to 15 minutes.
Further, the second main control board resets after receiving the reset notification, and at this time, the second main control board is used as a standby main control board.
Optionally, in this embodiment, after the second main control board resets to be used as the standby main control board, at least the following steps are further included:
the first new main control board informs all line cards of resetting;
all the line cards are reset.
In some examples, after the second main control board resets as the standby main control board, a second preset period of time may be waited to ensure that all line cards on the first new main control board may be managed mechanically or in hardware. In practical application, the second preset time period may be flexibly set by a developer according to experiments or experience, for example, the first preset time period is set to 30 seconds.
It should be appreciated that all line cards are reset separately upon receiving a line card reset notification.
Optionally, after all the line cards are reset, the method further includes starting inter-board communication between the first main control board and other single boards to answer version requests of the other single boards.
It should be noted that, for all other line cards, the service of the communication device can be recovered to normal operation after the line cards request from the first new main control board to the high-format version file, and for the second main control board, the second main control board may not be started, i.e. the reset fails, because the high-format version file stored on the first new main control board is not supported, and at this time, the second main control board can be upgraded. The service recovery of the communication device refers to an original service on the communication device, if the communication device needs to support a new service, such as a 5G service, a new line card supporting the 5G service needs to be inserted, and for a high-low format version file, the original service configuration of the communication device may not be compatible, in order to ensure compatibility, a txt script loading mode may be used to recover the service, and if the txt script mode is also not compatible, the first new main control board performs compatibility conversion, and converts the txt script into a txt script that can be identified by the high-format version file.
Optionally, in this embodiment, upgrading the second main control board includes replacing the second main control board with a second new main control board.
It should be understood that, because the first new main control board is normally operated at this time, the first new main control board is used as a main control board, and the replaced second new main control board is used as a standby main control board, where the second new main control board includes a high-format version file, 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.
Optionally, the line card in the embodiment carries a storage medium or does not carry a storage medium, wherein when the line card carries the storage medium, a version file or a version file which can not be stored may be stored in the storage medium, and when the version file is stored in the storage medium, at least three modes are included:
the first mode is to 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.
And secondly, operating the version file by taking the version file stored in the line card storage medium as the reference.
And comparing the version file of the first new main control board with the version file in the line card storage medium, downloading and operating the version file of the first new main control board when the version file of the first new main control board is the latest version, and operating the version file when the version file in the line card storage medium is the latest version.
It should be noted that the above-mentioned three common ways are listed, and in practical application, the adjustment can be flexibly performed according to the specific application scenario.
The communication equipment provided by the embodiment of the invention adopts the first main control board and the second main control board to perform centralized management, so that the normal operation of the second main control board is kept, the first main control board is upgraded, and further, after the first main control board is successfully upgraded, the second main control board is upgraded, thereby solving the problems of complex operation of the communication equipment upgrade, longer service interruption time and lower upgrade efficiency in the upgrade process in the prior art. The communication equipment provided by the embodiment of the invention keeps the normal operation of the second main control board when the first main control board is upgraded, and keeps the normal operation of the first main control board which is successfully upgraded when the second main control board is upgraded, and the service interruption time in the upgrading process only depends on the starting time of the line card, but not depends on the starting time of the main control board, the loading service configuration time of the main control board and the line card starting time, so that the whole service interruption time is obviously shortened, and the upgrading efficiency of the communication equipment is greatly improved.
Meanwhile, the embodiment of the invention also provides a computer readable storage medium, wherein 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 according to the first to third embodiments.
Computer-readable storage media include volatile or nonvolatile, removable or non-removable media implemented in any method or technology for storage of information such as computer-readable instructions, data structures, computer program modules or other data. Computer-readable storage media includes, but is not limited to, RAM (Random Access Memory ), ROM (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 Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a computer.
It will be apparent to one skilled in the art that all or some of the steps of the methods, systems, functional modules/units in the apparatus disclosed above may be implemented as software (which may be implemented in program code executable by a computing apparatus), firmware, hardware, and suitable combinations thereof. In a 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, one physical component may have a plurality of functions, or one function or step may be cooperatively performed by several physical components. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer-readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media), for execution by a computing device, and in some cases, the steps shown or described may be performed in a different order than that described herein. The term computer storage media includes both volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as known to those skilled in the art.
Furthermore, as is well known to those of ordinary skill in the art, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media. Therefore, the present invention is not limited to any specific combination of hardware and software.
The foregoing is a further detailed description of embodiments of the invention in connection with the specific embodiments, and it is not intended that the invention be limited to the specific embodiments described. It will be apparent to those skilled in the art that several simple deductions or substitutions may be made without departing from the spirit of the invention, and these should be considered to be within the scope of the invention.

Claims (8)

1. An upgrade method applied to a communication device comprising a first main control board and a second main control board, comprising:
maintaining the normal operation of the second main control board, and replacing the first main control board with a first new main control board, wherein the first new main control board is used as a standby main control board, the first new main control board comprises a high-format version file, and the first main control board comprises a low-format version file;
After the first main control board is successfully upgraded, the second main control board is upgraded;
After the first main control board is replaced by the first new main control board, the method further comprises the following steps:
The first new main control board downloads a board changing upgrading identification file and a service configuration file from the second main control board;
Closing the communication between the first new main control board and the boards of other single boards, and setting the first new main control board as a 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 the service configuration information, the first new main control board notifies the second main control board to reset;
and the second main control board resets to serve as a standby main control board.
2. The upgrade method of claim 1, wherein after the second main control board resets as the standby main control board, further comprising:
The first new main control board informs all line cards of resetting;
and resetting all the line cards.
3. The upgrade method of claim 1, wherein the second main control board is upgraded when the second main control board fails to reset;
The upgrading of the second main control board includes:
the second main control board is replaced by a second new main control board, the second new main control board is used as a standby main control board, the second new main control board comprises a high-format version file, and the second main control board comprises a low-format version file.
4. The upgrade method of claim 2, wherein after the resetting of all line cards, further comprising:
And starting the inter-board communication of the first main control board and other single boards.
5. The upgrade method of claim 2, wherein the line card carries a storage medium or does not carry a storage medium;
When the line card carries a storage medium, the storage medium stores version files or non-stored version files.
6. The upgrade method of claim 5, wherein when the version file is stored in the storage medium, comprising:
Downloading and running the version file of the first new main control board based on the version file of the first new main control board;
or, operating the version file based on the version file stored in the line card storage medium;
Or comparing the version file of the first new main control board with the version file in the line card storage medium, downloading and operating the version file of the first new main control board when the version file of the first new main control board is the latest version, and operating the version file when the version file in the line card storage medium is the latest version.
7. A communication device comprising a processor, a memory, and a communication bus;
the communication bus is used for realizing connection communication between the processor and the memory;
the processor is configured to execute one or more computer programs stored in a memory to implement the steps of the upgrade method according to 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, the one or more programs are executable by one or more processors to implement the steps of the upgrade method as recited in any one of claims 1-6.
CN201910804251.8A 2019-08-28 2019-08-28 Upgrade method, communication device and computer readable storage medium Active CN112445503B (en)

Priority Applications (2)

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

Applications Claiming Priority (1)

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

Publications (2)

Publication Number Publication Date
CN112445503A CN112445503A (en) 2021-03-05
CN112445503B true CN112445503B (en) 2025-07-22

Family

ID=74684445

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910804251.8A Active CN112445503B (en) 2019-08-28 2019-08-28 Upgrade method, communication device and computer readable storage medium

Country Status (2)

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

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113485728A (en) * 2021-05-26 2021-10-08 北京融讯科创技术有限公司 Server software upgrading method and device, server and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102081540A (en) * 2011-01-18 2011-06-01 杭州华三通信技术有限公司 Distributed dual-master control network equipment software updating method and device
CN207339902U (en) * 2017-10-16 2018-05-08 新华三技术有限公司 Equipment cabinets and electronic equipment

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100466550C (en) * 2006-09-13 2009-03-04 杭州华三通信技术有限公司 Method, device and system for realizing multi-service board architecture
CN101888304A (en) * 2009-05-15 2010-11-17 华为技术有限公司 Method, device and system for upgrading routing equipment
CN102136930B (en) * 2010-09-03 2014-02-19 华为技术有限公司 A version upgrade method and routing device
CN102739442B (en) * 2012-06-06 2018-07-31 中兴通讯股份有限公司 A kind of method and system carrying out software upgrading to equipment
US8813061B2 (en) * 2012-10-17 2014-08-19 Movimento Group Module updating device
CN105677380B (en) * 2014-11-21 2020-11-06 中兴通讯股份有限公司 Method and device for board-by-board upgrading of double master control isolations
CN109525434B (en) * 2018-12-13 2022-02-22 中国航空工业集团公司上海航空测控技术研究所 Redundancy backup method based on onboard equipment board card

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102081540A (en) * 2011-01-18 2011-06-01 杭州华三通信技术有限公司 Distributed dual-master control network equipment software updating method and device
CN207339902U (en) * 2017-10-16 2018-05-08 新华三技术有限公司 Equipment cabinets and electronic equipment

Also Published As

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

Similar Documents

Publication Publication Date Title
US7174547B2 (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
US8549510B2 (en) Firmware update apparatus and method
EP2375323A1 (en) Firmware image update and management
CN109032846A (en) Equipment remote backup upgrade method, device, computer storage medium and equipment
CN110083374A (en) A kind of upgrading rollback method, system and terminal device
CN109634638B (en) A cluster software upgrade method, device, equipment and medium
EP2652599A1 (en) System reset
CN109992450A (en) System upgrade backing method, terminal, server and storage medium
CN113032183A (en) System management method, device, computer equipment and storage medium
CN112445503B (en) Upgrade method, communication device and computer readable storage medium
CN102880478A (en) Software updating method
CN113391959B (en) Method, device, equipment and medium for preventing error in upgrading rollback of power monitoring system container
EP3260981B1 (en) Information processing apparatus, information processing system, and information processing method for updating firmware
CN114281391A (en) An electronic device and a system software upgrade method, device and medium thereof
KR100832269B1 (en) Program update method and system of wireless communication terminal
CN106933604B (en) System upgrading method and device
US20250231755A1 (en) Bmc heterogenous upgrading method and system, device, and readable storage medium
CN118631656A (en) Storage system upgrade method, device, equipment and computer-readable storage medium
CN104503811A (en) Method and system for upgrading communication device based on single memory area
CN113721959A (en) Information processing method and device and electronic equipment
US11714631B2 (en) Method, electronic device, and computer program product for managing operating system
US20250315248A1 (en) Remote Software Updates with Storage Repartition
US20240118975A1 (en) Iinformation processing system, management apparatus, management method, and program
CN119987813B (en) Application upgrading method, smart card and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant