An optical amplifier including: an amplifier having an input port and an
output port, which is disposed along a main signal line of the optical
amplifier; a dummy laser generation circuit having an output coupled to
the main signal line and operative for inputting a dummy signal into the
amplifier; a first optical detector for detecting a power level of the
dummy signal into the amplifier and outputting a first power level
signal; a second optical detector for detecting an amplified power level
of the dummy signal output by the amplifier and outputting a second power
level signal; a memory device for storing calibration data regarding the
gain characteristics of the amplifier; and a gain control circuit which
receives inputs from the first optical detector and second optical
detector, and has an output coupled to the amplifier. The gain control
circuit operates to control the gain of the amplifier based on the first
power level signal, the second power level signal and the calibration
data.