All-optical synchronization for quantum communication networks