Summary of the invention
The objective of the invention is to design the method and apparatus of resilient protection switching in a kind of Ethernet passive optical network system; at the tree network design feature of EPON point to multiple spot; when realizing Dynamic Bandwidth Allocation, provide a kind of protection efficiently to switch scheme; when realizes protection, high network survivability being provided; can also adjust bandwidth (flexible meaning) in time according to the situation of change of circuit available resources, carrier class network access device cheaply is provided.
The technical scheme that realizes the object of the invention is such: the method for resilient protection switching in a kind of Ethernet passive optical network system; in the passive optical network that connects and composes by ODN by OLT and a plurality of ONU, realize resilient protection switching; comprise the transfer of data to the down direction of each ONU by OLT; transfer of data with by the up direction of each ONU to OLT is characterized in that:
A. at OLT two PHY layer entity PHY0 and PHY1, Reconciliation Sublayer entity, two MAC layer entity MAC0 and MAC1 and corresponding high-rise are set, at ONU two PHY layer entity PHY0 and PHY1 are set with protection switch function, a Reconciliation Sublayer entity, a MAC layer entity and corresponding high-rise; OLT with each have the protection switch function ONU between link to each other with ODN1 by ODN0;
B. down direction, during fault-free, in the OLT side, the mac frame that sends by MAC0, MAC1 sub-layer entities respectively, enter corresponding downstream transmit queue 0 and descending transmit queue 1 in the Reconciliation Sublayer entity, the Reconciliation Sublayer entity carries out Dynamic Bandwidth Allocation, controls that data send on corresponding ODN0, ODN1 in descending transmit queue 0 and the descending transmit queue 1; In the ONU side,, put into the descending reception formation 0 and the descending reception formation 1 of Reconciliation Sublayer entity correspondence and send to the media access control sublayer entity the mac frame that receives from ODN0, ODN1;
When system detects the 0DN0 that connects certain ONU or ODN1 fault is arranged, initiate switching by OLT to ONU with defencive function, the Reconciliation Sublayer entity of OLT is according to the line resource situation of fault-free ODN1 or ODN0, mac frame in descending transmit queue 0 and the descending transmit queue 1 is carried out the dynamic bandwidth reallocation together, the mac frame in descending transmit queue 1 and the descending transmit queue 0 is mail to this ONU by fault-free ODN1 or ODN0; The mac frame from fault-free ODN1 or the ODN0 that this ONU will receive is put into the corresponding descending reception formation 1 or the descending reception formation 0 of Reconciliation Sublayer entity and is sent to the media access control sublayer entity;
C. up direction, during fault-free, in the ONU side, send mac frame by the media access control sublayer entity to the Reconciliation Sublayer entity, the Reconciliation Sublayer entity is classified to mac frame, put into up transmit queue 0 and up transmit queue 1 by classification, the Reconciliation Sublayer entity carries out Dynamic Bandwidth Allocation, controls that data send on corresponding ODN0 and ODN1 in up transmit queue 0 and the up transmit queue 1; The OLT side with the mac frame from ODN0, ODN1 that receives, is put into the up reception formation 0 and the up reception formation 1 of Reconciliation Sublayer entity correspondence, corresponding again MAC0 and the MAC1 that sends to OLT;
When ODN0 or ODN1 had fault, the Reconciliation Sublayer entity of ONU carried out the dynamic bandwidth reallocation to the mac frame of up transmit queue 0 in up transmit queue 1, and sent by fault-free ODN1 or ODN0; The OLT side with corresponding descending reception formation 1 or the descending reception formation 0 that the mac frame from fault-free ODN1 or the ODN0 that receives is put into the Reconciliation Sublayer entity, is put into MAC0 or the MAC1 of OLT again by described classification.
The technical scheme that realizes the object of the invention still is such: the equipment of resilient protection switching in a kind of Ethernet passive optical network system; comprise OLT equipment and ONU equipment; OLT equipment is connected by ODN with ONU equipment; OLT equipment comprises OLT top-cross die change piece and descending transtation mission circuit of OLT and the up receiving circuit of OLT; ONU equipment comprises ONU top-cross die change piece and descending receiving circuit of ONU and the up transtation mission circuit of ONU, it is characterized in that:
OLT top-cross die change piece in the described OLT equipment comprises MAC0, MAC1 port, respectively comprise a reconciliation levels entity and two physical layer entity in descending transtation mission circuit of OLT and the up receiving circuit, MAC0, MAC1 port connect the reconciliation levels entity, the reconciliation levels entity connects 0 and 1 two physical layer entity, 0 is connected two ODN, ODN0 and ODN1 respectively with 1 two physical layer entity; ONU top-cross die change piece comprises a MAC port, respectively comprise a reconciliation levels entity and 0 and 1 two physical layer entity in up transtation mission circuit of ONU and the descending receiving circuit, 0 is connected ODN0, ODN1 respectively and is connected the reconciliation levels entity with 1 two physical layer entity, and the reconciliation levels entity connects a MAC port of ONU top-cross die change piece.
The descending transtation mission circuit of described OLT comprises and adds LLID LLID and PON label model, descending transmit queue 0, descending transmit queue 1 and Dynamic Bandwidth Allocation control and protection module; Add LLID LLID and PON label model the mac frame from MAC0, MAC1 port is added PON label 0 and 1 respectively, with add LLID LLID according to MAC Address, adding that label 0 is corresponding with 1 mac frame sends in descending transmit queue 0 and the descending transmit queue 1, descending transmit queue 0 is sent into Dynamic Bandwidth Allocation control and protection module with the mac frame in the descending transmit queue 1, send physical layer 0 and/or 1 through Dynamic Bandwidth Allocation control and protection module;
The up receiving circuit of described OLT comprises Dynamic Bandwidth Allocation control and protection module, up reception formation 0, up reception formation 1 and removes LLID LLID and PON label and broadcast frame filtering module; Physical layer 0 and/or 1 mac frame are served row through Dynamic Bandwidth Allocation control and protection module and are received formation 0 and up reception formation 1; go LLID LLID and PON label and broadcast frame filtering module to remove LLID LLID and the PON label in up reception formation 0 and the up reception formation 1 and remove up reception formation 0 or up reception formation 1 in broadcast frame, correspondence is sent into MAC0, MAC1 port again.
The up transtation mission circuit of described ONU comprises and adds LLID LLID and PON label model, up transmit queue 0, up transmit queue 1 and Dynamic Bandwidth Allocation control and protection module; Adding LLID LLID and PON label model classifies according to the parity of the source address of mac frame to the mac frame from the ONU MAC port, add PON label 0 and 1 respectively, add LLID LLID with MAC Address according to this ONU, adding that label 0 is corresponding with 1 mac frame sends in up transmit queue 0 and the up transmit queue 1, up transmit queue 0 is sent into Dynamic Bandwidth Allocation control and protection module with the mac frame in the up transmit queue 1, send physical layer 0 and/or 1 through Dynamic Bandwidth Allocation control and protection module;
The descending receiving circuit of described ONU comprises Dynamic Bandwidth Allocation control and protection module, descending reception formation 0, descending reception formation 1 and removes LLID LLID and PON label and broadcast frame filtering module; Physical layer 0 and/or 1 mac frame send descending reception formation 0 and descending reception formation 1 through Dynamic Bandwidth Allocation control and protection module; go LLID LLID and PON label and broadcast frame filtering module to remove LLID LLID and the PON label in descending reception formation 0 and the descending reception formation 1 and remove descending reception formation 0 or descending reception formation 1 in broadcast frame, the corresponding again MAC port of sending into ONU.
Technical scheme of the present invention adopts towards the switchover mode of optical network unit (ONU) and utilizes method such as PON tag identifier optical distribution network, realizes resilient protection switching being in harmonious proportion (Reconciliation) sublayer.This flexible notion is protection to be switched with Dynamic Bandwidth Allocation combine effectively, promptly carry out Dynamic Bandwidth Allocation by the resource situation of real-time monitoring system, when system breaks down, can require the business on circuit that breaks down and/or the crucial integrated circuit board to be switched on another circuit and/or the crucial integrated circuit board according to different Qos; And in order to prevent duplicating of broadcast frame, employing receives the method for a side filtration fraction broadcast frame at OLT and ONU; Adopt according to mac frame from MAC0, the MAC1 method of distributing data on optical distribution network ODN0, ODN1 respectively in the OLT side, adopt method according to odd even distributing data on optical distribution network ODN0, ODN1 of source MAC in the ONU side; Consider optical line terminal (OLT) and the different requirements of optical network unit (ONU) end to cost, having adopted OLT side and ONU side is asymmetrical system configuration method etc.
Method of the present invention is in the EPON system, carries out Dynamic Bandwidth Allocation by the real-time monitoring system resource situation, and realizes protecting when carrying out Dynamic Bandwidth Allocation switching.
In the present invention, resilient protection switching is realized in mediation (Reconciliation) sublayer, makes the operation of switching more near physical layer, and the advantage of accelerating reversed process is arranged.The present invention adopts Dynamic Bandwidth Allocation, and the bandwidth that each ONU takies is adjusted in the variation according to line resource that can be real-time, thereby utilizes system resource fully.The present invention can also provide different Qos service quality ratings for different customer services when bandwidth is protected.
Resilient Protection Switching scheme of the present invention; adopt separation on the two cover physical topologies, standby each other link structure to realize; the uplink burst bandwidth of protected ONU is doubled; when OLT detects a data channel and breaks down; the up-downgoing business of this passage is switched on another protection passage apace; and, guarantee the QoS of high-priority service, and low priority traffice is provided the service of " doing one's best " by Dynamic Bandwidth Allocation.
Device structure of the present invention is simple, cost is low, and the bandwidth availability ratio height.
Embodiment
The present invention is to provide a kind of method that realizes resilient protection switching based on Dynamic Bandwidth Allocation, in mediation (Reconciliation) sublayer of EPON.
Dynamic Bandwidth Allocation be a kind of in PON for the method for each optical network unit dynamic-configuration bandwidth: at first, each optical network unit (ONU) is to optical line terminal (Optical line Terminal, be called for short OLT) bandwidth on demand, optical line terminal (OLT) is according to the requirement to bandwidth of line resource situation and each optical network unit (ONU) then, distribute bandwidth, control the transmission of each optical network unit (ONU) data.
Below in conjunction with accompanying drawing with multi-service EPON (Multi-Service EPON, abbreviation MS-EPON) system is embodiment, further specifies technical scheme of the present invention (the MS-EPON system is a kind of professional E1 of traditional circuit and data service while system for transmitting on gigabit Ethernet of supporting).
The hierarchy of EPON is: be MAC Client sublayer topmost, realize bridge and logic link control functions such as (LLC); Be optional MAC Control sublayer under the MAC Client sublayer, real-time control and the management to the MAC layer operation finished in this MACControl sublayer; MAC Control is a media access control sublayer below the sublayer, and media access control sublayer provides service for exchange LLC data between the MAC Client sublayer of this locality and opposite end; Be to be in harmonious proportion (Reconciliation) sublayer under the media access control sublayer, this Reconciliation Sublayer is responsible for media access control sublayer primitive is mapped to the interface signal of physical layer, and the primitive that the interface signal of physical layer is reduced into media access control sublayer; Be physics (PHY) layer under the Reconciliation Sublayer, the PHY layer is responsible for Media Independent Interface (GMI) signal of Reconciliation Sublayer is correctly sent, and the signal that sends from the opposite end that will receive correctly is reduced into Media Independent Interface (GMI) signal.
Because the OLT cost is shared by numerous users, the ONU cost just requires to reduce cost at the ONU end then by a burden for users as far as possible, is different so EPON holds the requirement to cost at OLT with ONU.What the present invention adopted at the OLT of EPON and ONU two ends is a kind of asymmetrical system configuration.
Referring to Fig. 1 a, each entity shown in the figure in the OLT side MS-EPON system hierarchy of the present invention illustrates resilient protection switching of the present invention (reconciliation levels) residing position in the OLT of MS-EPON system side.
Each entity in the OLT side MS-EPON system hierarchy is: be MAC Client sublayer topmost, comprise two MAC Client sub-layer entities, i.e. MAC Client 0 and MAC Client 1; Be MAC Control sublayer below the MAC Client sublayer, comprise two MAC Control sub-layer entities, i.e. MAC Control0 and MAC Control 1; Below the MAC Control sublayer media access control sublayer (MAC:Media AccessControl, media access control layer is a sublayer of ethernet data link layer), comprise two media access control sublayer entities, for convenience of description, two media access control sublayer entities of regulation are respectively MAC0 and MAC1; Be Reconciliation Sublayer below the media access control sublayer, comprise a Reconciliation Sublayer entity, resilient protection switching of the present invention just realizes that at this Reconciliation Sublayer Reconciliation Sublayer utilizes mac frame to communicate by letter with MAC1 with two media access control sublayer entity-MAC0; Be physical layer (PHY) below the Reconciliation Sublayer, comprise two PHY entities, i.e. PHY0 and PHY1, two PHY entity-PHY0 communicate by letter with Reconciliation Sublayer by Media Independent Interface (GMI) respectively with PHY1.
Referring to Fig. 1 b, each entity shown in the figure in the ONU side MS-EPON system hierarchy of the present invention illustrates resilient protection switching of the present invention residing position in the ONU of MS-EPON system side.
Each entity in the ONU side MS-EPON system hierarchy is: be MAC Client sublayer topmost, have only a MAC Client sub-layer entities; Be MAC Control sublayer below the MAC Client sublayer, have only a MAC Control sub-layer entities; MAC Control is a media access control sublayer below the sublayer, has only a media access control sublayer entity; Be Reconciliation Sublayer below the media access control sublayer, have only a Reconciliation Sublayer entity, resilient protection switching of the present invention just realizes that at this Reconciliation Sublayer Reconciliation Sublayer is communicated by letter with the media access control sublayer entity by mac frame; Be physical layer PHY below the Reconciliation Sublayer, comprise two PHY entities, i.e. PHY0 and PHY1, two PHY entity-PHY0 communicate by letter with Reconciliation Sublayer by Media Independent Interface (GMI) respectively with PHY1.
Resilient protection switching function of the present invention realizes that in mediation (Reconciliation) sublayer of OLT and ONU when system moved, line fault was transparent to the system more than the described Reconciliation Sublayer.
OLT is connected by two optical distribution networks (ODN) with ONU, and two ODN are respectively ODN0 and ODN1.
When system normally moves, down direction, in the OLT side, the mac frame that sends by the MAC0 sub-layer entities, enter in the descending transmit queue in the Reconciliation Sublayer entity, the Reconciliation Sublayer entity is according to the line resource situation of ODN0 and each user requirement to service quality, and the data of controlling in the descending transmit queue send on ODN0; The mac frame that is sent by the MAC1 sub-layer entities sends on ODN1 in the same way; In the ONU side, receive frame from ODN0 and ODN1, put into the descending reception formation of Reconciliation Sublayer entity, send to the media access control sublayer entity then.
When system normally moves, up direction, be to send mac frame by the media access control sublayer entity of ONU side to the OLT side, ONU side Reconciliation Sublayer entity is classified to mac frame according to the parity of source MAC, mails to the MAC0 and the MAC1 of OLT side then respectively by ODN0 and ODN1 correspondence.
Referring to Fig. 2, the structure of ethernet frame lead code among the EPON is used for illustrating how to insert LLID (LLID) and PON label (PON Tag) in the lead code of Ethernet, realizes that line fault is transparent to the system more than the described Reconciliation Sublayer.
EPON lead code (Preamble) is totally 8 bytes, wherein the 1st and the 2nd totally 2 bytes are SPD bytes; The the 3rd to the 5th totally 3 bytes be retained do not use (Reserved), the present invention to choose the 5th byte last bit as PON label (PON Tag); The the 6th and the 7th totally 2 bytes be used for transmission logic chain line (Logical Link Identification is called for short LLID); The 8th byte is as CRC check.The present invention adopts the PON label, is used for being illustrated under the situation about not breaking down, and identification data transmits on which DON, even make when breaking down, and the high level more than Reconciliation Sublayer, system is as not breaking down.The present invention adopts LLID, is the sign of setting up point-to-point logical links passage by the bandwidth control strategy on the EPON platform.
In the OLT side, during transmission, from different MAC layer entities, be that mac frame adds different PON labels according to mac frame, as to the frame from MAC layer MAC0 entity, the PON label of interpolation is 0, to the frame from MAC layer MAC1 entity, the PON label of interpolation is 1; According to the OLT side MAC Address Maintenance Table corresponding, in the lead code of the mac frame that will send, insert the LLID value with LLID.In the OLT side, during reception, be that 0 frame mails to media access control sublayer MAC0 entity with the PON label, be that 1 frame mails to media access control sublayer MAC1 entity with the PON label.To described MAC0, MAC1 sub-layer entities transmit frame the time, its front and back order of frame that the PON label is identical cannot change, but need not consider the front and back order between the PON label different frame.
The ONU side, during transmission, according to the parity of mac frame source MAC, for mac frame adds different PON labels: as being the frame of even number to source MAC, the PON label is 0, and source MAC is the frame of odd number, and the PON label is 1.The ONU side, during reception, the frame that receives enters separately descending reception formation by the PON label, mail to the media access control sublayer entity of ONU side then, to described media access control sublayer entity transmit frame the time, its front and back order of frame that the PON label is identical cannot change, but need not consider the front and back order between the PON label different frame.
Referring to Fig. 3, be to realize that the present invention protects the Ethernet passive optical network system architecture diagram of reverse method.
The equipment of realizing the inventive method comprises optical line terminal (OLT) equipment 100 and optical network unit (ONU) equipment, and wherein optical network unit (ONU) equipment can comprise equipment 201 with defencive function and the equipment 202 that does not have defencive function.An OLT equipment is connected by EPON 17 with a plurality of ONU equipment, forms the passive optical network of Ethernet data transmission.To being provided with two cover physical circuits between each ONU, ODN0 and ODN1 (two cover optical distribution network ODN) constitute two PON systems at OLT in the present invention.At the down direction from OLT to ONU, OLT will mail to the data separated into two parts of each ONU, send by two PON system descendings; Up direction, ONU is distributed into two parts with the upstream data of oneself, sends by two PON system uplinks.Like this, two cover PON systems use simultaneously, the message capacity that not only makes whole communication system is than protecting a PON system before switching to increase by one times, and when the data channel of wherein certain ONU breaks down, at up direction, whole switching services of this ONU are in another data channel; At down direction, OLT also is switched to the downlink business of this ONU on this light data channel.After fault recovery, the uplink service of ONU still distributes on two data channel, and the downlink business of OLT also distributes on two data channel.
Optical line terminal (OLT) equipment 100 mainly comprises: OLT top-cross die change piece 1, have the descending transtation mission circuit 21 of OLT of defencive function and have the up receiving circuit 51 of OLT of defencive function.Optical network unit (ONU) 201 with defencive function mainly comprises: optical network unit Switching Module 38, have the up transtation mission circuit 23 of ONU of defencive function and have the descending receiving circuit 70 of ONU of defencive function.
After system detects fault, to initiate to switch by the OLT side, and adopt switchover mode towards ONU, the transmission that promptly detects an ONU is broken down, and just initiates an ONU and goes up professional switching, rather than initiate whole ODN and go up professional switching.Because after switching; the total bandwidth of system descends; must have some professional bandwidth can not guarantee; in the worst case; certain ODN breaks down fully, and this moment, the bandwidth (single ODN capacity of trunk is 1G) of another ODN only was left by system, and adopt the distribution method of dynamic bandwidth this moment is to allow the business with defencive function have higher priority; the preferential bandwidth that obtains, other business that does not have defencive function is used remaining bandwidth.
Because the processing method when any one ODN breaks down among two ODN all is the same, only situation about breaking down after switching with regard to the transmission of certain ONU among the ODN1 describes.
Down direction, the mac frame that is mail to faulted ONU by OLT is sent by OLT side MAC1 entity, enter descending transmit queue 1, in OLT side Reconciliation Sublayer entity, not to distribute bandwidth for this mac frame according to the line resource situation of ODN1, but according to the line resource situation of ODN0, the frame of sending with the MAC1 entity carries out Dynamic Bandwidth Allocation, mails to ONU by ODN0 then; Faulted ONU receives the frame from ODN0, puts into the descending reception formation 0 of the Reconciliation Sublayer entity of faulted ONU, sends to the media access control sublayer entity of ONU side then.
Up direction, the mac frame that sends to the OLT side by the media access control sublayer entity of ONU side, parity according to source MAC is classified, but the mac frame that has divided class is not to send respectively by two ODN, but all send to the OLT side by trouble-free ODN0, at the Reconciliation Sublayer entity of OLT side,, be dealt into corresponding M AC 0 entity and MAC1 entity respectively according to the classification of ONU side.
So, just may receive two parts of same broadcast frames in the ONU side, so, need will all to abandon from the broadcast frame of certain MAC1 sub-layer entities of OLT side in the ONU side, receive only the broadcast frame that the MAC0 sub-layer entities of OLT is sent.
Referring to Fig. 4 a, be the electric theory diagram that the present invention is transmitted from the OLT side to ONU side down direction.Among the figure; OLT top-cross die change piece 1 is realized the function of two media access control sublayer entities; the OLT side has the descending transtation mission circuit 21 of OLT of defencive function and realizes reconciliation levels function and two physical layer function; wherein finish the reconciliation levels function with each module in the dash box of having powerful connections; in the dash box, the module except that adding LLID and PON label model 4, descending transmit queue 0 (5), descending transmit queue 1 (6) constitutes Dynamic Bandwidth Allocation control and protective circuit.ONU top-cross die change piece 38 is realized the function of a media access control sublayer entity; the ONU side has the descending receiving circuit 23 of defencive function and realizes reconciliation levels function and two physical layer function; wherein finish the reconciliation levels function with each module in the dash box of having powerful connections, the module in the dash box except going LLID and PON label and broadcast frame module 36, descending reception formation 0 (34), descending reception formation 1 (35) constitutes Dynamic Bandwidth Allocation control and protective circuit.
When system does not break down, in the OLT side, external data is distributed between each port of OLT top-cross die change piece 1, the mac frame data of being come out by port 0 (2) enter has defencive function OLT downlink frame transtation mission circuit 21: at first in adding LLID and PON label model 4, in the lead code of mac frame, insert LLID value and PON label, the LL ID value of inserting is to add with the corresponding Maintenance Table of LLID value according to MAC Address, owing to be the mac frame that port 0 comes out, the PON label that adds is 0; Then, be that 0 mac frame is placed in the descending transmit queue 0 (5) with the PON label, and put into the transmit queue of corresponding LLID by the LLID value; It is the higher protection formation of priority that Dynamic Bandwidth Allocation unit 13 is responsible for safeguarding and indicating the transmit queue of which LLID to descending transmit queue 0 (5), the transmit queue of which LLID is the lower general formation of priority, and carries out Dynamic Bandwidth Allocation according to the situation of data in the descending transmit queue 0 (5) and calculate; Each LLID formation sends to downlink time division control module 12 in the descending transmit queue 0 (5) of descending ODN0 selection module 9 controls; Downlink time division control module 12 is controlled each LLID formation and is sent to ODN0 according to the result of calculation of 13 pairs of allocated bandwidth of Dynamic Bandwidth Allocation module, and tranmitting data register is provided by clock circuit 7; Send data after parallel/serial conversion, coding and the electricity/light conversion of parallel/serial change-over circuit 0 (15), coding circuit 0 (17) and electricity/light change-over circuit 0 (19), go up transmission at the optical distribution network ODN0 of EPON (22).
The mac frame data of being come out by the port one (3) of OLT top-cross die change piece 1 enter has defencive function OLT downlink frame transtation mission circuit 21, according to sending: at first in adding LLID and PON label model 4 with the same mode of above-mentioned steps, in the lead code of mac frame, insert LLID and PON label, the LLID value of inserting is to add with the corresponding Maintenance Table of LLID value according to MAC Address, owing to be the mac frame that comes out from port one, the PON label that adds is 1; Because the PON label is 1, so put into descending transmit queue 1 (6); It is the higher protection formation of priority that Dynamic Bandwidth Allocation unit 13 is responsible for safeguarding and indicating the transmit queue of which LLID to descending transmit queue 1 (6), the transmit queue of which LLID is the lower general formation of priority, and carries out Dynamic Bandwidth Allocation according to the situation of data in the descending transmit queue 1 (6) and calculate; Each LLID formation sends to downlink time division control module 14 in the descending transmit queue 1 (6) of descending ODN1 selection module 11 controls; Downlink time division control module 14 is controlled each LLID formation and is sent to ODN1 according to the result of calculation of 13 pairs of allocated bandwidth of Dynamic Bandwidth Allocation module, and tranmitting data register is provided by clock circuit 7; Send data through parallel/serial change-over circuit 1 (16), coding circuit 1 (18), after parallel/serial conversion, coding and the electricity of electricity/light change-over circuit 1 (120)/light conversion, go up transmission at the optical distribution network ODN1 of EPON (22).
In the ONU side, have the data that the descending receiving circuit 23 of ONU of defencive function receives from ODN0, after light/electric conversion, decoding and the serial/parallel conversion through light/power conversion circuit 0 (24), decoding circuit 0 (27), serial/parallel change-over circuit 0 (30), enter descending reception formation 0 (34), its work clock is extracted from the signal of decoding circuit 0 (27) by clock extracting circuit 0 (26); Mac frame data in the descending reception formation 0 (34) are removed LLID and PON label in removing LLID and PON label and broadcast frame filtering module 36, be broadcast frame in 0 the MAC data but keep the PON label; The mac frame data of removing LLID and PON label are sent to the port 37 of ONU top-cross die change piece 38.
The data that receive by ODN1 in the same way, through light/power conversion circuit 1 (25), decoding circuit 1 (28), after the light of serial/parallel change-over circuit 0 (31)/electric conversion, decoding and the serial/parallel conversion, enter descending reception formation 1 (35), its work clock is extracted from the signal of decoding circuit 1 (28) by clock extracting circuit 1 (29); Mac frame data in the descending reception formation 1 (35) are removed LLID and PON label in removing LLID and PON label and broadcast frame filtering module 36, and to filter out the PON label be broadcast frame in 1 the MAC data.
In the time of line failure, in the OLT side, data enter the OLT downlink frame transtation mission circuit 21 with defencive function by two ports 2 and 3 of OLT top-cross die change piece 1, mode during still according to above-mentioned not breaking down, in adding LLID and PON label model 4, in the lead code of frame, add LLID and PON label, and the mode during according to above-mentioned not breaking down is put into descending transmit queue 0 (5) and descending transmit queue 1 (6) respectively; Protection is switched control module 10 and is responsible for whether each LLID formation has taken place to switch in maintenance and indication transmit queue 0 (5) and the transmit queue 1 (6), and data wherein should send on which ODN; The indication of control module 10 is switched in Dynamic Bandwidth Allocation unit 13 according to protection, again carry out bandwidth calculation, the bandwidth of each LLID formation in the preferential protection collection of queues that guarantees to have higher priority, remaining bandwidth are reallocated to the formation of each LLID in the lower general collection of queues of priority; ONU Breakdown Maintenance module 8 is responsible for switching control module 10 to protection fault message is provided; Descending ODN0 selects module 9 and descending ODN1 to select module 11 to switch the indication of control module 10 according to protection, and the data of each LLID formation are sent to downlink time division control module 0 (12) and downlink time division control module 1 (14) in control transmit queue 0 (5) and the transmit queue 1 (6); Downlink time division control module 0 (12) and downlink time division control module 1 (14) result of calculation according to Dynamic Bandwidth Allocation unit 13, the data of each LLID formation are sent to ODN0 and OND1 in control transmit queue 0 (5) and the transmit queue 1 (6).
In the ONU side, the data that receive, after light/electric conversion, decoding, serial/parallel conversion, in descending reception data distribution module 32, put descending reception formation 0 (34) and descending reception formation 1 (35) (the PON label is that 0 frame is put descending reception formation 0 into, and the PON label is that 1 frame is put descending reception formation 1 into) respectively into according to receiving PON label in the mac frame lead code; In removing LLID and PON label and broadcast frame filtering module 36, LLID and PON label are removed, and filtering out the PON label is 1 broadcast frame and the port 37 that the frame in descending reception formation 0 (34) and the descending reception formation 1 (35) is mail to ONU top-cross die change piece 38.
Down direction transmission situation when ODN1 breaks down shown in Fig. 4 a.As shown in phantom in FIG., descending transmit queue 1 (6) → descending ODN1 selects module 11 → downlink time division to control 0 module 12 → parallel/serial change-over circuit 0 (15) → coding circuit 0 (17) → electricity/light change-over circuit 0 (19) → ODN0 → light/power conversion circuit 0 (24) → decoding circuit 0 (27) → serial/parallel change-over circuit 0 (30) → descending reception data distribution module 32 → descending reception formation 1 (35).
System detects fault; by the switchover mode of OLT side initiation towards ONU; implementation method is: after the transmission that detects an ONU is broken down; at first whether the ONU that will switch in the inspection of OLT side has defencive function; if have defencive function; then revise the Breakdown Maintenance table of the ONU Breakdown Maintenance module 8 of OLT side; promptly revise the indicated value (0 or 1) of LLID formation related in the Breakdown Maintenance table; OLT is again to the ONU indication that sends control information then; for the Breakdown Maintenance table in the ONU Breakdown Maintenance module 33 of ONU modification ONU side, promptly revise the indicated value (0 or 1) of LLID formation related in the Breakdown Maintenance table.To the ONU 202 that does not have defencive function, then do not initiate to switch processing.
Referring to Fig. 4 b, be the electric theory diagram that the present invention is transmitted from the ONU side to OLT side up direction.Among the figure; OLT top-cross die change piece 1 is realized the function of two media access control sublayer entities; the OLT side has the up receiving circuit 51 of OLT of defencive function and realizes reconciliation levels function and two physical layer function; wherein finish the reconciliation levels function with each module in the dash box of having powerful connections; in the dash box, the module except going LLID and PON label and broadcast frame module 39, up reception formation 0 (40), up reception formation 1 (41) constitutes Dynamic Bandwidth Allocation control and protective circuit.ONU top-cross die change piece 38 is realized the function of a media access control sublayer entity; the ONU side has the up transtation mission circuit 70 of defencive function and realizes reconciliation levels function and two physical layer function; wherein finish the reconciliation levels function with each module in the dash box of having powerful connections, the module in the dash box except adding LLID and PON label model 68, up transmit queue 0 (66), up transmit queue 1 (67) constitutes Dynamic Bandwidth Allocation control and protective circuit.
When system does not break down, up direction, in the ONU side, mac frame enters the up transtation mission circuit 70 of the ONU with defencive function by the port 37 of ONU top-cross die change piece 38: at first in adding LLID and PON label 68 modules, in the lead code of mac frame, insert LLID value and PON label, the LLID value of inserting is to add with the corresponding Maintenance Table of LLID value according to the MAC Address of this ONU, the PON label then distributes according to the parity of the source MAC of mac frame, as being that the PON label of the frame of even number is made as 0 with the mac frame source MAC, be that the PON label of the frame of odd number is made as 1 with the mac frame source MAC; Then, be that 0 mac frame is placed in the up transmit queue 0 (66) with the PON label, and put into the transmit queue of corresponding LLID by the LLID value; With the PON label is that 1 mac frame is placed in the up transmit queue 1 (67), and puts into the transmit queue of corresponding LLID by the LLID value; Dynamic Bandwidth Allocation unit 59 is responsible for safeguarding and is indicated the transmit queue of which LLID to two up transmit queues 0 and 1 is the higher protection formation of priority, the transmit queue of which LLID is the lower general formation of priority, and carries out Dynamic Bandwidth Allocation according to the situation of data in two up transmit queues 66,67 and calculate; Upgoing O DN0 selects module 62 that each LLID formation in the up transmit queue 0 (66) is sent to up time-division control module 58; Up time-division control module 58 is controlled each LLID formation and is sent to ODN according to the result of calculation of 59 pairs of allocated bandwidth of Dynamic Bandwidth Allocation module, and tranmitting data register is provided by clock circuit 61; Send parallel/serial conversion, coding and the electricity/light conversion of data, on the optical distribution network ODN0 of EPON 22, send through parallel/serial change-over circuit 0 (56), coding circuit 0 (54) and electricity/light change-over circuit 0 (52); Upgoing O DN1 selects module 64 that each LLID formation in the up transmit queue 1 (67) is sent to up time-division control module 60; Up time-division control module 60 is controlled each LLID formation and is sent to ODN1 according to the result of calculation of 59 pairs of allocated bandwidth of Dynamic Bandwidth Allocation module, and tranmitting data register is provided by clock circuit 61; Send parallel/serial conversion, coding and the electricity/light conversion of data, on the optical distribution network ODN1 of EPON 22, send through parallel/serial change-over circuit 1 (57), coding circuit 0 (55) and electricity/light change-over circuit 0 (53).
In the OLT side, have the data that the up receiving circuit 51 of OLT of defencive function receives by ODN0, light/electric conversion, decoding and serial/parallel conversion through light/power conversion circuit 0 (49), decoding circuit 0 (46), serial/parallel change-over circuit 0 (43), enter up reception data distribution formation 0 (40), its work clock is extracted from the signal of decoding circuit 0 (46) by clock extracting circuit 0 (45); Mac frame data in the up reception formation 0 (45) are removed LLID and PON label in removing LLID and PON label and broadcast frame filtering module (39); The mac frame that removes LLID and PON label is addressed to the port 0 (2) of OLT top-cross die change piece (1).The data that the OLT side receives by ODN1 in the same way, light/electric conversion, decoding and serial/parallel conversion through light/power conversion circuit 1 (50), decoding circuit 1 (47), serial/parallel change-over circuit 0 (44), enter up reception formation 1 (41), wherein clock is extracted from the signal of decoding circuit 1 (47) by clock extracting circuit 1 (48); Mac frame data in the up reception formation 1 (41) are in removing LLID and PON label and broadcast frame filtering module 39, and removing LLID and PON label and filtering out the PON label is 1 broadcast frame, are broadcast frame in 0 the MAC data but keep the pON label; The mac frame that removes LLID and PON label is addressed to the port one (3) of OLT top-cross die change piece (1).
In the time of line failure, in the ONU side, data enter the up transtation mission circuit 70 of the ONU with defencive function by the port 37 of ONU top-cross die change piece 38, mode during then according to above-mentioned not breaking down, in adding LLID and PON label model 68, in the lead code of frame, add LLID and PON label, and the mode during according to above-mentioned not breaking down is put into up transmit queue 0 (66) and up transmit queue 1 (67) respectively; Protection is switched control module 63 and is responsible for safeguarding and indicating whether each LLID formation has taken place to switch in two up transmit queues 0 (66), 1 (67), and data wherein should send on which ODN; The indication of control module 63 is switched in Dynamic Bandwidth Allocation unit 59 according to protection, recomputate bandwidth, the bandwidth of each LLID formation in the preferential protection collection of queues that guarantees to have higher priority, remaining bandwidth are reallocated to the formation of each LLID in the lower general collection of queues of priority; ONU Breakdown Maintenance module 65 is responsible for switching control module 63 to protection fault message is provided; Upgoing O ND0, OND1 select module 62,64 to switch the indication of control module 63 according to protection, and the data of controlling each LLID formation in the up transmit queue 0 (66), 1 (64) are sent to that the up time-division is controlled 0 module 58 and the up time-division is controlled 1 module 60; The up time-division is controlled 0 module 58 and the up time-division is controlled the result of calculation of 1 module 60 according to Dynamic Bandwidth Allocation unit 59, and the data of each LLI D formation are sent to OND0 and OND1 respectively in the control transmit queue 0 (66), 1 (64).
In the OLT side, the data that receive, after light/electric conversion, decoding, serial/parallel conversion, in up reception data distribution module 42, put into up reception formation 0 (40) and up reception formation 1 (41) respectively according to the PON label in the received frame lead code, wherein the PON label is that 0 frame is put up reception formation 0 (40) into, and the PON label is that 1 frame is put up reception formation 1 (41) into; Then the frame in up reception formation 0 (40) and the up reception formation 1 (41) is mail to the port (2) and the port (3) of OLT top-cross die change piece (1), in removing LLID and PON label and broadcast frame filtering module 39, LLID and PON label are removed, and to filter out the PON label be broadcast frame in 1 the mac frame.
The situation of up direction transmission when ODN1 breaks down has been shown among Fig. 4 b.As shown in phantom in FIG., up transmit queue 1 (67) → upgoing O DN1 selects module 64 → up time-division to control 1 module 58 → parallel/serial change-over circuit 0 (56) → coding circuit 0 (54) → electricity/light change-over circuit 0 (52) → ODN0 → light/power conversion circuit 0 (49) → decoding circuit 0 (46) → serial/parallel change-over circuit 0 (43) → up reception data distribution module 42 → up reception formation 1 (41).
After system detects fault, to initiate to switch by OLT, and adopt switchover mode towards ONU, the transmission that promptly detects an ONU is broken down, and just initiates an ONU and goes up professional switching, rather than initiate whole ODN and go up professional switching.Implementation method is: after the transmission that detects an ONU is broken down; at first will protect the ONU that switches whether to have defencive function in the inspection of OLT side; if have defencive function; then revise the Breakdown Maintenance table of the ONU Breakdown Maintenance module 8 of OLT side; promptly revise the indicated value (0 or 1) of LLID formation related in the Breakdown Maintenance table; OLT is again to the ONU indication that sends control information then; in the Breakdown Maintenance table in the ONU Breakdown Maintenance module 65 of ONU modification ONU side, promptly revise the indicated value (0 or 1) of LLID formation related in the Breakdown Maintenance table.
EPON of the present invention system had both supported to have the ONU of defencive function, also supported do not have the ONU of defencive function, so should check earlier before protection is switched whether the ONU that will switch has defencive function, if having defencive function, then initiated to switch; Otherwise, then not initiating to switch processing, the ONU 202 as to not having defencive function does not initiate to switch processing.
Detect upstream data in real time by two PON interface MAC0, MAC1 and detect the ONU fault in the OLT side; when detecting certain ONU data and when another PON mouth detects less than certain ONU data in a PON mouth the certain hour; illustrate that there is fault in the respective channel that detects less than certain ONU data, need protect and switch.In like manner, after fault recovery, under OLT control, whether this passage transmission test data to this ONU detects this data channel fault and recovers.After the fault recovery, the business of this ONU is distributed transmission again on two passages.
Owing to adopted resilient Protection Switching scheme of the present invention; can protect the crucial integrated circuit board of circuit and equipment; the access network of high survivability is provided for the user; simultaneously can also adjust bandwidth in time, carrier class network access device cheaply is provided according to the situation of change of circuit available resources.