Background technology
Along with rapid growth and the development of optical communication technique and the reduction of cost of Access Network to the service bandwidth demand, optical fiber communication is transparent to business with it, the life-span long, the bandwidth bearing capacity is almost unlimited, can adapt to the characteristics of ever-increasing bandwidth and new business growth requirement, and becomes the important way that access layer network is built.Along with progressively moving down of " light advances copper and moves back " and optical node, FTTP (Fiber To The Premise, FTTP), FTTB (Fiber To The Building, Fiber To The Building), FTTO (Fiber To The Office, Fiber-To-The-Office) and FTTH (Fiber To The Home, Fiber to the home) become the inexorable trend of access layer network development.
In above-mentioned process, the passive optical access network network is with its passive pressure of not powering, good environmental adaptability, no electromagnetism thunder and lightning disturbs, save advantages such as computer room construction cost and reduction operation maintenance expense, can finely satisfy the demand that access layer network is built, especially EPON (Ethernet Passive Optical Network, EPON based on ethernet technology) appearance of technology, making becomes the important way of the construction of optical access network of new generation based on the passive optical access network of EPON technology, Figure 1 shows that the networking schematic diagram based on the passive optical access network of EPON technology.There are many equipment producers and chip manufacturing commercial city to release EPON chip and equipment at present based on the IEEE802.3ah standard.
Along with the extensive commercialization of EPON equipment, the troubleshooting issue of EPON equipment becomes increasingly conspicuous.Relatively common faults has ONU long hair light, normal ONU should send data in distributing to its timeslice, should close at ordinary times, and long hair light means that this ONU is sending data always, cause OLT (Optical Line Terminal, optical line terminal) can't receive the data of other normal ONU, thereby cause all ONU all can't normal registration.And certain ONU seized the timeslice of distributing to other ONU, and it is undesired that the ONU that causes self and seized timeslice all works.Be to adopt burst mode to detect the ONU luminous power in addition in the prior art, it must be that ONU is in login state that burst mode detects, and communication is normal between the OLT, detects in distributing to the timeslice of this ONU, because the detection time that burst mode detects is very short, so its difficulty is higher.
Summary of the invention
The invention provides the method and system of optical module state among a kind of Long-distance Control OTU, realize by OLT (Optical Line Terminal, optical line terminal) the optical module state of PON (PassiveOptical Network, EPON) interface among the ONU of Long-distance Control far-end.
Technical scheme of the present invention comprises:
The method of optical module state in a kind of Long-distance Control optical network unit comprises step:
A, optical line terminal receive when specifying optical module in the optical network unit to carry out the instruction of remote diagnosis, sends Multi-point Control Protocol message according to the content of this instruction to described optical network unit;
B, described optical network unit receive described Multi-point Control Protocol message, if optical module is closed in this message indication, then optical module are closed, and optical network unit stops to send data simultaneously; If this message pilot light module enters normal condition, then optical module is opened, optical network unit can freely send data simultaneously; If this message pilot light module enters test mode, then optical module is opened, optical network unit sends the test coding of appointment in the message simultaneously.
Further, after described optical network unit receives that the Multi-point Control Protocol message of optical module is closed in indication, closed condition is arrived in the state transition of described optical module, initiatively self is nullified from described optical line terminal, no longer respond the gating message that described optical line terminal sends.
Further, after described optical network unit receives that the pilot light module enters the Multi-point Control Protocol message of normal condition, normal condition is arrived in the state transition of described optical module, the gating message that the described optical line terminal of beginning normal response sends.
Further, after described optical network unit receives that the pilot light module enters the Multi-point Control Protocol message of test mode, test mode is arrived in the state transition of described optical module, initiatively self is nullified from described optical line terminal simultaneously, no longer respond the gating message that described optical line terminal sends.
Further, comprise the Media Access Controlled address of the optical network unit that receives this message in the described Multi-point Control Protocol message, the status command of optical module and the coding of the test under the test pattern.
Further, in the described steps A, optical line terminal is received when specifying optical module in the optical network unit to carry out the instruction of remote diagnosis, obtain the Media Access Controlled address of this optical network unit according to the optical network unit marks of appointment in this instruction, the content according to this instruction sends Multi-point Control Protocol instruction to this optical network unit then.
The system of optical module state in a kind of Long-distance Control optical network unit, comprise optical line terminal and optical network unit, described optical line terminal comprises command reception module and remote control module, and described optical network unit comprises message sink module and status control module, wherein
The command reception module, the optical module that is used for receiving specifying optical network unit carries out the instruction of remote diagnosis;
Remote control module, the content that the remote diagnosis that is used for receiving according to the command reception module instructs sends Multi-point Control Protocol message to corresponding optical network unit;
The message sink module is used to receive the Multi-point Control Protocol message that optical line terminal sends;
Status control module when optical module is closed in described Multi-point Control Protocol message indication, is used for optical module is closed, and makes optical network unit stop to send data; When described Multi-point Control Protocol message pilot light module enters normal condition, be used for optical module is opened, make optical network unit can freely send data; When described Multi-point Control Protocol message pilot light module enters test mode, be used for optical module is opened, control the test coding that optical network unit sends appointment in the message simultaneously.
Beneficial effect of the present invention is as follows:
When breaking down, certain ONU of far-end causes the long hair light time, perhaps certain ONU timeslice of having seized other ONU ONU of causing this ONU and having been seized timeslice works when undesired, can use Long-distance Control of the present invention and close the optical module of this ONU, the present invention can be used as basic function and is applied in the ONU fault diagnosis functions.
Further, the invention provides the ONU luminous power measuring ability of non-burst mode, overcome in the prior art be when adopting burst mode to detect the ONU luminous power detection time very short, the difficulty problem of higher can be used as basic function and is applied in the maintenance function of EPON.
Embodiment
Major technique design of the present invention is to send MPCP (Multi-point controlprotocol by OLT to ONU, Multi-point Control Protocol) message, make ONU after receiving the Multi-point Control Protocol message that OLT sends, the optical module that can control the PON interface enters the state of Multi-point Control Protocol message appointment, thereby the optical module that makes OLT can control the PON interface among certain ONU of far-end enters conventional state, this ONU can normal registration and work like this, the optical module that can also close the PON interface sends data to forbid ONU, and enter test mode, make ONU continue to send specific coding.
The MAC Address that comprises the ONU that receives this message among the present invention in the MPCP message frame form of OLT Long-distance Control ONU optical module state, and control far-end optical module enters the normality instruction or closes the optical module instruction or enter the test mode instruction.A kind of instantiation of message frame form is described below for example.
See also Fig. 2, this figure is the frame format schematic diagram of a kind of preferred embodiments of the MPCP message frame that adopts among the present invention, wherein, and purpose MAC (Medium Access Control, Media Access Controlled) address field is 6 bytes, the MAC Address of filling in the ONU that will control; The source MAC field is 6 bytes, fills in the MAC Address of the OLT that sends the MPCP message frame; Length/type field is 2 bytes, is fixed as 0x8808; The Opcode field is an optical module control command value, 2 bytes; The optical module status command is 1 byte, by defining in the embodiment of the invention, be defined as 0x1 and represent to enter the normality instruction, 0x2 represents to close the optical module instruction, 0x3 represents to enter the test mode instruction, three states of these three the corresponding optical modules of instruction, Normal (routine) state, Off (closing) state and Test (test) state.The test of Test pattern is encoded to 1 byte, and the content of filling in can be any, and ONU is filled in the load that sends data in Test state this byte content when OLT sends data.
See also Fig. 3, this figure is the state exchange schematic diagram of ONU optical module among the present invention, and as seen from the figure, the optical module state is made up of three states among the ONU, is respectively Normal state, Off state and Test state.Wherein the Normal state is exactly normal ONU optical module state, Gate (gating) message that ONU meeting normal response OLT sends under this state, can send register requirement to OLT, can normal registration, can be not luminous if ONU is in unregistered state, if be in the registration and registered state can be luminous in distributing to the timeslice of log-in window or this ONU.Close optical module instruction if under the Normal state, receive, then move to the Off state, enter the test mode instruction then move to the Test state if receive.The Off state is exactly to close the optical module state by force, forbid that ONU is luminous, closing optical module by force can be that the sending function of closing optical module by force makes ONU not luminous, can be not luminous with the control optical module by the MAC Address of control ONU yet, this moment, the reception of optical module still was normal, can normally receive the instruction that OLT sends over.ONU initiatively nullifies from OLT under this state, and no longer responds the Gate message that OLT sends.Enter normality instruction if under the Off state, receive, then move to the Normal state, enter the test mode instruction then move to the Test state if receive.The Test state is exactly a test mode, and ONU initiatively nullifies from OLT under this state, and no longer responds the Gate message that OLT sends, and this ONU continues to send the fc-specific test FC coded data.Close the optical module instruction if under the Test state, receive, then move to the Off state, enter the normality instruction, then move to the Normal state if receive.
See also Fig. 4, this figure is the flow chart of the method for optical module state among the Long-distance Control ONU of the present invention, and it mainly comprises step:
What step 10, OLT reception webmaster, order line or other modules were sent carries out the instruction that long-range optical module is diagnosed to certain ONU of far-end.
Step 11, OLT are according to MAC (Medium Access Control, the Media Access Controlled) address that obtains this ONU ONU ID number in the described long-range optical module diagnostic instruction.
Step 12, OLT judge the content of described long-range optical module diagnostic instruction, if the content of described long-range optical module diagnostic instruction is for closing optical module, then execution in step 13, if the content of described long-range optical module diagnostic instruction is for entering the normality instruction, then execution in step 14, if the content of described optical module diagnostic instruction is for entering the test mode instruction, then execution in step 15.
Step 13, encapsulation make optical module enter the MPCP message of closed condition, source MAC is the MAC Address of the OLT of this message of transmission in the content of this MPCP message, target MAC (Media Access Control) address is the MAC Address of the ONU of this message of reception, Opcode is the optical module control command, the optical module status command changes step 16 for closing the optical module instruction.
Step 14, encapsulation make optical module enter the MPCP message of normal condition, source MAC is the MAC Address of the OLT of this message of transmission in the content of this MPCP message, target MAC (Media Access Control) address is the MAC Address of the ONU of this message of reception, Opcode is the optical module control command, the optical module status command changes step 16 for entering the normality instruction.
Step 15, encapsulation make optical module enter the MPCP message of test mode, source MAC is the MAC Address of the OLT of this message of transmission in the content of this MPCP message, target MAC (Media Access Control) address is the MAC Address of the ONU of this message of reception, Opcode is the optical module control command, the optical module status command is for entering the test mode instruction, and fill in the test encoded byte, change step 16.
Step 16, the MPCP message after will encapsulating are from the PON mouth output of OLT.
Step 17, ONU receive the MPCP message that is used for Long-distance Control ONU optical module that OLT sends;
The content of the MPCP message that step 18, judgement receive, if optical module is closed in this message indication, then execution in step 19, if this message pilot light module enters normal condition, then execution in step 20, if this message pilot light module enters test mode, then execution in step 21.
Step 19, ONU arrive the Off state with the state transition of optical module, initiatively self are nullified from OLT, no longer respond the Gate message of OLT, then optical module are closed.
Step 20, ONU arrive the Normal state with the state transition of optical module, and the Gate message that beginning normal response OLT sends is opened optical module then and allowed it freely to send data.
Step 21, ONU arrive the Test state with the state transition of optical module, initiatively self are nullified from OLT, no longer respond the Gate message of OLT, open optical module then, continue to send the test coding of appointment in the MPCP message frame.
Corresponding to said method of the present invention, the present invention and then the system of optical module state in a kind of Long-distance Control optical network unit is provided, see also Fig. 5, this figure is the structured flowchart of the system of optical module state in the Long-distance Control optical network unit of the present invention, it mainly comprises OLT and ONU, and described OLT comprises command reception module and remote control module, and described ONU comprises message sink module and status control module, wherein
The command reception module, the optical module that is used for receiving specifying optical network unit carries out the instruction of remote diagnosis.
Remote control module, the content that the remote diagnosis that is used for receiving according to the command reception module instructs sends Multi-point Control Protocol message to corresponding optical network unit, the MAC Address that comprises the ONU that receives this message in the content of described Multi-point Control Protocol message, and control far-end optical module enters the normality instruction or closes the optical module instruction or enter the test mode instruction.
The message sink module is used to receive the Multi-point Control Protocol message that optical line terminal sends.
Status control module when optical module is closed in described Multi-point Control Protocol message indication, is used for optical module is closed, and makes optical network unit stop to send data; When described Multi-point Control Protocol message pilot light module enters normal condition, be used for optical module is opened, make optical network unit can freely send data; When described Multi-point Control Protocol message pilot light module enters test mode, be used for optical module is opened, control the test coding that optical network unit sends appointment in the message simultaneously.
As fully visible, the present invention can be effectively applied among the EPON remote diagnosis ONU, cause luminous always all ONU that make of PON interface all can't normal registration for some reason such as being in certain long-range ONU, and certain ONU causes having seized the timeslice of other ONU for some reason, it is undesired to make that self and the ONU that is occupied work, can use Long-distance Control of the present invention and close the optical module of this ONU, and when the luminous power that carries out ONU is measured, can use this method and carry out non-burst measurement etc.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.