Towards Digital Optical Networks