Patent Description:
Erbium Doped Fiber Amplifier (EDFA), as a key component of the new generation of optical communication system, has the advantages of high gain, large output power, wide working bandwidth, no polarization dependence and low noise figure. The amplification characteristic of EDFA is independent of systematic bit rate and data format, and EDFA is an essential part of the Dense Wavelength Division Multiplexing (DWDM) system. The effective working range of EDFA is the C band that is directed to DWDM system, of which the center frequency is <NUM>. 1THz, the wavelength range is <NUM>-<NUM>, and the channel spacing is an integral multiple of <NUM> (about <NUM>). The C band contains <NUM> waves totally.

Because the DWDM system is a multi-wavelength working system, and also due to the saturated characteristics of the erbium doped fiber amplifier EDFA, the wavelength power in the saturation region remains stable. When some of the wavelength signals are lost, their energy will be transferred to those signals which are not lost due to gain competition, resulting in higher signal powers at other wavelengths. At the receiving end, a sudden increase in level may cause bit error, and in extreme cases, if there are <NUM> out of <NUM> wavelengths lost, all the power will be concentrated on the remaining wavelength, and the power may reach about <NUM> dBm. This will result in a strong non-linearity or over-loading of the receiver's received power, causing a large number of bit errors.

Therefore, the optical amplifier is required to have an automatic gain control function so that the EDFA has a wide dynamic range of input optical power in actual system cascading, so that the optical power of the remaining channels is unaffected regardless of the change of the input optical power in the DWDM system.

In the related art, <FIG> is a schematic diagram of a gain control device for an erbium doped fiber amplifier according to the related art. As shown in <FIG>, the device includes a Pin photoelectric conversion module, a PIN program control gain amplification or DAC module, a Pout photoelectric conversion module, a Pout amplification module, a proportional integral control module, a proportional differential control module, a superposition circuit and a driving circuit. Among them, the Pin photoelectric conversion module is set to convert the input optical power into electrical signals, which is amplified by the PIN program control gain amplification or DAC module so as to adjust the gain lock value and gain compensation control when a small signal is input; the Pout photoelectric conversion module converts the output optical power to electrical signals, and the Pout amplification module is set to amplify the signal amplitude detected by Pout; Pin detection signal and Pout detection signal as a differential input signal are connected simultaneously to the input ends of the proportional integral control module and the proportional differential control module, and the superposition circuit takes the sum of the voltage outputs of the two control modules of the proportional integral and the proportional differential, Vc, as the voltage control signal, which is converted into a driving current signal meeting the driving requirement of the pump laser by the driving circuit.

The above solution has the following disadvantages.

<FIG> is a schematic diagram of implementing a gain and power locking device in EDFA by using DSP according to the related art. In the related art, as shown in <FIG>, the original closed-loop analog control unit are replaced by DSP, A/D, D/A, and software is used in the DSP to achieve efficient and flexible control algorithms. The entire control process includes: four <NUM>-bit TI A/D sampling chips, divided into two levels and used to respectively sample input and output optical powers. The DSP of TI reads out the input and output optical power, and calculates the final output optical power according to the current control mode, and based on the gain or output optical power setting value, in combination with ASE compensation power. By a digital proportional integral derivative (PID) control algorithm of feedforward compensation type, the control voltage for driving the pump laser is calculated, and two pump lasers are controlled with a single <NUM>-bit TI dual-channel D/A chip. The whole closed-loop control system completes a control in a cycle of about <NUM>, which, coordinated with the tuned control parameters, can effectively achieve gain and power lock to meet the user's transient and steady-state requirements.

In view of the above problems in the related art, such as, the ASE compensation accuracy of the optical fiber amplifier is not high and the speed of the differential control is slow, no effective solution has been proposed so far.

In "<NPL>, a simplified algorithm to manifest the contribution of amplified spontaneous emission in variable gain-flattened Erbium-doped fiber amplifier (EDFA) is proposed. The detected signal power at the input and output ports of EDFA comprises of both signal and noise. The generated amplified spontaneous emission form EDFA cannot be differentiated by photodetector which leads to underestimation of the targeted gain value. This gain penalty must be taken into consideration in order to obtain the accurate gain level. By taking the average gain penalty within the dynamic gain range, the targeted output power is set higher than the desired level.

