A repeater includes a reception part configured to receive an optical signal transmitted by wavelength division multiplexing from a preceding repeater in a path from a source to a destination; a determination part configured to determine the channel allocation of the signal received by the reception part by determining a bit rate and a modulation technique with respect to each of channels in the received signal; and a detection part configured to detect a prohibited channel not to be included in the optical signal to be transmitted from the repeater, based on the channel allocation and a predetermined criterion.