CN101854715B - Method, system and device for realizing synchronization between mainly-used equipment and standby equipment - Google Patents

Method, system and device for realizing synchronization between mainly-used equipment and standby equipment Download PDF

Info

Publication number
CN101854715B
CN101854715B CN2010102159175A CN201010215917A CN101854715B CN 101854715 B CN101854715 B CN 101854715B CN 2010102159175 A CN2010102159175 A CN 2010102159175A CN 201010215917 A CN201010215917 A CN 201010215917A CN 101854715 B CN101854715 B CN 101854715B
Authority
CN
China
Prior art keywords
protocol
module
equipment
self
information
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.)
Expired - Fee Related
Application number
CN2010102159175A
Other languages
Chinese (zh)
Other versions
CN101854715A (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.)
Ruijie Networks Co Ltd
Original Assignee
Fujian Star Net Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujian Star Net Communication Co Ltd filed Critical Fujian Star Net Communication Co Ltd
Priority to CN2010102159175A priority Critical patent/CN101854715B/en
Publication of CN101854715A publication Critical patent/CN101854715A/en
Application granted granted Critical
Publication of CN101854715B publication Critical patent/CN101854715B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Communication Control (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a method, a system and a device for realizing synchronization between mainly-used equipment and standby equipment, which is used for solving the problem of low accuracy of output results caused by out-of-synchronism between the mainly-used equipment and the standby equipment in the prior art. The method comprises the following steps that: aiming at every protocol module per se and according to the information of other protocol modules per se called by the every protocol module, the mainly-used equipment constructs a first protocol message which comprises the information of the other protocol modules and sends the first protocol message; and the standby equipment indicates a corresponding protocol module per se to call corresponding other protocol modules per se according to the information of the other protocol modules in the first protocol message. According to the scheme provided by the invention, the standby equipment calls the corresponding other protocol modules according to the information sent by the mainly-used equipment of the other protocol modules called by the every protocol module, so the consistency of the calling the every protocol module by the mainly-used equipment and the calling of the other protocol modules by the standby equipment is strictly ensured, and the accuracy of the output results is improved.

Description

A kind of host apparatus and synchronous method, system and device of stand-by equipment realized
Technical field
The present invention relates to communication technical field, relate in particular to a kind of host apparatus and synchronous method, system and device of stand-by equipment realized.
Background technology
(Link Aggregation ControlProtocol LACP) is agreement about the port dynamic aggregation to Link Aggregation Control Protocol in the IEEE 802.3ad standard.Based on this agreement; Link Aggregation Control Protocol Data Unit (Link Aggregation Control Protocol Data Unit; LACPDU) and adjacent equipment carry out the mutual of information through protocol massages; Select corresponding ports to carry out converging operation, and the state consistency of the selecteed port of both sides.When port carries out converging operation, can allow two equipment to participate in the aggregation group of carrying out converging operation simultaneously through a plurality of ports, realize forwarding of data through aggregation group.Therefore port trunking can the parallel transmission data, and higher bandwidth and bigger throughput can be provided.
Because LACP is based on the agreement of software, when the input information of software was identical, its output information also was identical.Input information based on the LACP module of LACP comprises: port attribute information, LACP protocol massages and configuration information.The output information of LACP module comprises: the polymerization state information of port.When input information was identical, the output information that the LACP module is confirmed according to input information was identical.Meet above-mentioned characteristic too to other protocol modules.
In host apparatus and stand-by equipment, comprise a plurality of protocol modules, for example can comprise the LACP module, and other protocol modules.Fig. 1 be in the prior art when stand-by equipment adds system, realize the method for active and standby device synchronization, this method may further comprise the steps:
S101: after the stand-by equipment adding system, host apparatus receiving system batch backup solicited message.
S102: host apparatus is according to the batch backup solicited message that receives, and each input information of self each protocol module is sent to the stand-by equipment end.
S103: stand-by equipment receives the input information that host apparatus sends, and indicates each protocol module of correspondence of self to carry out corresponding operation according to the type of input information, and confirms corresponding output result.
Wherein in host apparatus and stand-by equipment, the output result of protocol module is calling self other protocol module.And, can confirm this protocol module calls which other protocol module of self when the output of known a certain protocol module as a result the time.
Fig. 2 in the prior art when backing up in realtime, realize the synchronous method of master/slave device, this method may further comprise the steps:
S201: host apparatus sends to stand-by equipment with the change information of each input information of each protocol module of self.
S202: stand-by equipment is according to the change information that receives each input information; With the change information of this input information input information as self corresponding protocols module; Indicate self protocol module type information according to this input information; And the change information of this input information carries out corresponding operation, and confirms corresponding output result, thereby upgrades the information that this protocol module calls self other external module.
When host apparatus and stand-by equipment switched, each protocol module of stand-by equipment began operate as normal, promptly carries out information interaction with external hardware device.
For the protocol module in host apparatus and the stand-by equipment; The factor that influences the output information of protocol module also comprises: the initial condition of agreement in the protocol module; The protocol massages that the initialization state protocol module of protocol module has received, state of agreement timer or the like.In the synchronizing process of the above-mentioned host apparatus of prior art and stand-by equipment, for example when protocol module is the LACP module, after protocol module receives the message that neighbours LACPDU sends 2 seconds, port got into polymerization state.Though host apparatus can send synchronizing information to stand-by equipment; Though and this moment, stand-by equipment backed up the synchronizing information that host apparatus sends; But, stand-by equipment needs the regular hour because confirming the output result; If during this period of time, host apparatus breaks down, when stand-by equipment switches to host apparatus; Because the state of the corresponding LACP module port of this stand-by equipment is also finally confirmed, thereby is caused the corresponding LACP module of host apparatus and stand-by equipment inconsistent according to other modules of outside of exporting call by result.When host apparatus and stand-by equipment switching, cause depending on the ruuning situation difference of other external modules of output call by result, thus the final accuracy of exporting the result of influence.
Summary of the invention
In view of this, the embodiment of the invention provides a kind of host apparatus and synchronous method, system and device of stand-by equipment realized, asynchronous in order to active and standby equipment in the solution prior art, the final output that causes is the low problem of accuracy as a result.
A kind of host apparatus and synchronous method of stand-by equipment of realizing that the embodiment of the invention provides comprises:
Host apparatus receives the batch backup request, to each protocol module of self, and according to the output result of this protocol module, the information of self other protocol module of confirming that said protocol module calls;
Structure comprises first protocol massages of the information of said other protocol modules, and said first protocol massages is sent to stand-by equipment;
Said stand-by equipment receives said first protocol massages, and according to the information of said other protocol modules in said first protocol massages, indicates corresponding other protocol modules of self corresponding protocols module invokes self.
A kind of host apparatus and synchronous system of stand-by equipment of realizing comprises:
Host apparatus; Be used to receive the batch backup request; To each protocol module of self, according to the output result of this protocol module, the information of self other protocol module of confirming that said protocol module calls; Structure comprises first protocol massages of the information of said other protocol modules, and said first protocol massages is sent to stand-by equipment;
Stand-by equipment is used to receive said first protocol massages, and according to the information of said other protocol modules in said first protocol massages, indicates corresponding other protocol modules of self corresponding protocols module invokes self.
The embodiment of the invention provides a kind ofly realizes synchronous equipment, and said equipment comprises:
Constructing module; Be used to receive the batch backup request, to each protocol module of self, according to the output result of this protocol module; The information of self other protocol module of confirming that said protocol module calls, structure comprises first protocol massages of the information of said other protocol modules;
Sending module is used for said first protocol massages of structure is sent to stand-by equipment.
The embodiment of the invention provides a kind ofly realizes synchronous equipment, and said equipment comprises:
Receiver module; Be used to receive first protocol massages; Wherein, said first protocol massages is each protocol module that host apparatus is directed against self, according to the output result of this protocol module; The information of self other protocol module of confirming that said protocol module calls, the message of the information that comprises said other protocol modules of structure;
Calling module is used for the information according to said other protocol modules of said first protocol massages, indicates corresponding other protocol modules of self corresponding protocols module invokes self.
The embodiment of the invention provides a kind of host apparatus and synchronous method, system and device of stand-by equipment realized; Host apparatus is to self each protocol module in this method; The information of self other protocol module that calls according to this protocol module; Structure comprises first protocol massages and the transmission of the information of other protocol modules; Stand-by equipment is according to the information of other protocol modules in first protocol massages; Indicate corresponding other protocol modules of self corresponding protocols module invokes self, because the information of other external modules that host apparatus calls self each protocol module in the embodiment of the invention has sent to the stand-by equipment side, each protocol module that stand-by equipment is sent according to host apparatus calls the information of other protocol modules and carries out calling of corresponding other protocol modules; Therefore strict guarantee host apparatus and stand-by equipment call the consistency that each protocol module calls other protocol modules, thereby improved the accuracy of exporting the result.
Description of drawings
Fig. 1 be in the prior art when stand-by equipment adds system, realize the synchronous method of master/slave device;
Fig. 2 in the prior art when backing up in realtime, realize the synchronous method of master/slave device;
The synchronous method of realization master/slave device that Fig. 3 provides for the embodiment of the invention;
Fig. 4 for the embodiment of the invention provide after stand-by equipment gets up, the concrete implementation procedure that master/slave device is synchronous;
Host apparatus that Fig. 5 provides for the embodiment of the invention and stand-by equipment are realized synchronous method in the process of backing up in realtime;
The concrete implementation method that the realization master/slave device that Fig. 6 provides for the embodiment of the invention is synchronous;
The system configuration sketch map that the realization master/slave device that Fig. 7 provides for the embodiment of the invention is synchronous;
Fig. 8 a kind ofly realizes synchronous device structure sketch map for what the embodiment of the invention provided;
Fig. 9 realizes synchronous device structure sketch map for the another kind that the embodiment of the invention provides.
Embodiment
The embodiment of the invention is in order to improve the synchronous accuracy of host apparatus and stand-by equipment; And improve output result's accuracy; A kind of host apparatus and synchronous method of stand-by equipment of realizing is provided; The information of other protocol modules that host apparatus calls self each protocol module in this method sends to stand-by equipment, and stand-by equipment calls corresponding other protocol modules according to receiving the information that this each protocol module calls other protocol modules; Call other identical protocol modules and carry out follow-up flow process thereby reach each protocol module of host apparatus and stand-by equipment, thereby improve output result's accuracy.
Below in conjunction with Figure of description, the embodiment of the invention is elaborated.
The synchronous method of realization master/slave device that Fig. 3 provides for the embodiment of the invention, this method may further comprise the steps:
S301: system sends the request of batch backup to host apparatus.
When stand-by equipment was added in the system at host apparatus place, system sent in batches the batch backup request to the stand-by equipment backup information to host apparatus.
S302: host apparatus is to each protocol module of self; Output result according to this protocol module; The information of self other protocol module of confirming that this protocol module calls; Structure comprises first protocol massages of the information of said other protocol modules, and said first protocol massages that will construct sends to said stand-by equipment.
Host apparatus also comprises when sending first protocol massages to stand-by equipment in embodiments of the present invention: the input information of this said protocol module of host apparatus sends to stand-by equipment.
Wherein this input information is different to the different protocol module, and for example for the LACP module, its input information can comprise: one or more in port attribute information, protocol massages and the configuration information.
S303: stand-by equipment receives said first protocol massages.
S304: stand-by equipment is indicated corresponding other protocol modules of self corresponding protocols module invokes self according to the information of other protocol modules in said first protocol massages.
For example for host apparatus; When the LACP module of this host apparatus to self; When confirming that this LACP need call first external module and second external module of self; Then host apparatus is according to information structuring first protocol massages of LACP module invokes first external module and second external module, and this first protocol massages is sent to stand-by equipment.
When stand-by equipment receives this first protocol massages, indicate first external module and second external module of the LACP module invokes self of self.
When stand-by equipment received the input information of host apparatus transmission, this stand-by equipment corresponding protocols module was carried out corresponding operation according to the type of input information.Wherein this corresponding protocols module of stand-by equipment comprises according to the corresponding operation of type execution of input information: when input information is configuration information; This protocol module of stand-by equipment carries out corresponding configuration; When input information is protocol massages; This protocol module of stand-by equipment is confirmed the output of oneself state machine with the input of said protocol massages as the oneself state machine.
In embodiments of the present invention after stand-by equipment joins in the system at host apparatus place; The request of the batch backup that the host apparatus system that receives sends; Host apparatus sends to stand-by equipment with the input information of self each protocol module; After stand-by equipment receives the input information of host apparatus transmission, indicate the respective protocol module of self to confirm corresponding output result according to this input information.But consistent for the output that guarantees stand-by equipment and host apparatus, the information of other protocol modules that promptly call is consistent, this moment stand-by equipment each protocol module not according to the output result who self confirms, call corresponding other protocol modules.Each protocol module of stand-by equipment but the information of other protocol modules in first protocol massages that sends according to host apparatus is called corresponding other protocol modules in this stand-by equipment.Therefore host apparatus and stand-by equipment can keep synchronously in the batch backup stage in real time in embodiments of the present invention, and each corresponding protocol module calls other the identical protocol modules in self, thereby improve output result's accuracy.
Fig. 4 for the embodiment of the invention provide after stand-by equipment gets up, the concrete implementation procedure of active and standby device synchronization, this process may further comprise the steps:
S401: stand-by equipment joins in the system at host apparatus place, the batch backup request that the host apparatus receiving system is sent.
S402: host apparatus is according to the batch backup request that receives, and obtains the input information of self each protocol module, and the input information of each protocol module that obtains is sent to stand-by equipment.
S403: and; Host apparatus is to self each protocol module; The information of other protocol modules that this protocol module of preserving according to self calls, structure comprises first protocol massages of the information of said other protocol modules, and said first protocol massages that will construct sends to stand-by equipment.
In embodiments of the present invention; Because each protocol module in the host apparatus according to the input information of self, is confirmed the output result; This output result can be kept at host apparatus inside, and this output result is the information that this protocol module calls self other protocol module.
S404: stand-by equipment receives the input information that host apparatus sends; Indicate self corresponding protocols module to carry out corresponding operation synchronously with this protocol module of host apparatus according to the type of input information; Confirm the output result of self, but this moment stand-by equipment the output call by result stand-by equipment do not confirmed of this protocol module according to self in corresponding other protocol modules.
S405: stand-by equipment is indicated corresponding other protocol modules of this corresponding protocols module invokes self according to the information of other protocol modules in first protocol massages that receives.
The order of step S402 and step S403 can be exchanged in the foregoing description, and the order of step S404 and step S405 also can exchange, and when concrete the execution, can select the order of each step of host apparatus and stand-by equipment execution as required arbitrarily.
In the scheme that the embodiment of the invention provides; The output information of host apparatus and each protocol module of stand-by equipment is distinguished; This output information can comprise the output result that each protocol module of host apparatus and stand-by equipment is confirmed according to input information; The output result that should confirm can be used for stand-by equipment and carry out active and standby equipment when switching, and inquiry needs the information of other protocol modules that self each protocol module need call.This output information also comprises the information of current other protocol modules that call of each protocol module, and the information of these current other protocol modules that call is actual the calling that host apparatus and stand-by equipment carry out other protocol modules.
Each protocol module of host apparatus self is confirmed the output result according to the input information that obtains, and according to the output result who confirms corresponding other protocol modules in the host apparatus is called.The information of other protocol modules that therefore the output result of each protocol module need call in the host apparatus is consistent with the information of current other protocol modules that call of each protocol module of host apparatus.For example when this protocol module is the LACP module; This LACP module of host apparatus is according to the input information of self; When the output result who confirms was polymerization state for self certain port, corresponding other protocol modules that the LACP module adopts this corresponding port to call in the host apparatus were realized polymerization states.
The embodiment of the invention host apparatus according to this host apparatus that calls of each protocol module of self in during information structuring first protocol massages of other protocol modules; Because the information of other protocol modules that the output result that each protocol module of host apparatus is confirmed need call; The information of other protocol modules that call with this protocol module of host apparatus is consistent; Therefore the output that can confirm according to self each protocol module of the host apparatus information of other protocol modules of calling of needs as a result; Construct first protocol massages; Be that host apparatus can confirm the information of other protocol modules of this protocol module, thereby structure comprise first protocol massages of these other protocol module information according to the definite output result of self each protocol module.
When stand-by equipment received the input information of host apparatus transmission, the corresponding protocol module of stand-by equipment was confirmed the output result of self according to this input information.But; In order to guarantee the synchronous of stand-by equipment and host apparatus; Even the input information that each protocol module of stand-by equipment sends according to host apparatus has been confirmed the output result of self; And also can export the information of other protocol modules in this stand-by equipment that the result knows that needs call according to this; But this moment, each protocol module in the stand-by equipment according to the output result who self confirms, did not call other protocol modules in the stand-by equipment accordingly, but the information of other protocol modules that comprise in first protocol massages that sends according to the host apparatus that stand-by equipment receives; Call corresponding other protocol modules, thereby keep strict synchronism with host apparatus.When the protocol module of master/slave device and stand-by equipment calls other protocol modules of self, realize through the interface that calls other protocol modules.
After host apparatus carries out batch backup to stand-by equipment; The process that host apparatus also need be backed up in realtime to stand-by equipment; Host apparatus that Fig. 5 provides for the embodiment of the invention and stand-by equipment are realized synchronous method in the process of backing up in realtime, this method may further comprise the steps:
S501: host apparatus is according to the input information that receives, to each protocol module, confirms the change information of self this protocol module input information, and the change information of this input information is sent to stand-by equipment.
S502: and; Host apparatus calls the information of self other protocol module according to current self this protocol module; Confirm that this protocol module calls the variation of self other protocol module; Structure comprises second protocol massages of the change information of said variation, and said second protocol massages that will construct sends to said stand-by equipment.
S503: stand-by equipment receives the change information of the input information of host apparatus transmission; Indicate self to should protocol module according to the type information of said input information; And the change information of this input information is carried out corresponding operation; Confirm the output result, but not according to corresponding other protocol modules in the output call by result stand-by equipment of self confirming.
S504: stand-by equipment is according to the change information that comprises in said second protocol massages that receives, and indication corresponding protocols module is according to this change information, upgrades self other protocol modules that call.
In the above embodiment of the present invention because in the stage of backing up in realtime; Host apparatus has sent the change information of the input information of self each protocol module to stand-by equipment; And self the change information of variation of other protocol modules that self each protocol module is called has been constructed second protocol massages, and second protocol massages has been sent to stand-by equipment.And the corresponding protocol module of stand-by equipment is according to the change information of this input information; Carried out corresponding operation; Confirmed the output result of self, each protocol module of stand-by equipment calls corresponding other protocol modules in this stand-by equipment not according to the output result who self confirms at this moment; But second protocol massages that comprises change information that sends according to host apparatus, the information of other protocol modules that self is called is upgraded.
For example; First protocol module of host apparatus is according to input information; Confirm the output result of himself; This output result calls second protocol module and the 3rd protocol module of this host apparatus, and host apparatus is that first protocol module calls second protocol module and the 3rd protocol module according to the output result of first protocol module.In the batch backup stage; Host apparatus sends to stand-by equipment with the input information of self first protocol module; And calling the information of second protocol module and the 3rd protocol module according to self first protocol module, structure comprises first protocol massages of this second protocol module and the 3rd protocol module information and sends to stand-by equipment.
The input information that correspondence first protocol module of stand-by equipment sends according to the host apparatus that receives; Confirm the output result of self; But the output result that stand-by equipment is not confirmed according to first protocol module self; Call corresponding other protocol modules, even this moment, the output result of this first protocol module calls the information of second protocol module and the 3rd protocol module.Second protocol module that comprises in first protocol massages of stand-by equipment according to the host apparatus transmission and the information of the 3rd protocol module confirm that this moment, first protocol module of self called second protocol module and the 3rd protocol module.
In the stage of backing up in realtime; Host apparatus sends to stand-by equipment with the change information of the input information of first protocol module of self; And the change information of the variation of other protocol modules that self first protocol module is called, be carried in second protocol massages of structure and send to stand-by equipment.For example first protocol module of host apparatus calls self second protocol module and the 4th protocol module at this moment, then comprises the 3rd protocol module never call in this second protocol massages, and the invoked information of the 4th protocol module.First protocol module of stand-by equipment correspondence is confirmed the output result of self according to the change information of the input information of host apparatus transmission.And the change information that comprises in second protocol massages of first protocol module of stand-by equipment according to the host apparatus transmission at this moment, the information of other protocol modules that self is called is upgraded.
Because the input information that the corresponding protocol module of stand-by equipment sends according to host apparatus; Or according to the change information of input information and input information; Confirm the output result of self, and first protocol massages that sends according to host apparatus of the corresponding protocol module of stand-by equipment, or first protocol massages and second protocol massages; Call corresponding other protocol modules, or the information of other protocol modules that self is called is upgraded.
When host apparatus and stand-by equipment switch; Be that stand-by equipment is when switching to host apparatus; Stand-by equipment is to each protocol module of self; The information of self other protocol module that detects that output result that this protocol module confirms need call, the information with current self other protocol module that calls of this protocol module is consistent, when judgement is inconsistent; Adopt the information of current self other protocol module that calls of this protocol module, to said protocol module according to output as a result the information of self other protocol module of calling of needs upgrade.
When stand-by equipment switches to host apparatus in embodiments of the present invention; Comprise that stand-by equipment receives the order that switches to host apparatus; Or stand-by equipment each process point in switching to the process of host apparatus; Promptly as long as calling other protocol modules each time point before carrying out corresponding operation, in the time of can being called stand-by equipment and switching to host apparatus at each protocol module of stand-by equipment.After stand-by equipment switched to host apparatus, stand-by equipment called corresponding external hardware module according to the output of self each protocol module.
Realization host apparatus and the synchronous concrete implementation method of stand-by equipment that Fig. 6 provides for the embodiment of the invention, this method may further comprise the steps:
S601: when stand-by equipment is added in the system at host apparatus place, the batch backup request that the host apparatus receiving system is sent.
S602: host apparatus is according to the batch backup request that receives, and obtains the input information of self each protocol module, and the input information of each protocol module that obtains is sent to stand-by equipment.
S603: host apparatus is to self each protocol module; The information of other protocol modules that this protocol module of preserving according to self calls; Structure comprises first protocol massages of the information of said other protocol modules, and said first protocol massages that will construct sends to stand-by equipment.
S604: stand-by equipment receives the input information that host apparatus sends; Indicate self corresponding protocols module to carry out corresponding operation synchronously with this protocol module of host apparatus according to the type of input information; Confirm the output result of self, but this moment stand-by equipment the output call by result stand-by equipment do not confirmed of this protocol module according to self in corresponding other protocol modules.
For example when the protocol module of master/slave device is the LACP module; This input information is LACP message and configuration information, and after stand-by equipment received the input information of host apparatus transmission, stand-by equipment was according to this LACP message; With the input information of this LACP message as state machine in the stand-by equipment LACP module; Make the state machine in the LACP module carry out a respective operations,, carry out corresponding configuration operation according to this configuration information according to this LACP message.
S605: stand-by equipment is indicated corresponding other protocol modules of this corresponding protocols module invokes self according to the information of other protocol modules in first protocol massages that receives.
Behind batch backup, host apparatus and stand-by equipment are in very short time, and about 2~3s host apparatus and stand-by equipment call the information of external module with synchronously.
S606: when backing up in realtime, host apparatus is according to the input information that receives, to each protocol module, confirms the change information of self this protocol module input information, and the change information of this input information is sent to stand-by equipment.
In embodiments of the present invention in order to accelerate stand-by equipment and host apparatus synchronization efficiency; Host apparatus sends to stand-by equipment with the change information of the input information of each protocol module; Certainly host apparatus also can be in real time sends to stand-by equipment with the input information of self each protocol module; Make stand-by equipment obtain this input information of each protocol module of host apparatus constantly, and make each protocol module carry out corresponding operation according to this input information.
S607: host apparatus calls the information of self other protocol module according to current self this protocol module; Confirm that this protocol module calls the variation of self other protocol module; Structure comprises second protocol massages of the change information of said variation, and said second protocol massages that will construct sends to said stand-by equipment.
Because the output result that each protocol module of host apparatus self is confirmed is known; When the input information of protocol module changes; Corresponding variation also can take place in the output result that protocol module is confirmed, promptly other protocol modules of calling of protocol module also corresponding variation can take place, the change information of the variation of other protocol modules that host apparatus calls according to each protocol module; Construct second protocol massages, in this second protocol massages, comprise the change information of said variation.
S608: stand-by equipment receives the change information of the input information of host apparatus transmission; Indicate self to should protocol module according to the type information of said input information; And the change information of this input information is carried out corresponding operation; Confirm the output result, but not according to corresponding other protocol modules in the output call by result stand-by equipment of self confirming.
S609: stand-by equipment is according to the change information that comprises in said second protocol massages that receives, and indication corresponding protocols module is according to this change information, upgrades self other protocol modules that call.
In the above embodiment of the present invention; Even there is the factor of the output information that influences host apparatus and stand-by equipment protocol module; But host apparatus calls self each protocol module the information of self other protocol module; Send to stand-by equipment and carry out synchronously, the corresponding protocol module that each protocol module that makes stand-by equipment sends according to host apparatus calls the information of other protocol modules, and the information of other protocol modules that self is called is upgraded; Thereby can strict guarantee host apparatus and stand-by equipment synchronously; No matter when host apparatus and stand-by equipment switch, and can guarantee the consistency of other protocol modules that each protocol module calls, thereby improve the accuracy of equipment operation.
Fig. 7 is a kind of host apparatus and synchronous system configuration sketch map of stand-by equipment realized that the embodiment of the invention provides, and comprises in this system:
Host apparatus 71; Be used to receive the batch backup request; To each protocol module of self, according to the output result of this protocol module, the information of self other protocol module of confirming that said protocol module calls; Structure comprises first protocol massages of the information of said other protocol modules, and said first protocol massages is sent to stand-by equipment 72;
Stand-by equipment 72 is used to receive said first protocol massages, and according to the information of said other protocol modules in said first protocol massages, indicates corresponding other protocol modules of self corresponding protocols module invokes self.
In the said service system,
Said host apparatus 71 also is used for, and the input information of said protocol module is sent to stand-by equipment 72;
Said stand-by equipment 72 also is used for, and with the input information of the said input information that receives as self corresponding protocols module, indicates the type information of said protocol module according to said input information, carries out corresponding operation, and confirms the output result.
In the said system:
Said host apparatus 71 also is used for; When backing up in realtime; The variation of self other protocol module that calls according to said protocol module, structure comprises second protocol massages of the change information of said variation, and said second protocol massages is sent to said stand-by equipment 72;
Said stand-by equipment 72 also is used for, and receives second protocol massages, and according to the change information in said second protocol massages, other protocol modules of indicating self corresponding protocols module that self is called upgrade.
In the said system:
Said host apparatus 71 also is used for, and the change information of the input information of said protocol module is sent to stand-by equipment 72;
Said stand-by equipment 72 also is used for; With the change information of the said input information that receives input information as self corresponding protocols module; Indicate the type information of this corresponding protocols module, carry out corresponding operation, and confirm the output result according to said input information.
In the said system,
Said stand-by equipment 72 also is used for; When switching to host apparatus; To each protocol module of self; The information of self other protocol module that detects that output result that this protocol module confirms need call, the information with current self other protocol module that calls of this protocol module is consistent, when judgement is inconsistent; Adopt the information of current self other protocol module that calls of this protocol module, to said protocol module according to output as a result the information of self other protocol module of calling of needs upgrade.
Fig. 8 a kind ofly realizes synchronous device structure sketch map for what the embodiment of the invention provided, and this equipment comprises:
Constructing module 81; Be used to receive the batch backup request, to each protocol module of self, according to the output result of this protocol module; The information of self other protocol module of confirming that said protocol module calls, structure comprises first protocol massages of the information of said other protocol modules;
Sending module 82 is used for said first protocol massages of structure is sent to stand-by equipment.
In the said equipment,
Said constructing module 81 also is used for, when backing up in realtime, and the variation of self other protocol module that calls according to said protocol module, structure comprises second protocol massages of the change information of said variation;
Said sending module 82 also is used for, and said second protocol massages of constructing is sent to said stand-by equipment.
Fig. 9 realizes synchronous device structure sketch map for the another kind that the embodiment of the invention provides, and this equipment comprises:
Receiver module 91; Be used to receive first protocol massages; Wherein, said first protocol massages is each protocol module that host apparatus is directed against self, according to the output result of this protocol module; The information of self other protocol module of confirming that said protocol module calls, the message of the information that comprises said other protocol modules of structure;
Calling module 92 is used for the information according to said other protocol modules of said first protocol massages, indicates corresponding other protocol modules of self corresponding protocols module invokes self.
Also comprise in the said equipment:
Update module 93; Be used for when self switches to host apparatus; The information of self other protocol module that detects that output result that self this corresponding protocols module confirms need call, the information with current self other protocol module that calls of this protocol module is consistent, when judgement is inconsistent; Adopt the information of current self other protocol module that calls of this protocol module, to said protocol module according to output as a result the information of self other protocol module of calling of needs upgrade.
The embodiment of the invention provides a kind of host apparatus and synchronous method, system and device of stand-by equipment realized; Host apparatus is to self each protocol module in this method; The information of self other protocol module that calls according to this protocol module; Structure comprises first protocol massages and the transmission of the information of other protocol modules; Stand-by equipment is according to the information of other protocol modules in first protocol massages; Indicate corresponding other protocol modules of self corresponding protocols module invokes self, because the information of other external modules that host apparatus calls self each protocol module in the embodiment of the invention has sent to the stand-by equipment side, each protocol module that stand-by equipment is sent according to host apparatus calls the information of other protocol modules and carries out calling of corresponding other protocol modules; Therefore strict guarantee host apparatus and stand-by equipment call the consistency that each protocol module calls other protocol modules, thereby improved the accuracy of exporting the result.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, belong within the scope of claim of the present invention and equivalent technologies thereof if of the present invention these are revised with modification, then the present invention also is intended to comprise these changes and modification interior.

Claims (14)

1. realize host apparatus and the synchronous method of stand-by equipment for one kind, it is characterized in that, comprising:
Host apparatus receives the batch backup request, to each the protocol module of self based on Link Aggregation Control Protocol LACP, and according to the output result of this protocol module, the information of self other protocol module of confirming that said protocol module calls;
Structure comprises first protocol massages of the information of said other protocol modules, and said first protocol massages is sent to stand-by equipment;
Said stand-by equipment receives said first protocol massages, and according to the information of said other protocol modules in said first protocol massages, indicates corresponding other protocol modules of self corresponding protocols module invokes self.
2. the method for claim 1 is characterized in that, when said host apparatus sends to stand-by equipment with said first protocol massages, also comprises:
Said host apparatus sends to stand-by equipment with the input information of said protocol module;
The said input information that said stand-by equipment will receive is indicated the type information of said protocol module according to said input information as the input information of self corresponding protocols module, carries out corresponding operation, and confirms the output result.
3. method as claimed in claim 2 is characterized in that, said method also comprises:
When backing up in realtime, the variation of self other protocol module that said host apparatus calls according to said protocol module, structure comprises second protocol massages of the change information of said variation, and said second protocol massages is sent to said stand-by equipment;
Said stand-by equipment receives said second protocol massages, and according to the change information in said second protocol massages, other protocol modules of indicating self corresponding protocols module that self is called upgrade.
4. method as claimed in claim 3 is characterized in that, when said host apparatus sends to said stand-by equipment with said second protocol massages, also comprises:
Said host apparatus sends to stand-by equipment with the change information of the input information of said protocol module;
The change information of the said input information that said stand-by equipment will receive is indicated the type information of this corresponding protocols module according to said input information as the input information of self corresponding protocols module, carries out corresponding operation, and confirms the output result.
5. like the arbitrary described method of claim 1 to 4, it is characterized in that said method further comprises:
When stand-by equipment switches to host apparatus; Said stand-by equipment is to each protocol module of self; The information of self other protocol module that detects that output result that this protocol module confirms need call, the information with current self other protocol module that calls of this protocol module is consistent;
When judging when inconsistent, adopt the information of current self other protocol module that calls of this protocol module, to said protocol module according to output as a result the information of self other protocol module of calling of needs upgrade.
6. realize host apparatus and the synchronous system of stand-by equipment for one kind, it is characterized in that said system comprises:
Host apparatus; Be used to receive the batch backup request; To each the protocol module of self based on Link Aggregation Control Protocol LACP, according to the output result of this protocol module, the information of self other protocol module of confirming that said protocol module calls; Structure comprises first protocol massages of the information of said other protocol modules, and said first protocol massages is sent to stand-by equipment;
Stand-by equipment is used to receive said first protocol massages, and according to the information of said other protocol modules in said first protocol massages, indicates corresponding other protocol modules of self corresponding protocols module invokes self.
7. system as claimed in claim 6 is characterized in that said host apparatus also is used for, and the input information of said protocol module is sent to stand-by equipment;
Said stand-by equipment also is used for, and with the input information of the said input information that receives as self corresponding protocols module, indicates the type information of said protocol module according to said input information, carries out corresponding operation, and confirms the output result.
8. system as claimed in claim 7 is characterized in that, in the said system:
Said host apparatus also is used for; When backing up in realtime; The variation of self other protocol module that calls according to said protocol module, structure comprises second protocol massages of the change information of said variation, and said second protocol massages is sent to said stand-by equipment;
Said stand-by equipment also is used for, and receives second protocol massages, and according to the change information in said second protocol massages, other protocol modules of indicating self corresponding protocols module that self is called upgrade.
9. system as claimed in claim 8 is characterized in that said host apparatus also is used for, and the change information of the input information of said protocol module is sent to stand-by equipment;
Said stand-by equipment also is used for; With the change information of the said input information that receives input information as self corresponding protocols module; Indicate the type information of this corresponding protocols module, carry out corresponding operation, and confirm the output result according to said input information.
10. like claim 7,8 or 9 described systems, it is characterized in that, in the said system,
Said stand-by equipment also is used for; When switching to host apparatus; To each protocol module of self; The information of self other protocol module that detects that output result that this protocol module confirms need call, the information with current self other protocol module that calls of this protocol module is consistent, when judgement is inconsistent; Adopt the information of current self other protocol module that calls of this protocol module, to said protocol module according to output as a result the information of self other protocol module of calling of needs upgrade.
11. realize synchronous equipment, it is characterized in that said equipment comprises for one kind:
Constructing module; Be used to receive the batch backup request; To each the protocol module of self based on Link Aggregation Control Protocol LACP; According to the output result of this protocol module, the information of self other protocol module of confirming that said protocol module calls, structure comprises first protocol massages of the information of said other protocol modules;
Sending module is used for said first protocol massages of structure is sent to stand-by equipment.
12. equipment as claimed in claim 11 is characterized in that, in the said equipment,
Said constructing module also is used for, when backing up in realtime, and the variation of self other protocol module that calls according to said protocol module, structure comprises second protocol massages of the change information of said variation;
Said sending module also is used for, and said second protocol massages of constructing is sent to said stand-by equipment.
13. realize synchronous equipment, it is characterized in that said equipment comprises for one kind:
Receiver module; Be used to receive first protocol massages; Wherein, said first protocol massages is each protocol module based on Link Aggregation Control Protocol LACP that host apparatus is directed against self, according to the output result of this protocol module; The information of self other protocol module of confirming that said protocol module calls, the message of the information that comprises said other protocol modules of structure;
Calling module is used for the information according to said other protocol modules of said first protocol massages, indicates corresponding other protocol modules of self corresponding protocols module invokes self.
14. equipment as claimed in claim 13 is characterized in that, also comprises in the said equipment:
Update module; Be used for when self switches to host apparatus; To each protocol module of self; The information of self other protocol module that detects that output result that this protocol module confirms need call, the information with current self other protocol module that calls of this protocol module is consistent, when judgement is inconsistent; Adopt the information of current self other protocol module that calls of this protocol module, to said protocol module according to output as a result the information of self other protocol module of calling of needs upgrade.
CN2010102159175A 2010-06-29 2010-06-29 Method, system and device for realizing synchronization between mainly-used equipment and standby equipment Expired - Fee Related CN101854715B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010102159175A CN101854715B (en) 2010-06-29 2010-06-29 Method, system and device for realizing synchronization between mainly-used equipment and standby equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010102159175A CN101854715B (en) 2010-06-29 2010-06-29 Method, system and device for realizing synchronization between mainly-used equipment and standby equipment

Publications (2)

Publication Number Publication Date
CN101854715A CN101854715A (en) 2010-10-06
CN101854715B true CN101854715B (en) 2012-07-25

Family

ID=42805913

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010102159175A Expired - Fee Related CN101854715B (en) 2010-06-29 2010-06-29 Method, system and device for realizing synchronization between mainly-used equipment and standby equipment

Country Status (1)

Country Link
CN (1) CN101854715B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108988973A (en) * 2017-06-05 2018-12-11 中兴通讯股份有限公司 Aggregated links clock control method and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1737253A1 (en) * 2005-06-20 2006-12-27 Alcatel Fault tolerant single plane switch fabric for a telecommunication system
CN101355515A (en) * 2008-09-05 2009-01-28 中兴通讯股份有限公司 Method for restarting link polymerize control protocol with elegance
CN101674240A (en) * 2009-09-24 2010-03-17 中兴通讯股份有限公司 Method and device for realizing single-node dual home for distributed system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1737253A1 (en) * 2005-06-20 2006-12-27 Alcatel Fault tolerant single plane switch fabric for a telecommunication system
CN101355515A (en) * 2008-09-05 2009-01-28 中兴通讯股份有限公司 Method for restarting link polymerize control protocol with elegance
CN101674240A (en) * 2009-09-24 2010-03-17 中兴通讯股份有限公司 Method and device for realizing single-node dual home for distributed system

Also Published As

Publication number Publication date
CN101854715A (en) 2010-10-06

Similar Documents

Publication Publication Date Title
CN102098201B (en) Method for realizing L2TP user access backup and network system
CN102769626B (en) A kind of session information synchronous method, device and system
CN101968744B (en) Intelligent resilient framework (IRF) system-based method and system for upgrading box type equipment
CN102257759B (en) Master-standby switching method, system control unit and communication system
JP2021525483A (en) Transmission channel bandwidth throttling method and equipment in Flexible Ethernet®
CN103312528A (en) Heartbeat message sending method and user terminal
CN102271370B (en) Base station equipment and channel unit switching method
CN102957623B (en) A kind of maintaining method of neighborhood of border gate protocol and equipment
CN103107906A (en) Communication method between media boards, media boards and communication machine frame device
CN111542130A (en) Method and device for controlling household appliance and terminal equipment
WO2022217786A1 (en) Cross-network communicaton method, apparatus, and system for multi-bus network, and storage medium
CN101854715B (en) Method, system and device for realizing synchronization between mainly-used equipment and standby equipment
CN104102607A (en) CAN (controlled area network) bus driving method and system based on VxWorks operating system environment
CN103259639B (en) A kind of clock synchronizing method of stack equipment and equipment
CN103856228A (en) Wireless human-computer interaction method and system
CN109120520B (en) Fault processing method and equipment
CN109714124B (en) Time synchronization system and method for test system
CN103401708A (en) Port configuration method and device
JP6118464B2 (en) Port status synchronization method, related device, and system
CN104793896A (en) Single-control and double-control switching method and device of double-control equipment
CN103176931B (en) A kind of DMA communication means of improvement and device
CN114071801B (en) State indication method of terminal equipment and communication device
CN110572440B (en) Method and device for data transmission, household appliance and storage medium
CN111181766B (en) Redundant FC network system and method for realizing dynamic configuration of switch
CN110784365A (en) Standby device of station control layer and entity device of transformer substation and automatic online method thereof

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
CP01 Change in the name or title of a patent holder

Address after: 350002 19 Building, Citrus Industrial Park, 618 Jinshan Road, Cangshan District, Fuzhou, Fujian.

Patentee after: RUIJIE NETWORKS Co.,Ltd.

Address before: 350002 19 Building, Citrus Industrial Park, 618 Jinshan Road, Cangshan District, Fuzhou, Fujian.

Patentee before: Fujian Star Network Ruijie Networks Co.,Ltd.

CP01 Change in the name or title of a patent holder
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120725

Termination date: 20210629

CF01 Termination of patent right due to non-payment of annual fee