Patent document <CIT> relates to an optical amplifier employing a rare earth-doped fiber as an amplification medium and including an input monitoring unit that monitors full input light and outputs an input monitor signal and an output monitoring unit that monitors full output light and outputs an output monitor signal includes an ASE compensating circuit that compensates for a spontaneous emission (ASE) component contained in the full output light monitor signal; a gain-variation-level compensating circuit that calculates a target average setup gain that is determined based on a signal intensity of the input monitor signal; and a constant gain control circuit that performs a gain control based on an output signal from the ASE compensating circuit and the target average setup gain from the gain-variation-level compensating circuit.

<CIT> discloses a method for gain control of an optical fiber amplifier, comprising the steps of: acquiring an input optical power and an output optical power of an optical fiber amplifier; measuring the output optical power and generating an amplified spontaneous emission ASE noise power of the optical fiber amplifier based on the output optical power; determining a corresponding ASE compensation power value according to a target gain and a correspondence between the ASE noise power and a preset gain; calculating and outputting a standard output optical power based on the input optical power, the ASE compensation power value, and the target gain, wherein measuring the output optical power and generating an amplified spontaneous emission ASE noise power of the optical fiber amplifier is based on the output optical power comprises: measuring a power spectral density at a preset range of the peak value of the output optical power, acquiring the output optical powers of multiple points in the range, and estimating the output optical power of the multiple points to generate the ASE noise power.

However, the above-mentioned issues remain unsolved.

The present invention provides a method and an apparatus for gain control of an optical fiber amplifier as defined in the appended claims, so as to at least solve the problems of the low ASE compensation accuracy of an optical fiber amplifier and the low speed of the differential control in the related art.

According to the present disclosure, a method for gain control of an optical fiber amplifier disclosed in claim <NUM> is provided.

In an embodiment of the present invention, after the input optical power and the output optical power of the optical fiber amplifier are acquired, the method may comprise steps as follows.

Finite Impulse Response FIR filtering is performed on the input optical power acquired by sampling.

In an embodiment of the present invention, when the optical fiber amplifier is in an off state, the output optical power is not output.

In an embodiment of the present invention, the method further comprises: setting a state of slowly turning-on when the optical fiber amplifier is turned on, wherein when in the state of slowly turning-on, an advancement is set according to the input optical power and the target gain, and the turning-on of the optical fiber amplifier is completed according to the advancement.

In an embodiment of the present invention, the calculating and outputting a standard output optical power based on the input optical power, the ASE compensation power value, and the target gain may comprise the following step.

The standard output optical power is calculated and output based on the input optical power delayed by a predetermined time in combination with the target gain and the ASE compensation power value.

In an embodiment of the present invention, after calculating and outputting a standard output optical power based on the input optical power, the ASE compensation power value, and the target gain, the method may comprise the step as follows.

The target gain, the ASE compensation power value and the input optical power are subtracted from the output standard output optical power to obtain an optical power error, an integral control is performed on the standard output optical power according to the optical power error and a preset steady state integral rate control parameter, and a final output optical power is output.

In an embodiment of the present invention, the method may comprise the step as follows.

A minimum clamp power is output in the absence of the input optical power, wherein the minimum clamp power is the minimum power value at which the optical fiber amplifier works normally.

In an embodiment of the present invention, the method may comprise the step as follows. No-input-optical-power alarm or hardware interrupt indication is generated in case that the input optical power is lower than a preset minimum input optical power.

In an embodiment of the present invention, the method may comprise the step as follows. Outputting of the standard output optical power is disabled, and only a maximum clamp output optical power is output, in case that the standard output optical power is higher than a preset maximum clamp output optical power.

According to the present invention, a device for gain control of an optical fiber amplifier according to claim <NUM> is provided.

In an embodiment of the present invention, the device further comprises at least one of: a filtering module, a pump-off module and a slowly turning-on module.

The filtering module is configured to perform Finite Impulse Response FIR filtering on the input optical power acquired by sampling.

