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.