Devices for all-optical high-speed communication