The pump-off module is configured to not output the output optical power when the optical fiber amplifier is in an off state.

The slowly turning-on module is configured to set a state of slowly turning-on when the optical fiber amplifier is turned on, wherein when in the state of slowly turning-on, an advancement is set according to the input optical power and the target gain, and the turning-on of the optical fiber amplifier is completed according to the advancement.

In an embodiment of the present invention, the output module is further configured to calculate and output the standard output optical power based on the changed input optical power delayed by a predetermined time in combination with the target gain and the ASE compensation power value.

In an embodiment of the present invention, the device further comprises at least one of: a first integral control module, a not-turning-off module, an alarming module and an output-disable module.

The first integral control module is configured to subtract the target gain, the ASE compensation power value and the input optical power from the output standard output optical power to obtain an optical power error, and to perform integral control on the standard output optical power according to the optical power error and a preset steady state integral rate control parameter, and to output a final output optical power.

The not-turning-off module, configured to output a minimum clamp power in the absence of the input optical power, wherein the minimum clamp power is the minimum power value at which the optical fiber amplifier works normally.

The alarming module, configured to generate no-input-optical-power alarm or hardware interrupt indication in case that the input optical power is lower than a preset minimum input optical power.

The output-disable module is configured to disable outputting the standard output optical power and output only a maximum clamp output optical power in case that the standard output optical power is higher than a preset maximum clamp output optical power.

By means of the technical solution provided by the present invention, by acquiring input optical power and output optical power of an optical fiber amplifier; generating an amplified spontaneous emission ASE noise power based on the output optical power; searching an ASE compensation power value table for the corresponding ASE compensation power value according to the target gain, wherein the ASE compensation power value table is generated according to a correspondence between the ASE noise power and a preset gain; calculating and outputting a standard output optical power based on the input optical power, the ASE compensation power value, and the target gain, thereby the problems of low ASE compensation accuracy and slow speed of the differential control of the optical fiber amplifier are solved, and the ASE compensation accuracy and the speed of the differential control of the optical fiber amplifier are improved.

The drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present application. The schematic embodiments and the descriptions of the present invention are used to explain the present invention, and do not constitute improper limitations to the present invention. In the drawings:.

Hereinafter, the present invention will be described in detail with reference to the accompanying drawings and embodiments. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other as long as they are not conflicted with each other.

It should be noted that the terms "first", "second" and the like in the description and claims of the present invention as well as the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or a precedence order.

In this embodiment, a method for gain control of an optical fiber amplifier is provided, and <FIG> is a flow chart of a method for gain control of an optical fiber amplifier according to an embodiment of the present invention. As shown in <FIG>, the flow comprises the following steps.

In step S302, input optical power and output optical power of an optical fiber amplifier are acquired.

In step S304, the output optical power and generating an amplified spontaneous emission ASE noise power of the optical fiber amplifier are measured based on the output optical power.

In step S306, a corresponding ASE compensation power value is determined according to a target gain and a correspondence between the ASE noise power and a preset gain.

In step S308, a standard output optical power based on the input optical power, the ASE compensation power value, and the target gain are calculated and output.

By performing the above steps, the output optical power is directly measured, and the amplified spontaneous emission ASE noise power of the optical fiber amplifier is generated, then based on the corresponding ASE compensation power value determined according to the target gain and according to a correspondence between the ASE noise power and a preset gain, thereby the standard output optical power is calculated and output based on the input optical power, the ASE compensation power value, and the target gain. Therefore, the problems of low ASE compensation accuracy and slow speed of the differential control of the optical fiber amplifier are solved, and the ASE compensation accuracy and the speed of the differential control of the optical fiber amplifier are improved.

Determining a corresponding ASE compensation power value according to the target gain and a correspondence between the ASE noise power and a preset gain comprises:
Searching an ASE compensation power value table for the ASE compensation power value corresponding to the target gain, wherein the ASE compensation power value table is generated according to a correspondence between the ASE noise power and a preset gain.

In this embodiment, Finite Impulse Response FIR filtering may be performed on the input optical power obtained from sampling, so as to smooth the input optical power and to eliminate discrete input power noises.

