Optical communication device, control method and optical communication system
According to an aspect of the present invention, an optical communication device includes: a detection unit that is connected to a user device and detects light which is output from the connected user device; a connection unit that connects the user device and a control transceiver in a case where light is detected by the detection unit; an acquisition unit that acquires, via the control transceiver, communication destination information indicating a communication destination to which the user device requests connection; an assignment unit that assigns a wavelength to the user device according to the communication destination information acquired by the acquisition unit; and a notification unit that notifies the user device of wavelength information indicating the wavelength assigned by the assignment unit via the control transceiver.
1 . An optical communication device connected to a plurality of user devices, the optical communication device comprising:
a plurality of monitors that detect light which is output from the plurality of user devices that are connected, respectively;
a controller that connects, by using a switch based on correspondence between the plurality of monitors and a plurality of ports of the switch, a user device corresponding to a monitor that detects the light and a control transceiver while maintaining the light, upon detection of the light by any of the plurality of monitors;
an acquirer that acquires, via the control transceiver connected to the user device by the switch while maintaining the light, communication destination information indicating a communication destination to which the user device requests connection;
an assigner that assigns a wavelength to the user device according to the communication destination information acquired by the acquirer; and
a notifier that notifies the user device of wavelength information indicating the wavelength assigned by the assigner via the control transceiver.
2 . The optical communication device according to claim 1 ,
wherein the controller switches a connection destination of the user device to the communication destination in a case of receiving a notification of the wavelength information assigned to the user device, from the notifier.
3 . The optical communication device according to claim 1 ,
wherein the plurality of monitors are provided for the plurality of user devices.
4 . An optical communication device connected to a plurality of user devices, the optical communication device comprising:
a monitor that detects light which is output from a user device that is connected;
a user switch that switches the user device to which the monitor is connected each time a predetermined condition is satisfied,
a controller that connects, by using a switch based on correspondence between the plurality of user devices and a plurality of ports of the switch, the user device connected to the monitor and a control transceiver while maintaining the light, upon detection of the light by the monitor;
an acquirer that acquires, via the control transceiver connected to the user device by the switch while maintaining the light, communication destination information indicating a communication destination to which the user device requests connection;
an assigner that assigns a wavelength to the user device according to the communication destination information acquired by the acquirer; and
a notifier that notifies the user device of wavelength information indicating the wavelength assigned by the assigner via the control transceiver.
5 . The optical communication device according to claim 4 ,
wherein the user device to be switched by the user switch is a user device other than the user device that is already in communication with the communication destination.
6 . A control method performed by an optical communication device connected to a plurality of user devices, the method comprising:
detecting by a plurality of monitors, light which is output from the plurality of user devices that are connected, respectively;
connecting by a controller, by using a switch based on correspondence between the plurality of monitors and a plurality of ports of the switch, a user device corresponding to a monitor that detects the light and a control transceiver while maintaining the light, upon detection of the light by any of the plurality of monitors in the detecting;
acquiring by an acquirer, via the control transceiver connected to the at least one user device by the switch while maintaining the light, a communication destination to which the user device requests connection;
assigning by an assigner, a wavelength to the user device according to the communication destination acquired in the acquiring; and
notifying by a notifier, the user device of wavelength information indicating the wavelength assigned in the assigning via the control transceiver.
7 . The optical communication device according to claim 4 , wherein
the user switch sequentially switches the user device, to which the monitor is connected, between the plurality of user devices corresponding to a plurality of ports of the user switch, each time the predetermined condition indicating that a predetermined time has elapsed is satisfied.
8 . The optical communication device according to claim 4 , wherein
the user switch sequentially switches the user device, to which the monitor is connected, to another user device, which is not in communication with the communication destination, among the plurality of user devices.