A wavelength path switching method in an optical communication system including a plurality of optical communication devices that transfer a signal light and an optical repeater that relays the signal light, the method for switching a first wavelength path to a second wavelength path between a first optical communication device and a second optical communication device, the first wavelength path and the second wavelength path being among a plurality of wavelength paths, the first optical communication device and the second optical communication device being among the plurality of optical communication devices, the method comprising:
- compensating, by at least one of the first optical communication device, the second optical communication device, and the optical repeater that relays in the first wavelength path, for wavelength dispersion in the first wavelength path;
- changing, by the first optical communication device or the second optical communication device, a wavelength dispersion compensation amount at the first optical communication device or the second optical communication device so that a wavelength dispersion in the second wavelength path is compensated;
- changing, by the optical repeater, a wavelength dispersion compensation amount at the optical repeater so that a total amount of a wavelength dispersion of the signal light compensated in the first wavelength path does not change with the change in the wavelength dispersion compensation amount at the first optical communication device or the second optical communication device;
- and
- switching the first wavelength path to the second wavelength path after the wavelength dispersion compensation amount at the first optical communication device or the second optical communication device is changed to a value that can compensate for the wavelength dispersion in the second wavelength path.