Summary of the invention
The present invention provides the method and system of optical module state among a kind of Long-distance Control OTU; Realize through 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 according to the invention comprises:
The method of optical module state in a kind of Long-distance Control optical network unit comprises step:
A, optical line terminal are 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, send Multi-point Control Protocol message according to the content of this instruction to said optical network unit then;
B, said optical network unit receive said 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 gets into normal condition, then optical module is opened, optical network unit can freely send data simultaneously; If this message pilot light module gets into test mode, then optical module is opened, optical network unit sends the test coding of appointment in the message simultaneously.
Further; After said 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 said optical module, initiatively self is nullified from said optical line terminal, no longer respond the gating message that said optical line terminal sends.
Further, after said optical network unit receives that the pilot light module gets into the Multi-point Control Protocol message of normal condition, normal condition is arrived in the state transition of said optical module, the gating message that the said optical line terminal of beginning normal response sends.
Further; After said optical network unit receives that the pilot light module gets into the Multi-point Control Protocol message of test mode; Test mode is arrived in the state transition of said optical module, initiatively self is nullified from said optical line terminal simultaneously, no longer respond the gating message that said optical line terminal sends.
Further, comprise the Media Access Controlled address of the optical network unit that receives this message in the said Multi-point Control Protocol message, the status command of optical module and the coding of the test under the test pattern.
The system of optical module state in a kind of Long-distance Control optical network unit; Comprise optical line terminal and optical network unit, said optical line terminal comprises command reception module and remote control module, and said 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 remote diagnosis that is used for receiving according to the command reception module instructs the optical network unit marks of appointment to obtain the Media Access Controlled address of this optical network unit, sends Multi-point Control Protocol message according to the content of this instruction to corresponding optical network unit then;
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 said Multi-point Control Protocol message indication, is used for optical module is closed, and makes optical network unit stop to send data; When said Multi-point Control Protocol message pilot light module gets into normal condition, be used for optical module is opened, make optical network unit can freely send data; When said Multi-point Control Protocol message pilot light module gets into 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 following:
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 through 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 gets into 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 gets into 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 gets into test mode, makes 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 gets into the normality instruction or closes the optical module instruction or get into 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 sketch map 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, fill in the MAC Address of 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 get into the normality instruction, 0x2 representes to close the optical module instruction, and 0x3 representes to get into 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 of sending data in Test state this byte content when OLT sends data.
See also Fig. 3, this figure is the state exchange sketch map of ONU optical module among the present invention, and by visible among 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 the timeslice of distributing to log-in window or this ONU.Close optical module instruction if under the Normal state, receive, then move to the Off state, get into 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 through 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.Get into the normality instruction if under the Off state, receive, then move to the Normal state, get into 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, get into 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 according to the 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 said long-range optical module diagnostic instruction.
Step 12, OLT judge the content of said long-range optical module diagnostic instruction; If the content of said long-range optical module diagnostic instruction is for closing optical module; Then execution in step 13, if the content of said long-range optical module diagnostic instruction is for getting into the normality instruction, then execution in step 14; If the content of said optical module diagnostic instruction is for getting into the test mode instruction, then execution in step 15.
Step 13, encapsulation make optical module get into 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, and the optical module status command changes step 16 for closing the optical module instruction.
Step 14, encapsulation make optical module get into 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, and the optical module status command changes step 16 for getting into the normality instruction.
Step 15, encapsulation make optical module get into 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, and Opcode is the optical module control command, and the optical module status command is for getting into 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 gets into normal condition; Then execution in step 20, if this message pilot light module gets into 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 sees also Fig. 5; This figure is the structured flowchart of the system of optical module state in the Long-distance Control optical network unit according to the invention; It mainly comprises OLT and ONU, and said OLT comprises command reception module and remote control module, and said 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 is sent 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 said Multi-point Control Protocol message, and control far-end optical module gets into the normality instruction or closes the optical module instruction or get into 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 said Multi-point Control Protocol message indication, is used for optical module is closed, and makes optical network unit stop to send data; When said Multi-point Control Protocol message pilot light module gets into normal condition, be used for optical module is opened, make optical network unit can freely send data; When said Multi-point Control Protocol message pilot light module gets into test mode, be used for optical module is opened, control the test coding that optical network unit sends appointment in the message simultaneously.
To sum up 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, and can use the optical module that Long-distance Control of the present invention is closed 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, belong within the scope of claim of the present invention and equivalent technologies thereof if of the present invention these are revised with modification, then the present invention also is intended to comprise these changes and modification interior.