In this embodiment, the working state of the pump of the optical fiber amplifier may be set to an off state, the output optical power is not output when the optical fiber amplifier is in the off state.

In this embodiment, the working state of the pump of the optical fiber amplifier may be set to a state of slowly turning-on. When the optical fiber amplifier is turned on, the state of slowly turning-on is set. In the state of slowly turning-on, an advancement is set according to the input optical power and the target gain, and the turning-on of the optical fiber amplifier is completed according to the advancement, thereby avoiding or reducing the occurrence of overshoot.

Measuring output optical power and generating an amplified spontaneous emission ASE noise power of the optical fiber amplifier based on the output optical power comprises:
Measuring a power spectral density at a preset range of the peak value of the output optical power, acquiring the output optical powers of multiple points in the range, and averaging the output optical power of the multiple points to generate the ASE noise power.

In this embodiment, the ASE compensation power value table can be generated in a variety of methods, which are all based on the pre-set gain to fit the corresponding ASE noise power, for example, a multi-stage compensation method is used to fit a curve of the ASE noise power to the preset gain, and then the ASE compensation power value table is generated. In the multi-stage compensation method, the proportion coefficients in each polyline are consistent, so as to minimize the inaccurate problem caused by ASE compensation.

In this embodiment, the standard output optical power is calculated and output based on the input optical power that is delayed by a predetermined time in combination with the target gain and the ASE compensation power value. By adding that ASE, the standard output optical power is calculated and output, which increases the response speed to instantaneous change of input optical power and reduces the output jitter.

In this embodiment, the target gain, the ASE compensation power value and the input optical power may be subtracted from the output standard output optical power to obtain an optical power error. An integral control is performed on the standard output optical power according to the optical power error and a preset steady state integral rate control parameter, and a final output optical power is output. With the integral control, the steady performance of the optical fiber amplifier is improved.

In the above embodiment, a minimum clamp power is output in the absence of the input optical power, wherein the minimum clamp power is the minimum power value at which the optical fiber amplifier works normally.

No-input-optical-power alarm or hardware interrupt indication is generated in case that the input optical power is lower than a preset minimum input optical power.

Outputting the standard output optical power is disabled and only a maximum clamp output optical power is output in case where the standard output optical power is higher than a preset maximum clamp output optical power.

In this embodiment, an apparatus for gain control of an optical fiber amplifier is provided for implementing the foregoing embodiments and exemplary embodiments, which have been described in the above and will not be repeated here. As used herein below, the term "module" may be a combination of software and/or hardware that achieves a predetermined function. Although the devices described in the following embodiments are implemented in software, the implementation of hardware or a combination of software and hardware is also possible and contemplated.

<FIG> is a structural block diagram of a device for gain control of an optical fiber amplifier according to the present invention, as shown in <FIG>, the device comprises an acquisition module <NUM>, a measurement module <NUM>, a search module <NUM> and an output module <NUM>.

The acquisition module <NUM> is configured to acquire input optical power and output optical power of an optical fiber amplifier.

The measurement module <NUM> is configured to measure the output optical power and generate an amplified spontaneous emission ASE noise power of the optical fiber amplifier based on the output optical power.

The search module <NUM> is configured to determine a corresponding ASE compensation power value according to a target gain and a correspondence between the ASE noise power and a preset gain.

The output module <NUM> is configured to calculate and output a standard output optical power based on the input optical power, the ASE compensation power value, and the target gain.

The search module <NUM> further a table searching unit and a generating unit.

The table searching unit is configured to search, according to the target gain, an ASE compensation power value table for the ASE compensation power value corresponding to the target gain, wherein the ASE compensation power value table is generated according to a correspondence between the ASE noise power and a preset gain.

The generating unit is configured to generate the ASE compensation power value table by fitting a curve of the ASE noise power to the preset gain with a multi-stage compensation method.

In an embodiment of the present invention, the device further comprises: a filtering module, a pump-off module, and a slowly turning-on module.

The filtering module may be configured to perform Finite Impulse Response FIR filtering on the input optical power acquired by sampling.

The pump-off module may be configured to not output the output optical power when the optical fiber amplifier is in an off state.

The slowly turning-on module may be configured to set a state of slowly turning-on when the optical fiber amplifier is turned on, wherein when in the state of slowly turning-on, an advancement is set according to the input optical power and the target gain, and the turning-on of the optical fiber amplifier is completed according to the advancement.

The measuring unit is configured to measure a power spectral density at a preset range of the peak value of the output optical power, to acquire the output optical powers of multiple points in the range, and to average the output optical power of the multiple points to generate the ASE noise power.

In an embodiment of the present invention, the output module <NUM> is further configured to calculate and output the standard output optical power based on the changed input optical power delayed by a predetermined time in combination with the target gain and the ASE compensation power value.

In an embodiment of the present invention, the device may further comprise: a first integral control module, a not-turning-off module, an alarming module, and an output-disable module.

The first integral control module may be configured to subtract the target gain, the ASE compensation power value and the input optical power from the output standard output optical power to obtain an optical power error, and to perform integral control on the standard output optical power according to the optical power error and a preset steady state integral rate control parameter, and to output a final output optical power.

The not-turning-off module may be configured to output a minimum clamp power in the absence of the input optical power, wherein the minimum clamp power is the minimum power value at which the optical fiber amplifier works normally.

The alarming module may be configured to generate no-input-optical-power alarm or hardware interrupt indication in case that the input optical power is lower than a preset minimum input optical power.

The output-disable module may be configured to disable outputting the standard output optical power and output only a maximum clamp output optical power in case that the standard output optical power is higher than a preset maximum clamp output optical power.

The present invention is described in details below with reference to the examples and embodiments.

The present embodiment provides a method and a device for stable fast gain control of an erbium doped fiber amplifier EDFA. <FIG> is a schematic diagram of a device for stable fast gain control of an erbium doped fiber amplifier EDFA according to the present embodiment.

As shown in <FIG>, the device comprises: a parameter configuration module, a gain control algorithm and communication interface module, an analog-digital acquisition module, a digital-analog conversion module, a temperature acquisition module, and a storage module.

The parameter configuration module can configure different control modes and control parameters for the gain control algorithm and communication interface module. The control modes may include: lower clamp mode, nominal output optical mode, normal output optical mode. And the control parameters may include: nominal output power, no-optical-input threshold, steady-state integral rate control parameter, nominal gain, lower clamp safety power, maximum clamp output power, and new set target gain.

The gain control algorithm and communication interface module is not only responsible for the dynamic control and steady state control, but also divides the working states of the EDFA pump into three types, including the pump-off state, the state of slowly turning-on, and the transient state, and the control method and control parameters in each state are different. At the same time, the present module is also responsible for communication with various means, including the analog-digital acquisition module, the digital-analog conversion module, temperature acquisition module, and storage module.

The analog-digital acquisition module acquires the input optical power and the output optical power of the EDFA, respectively, and sends the acquired digital data to the gain control algorithm and the communication interface module.

The digital-analog conversion module receives the gain control data obtained by the calculation of the gain control algorithm and communication interface module, transforms discrete data into analog data, and then sends the analog data to the EDFA.

The temperature acquisition module is responsible for measuring the temperature of the device, and sending the temperature values to the gain control algorithm and communication interface module in real time.

The storage module is responsible for storing the AES noise power compensation value, and passing the compensation value to the gain control algorithm and communication interface module.

The flow of the gain control method is as follows.

