An optical packet switch uses electric circuits to implement input and output sections of an optical switch that performs packet switching. Retiming of packet data in the output section is facilitated to reduce the scale of the circuitry. In the input section a packet-data signal and a clock signal for retiming the packet data are wavelength multiplexed by a wavelength multiplexer and transferred over the same optical waveguide of the optical switch. In the output section the packet-data signal and the clock signal, which have been transferred from the same optical waveguide in the packet switch, are demultiplexed by a wavelength demultiplexer, and retiming of the packet-data signal is performed by an intra-device frame terminating unit. A frame format comprises, in addition to a flag pattern and a data field, a preamble and dummy data at the beginning and end thereof, respectively, for accommodating skew caused by transfer through the optical switch as well as a period of signal instability produced by switching of the optical switch. The packet data is transferred upon being placed in the data field of the frame format.