CN102571391B - Method and system for status synchronization of protection switching protocol - Google Patents
Method and system for status synchronization of protection switching protocol Download PDFInfo
- Publication number
- CN102571391B CN102571391B CN201010601831.6A CN201010601831A CN102571391B CN 102571391 B CN102571391 B CN 102571391B CN 201010601831 A CN201010601831 A CN 201010601831A CN 102571391 B CN102571391 B CN 102571391B
- Authority
- CN
- China
- Prior art keywords
- state
- turning protocol
- unit
- master unit
- input message
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/55—Prevention, detection or correction of errors
- H04L49/552—Prevention, detection or correction of errors by ensuring the integrity of packets received through redundant connections
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a method and system for status synchronization of a protection switching protocol. The method comprises the steps: an active unit and a standby unit receive input information of the protection switching protocol at the same time; the active unit and the standby unit perform switching according to the input information and the protection switching protocol respectively; and the active unit and/or the standby unit perform status synchronization of the protection switching protocol according to an output state of the protection switching protocol after the switching operation. According to the method and system for the status synchronization of the protection switching protocol, disclosed by the invention, the efficiency of the status synchronization of the protection switching protocol between the active unit and the standby unit is increased.
Description
Technical field
The present invention relates to the communications field, in particular to a kind of protection turning protocol state synchronization method and system.
Background technology
On communication system equipment; often there is the protection of board level unit; and while moving protocols having on this board, just relate to and how to guarantee synchronizeing of main/standby board cards and the protocol status moving on mainboard card, make the switching of board not produce any impact to the operation of agreement.The present invention just discusses for the synchronous processing of protection turning protocol.
Traditional processing method be by a lot of information of protecting turning protocol on master unit all real-time synchronization to standby unit, comprise some intermediate variables of input/output information, state machine operation etc.So process, cause two synchrodata amounts between board very large, because a large amount of synchrodatas need protocol processes, the synchronous processing of protocol state machine is also had higher requirement simultaneously.
For example: by increasing adaptation layer, carry out the communication of active and standby agreement, by adaptation layer, preserved the state of active and standby agreement, and complete active and standby state synchronized, under any state of active and standby agreement, all will carry out synchronous.The method is larger on the processing impact of protocol state machine, because need to all carry out synchronously, requiring the state function of agreement arbitrarily to switch to another state from designated state as required to each state, state processing will be more complicated, obviously, the state information of this real-time synchronization is also a lot
For protecting turning protocol synchronous method synchrodata amount to cause more greatly the problem that synchronous efficiency is low in correlation technique, effective solution is not yet proposed at present.
Summary of the invention
Main purpose of the present invention is to provide a kind of protection turning protocol state synchronization method and system, at least to address the above problem.
To achieve these goals, according to an aspect of the present invention, improved a kind of protection turning protocol state synchronization method.
Protection turning protocol state synchronization method according to the present invention comprises: master unit and standby unit receive the input message of protection turning protocol simultaneously; Processing is switched respectively according to input message and protection turning protocol in master unit and standby unit; The state synchronized of turning protocol is protected in master unit and/or standby unit according to the output state of the protection turning protocol after switching operation.
Further, master unit protects the state synchronized of turning protocol to comprise according to the output state of switching the protection turning protocol after processing:
The output state of the protection turning protocol of master unit is Wait-to-Restore (WTR) state, and master unit obtains the present timing value of WTR; Master unit sends to standby unit to protect the state synchronized of turning protocol the synchronizing information that carries present timing value and WTR state and respective channel number; Or
The output state of the protection turning protocol of master unit is for not returning to (DNR) state, and master unit sends to standby unit to protect the state synchronized of turning protocol the synchronizing information that carries DNR state and respective channel number.
Further, standby unit protects the state synchronized of turning protocol to comprise according to the output state of switching the protection turning protocol after processing:
The output state of the protection turning protocol of standby unit is WTR state, and simultaneous operation is cancelled in standby unit; Or after the standby unit basis synchronizing information of carrying out independent unit receiving, the state machine of the protection turning protocol on it is set to WTR state and upgrades WTR count value according to synchronizing information, and carries out timing according to the WTR count value of upgrading after operation; Or
The output state of the protection turning protocol of standby unit is DNR state, and standby unit is cancelled and carried out the operation that DNR state is corresponding; Or the state machine of standby unit protection turning protocol on it according to the synchronizing information of carrying out independent unit receiving is set to DNR state and passage corresponding to DNR state, and recalculate output.
Further, before the input message of master unit and standby unit reception protection turning protocol, also comprise: the configuration order that master unit and standby unit receive protection turning protocol is simultaneously configured.
Further, master unit is switched to process with protection turning protocol according to input message and is comprised: master unit is according to the state machine of input message trigger protection turning protocol; Master unit calculates decision-making output according to the result of state machine; Master unit is switched processing according to the result of decision-making output; Standby unit is switched to process with protection turning protocol according to input message and is comprised: standby unit is according to the state machine of input message trigger protection turning protocol; Standby unit calculates decision-making output according to the result of state machine; Processing is switched according to the result of decision-making output in standby unit.
Further; the input message that master unit and standby unit receive protection turning protocol simultaneously comprises: when protection turning protocol is looped network protection switching agreement; master unit and standby unit receive the input message of looped network protection switching agreement simultaneously; wherein; input message comprises: the input of thing both sides; the input message in west side of playing the host represents the excitation request that priority is equal, and can only have one to work in excitation request time, input message is consistent with respect to the order of master unit and standby unit.
To achieve these goals, according to a further aspect in the invention, provide a kind of protection turning protocol state synchronous system.
Protection turning protocol state synchronous system according to the present invention comprises: master unit and standby unit, and master unit comprises: the first receiver module, for receive with standby unit the input message of protecting turning protocol simultaneously; First switches processing module, for switching processing according to input message and protection turning protocol; The first synchronization module, for protecting the state synchronized of turning protocol according to the output state of the protection turning protocol after switching operation; Standby unit comprises: the second receiver module, for receive with master unit the input message of protecting turning protocol simultaneously; Second switches processing module, for switching processing according to input message and protection turning protocol; The second synchronization module, for protecting the state synchronized of turning protocol according to the output state of the protection turning protocol after switching operation.
Further, the first synchronization module comprises: acquisition module is Wait-to-Restore WTR state for the output state of the protection turning protocol of the master unit at its place, obtains the present timing value of WTR; First information sending module, for sending to the synchronizing information that carries present timing value and WTR state and respective channel number standby unit to protect the state synchronized of turning protocol; Or
The second information sending module, when not returning to DNR state and respective channel, sends to standby unit to protect the state synchronized of turning protocol the synchronizing information that carries DNR state for the output state of the protection turning protocol of the master unit at its place.
Further, the second synchronization module comprises: the first processing module, and while being WTR state for the output state of the protection turning protocol of the standby unit at its place, simultaneous operation is cancelled in standby unit; Or update module, after the standby unit basis synchronizing information of carrying out independent unit receiving for its place, the state machine of the protection turning protocol on it is set to WTR state and upgrades WTR count value according to synchronizing information, and carries out timing according to the WTR count value of upgrading after operation; Or
The second processing module, while being DNR state for the output state of the protection turning protocol of the standby unit at its place, cancels simultaneous operation; Or module is set, its place of the synchronizing information of carrying out independent unit receiving for basis is set to DNR state for the state machine of the protection turning protocol on unit, and recalculates output.
Further, master unit also comprises: the first order receiver module, for receive and protect the configuration order of turning protocol to be configured with standby unit simultaneously; Standby unit comprises: the second order receiver module, and for receive and protect the configuration order of turning protocol to be configured with master unit simultaneously.
Further, first switches processing module comprises: the first trigger module, for according to the state machine of input message trigger protection turning protocol; The first computing module, for calculating decision-making output according to the result of state machine; First switches module, for switching processing according to the result of decision-making output; Second switches processing module comprises: the second trigger module, for according to the state machine of input message trigger protection turning protocol; The second computing module, for calculating decision-making output according to the result of state machine; Second switches module, for switching processing according to the result of decision-making output.
Further, the first receiver module, also for when protection turning protocol is looped network protection switching agreement, receive the input message of looped network protection switching agreement, wherein, input message comprises: the input of thing both sides, and the input message in the west side of playing the host represents the excitation request that priority is equal, and in the time of can only having one to work in excitation request, input message is consistent with respect to the order of master unit and standby unit; The second receiver module; also for when protection turning protocol is looped network protection switching agreement; receive the input message of looped network protection switching agreement; wherein; input message comprises: the input of thing both sides; the input message in west side of playing the host represents the excitation request that priority is equal, and can only have one to work in excitation request time, input message is consistent with respect to the order of master unit and standby unit.
By the present invention, adopt master unit and standby unit to receive the input message of protection turning protocol simultaneously, and switch processing, according to the output state of this agreement after switching operation, protect the state synchronized of turning protocol, solution is known clearly in correlation technique the bulk information real-time synchronization of the protection turning protocol on master unit to standby unit, cause the synchrodata amount on master unit and standby unit excessive, cause master unit and the standby poor problem of units synchronization efficiency, reached and reduced the data volume of master unit and standby units synchronization and improved master unit and the efficiency of standby units synchronization.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide a further understanding of the present invention, forms the application's a part, and schematic description and description of the present invention is used for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is according to the flow chart of the protection turning protocol state synchronization method of the embodiment of the present invention;
Fig. 2 is according to the preferred flow chart of the protection turning protocol state synchronization method of the embodiment of the present invention;
Fig. 3 is according to the schematic diagram of the protection turning protocol synchro system of the embodiment of the present invention;
Fig. 4 is the flow chart of protecting according to the preferred embodiment of the invention turning protocol state synchronization method;
Fig. 5 is according to the structured flowchart of the protection turning protocol state synchronous system of the embodiment of the present invention; And
Fig. 6 is according to the preferred structured flowchart of the protection turning protocol state synchronous system of the embodiment of the present invention.
Embodiment
Hereinafter with reference to accompanying drawing, also describe the present invention in detail in conjunction with the embodiments.It should be noted that, in the situation that not conflicting, embodiment and the feature in embodiment in the application can combine mutually.
The present embodiment provides a kind of protection turning protocol state synchronization method, and Fig. 1 is that as shown in Figure 1, the method comprises according to the flow chart of the protection turning protocol state synchronization method of the embodiment of the present invention:
Step S102: master unit and standby unit receive the input message of protection turning protocol simultaneously;
Step S104: processing is switched respectively according to input message and protection turning protocol in master unit and standby unit;
Step S106: the state synchronized of turning protocol is protected in master unit and/or standby unit according to the output state of the protection turning protocol after switching operation.
Pass through above-mentioned steps; master unit and standby unit receive the input message of protection turning protocol simultaneously; and switch processing; according to the output state of this agreement after switching operation, protect the state synchronized of turning protocol; for protection turning protocol; under the condition of identical input message, in most of situation, can obtain identical Output rusults, under special output state, may there is different results.So master unit and standby unit receive input message simultaneously; can realize synchronous; and carry out synchronously according to output state; master unit and standby unit have been realized synchronous according to identical input realization; overcome in correlation technique the bulk information real-time synchronization of the protection turning protocol on master unit to standby unit; cause the synchrodata amount on master unit and standby unit excessive; cause master unit and the standby poor problem of units synchronization efficiency; reduce the data volume of master unit and standby units synchronization, improved the efficiency of master unit and standby units synchronization simultaneously.
Preferably, below step S106 preferred implementation is described.Master unit protects the state synchronized of turning protocol to comprise according to the output state of switching the protection turning protocol after processing: the output state of the protection turning protocol of master unit is Wait-to-Restore (WTR) state, and master unit obtains the present timing value of WTR; Master unit sends to standby unit to protect the state synchronized of turning protocol the synchronizing information that carries present timing value and WTR state and respective channel number; Or the output state of the protection turning protocol of master unit is for not returning to (DNR) state, master unit sends to standby unit to protect the state synchronized of turning protocol the synchronizing information that carries DNR state and respective channel number.By this preferred implementation, in protection turning protocol synchronizing process, while only having the state of WTR and DNR, for identical input, can obtain different output, by the input stimulus of agreement, realize the synchronous of agreement, with the reasonability of guarantee agreement handling process.
Preferably, below step S106 preferred implementation is described.Standby unit protects the state synchronized of turning protocol to comprise according to the output state of switching the protection turning protocol after processing: the output state of the protection turning protocol of standby unit is WTR state, and simultaneous operation is cancelled in standby unit; Or after the standby unit basis synchronizing information of carrying out independent unit receiving, the state machine of the protection turning protocol on it is set to WTR state and upgrades WTR count value according to synchronizing information, and carries out timing according to the WTR count value of upgrading after operation; Or
The output state of the protection turning protocol of standby unit is DNR state, and standby unit is cancelled and carried out the operation that DNR state is corresponding; Or the state machine of standby unit protection turning protocol on it according to the synchronizing information of carrying out independent unit receiving is set to DNR state and passage corresponding to DNR state, and recalculate output.
By the preferred embodiment, in protection turning protocol synchronizing process, while only having the state of WTR and DNR, for identical input, can obtain different output, by the input stimulus of agreement, realize the synchronous of agreement, with the reasonability of guarantee agreement handling process.
Preferably, before step S102, also comprise: the configuration order that master unit and standby unit receive protection turning protocol is simultaneously configured.By the preferred embodiment, master unit and standby unit carry out identical configuration according to configuration order, have guaranteed the consistent of agreement running environment, have improved the accuracy of protocol synchronization.
Preferably, master unit is switched to process with protection turning protocol according to input message and is comprised: master unit is according to the state machine of input message trigger protection turning protocol; Master unit calculates decision-making output according to the result of state machine; Master unit is switched processing according to the result of decision-making output; Standby unit is switched to process with protection turning protocol according to input message and is comprised: standby unit is according to the state machine of input message trigger protection turning protocol; Standby unit calculates decision-making output according to the result of state machine; Processing is switched according to the result of decision-making output in standby unit.By the preferred embodiment, realized the processing of switching of master unit and standby unit.
Preferably; below a preferred embodiment in step S102 is described; when protection turning protocol is looped network protection switching agreement; master unit and standby unit receive the input message of looped network protection switching agreement simultaneously; wherein, input message comprises: the input of thing both sides, and the input message in the west side of playing the host represents the excitation request that priority is equal; and in the time of can only having one to work in excitation request, input message is consistent with respect to the order of master unit and standby unit.By the preferred embodiment, guarantee on active and standby unit all with the input message of a certain side, to carry out decision-making.
Embodiment mono-
The present embodiment provides a kind of synchronous method of protecting turning protocol, and in the present embodiment, the configuration order of protection agreement is carried out concurrent, completes the establishment of protecting agreement on active and standby unit; The input message of agreement is carried out concurrent, and the agreement on active and standby unit all receives input message and carries out decision-making; WTR state and DNR state carry out synchronously in real time, Guarantee Status machine consistent.
The method comprises the following steps:
Step S202: the configuration order of protection agreement is also issued the active and standby unit at protection agreement place, completes separately the configuration of protection agreement;
Step S204: the input message of protection agreement the protection agreement of issuing on active and standby unit are preserved.
Step S206: protection protocol validation changes as input message, and the state machine of trigger protection agreement is processed, and exports and carry out decision-making.
Step S208: protection agreement is carried out the synchronous processing of WTR or DNR state.
It should be noted that, the protection agreement on active and standby, due to after defect carries out decision-making output and switch, when defect disappears, protects agreement all can export WTR or DNR state.
Preferably, only WTR and DNR state are needed to synchronous processing, first just for recoverable protection protocol synchronization WTR state, be described, in step S208, synchronous processing of the WTR of master unit comprises the steps:
Step a: when the protection agreement of master unit is exported WTR state, master unit regularly obtains WTR present timing value to protection agreement.
Step b: master unit is synchronized to standby unit by WTR state and clocking value thereof.
In step S208, synchronous processing of the WTR of standby unit comprises the steps:
Step a: when the protection agreement of standby unit is exported WTR state, any processing is not done in standby unit.
Step b: standby unit receives after WTR synchronizing information, notice protection protocol switching state machine result is WTR state and upgrades clocking value, as decision-making output switching action completes, switches processing.
Step c: the protection agreement of standby unit is proceeded WTR timing by the WTR clocking value after upgrading.
Preferably, for the protection agreement of irrevocable formula, the processing of the synchronous DNR of master unit is as follows: the protection agreement output DNR state of master unit, master unit is regularly given DNR state synchronized standby unit.
The processing of standby units synchronization DNR comprises the steps:
Step a: when the protection agreement of standby unit is exported DNR state, any processing is not done in standby unit.
Step b: standby unit receives after DNR synchronizing information, the protection protocol switching state machine result of the standby unit of notice is DNR state, if any switching action, has exported hand-off process.
It should be noted that, the protection agreement of active and standby unit receives input message simultaneously and processes, and its state synchronized problem is solved by above-mentioned steps S208, therefore when active and standby unit switches, protection agreement does not need to carry out any processing.
Embodiment bis-
The present embodiment provides a kind of protection turning protocol synchronous method, it is example that the synchronous method of the present embodiment be take the state synchronized of PTN equipment multiplex section access side APS linear protection agreement in reality, Fig. 3 is according to the schematic diagram of the protection turning protocol synchro system of the embodiment of the present invention, as shown in Figure 3, the concurrent configuration order of management plane completes the configuration of protection agreement to the APS protection agreement on active and standby main control unit, the input of switching control command is also issued by management plane, APS protection agreement reception & disposal on active and standby main control unit, the input message that line card detects (alarm or reception K1K2 byte) also circularizes active and standby main control unit, protection agreement on main main control unit is given state synchronized the protection agreement of standby main control unit in real time, protection agreement by main main control unit sends K1K2 byte, carrying out protection switches.
The protection turning protocol synchronous method of the present embodiment comprises: the synchronous processing of the main main control unit of recoverable protection protocol synchronization WTR state and irrevocable formula protection agreement, the processing of the synchronous DNR state of main main control unit.
Concrete, describe the synchronous processing procedure of APS protection protocol status below in detail, be first the synchronous processing of the main main control unit of recoverable protection protocol synchronization WTR state:
Step 1: the protection agreement output WTR state of main main control unit, master unit notice protection port sends the K1K2 byte of agreement output.
Step 2: main main control unit obtains WTR clocking value (unit is second) to protection agreement, relatively synchronizing information or the time value of last time, if inconsistent, be synchronized to standby main control unit by WTR state and corresponding channel number and this time value thereof.
Step 3: main main control unit, during WTR, obtained WTR clocking value every 10 seconds to protection agreement, and completed synchronous.
The processing of standby main control unit:
Step 1: when the protection agreement of standby main control unit is exported WTR state, standby main control unit is not done any processing.
Step 2: when standby main control unit receives synchronous WTR state, the outside output valve of agreement is set to WTR state and respective channel thereof, and resets WTR timer according to counting time value, and recalculate output action.
Step 3: when the protection agreement of standby main control unit has output switching action, standby main control unit finishing service hand-off process.
Step 4: the protection agreement of standby main control unit is proceeded WTR timing by the WTR clocking value after upgrading.
Irrevocable formula protection agreement, the processing of the synchronous DNR state of main main control unit comprises:
Step 1: the protection agreement output DNR state of main main control unit, main main control unit notice protection port sends the K1K2 byte of agreement output.
Step 2: main main control unit is the synchronizing information of last time relatively, if inconsistent, is synchronized to standby main control unit by DNR state and corresponding channel number thereof.
Step 3: main main control unit under DNR state, every 10 seconds to the standby synchronous DNR state of main control unit.
The processing of the standby synchronous DNR state of main control unit:
Step 1: when the protection agreement of standby main control unit is exported DNR state, standby main control unit is not done any processing.
Step 2: when standby main control unit receives synchronous DNR state, the outside output valve of agreement is set to DNR state and respective channel thereof, and recalculates output action.
Step 3: when the protection agreement of standby main control unit has output switching action, finishing service hand-off process.
Embodiment tri-
The present embodiment provides a kind of protection turning protocol synchronous method, and Fig. 4 is the flow chart of protecting according to the preferred embodiment of the invention turning protocol state synchronization method, and as shown in Figure 4, the method comprises:
Step S401: start.
Step S402: configuration protection agreement.
Step S403: protection agreement receives input message and preserves and changes
Step S404: state machine is processed.
Step S405: calculate decision-making output.
Step S406: carry out and switch by output.
Step S407: be timed to processing.
Step S408: judge whether it is master unit.If judgment result is that to be, execution step S410, otherwise execution step S409.
Step S409: finish.
Step S410: determining whether WTR state, is to perform step SS412, otherwise perform step S411 if judgment result is that.
Step S411: determining whether DNR, is to perform step S413, otherwise perform step S409 if judgment result is that.
Step S412: standby unit is given in synchronous WTR state and correlometer duration.
Step S413: synchronous DNR state is given standby unit.
Step S414: whether judgement receives is synchronous WTR state is to perform step S416, otherwise perform step S415 if judgment result is that.
Step S415: whether judgement receives is synchronous DNR state is to perform step S417, otherwise perform step S409 if judgment result is that.
Step S416: upgrading state machine is WTR state and WTR clocking value.
Step S417: upgrading state machine is DNR state.
The present embodiment provides a kind of protection turning protocol state synchronous system; Fig. 5 is according to the structured flowchart of the protection turning protocol state synchronous system of the embodiment of the present invention; as shown in Figure 5, this system comprises: master unit 2 and standby unit 4, be described in detail said structure below:
Master unit 2 comprises: the first receiver module 22, for receive with standby unit the input message of protecting turning protocol simultaneously; First switches processing module 24, for switching processing according to input message and protection turning protocol; The first synchronization module 26, for protecting the state synchronized of turning protocol according to the output state of the protection turning protocol after switching operation.
Standby unit 4 comprises: the second receiver module 42, for receive with master unit the input message of protecting turning protocol simultaneously; Second switches processing module 44, for switching processing according to input message and protection turning protocol; The second synchronization module 46, for protecting the state synchronized of turning protocol according to the output state of the protection turning protocol after switching operation.
Fig. 6 is according to the preferred structured flowchart of the protection turning protocol state synchronous system of the embodiment of the present invention.As shown in Figure 6, below said structure is described in detail:
The first synchronization module 26 comprises:
Acquisition module 262, is Wait-to-Restore WTR state for the output state of the protection turning protocol of the master unit at its place, obtains the present timing value of WTR; First information sending module 264, is connected to acquisition module 262, for sending to standby unit to protect the state synchronized of turning protocol the synchronizing information that carries present timing value that acquisition module 262 gets and WTR state and corresponding channel number; Or
The second information sending module 266, when not returning to DNR state and respective channel, sends to standby unit to protect the state synchronized of turning protocol the synchronizing information that carries DNR state for the output state of the protection turning protocol of the master unit at its place.
The second synchronization module 46 comprises:
The first processing module 462, while being WTR state for the output state of the protection turning protocol of the standby unit at its place, simultaneous operation is cancelled in standby unit; Or update module 464, after the standby unit basis synchronizing information of carrying out independent unit receiving for its place, the state machine of the protection turning protocol on it is set to WTR state and upgrades WTR count value according to synchronizing information, and carries out timing according to the WTR count value of upgrading after operation; Or
The second processing module 466, while being DNR state for the output state of the protection turning protocol of the standby unit at its place, cancels simultaneous operation; Or module 468 is set, its place of the synchronizing information of carrying out independent unit receiving for basis is set to DNR state for the state machine of the protection turning protocol on unit, and recalculates output.
Master unit 2 also comprises:
The first order receiver module 28, for receive and protect the configuration order of turning protocol to be configured with standby unit simultaneously;
Standby unit 4 comprises: the second order receiver module 48, and for receive and protect the configuration order of turning protocol to be configured with master unit simultaneously.
First switches processing module 24 comprises: the first trigger module 242, for according to the state machine of input message trigger protection turning protocol; The first computing module 244, is connected to the first trigger module 242, for trigger the result of state machine according to the first trigger module 242, calculates decision-making output; First switches module 246, is connected to the first computing module 244, for switching processing according to the result of the first computing module 244 decision-making outputs.
Second switches processing module 44 comprises:
The second trigger module 442, for according to the state machine of input message trigger protection turning protocol; The second computing module 444, is connected to the second trigger module 442, for calculate decision-making output according to the result of the second trigger module 442 state machines; Second switches module 446, is connected to the second computing module 444, for switching processing according to the result of the second computing module 444 decision-making outputs.
Pass through above-described embodiment; a kind of synchronous method and system of protecting turning protocol is provided; only to WTR and DNR state, carry out synchronous; and configuration order and input message issue active and standby unit; complete protection protocol configuration and carry out decision-making; greatly reduced the amount of information of state synchronized, and the switching of active and standby unit do not produce any impact to the processing of protocol state machine, improved synchronous stability and reliability.
Obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with general calculation element, they can concentrate on single calculation element, or be distributed on the network that a plurality of calculation elements form, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in storage device and be carried out by calculation element, and in some cases, can carry out shown or described step with the order being different from herein, or they are made into respectively to each integrated circuit modules, or a plurality of modules in them or step are made into single integrated circuit module to be realized.Like this, the present invention is not restricted to any specific hardware and software combination.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.
Claims (8)
1. a protection turning protocol state synchronization method, is characterized in that, comprising:
Master unit and standby unit receive the input message of protection turning protocol simultaneously;
Processing is switched respectively according to described input message and described protection turning protocol in described master unit and described standby unit;
Described master unit and/or described standby unit carry out the state synchronized of described protection turning protocol according to the output state of the described protection turning protocol after described switching operation;
Wherein, described master unit according to described in switch the described protection turning protocol after processing the output state state synchronized of carrying out described protection turning protocol comprise:
The output state of the described protection turning protocol of described master unit is Wait-to-Restore WTR state, and described master unit obtains the present timing value of described WTR; Described master unit sends to described standby unit to carry out the state synchronized of described protection turning protocol the synchronizing information that carries described present timing value and described WTR state and respective channel number; Or
The output state of the described protection turning protocol of described master unit is for not returning to DNR state, and described master unit sends to described standby unit to carry out the state synchronized of described protection turning protocol the synchronizing information that carries described DNR state and respective channel number;
The state synchronized that the described output state for switching the described protection turning protocol after processing described in unit basis carries out described protection turning protocol comprises:
The output state of the described protection turning protocol of described standby unit is WTR state, and simultaneous operation is cancelled in described standby unit; Or described standby unit is according to after the synchronizing information from described master unit receiving, the state machine of the described protection turning protocol on it is set to described WTR state and upgrades WTR count value according to described synchronizing information, and carries out timing according to the WTR count value after described renewal operation; Or
The output state of the described protection turning protocol of described standby unit is DNR state, and described standby unit is cancelled and carried out operation corresponding to described DNR state; Or the state machine of described standby unit described protection turning protocol on it according to the synchronizing information from described master unit receiving is set to described DNR state and passage corresponding to described DNR state, and recalculate output.
2. method according to claim 1, is characterized in that, before the input message of described master unit and described standby unit reception protection turning protocol, also comprises:
The configuration order that described master unit and described standby unit receive described protection turning protocol is simultaneously configured.
3. method according to claim 1, is characterized in that,
Described master unit is switched to process according to described input message and described protection turning protocol and is comprised:
Described master unit triggers the state machine of described protection turning protocol according to described input message;
Described master unit calculates decision-making output according to the result of described state machine;
Described master unit is switched processing according to the result of described decision-making output;
Described standby unit is switched to process according to described input message and described protection turning protocol and is comprised:
Described standby unit triggers the state machine of described protection turning protocol according to described input message;
Described standby unit calculates decision-making output according to the result of described state machine;
Processing is switched according to the result of described decision-making output in described standby unit.
4. according to the method in any one of claims 1 to 3, master unit and standby unit receive simultaneously and protect the input message of turning protocol to comprise:
When described protection turning protocol is looped network protection switching agreement; described master unit and described standby unit receive the input message of described looped network protection switching agreement simultaneously; wherein; described input message comprises: the input of thing both sides; the input message in west side of playing the host represents the excitation request that priority is equal; and in the time of can only having one to work in described excitation request, described input message is consistent with respect to the order of described master unit and described standby unit.
5. protect a turning protocol state synchronous system, comprising: it is characterized in that, comprising: master unit and standby unit,
Described master unit comprises:
The first receiver module, for receive with described standby unit the input message of protecting turning protocol simultaneously;
First switches processing module, for switching processing according to described input message and described protection turning protocol;
The first synchronization module, for carrying out the state synchronized of described protection turning protocol according to the output state of the described protection turning protocol after described switching operation;
Described standby unit comprises:
The second receiver module, for receive with described master unit the input message of protecting turning protocol simultaneously;
Second switches processing module, for switching processing according to described input message and described protection turning protocol;
The second synchronization module, for carrying out the state synchronized of described protection turning protocol according to the output state of the described protection turning protocol after described switching operation;
Wherein, described the first synchronization module comprises:
Acquisition module, is Wait-to-Restore WTR state for the output state of the described protection turning protocol of the master unit at its place, obtains the present timing value of described WTR; First information sending module, for sending to the synchronizing information that carries described present timing value and described WTR state and respective channel number described standby unit to carry out the state synchronized of described protection turning protocol; Or
The second information sending module, for the output state of the described protection turning protocol of the master unit at its place, when not returning to DNR state, master unit sends to described state synchronized of carrying out described protection turning protocol for unit by the synchronizing information that carries described DNR state and respective channel number;
Described the second synchronization module comprises:
The first processing module, while being WTR state for the output state of the described protection turning protocol of the standby unit at its place, simultaneous operation is cancelled in described standby unit; Or update module, after the standby unit basis synchronizing information from described master unit receiving for its place, the state machine of the described protection turning protocol on it is set to described WTR state and upgrades WTR count value according to described synchronizing information, and carries out timing according to the WTR count value after described renewal operation; Or
The second processing module, while being DNR state for the output state of the described protection turning protocol of the standby unit at its place, cancels described simultaneous operation; Or module is set, its place of the synchronizing information from described master unit receiving for basis is set to described DNR state for the state machine of the described protection turning protocol on unit, and recalculates output.
6. system according to claim 5, is characterized in that,
Described master unit also comprises:
The first order receiver module, is configured for the configuration order that receives described protection turning protocol with described standby unit simultaneously;
Described standby unit comprises:
The second order receiver module, is configured for the configuration order that receives described protection turning protocol with described master unit simultaneously.
7. system according to claim 5, is characterized in that,
Described first switches processing module comprises:
The first trigger module, for triggering the state machine of described protection turning protocol according to described input message;
The first computing module, for calculating decision-making output according to the result of described state machine;
First switches module, for switching processing according to the result of described decision-making output;
Described second switches processing module comprises:
The second trigger module, for triggering the state machine of described protection turning protocol according to described input message;
The second computing module, for calculating decision-making output according to the result of described state machine;
Second switches module, for switching processing according to the result of described decision-making output.
8. according to the system described in any one in claim 5 to 7, it is characterized in that,
Described the first receiver module, also for when described protection turning protocol is looped network protection switching agreement, receive the input message of described looped network protection switching agreement, wherein, described input message comprises: the input of thing both sides, the input message in west side of playing the host represents the excitation request that priority is equal, and can only have one to work in described excitation request time, described input message is consistent with respect to the order of described master unit and described standby unit;
Described the second receiver module; also for when described protection turning protocol is described looped network protection switching agreement; receive the input message of described looped network protection switching agreement; wherein; described input message comprises: the input of thing both sides; the input message in west side of playing the host represents the excitation request that priority is equal, and can only have one to work in described excitation request time, described input message is consistent with respect to the order of described master unit and described standby unit.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010601831.6A CN102571391B (en) | 2010-12-22 | 2010-12-22 | Method and system for status synchronization of protection switching protocol |
PCT/CN2011/081948 WO2012083763A1 (en) | 2010-12-22 | 2011-11-08 | Method and system for status synchronization of protection switching protocol |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010601831.6A CN102571391B (en) | 2010-12-22 | 2010-12-22 | Method and system for status synchronization of protection switching protocol |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102571391A CN102571391A (en) | 2012-07-11 |
CN102571391B true CN102571391B (en) | 2014-12-10 |
Family
ID=46313128
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201010601831.6A Expired - Fee Related CN102571391B (en) | 2010-12-22 | 2010-12-22 | Method and system for status synchronization of protection switching protocol |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN102571391B (en) |
WO (1) | WO2012083763A1 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104506428B (en) * | 2014-12-15 | 2017-12-26 | 福建星网锐捷网络有限公司 | Linear guard mode switching method, apparatus and system in MPLS TP |
CN105939295A (en) * | 2015-11-16 | 2016-09-14 | 杭州迪普科技有限公司 | Network protocol state synchronization method and network protocol state synchronization device |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1783825A (en) * | 2004-12-03 | 2006-06-07 | 华为技术有限公司 | Multiplex section protective protocol realizing method |
CN1801735A (en) * | 2005-01-01 | 2006-07-12 | 华为技术有限公司 | Heat backup device for multiplex section protection reverse and its method |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7490161B2 (en) * | 2001-08-22 | 2009-02-10 | Nokia Inc. | Method and system for implementing OSPF redundancy |
CN100393055C (en) * | 2002-12-10 | 2008-06-04 | 中兴通讯股份有限公司 | Automatic protection switching protocol testing method |
CN101197634B (en) * | 2007-12-29 | 2011-07-27 | 上海华为技术有限公司 | Method, system and single board device for implementing automatic protection rearrangement of main and standby plate |
-
2010
- 2010-12-22 CN CN201010601831.6A patent/CN102571391B/en not_active Expired - Fee Related
-
2011
- 2011-11-08 WO PCT/CN2011/081948 patent/WO2012083763A1/en active Application Filing
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1783825A (en) * | 2004-12-03 | 2006-06-07 | 华为技术有限公司 | Multiplex section protective protocol realizing method |
CN1801735A (en) * | 2005-01-01 | 2006-07-12 | 华为技术有限公司 | Heat backup device for multiplex section protection reverse and its method |
Also Published As
Publication number | Publication date |
---|---|
CN102571391A (en) | 2012-07-11 |
WO2012083763A1 (en) | 2012-06-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
RU2599969C2 (en) | Data synchronization method and device | |
TWI429236B (en) | Coordinated timing network configuration parameter update procedure | |
US20180219872A1 (en) | Communication system, management node, normal node, counter synchronization method, and storage medium | |
CN101511042B (en) | Data synchronization method and device | |
CN101488879B (en) | Failure protection method and apparatus in network appliance for Ethernet spanning tree protocol | |
CN104375789A (en) | Synchronous displaying method and system of tiled display screen | |
CN111683118B (en) | Block chain-based consensus method and device, master node equipment and slave node equipment | |
CN101907998A (en) | Update system and method of embedded systems | |
CN111865736A (en) | Equipment control method and device | |
CN106130680A (en) | A kind of industry internet field layer wideband bus clock synchronization realizing method | |
CN107608705A (en) | A kind of wireless WIFI video equipments and its firmware upgrade method | |
EP3675375A1 (en) | Frequency hopping control method, control device, transmitter and receiver | |
ES2150380A1 (en) | Management and control of dispensing machines through the digital mobile telephone control channels | |
CN102571391B (en) | Method and system for status synchronization of protection switching protocol | |
CN106301745A (en) | The method and device of time synchronized between main control board and slave control board | |
CN105207908A (en) | Message processing method and system framework | |
CN106941418B (en) | SSL VPN configuration information synchronization method and device | |
CN101945083B (en) | Authentication method and counterfeit judgment method for virtual router redundancy protocol | |
JP5372699B2 (en) | In-vehicle network device | |
CN103259639B (en) | A kind of clock synchronizing method of stack equipment and equipment | |
CN102468978B (en) | Service configuration method and device | |
CN101835062B (en) | Method for processing service plate changeover and shelf control unit | |
CN101605131A (en) | Method for updating topological path in the pile system and pile system and stack equipment thereof | |
CN112622687B (en) | Battery replacement control method and device for charging cabinet | |
CN108900422A (en) | Multicast forward method, device and electronic equipment |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20141210 Termination date: 20191222 |