CN101931550B - Method and device for synchronizing main and standby main control boards - Google Patents

Method and device for synchronizing main and standby main control boards Download PDF

Info

Publication number
CN101931550B
CN101931550B CN200910150254.0A CN200910150254A CN101931550B CN 101931550 B CN101931550 B CN 101931550B CN 200910150254 A CN200910150254 A CN 200910150254A CN 101931550 B CN101931550 B CN 101931550B
Authority
CN
China
Prior art keywords
control board
state
port
main control
link state
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
CN200910150254.0A
Other languages
Chinese (zh)
Other versions
CN101931550A (en
Inventor
焦赵云
陈江
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN200910150254.0A priority Critical patent/CN101931550B/en
Publication of CN101931550A publication Critical patent/CN101931550A/en
Application granted granted Critical
Publication of CN101931550B publication Critical patent/CN101931550B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a method and a device for synchronizing main and standby main control boards. The method for synchronizing the main and standby main control boards comprises the following step that: when a link state of a port is changed, a mainly used main control board informs a standby main control board of the link state change information so as to synchronously configure the standby main control board. The method for synchronizing the main and standby main control boards has the effects of reducing the service interruption time, improving the main/standby switch performance of a system, increasing satisfaction degree of users and the like.

Description

For active and standby synchronous method and apparatus
Technical field
The present invention relates to the communications field, in particular to a kind of method and apparatus for masterslave switchover.
Background technology
In communication apparatus, in order to improve the reliability of equipment, master control borad often adopts active and standby mechanism.When main control board breaks down, Service control and business forward and are switched to slave control board, and now, the state of slave control board becomes main control board, and the state of former main control board becomes slave control board.
In the time of masterslave switchover, old main control board interface signal is switched to new main control board by selector, although hardware exchange is fast (being generally Microsecond grade) very, but because main control board and slave control board synchronously do not configure in advance, make that new main control board exchange chip need to re-establish link with the line card chip, software need to detect link up state, business and agreement control module port repeat state etc. need to be set, this will spend the regular hour, thereby cause service recovery time longer, make business forward and produce and interrupt.
Summary of the invention
Consider the longer problem of the service recovery time for after masterslave switchover existed in correlation technique and propose the present invention, for this reason, it is a kind of for active and standby synchronous method and apparatus that main purpose of the present invention is to provide, to address the above problem.
To achieve these goals, according to an aspect of the present invention, provide a kind of for active and standby synchronous method.
According to of the present invention, for active and standby synchronous method, comprise: when the Link State of port changes, main control board is by Link State change information notice slave control board, so that this slave control board synchronously configures.
Preferably, the port that above-mentioned port is main control board, this main control board detects or regularly detects the Link State of the port that obtains main control board by interruption.
Preferably, above-mentioned synchronous configuration comprises: if the Link State of the port of main control board becomes the second state by the first state, the port that slave control board is corresponding is set to force the second state; And if the Link State of the port of main control board becomes the first state by the second state, slave control board is cancelled pressure second state of corresponding ports.
Preferably, the port that above-mentioned port is the 3rd equipment, the 3rd equipment detects or regularly detects the Link State of the port of the 3rd equipment of acquisition by interruption, and wherein, the 3rd equipment comprises: line card or upper connective plate.
Preferably, above-mentioned main control board comprises Link State change information notice slave control board: the Link State that main control board receives from the 3rd equipment changes information, carries out this locality configuration, and Link State change information is sent to slave control board.
Preferably, above-mentioned synchronous configuration comprises: if the Link State of the port of the 3rd equipment becomes the first state by the second state, slave control board is cancelled pressure second state of corresponding ports.
Preferably, above-mentioned local configuration comprises: if the Link State of the port of the 3rd equipment becomes the first state by the second state, main control board is cancelled pressure second state of corresponding ports.
Preferably, above-mentioned the first state is the down state, and above-mentioned the second state is the up state.
Preferably, above-mentionedly for active and standby synchronous method, further comprise: main control board regularly synchronously is configured to slave control board by configuration parameter.
Preferably, above-mentioned configuration parameter comprises at least one in the Link State of port speed, duplex, auto-negotiation, flow control mode, interface modes, forwarding state and port.
According to a further aspect in the invention, provide a kind of for active and standby synchronous device.
According to of the present invention, for active and standby synchronous device, comprise: line card; Upper connective plate; And main control board and slave control board, all with above-mentioned line card, with above-mentioned upper connective plate, be connected, wherein, above-mentioned main control board is for notifying above-mentioned slave control board by configuration parameter and/or port Link State change information, above-mentioned slave control board changes information for the above-mentioned configuration parameter according to from above-mentioned main control board and/or port Link State, carries out synchronous parameter configuration or Link State configuration.
According to another aspect of the invention, provide a kind of active and standby synchronizer.
Active and standby synchronizer according to the present invention comprises: transceiver changes information for the Link State received from line card or upper connective plate, and sends to slave control board; Detector, for detection of the Link State of the port of main control board; And reflector, while changing at above-mentioned detector, Link State being detected, Link State change information is sent to above-mentioned slave control board.
By the present invention, adopt synchronous configuration main control board and slave control board, especially, the Link State of port is synchronously configured to slave control board, solve the longer problem of service recovery time after the masterslave switchover, and then reached the performance that reduces service outage duration, raising system masterslave switchover and the satisfaction texts that increases the user.
The accompanying drawing explanation
Accompanying drawing described herein is used to provide a further understanding of the present invention, forms the application's a part, and schematic description and description of the present invention the present invention does not form inappropriate limitation of the present invention for explaining.In the accompanying drawings:
Fig. 1 is the structure chart for active and standby synchronous device according to the embodiment of the present invention;
Fig. 2 is the system construction drawing that comprises active and standby synchronizer according to the embodiment of the present invention; And
Fig. 3 shows the port controlling flow process of device as shown in Figure 1.
Embodiment
Functional overview
As mentioned above, according to the conventional method, after masterslave switchover, service recovery time is longer, for the problems referred to above, the invention provides a kind of for active and standby synchronous method and apparatus, it has reduced the service recovery time after masterslave switchover, the basic ideas of this scheme are as follows: when configuration parameter or Link State that port detected change, main control board changes the information synchronized transmission to slave control board, so that slave control board synchronously configures by relevant configuration parameter or Link State.
Describe the present invention in detail below in conjunction with accompanying drawing.
Device embodiment
In the communication system that adopts active and standby master control borad, line card and upper connective plate mainly carry out the miscellaneous service processing, and master control borad mainly carries out Ethernet exchanging, such as: line card carries out protocol conversion, the data of the protocol encapsulation such as DSL, ATM, GPON, EPON are converted to the data of Ethernet encapsulation, Ethernet data is delivered to master control borad and is carried out Ethernet exchanging or IP route, and other network equipments are delivered in the upper united mouth from master control borad or the upper united mouth on upper connective plate.
As shown in Figure 1, comprising for active and standby synchronous device according to the embodiment of the present invention: line card 102, main control board 104, slave control board 106 and upper connective plate 108.Main control board 104 and slave control board 106 all are connected to the line card 102 with selector 110 and the upper connective plate 108 with selector 112 by relevant interface, wherein, above-mentioned relevant interface can be in serdes interface, SGMII interface, SMII interface, XAUI interface and RXAUI interface.In addition, alternatively, selector 110 and selector 112 are the alternative selector.
Under normal circumstances, selector 110 is connected the interface signal of main control board 104 with the interface signal of line card 102, and selector 112 is connected the interface signal of main control board 104 with the interface signal of upper connective plate 108.Main control board 104 is for notifying configuration parameter and/or port Link State change information to slave control board 106, and slave control board 106 changes information for the configuration parameter according to from main control board 104 and/or port Link State, carry out synchronous parameter configuration or Link State configuration.
When main control board 104 breaks down and need to carry out masterslave switchover, the interface signal that is connected to slave control board 106 switched the interface signal of line card 102 by selector 110, and the interface signal that is connected to slave control board 106 switched the interface signal of upper connective plate 108 by selector 112.
Fig. 2 is the system construction drawing that comprises active and standby synchronizer according to the embodiment of the present invention.Wherein, active and standby synchronizer 204 comprises: transceiver 210 changes information for the Link State received from line card 202 or upper connective plate 208, and Link State change information is sent to slave control board 206; Detector 212, for detection of the Link State of the port of main control board; And reflector 214, while changing at detector 212, Link State being detected, Link State change information is sent to slave control board 206.
Embodiment of the method
As shown in Figure 3, for the situation S302 for active and standby synchronous method according to the embodiment of the present invention, main control board 104, when the parameters such as Link State of real-time configured port speed, duplex, auto-negotiation, interface modes, flow control mode, forwarding state and port, synchronously is configured to slave control board 106 in real time by these parameters.Especially, when the Link State of the port of main control board is the up state, the Link State of slave control board corresponding ports is set to force the up state; When the Link State of the port of main control board is the down state, slave control board is cancelled the pressure up state of corresponding ports.
Especially, when the Link State of port changes, main control board is by Link State change information notice slave control board, so that slave control board synchronously configures, it specifically comprises:
Situation S304, main control board 104 is when the link-state change of its port being detected by interruption, by the Link State change information of port notice slave control board 106.Wherein, when the Link State of the port that main control board 104 detected becomes up by down, the Link State of slave control board 106 corresponding ports is set to force the up state; When the Link State of the port of main control board 104 becomes down by up, slave control board 106 will be cancelled the pressure up state of corresponding ports;
Situation S306, line card 102 or upper connective plate 108, when the link-state change of port separately being detected by interruption, are sent out message informing main control board 104.Wherein, when the Link State of the port that line card 102 or upper connective plate 108 detected becomes down by up, main control board 104 is cancelled the pressure up state of corresponding ports; Simultaneously, 104 message of main control board are to slave control board 106, and slave control board 106 is cancelled the pressure up state of corresponding ports;
Situation S308, main control board 104 is when the link-state change of its port being detected by timing, by the Link State change information of port notice slave control board 106.Wherein, when the Link State of the port that main control board 104 detected becomes up by down, the Link State of slave control board 106 corresponding ports is set to force the up state; When the Link State of the port of main control board 104 becomes down by up, slave control board 106 will be cancelled the pressure up state of corresponding ports;
Situation S310, line card 102 or upper connective plate 108, when the link-state change of port separately being detected by timing, are sent out message informing main control board 104.Wherein, when the Link State of the port that line card 102 or upper connective plate 108 detected becomes down by up, main control board 104 is cancelled the pressure up state of corresponding ports; Simultaneously, 104 message of main control board are to slave control board 106, and slave control board 106 is cancelled the pressure up state of corresponding ports.
In addition, main control board 104 also regularly is configured to slave control board 106 (situation S312) by the parameter synchronization such as Link State of port speed, duplex, auto-negotiation, interface modes, flow control mode, forwarding state and port.
Above-mentioned line card 102 and upper connective plate 108 are regularly to the Link State of port is detected separately, main control board 104 is regularly detected and regularly parameter synchronization is configured to slave control board 106 Link State of its port, is all for the synchronous reliability of Guarantee Status.
By above-mentioned method, can be so that the port parameter of slave control board 106 (the particularly Link State of port) be consistent with the port status of main control board 104, once carry out masterslave switchover, the port of slave control board 106 can enter forwarding state immediately, thereby greatly reduced service outage duration, improved the performance of masterslave switchover, for the business (such as VOIP (Voice Over Internet Protocol) phone, IPTV (InternetProtocol Television) etc.) of time-sensitive, user's experience can obtain sizable lifting.
Obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with general calculation element, they can concentrate on single calculation element, perhaps be distributed on the network that a plurality of calculation elements form, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in storage device and be carried out by calculation element, perhaps they are made into respectively to each integrated circuit modules, perhaps a plurality of modules in them or step being made into to the single integrated circuit module realizes.Like this, the present invention is not restricted to any specific hardware and software combination.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (11)

1. one kind for active and standby synchronous method, it is characterized in that, comprising:
When the Link State of port changes, main control board is by Link State change information notice slave control board, so that described slave control board synchronously configures;
Wherein, described synchronous configuration comprises: if the Link State of the port of described main control board becomes the second state by the first state, the port that described slave control board is corresponding is set to force the second state; And if the Link State of the port of described main control board becomes described the first state by described the second state, described slave control board is cancelled pressure second state of corresponding ports; Described the first state is the down state, and described the second state is the up state.
2. method according to claim 1, is characterized in that, the port that described port is described main control board, and described main control board detects or regularly detects the Link State of the port that obtains described main control board by interruption.
3. method according to claim 1, it is characterized in that, the port that described port is the 3rd equipment, described the 3rd equipment detects or regularly detects the Link State of the port that obtains described the 3rd equipment by interruption, wherein, described the 3rd equipment comprises: line card or upper connective plate.
4. method according to claim 3, is characterized in that, described main control board notifies described slave control board to comprise Link State change information:
The described Link State that described main control board receives from described the 3rd equipment changes information, carries out this locality configuration, and described Link State change information is sent to described slave control board.
5. method according to claim 4, is characterized in that, described synchronous configuration comprises:
If the Link State of the port of described the 3rd equipment becomes the first state by the second state, described slave control board is cancelled pressure second state of corresponding ports.
6. method according to claim 4, is characterized in that, described local configuration comprises:
If the Link State of the port of described the 3rd equipment becomes the first state by the second state, described main control board is cancelled pressure second state of corresponding ports.
7. according to the described method of claim 1 to 6 any one, it is characterized in that, further comprise:
Described main control board regularly synchronously is configured to described slave control board by configuration parameter.
8. method according to claim 7, is characterized in that, described configuration parameter comprises at least one in the Link State of port speed, duplex, auto-negotiation, flow control mode, interface modes, forwarding state and port.
9. one kind for active and standby synchronous device, it is characterized in that, comprising:
Line card;
Upper connective plate; And
Main control board and slave control board, all be connected with described upper connective plate with described line card,
Wherein, described main control board is for by port Link State change information, notifying described slave control board, and described slave control board changes information for the described port Link State according to from described main control board, carries out synchronous Link State configuration; If the Link State of the port of described main control board becomes the second state by the first state, the port that described slave control board is corresponding is set to force the second state; And if the Link State of the port of described main control board becomes described the first state by described the second state, described slave control board is cancelled pressure second state of corresponding ports; Described the first state is the down state, and described the second state is the up state.
10. according to claim 9 device, it is characterized in that, described main control board is also for configuration parameter being notified to described slave control board, and described slave control board also carries out synchronous parameter configuration for the described configuration parameter according to from described main control board.
11. an active and standby synchronizer, is characterized in that, comprising:
Transceiver, change information for the Link State received from line card or upper connective plate, and send to slave control board;
Detector, for detection of the Link State of the port of main control board; And
Reflector, while changing at described detector, Link State being detected, send to described slave control board by Link State change information;
Wherein, if the Link State of the port of described main control board becomes the second state by the first state, the port that described slave control board is corresponding is set to force the second state; And if the Link State of the port of described main control board becomes described the first state by described the second state, described slave control board is cancelled pressure second state of corresponding ports; Described the first state is the down state, and described the second state is the up state.
CN200910150254.0A 2009-06-23 2009-06-23 Method and device for synchronizing main and standby main control boards Active CN101931550B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910150254.0A CN101931550B (en) 2009-06-23 2009-06-23 Method and device for synchronizing main and standby main control boards

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910150254.0A CN101931550B (en) 2009-06-23 2009-06-23 Method and device for synchronizing main and standby main control boards

Publications (2)

Publication Number Publication Date
CN101931550A CN101931550A (en) 2010-12-29
CN101931550B true CN101931550B (en) 2014-01-01

Family

ID=43370486

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910150254.0A Active CN101931550B (en) 2009-06-23 2009-06-23 Method and device for synchronizing main and standby main control boards

Country Status (1)

Country Link
CN (1) CN101931550B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102355370B (en) * 2011-10-10 2014-10-29 瑞斯康达科技发展股份有限公司 Method for Ethernet board-level protection, device and system
CN102638735B (en) * 2012-04-13 2015-07-01 瑞斯康达科技发展股份有限公司 Optical node device and business switching method thereof
CN104486251B (en) * 2014-12-12 2017-08-11 新华三技术有限公司 Main equipment master polling method, equipment and system in intelligent elastic framework IRF
CN105790965A (en) * 2014-12-17 2016-07-20 中兴通讯股份有限公司 Method and device for link switching and line card
CN109995681B (en) * 2019-03-07 2021-03-23 盛科网络(苏州)有限公司 Device and method for realizing double-master-control main-standby switching by single chip
CN110661663B (en) * 2019-09-27 2022-06-28 杭州迪普科技股份有限公司 Interface state synchronization method and device
CN111211927B (en) * 2019-12-31 2023-01-24 杭州迪普科技股份有限公司 Resource synchronization method and device
CN115065589A (en) * 2022-06-06 2022-09-16 广州汇智通信技术有限公司 Data traffic acquisition disaster recovery backup processing method, device, equipment, system and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1622483A (en) * 2003-11-27 2005-06-01 华为技术有限公司 A method for implementing software hot-backup of main and reserve machines
CN1756107A (en) * 2004-09-28 2006-04-05 华为技术有限公司 Method for realizing single board switching
CN1842020A (en) * 2005-03-28 2006-10-04 华为技术有限公司 Method for realizing data service backup
CN101335541A (en) * 2008-06-12 2008-12-31 中兴通讯股份有限公司 Method implementing data synchronization between main and spare circuit board

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100484022C (en) * 2005-07-04 2009-04-29 华为技术有限公司 System and method for improving communication reliability
CN100505574C (en) * 2005-12-23 2009-06-24 中兴通讯股份有限公司 Master and slave converting method for communication link circuit
CN1825836B (en) * 2006-04-04 2010-06-23 中兴通讯股份有限公司 System and method for avoiding network apparatus jamming
CN101106443A (en) * 2007-08-10 2008-01-16 中兴通讯股份有限公司 A system and method for controlling switch of primary and backup board

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1622483A (en) * 2003-11-27 2005-06-01 华为技术有限公司 A method for implementing software hot-backup of main and reserve machines
CN1756107A (en) * 2004-09-28 2006-04-05 华为技术有限公司 Method for realizing single board switching
CN1842020A (en) * 2005-03-28 2006-10-04 华为技术有限公司 Method for realizing data service backup
CN101335541A (en) * 2008-06-12 2008-12-31 中兴通讯股份有限公司 Method implementing data synchronization between main and spare circuit board

Also Published As

Publication number Publication date
CN101931550A (en) 2010-12-29

Similar Documents

Publication Publication Date Title
CN101931550B (en) Method and device for synchronizing main and standby main control boards
CN102035687B (en) Backup method and equipment for TCP connection
CN102364892B (en) Link aggregation control protocol (LACP) link switching and data transmission method and apparatus thereof
KR100932908B1 (en) Power Saving Method of Optical Termination Device and Optical Line Terminal in Optical Access Network
CN101060485B (en) Topology changed messages processing method and processing device
CN102075343B (en) An out-of-band management realization method, a system for the same and an out-of-band management switch
CN100568854C (en) A kind of method and interface board that keeps neighborhood
CN101355515B (en) Method for restarting link aggregation control protocol with elegance
CN102684904B (en) The system and method for dynamic management power in communication system
CN103001887A (en) Link keeping alive method, controller and switchboard
GB2444170A (en) Ethernet protection using a redundant link, with link up of a remote port being triggered using a "link status control mechanism".
CN101005394A (en) Method and system for protecting multicast repeat path and service router
CN101115033A (en) Conversation inceptive protocol gateway master-slave conversion system and method
CN101841735B (en) Frame-type switch, stack system and fault treatment method after stack
CN101964719B (en) Based on the data processing method of master control board switching, line card and master control borad
CN101877631A (en) Server and business switching method thereof
CN102231703A (en) Method for realizing Virtual Switch Cluster (VSC) cross equipment data forwarding and equipment thereof
WO2011009324A1 (en) Main/standby switching interface module, network element system, and link information synchronization detection method
CN101895361A (en) Method, system and clock board for transmitting synchronous status message
EP2472793A1 (en) Method, device and system for transmitting e1 bidirectional looped network data
CN101827035B (en) Method for ensuring graceful restarting and dual master control network device
CN102118266A (en) Industrial Ethernet dual-link redundancy technology
CN102830789A (en) Low-power-consumption standby method for jointed display system
CN102480366A (en) Dual-server hot standby operation method for conference system software
CN101615998A (en) A kind of method and system and access switch of in Ethernet, realizing clock synchronization

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant