Each piece of WDM light transmitted via the first and second line is demultiplexed for each wavelength by the first and second optical demultiplexer, and is selected by n optical selectors. Each selected optical signal is split by n optical splitters and is input to one set of optical switches. Each one of optical signals from the set of optical switches is selected by n optical selectors. Furthermore, each selected optical signal is regenerated by n wavelength converters. Each regenerated optical signal is split by n optical splitters, and is multiplexed by the first and second optical multiplexers.