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