CN108462529B - Main and standby board card switching method, optical transmission network equipment and storage medium - Google Patents

Main and standby board card switching method, optical transmission network equipment and storage medium Download PDF

Info

Publication number
CN108462529B
CN108462529B CN201810394499.7A CN201810394499A CN108462529B CN 108462529 B CN108462529 B CN 108462529B CN 201810394499 A CN201810394499 A CN 201810394499A CN 108462529 B CN108462529 B CN 108462529B
Authority
CN
China
Prior art keywords
board card
standby
main
card
states
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
CN201810394499.7A
Other languages
Chinese (zh)
Other versions
CN108462529A (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.)
Sino Telecom Technology Co inc
Original Assignee
Sino Telecom Technology Co inc
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 Sino Telecom Technology Co inc filed Critical Sino Telecom Technology Co inc
Priority to CN201810394499.7A priority Critical patent/CN108462529B/en
Publication of CN108462529A publication Critical patent/CN108462529A/en
Application granted granted Critical
Publication of CN108462529B publication Critical patent/CN108462529B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/03Arrangements for fault recovery
    • H04B10/038Arrangements for fault recovery using bypasses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/03Arrangements for fault recovery
    • H04B10/032Arrangements for fault recovery using working and protection systems

Abstract

The invention relates to a main and standby board card switching method, optical transmission network equipment and a storage medium, wherein the optical transmission network equipment comprises a first board card and a second board card which are main and standby, and the first board card and the second board card detect the working states of the board cards of the main board card and the standby board card of the opposite side and the main and standby state of the opposite side; the first board card and the second board card acquire a target main and standby state according to the detected board card working states of the first board card and the second board card and the main and standby state of the opposite side by using a main and standby negotiation rule and set as the main and standby state of the first board card and the second board card; the main control board card or the line card for standby can adopt the protection switching mechanism to realize protection, thereby effectively supplementing the unspecified protection scene in the standard protocol and greatly improving the reliability of the system.

Description

