Embodiments of the present invention are hereinafter described in detail with reference to the drawings.
According to the embodiments of the present invention, an OLT detects whether a timeslot conflict occurs in an upstream timeslot.
Block 501: the OLT samples instantaneous optical power of an upstream timeslot.
Block 502: the OLT determines whether the instantaneous optical power exceeds normal upstream optical power of the upstream timeslot; if yes, Block 503 is performed; otherwise, Block 504 is performed.
Block 503: the OLT determines that a timeslot conflict occurs in the upstream timeslot and the process is terminated.
Block 504: the OLT determines that no timeslot conflict occurs during the upstream timeslot.
The sampling in Block 501 may be periodical sampling and the sampling period may be set according to practical conditions. For example, the sampling period is set as several bits. With respect to an upstream timeslot, the OLT may determine that a timeslot conflict occurs in the upstream timeslot when the OLT determines that the instantaneous optical power exceeds the normal upstream optical power of the upstream timeslot one time. However, to guarantee the accuracy of determining whether a timeslot conflict occurs in the upstream timeslot, the OLT may set a threshold in advance, e.g. set the threshold as three times. With respect to an upstream timeslot, the OLT determines whether the number of times the instantaneous optical power exceeds the normal upstream optical power of the upstream timeslot reaches the threshold. If it dose, the OLT determines that a timeslot conflict occurs in the upstream timeslot; otherwise, determines that no timeslot conflict occurs during the upstream timeslot
There are two cases in the determination in Block 502.
In a case that the upstream timeslot of which the instantaneous optical power is sampled is an upstream timeslot allocated to an ONT, the OLT determines whether the instantaneous optical power exceeds the normal upstream optical power of the ONT; if yes, the OLT determines that a timeslot conflict occurs in the upstream timeslot of the ONT, otherwise, determines that no timeslot conflict occurs in the upstream timeslot of the ONT.
In the meantime, the OLT stores normal upstream optical power of each ONT in advance, and the normal upstream optical power of each ONT can be measured by the OLT. Upon obtaining instantaneous optical power through sampling in an upstream timeslot allocated to an ONT, the OLT searches for the normal upstream optical power of the ONT and compares the instantaneous optical power with the normal upstream optical power of the ONT.
In another case that the upstream timeslot is an upstream timeslot that is not allocated to any ONT, the OLT determines whether the instantaneous optical power exceeds the optical power when no optical signal is transmitted. In other words, for an upstream timeslot that is not allocated to any ONT, the OLT detects whether there is instantaneous optical power in the upstream timeslot. If there is instantaneous optical power in the upstream timeslot, the OLT determines that a timeslot conflict occurs in the upstream timeslot, otherwise, determines that no timeslot conflict occurs in the upstream timeslot.
The OLT may update the normal upstream optical power of an upstream timeslot in real time during ranging procedure or when an ONT functions normally.
Moreover, upon detecting a timeslot conflict, the OLT may further determine which ONT is in failure. In other words, the OLT may determine which ONT turns on the optical transmitter in the timeslot that is not allocated to the ONT and causes a timeslot conflict. There are many methods for the OLT to determine which ONT is in failure. For example, the ONT corresponding to the upstream timeslot in which a timeslot conflict occurs and the ONTs corresponding to upstream timeslots adjacent to the upstream timeslot are included into one group, the upstream data transmission of the ONTs in the group is stopped one by one. If there is no timeslot conflict occurs any more when a certain ONT stops transmitting upstream data, the ONT stopping transmitting upstream data is determined as the ONT in failure. For another example, the OLT exchanges the relative position of the upstream timeslot of the ONT in which the conflict timeslot occurs with the relative position of an upstream timeslot of an ONT adjacent to the upstream timeslot in which the conflict timeslot occurs, and determines that the ONT corresponding to an upstream timeslot in which a timeslot conflict still occurs after the exchanging is the ONT in failure.
Upon determining the ONT in failure, the OLT takes measures to prevent the timeslot conflict from occurring again, for example, turning off the optical transmitter of the ONT in failure or recovering the ONT in failure to a normal state so as to prevent the ONT in failure from affecting the upstream data transmission of the other ONTs functioning normally in the PON.
In the case that the instantaneous optical power exceeds the normal upstream optical power, the detection unit sends a timeslot conflict indication to the control unit.
The control unit generates an enabling signal for managing the detection unit to sample instantaneous optical power, and the enabling signal may be a periodic pulse signal with the period of several bits and is valid in an upstream timeslot.
The optical-electrical converter receives an optical signal from the optical receiver, converts the optical signal into a current signal, and sends the current signal to the condition circuit. The optical-electrical converter may be an optoelectronic diode.
The condition circuit receives the current signal from the optical-electrical converter, converts the current signal into a voltage signal, and sends the voltage signal to the peak detector. The condition circuit may be a transimpedance amplifier.
The peak detector receives the voltage signal from the condition circuit, extracts the peak voltage of the voltage signal, and sends the peak voltage to the sample gate. The peak detector may be a half-wave rectifier.
The sample gate receives the peak voltage from the peak detector, samples and locks the peak voltage to obtain a sample signal, for example, samples the peak voltage under the control of an enabling signal generated by the control unit, and sends the sample signal obtained to the integrator, thus realizing instantaneous sampling of the upstream optical signal. The sample gate may include a field effect transistor
The integrator receives the sample signal from the sample gate, charges a Resistor-Capacitor (RC) time constant integrator with the sample signal, the output of the integrator is the optical power when the enabling signal is valid. In other words, the integrator integrates the sample signal to obtain the instantaneous optical power of an allocated upstream timeslot, and sends the instantaneous optical power to the comparison unit.
The comparison unit receives the instantaneous optical power from the integrator and compares the instantaneous optical power with the normal upstream optical power of the ONT corresponding to the allocated upstream timeslot in which the sampling is performed.
In the case that the instantaneous optical power exceeds the normal upstream optical power, the comparison unit sends a timeslot conflict indication to the control unit.
The storage unit stores the normal upstream optical power of an ONT, and the storage unit may be a Read Only Memory (ROM) or an Electrically Erasable Programmable Read-Only Memory (EEPROM).
Since normal upstream optical power stored in the storage unit is in the digital form, the normal upstream optical power should be converted into the one in the analog form by the digital to analog converter before the comparison unit performs a comparison, and the digital to analog converter sends to the comparison unit the converted normal upstream optical power.
The control unit may take measures to prevent a timeslot conflict from occurring again upon detecting the timeslot conflict.
As can be seen from above that it may be implemented with a low cost of the detection unit to detect an upstream timeslot conflict according to the embodiments of the present invention.
To sum up, the forgoing are only embodiments of the present invention but not for use in limiting the present invention. Any modification, equivalent substitution, improvement within the spirit and principle of the present invention should be covered in the protection scope of the present invention.
Number | Date | Country | Kind |
---|---|---|---|
200610111403.9 | Aug 2006 | CN | national |