The invention relates to the technical field of
solid state disks, and discloses a port switching circuit, a controller, a
solid state disk, a storage product and a
server, the port switching circuit comprises a mode recognition circuit and a gating circuit, when the mode recognition circuit recognizes that a plurality of external devices are connected, the mode recognition circuit outputs a multi-port
signal to the gating circuit, and when the mode recognition circuit outputs the multi-port
signal to the storage product; the multi-port
signal is used for controlling the gating circuit to transmit control signals and data between one external device and one corresponding storage device. According to the access number of the external devices, the
bus interfaces connected with the gating circuit are determined, that is, when one external device is accessed, only one
bus interface is used, and the storage device is in a single-port mode, and when a plurality of external devices are accessed, each external device uses one
bus interface, and the storage device is in a multi-port mode. Therefore, the single-port / multi-port SSD design is realized on a set of hardware single board, and the product specification of the multi-port SSD is made up.