Physical Layer Aware Optical Networks