Main and standby board card switching method, optical transmission network equipment and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method for switching between active and standby boards, an optical transport network device, and a storage medium.
Background
With the rapid development of internet services, the number of internet users, the types of internet applications, the network bandwidth and the like all show explosive growth. Statistics from OIF show that the rate of annual average traffic growth of network operators is much higher than its rate of revenue growth, operators have to reduce the transmission cost per unit traffic to relieve their revenue pressure, and high capacity high speed intelligent optical transport network devices are employed to increase the overall capacity of the system transmission system as the most effective means to reduce TCO. The high-speed intelligent optical transmission network equipment multiplexes the client side signals to 10G, 40G and 100G ODUk, performs scheduling processing through distributed ODUk electric cross, completes sub-wavelength level processing, has the capability of smoothly upgrading to single channel 200G and 400G, supports complex networking, supports rapid service deployment and centralized scheduling, and can be used as a solution for constructing a backbone network and a metropolitan area core network. Therefore, it is important to improve the reliability and stability of these high-speed intelligent optical transport network devices in the transport network system.
The intelligent optical transmission network equipment generally adopts the reliability design schemes of equipment main backup, redundant configuration, load sharing and the like from hardware, and improves the reliability of the system by optimizing the fault detection and isolation measures of the system. The method comprises the following steps: the equipment adopts a multi-stage and distributed group machine control mode, a group machine processing system is formed by a plurality of CPUs, the functions of each module are definite, and the backup design or the anti-suspension design is considered in the communication among the modules; the hardware of the equipment can automatically detect faults, and the fault response is fast and the recovery time is short; the device also adopts an isolation mechanism, and when one entity cannot complete a certain function, the part of service is automatically transferred to other entities to operate. In addition, the equipment also adopts a redundancy design method to backup important functional modules, so that the equipment has stronger fault tolerance capability; and the important data is stored by adopting a nonvolatile memory, and the reliability and consistency of the data are ensured by adopting a foreground and background data backup mode. In terms of software, reliability is embodied in a strong fault tolerance capability. When a software fault occurs, the whole system cannot be crashed, namely the system has self-healing capability. The method comprises the following steps: providing occupation verification for various software resources in the system, and if the phenomenon of resource suspension caused by software abnormality occurs, ensuring the release of suspension resources by an inspection mechanism; the system performs data verification and performs timing or event driven data consistency check; when the task monitoring is carried out on the system, the monitoring processes are used for monitoring various internal errors of software and partial hardware errors, and the processes can monitor the running state of the task and process the abnormality of the system.
Therefore, a general active-standby switching system and method are needed to uniformly manage the intelligent optical transport network devices.
Disclosure of Invention
In view of the above-mentioned drawbacks of the prior art, an object of the present invention is to provide an optical transport network device, which solves the problems of the prior art.
To achieve the above and other related objects, the present invention provides a method for switching between active and standby boards, which is applied to an optical transport network device, where the optical transport network device includes a first board and a second board that are active and standby; the method comprises the following steps: the first board card and the second board card detect the working states of the board cards of the first board card and the second board card and the master and slave states of the opposite side; the first board card and the second board card acquire a target main and standby state according to the detected board card working states of the first board card and the second board card and the main and standby state of the opposite side by using a main and standby negotiation rule and set as the main and standby state of the first board card and the second board card.
In an embodiment of the present invention, the working states of the board card include: the board card is inserted into or pulled out of the state of whether the board card corresponding to the channel in the optical transmission network equipment is in the position or not; the master-slave negotiation rules include one or more of the following: 1) When the self-positioning is not detected, setting the main and standby states of the self-positioning to be standby; 2) When the main and standby states of the opposite side are detected to be in place and the opposite side is out of place, the main and standby states of the opposite side are set to be standby; 3) When the self-positioning is detected and the other side is positioned and the main and standby states of the other side are standby, the self-positioning main and standby states are set as main and standby states.
In an embodiment of the present invention, the working states of the board card include: a status of whether the board card is faulty or not; the master-slave negotiation rules include one or more of the following: 4) When the main and standby states of the main and standby states are set to be standby when the main and standby states are in place and the main and standby states are in fault and the standby state is normal; 5) When the self and the counterpart are in place and the self and the counterpart have faults, the main and standby states of the self are maintained unchanged; 6) When the main and standby states of the opposite party are in place and the opposite party fails and the main and standby states of the opposite party are main, the main and standby states of the opposite party are set to be standby; 7) When the main and standby states of the opposite party are standby and the opposite party is in place and the opposite party fails, the main and standby states of the opposite party are set as the main.
In an embodiment of the present invention, the working states of the board card include: whether the board clamp buckles or not; the master-slave negotiation rules include one or more of the following: 8) When the main and standby states of the counterpart are standby and the counterpart is in place and has no faults, the buckle of the counterpart is not buckled, and the main and standby states of the counterpart are standby, the main and standby states of the counterpart are set as main; 9) When the self and the counterpart are in place and have no faults, and the buckle of the counterpart is buckled and the main and standby states of the counterpart are standby, if the self buckle is not buckled, the main and standby states of the self are set to be standby; 10 When the main state and the standby state of the counterpart are in place and have no faults, the buckle of the counterpart is not buckled, and the main state and the standby state of the counterpart are main, the main state and the standby state of the counterpart are set as standby; 11 When the main and standby states of the counterpart are standby and the counterpart are in place, the main and standby states of the counterpart are set as the main use; 12 When the main and standby states of the counterpart are in place and the counterpart has no faults, and the buckles of the counterpart are buckled, the main and standby states of the counterpart are main, the main and standby states of the counterpart are set as standby.
To achieve the above and other related objects, the present invention provides an optical transport network device comprising: the first board card and the second board card are mutually active and standby; the first board card includes: the first processor and the first communicator, the second board card includes: a second processor and a second communicator; the first communicator is in communication connection with the second communicator; the first communicator and the second communicator are used for detecting the working states of the board card of the self board card and the board card of the opposite side board card and the main and standby states of the opposite side board card and respectively transmitting the working states to the first processor and the second processor which are connected with each other; the first processor and the second processor are used for running a state machine; the state machine is used for obtaining a target main-standby state according to the detected main-standby negotiation rules and the detected main-standby state of the board card of the state machine and the board card of the opposite side and setting the target main-standby state as the main-standby state of the board card of the state machine.
In an embodiment of the present invention, the working states of the board card include: the board card is inserted into or pulled out of the state of whether the board card corresponding to the channel in the optical transmission network equipment is in the position or not; the master-slave negotiation rules include one or more of the following: 1) When the self board card is not detected to be in position, setting the main and standby states of the self board card as standby; 2) When the self board card is detected to be in place and the opposite board card is not in place and the main and standby states of the opposite board card are main, setting the main and standby states of the self board card as standby; 3) When the self board card is detected to be in place and the opposite board card is in place and the main and standby states of the opposite board card are standby, the main and standby states of the self board card are set as main.
In an embodiment of the present invention, the working states of the board card include: a status of whether the board card is faulty or not; the master-slave negotiation rules include one or more of the following: 4) When the self board card and the opposite board card are in place and the self board card fails and the opposite board card is normal, setting the main and standby states of the self board card as standby; 5) When the self board card and the opposite board card are in place and the self board card and the opposite board card are in fault, the main and standby states of the self board card are maintained unchanged; 6) When the own board card and the opposite board card are in place and the opposite board card fails and the main and standby states of the opposite board card are main, setting the main and standby states of the own board card as standby; 7) When the own board card and the opposite board card are in place and the opposite board card fails and the main and standby states of the opposite board card are standby, the main and standby states of the own board card are set as main.
In an embodiment of the present invention, the working states of the board card include: whether the board clamp buckles or not; the master-slave negotiation rules include one or more of the following: 8) When the own board card and the opposite board card are in place and have no faults, the buckle of the opposite board card is not buckled, and the main and standby states of the opposite board card are standby, setting the main and standby states of the own board card as main use; 9) When the self board card and the opposite board card are in place and have no faults, and the buckle of the opposite board card is buckled and the main and standby states of the opposite board card are standby, if the buckle of the self board card is not buckled, the main and standby states of the self board card are set as standby; 10 When the own board card and the opposite board card are in place and have no faults, the buckle of the opposite board card is not buckled, and the main and standby states of the opposite board card are main, the main and standby states of the own board card are set as standby; 11 When the own board card and the opposite board card are in place and have no faults, the buckles of the two boards are buckled, and the main and standby states of the opposite board card are standby, the main and standby states of the own board card are set as main use; 12 When the own board card and the opposite board card are in place and have no faults, the buckles of the two parties are buckled, and the main and standby states of the opposite board card are main, the main and standby states of the own board card are set as standby.
In an embodiment of the present invention, the optical transport network device further includes: and the master-slave judging circuit is in communication connection with the first communicator and the second communicator and is used for judging the master-slave relation of the two parties when the master-slave state of the first board card and the second board card is detected to be the master state.
In an embodiment of the present invention, the first board card further includes: the first power supply monitoring circuit is in communication connection with the first communicator; the second board card further includes: and the first power supply monitoring circuit is in communication connection with the second communicator.
In an embodiment of the present invention, the first processor and the second processor are directly connected through an ethernet interface.
In an embodiment of the invention, the first communicator and/or the second communicator is a CPLD.
In an embodiment of the present invention, the first board card and the second board card are a main control card or a line card.
In an embodiment of the present invention, the first board card is a main master card, the second board card is a standby master card, the main master card and the standby master card are connected to a network management system, and the main master card and the standby master card are connected through a bus communication and are controlled by a line card of the main master card and the standby master card through the bus communication; the line card comprises a third processor, and the first processor, the second processor and the third processor are in communication connection through the bus.
In an embodiment of the present invention, the first board card is a first line card, the second board card is a second line card, the first board card is communicatively connected to an external communication device through a working channel, and the second board card is communicatively connected to the external communication device through a protection channel, so that the protection channel is used as a standby of the working channel.
To achieve the above and other objects, the present invention provides a computer storage medium storing a computer program which, when executed by a processor, implements the active/standby board switching method.
As described above, the method for switching between active and standby boards, the optical transport network device and the storage medium according to the present invention, where the optical transport network device includes a first board and a second board that are active and standby, and the first board and the second board detect the working states of the boards of the first and second boards and the other party and the active and standby states of the other party; the first board card and the second board card acquire a target main and standby state according to the detected board card working states of the first board card and the second board card and the main and standby state of the opposite side by using a main and standby negotiation rule and set as the main and standby state of the first board card and the second board card; the main control board card or the line card for standby can adopt the protection switching mechanism to realize protection, thereby effectively supplementing the unspecified protection scene in the standard protocol and greatly improving the reliability of the system.
Drawings
Fig. 1 is a schematic structural diagram of a board card connection according to an embodiment of the invention.
Fig. 2 is a schematic structural diagram of an optical communication device according to an embodiment of the present invention.
Fig. 3 is a schematic diagram of an optical communication system according to an embodiment of the invention.
Fig. 4 is a flow chart illustrating a method for switching between active and standby boards according to an embodiment of the invention.
Detailed Description
Other advantages and effects of the present invention will become apparent to those skilled in the art from the following disclosure, which describes the embodiments of the present invention with reference to specific examples. The invention may be practiced or carried out in other embodiments that depart from the specific details, and the details of the present description may be modified or varied from the spirit and scope of the present invention. It should be noted that the following embodiments and features in the embodiments may be combined with each other without conflict.
It should be noted that the illustrations provided in the following embodiments merely illustrate the basic concept of the present invention by way of illustration, and only the components related to the present invention are shown in the drawings and are not drawn according to the number, shape and size of the components in actual implementation, and the form, number and proportion of the components in actual implementation may be arbitrarily changed, and the layout of the components may be more complicated.
The technical scheme of the invention is applied to communication equipment, especially optical communication equipment, such as OLT equipment or ONU equipment and the like. In the frame type communication equipment, the equipment comprises a back plate, a plurality of channels are arranged on the back plate for inserting the board cards, and hardware wiring can be connected between the channels, so that the board cards can communicate through the back plate.
As shown in fig. 1, a schematic diagram of a board-card connection structure in an optical communication device according to an embodiment of the invention is shown.
In fig. 1, the optical communication apparatus 100 includes: the first board card 101 and the second board card 102, wherein the first board card 101 and the second board card 102 are main and standby, that is, the hard and software configurations of the first board card 101 and the second board card 102 are basically the same, one board card can be set as the main and the other board card is set as the standby; when the main board card is abnormal, the standby board card is switched to be set as the main board card.
In this embodiment, optionally, the optical communication device further includes: a master/slave arbitration circuit 103.
The first board card 101 is in communication connection with the second board card 102, and the master/slave arbitration circuit 103 is in communication connection with the first board card 101 and the second board card 102.
Specifically, in this embodiment, the first board 101 includes: the first processor 104 and the first communicator 105, the second board 102 includes: a second processor 106 and a second communicator 107; the first communicator 105 is communicatively connected to the second communicator 107, and the master/slave arbitration circuit 103 is communicatively connected to the first communicator 105 and the second communicator 107.
The first communicator 105 and the second communicator 107 are configured to detect the working states of the board cards of the self board card and the opposite board card, and the active/standby states of the opposite board card, and transmit the detected working states to the connected first processor 106 and second processor 107, respectively.
Specifically, the first communicator 105 detects a card working state of the self card, i.e. the first card 101, a card working state of the opposite card, i.e. the second card 102, and a master-slave state of the second card 102 (i.e. a "master" or "slave" state of the second card currently set), and transmits the detected states to the first processor 104; the first communicator 105 detects the card working status of the own card, i.e. the first card 101, the card working status of the opposite card, i.e. the second card 102, and the active/standby status of the second card 102 (the "active" or "standby" status currently set by the second card), and transmits the detected status to the first processor 104.
And, the first board 101 and the second board 102 send heartbeat handshake signals to each other through respective communicators and detect the heartbeat handshake signals sent by each other, so as to trigger the primary and standby switching when detecting that the working state of the boards is abnormal.
The first processor 104 and the second processor 106 are configured to run a state machine; the state machine is used for obtaining a target main-standby state according to the detected main-standby state of the board card of the state machine and the opposite board card and the main-standby state of the opposite board card by using a main-standby negotiation rule, and setting the target main-standby state as the main-standby state of the board card of the state machine, wherein the main-standby switching situation is included when the corresponding board card is abnormal in working state.
In some embodiments, the first processor 104 and the second processor 106 may be CPU, MCU, soC, DSP or FPGA implementations, and the first communicator 105 and the second communicator 107 may be CPLD implementations that may connect channels for inter-board communications. In an embodiment of the present invention, the first processor 104 and the second processor 106 are directly connected through an ethernet interface.
Specifically, the master-slave negotiation rules may be pre-stored in a memory (such as ROM, RAM, etc.) on each board card in a truth table form, where the truth table of the master-slave negotiation rules is as follows:
the main and standby values of the own board card are selected in a column for writing in the main or standby values to represent the main and standby states set by the own board card.
In this embodiment, the board working states include, but are not limited to: the board card is inserted into or pulled out of the optical transmission network device in a state of whether the board card corresponding to the channel is in place or not, a state of whether the board card is in fault or not, and a state of whether the board card buckle is buckled or not.
In this embodiment, rule group I is a set of master-slave negotiation rules regarding whether the highest priority board is in place, where:
rule 1 indicates: and when the self board card is not detected to be in place, setting the main and standby states of the self board card as standby. Specifically, the rule has the effect that when the board card is started as the board card just inserted, the state machine starts to operate, but the external hardware interface is not configured, the on-site signal of the board card cannot be read, and the main and standby states are required to be set to be the initial values 'standby' at the moment so as not to interfere the current first board card of the system.
Rule 2 indicates: when the self board card is detected to be in place and the opposite board card is not in place and the main and standby states of the opposite board card are the main use, the main and standby states of the self board card are set to be standby. Specifically, the rule has the effect that if a time sequence problem occurs in the primary-standby switching process caused by pulling the board card, namely, the opposite board card is detected to be out of place, but the primary-standby state of the opposite board card is not detected to be changed from primary to standby, the primary-standby state of the opposite board card is kept to be standby at the moment, the process is a transient state, and after the opposite board card state machine sets the primary-standby state of the opposite board card to be standby, the state machine of the opposite board card can set the primary-standby state of the opposite board card to be primary according to the rule 3.
Rule 3 indicates: when the self board card is detected to be in place and the opposite board card is in place and the main and standby states of the opposite board card are standby, the main and standby states of the self board card are set as main. Specifically, the rule is used for detecting that the opposite board card is out of position and the main and standby states are changed from 'main use' to 'standby' in the main and standby switching process caused by extracting the board card, and the state machine of the board card sets the board card as the main use.
In this embodiment, rule group II is a set of master-slave negotiation rules regarding the status of whether a board is faulty or not depending on the condition of presence or absence of the board, wherein:
rule 4 indicates: when the own board card and the opposite board card are in place and the own board card fails and the opposite board card is normal, the main and standby states of the own board card are set to be standby. Specifically, the rule is that when the own board card has hardware faults, including but not limited to component damage, interruption of a main/standby communication channel, and the like, and the hardware of the opposite board card is normal, the main/standby state of the own board card needs to be set to be standby, and the control right of the system is actively given out, so as not to interfere the process of changing the standby of the opposite board card into the active.
Rule 5 indicates: when the self board card and the opposite board card are in place and the self board card and the opposite board card are in fault, the main and standby states of the self board card are maintained unchanged, namely, if the board card is in the original main state, the main state is maintained; or, if the board card is in the standby state, the standby state is maintained. Specifically, the rule is that when the own board card has hardware faults, including but not limited to faults such as component damage, interruption of a main and standby communication channel, and the like, the main and standby communication channel faults can cause that two state machines can not correctly read the hardware fault information of the opposite board card, and the main and standby states of the own board card need to be kept unchanged so as to avoid generating double main states or double standby states.
Rule 6 indicates: when the own board card and the opposite board card are in place and the opposite board card fails and the main and standby states of the opposite board card are main, the main and standby states of the own board card are set to be standby. Specifically, in the process of switching between the active and standby states caused by the hardware failure of the opposite board, if a timing problem occurs, that is, if the hardware failure of the opposite board is detected, but the active and standby state of the opposite board is not detected, the active and standby state of the own board is kept to be "standby", which is a transient state, and after the opposite board state machine sets the active and standby state of the opposite board to be "standby", the state machine can set the active and standby states of the own board to be "active" according to the following rule 7.
Rule 7 indicates: when the own board card and the opposite board card are in place and the opposite board card fails and the main and standby states of the opposite board card are standby, the main and standby states of the own board card are set as main. Specifically, the rule is used for setting the own board card as the 'active use' by the state machine when the hardware fault of the opposite board card is detected and the active/standby state is changed from the 'active use' to the 'standby' in the active/standby switching process caused by the hardware fault.
In this embodiment, rule set III is a set of master-slave negotiation rules regarding whether a board buckle is buckled or not depending on a board on-site condition and a board failure condition, wherein:
rule 8 indicates: when the self board card and the opposite board card are in place and have no faults, the buckle of the opposite board card is not buckled, and the main and standby states of the opposite board card are standby, the main and standby states of the self board card are set as main use. Specifically, the rule is that, during the active-standby switching process caused by the card buckle state change, when the situation that the opposite board card is buckled and opened (namely not buckled) and the main and standby states are changed from 'main use' to 'standby' is detected, the state machine of the board card sets the board card as the main use.
Rule 9 indicates: when the self board card and the opposite board card are in place and have no faults, and the buckle of the opposite board card is buckled and the main and standby states of the opposite board card are standby, if the buckle of the self board card is not buckled, the main and standby states of the self board card are set to be standby. Specifically, the rule is that when the buckle of the board card is not buckled, the main and standby states of the board card need to be set to be standby, and the control right of the system is actively given off, so that the process that the other board card is changed from standby to active is not interfered, and the process is transient.
Rule 10 indicates: when the self board card and the opposite board card are in place and have no faults, the buckle of the opposite board card is not buckled, and the main and standby states of the opposite board card are main, the main and standby states of the self board card are set to be standby. Specifically, in the process of switching between the active and standby states caused by the change of the status of the board card, if a timing problem occurs, that is, if the opposite board card is detected to be not buckled, but the active and standby state of the opposite board card is not detected to be changed from "active" to "standby", the active and standby state of the own board card is kept to be "standby", which is a transient state, and after the opposite board card state machine sets the active and standby state of the opposite board card to "standby", the state machine of the own board card can set the active and standby state of the own board card to be "active" according to rule 8.
Rule 11 indicates: when the own board card and the opposite board card are in place and have no faults, the buckles of the two sides are buckled, and the main and standby states of the opposite board card are standby, the main and standby states of the own board card are set as main. Specifically, the rule is that when the own board card and the opposite board card do not detect any abnormality (fault, out-of-place) triggering the active-standby switch, the state machine of the own board card maintains the active-standby state of the own board card unchanged, which is a steady state.
Rule 12 represents: when the own board card and the opposite board card are in place and have no faults, the buckles of the two sides are buckled, and the main and standby states of the opposite board card are main, the main and standby states of the own board card are set as standby. Specifically, the rule is that when the own board card and the opposite board card do not detect any abnormality (fault, out-of-place) triggering the active-standby switch, the state machine of the own board card maintains the active-standby state of the own board card unchanged, which is a steady state.
If the first board card and the second board card are both set to be in a main or standby state, normal operation of the system can be affected, and operation efficiency is reduced, for example, two main control cards consider that the two main control cards are both main board cards, and the two main control cards can issue configuration to the circuit card, so that configuration conflict or time sequence problem is caused.
Although the above-mentioned negotiation rule can logically avoid the occurrence of dual-active or dual-standby state, in actual situations, if there is delay in operation to cause untimely switching, dual-active or dual-standby situations will occur, and by adding the active/standby arbitration circuit 103, the situation can be arbitrated, so that the active/standby options of both parties remain unchanged (i.e. a state of active/standby is maintained).
In some embodiments of the present invention, the active-standby arbitration circuit 103 may be implemented by an arbiter, such as an existing analog circuit or digital circuit, or may be implemented by an existing FPGA or the like, which is not developed herein.
In an embodiment of the present invention, the types of the first board card 101 and the second board card 102 may be a main control card or a line card, where the line card is used for executing a communication service, and the main control card is used for controlling the line card, and the main control card and the line card are both smart cards, and are provided with a processor for performing intelligent processing.
In an embodiment of the present invention, the first board 101 may further include: a first power supply monitoring circuit 108 communicatively connected to the first communicator 105; the second board 102 further includes: the first power supply monitoring circuit 108 is in communication connection with the second communicator 107, and the first power supply monitoring circuit 108 and the second power supply monitoring circuit 109 can monitor a power supply fault and send the power supply fault to the connected first communicator 105 and second communicator 107 respectively, wherein the power supply fault belongs to one of the hardware faults of the board card.
It should be noted that fig. 1 is only a structure of connection between the main board and the standby board in one embodiment, but in other embodiments, the main/standby arbitration circuit may not be provided in some situations where the delay is low or the processing speed is not high, which may not result in the occurrence of a dual main or dual standby situation.
The following shows an application scenario of the connection structure between the active board and the standby board through a plurality of embodiments.
As shown in fig. 2, a schematic structural diagram of an optical transport network device is shown. In the optical transport network device, the host card 1+1 is protected.
The optical transport network device includes: a main control card, a standby main control card and a plurality of line cards; the primary master control card and the standby master control card are the first board card and the second board card which are the primary and the standby in the previous embodiment.
In an embodiment of the present invention, the active master card and the standby master card are connected to the network management system, and the active master card and the standby master card are connected in communication with each other through a bus, and are controlled by the line cards of the active master card and the standby master card through the bus communication.
Specifically, the main control card comprises a first processor, the standby main control card comprises a second processor, the line card comprises a third processor, and the first processor, the second processor and the third processor are in communication connection through the bus.
Specifically, the line card includes an optical signal processing module, and the optical signal processing module includes: and the communication connection framing device and the optical transmission module are used for processing service data.
In this embodiment, the active/standby arbitration circuit may be connected to the active and standby main control cards through an electrical circuit, respectively, or the active/standby arbitration circuit may be connected to the bus to connect the active and standby main control cards through communication.
In this embodiment, the active master card and the standby master card may store the foregoing active-standby rule truth tables, respectively, and obtain the board card status information of the opposite party through mutual communication, and negotiate whether to switch between active and standby according to the board card status of the opposite party and the own.
As shown in fig. 3, a connection between two optical transport network devices is shown, each comprising: the first board card is a first line card, the second board card is a second line card, the first board cards of the two optical transmission network devices are communicated through a working channel, and the first board cards of the two optical transmission network devices are communicated through a protection channel.
In this embodiment, each optical transport network device may be provided with a master-slave arbitration circuit, and is communicatively connected between the respective first board and the second board.
In this embodiment, the first board card and the second board card of the two optical transport network devices both store the master/slave rule truth table, obtain the board card status information of the opposite party through mutual communication, and negotiate whether to switch between master/slave according to the board card status of the opposite party and the own board card status.
The communication connection between the boards and between the processor and the communicator in the above embodiments may be a wired connection realized by an electrical circuit (such as a metal conductor, etc.), or a wireless connection realized by a wireless communication circuit (such as WiFi, bluetooth, etc.); the communication connection may be a direct connection between two communicators or an indirect connection forwarded by other communicators.
As shown in fig. 4, the embodiment of the present invention further provides a method for switching between a main board and a standby board, which can be applied to the first board and the second board in the optical transport network device of fig. 1, and includes:
step S401: the first board card and the second board card detect the working states of the board cards of the first board card and the second board card and the master and slave states of the opposite side;
step S402: the first board card and the second board card acquire a target main and standby state according to the detected board card working states of the first board card and the second board card and the main and standby state of the opposite side by using a main and standby negotiation rule and set as the main and standby state of the first board card and the second board card.
In an embodiment of the present invention, the working states of the board card include: the board card is inserted into or pulled out of the state of whether the board card corresponding to the channel in the optical transmission network equipment is in the position or not; the master-slave negotiation rules include one or more of the following: 1) When the self-positioning is not detected, setting the main and standby states of the self-positioning to be standby; 2) When the main and standby states of the opposite side are detected to be in place and the opposite side is out of place, the main and standby states of the opposite side are set to be standby; 3) When the self-positioning is detected and the other side is positioned and the main and standby states of the other side are standby, the self-positioning main and standby states are set as main and standby states.
In an embodiment of the present invention, the working states of the board card include: a status of whether the board card is faulty or not; the master-slave negotiation rules include one or more of the following: 4) When the main and standby states of the main and standby states are set to be standby when the main and standby states are in place and the main and standby states are in fault and the standby state is normal; 5) When the self and the counterpart are in place and the self and the counterpart have faults, the main and standby states of the self are maintained unchanged; 6) When the main and standby states of the opposite party are in place and the opposite party fails and the main and standby states of the opposite party are main, the main and standby states of the opposite party are set to be standby; 7) When the main and standby states of the opposite party are standby and the opposite party is in place and the opposite party fails, the main and standby states of the opposite party are set as the main.
In an embodiment of the present invention, the working states of the board card include: whether the board clamp buckles or not; the master-slave negotiation rules include one or more of the following: 8) When the main and standby states of the counterpart are standby and the counterpart is in place and has no faults, the buckle of the counterpart is not buckled, and the main and standby states of the counterpart are standby, the main and standby states of the counterpart are set as main; 9) When the self and the counterpart are in place and have no faults, and the buckle of the counterpart is buckled and the main and standby states of the counterpart are standby, if the self buckle is not buckled, the main and standby states of the self are set to be standby; 10 When the main state and the standby state of the counterpart are in place and have no faults, the buckle of the counterpart is not buckled, and the main state and the standby state of the counterpart are main, the main state and the standby state of the counterpart are set as standby; 11 When the main and standby states of the counterpart are standby and the counterpart are in place, the main and standby states of the counterpart are set as the main use; 12 When the main and standby states of the counterpart are in place and the counterpart has no faults, and the buckles of the counterpart are buckled, the main and standby states of the counterpart are main, the main and standby states of the counterpart are set as standby.
In some embodiments of the present invention, a computer program may be stored in a memory of each of the first board card and the second board card or in a storage device connected to the first board card or the second board card, and the computer program may be read and executed by the first processor and the second processor, respectively, to drive the board cards to perform the steps in the method.
Accordingly, in an embodiment of the present invention, a computer storage medium may be provided, where the computer program is stored, and when the program is executed by a processor, the method for switching between active and standby boards in the embodiment of fig. 3 is implemented. In particular, the computer storage media includes all forms of non-volatile memory, media, and memory devices, including by way of example: semiconductor memory devices such as EPROM, EEPROM, and flash memory devices; magnetic disks, such as internal hard disks or removable disks; magneto-optical disk; CD-ROM and DVD-ROM discs.
In summary, according to the method for switching between the active and standby boards, the optical transport network device and the storage medium of the present invention, the optical transport network device includes a first board card and a second board card that are active and standby, and the first board card and the second board card detect the working states of the board cards of the first board card and the second board card and the working state of the other board card and the active and standby states of the other board card; the first board card and the second board card acquire a target main and standby state according to the detected board card working states of the first board card and the second board card and the main and standby state of the opposite side by using a main and standby negotiation rule and set as the main and standby state of the first board card and the second board card; the main control board card or the line card for standby can adopt the protection switching mechanism to realize protection, thereby effectively supplementing the unspecified protection scene in the standard protocol and greatly improving the reliability of the system.
The invention effectively overcomes various defects in the prior art and has high industrial utilization value.
The above embodiments are merely illustrative of the principles of the present invention and its effectiveness, and are not intended to limit the invention. Modifications and variations may be made to the above-described embodiments by those skilled in the art without departing from the spirit and scope of the invention. Accordingly, it is intended that all equivalent modifications and variations of the invention be covered by the claims, which are within the ordinary skill of the art, be within the spirit and scope of the present disclosure.

