A power calculation method for an optical switching apparatus, comprising:
- inputting, by a beam generation apparatus, first laser light to a multiplexing port other than a signal light port in a plurality of multiplexing ports of any first wavelength division multiplexer/demultiplexer in at least one first wavelength division multiplexer/demultiplexer;
- inputting, by the first wavelength division multiplexer/demultiplexer that receives the first laser light, the first laser light through one of a plurality of demultiplexing ports of the first wavelength division multiplexer/demultiplexer to a first optical switch;
- inputting, by the first optical switch, the first laser light to a corresponding demultiplexing port of any second wavelength division multiplexer/demultiplexer in at least one second wavelength division multiplexer/demultiplexer;
- inputting, by the second wavelength division multiplexer/demultiplexer that receives the first laser light, the first laser light through one multiplexing port other than a signal light port in a plurality of multiplexing ports of the second wavelength division multiplexer/demultiplexer to a detection apparatus;
- and
- obtaining, by the detection apparatus, an output power of the first laser light,
- wherein the first optical switch further comprises one or more first tributary ports, and the optical switching apparatus further comprises a second optical switch, the second optical switch is connected to both the beam generation apparatus and the one or more first tributary ports, and the method further comprises:
- inputting, by the beam generation apparatus, second laser light to the one or more first tributary ports through the second optical switch;
- inputting, by the first optical switch, the second laser light to a target demultiplexing port of one of the at least one first wavelength division multiplexer/demultiplexer;
- inputting, by the first wavelength division multiplexer/demultiplexer that receives the second laser light, the second laser light to the detection apparatus;
- and
- obtaining, by the detection apparatus, an output power of the second laser light,
- wherein when the one or more first tributary ports correspond to the at least one first wavelength division multiplexer/demultiplexer, the optical switching apparatus further comprises a plurality of circulators, wherein a first port of each circulator in the plurality of circulators is connected to the beam generation apparatus, a second port of each circulator is connected to one multiplexing port other than the signal light port of the first wavelength division multiplexer/demultiplexer, and a third port of each circulator is connected to the detection apparatus;
- and
- the inputting, by the first wavelength division multiplexer/demultiplexer that receives the second laser light, the second laser light to the detection apparatus comprises:
- inputting, by the first wavelength division multiplexer/demultiplexer that receives the second laser light, the second laser light to the second port of the circulator;
- and
- inputting, by the circulator, the second laser light through the third port of the circulator to the detection apparatus.