CN101257405B - Method for implementing double chain circuits among master-salve equipments - Google Patents

Method for implementing double chain circuits among master-salve equipments Download PDF

Info

Publication number
CN101257405B
CN101257405B CN2008100895980A CN200810089598A CN101257405B CN 101257405 B CN101257405 B CN 101257405B CN 2008100895980 A CN2008100895980 A CN 2008100895980A CN 200810089598 A CN200810089598 A CN 200810089598A CN 101257405 B CN101257405 B CN 101257405B
Authority
CN
China
Prior art keywords
link
slave
master
control device
main control
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN2008100895980A
Other languages
Chinese (zh)
Other versions
CN101257405A (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 CN2008100895980A priority Critical patent/CN101257405B/en
Publication of CN101257405A publication Critical patent/CN101257405A/en
Application granted granted Critical
Publication of CN101257405B publication Critical patent/CN101257405B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

A method for achieving double link between a master device and a slave device is disclosed in the invention, comprising the following steps of: setting configuration data for a default link on the master device and the slave device; while starting, establishing a default connecting link in a control path between the master device and the slave device based on the configuration data for the default link; after the default connecting link is established normally, assigning the connecting configuration data of a reserve link onto the slave device from the master device via the default connecting link. Therefore, while in the event of the failure of the control link, the communication path between the master device and the slave device can be effectively protected by the technical proposal of the invention, accordingly, the protection of the control link is achieved.

Description

The implementation method of double chain circuits among master-salve equipments
Technical field
The present invention relates to the resist technology of control channel between a kind of master-slave equipment, specifically, relate to a kind of implementation method of double chain circuits among master-salve equipments.
Background technology
In communication equipment, the link between existing master-slave equipment, veneer and the master control borad is the in the majority of single-link mode.Control channel between the master-slave equipment of important communication equipment needs the main-apparatus protection mechanism of dual link, can guarantee that so just under the situation that a certain link made mistakes, another link works on after can taking over, and equipment can continue normal operation.
Path control can be adopted multiple connected modes such as High level data link control (HDLCHigh-Level Data Link Control), Ethernet between the master-slave equipment, can also adopt the mode of using with in the case of necessary.But the variety of protocol itself that uses can not provide dual link control now, can't realize the active and standby protection in control access of equipment; Perhaps, when realizing the dual link protection between master-slave equipment configuration data be provided with loaded down with trivial detailsly, data must be set on master-slave equipment simultaneously.Because there is above-mentioned defective in prior art, awaits providing better technology to realize the protection of the dual link between master-slave equipment.
Summary of the invention
The technical problem to be solved in the present invention provides a kind of implementation method of double chain circuits among master-salve equipments, when the control link breaks down, can protect the communication path between the master-slave equipment effectively, realizes the control link protection.
Technical scheme is as follows:
A kind of implementation method of double chain circuits among master-salve equipments may further comprise the steps:
(1) acquiescence link configuration data is set on main control device and slave;
When (2) starting, set up acquiescence link link according to described acquiescence link configuration data in the control access between described master-slave equipment;
(3) after normal foundation of described acquiescence link link, described main control device is issued on the described slave by the connection configuration data of described acquiescence link link with reserve link.
Further, in the step (1), described acquiescence link configuration data comprise the default configuration data under the different connected modes, specifically comprise: connect time slot position, adopt clock mode, route and set up link unsuccessful switching time.
Further, in the step (2), the connected mode of described acquiescence link link comprises: Ethernet connected mode, perhaps High level data link control HDLC link connected mode.
Further, described Ethernet connected mode is classified according to two layers of routing mode or three layers of routing mode; And described HDLC link connected mode is carried out assembled classification according to speed, port or upper-layer protocol type.
Further, in the step (2), the connected mode of described acquiescence link link is at least two kinds; Pass by in the journey at startup acquiescence chain link, whether the described acquiescence link link that constantly detects under the various connected modes by polling mode can link success; If link is unsuccessful, carry out connected mode and switch, can successfully set up up to acquiescence link link.
Further, in the step (3), in described master-slave equipment course of normal operation, described acquiescence link link is as active link; If detect described active link fault, carry out active/standby link switchover according to the connection configuration data of described reserve link, with the active link forbidding, reserve link is enabled.
Further, in the step (3), in described testing process, disconnect, carry out active/standby link switchover at once if detect the active link physical connection.
Further, in the step (3), in described testing process, determine by the ports physical state that detects in the control access whether the active link physical connection disconnects.
Further, in the step (3), whether in described testing process, it is normal to detect described control access by the logic detection mode between described main control device and the slave, and described slave sends heartbeat message to described main control device every N second; If the inferior heartbeat message that can not receive described slave of described main control device continuous N carries out principal and subordinate's link switchover, wherein, M, N are configuration parameters.
Further, in the step (3), in described active/standby link switchover process, active and standby switching is initiated by described main control device or slave; When described main control device was initiated active and standby switchings, described main control device sent switching command and arrives described slave, and described main control device and slave carry out active/standby link switchover according to the configuration data that is connected of described reserve link; When active and standby switching is initiated by described slave, described main control device is a controlling party, described slave sends a handover request to described main control device, described main control device is sent out switching command again to described slave, and described main control device and slave carry out active/standby link switchover according to the configuration data that is connected of described reserve link.
Further, in the step (3), in described active/standby link switchover process, can carry out active/standby link switchover by Manual Switch.
Connection of the present invention and switch speed are fast, are provided with simply, need not go when master-slave equipment links that configuration connects data on the slave unit again, in case during communication abnormality, carry out the switching of principal and subordinate's link at once automatically.Therefore, when the control link broke down, the present invention can protect the communication path between the master-slave equipment effectively, thereby realized the control link protection.
Adopt this pre-configured link on-link mode (OLM), do not need the workmen after equipment is restarted, to reset Configuration Data, can make master-slave equipment set up operate as normal behind the link, saved manpower and materials greatly, reduced operation cost.
Description of drawings
Fig. 1 is the networking diagram between main control device and the slave.
Embodiment
The present invention is by setting active link and reserve link on the control access between the master-slave equipment (comprising main control device and slave); realized that controlling the active and standby of link for two protects with dual link; main-apparatus protection is carried out in master-slave equipment control access in the communication equipment; no matter be active and standby going wrong with link fails or two layers (data link layer) or three layers (network layers); the control access can switch to reserve link from current active link, guarantees that the master-slave equipment control access is normal.
Be example below with the access media gateway, the dual link main-apparatus protection of control access between the master-slave equipment is elaborated.
The first, the connected mode between the master-slave equipment.
Connected mode can be a variety of way between the master-slave equipment, such as Ethernet or HDLC etc., accordingly, the principal and subordinate's link in the control access also can adopt different connected modes, and main control device carries out system's control and professional control by the control access to slave.
Wherein, the Ethernet connected mode can be classified according to two layers of routing mode or three layers of routing mode; HDLC link connected mode can be carried out assembled classification according to speed, port or upper-layer protocol type.
The second, the implementation method of double chain circuits among master-salve equipments.
In the control access of master-slave equipment, must there be one to be to start acquiescence link link in its link,, link can be normally set up to guarantee that master-slave equipment after physical connection is normal, can start the link establishment process automatically.If there is not this default communication link, main control device just can not be set up automatically on slave and link successfully.
The specific implementation step is as follows:
1, on master-slave equipment, pre-sets the acquiescence link configuration data of supporting multiple connected mode.
2, after system restarts, in the control access between master-slave equipment, start acquiescence link link according to acquiescence link configuration data.
Pass by in the journey at startup acquiescence chain link, constantly detect the acquiescence link by polling mode and whether link success; If link is unsuccessful, carry out connected mode and switch, can successfully set up up to acquiescence link link.
3, after normal foundation of acquiescence link link, main control device can be issued on the slave by the connection configuration data of the link of the acquiescence between master-slave equipment link with reserve link.
In the master-slave equipment course of normal operation, this acquiescence link link is as active link; If detect the active link fault then need active/standby link switchover, main control device and slave carry out active/standby link switchover according to the configuration data that is connected of reserve link, and the active link forbidding with original enables reserve link.Main control device and slave can be initiated active and standby switching in this process, and main control device is a controlling party.When main control device initiate to switch, directly send out switching command to slave, main control device and slave carry out active/standby link switchover according to the configuration data that is connected of reserve link; When slave initiate to switch, send out handoff request to main control device, main control device is sent out switching command again to slave, and main control device and slave carry out active/standby link switchover according to the configuration data that is connected of reserve link.Certainly, can realize the switching of main/slave link by Manual Switch.
Whether normally in the detection mode,, carry out the active/standby link switchover flow process at once if the active link physical connection that main control device or slave detect in the upper level link disconnects.
Whether normal between main control device and the slave by the logic detection control access.Slave is made up one's mind jumping message to main control device every N second, if the inferior heartbeat message that can not receive slave of main control device continuous N carries out principal and subordinate's link switchover, wherein, M, N are configuration parameters, can dispose.Logic detection can not selected, but the ports physical state-detection in the control access is essential.
Below in conjunction with accompanying drawing, by instantiation the present invention is done to describe in further detail.
As shown in Figure 1, be the networking diagram between main control device and the slave, wherein, the communication mode of main control device and slave control access has multiple, and each connected mode all has the connection configuration data between master-slave equipment.After equipment was restarted, the principal and subordinate was the client-server pattern of taking, and slave is given tacit consent to link establishment at various connected mode polls, set up link successfully after, main equipment with the reserve link data configuration to slave unit.
Two links are arranged between master-slave equipment, link one and link two, wherein, link one is acquiescence link link, i.e. an active link.Link one is according to the pre-configured multi-form acquiescence link data of different connected modes (being exemplified as 4 kinds of connected modes), promptly give tacit consent to link 1 to 4, pass by in the journey at startup acquiescence chain link, poll detects acquiescence link 1 to 4, if link is then set up in success, then switch if get nowhere, link successfully until the acquiescence link.Link two is reserve links, also is to carry out the link link that Manual Switch is used.If the active link fault, principal and subordinate's link can carry out Manual Switch by the configurable on-link mode (OLM) in the link two.
In the present embodiment, master-slave equipment adopts HDLC link connected mode, and the HDLC link can be configured in the PCM (Pulse Code Modulation, pulse-code modulation) of 2M and HW (the High Way of 16M, HW High Way) on, PCM and HW are used for representing transmission capacity at this.
At first, in master-slave equipment, dispose HDLC link default configuration data under these two kinds of connected modes in advance respectively.HDLC link default configuration data comprise: connect time slot position, adopt clock mode, route and set up link unsuccessful switching time etc.
Next, after system restart, at first carry out HDLC link setup process under the PCM default configuration data mode of trial employing 2M between the master-slave equipment; If not success at the appointed time just switches under the HW default configuration data that adopt 16M and carries out HDLC link setup process; If in the switching time of regulation, still link successfully, just switch back that continuation links under the default configuration of PCM of 2M.This dual mode can switch repeatedly, links successfully up to the HDLC link.
At last, after the HDLC link setup success, can the connection configuration data of reserve link be sent to stand-by equipment, make slave according to being configured of this connections configuration data, in order to principal and subordinate's link switchover in future by this HDLC link.

Claims (10)

1. the implementation method of a double chain circuits among master-salve equipments is characterized in that, may further comprise the steps:
(1) acquiescence link configuration data is set on main control device and slave;
When (2) starting, set up acquiescence link link according to described acquiescence link configuration data in the control access between described master-slave equipment; Wherein, in described master-slave equipment course of normal operation, described acquiescence link link is as active link;
(3) after normal foundation of described acquiescence link link, described main control device is issued on the described slave by the connection configuration data of described acquiescence link link with reserve link.
2. the implementation method of double chain circuits among master-salve equipments as claimed in claim 1, it is characterized in that, in the step (1), described acquiescence link configuration data comprise the acquiescence link configuration data of described acquiescence link link under different connected modes, specifically comprise: connect time slot position, adopt clock mode, route and set up link unsuccessful switching time.
3. the implementation method of double chain circuits among master-salve equipments as claimed in claim 1 is characterized in that, in the step (2), the connected mode of described acquiescence link link comprises: Ethernet connected mode, perhaps High level data link control HDLC link connected mode.
4. the implementation method of double chain circuits among master-salve equipments as claimed in claim 3 is characterized in that, described Ethernet connected mode is further classified according to two layers of routing mode or three layers of routing mode; And described HDLC link connected mode is further carried out assembled classification according to speed, port or upper-layer protocol type.
5. as the implementation method of each described double chain circuits among master-salve equipments in the claim 1 to 4, it is characterized in that in the step (2), the connected mode of described acquiescence link link is at least two kinds; Pass by in the journey at startup acquiescence chain link, whether the described acquiescence link link that constantly detects under the various connected modes by polling mode can link success; If link is unsuccessful, carry out connected mode and switch, can successfully set up up to acquiescence link link.
6. the implementation method of double chain circuits among master-salve equipments as claimed in claim 1, it is characterized in that, step (3) also comprises afterwards, in described master-slave equipment course of normal operation, if detect described active link fault, connection configuration data according to described reserve link carries out active/standby link switchover, with the active link forbidding, reserve link is enabled.
7. the implementation method of double chain circuits among master-salve equipments as claimed in claim 6 is characterized in that, in the step of described detection, disconnects if detect the active link physical connection, carries out active/standby link switchover at once.
8. the implementation method of double chain circuits among master-salve equipments as claimed in claim 7 is characterized in that, in the step of described detection, determines by the ports physical state that detects in the control access whether the active link physical connection disconnects.
9. the implementation method of double chain circuits among master-salve equipments as claimed in claim 6, it is characterized in that, in the step of described detection, whether normal, described slave sends heartbeat message to described main control device every N second if detecting described control access by the logic detection mode between described main control device and the slave; If the inferior heartbeat message that can not receive described slave of described main control device continuous N carries out principal and subordinate's link switchover, wherein, M, N are configuration parameters.
10. the implementation method of double chain circuits among master-salve equipments as claimed in claim 6 is characterized in that, in the step of described active/standby link switchover, active and standby switching is initiated by described main control device or slave; When described main control device was initiated active and standby switchings, described main control device sent switching command and arrives described slave, and described main control device and slave carry out active/standby link switchover according to the configuration data that is connected of described reserve link; When active and standby switching is initiated by described slave, described main control device is a controlling party, described slave sends a handover request to described main control device, described main control device is sent out switching command again to described slave, and described main control device and slave carry out active/standby link switchover according to the configuration data that is connected of described reserve link.
CN2008100895980A 2008-04-03 2008-04-03 Method for implementing double chain circuits among master-salve equipments Active CN101257405B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008100895980A CN101257405B (en) 2008-04-03 2008-04-03 Method for implementing double chain circuits among master-salve equipments

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008100895980A CN101257405B (en) 2008-04-03 2008-04-03 Method for implementing double chain circuits among master-salve equipments

Publications (2)

Publication Number Publication Date
CN101257405A CN101257405A (en) 2008-09-03
CN101257405B true CN101257405B (en) 2010-12-08

Family

ID=39891897

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008100895980A Active CN101257405B (en) 2008-04-03 2008-04-03 Method for implementing double chain circuits among master-salve equipments

Country Status (1)

Country Link
CN (1) CN101257405B (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101771659B (en) * 2008-11-20 2013-06-12 华为终端有限公司 Method, system and equipment for safe switch configuration
CN102118266A (en) * 2011-01-19 2011-07-06 武汉迈威光电技术有限公司 Industrial Ethernet dual-link redundancy technology
CN104052615B (en) * 2013-03-15 2017-06-09 瑞昱半导体股份有限公司 Principal and subordinate's detection method and principal and subordinate's detection circuit
CN103441875A (en) * 2013-08-23 2013-12-11 中国铁道科学研究院 Method for achieving redundant communication of signal centralized monitoring system
CN104102559B (en) * 2014-07-16 2016-07-06 浪潮电子信息产业股份有限公司 A kind of double controller storage system restarting link based on redundancy heart beating link and opposite end
CN104135412B (en) * 2014-07-28 2017-07-28 北京航天自动控制研究所 A kind of universal serial bus redundance communicating method towards multiple spot interconnecting application
CN104104567A (en) * 2014-08-08 2014-10-15 陈璟东 Networking method, control device and networking system for double communication link
CN104407947B (en) * 2014-10-29 2018-04-27 中国建设银行股份有限公司 Active and standby NAS switching methods and device
CN106603261B (en) * 2015-10-15 2019-12-06 华为技术有限公司 Hot backup method, first main device, standby device and communication system
CN106452834A (en) * 2016-08-31 2017-02-22 大连环宇移动科技有限公司 Method for guaranteeing series connection equipment to keep consistency of main/standby network ports in communication process
CN106533736B (en) * 2016-10-13 2020-09-08 杭州迪普科技股份有限公司 Network equipment restarting method and device
CN108123851B (en) * 2017-12-29 2021-04-09 北京奇虎科技有限公司 Survival detection method and device for master-slave node synchronous link in distributed system
CN108965123B (en) * 2018-07-24 2021-01-22 京东方科技集团股份有限公司 Link switching method and network communication system
CN111106981B (en) * 2019-12-21 2022-01-11 锐捷网络股份有限公司 PCIE channel overhauling method and device
CN113434604B (en) * 2021-08-25 2021-12-03 西安热工研究院有限公司 Time sequence database synchronization method, system, equipment and storage medium

Also Published As

Publication number Publication date
CN101257405A (en) 2008-09-03

Similar Documents

Publication Publication Date Title
CN101257405B (en) Method for implementing double chain circuits among master-salve equipments
CN100459601C (en) Method for realizing active/standby gateway apparatus in network
CN102098201B (en) Method for realizing L2TP user access backup and network system
CN1536819B (en) Method for implementing dual location in next network
CN102137021B (en) Remote redundancy back-up method of access controllers
CN102315975B (en) Fault processing method based on intelligent resilient framework (IRF) system and equipment thereof
CN101594383B (en) Method for monitoring service and status of controllers of double-controller storage system
CN103607293B (en) A kind of flow rate protecting method and equipment
CN1980224A (en) Method and system for recovering business after apparatus state switching-over based on main and spare netgate
CN106533736B (en) Network equipment restarting method and device
CN101001165A (en) Network failure recovery method with redundancy port
CN103534982A (en) Method, equipment and network virtualization system for protecting business reliability
CN102025562A (en) Path detection method and device
CN102388570B (en) Single board running method and system under active-standby mode
CN113328916B (en) BFD detection mode switching method, device and equipment
CN102647304A (en) Synchronizing method of address resolution protocols and device
CN102710466A (en) Master and backup board card changeover protection system, and bidirectional forwarding detection seamless handover method and device
CN106941424B (en) Redundancy switching method and device based on TTDP protocol
CN104427012A (en) Port negotiation method and device
CN112803998B (en) Multi-bus network cross-network communication method, device, system, equipment and storage medium
JP2006352544A (en) Redundant system of layer 2 network
CN101527650B (en) Communication management system, communication management method and communication device
US20130242798A1 (en) Apparatus for duplicating router in building automatic control system and controlling method thereof
JP4372078B2 (en) Gateway device
CN102255741B (en) User service information backup method and device

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