Claims (10)

1. The main and standby board card switching method is characterized by being applied to optical transmission network equipment, wherein the optical transmission network equipment comprises a first board card and a second board card which are main and standby; the method comprises the following steps:
the first board card and the second board card detect the working states of the board cards of the first board card and the second board card and the master and slave states of the opposite side;
the first board card and the second board card acquire a target main and standby state according to the detected board card working states of the first board card and the second board card and the main and standby state of the opposite side by using a main and standby negotiation rule and set as the main and standby state of the first board card and the second board card;
wherein, the board operating condition includes: the board card is inserted into or pulled out of the state of whether the board card corresponding to the channel in the optical transmission network equipment is in place, whether the board card is in fault or not, and whether the board card buckle is buckled or not; the master-slave negotiation rules include one or more of the following:
1) When the self-positioning is not detected, setting the main and standby states of the self-positioning to be standby;
2) When the main and standby states of the opposite side are detected to be in place and the opposite side is out of place, the main and standby states of the opposite side are set to be standby;
3) When the self-positioning is detected and the other side is positioned and the main and standby states of the other side are standby, setting the main and standby states of the self-positioning as main use;
4) When the main and standby states of the main and standby states are set to be standby when the main and standby states are in place and the main and standby states are in fault and the standby state is normal;
5) When the self and the counterpart are in place and the self and the counterpart have faults, the main and standby states of the self are maintained unchanged;
6) When the main and standby states of the opposite party are in place and the opposite party fails and the main and standby states of the opposite party are main, the main and standby states of the opposite party are set to be standby;
7) When the main and standby states of the opposite party are standby and the opposite party is in place and the opposite party fails, setting the main and standby states of the opposite party as the main;
8) When the main and standby states of the counterpart are standby and the counterpart is in place and has no faults, the buckle of the counterpart is not buckled, and the main and standby states of the counterpart are standby, the main and standby states of the counterpart are set as main;
9) When the self and the counterpart are in place and have no faults, and the buckle of the counterpart is buckled and the main and standby states of the counterpart are standby, if the self buckle is not buckled, the main and standby states of the self are set to be standby;
10 When the main state and the standby state of the counterpart are in place and have no faults, the buckle of the counterpart is not buckled, and the main state and the standby state of the counterpart are main, the main state and the standby state of the counterpart are set as standby;
11 When the main and standby states of the counterpart are standby and the counterpart are in place, the main and standby states of the counterpart are set as the main use;
12 When the main and standby states of the counterpart are in place and the counterpart has no faults, and the buckles of the counterpart are buckled, the main and standby states of the counterpart are main, the main and standby states of the counterpart are set as standby.
2. An optical transport network device, comprising:
the first board card and the second board card are mutually active and standby;
the first board card includes: the first processor and the first communicator, the second board card includes: a second processor and a second communicator; the first communicator is in communication connection with the second communicator;
the first communicator and the second communicator are used for detecting the working states of the board card of the self board card and the board card of the opposite side board card and the main and standby states of the opposite side board card and respectively transmitting the working states to the first processor and the second processor which are connected with each other;
the first processor and the second processor are used for running a state machine; the state machine is used for obtaining a target main-standby state according to the detected main-standby negotiation rules and the detected main-standby state of the board card of the state machine and the board card of the opposite side and setting the target main-standby state as the main-standby state of the board card of the state machine;
wherein, the board operating condition includes: the board card is inserted into or pulled out of the state of whether the board card corresponding to the channel in the optical transmission network equipment is in place, whether the board card is in fault or not, and whether the board card buckle is buckled or not; the master-slave negotiation rules include one or more of the following:
1) When the self board card is not detected to be in position, setting the main and standby states of the self board card as standby;
2) When the self board card is detected to be in place and the opposite board card is not in place and the main and standby states of the opposite board card are main, setting the main and standby states of the self board card as standby;
3) When the self board card is detected to be in place and the opposite board card is in place and the main and standby states of the opposite board card are standby, setting the main and standby states of the self board card as main use;
4) When the self board card and the opposite board card are in place and the self board card fails and the opposite board card is normal, setting the main and standby states of the self board card as standby;
5) When the self board card and the opposite board card are in place and the self board card and the opposite board card are in fault, the main and standby states of the self board card are maintained unchanged;
6) When the own board card and the opposite board card are in place and the opposite board card fails and the main and standby states of the opposite board card are main, setting the main and standby states of the own board card as standby;
7) When the own board card and the opposite board card are in place and the opposite board card fails and the main and standby states of the opposite board card are standby, setting the main and standby states of the own board card as main use;
8) When the own board card and the opposite board card are in place and have no faults, the buckle of the opposite board card is not buckled, and the main and standby states of the opposite board card are standby, setting the main and standby states of the own board card as main use;
9) When the self board card and the opposite board card are in place and have no faults, and the buckle of the opposite board card is buckled and the main and standby states of the opposite board card are standby, if the buckle of the self board card is not buckled, the main and standby states of the self board card are set as standby;
10 When the own board card and the opposite board card are in place and have no faults, the buckle of the opposite board card is not buckled, and the main and standby states of the opposite board card are main, the main and standby states of the own board card are set as standby;
11 When the own board card and the opposite board card are in place and have no faults, the buckles of the two boards are buckled, and the main and standby states of the opposite board card are standby, the main and standby states of the own board card are set as main use;
12 When the own board card and the opposite board card are in place and have no faults, the buckles of the two parties are buckled, and the main and standby states of the opposite board card are main, the main and standby states of the own board card are set as standby.
3. The optical transport network device of claim 2, further comprising: and the master-slave judging circuit is in communication connection with the first communicator and the second communicator and is used for judging the master-slave relation of the two parties when the master-slave state of the first board card and the second board card is detected to be the master state.
4. The optical transport network device of claim 2, wherein the first board card further comprises: the first power supply monitoring circuit is in communication connection with the first communicator; the second board card further includes: and the first power supply monitoring circuit is in communication connection with the second communicator.
5. The optical transport network device of claim 2, wherein the first processor and the second processor are directly connected via an ethernet interface.
6. An optical transport network device according to claim 2, characterized in that the first communicator and/or the second communicator is a CPLD.
7. The optical transport network device according to claim 2, wherein the first and second boards are of the type master or line cards.
8. The optical network device according to claim 7, wherein the first board card is a main master card, the second board card is a standby master card, the main master card and the standby master card are connected to a network management system, and the main master card and the standby master card are connected through a bus communication and are controlled by a line card of the main master card and the standby master card through the bus communication; the line card comprises a third processor, and the first processor, the second processor and the third processor are in communication connection through the bus.
9. The optical transport network device of claim 7, wherein the first board card is a first line card, the second board card is a second line card, the first board card is communicatively connected to an external communication device through a working channel, and the second board card is communicatively connected to the external communication device through a protection channel, so as to use the protection channel as a standby of the working channel.
10. A computer storage medium storing a computer program which, when executed by a processor, implements the active/standby board switching method of claim 1.
CN201810394499.7A 2018-04-27 2018-04-27 Main and standby board card switching method, optical transmission network equipment and storage medium Active CN108462529B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810394499.7A CN108462529B (en) 2018-04-27 2018-04-27 Main and standby board card switching method, optical transmission network equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810394499.7A CN108462529B (en) 2018-04-27 2018-04-27 Main and standby board card switching method, optical transmission network equipment and storage medium

