Abstract: A method for compensating for ASE in gain control mode while controlling gain of an optical amplifier, the method including the following steps: (i) obtaining value for input and output power electronic circuitry DC offset; (ii) selecting the following set point values: power set point=0.