The analog-digital acquisition module acquires input and output optical powers of the EDFA, and firstly smooth the input optical power, to eliminate discrete noises; meanwhile compensates a small input signal with ASE power compensation, and the ASE power compensation value is determined by measuring the power spectral density at the output optical power peak at <NUM> or <NUM> using an optical power meter, and then by fthe polyline factor of the linear fit. The ASE compensation value is stored in the storage device in accordance with the corresponding value of the gain, and the ASE compensation value is read out from the storage module to be stored in the cache when the system is powered-on, and then is read out from the cache by looking up the table using the corresponding relationship with the gain. This value is added with the input optical power, and then added with the target gain, to calculate the compensated output current value. In this process, it should be noted that the calculation process is delayed, and therefore we need to delay the variation of the gain and the variation of the input power by <NUM>, and thereby overshoot can be reduced. The above process is the differential control method. Then, the standard optical output (standard output optical power) and the output optical power error are calculated according to the output optical power and the current control mode, wherein the standard optical output is used to decide whether to generate the steady-state integral rate control parameter according to whether it is less than the lower clamp optical power, and the output optical power error is used to control that the integral parameter must be compensated to prevent the optical input (input optical power) threshold is too low. And then addition and subtraction are executed step by step to achieve the required optical power output, which is the integral control method. The algorithm not only improves the dynamic performance of the system, shortens the adjustment time, reduces the overshoot, and thus is suitable for solving the situation that instant changes of the optical power are too high; the algorithm but also improves the steady state performance of the system, reduces the steady state error, reduces the error generated by ASE, and improves the gain lock performance. A cycle in which the whole closed-loop control system completes a control is about <NUM>, which can effectively achieve the gain control and power lock to meet the user's dynamic and steady-state requirements.

As shown in <FIG>, the whole device comprises: a parameter configuration module, a gain control algorithm and communication interface module, an analog-digital acquisition module, a digital-analog conversion module, a temperature acquisition module and a storage module. With such a design, it is unnecessary to provide the differential control and integral control composed of analog circuits, and is advantageous in that the problem that the gain cannot be changed and that the control mode is only one mode, is solved.

The working states of the EDFA pump are divided into three types: the pump-off state, the state of slowly turning-on, and the transient state.

In the pump-off state, there is no output power.

The state of slowly turning-on is provided because a certain range of overshoot will be generated when the EDFA pump is turned on, which will cause the output optical power jitters. The principle is as follows: according to the system configuration requirements, an advancement corresponding to <NUM> steps is set up between the initial power and the target gain, and thus (target gain - initial power) ÷ <NUM> * steps equal to the amplitude of each step. Then, when the pump is turned on, from the first step to the <NUM>th step, the action of turning on the pump is completed. The benefit of this method is to reduce the amplitude of overshoot generated in this part of turning on a pump.

After the completion of turning on the pump, it enters the transient state. In this state, the final output optical power is calculated from the acquired EDFA input and output optical power according to the current control mode, and based on the gain or output optical power setting value, in combination with ASE compensation power. The differential control algorithm here can be used to improve the dynamic performance of the system, shorten the adjustment time and reduce the overshoot, which is suitable for solving the situation that the optical power instant changes are too high; while the integral control algorithm can be used to improve the steady state performance of the system and reduce steady-state error.

The input optical power is smoothed, the input values which have been sampled are filtered with an FIR filter, eliminating the discrete noise, which ensures a filtering effect on the irregular burr. The reason for using an FIR filter is that the phase delay is linear within its passband. Meanwhile, the transition time of erbium ion is in the level of ms and the fluorescence time of excited erbium ion is <NUM>. Therefore, the range of optical pulse envelope output by the laser amplifier is also in the level of ms, so the cut-off frequency of the filter is set to <NUM>. In exchange for the balance between the bandwidth of the transition band and the attenuation amplitude of the maximum side lobe, the bandwidth of the transition band is selected to be <NUM>~<NUM> and the maximum side lobe assignment is -<NUM>~ -<NUM> dB. And the order of <NUM> guarantees that the delay is not too large, and does not affect the response speed of differential control.

Compensation is added to the input signal. The optical power output from the EDFA is not the pure output optical power, a part of which is ASE noise, which is equivalent to that a part of the gain has been converted into ASE noise, and thus the ASE noise need to be compensated in order to improve the accuracy of the gain lock. Meanwhile, the ASE compensation value is related to EDFA erbium fiber length, erbium-doped concentration, EDFA internal optical path loss and so on, so different compensation values will be calculated in each EDFA detection.

Calculation of the ASE compensation value is performed as follows. The ASE power is generally calculated using the noise power approximation method, and the noise coefficient NC=10log{( <NUM>/G )+Pase/(h*v*G*w)}, where h is Planck's constant, Pase is the ASE power, v is the frequency, G is the gain, and w is the frequency bandwidth. That is, ASE noise component is derived from the formula, and it can be basically confirmed to be related with the gain of the amplification part. That is, the characteristic of EDFA is that the output ASE noise changes only with the gain regardless of the input optical power.

