Architectures and techniques for all-optical networks