<p>The invention provides an optical-fiber amplifier comprising: error-signal-generating means for inputting a light signal, on which a first subcarrier is superposed, and generating an error signal according to the difference between the level of the light signal and a predetermined reference level; constant level means for maintaining the level of the light signal at a constant level, based on the error signal outputted from the error-signal-generating means; subcarrier-processing means for detecting and processing the first subcarrier based on the error signal; and subcarrier-superposing means for generating a second subcarrier based on the process of the subcarrier processing means and for superposing the second subcarrier on the light signal maintained at the constant level by the constant level means.</p>