Publications (2)

Publication Number Publication Date
CN108462529A CN108462529A (en) 2018-08-28
CN108462529B true CN108462529B (en) 2023-12-19

Family

ID=63236219

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810394499.7A Active CN108462529B (en) 2018-04-27 2018-04-27 Main and standby board card switching method, optical transmission network equipment and storage medium

Country Status (1)

Country Link
CN (1) CN108462529B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109005070B (en) * 2018-08-31 2021-09-10 北京计算机技术及应用研究所 Dual-computer redundant hot standby equipment based on shared memory
CN111669280B (en) * 2019-03-06 2023-05-16 中兴通讯股份有限公司 Message transmission method, device and storage medium
CN109995597B (en) * 2019-04-12 2022-03-01 杭州迪普科技股份有限公司 Network equipment fault processing method and device
CN112893192B (en) * 2021-03-30 2023-08-04 湖州霍里思特智能科技有限公司 Board card, detection mechanism and mineral product sorting machine
CN114385254A (en) * 2021-12-27 2022-04-22 四川华鲲振宇智能科技有限责任公司 Dual-control master-slave switching implementation method based on VPX architecture
CN115276922B (en) * 2022-07-15 2023-10-31 卡斯柯信号有限公司 Main and standby state control method suitable for all-electronic system

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6219180B1 (en) * 1999-04-13 2001-04-17 Olympus America, Inc. Optical unit switching apparatus
CN1815908A (en) * 2006-03-02 2006-08-09 迈普(四川)通信技术有限公司 Telecommunication apparatus master-slave switching method and telecommunication apparatus thereof
CN1889373A (en) * 2005-06-30 2007-01-03 华为技术有限公司 Method for realizing master and spare conversion of distributing connection equipment
CN101150430A (en) * 2007-09-17 2008-03-26 中兴通讯股份有限公司 A method for realizing network interface board switching based heartbeat mechanism
CN101378267A (en) * 2007-08-31 2009-03-04 中兴通讯股份有限公司 Primary and secondary switching device, and switching method using the same
WO2009052741A1 (en) * 2007-10-16 2009-04-30 Huawei Technologies Co., Ltd. A micro telecommunications computing architecture system and a method for reliability management thereof
CN101488844A (en) * 2009-02-23 2009-07-22 中兴通讯股份有限公司 Method and system for communication link switching control between boards
CN102073562A (en) * 2010-12-31 2011-05-25 山石网科通信技术(北京)有限公司 Hardware-based main/standby switch arbitration method
CN201945830U (en) * 2010-09-28 2011-08-24 中兴通讯股份有限公司 Main and standby switching control device for signal
CN104579774A (en) * 2014-12-31 2015-04-29 北京山石网科信息技术有限公司 Switching method and device for main control equipment
CN106656336A (en) * 2016-12-31 2017-05-10 南京泰通科技股份有限公司 Active-standby signal processing method of LTE base station baseband processing board

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1387589A1 (en) * 2002-07-29 2004-02-04 Siemens Aktiengesellschaft Media gateway for providing PSTN/ISDN services in next generation networks

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6219180B1 (en) * 1999-04-13 2001-04-17 Olympus America, Inc. Optical unit switching apparatus
CN1889373A (en) * 2005-06-30 2007-01-03 华为技术有限公司 Method for realizing master and spare conversion of distributing connection equipment
CN1815908A (en) * 2006-03-02 2006-08-09 迈普(四川)通信技术有限公司 Telecommunication apparatus master-slave switching method and telecommunication apparatus thereof
CN101378267A (en) * 2007-08-31 2009-03-04 中兴通讯股份有限公司 Primary and secondary switching device, and switching method using the same
CN101150430A (en) * 2007-09-17 2008-03-26 中兴通讯股份有限公司 A method for realizing network interface board switching based heartbeat mechanism
WO2009052741A1 (en) * 2007-10-16 2009-04-30 Huawei Technologies Co., Ltd. A micro telecommunications computing architecture system and a method for reliability management thereof
CN101488844A (en) * 2009-02-23 2009-07-22 中兴通讯股份有限公司 Method and system for communication link switching control between boards
CN201945830U (en) * 2010-09-28 2011-08-24 中兴通讯股份有限公司 Main and standby switching control device for signal
CN102073562A (en) * 2010-12-31 2011-05-25 山石网科通信技术(北京)有限公司 Hardware-based main/standby switch arbitration method
CN104579774A (en) * 2014-12-31 2015-04-29 北京山石网科信息技术有限公司 Switching method and device for main control equipment
CN106656336A (en) * 2016-12-31 2017-05-10 南京泰通科技股份有限公司 Active-standby signal processing method of LTE base station baseband processing board

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
PON系统中的PON保护倒换技术研究;沈宜;;电视技术(21);全文 *
一种改进的PON保护组解决方案;韩倩;程友清;柏帆;;电视技术(11);全文 *

