Summary of the invention
The embodiment of the invention provides a kind of protection reverse method, system and equipment based on Ethernet passive optical network.Described technical scheme is as follows:
A kind of protection reverse method based on Ethernet passive optical network, described method comprises:
Optical network unit and optical line terminal send the APS protocol massages to the opposite end on the protection passage, described message carries the protection switching messages;
The APS protocol massages that described optical line terminal inspection this locality is switched trigger request and received, switching the protection switching messages that trigger request and described message carry according to this locality judges whether to switch, if, switch the protection switching messages that trigger request and described message carry according to described this locality and determine switchover mode, and carry out according to the switchover mode of determining that trunk optical fiber is switched or branch optical fiber is switched;
The APS protocol massages that described optical network unit inspection this locality is switched trigger request and received; switching the protection switching messages that trigger request and described message carry according to this locality judges whether to switch; if; uplink service is switched on the described protection passage, and receives downlink business from described protection passage.
The embodiment of the invention also provides a kind of protection exchanging system based on Ethernet passive optical network, and described system comprises:
Optical network unit, be used on the protection passage, sending the APS protocol massages to the opposite end, described message carries the protection switching messages, and the local APS protocol massages of switching trigger request and receiving of inspection, switching the protection switching messages that trigger request and described message carry according to this locality judges whether to switch, if uplink service is switched on the described protection passage, and receives downlink business from described protection passage;
Optical line terminal is used for sending the APS protocol massages to the opposite end on the protection passage, and described message carries the protection switching messages; And trigger request and APS protocol massages are switched in inspection this locality; switching the protection switching messages that trigger request and described message carry according to this locality judges whether to switch; if; switch the protection switching messages that trigger request and described message carry according to described this locality and determine switchover mode, and carry out according to the switchover mode of determining that trunk optical fiber is switched or branch optical fiber is switched.
Further, the embodiment of the invention also provides a kind of optical line terminal equipment, and described equipment comprises:
The message receiver module is used to receive the APS protocol massages that optical network unit sends;
Message processing module (MPM) is used for the APS protocol massages that described message receiver module receives is carried out verification, and extracts switch status message from described APS protocol massages;
Local request processing module is used to collect this locality and switches trigger request, and the trigger event that trigger request comprises external command and APS is switched in described this locality;
Protocol process module, be used for the request/state information of switch status message that described message processing module (MPM) is extracted, this locality that described local request processing module is collected and switch the switching request of trigger request and current execution and compare, obtain the highest switching request of priority;
Switch identification module, be used for the highest switching request of priority according to the output of described protocol process module and be judged as branch optical fiber and switch still and switch, and send and switch identification and notify for trunk optical fiber;
The switching services module is used for the judged result of switching identification module according to described, carries out that trunk optical fiber is switched or branch optical fiber is switched;
The message sending module is used to receive described switching when discerning notice, and the optical network unit to correspondence on the protection passage sends the APS protocol massages, and described message carries up-to-date switch status information; And do not receive described switching when discerning notice, on the protection passage, send the APS protocol massages to the opposite end.
Further, the embodiment of the invention also provides a kind of device of optical network unit, and described equipment comprises:
The message receiver module is used to receive the APS protocol massages that optical line terminal sends;
Message processing module (MPM) is used for the APS protocol massages that described message receiver module receives is carried out verification, and extracts switch status message from described APS protocol massages;
Local request processing module is used to collect this locality and switches trigger request, and the trigger event that trigger request comprises external command and APS is switched in described this locality;
Protocol process module, being used for the request/state information of switch status message that described message processing module (MPM) is extracted, this locality that described local request processing module is collected switches the switching request of trigger request and current execution and compares, obtain the highest switching request of priority, and send the protocol processes notice;
The switching services module, the highest switching request of priority that is used for obtaining according to described protocol process module is carried out switching services;
The message sending module is used to receive when described protocol processes is notified, and sends the APS protocol massages to optical line terminal on the protection passage, and described message carries up-to-date switch status information; Do not receive when described protocol processes is notified, on the protection passage, send the APS protocol massages to optical line terminal.
The beneficial effect of the technical scheme that the embodiment of the invention provides is:
On the protection passage of being created, regularly transmit the APS message that carries the protection switching messages by ONU and OLT, by the APS message interaction, can realize that the protection of any type switches, as 1+1 and 1:1, unidirectional switching and dual-ended switching, recovery and the combination that do not recover several modes;
Simultaneously, after ONU and OLT receive trigger event, can trigger and switch,, strengthen the stability and the practicality of switching by disconnected trunk optical fibre protection inverting or the branched optical cable fiber protection switching of adopting of OLT side official under county magistrate who administers lawsuit, etc.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, embodiment of the present invention is described further in detail below in conjunction with accompanying drawing.
The protocol massages that the embodiment of the invention is switched by the protection of switching trigger condition and ONU transmission in the OLT side, the invalid position of judgement EPON system carries out corresponding protection according to concrete invalid position and switches.
Embodiment 1
Present embodiment provides a kind of protection reverse method based on Ethernet passive optical network, and this method comprises:
ONU and OLT send on the protection passage and carry protection switching messages APS message;
OLT checks the local APS message of switching trigger request and receiving, switching the protection switching messages that trigger request and APS message carry according to this locality judges whether to switch, if, according to switching trigger request and the protection switching messages is determined switchover mode in this locality, and carry out according to the switchover mode of determining that trunk optical fiber is switched or branch optical fiber is switched;
ONU checks the local APS message of switching trigger request and receiving; switching the protection switching messages that trigger request and APS message carry according to this locality judges whether to switch; if uplink service is switched on the described protection passage, and receives downlink business from the protection passage.
State on the implementation before the protection reverse method, need carry out initialization system, specific as follows:
For the EPON system specifies an ODN as the protection passage, an ODN is as service aisle;
In order to protect when switching, do not need registration and range finding between OLT and the ONU, all be in the Hot Spare state as the ODN of protection passage with as the ODN of service aisle;
Simultaneously, set up the protection group one by one between OLT and all ONU that need protection of connecting down, and in OLT the corresponding relation of record protection group and ONU, the APS agreement is moved on the protection group of the ONU of appointment and OLT.The APS message is given by OLT and is specified ONU to distribute unique LLID LLID, guarantees OLT and specifies communicating by letter between ONU.
After finishing initialization and being provided with, as the case may be, OLT and the ONU that needs protection carry out following processing:
1) under the normal condition; the APS message that the protection switching messages is carried in timed sending on the protection passage between OLT and the ONU that needs protection is protected the negotiation of type; comprise the negotiation of the following aspects: enable the APS agreement or do not start, 1+1 or 1:1, unidirectional switching or dual-ended switching, recovery or do not recover; if the merit of failing to consultations, OLT and the ONU that needs protection are with report and alarm.
2) under trigger condition is switched in protection; OLT and ONU all can initiate switching of EPON system; and send a plurality of APS message notifying opposite ends of carrying identical protection switching messages successively with the short time interval and switch; guarantee that the opposite end can in time receive up-to-date protection switching messages, and switch to trunk optical fiber by OLT decision EPON system and to switch still switching of branch optical fiber.
Wherein, trigger request is switched in this locality of OLT has:
Order is switched: trigger (Manual Switch or Forced Switch) by Admin Events.Can specify: trunk optical fiber is switched or branch optical fiber is switched.
Auto switching: trigger by fault discovery, as Signal Fail or Signal Degrade etc.Be divided into following two kinds:
1) the trunk optical fiber trigger condition of switching comprises:
Signal Degrade (SD) promptly, is checked through the upward signal deterioration;
Signal Fail (SF) comprises following condition:
The a input signal is lost, and does not receive any upward signal;
B transmitter luminous power is excessive or too small;
Other cause the channel signal failure reasons c.
2) the branch optical fiber trigger condition of switching comprises:
Signal Degrade (SD) promptly is checked through the upward signal deterioration that ONUi sends;
Signal Fail (SF) comprises following condition:
A does not receive the light signal that ONUi sends in the mandate time to the ONUi appointment;
B ONUi Signal Fail;
Other cause ONUi upward signal failure reasons c.
The receivable external command of OLT side has:
The protection lock command comprises: 1) forbid specifying any signal of ONU to transmit on the protection passage; 2) forbid that work ODN goes up any signal that transmits and transmits on the protection passage.
The Forced Switch order comprises: 1) force to specify ONU to be switched on the protection passage at the service signal that transmits on the service aisle and transmit; 2) pressure all is switched on the protection ODN at the service signal that transmits on the work ODN and transmits.
The Manual Switch order comprises: 1) under the situation that service aisle and protection passage did not lose efficacy, transmit specifying ONU to be switched on the protection passage at the service signal that transmits on the service aisle; 2) under service aisle and protection passage situation about not losing efficacy, work ODN is gone up the service signal that transmits all be switched to protection ODN and go up and transmit.
Clear command is used for when the said external order is in activated state, and available this order is removed.
Trigger request is switched in this locality of ONU to be had:
Order is switched: trigger (Manual Switch or Forced Switch) by Admin Events.
Auto switching: trigger by fault discovery,, be divided into following two kinds as Signal Fail or Signal Degrade etc.:
Signal Degrade (SD): be checked through the Signal Degrade that OLT sends;
Signal Fail (SF) comprises following condition:
The a input signal is lost;
B downstream signal error code is serious;
C transmitter luminous power is excessive or too small;
Other cause the channel signal failure reasons d.
The receivable external command of ONU side has:
The protection locking: any signal of forbidding this ONU transmits on the protection passage;
Forced Switch: force this ONU to be switched on the protection passage and transmit at the service signal that transmits on the service aisle;
Manual Switch: under the situation that service aisle and protection passage did not lose efficacy, allow this ONU be switched on the protection passage and transmit at the service signal that transmits on the service aisle;
Remove: if the said external order is in activated state, available this order is removed.
Below respectively with regard to two kinds of situation explanations:
Referring to Fig. 5, initiate to switch to be example that detailed process is as follows with ONU:
Step 101:ONU is checked through fault or receives the outside when switching order, and ONU sends on the protection passage immediately and carries the APS message of up-to-date protection switching messages, comprises up-to-date request/state information in the message, the path ID that request is switched.
Step 102: after OLT is receiving the APS message that carries the protection switching messages of ONU on the passage in protection, extract message information.
Request/state information that step 103:OLT will extract from message and this locality are switched trigger request and are compared; select the highest switching request of priority and carry out switching operation; if the OLT side does not have other switching request; only the switching services with this ONU arrives the protection passage; and in the APS message that sends, the path ID of bridge joint is upgraded, do not influence the work of other ONU.If the OLT side has other switching request, whether carry out according to the priority decision that preestablishes switching request that trunk optical fiber is switched or carry out switching of ONU branch optical fiber.
Step 104:ONU learns that according to the path ID of bridge joint OLT switches after protection receives the APS message of OLT on the passage, ONU switched the business on the protection passage and sent this moment, and prepares to receive downlink business information from OLT at the protection passage.Upgrade the bridge path ID in the APS message that sends simultaneously.
Step 105:OLT learns that according to the path ID of bridge joint ONU switches after protection receives the APS message of ONU on the passage, this moment, OLT prepared to extract the uplink service information that this ONU sends from the protection passage, did not influence the work of other ONU.
Referring to Fig. 6, initiate to switch to be example that detailed process is as follows with OLT:
Step 201:OLT side is checked through fault or receives the outside when switching order, and OLT analyzes the trigger condition that protection is switched.
Whether step 202:OLT causes trunk optical fiber to be switched according to analysis and judgement, if, execution in step 203; Otherwise, execution in step 204.
Which ONU step 203:OLT inquires about and has set up the protection group, sends the APS message that carries the protection switching messages on the protection passage ONU that needs protection, and comprises up-to-date request/state information in the message, the path ID that request is switched.
Step 204: trigger request causes branch optical fiber to be switched, and whether the ONU that OLT inquires about this branch optical fiber correspondence has set up the protection group with OLT, if, execution in step 205, otherwise, execution in step 206.
Step 205:OLT sends the APS message that carries the protection switching messages for this ONU on the protection passage, comprises up-to-date request/state information in the message, the path ID that request is switched.The service signal that to issue this ONU simultaneously is switched to the protection passage, and prepares to extract from the protection passage business information of this ONU.
Step 206: the ONU of this branch optical fiber correspondence does not set up the protection group with OLT, and OLT does not then carry out switching operation.
After step 207:ONU receives the APS message that carries the protection switching messages of OLT transmission; extract request/state information; and and current self switching request compare; select the highest switching request of priority and carry out corresponding switching operation; if the OLT side does not have other switching request; then uplink service is switched to the protection passage, and in the APS message that sends, the path ID of bridge joint is upgraded.If the ONU side has other switching request, switch or do not switch according to the priority decision that preestablishes switching request.
Step 208:OLT is after receiving the APS message of ONU on the protection passage; path ID according to bridge joint learns that ONU switches; this moment, OLT sent the switching services of this ONU to the protection passage, and prepared to receive the uplink service information of ONU since then at the protection passage.Upgrade the bridge path ID in the APS message that sends simultaneously.
Step 209:ONU learns that according to the path ID of bridge joint OLT switches after protection receives the APS message of OLT on the passage, this moment, ONU prepared to extract the business information that OLT sends from the protection passage.
In this reversed process, do not exert an influence to not protecting the business of the ONU that requires.That is to say, if this ODN fault of not protecting the ONU of requirement to connect, just its business would be interrupted so; If this ODN that does not protect the ONU of requirement to connect is normal, this ONU's is professional normal so.
APS message in the present embodiment can be realized by the upper-layer protocol message more than the multiple spot MAC control sublayer.For example: realize by the OAM protocol massages is expanded, specifically can use the reserved field in the Code territory in the existing OAM message to expand, but be not limited to the reserved field in this Code territory.In the reserved field in Code territory, increase the protection switching messages; this protection switching messages is called APS message again; carry switch status information in this message; take 2 bytes; switch status information comprises " request/state ", " the path ID that request is switched ", " the path ID of bridge joint " and " protection type " four fields; each field represents that with 4 bit concrete form is referring to table 2.
Table 2
Wherein, " request/state " expression OLT and current request or the state of ONU, the priority of the request/state in present embodiment order from high to low is referring to table 3.Wherein, priority is divided into 10 grades, raises successively from 0-9.
Table 3
" the path ID that request is switched " field is represented the sign in the path that current needs are switched, " 1 " expression operating path, and " 0 " expression protection path, remaining bit is as reserved field.
" the path ID of bridge joint " field is represented the ID of trace route path of bridge joint, " 1 " expression operating path, and " 0 " expression protection path, remaining bit is as reserved field.
" protection type " field is represented the protection type that OLT and ONU support, " A " field represents whether need the APS agreement, does not need the APS agreement such as the unidirectional switching of 1+1; " B " expresses support for " 1+1 protection " or " 1:1 protection "; " D " expresses support for " unidirectional switching " or " dual-ended switching ", only supports dual-ended switching such as " 1:1 "; " R " expresses support for " recovery " or " non-recovery " mode.The concrete setting of the protection type of present embodiment is referring to table 4.
Table 4
The protection reverse method that present embodiment provides; support that APS and order are switched fast; and the protection of any type switches (1+1 and 1:1, unidirectional switching and dual-ended switching, recovery and the combination that does not recover several modes), also allows the unshielded ONU of part is linked in the network.No matter protection is switched is 1+1 or 1:1, and protection ODN and work ODN all are in the Hot Spare state, protect when switching, and do not need registration and range finding between OLT and the ONU, have improved the speed of switching.
Embodiment 2
Referring to Fig. 7, present embodiment provides a kind of protection exchanging system based on Ethernet passive optical network, comprising:
Optical network unit 301, be used on the protection passage, sending the APS protocol massages to the opposite end, carry the protection switching messages, and the local APS protocol massages of switching trigger request and receiving of inspection, switching the protection switching messages that trigger request and message carry according to this locality judges whether to switch, if uplink service is switched on the described protection passage, and receives downlink business from the protection passage;
Optical line terminal 302 is used for sending the APS protocol massages to the opposite end on the protection passage, carries the protection switching messages; And trigger request and APS protocol massages are switched in inspection this locality; switching the protection switching messages that trigger request and message carry according to this locality judges whether to switch; if; switch the protection switching messages that trigger request and message carry according to this locality and determine switchover mode, and carry out according to the switchover mode of determining that trunk optical fiber is switched or branch optical fiber is switched.
Embodiment 3
Referring to Fig. 8, present embodiment provides a kind of optical line terminal equipment, comprising:
Message receiver module 401 is used to receive the APS protocol massages that optical network unit sends.
If greater than N (suggestion N=3) the individual transmission cycle (T), do not receive the APS protocol massages, think that the opposite end optical network unit lost efficacy report and alarm.
Message processing module (MPM) 402, the APS protocol massages that is used for message receiver module 401 is received carries out verification, and extracts switch status information from the APS protocol massages.
Local request processing module 403 is used to collect this locality and switches trigger request, and the trigger event that trigger request comprises external command and APS is switched in this this locality.
Protocol process module 404, the switching request that is used for this locality of the request/state information of the switch status information of message processing module (MPM) 402 output, 403 outputs of local request processing module is switched trigger request and current execution compares, and obtains the highest switching request of priority.
Switch identification module 405, be used for the highest switching request of priority according to protocol process module 404 output and be judged as branch optical fiber and switch still and switch, and send and switch identification and notify for trunk optical fiber.
Switching services module 406 is used for carrying out according to the judged result of switching identification module 405 that trunk optical fiber is switched or branch optical fiber is switched.
Message sending module 407 is used to receive above-mentioned switching when discerning notice, and the optical network unit to correspondence on the protection passage sends the APS protocol massages, carries up-to-date switch status information this moment; And do not receive above-mentioned switching when discerning notice, on the protection passage, send the APS protocol massages to the opposite end.
In order to control the transmission frequency of message sending module 407 better, this equipment also comprises:
Timer module is used to control message sending module 407 when not receiving that switching identification notifies, and sends the APS message with predeterminated frequency; When receiving that switching identification notifies, send the APS message by frequency greater than this predeterminated frequency.
Wherein, transmission frequency can set in advance by timer module, as predeterminated frequency f=1/second, also can adjust automatically as required; as after receiving that switching switching of identification module 405 discerns notice, carry the APS message of protecting switching messages with f=3/second transmission.
The concrete function of above-mentioned protocol process module 404 is as follows:
1) switching request of the opposite end that message processing module (MPM) 402 is exported, this locality request of local request processing module 403 outputs and the switching request of current execution compare, and obtain the highest switching request of priority;
2), check that whether " the ID of trace route path ID that request is switched " and " the ID of trace route path ID of bridge joint " of opposite end meets the requirement of switching request, if undesirable, reports the alarm that do not match according to the switching request of the limit priority that obtains.Meet the requirements and just carry out next step;
3), then do not do any processing if the switching request of current execution has limit priority.In other cases according to the switching request of limit priority decision switching operation, and the switching operation that will need to carry out is transferred to and switches identification module 405.
The above-mentioned concrete function of switching identification module 405 is as follows:
1) switching operation of carrying out as required is judged as branch optical fiber and switches still trunk optical fiber and switch;
2) if being judged as branch optical fiber switches, whether the ONU that OLT inquires about this branch optical fiber correspondence has set up the protection group with OLT, if do not set up, does not carry out switching operation.If there is the protection group, OLT sends the APS message for this ONU by message sending module 407, carries out the corresponding business switching operation by switching services module 406;
3) if being judged as trunk optical fiber switches, the ONU that sets up the protection group is found out in the OLT inquiry, and sends the APS message for these ONU by message sending module 407, carries out the corresponding business switching operation by switching services module 406.
Embodiment 4
Referring to Fig. 9, present embodiment provides a kind of device of optical network unit, comprising:
Message receiver module 501 is used to receive the APS protocol massages that optical line terminal sends.
If greater than N (suggestion N=3) the individual transmission cycle (T), do not receive the APS protocol massages, think that the opposite end optical network unit lost efficacy report and alarm.
Message processing module (MPM) 502, the APS protocol massages that is used for message receiver module 501 is received carries out verification, and extracts switch status message from the APS protocol massages.
Local request processing module 503 is used to collect this locality and switches trigger request, and the trigger event that trigger request comprises external command and APS is switched in this this locality.
Protocol process module 504, being used for the request/state information of switch status information that message processing module (MPM) 502 is extracted, this locality that local request processing module is collected switches the switching request of trigger request and current execution and compares, obtain the highest switching request of priority, and send the protocol processes notice.
Switching services module 505, the highest switching request of priority that is used for obtaining according to protocol process module 504 is carried out switching services.
Message sending module 506 when being used to receive the protocol processes notice, sending the APS protocol massages to optical line terminal, and carries up-to-date switch status information on the protection passage; When not receiving the protocol processes notice, on the protection passage, send the APS protocol massages to optical line terminal.
In order to control the transmission frequency of message sending module 506 better, this equipment also comprises:
Timer module is used to control message sending module 506 when not receiving the protocol processes notice, sends the APS message with predeterminated frequency; When receiving the protocol processes notice, send the APS message by frequency greater than this predeterminated frequency.
Wherein, transmission frequency can set in advance by timer module, as predeterminated frequency f=1/second, also can adjust automatically as required; as after receiving the protocol processes notice of protocol process module 504, send the APS message that carries the protection switching messages with f=3/second.
The concrete function of above-mentioned protocol process module 504 is as follows:
1) switching request of the opposite end that message processing module (MPM) 502 is exported, this locality request of local request processing module 503 outputs and the switching request of current execution compare, and obtain the highest switching request of priority;
2), check that whether " the ID of trace route path ID that request is switched " and " the ID of trace route path ID of bridge joint " of opposite end meets the requirement of switching request, if undesirable, reports the alarm that do not match according to the switching request of the limit priority that obtains.Meet the requirements and just carry out next step;
3) if the switching request of current execution has limit priority, do not do any processing; According to the switching request decision switching operation of limit priority, send the APS message immediately in other cases, carry out the corresponding business switching operation by switching services module 505 by message sending module 506.
The technical scheme that the foregoing description provides regularly transmits the APS message by ONU and OLT on the protection passage of being created; consult the protection type and transmit the protection switching messages; by the APS message interaction, can realize that the protection of any type is switched (1+1 and 1:1, unidirectional switching and dual-ended switching, recovery and the combination that does not recover several modes).
And the protection passage in the such scheme is in hot stand-by duty always, is protecting when switching, and ONU need not re-register and find range, and has improved the speed that protection is switched;
On the basis of satisfying the 802.3ah standard, in conjunction with the structure of the point-to-multipoint of EPON, judge and carry out that trunk portion lost efficacy or component lost efficacy by switching trigger event in the OLT side, strengthened the stability and the practicality of switching;
Simultaneously; in order to utilize existing EPON chip; APS message by the upper-layer protocol message more than the multiple spot MAC control sublayer is realized can utilize existing EPON chip to realize the protection of EPON, solves the existing restriction of protection scheme aspect autgmentability and flexible Application.
The technical scheme that above embodiment provides can realize that software is stored on the storage medium that can read by hardware and software, as the floppy disk of computer, and hard disk or CD etc.
The above only is embodiments of the invention, and is in order to restriction the present invention, within the spirit and principles in the present invention not all, any modification of being done, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.