<FIG> is a schematic diagram of the curve of ASE noise power to EDFA gain according to an embodiment of the present invention. As shown in <FIG>, the gain is on the top, and the noise power is at the bottom of the figure. However, after the accurate measurement of the spectrometer, it is found that the ASE noise component and the gain do not exhibit a fixed coefficient multiple relationship, so ASE cannot be calculated as a fixed value during the ASE compensation calculation. Because the amplified signal after EDFA cascading contains a large ASE cascade noise, and most systems now use the EDFA pump cascade in order to transmit optical signals further, the formula that exhibit a fixed coefficient multiple relationship, is no longer applicable. Direct measurement should be used.

<FIG> is a schematic diagram of measuring ASE noise power with a spectrometer using direct measurement according to an embodiment of the present invention. As shown in <FIG>, the power spectral density at a distance of about <NUM> or <NUM> from the peak of the output optical power is measured by using an optical power meter, then a number of points are selected, and the obtained values are averaged to obtain the ASE power, and the impact of the center wavelength can be avoided by choosing in this way.

<FIG> is a schematic diagram of a measured spectrogram of a laser output according to an embodiment of the present invention. As shown in <FIG>, a statistical table is made and it is found that the curve is a little curved. So in the ASE compensation, the multi-stage compensation method is used, that is, fitting the curve of ASE and gain with several polylines so that the scale factor is consistent within each polyline. This minimizes the problem of being inaccuracy caused by the ASE compensation.

In the embodiment, the differential control method, the ASE compensation value is stored in the storage device in accordance with the corresponding value of the gain, and the ASE compensation value is read out from the storage module to be stored in the cache when the system is powered-on, and then is read out from the cache in the mode of table searching using the corresponding relationship with the gain. This value is added with the input optical power, then added with the target gain, and thus the compensated output current value is calculated. In this process, it should be noted that the calculation process is delayed because of the need to delay the variation of the gain and the variation of the input power by <NUM>, with the benefit of reducing overshoot and also improving the response speed to the instantaneous change of input optical power. The above process is the differential control method. It greatly improves the dynamic performance of the system, and at the same time, will not cause output jitters.

In the integral control method, since the system is a closed-loop system, it requires that the current set gain and input optical power need to be subtracted from the actual output optical power to obtain the output optical error, which is used for integral control, wherein the calculation to reduce the error is performed in accordance with the steady-state integral rate control parameters set by the parameter configuration module, and thereby achieve the integral control. According to all the above measures, the steady-state performance is greatly improved.

A light input power threshold is set, when the input optical power is lower than this threshold, an alarm of no optical input and hardware interrupt will be generated.

As the input optical power may be unstable or sometimes too high, it is necessary to limit the maximum optical output that the whole system can withstand, that is, to add a maximum clamp output optical power.

A non-shutdown mode is set, because in actual use, incidents such as cable cut off, equipment failure and the like will lead to optical power loss or even the state of the pump being shut down, for the sake of redundancy of the entire system, in order to restore the system immediately after the link is reconnected, there need a state in which the pump is not shut down even there is no input optical power. So a non-shutdown mode is set in the system, when there is no optical input, the system can output the minimum clamppower, to ensure that the pump is not shut down.

According to the above embodiments, the working state of the EDFA pump is divided into three types, including the pump-off state, the state of slowly turning-on, and the transient state, as the control states of the laser switch, so as to reduce the occurrence of overshoot.

The input optical power is smoothed, the input values which have been sampled are treated with FIR filtering, having the effect of eliminating the discrete noise.

Direct measurement method is used, in which the power spectral density at a distance of about <NUM> or <NUM> from the peak of the output optical power is measured by using an optical power meter, then a number of points are selected within this range, and the measured power values are averaged to obtain the ASE noise power.

In the calculation of ASE compensation value, the multi-stage compensation method is used, that is, fitting the curve of ASE and gain with several polylines, so that the scale factor is consistent within each polyline. This minimizes the problem of being inaccuracy caused by the ASE compensation.