Also Published As

Publication number Publication date
CN108462529A (en) 2018-08-28

Similar Documents

Publication Publication Date Title
CN108462529B (en) Main and standby board card switching method, optical transmission network equipment and storage medium
CN102724093B (en) A kind of ATCA machine frame and IPMB method of attachment thereof
CN111767244A (en) Dual-redundancy computer equipment based on domestic Loongson platform
CN105721546A (en) Multi-data integration service platform based on industrial Internet of Things (IoT) communication
CN111427840A (en) Relay protection system and special multi-core Soc chip architecture thereof
CN105072029A (en) Redundant link design method and system of active-active storage system
CN114265753A (en) Management method and management system of message queue and electronic equipment
RU2439674C1 (en) Method to form fault-tolerant computing system and fault-tolerant computing system
CN113515408A (en) Data disaster tolerance method, device, equipment and medium
CN214851260U (en) Intelligent network card out-of-band connection system
CN113645048B (en) Network card switching method and device and field programmable gate array FPGA
CN105704187A (en) Processing method and apparatus of cluster split brain
CN101291201A (en) Heart beat information transmission system and method
JP5358310B2 (en) Input / output management method and input / output unit integrated dual station apparatus in input / output unit integrated dual station apparatus
CN112995070A (en) Double-card switching system and method
CN111314148A (en) Redundant network IP intelligent switching method and system based on redundant computer
CN109684136A (en) A kind of communication construction system of flexible configuration master control
CN203733107U (en) Quick active/standby shifting device in active-standby system
US11366696B2 (en) System, board card and electronic device for data accelerated processing
CN212541329U (en) Dual-redundancy computer equipment based on domestic Loongson platform
CN104503871A (en) Implementation method based on full-redundancy model of small computer system
CN113742142B (en) Method for managing SATA hard disk by storage system and storage system
CN208589988U (en) Optical transport network device
CN103716186B (en) Artificial telephone traffic system with network fault tolerance capability and method thereof
US9632885B2 (en) Fault detection method and related device and stack system

Legal Events

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