CN102904705B - Method and equipment for synchronizing batch of stacking systems - Google Patents
Method and equipment for synchronizing batch of stacking systems Download PDFInfo
- Publication number
- CN102904705B CN102904705B CN201210435996.XA CN201210435996A CN102904705B CN 102904705 B CN102904705 B CN 102904705B CN 201210435996 A CN201210435996 A CN 201210435996A CN 102904705 B CN102904705 B CN 102904705B
- Authority
- CN
- China
- Prior art keywords
- equipment
- simultaneous operation
- synchronized
- main equipment
- synchronization
- 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
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a method for synchronizing a batch of stacking systems. The method comprises the following steps that: (A), after being selected, the master equipment judges whether registered slave equipment to be synchronized exists, if the registered slave equipment to be synchronized exists, the step (D) is executed, otherwise, a user waits for the slave equipment to be registered; (B), after the first slave equipment is registered in the master equipment, the master equipment immediately starts to execute synchronization operation on the slave equipment; (C), in a process that the master equipment executes the synchronization operation on the first slave equipment, the added slave equipment is set to be synchronized, and after the synchronization operation which is executed on the first slave equipment is finished, the step (D) is executed; (D), the master equipment simultaneously executes the synchronization operation on all the sets of slave equipment to be synchronized, and in the process of executing the synchronization operation, if other sets of slave equipment are added into the stacking systems, the added slave equipment is set to be synchronized; and E, after the synchronization operation is finished, the master equipment judges whether slave equipment which is required to be synchronized still exists, if so, the step (D) is executed again, otherwise, the synchronization operation is finished.
Description
Technical field
The application relates to data communication field, particularly Stack Technology, particularly relates to a kind of method and apparatus of pile system batch synchronization.
Background technology
Pile system comprises the multiple stage network equipment (the described network equipment normally switch) linked together by stacking cable, to provide port as much as possible in limited space.The multiple stage network equipment is through stacking formation stackable unit, and these network equipments are referred to as the member device of pile system.Participate in stacking all member devices and use identical global configuration, comprise IP address, Virtual Local Area Network, Routing Protocol etc.
What require along with network stabilization and equipment dependability improves constantly, some producers of industry are on the basis of traditional stack technology with distribution switching technology in recent years, propose the virtual switch technology (VST, VirtualSwitching Technologies) for high-end devices application.Virtual switch technology is a kind of based on inner distributed switched network, virtual for the multiple stage physical equipment technology being single virtual unit and using.This technology is tradition two layers of spanning tree and L 3 virtual router redundance protocol (VRRP, Virtual Router Redundancy Protocol) technology relatively, has following advantage:
A, high reliability;
B, failure recovery time shorten to Millisecond;
C, bandwidth are multiplied and fully apply;
D, simplified network topology;
E, streamlining management.
In the network configuration of virtual switch, only have a member device to be operated in holotype and main equipment, other member devices are all as adding from equipment.After main equipment breaks down, from other member devices, again select one as new main equipment according to predetermined strategy.In order to enable the later new main equipment of switching normally work immediately, must the configuration information on original main equipment, fileinfo, status information of equipment etc. to be synchronized to from equipment in advance.
Stacking scheme of the prior art realizes mainly being divided into following a few class:
1, two member device stacking formation VST territories, synchronous only in these two equipment rooms execution.Very little, use is restricted this situation stack equipment.
2, multiple stage member device is stacking, specifies a certain member device as alternate device by configuration.In this case synchronous performs between main equipment and alternate device.This simple by configuring the method for specifying, but underaction.
3, multiple stage member device is stacking, and after main equipment is out of order, other elect one from equipment as new main equipment immediately from equipment.In this case synchronously need at main control device and allly to perform between equipment.
Wherein, the 3rd kind of situation is relatively more flexible, but will main equipment and all perform from equipment room synchronous, to synchronously having higher requirement.If still adopt sequential processes, namely one complete from device synchronization after perform next synchronous from equipment again, virtual switching network can draw very long settling time.Especially, when stack equipment is a lot of and all devices powers on simultaneously, stacking time remaining will be very long, have a strong impact on the normal use of system.
Summary of the invention
This application provides a kind of method and apparatus of pile system batch synchronization, when the member device number of pile system is very large, can synchronous efficiency be significantly improved.
The method of a kind of pile system batch synchronization that the embodiment of the present application provides, comprising:
After A, main equipment have been selected, judge local whether have registered state to be synchronized from equipment, in this way, then perform step D; Otherwise wait for and adding from facility registration;
B, First are from equipment to after main equipment succeeds in registration, and main equipment starts immediately and performs simultaneous operation to this from equipment;
C, perform the process of simultaneous operation to First from equipment at main equipment, if there are other to add from facility registration, arrange that these newly add from equipment be state to be synchronized, to First from equipment perform simultaneous operation complete after execution step D;
D, main equipment start execution simultaneous operation to all states to be synchronized from equipment simultaneously; In execution simultaneous operation process, if there are other to add pile system from equipment, arrange that these newly add from equipment be state to be synchronized;
After E, described simultaneous operation complete, main equipment judges whether to need in addition synchronous from equipment, if so, goes to D; Otherwise this simultaneous operation completes.
Preferably, in step D, described main equipment performs the method for simultaneous operation to these from equipment simultaneously and is, main equipment by sync message to all from device broadcasts.
Preferably, described main equipment starts after performing simultaneous operation from equipment, arrange described from equipment be state synchronous.
Preferably, step D comprises further:
In synchronizing process, if main equipment performs simultaneous operation failure to certain from equipment, cumulative should from the device synchronization frequency of failure, if synchronization failure number of times is less than default maximum reattempt times, so first exits this simultaneous operation performed from equipment and be re-set as state to be synchronized; Otherwise record is somebody's turn to do from device synchronization operation failure information to journal file and provides miscue information.
Preferably, described maximum reattempt times are 3.
Preferably, taking a step forward of described steps A comprises:
After in A0, pile system, all member devices power on, each member device sends election negotiation packet to other all member devices, and described election negotiation packet comprises the priority of this member device; The highest member device of priority from as main equipment, and notices other member devices for from equipment according to the precedence information election in its all election negotiation packets received.
Preferably, in steps A 0, all member devices are positioned at same virtual switch technology VST territory, and each member device sends in the process of election negotiation packet to complete and registers to main equipment.
Preferably, described election negotiation packet comprises the ID of the member device sending this election negotiation packet; Main equipment arrange send election negotiation packet from equipment be state to be synchronized.
The embodiment of the present application additionally provides a kind of batch synchronization equipment, is applied in pile system, comprises:
Judge module, after being chosen to be main equipment for place equipment, judge local whether have registered state to be synchronized from equipment, in this way, then enable synchronization module; Otherwise wait for and adding from facility registration;
Module is set, for place equipment as main equipment to performing in the process of simultaneous operation from equipment, if there are other to add from facility registration, arrange that these newly add from equipment be state to be synchronized;
Synchronization module, after being chosen to be main equipment for place equipment, First, from equipment to after main equipment succeeds in registration, starts immediately and performs simultaneous operation to this from equipment; Be judged module enable after or on after once simultaneous operation completes, start the simultaneous operation of all registered states to be synchronized from equipment simultaneously.
Synchronization module comprises further:
Summing elements, in synchronizing process, if perform simultaneous operation failure to certain from equipment, described summing elements is used for cumulative being somebody's turn to do from the device synchronization frequency of failure, if synchronization failure number of times is less than default maximum reattempt times, so first exit to this from equipment perform simultaneous operation and be re-set as state to be synchronized; Otherwise enable record cell;
Record cell, for providing miscue information at enable rear record from device synchronization operation failure information to journal file.
As can be seen from the above technical solutions, main equipment simultaneously to multiple stage state to be synchronized from equipment perform simultaneous operation, and in the process of simultaneous operation, if there be new adding from equipment, then these are set to state to be synchronized from equipment, wait for this subsynchronous complete after carry out simultaneous operation at the logical equipment treating synchronous regime simultaneously.The advantage of the program is, stack equipment is more, and lock in time can not be multiplied, and when the member device number of pile system is very large, can significantly improve synchronous efficiency.
Accompanying drawing explanation
Fig. 1 is the method flow diagram that the application proposes a kind of pile system batch synchronization;
The method flow diagram of a kind of pile system batch synchronization that Fig. 2 provides for the embodiment of the present application.
Embodiment
For the problem that the synchronous efficiency in the pile system of prior art between equipment is not high, the application proposes a kind of method of pile system batch synchronization, as shown in Figure 1, mainly comprises several step below:
Step 101: after main equipment has been selected, first judges local whether have registered to be synchronized from equipment, in this way, then performs step 104; Otherwise wait for and adding from facility registration.
Step 102: First is from equipment to after main equipment succeeds in registration, and main equipment starts immediately and performs simultaneous operation to this from equipment.
Note, can not wait for here, because when adding from equipment below cannot be predicted.
Step 103: perform the process of simultaneous operation to First from equipment at main equipment, if there are other to add from facility registration, arrange that these newly add from equipment be state to be synchronized, to First from equipment perform simultaneous operation complete after execution step 104.
Step 104: main equipment starts execution simultaneous operation to all states to be synchronized from equipment simultaneously; In execution simultaneous operation process, if there are other to add pile system from equipment, arrange that these newly add from equipment be state to be synchronized.
Preferably, described main equipment performs the method for simultaneous operation to these from equipment simultaneously and is, main equipment by sync message to all from device broadcasts.
Step 105: after described simultaneous operation completes, main equipment judges whether to need in addition synchronous from equipment, if so, goes to 104; Otherwise this simultaneous operation completes.
If in synchronizing process, certain breaks down from equipment, cannot perform synchronous, add up and from the device synchronization frequency of failure, if the frequency of failure is less than default maximum reattempt times, so first this should be exited from equipment from simultaneous operation and be set to state to be synchronized; Otherwise arrange and should provide miscue information to perform manual intervention from equipment fault to journal file.In the process, other simultaneous operation from equipment continues to perform.Maximum reattempt times can be set to 3.
In described pile system, the election of main equipment can adopt various ways, such as, after in pile system, all member devices power on, each member device sends election negotiation packet to other all member devices, and described election negotiation packet comprises the priority of this member device; The highest member device of priority from as main equipment, and notices other member devices for from equipment according to the precedence information election in its all election negotiation packets received.Described election negotiation packet comprises the ID of the member device sending this election negotiation packet; Main equipment arrange send election negotiation packet from equipment be state to be synchronized.Wherein, all member devices can be positioned at same virtual switch technology VST territory, and each member device sends in the process of election negotiation packet to complete and registers to main equipment.
The advantage of the program is, stack equipment is more, and lock in time can not be multiplied, and when the member device number of pile system is very large, can significantly improve synchronous efficiency.
For making the know-why of technical scheme, feature and technique effect clearly, below in conjunction with specific embodiment technical scheme being performed and elaborating.
The method flow of a kind of pile system batch synchronization that Fig. 2 provides for the embodiment of the present application, comprises the steps:
Step 201: adopt in the pile system of VST technology after only having a member device to start and (only have a member device due to current, then the election of this member device oneself is main equipment), wait for from device start and add the VST territory at main equipment place, once detect from equipment and add, so then perform step 202.In this step, because main equipment elects, so when other member devices are registered to main equipment by sending election negotiation packet, now owing to having main equipment, then this main equipment can notice this member device is from equipment.
Step 202: start immediately the described synchronizing process from equipment.
Step 203: from device synchronization process, detect and multiplely add VST territory from equipment, so arranging these states from equipment is state to be synchronized.
Step 204: check whether current synchronization process completes, if so, perform step 205, otherwise perform step 207.
Step 205: judge to treat whether to exist be in state to be synchronized from equipment, if so, perform step 206, otherwise process ends.
Step 206: take out and be in all from equipment of state to be synchronized, main equipment performs synchronous to these simultaneously from equipment; And these are set from equipment for just in synchronous regime, forward step 203 to.
Step 207: check current synchronous from equipment with or without the situation of synchronization failure or Synchronization timeout, if had, this is added 1 from device synchronization fail count, goes to step 208, otherwise, go to step 204.
Step 208: check and whether should be greater than 3 from device synchronization fail counter, if so, performs step 209, otherwise performs step 210.
Step 209: arranging should be synchronization failure state from equipment, was set in log information, and print prompt information, turn manual intervention operation.
Step 210: this is set to state to be synchronized again from equipment, goes to step 204.
The embodiment of the present application additionally provides a kind of batch synchronization equipment, is applied in pile system, comprises:
Judge module, after being chosen to be main equipment for place equipment, judge local whether have registered state to be synchronized from equipment, in this way, then enable synchronization module; Otherwise wait for and adding from facility registration;
Module is set, for place equipment as main equipment to performing in the process of simultaneous operation from equipment, if there are other to add from facility registration, arrange that these newly add from equipment be state to be synchronized;
Synchronization module, after being chosen to be main equipment for place equipment, First, from equipment to after main equipment succeeds in registration, starts immediately and performs simultaneous operation to this from equipment; Be judged module enable after or on after once simultaneous operation completes, start the simultaneous operation of all registered states to be synchronized from equipment simultaneously.
Preferably, synchronization module comprises further:
Summing elements, in synchronizing process, if perform simultaneous operation failure to certain from equipment, described summing elements is used for cumulative being somebody's turn to do from the device synchronization frequency of failure, if synchronization failure number of times is less than default maximum reattempt times, so first exit to this from equipment perform simultaneous operation and be re-set as state to be synchronized; Otherwise enable record cell;
Record cell, for providing miscue information at enable rear record from device synchronization operation failure information to journal file.
The foregoing is only the preferred embodiment of the application; not in order to limit the protection range of the application; within all spirit in technical scheme and principle, any amendment made, equivalent replacements, improvement etc., all should be included within scope that the application protects.
Claims (7)
1. a method for pile system batch synchronization, is characterized in that, comprising:
After A, main equipment have been selected, judge local whether have registered state to be synchronized from equipment, in this way, then perform step D; Otherwise wait for and adding from facility registration;
B, First are from equipment to after main equipment succeeds in registration, and main equipment starts immediately and performs simultaneous operation to this from equipment, arrange described from equipment for just in synchronous regime;
C, perform the process of simultaneous operation to First from equipment at main equipment, if there are other to add from facility registration, arrange that these newly add from equipment be state to be synchronized, to First from equipment perform simultaneous operation complete after execution step D;
D, main equipment start execution simultaneous operation to all states to be synchronized from equipment simultaneously, arrange described from equipment for just in synchronous regime; In execution simultaneous operation process, if there are other to add pile system from equipment, arrange that these newly add from equipment be state to be synchronized; In execution simultaneous operation process, if main equipment performs simultaneous operation failure to certain from equipment, adding up should from the device synchronization frequency of failure, if synchronization failure number of times is less than default maximum reattempt times, so first exit to this from equipment perform simultaneous operation and be re-set as state to be synchronized; Otherwise record is somebody's turn to do from device synchronization operation failure information to journal file and provides miscue information;
After E, described simultaneous operation complete, main equipment judges whether to need in addition synchronous from equipment, if so, goes to D; Otherwise this simultaneous operation completes.
2. method according to claim 1, is characterized in that, in step D, described main equipment performs the method for simultaneous operation to these from equipment simultaneously and is, main equipment by sync message to all from device broadcasts.
3. method according to claim 1, is characterized in that, described maximum reattempt times are 3.
4. the method according to any one of claims 1 to 3, is characterized in that, taking a step forward of described steps A comprises:
After in A0, pile system, all member devices power on, each member device sends election negotiation packet to other all member devices, and described election negotiation packet comprises the priority of this member device; The highest member device of priority from as main equipment, and notices other member devices for from equipment according to the precedence information election in its all election negotiation packets received.
5. method according to claim 4, is characterized in that, in steps A 0, all member devices are positioned at same virtual switch technology VST territory, and each member device sends in the process of election negotiation packet to complete and registers to main equipment.
6. method according to claim 4, is characterized in that, described election negotiation packet comprises the ID of the member device sending this election negotiation packet; Main equipment arrange send election negotiation packet from equipment be state to be synchronized.
7. a batch synchronization equipment, is applied in pile system, it is characterized in that, comprising:
Judge module, after being chosen to be main equipment for place equipment, judge local whether have registered state to be synchronized from equipment, in this way, then enable synchronization module; Otherwise wait for and adding from facility registration;
Module is set, for place equipment as main equipment to performing in the process of simultaneous operation from equipment, if there are other to add from facility registration, arrange that these newly add from equipment be state to be synchronized;
Synchronization module, after being chosen to be main equipment for place equipment, First, from equipment to after main equipment succeeds in registration, starts immediately and performs simultaneous operation to this from equipment, arrange described from equipment for just in synchronous regime; Be judged module enable after or on after once simultaneous operation completes, start the simultaneous operation of all registered states to be synchronized from equipment simultaneously, arrange described from equipment for just in synchronous regime; Synchronization module also comprises:
Summing elements, in synchronizing process, if perform simultaneous operation failure to certain from equipment, described summing elements is used for cumulative being somebody's turn to do from the device synchronization frequency of failure, if synchronization failure number of times is less than default maximum reattempt times, so first exit to this from equipment perform simultaneous operation and be re-set as state to be synchronized; Otherwise enable record cell;
Record cell, for providing miscue information at enable rear record from device synchronization operation failure information to journal file.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210435996.XA CN102904705B (en) | 2012-11-05 | 2012-11-05 | Method and equipment for synchronizing batch of stacking systems |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210435996.XA CN102904705B (en) | 2012-11-05 | 2012-11-05 | Method and equipment for synchronizing batch of stacking systems |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102904705A CN102904705A (en) | 2013-01-30 |
CN102904705B true CN102904705B (en) | 2015-06-03 |
Family
ID=47576760
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210435996.XA Active CN102904705B (en) | 2012-11-05 | 2012-11-05 | Method and equipment for synchronizing batch of stacking systems |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102904705B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106209690A (en) * | 2015-05-08 | 2016-12-07 | 中兴通讯股份有限公司 | A kind of synchronize the method for configuration information, main equipment and standby equipment |
CN106411574B (en) * | 2016-09-05 | 2020-01-03 | 新华三信息技术有限公司 | Management control method and device |
CN106209480B (en) * | 2016-09-05 | 2019-11-12 | 杭州迪普科技股份有限公司 | The method and device of synchronous configuration information |
CN110881008B (en) * | 2018-09-05 | 2022-02-18 | 瑞昱半导体股份有限公司 | Method for synchronously forwarding database |
CN112732343B (en) * | 2020-12-31 | 2022-04-22 | 中国电子科技网络信息安全有限公司 | Method for loading service primary and secondary board cards in stacking equipment |
CN113064343A (en) * | 2021-03-22 | 2021-07-02 | 绍兴学森能源科技有限公司 | Multi-system scheduling method based on reliable fuel cell |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101110782A (en) * | 2007-08-28 | 2008-01-23 | 中兴通讯股份有限公司 | System management piling method used for Ethernet switchboard |
CN101141404A (en) * | 2007-10-16 | 2008-03-12 | 中兴通讯股份有限公司 | Stack system topological management method and topological alteration notifying method |
CN101478435A (en) * | 2009-01-20 | 2009-07-08 | 杭州华三通信技术有限公司 | Topology collecting method for stacking system and dual control board equipment |
CN101599909A (en) * | 2009-07-08 | 2009-12-09 | 杭州华三通信技术有限公司 | The method and apparatus that a kind of flow is transmitted |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8873377B2 (en) * | 2009-11-18 | 2014-10-28 | Juniper Networks, Inc. | Method and apparatus for hitless failover in networking systems using single database |
-
2012
- 2012-11-05 CN CN201210435996.XA patent/CN102904705B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101110782A (en) * | 2007-08-28 | 2008-01-23 | 中兴通讯股份有限公司 | System management piling method used for Ethernet switchboard |
CN101141404A (en) * | 2007-10-16 | 2008-03-12 | 中兴通讯股份有限公司 | Stack system topological management method and topological alteration notifying method |
CN101478435A (en) * | 2009-01-20 | 2009-07-08 | 杭州华三通信技术有限公司 | Topology collecting method for stacking system and dual control board equipment |
CN101599909A (en) * | 2009-07-08 | 2009-12-09 | 杭州华三通信技术有限公司 | The method and apparatus that a kind of flow is transmitted |
Non-Patent Citations (2)
Title |
---|
武荷岚等.弹性堆叠系统中控制数据同步的方法.《华东师范大学学报(自然科学版)》.2008,(第2期), * |
陈丽佳.网络设备IRF虚拟化堆叠技术的研究与实现.《中国优秀硕士学位论文全文数据库信息科技辑(2012年)》.2012,(第04期), * |
Also Published As
Publication number | Publication date |
---|---|
CN102904705A (en) | 2013-01-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102904705B (en) | Method and equipment for synchronizing batch of stacking systems | |
US7848226B2 (en) | Communication system, switch | |
CN101588304B (en) | Implementation method of VRRP and device | |
CN101610182B (en) | Multi-primary apparatus conflict detection method in stack and stack member apparatus | |
CN104104570A (en) | Aggregation processing method in IRF (Intelligent Resilient Framework) system and device | |
CN102916857B (en) | Stacking and splitting quick detection method and device | |
CN102355366B (en) | Member-stacking device and method for managing member-stacking device at split stacking moment | |
CN103929333A (en) | Implementation method for SDN controller pool | |
CN102025646A (en) | Link switching method and device thereof | |
WO2015026950A1 (en) | Dedicated control path architecture for stacked packet switches | |
CN101771570B (en) | State switching method and device | |
CN105119822A (en) | Backup group management method and system based on VRRP (Virtual Router Redundancy Protocol) | |
CN104427012B (en) | Port negotiation method and apparatus | |
CN103441938B (en) | Port switching method and communication equipment | |
CN102209008A (en) | Multi-activation detection method and device used for intelligent elastic framework | |
CN106941424B (en) | Redundancy switching method and device based on TTDP protocol | |
EP3213441A1 (en) | Redundancy for port extender chains | |
CN103297279B (en) | The active and standby single-deck reverse method of software control in a kind of many software process system | |
CN109981353B (en) | Method and system for protecting adjacent station redundancy in frame type network communication equipment | |
CN105763448B (en) | A kind of message transmitting method and device | |
JP2013141227A (en) | Dynamic virtual lans to segregate data | |
CN102571598A (en) | VRRP group flow synchronous switching method and route equipment | |
US20160308752A1 (en) | Method and apparatus for implementing redundancy protection | |
CN101958809B (en) | Method for realizing shared recovery in ASON (Automatic Switch Optical Network) network based on packet switching | |
JP2014140095A (en) | Communication system and network relay 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 |