CN104320475B - A kind of device updating method and device - Google Patents

A kind of device updating method and device Download PDF

Info

Publication number
CN104320475B
CN104320475B CN201410603190.6A CN201410603190A CN104320475B CN 104320475 B CN104320475 B CN 104320475B CN 201410603190 A CN201410603190 A CN 201410603190A CN 104320475 B CN104320475 B CN 104320475B
Authority
CN
China
Prior art keywords
subsystem
upgrading
module
interface
main control
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
CN201410603190.6A
Other languages
Chinese (zh)
Other versions
CN104320475A (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.)
New H3C Technologies Co Ltd
Original Assignee
New H3C Technologies Co Ltd
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 New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201410603190.6A priority Critical patent/CN104320475B/en
Publication of CN104320475A publication Critical patent/CN104320475A/en
Application granted granted Critical
Publication of CN104320475B publication Critical patent/CN104320475B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Hardware Redundancy (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a kind of device updating methods, the first subsystem and the second subsystem are configured by main control board, slave control board and the multiple interface boards in equipment, when including: that main control board receives edition upgrading file, interface board in first subsystem is kept into communication, the interface board of second subsystem is stopped into communication, and notifies slave control board that the second subsystem is carried out edition upgrading;For main control board after confirming the edition upgrading of the second subsystem, the interface board of the second subsystem is restored communication by notice slave control board, and the interface board of the first subsystem is stopped communicating;First subsystem is carried out edition upgrading by main control board, and the interface board of the first subsystem is restored communication after upgrading, to guarantee to have at any time in escalation process a subsystem can be with correspondence with foreign country, to realize not interrupting for service traffics in escalation process.The invention also discloses a kind of equipment upgrade devices.

Description

Equipment upgrading method and device
Technical Field
The present invention relates to the field of communications devices, and in particular, to a device upgrading method and apparatus.
Background
The current frame type equipment generally has a structure of double main control boards and a plurality of interface boards. The main control board mainly completes the management work of all the devices on the frame and simultaneously realizes the data exchange function in each board card in the frame. The interface board mainly provides a user interface. The double main control boards comprise a main control board and a standby main control board. At any working moment, the main control board manages the interface board; the standby main control board will take the place of the main control board to manage the interface board when the main control board has a problem.
When the version of the boxed device is not compatible to be upgraded, there are generally two methods:
firstly, the whole frame type equipment is restarted after setting new version software as a starting file. The upgrading mode is simple and rough, and the service between the interface board and the outside world is completely interrupted in the whole restarting process.
And secondly, version upgrading is realized by isolating the standby main control board. Specifically, the standby main control board is restarted, and the standby main control board enters an isolation state after being started by new version software and does not interact with other interface boards in the frame type equipment. And restarting all the interface boards and the main master control board. When the main control board is restarted, the standby main control board releases the isolation and is switched to a new main control board to take over all the interface boards; and the original main control board automatically becomes a new standby main control board after being started by the new version software. The interface board loads new version software from the new main control board, and then completes the version update of the whole frame type equipment.
For the first upgrading method, the upgrading method is simple and rough, and the service flow between the interface board and the outside world is completely interrupted in the whole restarting process.
For the second upgrading method, since all interface boards are restarted after the new version software is still reloaded, the service flow is still completely interrupted in the process.
The interruption of the service flow can cause the instability of the system, and great inconvenience is brought to operators and users.
Disclosure of Invention
In view of the above, the present invention provides an apparatus upgrading method and apparatus to solve the above problems.
In order to achieve the above purpose, the technical solution of the embodiment of the present invention is realized as follows:
the embodiment of the invention provides an equipment upgrading method, wherein the equipment comprises an active main control board, a standby main control board and at least two interface boards, at least one of the active main control board and the interface boards is configured as a first subsystem, and the rest at least one of the standby main control board and the interface boards is configured as a second subsystem.
The upgrading method comprises the following steps:
a. when the main control board receives the version upgrading file, the interface board in the first subsystem is kept in communication, the interface board of the second subsystem is stopped from communicating, and the standby main control board is informed to upgrade the version of the second subsystem;
b. after confirming that the version of the second subsystem is upgraded, the main control board informs the standby main control board to recover the communication of the interface board of the second subsystem, and stops the communication of the interface board of the first subsystem;
c. and the main control board carries out version upgrading on the first subsystem and restores the communication of the interface board of the first subsystem after the upgrading is finished.
Optionally, in step a, the stopping, by the master control board, the communication of the interface board of the second subsystem includes:
the main control board informs the standby main control board to stop the communication of the interface board of the second subsystem;
or,
and the main control board directly stops the communication of the interface board of the second subsystem.
Optionally, in step a, the notifying, by the active main control board, the standby main control board to upgrade the version of the second subsystem includes: the main control board informs the standby main control board of version upgrading, and after the upgrading is finished, the standby main control board restarts all interface boards in the second subsystem to perform version upgrading;
in step c, the upgrading the version of the first subsystem by the main control board includes: the main master control board firstly upgrades the version of the main master control board, and then restarts all interface boards in the first subsystem to upgrade the version.
Optionally, in step b, the determining, by the active main control board, that the version upgrade of the standby main control board is completed includes:
the first subsystem periodically inquires whether the second subsystem is upgraded or not, or
And the second subsystem informs the first subsystem after upgrading.
Optionally, before version upgrading, performing interaction of a control message and a service message between the active main control board and the standby main control board;
in step a, before version upgrading is performed on the second subsystem, the service accessed to the second subsystem is delivered to the first subsystem for processing by using a redundant link.
Optionally, in step a, after the master control board notifies the standby master control board to perform the version upgrade of the second subsystem, only control message interaction is performed between the master control board and the standby master control board;
in step c, after the primary main control board upgrades the version of the first subsystem, the interaction of the control message and the service message is recovered between the primary main control board and the standby main control board.
Optionally, a mute flag is set for both the first subsystem and the second subsystem, and when the mute flag is enabled, the interface board keeps communication; when the silent mark is not enabled, the interface board stops communication;
in step a, when the master control board receives the version upgrade file, enabling the silent flag of the first subsystem, and disabling the silent flag of the second subsystem;
in step b, after confirming that the version of the second subsystem is upgraded, the main control board enables the silent flag of the second subsystem, and the silent flag of the first subsystem is disabled;
in step c, the main control board enables the silent flag of the first subsystem after the version of the first subsystem is upgraded.
The embodiment of the invention also provides an equipment upgrading device, wherein the equipment comprises a main control board, a standby main control board and at least two interface boards, and the upgrading device comprises a configuration module, a first upgrading module and a first interface control module which are arranged on the main control board, and a second upgrading module and a second interface control module which are arranged on the standby main control board;
the configuration module configures at least one interface board in the main control board and the interface board as a first subsystem, and configures the rest at least one interface board in the standby main control board and the interface board as a second subsystem;
when the first upgrading module receives the version upgrading file, the first interface control module is informed to keep the interface board of the first subsystem in communication, the second interface control module is informed to stop the communication of the interface board of the second subsystem, and the second upgrading module is informed to carry out the version upgrading of the second subsystem;
after confirming that the version of the second subsystem is upgraded to the second upgrading module, the first upgrading module notifies the second interface control module through the second upgrading module, switches the interface board of the second subsystem to a communication state, and notifies the first interface control module to stop communication of the interface board of the first subsystem;
the first upgrading module upgrades the version of the first subsystem, and informs the first interface control module to recover the communication of the interface board of the first subsystem after upgrading.
Optionally, the notifying, by the first upgrade module, the second interface control module to stop communication of the interface board of the second subsystem includes:
the first upgrading module informs the second upgrading module, and then the second upgrading module informs the second interface control module to stop the communication of the interface board of the second subsystem;
or,
and the first upgrading module directly informs the second interface control module to stop the communication of the interface board of the second subsystem.
Optionally, the notifying, by the first upgrade module, the second upgrade module to perform version upgrade of the second subsystem includes: the first upgrading module informs the second upgrading module of upgrading the version of the standby main control board, and after the upgrading is finished, the second upgrading module informs the second interface control module of restarting all interface boards in a second subsystem to upgrade the version;
the first upgrading module upgrading the version of the first subsystem comprises: the first upgrading module upgrades the version of the main control board first and then informs the first interface control module to restart all interface boards in the first subsystem to upgrade the version.
Optionally, the step of the first upgrade module confirming that the version upgrade of the second subsystem is completed to the second upgrade module includes:
the first upgrading module periodically inquires whether the second subsystem of the second upgrading module is upgraded; or,
and the second upgrading module informs the first upgrading module after confirming that the second subsystem is upgraded.
Optionally, before version upgrade, interaction between a control message and a service message is performed between the first upgrade module and the second upgrade module;
when the version-up is performed,
before the second upgrading module carries out version upgrading of the second subsystem, the second interface control module transmits the service accessed to the interface board of the second subsystem to the second upgrading module, and the second upgrading module transmits the service to the first upgrading module by using a redundant link technology and transmits the service to the first interface control module for processing by the first upgrading module.
Optionally, after the first upgrade module notifies the second upgrade module to perform version upgrade, only control message interaction is performed between the first upgrade module and the second upgrade module;
and after the version of the first subsystem is upgraded by the first upgrading module, restoring the interaction of the control message and the service message between the first upgrading module and the second upgrading module.
Optionally, the first interface control module and the second interface control module both control the communication state of an interface board through a mute flag, and when the mute flag is enabled, the interface board keeps communicating; when the silent mark is not enabled, the interface board stops communication;
when the first upgrading module receives the version upgrading file, the first interface control module is informed to enable the silent mark, and the second interface control module disables the silent mark;
after confirming that the version of the second subsystem is upgraded to the second upgrading module, the first upgrading module informs the first interface control module to disable the silent flag, and the second interface control module enables the silent flag;
and the first upgrading module informs the first interface control module to enable the silent mark after the version upgrading of the first subsystem is carried out.
The equipment upgrading method and the equipment upgrading device divide the main control board, the standby main control board and the interface board into two different subsystems, and one subsystem communicates with the outside and the other subsystem restarts and upgrades the version, thereby ensuring that one subsystem can communicate with the outside at any time in the upgrading process so as to realize uninterrupted service flow in the upgrading process.
In addition, in the upgrading process of the equipment, the main control board and the standby main control board only carry out the interaction of the control message and do not carry out the interaction of the service message, and the main control board and the standby main control board recover the interaction of the service message and the control message after the upgrading is finished, thereby not only avoiding the loss of service data, but also reducing the interaction of the service data between the two main control boards in the upgrading process.
Drawings
FIG. 1 is a flow chart of a method for upgrading a device in an embodiment of the present invention;
FIG. 2 is a schematic diagram of an apparatus according to an embodiment of the present invention;
fig. 3 is a block diagram of the main control board and the standby main control board in the embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in detail below with reference to the accompanying drawings by specific embodiments.
In order to solve the technical problem of traffic interruption of an interface board caused by device upgrade, this embodiment provides a device upgrade method, as shown in fig. 1, where the device includes a standby main control board, an active main control board, and a plurality of interface boards, where at least one of the active main control board and the interface boards is configured as a first subsystem, and the remaining at least one of the standby main control board and the interface boards is configured as a second subsystem.
The division mode of the two subsystems can be planned when the frame type equipment is designed, for example, the front interface boards are divided into a first subsystem, and the rear interface boards are divided into a second subsystem; the division can also be done by software auto-calculation or user configuration and signaled to the respective interface boards by flags.
First, it should be noted that the service traffic in this embodiment refers to a layer two traffic of an interface board of the frame device, that is, the service traffic directly forwarded through an interface of the interface board.
In addition, it should be noted that the device upgrading method and apparatus in this embodiment are mainly used in situations where version upgrading is incompatible. As for the upgrade of compatible versions on the main and standby main control boards, although the method can also be applied, the upgrade can be realized by a simpler method in actual use, namely, each single board is directly and independently restarted and upgraded without dividing two subsystems.
When version upgrading is carried out, the first subsystem and the second subsystem have two working modes: a normal operating mode and an isolated mode. In a normal working mode, the interface board of the first subsystem and the interface board of the second subsystem are both in a communication state, and the interaction of control messages and service messages is performed between the main control board and the standby main control board. The communication states in this embodiment all refer to that the interface board can forward the service data, and are not described in detail hereinafter. The working mode is the same as the normal working mode of the whole frame type equipment in the prior art.
In the isolation mode, the interface board of the first subsystem or the interface board of the second subsystem is in a communication state, and only the interaction of the control messages is performed between the main control board and the standby main control board. There are various control messages, including, for example, but not limited to: informing the opposite side subsystem to stop the external communication, inquiring whether the opposite side subsystem is upgraded or not, and the like.
Specifically, in order to implement the isolated mode of a first subsystem and a second subsystem, a silence flag is set for both the first subsystem and the second subsystem, and when the silence flag is enabled, the interface board keeps communication; and when the silent mark is not enabled, the interface board stops communication.
The silence flag may be implemented by hardware: such as a logic circuit arranged on the interface board, and the logic circuit is connected with the main control board. For example, when the first subsystem performs version upgrade, the main control board controls the interface of the interface board to close through the logic circuit. In addition, the silence flag may also be implemented by software: for example, the main control board is set to monitor the state of the interface board, and when it is known that the first subsystem performs version upgrade, the interface of the interface board is controlled to be closed.
In addition, the silence flags of the two subsystems are logically mutually exclusive. For convenience of description, the above-described embodiment adopts a manner of setting the mute flag in the first subsystem and the second subsystem, respectively. Alternatively, the logical mutual exclusion of the two subsystems in the isolated mode can also be realized by setting a control flag.
When version upgrading is carried out, the upgrading method comprises the following steps:
a. and when the main control board receives the version upgrading file, the interface board of the first subsystem is kept in communication, the interface board of the second subsystem is stopped from communicating, and the standby main control board is informed to upgrade the version of the second subsystem.
In this step, the stopping, by the master control board, the communication of the interface board of the second subsystem includes: the main control board informs the standby main control board to stop the communication of the interface board of the second subsystem; or the main control board directly stops the communication of the interface board of the second subsystem.
The informing, by the active main control board, the standby main control board of the version upgrade of the second subsystem includes: and the main control board informs the standby main control board of version upgrading, and after the upgrading is finished, the standby main control board restarts all interface boards in the second subsystem to carry out version upgrading.
In addition, specifically, in this step, when the main control board receives the version upgrade file, the interface board of the first subsystem maintains communication, and the interface board of the second subsystem stops communication: enabling the silent mark of the first subsystem to enable the interface board of the first subsystem to keep communication, and disabling the silent mark of the second subsystem to enable the interface board of the second subsystem to stop communication.
In addition, before version upgrading, the interaction of control messages and service messages is performed between the main control board and the standby main control board, that is, the main control board and the standby main control board are both in a normal working mode.
In this step, before the version of the second subsystem is upgraded, the service accessed to the second subsystem is processed by the first subsystem using a redundant link (e.g., a cross-board aggregation technology), so as to ensure timely processing of the service and avoid the upgrade from affecting the service.
After the main control board informs the second subsystem to perform version upgrade, only control message interaction is performed between the main control board and the standby main control board, that is, the main control board and the standby main control board are both in an isolation mode.
b. And after confirming that the version of the second subsystem is upgraded, the main control board informs the standby main control board that the interface board of the second subsystem is switched to a communication state, and stops the communication of the interface board of the first subsystem.
In concrete implementation, after confirming that the version of the second subsystem is upgraded, the main control board enables the silent flag of the second subsystem, and the silent flag of the first subsystem is disabled.
In addition, in this step, the determining that the version upgrade of the standby main control board is completed by the main control board includes:
the first subsystem periodically queries whether the second subsystem is upgraded. If the system is specifically implemented, the first subsystem periodically sends an inquiry message to inquire whether the second subsystem is upgraded or not; after the second subsystem finishes upgrading, sending a reply message to the first subsystem to trigger the first subsystem to stop external communication and upgrade the version;
or the second subsystem informs the first subsystem after upgrading is finished so as to trigger the first subsystem to stop external communication and carry out version upgrading.
c. And the main control board carries out version upgrading on the first subsystem and restores the communication of the interface board of the first subsystem after the upgrading is finished.
In this step, after the version of the first subsystem is upgraded, the main control board enables the silent flag of the first subsystem.
In this step, the version-up of the first subsystem includes: the main master control board firstly upgrades the version of the main master control board, and then restarts all interface boards in the first subsystem to upgrade the version.
In this step, after the version of the first subsystem is upgraded, the interaction between the control message and the service message is restored between the main control board and the standby main control board, that is, the main control board and the standby main control board are restored to the normal operating mode.
It can be seen from the above description that, in the device upgrading method according to the embodiment of the present invention, the main control board, the standby control board, and the interface board are divided into two different subsystems, and when version upgrading is performed, one subsystem performs external communication, and the other subsystem performs restart upgrading, so that it is ensured that one subsystem can perform external communication at any time during upgrading, and uninterrupted service flow during upgrading is achieved.
In addition, in the upgrading process of the equipment, the main control board and the standby main control board only carry out the interaction of the control message and do not carry out the interaction of the service message, and the main control board and the standby main control board recover the interaction of the service message and the control message after the upgrading is finished, thereby not only avoiding the loss of service data, but also reducing the interaction of the service data between the two main control boards in the upgrading process.
In addition, it should be noted that:
1. the standby main control board does not manage the interface board in the normal working mode, and the main and standby main control boards can be switched before upgrading. However, when the system is in an upgrade state, the system manages the management services of the main control board (main control board) of each interface, and the main control board (standby main control board) managing each interface is upgraded, that is, at any upgrade time, the subsystem where the standby main control board is located is upgraded first, and the subsystem where the main control board is located is upgraded later, which corresponds to the present invention, that is, the second subsystem is upgraded first, and the first subsystem is upgraded later.
2. The on-off control of the service message between the main control board and the standby main control board can be realized by controlling the interactive chips on the main control board and the standby main control board. If the first subsystem carries out service upgrade, the port is closed by setting the interactive chip on the main control board, thereby completing the filtration (hardware) of service messages; the method can also be realized by setting a mark through software, namely after the mark is set through the software, the message filtering between the two sets of subsystems is completed through the software, for example, when the first subsystem carries out service upgrading, the port is closed through setting the mark on the main control board, thereby realizing the filtering (software) of the service message.
An embodiment of the present invention further provides an apparatus upgrading device, as shown in fig. 2 and fig. 3, including a main control board, a standby main control board, and at least two interface boards, where when performing version upgrading, both a first subsystem and a second subsystem have two working modes: a normal operating mode and an isolated mode. Both modes have been described in detail in the method section above and will not be described further here.
In addition, a silent flag is set for both the first interface control module and the second interface control module, and when the silent flag is enabled, the interface board keeps communication; and when the silent mark is not enabled, the interface board stops communication.
The silence flag may be implemented by hardware: if the logic circuit is arranged on the interface board, the logic circuit on the main control board is respectively connected with the first interface control module and the first upgrading module. For example, when the first subsystem performs version upgrade, the first upgrade module notifies the first interface control module through the logic circuit, and the first interface control module controls the interface of the interface board to be closed. In addition, the silence flag may also be implemented by software: for example, the first upgrade module is configured to monitor the status of the interface board, and notify the first interface control module to close the interface of the interface board when it is known that the first subsystem performs version upgrade.
Referring to fig. 3, the apparatus includes a first upgrade module, a first interface control module, and a configuration module, which are disposed on the main control board, and a second upgrade module and a second interface control module, which are disposed on the standby main control board;
the configuration module (not shown in fig. 3) configures at least one interface board of the active main control board and the interface board as a first subsystem, and configures the remaining at least one interface board of the standby main control board and the interface board as a second subsystem. The division mode of the two subsystems can be planned when the frame type equipment is designed, for example, the front interface boards are divided into a first subsystem, the rear interface boards are divided into a second subsystem, and the configuration module is triggered to act when a user uses the system. In this embodiment, the configuration module may be located on the main control board, and the main control board configures the first subsystem and the second subsystem; and each interface board records which subsystem the interface board belongs to according to the instruction of the configuration module.
When the version is upgraded, when the first upgrading module receives the version upgrading file, the first interface control module is informed to keep the interface board of the first subsystem in communication, the second interface control module is informed to stop the communication of the interface board of the second subsystem, and the second upgrading module is informed to upgrade the version of the second subsystem.
Wherein the notifying, by the first upgrade module, the second interface control module to stop communication with the interface board of the second subsystem includes: the first upgrading module informs the second upgrading module, and then the second upgrading module informs the second interface control module to stop the communication of the interface board of the second subsystem;
or the first upgrading module directly informs the second interface control module to stop the communication of the interface board of the second subsystem.
The first upgrading module informs the second upgrading module of the version upgrading of the second subsystem, and the step of upgrading the version of the second subsystem comprises the following steps: and the first upgrading module informs the second upgrading module of upgrading the version of the standby main control board, and after the upgrading is finished, the second upgrading module informs the second interface control module of restarting all interface boards in the second subsystem to upgrade the versions.
In addition, before version upgrading, interaction of control messages and service messages is carried out between the first upgrading module and the second upgrading module. After the first upgrade module notifies the second upgrade module to perform version upgrade, only control message interaction is performed between the first upgrade module and the second upgrade module, that is, the main control board and the standby main control board are both in the isolation mode.
When the version is upgraded, before the second upgrading module upgrades the version of the second subsystem, the second interface control module transmits the service accessed to the interface board of the second subsystem to the second upgrading module, and the second upgrading module transmits the service to the first upgrading module by using a redundant link (such as a cross-board aggregation technology) and transmits the service to the first interface control module for processing.
Specifically, the interface board of the first subsystem maintains communication, and the interface board of the second subsystem stops communication: when the first upgrading module receives the version upgrading file, the first interface control module is informed to open the silent mark, and the second interface control module closes the silent mark.
Then, after confirming that the version of the second subsystem is upgraded to the second upgrade module, the first upgrade module notifies the second interface control module via the second upgrade module to switch the interface board of the second subsystem to a communication state, and notifies the first interface control module to stop communication with the interface board of the first subsystem.
Wherein, the first upgrade module, after confirming to the second upgrade module that the version upgrade of the second subsystem is completed, includes: the first upgrade module periodically queries the second upgrade module whether the second subsystem is upgraded, such as but not limited to: the first upgrading module periodically sends an inquiry message to inquire whether the second upgrading module is upgraded.
Or the second upgrade module notifies the first upgrade module after confirming that the second subsystem is upgraded, for example but not limited to: and after the second upgrading module finishes upgrading, sending a reply message to the first upgrading module to trigger the first subsystem to upgrade the version.
Specifically, after confirming that the version of the second subsystem is upgraded to the second upgrade module, the first upgrade module notifies the first interface control module to disable the mute flag, and the second interface control module enables the mute flag, so as to switch the interface board of the second subsystem to maintain communication and the interface board of the first subsystem to stop communication.
And thirdly, the first upgrading module carries out version upgrading on the first subsystem, and informs the first interface control module to restore the communication of the interface board of the first subsystem after the upgrading is finished.
In specific implementation, after the version of the first subsystem is upgraded and the upgrade is completed, the first upgrade module notifies the first interface control module to enable the silent flag, so as to recover the communication of the interface board of the first subsystem.
Wherein, when the version upgrade of the first subsystem is performed: the first upgrading module upgrades the version of the main control board first and then informs the first interface control module to restart all interface boards in the first subsystem to upgrade the version.
And after the first upgrade module finishes the version upgrade of the first subsystem, the interaction of the control message and the service message is recovered between the first upgrade module and the second upgrade module, that is, the main control board and the standby main control board are recovered to a normal working mode.
In addition, it should be noted that: the on-off of the service message between the first upgrading module and the second upgrading module can be realized by controlling the interactive chips on the main control board and the standby main control board respectively by the first upgrading module and the second upgrading module. If the first subsystem carries out service upgrade, the first upgrade module controls the interactive chip on the main control board to close the port, thereby completing the filtration of service messages.
As can be seen from the above description, the device upgrading apparatus according to the embodiment of the present invention divides the main control board, the standby control board, and the interface board into two different subsystems, and when the version upgrade is performed, the interface board of one subsystem communicates with the outside, and the interface board of the other subsystem performs the restart upgrade, so as to ensure that the interface board of one subsystem can communicate with the outside at any time during the upgrade process, thereby implementing uninterrupted service traffic during the upgrade process.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (10)

1. An equipment upgrading method, the equipment includes main control board, spare main control board and at least two interface boards, characterized by that, configure at least one interface board in said main control board and said interface board as the first subsystem, configure the other at least one interface board in said spare main control board and said interface board as the second subsystem;
the upgrading method comprises the following steps:
a. when the main control board receives the version upgrading file, the interface board in the first subsystem is kept in communication, the interface board of the second subsystem is stopped from communicating, and the standby main control board is informed to upgrade the version of the second subsystem;
b. after confirming that the version of the second subsystem is upgraded, the main control board informs the standby main control board to recover the communication of the interface board of the second subsystem, and stops the communication of the interface board of the first subsystem;
c. the main master control board upgrades the version of the first subsystem and restores the communication of the interface board of the first subsystem after the upgrade is finished;
wherein,
in the step a, before the version of the second subsystem is upgraded, the service accessed to the second subsystem is delivered to the first subsystem for processing by using a redundant link;
in step a, the step of informing the standby main control board of the version upgrade of the second subsystem by the main control board includes: the main control board informs the standby main control board of version upgrading, and after the upgrading is finished, the standby main control board restarts all interface boards in the second subsystem to perform version upgrading;
in step c, the upgrading the version of the first subsystem by the main control board includes: the main master control board firstly upgrades the version of the main master control board, and then restarts all interface boards in the first subsystem to upgrade the version.
2. The device upgrading method according to claim 1, wherein in step a, the stopping, by the master main control board, the communication of the interface board of the second subsystem includes:
the main control board informs the standby main control board to stop the communication of the interface board of the second subsystem;
or,
and the main control board directly stops the communication of the interface board of the second subsystem.
3. The device upgrading method according to claim 1, wherein in step b, the step of confirming that the version upgrading of the standby main control board is completed by the main control board comprises:
the first subsystem periodically inquires whether the second subsystem is upgraded or not, or
And the second subsystem informs the first subsystem after upgrading.
4. The device upgrading method according to claim 1, wherein before version upgrading, interaction of control messages and service messages is performed between the primary main control board and the standby main control board;
in the step a, after the main control board informs the standby main control board to carry out the version upgrade of the second subsystem, only the interaction of control messages is carried out between the main control board and the standby main control board;
in step c, after the primary main control board upgrades the version of the first subsystem, the interaction of the control message and the service message is recovered between the primary main control board and the standby main control board.
5. The device upgrading method according to claim 1, wherein a mute flag is set for both the first subsystem and the second subsystem, and when the mute flag is enabled, the interface board keeps communicating; when the silent mark is not enabled, the interface board stops communication;
in step a, when the master control board receives the version upgrade file, enabling the silent flag of the first subsystem, and disabling the silent flag of the second subsystem;
in step b, after confirming that the version of the second subsystem is upgraded, the main control board enables the silent flag of the second subsystem, and the silent flag of the first subsystem is disabled;
in step c, the main control board enables the silent flag of the first subsystem after the version of the first subsystem is upgraded.
6. An equipment upgrading device, the equipment includes a main control board, a standby main control board and at least two interface boards,
the upgrading device comprises a configuration module, a first upgrading module and a first interface control module which are arranged on the main control board, and a second upgrading module and a second interface control module which are arranged on the standby main control board;
the configuration module configures at least one interface board in the main control board and the interface board as a first subsystem, and configures the rest at least one interface board in the standby main control board and the interface board as a second subsystem;
when the first upgrading module receives the version upgrading file, the first interface control module is informed to keep the interface board of the first subsystem in communication, the second interface control module is informed to stop the communication of the interface board of the second subsystem, and the second upgrading module is informed to carry out the version upgrading of the second subsystem;
after confirming that the version of the second subsystem is upgraded to the second upgrading module, the first upgrading module notifies the second interface control module through the second upgrading module, switches the interface board of the second subsystem to a communication state, and notifies the first interface control module to stop communication of the interface board of the first subsystem;
the first upgrading module carries out version upgrading on the first subsystem, and informs the first interface control module to restore the communication of an interface board of the first subsystem after the upgrading is finished;
wherein,
when the version is upgraded, before the second upgrading module upgrades the version of the second subsystem, the second interface control module transmits the service accessed to the interface board of the second subsystem to the second upgrading module, and the second upgrading module transmits the service to the first upgrading module by using a redundant link and transmits the service to the first interface control module for processing;
the first upgrading module informs the second upgrading module of the version upgrading of the second subsystem, and the step of upgrading the version of the second subsystem comprises the following steps: the first upgrading module informs the second upgrading module of upgrading the version of the standby main control board, and after the upgrading is finished, the second upgrading module informs the second interface control module of restarting all interface boards in a second subsystem to upgrade the version;
the first upgrading module upgrading the version of the first subsystem comprises: the first upgrading module upgrades the version of the main control board first and then informs the first interface control module to restart all interface boards in the first subsystem to upgrade the version.
7. The device upgrade apparatus according to claim 6, wherein the first upgrade module notifying the second interface control module to stop the communication of the interface board of the second subsystem comprises:
the first upgrading module informs the second upgrading module, and then the second upgrading module informs the second interface control module to stop the communication of the interface board of the second subsystem;
or,
and the first upgrading module directly informs the second interface control module to stop the communication of the interface board of the second subsystem.
8. The device upgrade apparatus according to claim 6, wherein the first upgrade module, after confirming to the second upgrade module that the version upgrade of the second subsystem is completed, includes:
the first upgrading module periodically inquires whether the second subsystem of the second upgrading module is upgraded; or,
and the second upgrading module informs the first upgrading module after confirming that the second subsystem is upgraded.
9. The device upgrading apparatus according to claim 6, wherein before version upgrading, interaction of control messages and service messages is performed between the first upgrading module and the second upgrading module;
after the first upgrading module informs the second upgrading module of version upgrading, only control message interaction is carried out between the first upgrading module and the second upgrading module;
and after the version of the first subsystem is upgraded by the first upgrading module, restoring the interaction of the control message and the service message between the first upgrading module and the second upgrading module.
10. The device upgrading apparatus according to claim 6, wherein the first interface control module and the second interface control module both control the communication status of an interface board through a mute flag, and when the mute flag is enabled, the interface board keeps communicating; when the silent mark is not enabled, the interface board stops communication;
when the first upgrading module receives the version upgrading file, the first interface control module is informed to enable the silent mark, and the second interface control module disables the silent mark;
after confirming that the version of the second subsystem is upgraded to the second upgrading module, the first upgrading module informs the first interface control module to disable the silent flag, and the second interface control module enables the silent flag;
and the first upgrading module informs the first interface control module to enable the silent mark after the version upgrading of the first subsystem is carried out.
CN201410603190.6A 2014-10-31 2014-10-31 A kind of device updating method and device Active CN104320475B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410603190.6A CN104320475B (en) 2014-10-31 2014-10-31 A kind of device updating method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410603190.6A CN104320475B (en) 2014-10-31 2014-10-31 A kind of device updating method and device

Publications (2)

Publication Number Publication Date
CN104320475A CN104320475A (en) 2015-01-28
CN104320475B true CN104320475B (en) 2019-01-18

Family

ID=52375643

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410603190.6A Active CN104320475B (en) 2014-10-31 2014-10-31 A kind of device updating method and device

Country Status (1)

Country Link
CN (1) CN104320475B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105573127A (en) * 2015-05-29 2016-05-11 宇龙计算机通信科技(深圳)有限公司 Remote control permission control method and device
CN107026743A (en) * 2015-06-24 2017-08-08 中兴通讯股份有限公司 The upgrade method of software version, device and communication equipment in communication equipment
CN106789863B (en) * 2016-04-25 2020-06-26 新华三技术有限公司 Matching rule upgrading method and device
CN107919976A (en) * 2016-10-10 2018-04-17 中兴通讯股份有限公司 Telecommunication apparatus upgrade-system and upgrade method
CN107046476A (en) * 2017-02-21 2017-08-15 杭州迪普科技股份有限公司 A kind of method and device of edition upgrading
CN107678764B (en) * 2017-09-30 2020-09-08 杭州迪普科技股份有限公司 Method and device for upgrading VSM system based on ISSU
CN109728886A (en) * 2017-10-27 2019-05-07 中兴通讯股份有限公司 A kind of method of data synchronization, device, equipment and storage medium suitable for cross-version upgrading
CN108459869A (en) * 2017-12-28 2018-08-28 新华三技术有限公司 ISSU upgrade methods and device
CN110895469A (en) * 2019-11-29 2020-03-20 深信服科技股份有限公司 Method and device for upgrading dual-computer hot standby system, electronic equipment and storage medium
CN113485728A (en) * 2021-05-26 2021-10-08 北京融讯科创技术有限公司 Server software upgrading method and device, server and storage medium
CN114745362B (en) * 2022-03-25 2023-08-29 中国科学院国家授时中心 Remote upgrading method and system based on optical fiber time service

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101888304A (en) * 2009-05-15 2010-11-17 华为技术有限公司 Updating method, device and system for routing equipment
CN102081540A (en) * 2011-01-18 2011-06-01 杭州华三通信技术有限公司 Distributed dual-master control network equipment software updating method and device
CN102195796A (en) * 2010-03-19 2011-09-21 杭州华三通信技术有限公司 Method and equipment for updating software version of distributed dual master control equipment
CN102968357A (en) * 2012-11-01 2013-03-13 中兴通讯股份有限公司 Software upgrading method and system for distributed communication device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040255186A1 (en) * 2003-05-27 2004-12-16 Lucent Technologies, Inc. Methods and apparatus for failure detection and recovery in redundant systems

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101888304A (en) * 2009-05-15 2010-11-17 华为技术有限公司 Updating method, device and system for routing equipment
CN102195796A (en) * 2010-03-19 2011-09-21 杭州华三通信技术有限公司 Method and equipment for updating software version of distributed dual master control equipment
CN102081540A (en) * 2011-01-18 2011-06-01 杭州华三通信技术有限公司 Distributed dual-master control network equipment software updating method and device
CN102968357A (en) * 2012-11-01 2013-03-13 中兴通讯股份有限公司 Software upgrading method and system for distributed communication device

Also Published As

Publication number Publication date
CN104320475A (en) 2015-01-28

Similar Documents

Publication Publication Date Title
CN104320475B (en) A kind of device updating method and device
CN101888304A (en) Updating method, device and system for routing equipment
CN101217678B (en) System upgrade method, system and device
CN102081540B (en) Distributed dual-master control network equipment software updating method and device
CN108984195B (en) Software upgrading method and device
CN104486394B (en) In-service Software Upgrade method and device
EP3407187B1 (en) Optical line terminal, and method for upgrading master device and slave device
CN103970567A (en) Method for on-line upgrading of cloud storage system firmware
CN102238093A (en) Service interruption prevention method and device
EP3076694B1 (en) Multiple connection management for bluetooth low energy devices
CN101980484B (en) A kind of method and system realizing router full guard
US10929254B2 (en) Data processing system providing service continuity protection
CN103441987A (en) Method and device for managing dual-computer firewall system
WO2006122486A1 (en) A method of updating and rolling back data of terminal device
CN102497288A (en) Dual-server backup method and dual system implementation device
WO2012155630A1 (en) Method, device, and system for disaster recovery
CN102148709A (en) Method and device for realizing main-standby monolithic board upgrading
CN104639615A (en) Data processing method and data processing device in controller cluster
WO2013037314A1 (en) System and method for use in data processing center disaster backup
JP5056504B2 (en) Control apparatus, information processing system, control method for information processing system, and control program for information processing system
CN101267351A (en) Realization method, system and device for online software upgrade based on application architecture
CN102307113B (en) System upgrading method, system and device
CN102983997A (en) Method and device for migrating master services
JP6953713B2 (en) Communication nodes, communication systems, communication methods and programs
CN114244769A (en) Method, equipment and storage medium for sending keep-alive message

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Applicant after: Xinhua three Technology Co., Ltd.

Address before: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Applicant before: Huasan Communication Technology Co., Ltd.

GR01 Patent grant
GR01 Patent grant