The ASE compensation value is stored in the storage device in accordance with the corresponding value of the gain, and the ASE compensation value is read out from the storage module to be stored in the cache when the system is powered-on, and then is read out from the cache by looking up a table based on the corresponding relationship with the gain.

A maximum clamp output optical power is added to prevent the optical power is too large.

The differential control algorithm delays the changed target gain and the input optical power by <NUM>, and then is added with the ASE compensation value to obtain the initial output current value.

A non-shutdown mode is set. In actual use, it ensures that the system can output the minimum clamp power in the state that the optical cable is cut off or the equipment failures. Therefore, the system can recover after the link is reconnected, and the redundancy is improved.

From the above descriptions of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments may be implemented by software in combination with a necessary universal hardware platform, and certainly, may also be implemented by hardware. However, in many cases, the former is a better implementation. Based on such an understanding, the technical solutions of the present invention essentially, or the part contributing to the prior art, may be embodied in the form of a software product. The computer software product is stored in a storage medium (such as, a ROM/RAM, a magnetic disk, an optical disk) and includes several instructions for enabling a terminal device (which may be a mobile phone, a computer, a server, or a network device) to perform the method according to each embodiment of the present invention.

An embodiment of the present invention further provides a storage medium. Optionally, in this embodiment, the storage medium may be configured to store program codes for executing the steps in the foregoing embodiments. Optionally, in this embodiment, the storage medium may include, but is not limited to media that can store program code, for example, a U disk, a read-only memory (ROM), a random access memory (RAM), a removable disk, CD-ROM and the like.

Optionally, in this embodiment, the processor may execute the method in the foregoing embodiment according to the program codes stored in the storage medium.

Obviously, those skilled in the art should understand that each module or each step of the present invention described above can be implemented by common computing devices, which can be centralized on a single computing device or distributed on a network formed by multiple computing devices; or alternatively, they may be implemented by program codes executable by a computing device, so that they may be stored in the storage device and executed by the computing device. In some cases, the steps shown or described may be performed in an order different from the order herein, or they can be made into individual integrated circuit modules respectively, or a plurality of modules or steps can be made into a single integrated circuit module. As such, the present invention is not limited to any specific combination of hardware and software.

The foregoing descriptions are exemplary embodiments of the present invention. For those skilled in the art, the present invention may have various modifications and changes, as long as these fall within the scope of the appended claims.

Claim 1:
A method for gain control of an optical fiber amplifier, comprising:
acquiring (S302) an input optical power and an output optical power of an optical fiber amplifier;
measuring (S304) a power spectral density at a preset range of a peak value of the output optical power, acquiring output optical powers of multiple points in the preset range, and averaging the first output optical powers of the multiple points to generate an amplified spontaneous emission, ASE, noise power of the optical fiber amplifier;
determining (S306) a ASE compensation power value corresponding to a target gain according to the target gain and a correspondence between the ASE noise power and a preset gain;
calculating and outputting (S308) a standard output optical power based on the input optical power, the ASE compensation power value, and the target gain,
wherein
determining (S306) the ASE compensation power value corresponding to the target gain according to the target gain and the correspondence between the ASE noise power and the preset gain comprises:
searching, according to the target gain, an ASE compensation power value table for the ASE compensation power value corresponding to the target gain, wherein the ASE compensation power value table is generated according to a correspondence between the ASE noise power and a preset gain;
wherein the measuring (S304) the power spectral density at the preset range of the peak value of the output optical power, acquiring the output optical powers of multiple points in the preset range, and averaging the output optical powers of the multiple points to generate the amplified spontaneous emission ASE noise power of the optical fiber amplifier comprises:
measuring the power spectral density at the preset range which is <NUM> or <NUM> from the peak value of the output optical power by using an optical power meter, acquiring output optical powers of multiple points in the preset range, and averaging the output optical powers of the multiple points to generate the ASE noise power;
wherein generating the ASE compensation power value table according to the correspondence between the ASE noise power and the preset gain comprises:
generating the ASE compensation power value table by fitting a curve of the ASE noise power to the preset gain with a multi-stage compensation method.