Digital photonics for all-optical network nodes using single laser diodes door